拿掉 build files

This commit is contained in:
2022-07-18 16:33:23 +08:00
parent 41e2287bcb
commit 3707f158a3
31953 changed files with 0 additions and 4411796 deletions
-28
View File
@@ -1,28 +0,0 @@
import { getObjectValueByPath } from '../../../util/helpers';
export function filterTreeItem(item, search, textKey) {
const text = getObjectValueByPath(item, textKey);
return text.toLocaleLowerCase().indexOf(search.toLocaleLowerCase()) > -1;
}
export function filterTreeItems(filter, item, search, idKey, textKey, childrenKey, excluded) {
if (filter(item, search, textKey)) {
return true;
}
const children = getObjectValueByPath(item, childrenKey);
if (children) {
let match = false;
for (let i = 0; i < children.length; i++) {
if (filterTreeItems(filter, children[i], search, idKey, textKey, childrenKey, excluded)) {
match = true;
}
}
if (match) return true;
}
excluded.add(getObjectValueByPath(item, idKey));
return false;
}
//# sourceMappingURL=filterTreeItems.js.map
@@ -1 +0,0 @@
{"version":3,"sources":["../../../../src/components/VTreeview/util/filterTreeItems.ts"],"names":[],"mappings":"AAAA,SAAS,oBAAT,QAAqC,uBAArC;AAGA,OAAM,SAAU,cAAV,CAA0B,IAA1B,EAAwC,MAAxC,EAAwD,OAAxD,EAAuE;AAC3E,QAAM,IAAI,GAAG,oBAAoB,CAAC,IAAD,EAAO,OAAP,CAAjC;AAEA,SAAO,IAAI,CAAC,iBAAL,GAAyB,OAAzB,CAAiC,MAAM,CAAC,iBAAP,EAAjC,IAA+D,CAAC,CAAvE;AACD;AAED,OAAM,SAAU,eAAV,CACJ,MADI,EAEJ,IAFI,EAGJ,MAHI,EAIJ,KAJI,EAKJ,OALI,EAMJ,WANI,EAOJ,QAPI,EAO0B;AAE9B,MAAI,MAAM,CAAC,IAAD,EAAO,MAAP,EAAe,OAAf,CAAV,EAAmC;AACjC,WAAO,IAAP;AACD;;AAED,QAAM,QAAQ,GAAG,oBAAoB,CAAC,IAAD,EAAO,WAAP,CAArC;;AAEA,MAAI,QAAJ,EAAc;AACZ,QAAI,KAAK,GAAG,KAAZ;;AACA,SAAK,IAAI,CAAC,GAAG,CAAb,EAAgB,CAAC,GAAG,QAAQ,CAAC,MAA7B,EAAqC,CAAC,EAAtC,EAA0C;AACxC,UAAI,eAAe,CAAC,MAAD,EAAS,QAAQ,CAAC,CAAD,CAAjB,EAAsB,MAAtB,EAA8B,KAA9B,EAAqC,OAArC,EAA8C,WAA9C,EAA2D,QAA3D,CAAnB,EAAyF;AACvF,QAAA,KAAK,GAAG,IAAR;AACD;AACF;;AAED,QAAI,KAAJ,EAAW,OAAO,IAAP;AACZ;;AAED,EAAA,QAAQ,CAAC,GAAT,CAAa,oBAAoB,CAAC,IAAD,EAAO,KAAP,CAAjC;AAEA,SAAO,KAAP;AACD","sourcesContent":["import { getObjectValueByPath } from '../../../util/helpers'\nimport { TreeviewItemFunction } from 'vuetify/types'\n\nexport function filterTreeItem (item: object, search: string, textKey: string): boolean {\n const text = getObjectValueByPath(item, textKey)\n\n return text.toLocaleLowerCase().indexOf(search.toLocaleLowerCase()) > -1\n}\n\nexport function filterTreeItems (\n filter: TreeviewItemFunction,\n item: any,\n search: string,\n idKey: string,\n textKey: string,\n childrenKey: string,\n excluded: Set<string | number>\n): boolean {\n if (filter(item, search, textKey)) {\n return true\n }\n\n const children = getObjectValueByPath(item, childrenKey)\n\n if (children) {\n let match = false\n for (let i = 0; i < children.length; i++) {\n if (filterTreeItems(filter, children[i], search, idKey, textKey, childrenKey, excluded)) {\n match = true\n }\n }\n\n if (match) return true\n }\n\n excluded.add(getObjectValueByPath(item, idKey))\n\n return false\n}\n"],"sourceRoot":"","file":"filterTreeItems.js"}