UNPKG

@fesjs/fes-design

Version:
31 lines (28 loc) 684 B
import { defineComponent, toRefs, createVNode } from 'vue'; import { useLocale } from '../config-provider/useLocale'; import getPrefixCls from '../_util/getPrefixCls'; import { COMPONENT_NAME } from './const'; const prefixCls = getPrefixCls('pagination'); var total = defineComponent({ name: COMPONENT_NAME.PAGINATION_TOTAL, props: { total: { type: Number, default: 0 } }, setup(props) { const { total } = toRefs(props); const { t } = useLocale(); return () => createVNode("div", { "class": `${prefixCls}-total` }, [t('pagination.total', { total: total.value })]); } }); export { total as default };