You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 lines
2.2 KiB

{"ast":null,"code":"import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, toDisplayString } from 'vue';\nimport { usePagination } from '../usePagination.mjs';\nimport { paginationTotalProps } from './total.mjs';\nimport _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';\nimport { useLocale } from '../../../../hooks/use-locale/index.mjs';\nimport { useNamespace } from '../../../../hooks/use-namespace/index.mjs';\nconst __default__ = defineComponent({\n name: \"ElPaginationTotal\"\n});\nconst _sfc_main = /* @__PURE__ */defineComponent({\n ...__default__,\n props: paginationTotalProps,\n setup(__props) {\n const {\n t\n } = useLocale();\n const ns = useNamespace(\"pagination\");\n const {\n disabled\n } = usePagination();\n return (_ctx, _cache) => {\n return openBlock(), createElementBlock(\"span\", {\n class: normalizeClass(unref(ns).e(\"total\")),\n disabled: unref(disabled)\n }, toDisplayString(unref(t)(\"el.pagination.total\", {\n total: _ctx.total\n })), 11, [\"disabled\"]);\n };\n }\n});\nvar Total = /* @__PURE__ */_export_sfc(_sfc_main, [[\"__file\", \"total.vue\"]]);\nexport { Total as default };","map":{"version":3,"names":["name","t","useLocale","ns","useNamespace","disabled","usePagination"],"sources":["../../../../../../../packages/components/pagination/src/components/total.vue"],"sourcesContent":["<template>\n <span :class=\"ns.e('total')\" :disabled=\"disabled\">\n {{\n t('el.pagination.total', {\n total,\n })\n }}\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { usePagination } from '../usePagination'\nimport { paginationTotalProps } from './total'\n\nconst { t } = useLocale()\nconst ns = useNamespace('pagination')\nconst { disabled } = usePagination()\n\ndefineOptions({\n name: 'ElPaginationTotal',\n})\n\ndefineProps(paginationTotalProps)\n</script>\n"],"mappings":";;;;;;mCAmBc;EACZA,IAAM;AACR;;;;;IANM;MAAEC;IAAE,IAAIC,SAAU;IAClB,MAAAC,EAAA,GAAKC,YAAA,CAAa,YAAY;IAC9B;MAAEC;IAAS,IAAIC,aAAc","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}