style: 格式化代码和更新文档

This commit is contained in:
dap
2026-03-31 10:30:35 +08:00
parent d4c344f506
commit 605cc1b695
3 changed files with 170 additions and 165 deletions

View File

@@ -70,9 +70,7 @@ export const columns: VxeGridProps['columns'] = [
field: 'dataScope',
slots: {
default: ({ row }) => {
const found = authScopeOptions.find(
(item) => item.value === row.dataScope,
);
const found = authScopeOptions.find((item) => item.value === row.dataScope);
if (found) {
return <Tag color={found.color}>{found.label}</Tag>;
}
@@ -132,6 +130,9 @@ export const drawerSchema: FormSchemaGetter = () => [
label: '角色排序',
rules: 'required',
defaultValue: 1,
componentProps: {
rootClass: 'flex-1',
},
},
{
component: 'Select',