(component): 简化 icon 文档

This commit is contained in:
就眠儀式
2022-10-23 23:55:00 +08:00
parent 91c3d1406d
commit afabcf3fff
4 changed files with 20 additions and 65 deletions

View File

@@ -43,7 +43,7 @@ const slots = useSlots();
const maxPage = ref(0);
const limits = ref(props.limits);
const pages = computed(() => Math.floor(props.pages / 2))
const pages = computed(() => Math.floor(props.pages / 2));
const currentPage: Ref<number> = ref(props.modelValue);
const currentPageShow: Ref<number> = ref(currentPage.value);
const inlimit = ref(props.limit);
@@ -65,7 +65,8 @@ const totalPage = computed(() => {
: currentPage.value > pages.value
? maxPage.value - currentPage.value + 1 < pages.value
? currentPage.value -
(pages.value + (pages.value - (maxPage.value - currentPage.value + 1)))
(pages.value +
(pages.value - (maxPage.value - currentPage.value + 1)))
: currentPage.value - pages.value
: 1;

View File

@@ -44,5 +44,5 @@ export default {
},
empty: {
description: "无数据",
}
},
};