fix: 字典管理-配置:无搜索框问题(https://gitee.com/huge-dream/django-vue3-admin/issues/I6ZGNK)
This commit is contained in:
@@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user