From 4dd22edc8dfc31c0933e6673e649e9a759d42d14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=AF=BA?= <1253070437@qq.com> Date: Thu, 12 Jan 2023 22:41:07 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91stable?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=96=B0=E5=A2=9E=E9=BB=98=E8=AE=A4=E7=9A=84?= =?UTF-8?q?=E6=AF=8F=E9=A1=B5=E6=9D=A1=E6=95=B0=EF=BC=88defaultPageSize?= =?UTF-8?q?=EF=BC=89=E8=B7=9F=E6=8C=87=E5=AE=9A=E6=AF=8F=E9=A1=B5=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E6=98=BE=E7=A4=BA=E5=A4=9A=E5=B0=91=E6=9D=A1=EF=BC=88?= =?UTF-8?q?pageSizeOptions=EF=BC=89=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- snowy-admin-web/src/components/Table/index.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/snowy-admin-web/src/components/Table/index.vue b/snowy-admin-web/src/components/Table/index.vue index d66aa7ae..1f4902ea 100644 --- a/snowy-admin-web/src/components/Table/index.vue +++ b/snowy-admin-web/src/components/Table/index.vue @@ -70,6 +70,14 @@ type: [String, Boolean], default: 'auto' }, + defaultPageSize: { + type: Number, + default: 10 + }, + pageSizeOptions: { + type: Array, + default: () => ['10', '20', '50', '100'] + }, /** * enable page URI mode * @@ -137,6 +145,8 @@ current: localPageNum, size: this.size, //this.compSize, size// 改动 showSizeChanger: this.showSizeChanger, + defaultPageSize: this.defaultPageSize, + pageSizeOptions: this.pageSizeOptions, showTotal: (total, range) => { return `${range[0]}-${range[1]} 共 ${total} 条 ` }