add 分页总数

This commit is contained in:
2022-11-15 14:55:22 +08:00
parent e7e7aeda2d
commit 7b125d0216
4 changed files with 11 additions and 8 deletions

View File

@@ -26,7 +26,7 @@ const _hoisted_9 = {
class: "layui-laypage-skip"
};
const _hoisted_10 = ["disabled"];
const _hoisted_11 = /* @__PURE__ */ createElementVNode("span", null, "\u517111\u6761", -1);
const _hoisted_11 = { key: 5 };
const __default__ = {
name: "LayPage"
};
@@ -44,7 +44,8 @@ const _sfc_main = defineComponent({
showRefresh: { type: Boolean, default: false },
pages: { default: 10 },
limits: { default: () => [10, 20, 30, 40, 50] },
modelValue: { default: 1 }
modelValue: { default: 1 },
count: null
},
emits: ["update:modelValue", "update:limit", "change"],
setup(__props, { emit }) {
@@ -202,7 +203,7 @@ const _sfc_main = defineComponent({
disabled: currentPageShow.value > maxPage.value || currentPageShow.value == currentPage.value
}, toDisplayString(unref(t)("page.confirm")), 9, _hoisted_10)
])) : createCommentVNode("", true),
_hoisted_11
props.count ? (openBlock(), createElementBlock("span", _hoisted_11, "\u5171" + toDisplayString(props.count) + "\u6761", 1)) : createCommentVNode("", true)
]);
};
}