This commit is contained in:
2022-12-09 16:41:41 +08:00
parent c1cce5a7c2
commit ff7aa8774f
2003 changed files with 156639 additions and 140 deletions

View File

@@ -22,6 +22,7 @@ export interface PageProps {
pages?: number;
limits?: number[];
modelValue?: number;
count?: number;
}
const props = withDefaults(defineProps<PageProps>(), {
@@ -223,5 +224,6 @@ watch(
{{ t("page.confirm") }}
</button>
</span>
<span v-if="count">{{count}}</span>
</div>
</template>

View File

@@ -10,7 +10,7 @@
border-radius: var(--panel-border-radius);
border-color: var(--panel-border-color);
background-color: #fff;
padding: 20px;
padding: 12px;
}
.layui-panel.is-hover-shadow:hover {

View File

@@ -21,6 +21,7 @@ export interface TablePageProps {
total: number;
limit: number;
theme?: string;
count?:number;
}
const props = withDefaults(defineProps<TablePageProps>(), {
@@ -65,6 +66,7 @@ const change = (pageData: any) => {
:limits="limits"
:theme="theme"
:pages="pages"
:count="count"
v-model="current"
v-model:limit="limit"
@change="change"

View File

@@ -910,6 +910,7 @@ onBeforeUnmount(() => {
:showRefresh="page.showRefresh"
:showLimit="page.showLimit"
:showCount="page.showCount"
:count="page.count"
v-model:current="page.current"
v-model:limit="page.limit"
@change="change"