feat: add search slots

This commit is contained in:
xingyu4j
2022-12-08 12:36:40 +08:00
parent c2a3d1240f
commit 078249677b
4 changed files with 12 additions and 12 deletions

View File

@ -20,7 +20,7 @@
## 注意事项
- 项目路径请不要使用中文命名!!!会造成解析乱码!!!请使用全英文路径!!!
- node >=14.19.0(后续升级版本,对应 node 最低版本也会升级,建议直接使用 16 版本) ,pnpm >=7
- node >=16 ,pnpm >=7.1
- 开发建议使用 [谷歌浏览器-开发者版](https://www.google.cn/intl/zh-CN/chrome/dev/) 不支持 IE\QQ 等浏览器
### 点击查看[使用说明](./use.md)

View File

@ -108,7 +108,7 @@
"windicss": "^3.5.6"
},
"engines": {
"node": "^14.19.0 || >=16.0.0"
"node": ">=16.0.0"
},
"license": "MIT",
"repository": {

View File

@ -155,6 +155,7 @@ const filterSearchSchema = (crudSchema: VxeCrudSchema): VxeFormItemProps[] => {
itemRender: schemaItem.itemRender ? schemaItem.itemRender : itemRender,
field: schemaItem.field,
title: schemaItem.search?.title || schemaItem.title,
slots: schemaItem.search?.slots,
span: span
}
searchSchema.push(searchSchemaItem)