添加filelist的crud中对文件选择器的测试代码
This commit is contained in:
@@ -10,6 +10,8 @@ import {
|
|||||||
CreateCrudOptionsRet,
|
CreateCrudOptionsRet,
|
||||||
dict
|
dict
|
||||||
} from '@fast-crud/fast-crud';
|
} from '@fast-crud/fast-crud';
|
||||||
|
import fileSelector from '/@/components/fileSelector/index.vue';
|
||||||
|
import { shallowRef } from 'vue';
|
||||||
|
|
||||||
export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOptionsProps): CreateCrudOptionsRet {
|
export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOptionsProps): CreateCrudOptionsRet {
|
||||||
const pageRequest = async (query: UserPageQuery) => {
|
const pageRequest = async (query: UserPageQuery) => {
|
||||||
@@ -31,7 +33,7 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
|
|||||||
buttons: {
|
buttons: {
|
||||||
add: {
|
add: {
|
||||||
show: true,
|
show: true,
|
||||||
click: () => context.openAddHandle?.()
|
// click: () => context.openAddHandle?.()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -200,7 +202,25 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
|
|||||||
search: {
|
search: {
|
||||||
show: true
|
show: true
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
// fileselectortest: {
|
||||||
|
// title: '文件选择器测试',
|
||||||
|
// type: 'file-selector',
|
||||||
|
// width: 200,
|
||||||
|
// form: {
|
||||||
|
// component: {
|
||||||
|
// name: shallowRef(fileSelector),
|
||||||
|
// vModel: 'modelValue',
|
||||||
|
// tabsShow: 0b0100,
|
||||||
|
// itemSize: 100,
|
||||||
|
// multiple: false,
|
||||||
|
// selectable: true,
|
||||||
|
// showInput: true,
|
||||||
|
// inputType: 'video',
|
||||||
|
// valueKey: 'url',
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user