@@ -20,6 +20,10 @@ export const formSchema: FormSchema[] = [
const treeData = makeTree(res);
return treeData;
},
+ showSearch: true,
+ filterTreeNode: (searchVal, treeNode) => {
+ return treeNode.title.includes(searchVal);
+ },
fieldNames: {
label: 'name',
key: 'id',
@@ -108,6 +108,10 @@
value: 'id',
onChange: function (val, a) {
specsObj.value[val] = a[0];