init
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user