plain-design 1.0.0-beta.119 → 1.0.0-beta.120

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plain-design",
3
- "version": "1.0.0-beta.119",
3
+ "version": "1.0.0-beta.120",
4
4
  "description": "",
5
5
  "main": "dist/plain-design.min.js",
6
6
  "module": "dist/plain-design.commonjs.min.js",
@@ -154,7 +154,7 @@ export function createTreeNode(
154
154
  return true;
155
155
  }
156
156
  /*当前节点有子节点匹配搜索关键词*/
157
- const children = self.children();
157
+ const children = self.children().filter(i => !i.empty);
158
158
  if (!!children && children.length > 0 && children.some(i => i.isPassFilter())) {
159
159
  return true;
160
160
  }
@@ -15,7 +15,7 @@ export const useDialog = createApplicationService(
15
15
  const service = (sourceOption: string | iDialogServiceOption, externalOption?: iDialogServiceOption): () => void => {
16
16
  const option = formatOptions(sourceOption, externalOption);
17
17
  !option.id && (option.id = nextDialogId());
18
- option.minWidth === null && (option.minWidth = '325px');
18
+ option.minWidth == null && (option.minWidth = '325px');
19
19
 
20
20
  getManager().then(async manager => {await manager.service(option);});
21
21