perf: vxe
parent
a123c47042
commit
12ac097b47
|
@ -114,7 +114,7 @@ const filterSearchSchema = (crudSchema: VxeCrudSchema): VxeFormItemProps[] => {
|
||||||
const searchSchema: VxeFormItemProps[] = []
|
const searchSchema: VxeFormItemProps[] = []
|
||||||
eachTree(crudSchema.columns, (schemaItem: VxeCrudColumns) => {
|
eachTree(crudSchema.columns, (schemaItem: VxeCrudColumns) => {
|
||||||
// 判断是否显示
|
// 判断是否显示
|
||||||
if (schemaItem?.isSearch) {
|
if (schemaItem?.isSearch || schemaItem.search?.show) {
|
||||||
let itemRenderName = schemaItem?.search?.itemRender?.name || '$input'
|
let itemRenderName = schemaItem?.search?.itemRender?.name || '$input'
|
||||||
const options: any[] = []
|
const options: any[] = []
|
||||||
let itemRender: FormItemRenderOptions = {
|
let itemRender: FormItemRenderOptions = {
|
||||||
|
|
|
@ -65,6 +65,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
||||||
formatter: 'formatDate',
|
formatter: 'formatDate',
|
||||||
isForm: false,
|
isForm: false,
|
||||||
search: {
|
search: {
|
||||||
|
show: true,
|
||||||
itemRender: {
|
itemRender: {
|
||||||
name: 'XDataTimePicker'
|
name: 'XDataTimePicker'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue