From 584c95bd91a430d7098ee95c037d3fa8c500954d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8C=BF=E5=B0=8F=E5=A4=A9?= <1638245306@qq.com> Date: Mon, 20 Mar 2023 09:37:27 +0800 Subject: [PATCH] =?UTF-8?q?chore(=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=F0=9F=9A=B8=20=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/system/user/crud.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/web/src/views/system/user/crud.tsx b/web/src/views/system/user/crud.tsx index ec1819e..ce1faf5 100644 --- a/web/src/views/system/user/crud.tsx +++ b/web/src/views/system/user/crud.tsx @@ -29,12 +29,15 @@ export const createCrudOptions = function ({ crudExpose }: { crudExpose: CrudExp delRequest }, rowHandle: { - width: 400, + //固定右侧 + fixed: "right", + width: 310, buttons: { orderExample: { + show:false, text: "重置密码", click: () => { - console.log("reset password") + //console.log("reset password") } } }, @@ -49,12 +52,6 @@ export const createCrudOptions = function ({ crudExpose }: { crudExpose: CrudExp align: 'center', width: '70px', columnSetDisabled: true, //禁止在列设置中选择 - formatter: (context) => { - //计算序号,你可以自定义计算规则,此处为翻页累加 - let index = context.index ?? 1; - let pagination = crudExpose.crudBinding.value.pagination; - return ((pagination.currentPage ?? 1) - 1) * pagination.pageSize + index + 1; - }, }, }, search: { @@ -240,6 +237,9 @@ export const createCrudOptions = function ({ crudExpose }: { crudExpose: CrudExp }, email: { title: '邮箱', + column:{ + width:260 + }, form: { rules: [ {