mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-18 06:02:01 +08:00
refactor: type/注释优化 去除大量any
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import type { FormSchemaGetter } from '#/adapter/form';
|
||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
import type { DictData } from '#/api/system/dict/dict-data-model';
|
||||
|
||||
import { renderDictTag } from '#/utils/render';
|
||||
|
||||
@@ -18,8 +19,8 @@ export const columns: VxeGridProps['columns'] = [
|
||||
field: 'cssClass',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
const { dictValue } = row;
|
||||
return renderDictTag(dictValue, [row as any]);
|
||||
const { dictValue } = row as DictData;
|
||||
return renderDictTag(dictValue, row);
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user