This commit is contained in:
H0nGzA1
2023-05-17 21:37:17 +08:00
parent 17b67e43c9
commit adc522c180

View File

@@ -1,5 +1,14 @@
import * as api from './api'; import * as api from './api';
import { dict, UserPageQuery, AddReq, DelReq, EditReq, CrudOptions, CreateCrudOptionsProps, CreateCrudOptionsRet } from '@fast-crud/fast-crud'; import {
dict,
UserPageQuery,
AddReq,
DelReq,
EditReq,
CrudOptions,
CreateCrudOptionsProps,
CreateCrudOptionsRet
} from '@fast-crud/fast-crud';
import {dictionary} from '/@/utils/dictionary'; import {dictionary} from '/@/utils/dictionary';
export const createCrudOptions = function ({crudExpose, context}: CreateCrudOptionsProps): CreateCrudOptionsRet { export const createCrudOptions = function ({crudExpose, context}: CreateCrudOptionsProps): CreateCrudOptionsRet {
@@ -72,7 +81,7 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
label: { label: {
title: '名称', title: '名称',
search: { search: {
disabled: false, show: true,
component: { component: {
props: { props: {
clearable: true, clearable: true,
@@ -183,7 +192,7 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
value: { value: {
title: '数据值', title: '数据值',
search: { search: {
disabled: true, show: true,
component: { component: {
props: { props: {
clearable: true, clearable: true,
@@ -243,7 +252,7 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
title: '状态', title: '状态',
width: 80, width: 80,
search: { search: {
disabled: false, show: true
}, },
type: 'dict-radio', type: 'dict-radio',
dict: dict({ dict: dict({