bkui-vue 2.0.1-beta.60 → 2.0.1-beta.60.fix.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) hide show
  1. package/README.md +0 -15
  2. package/dist/index.cjs.js +59 -59
  3. package/dist/index.esm.js +18048 -18492
  4. package/dist/index.umd.js +60 -60
  5. package/dist/style.css +1 -1
  6. package/dist/style.variable.css +1 -1
  7. package/lib/affix/affix.css +0 -130
  8. package/lib/affix/affix.variable.css +1 -262
  9. package/lib/alert/alert.css +3 -133
  10. package/lib/alert/alert.d.ts +7 -0
  11. package/lib/alert/alert.variable.css +1 -262
  12. package/lib/alert/index.d.ts +15 -0
  13. package/lib/alert/index.js +6 -6
  14. package/lib/backtop/backtop.css +3 -133
  15. package/lib/backtop/backtop.variable.css +4 -395
  16. package/lib/badge/badge.css +26 -156
  17. package/lib/badge/badge.variable.css +1 -262
  18. package/lib/breadcrumb/breadcrumb.css +5 -135
  19. package/lib/breadcrumb/breadcrumb.variable.css +6 -397
  20. package/lib/button/button.css +143 -273
  21. package/lib/button/button.variable.css +1 -262
  22. package/lib/card/card.css +4 -134
  23. package/lib/card/card.variable.css +5 -396
  24. package/lib/cascader/cascader.css +23 -153
  25. package/lib/cascader/cascader.variable.css +24 -415
  26. package/lib/cascader/index.js +1 -0
  27. package/lib/checkbox/checkbox-group.d.ts +16 -0
  28. package/lib/checkbox/checkbox.css +9 -147
  29. package/lib/checkbox/checkbox.d.ts +0 -32
  30. package/lib/checkbox/checkbox.less +0 -12
  31. package/lib/checkbox/checkbox.variable.css +1 -270
  32. package/lib/checkbox/index.d.ts +11 -46
  33. package/lib/checkbox/index.js +4 -9
  34. package/lib/code-diff/code-diff.css +0 -130
  35. package/lib/code-diff/code-diff.variable.css +1 -262
  36. package/lib/collapse/collapse.css +1 -131
  37. package/lib/collapse/collapse.variable.css +1 -262
  38. package/lib/collapse-transition/collapse-transition.css +0 -130
  39. package/lib/collapse-transition/collapse-transition.variable.css +1 -262
  40. package/lib/color-picker/color-picker.css +0 -130
  41. package/lib/color-picker/color-picker.variable.css +1 -262
  42. package/lib/config-provider/config-provider.css +0 -130
  43. package/lib/config-provider/config-provider.variable.css +1 -262
  44. package/lib/container/container.css +0 -130
  45. package/lib/container/container.variable.css +1 -392
  46. package/lib/date-picker/date-picker.css +17 -147
  47. package/lib/date-picker/date-picker.d.ts +9 -0
  48. package/lib/date-picker/date-picker.variable.css +1 -262
  49. package/lib/date-picker/index.d.ts +19 -0
  50. package/lib/date-picker/index.js +17 -29
  51. package/lib/date-picker/panel/time-range.d.ts +9 -0
  52. package/lib/date-picker/panel/time.d.ts +10 -1
  53. package/lib/date-picker/props.d.ts +4 -0
  54. package/lib/date-picker/time-picker.d.ts +9 -0
  55. package/lib/dialog/dialog.css +8 -138
  56. package/lib/dialog/dialog.d.ts +5 -16
  57. package/lib/dialog/dialog.variable.css +9 -400
  58. package/lib/dialog/index.d.ts +11 -34
  59. package/lib/dialog/props.d.ts +2 -7
  60. package/lib/directives/index.js +6 -12
  61. package/lib/divider/divider.css +3 -133
  62. package/lib/divider/divider.variable.css +1 -262
  63. package/lib/dropdown/dropdown-item.d.ts +1 -1
  64. package/lib/dropdown/dropdown-menu.d.ts +1 -1
  65. package/lib/dropdown/dropdown.css +0 -130
  66. package/lib/dropdown/dropdown.variable.css +1 -392
  67. package/lib/dropdown/index.d.ts +2 -2
  68. package/lib/exception/exception.css +0 -130
  69. package/lib/exception/exception.variable.css +1 -262
  70. package/lib/fixed-navbar/fixed-navbar.css +4 -134
  71. package/lib/fixed-navbar/fixed-navbar.variable.css +1 -262
  72. package/lib/form/form-item.d.ts +18 -6
  73. package/lib/form/form.css +0 -130
  74. package/lib/form/form.variable.css +1 -262
  75. package/lib/form/index.d.ts +13 -6
  76. package/lib/form/index.js +6 -8
  77. package/lib/image/image-viewer.css +0 -130
  78. package/lib/image/image-viewer.variable.css +1 -262
  79. package/lib/image/image.css +0 -130
  80. package/lib/image/image.variable.css +1 -392
  81. package/lib/index.js +1 -1
  82. package/lib/info-box/index.js +5 -3
  83. package/lib/info-box/info-box.css +4 -134
  84. package/lib/info-box/info-box.variable.css +1 -262
  85. package/lib/input/index.js +9 -36
  86. package/lib/input/input.css +72 -202
  87. package/lib/input/input.variable.css +73 -464
  88. package/lib/link/link.css +16 -146
  89. package/lib/link/link.variable.css +1 -262
  90. package/lib/loading/loading.css +16 -146
  91. package/lib/loading/loading.variable.css +17 -408
  92. package/lib/menu/menu.css +18 -148
  93. package/lib/menu/menu.variable.css +19 -410
  94. package/lib/menu/submenu.css +0 -130
  95. package/lib/menu/submenu.variable.css +1 -262
  96. package/lib/message/message.css +22 -153
  97. package/lib/message/message.less +2 -3
  98. package/lib/message/message.variable.css +2 -264
  99. package/lib/modal/index.d.ts +13 -41
  100. package/lib/modal/index.js +18 -33
  101. package/lib/modal/modal.css +4 -134
  102. package/lib/modal/modal.d.ts +5 -16
  103. package/lib/modal/modal.variable.css +5 -396
  104. package/lib/modal/props.mixin.d.ts +2 -7
  105. package/lib/navigation/navigation.css +2 -132
  106. package/lib/navigation/navigation.variable.css +1 -262
  107. package/lib/notify/notify.css +7 -137
  108. package/lib/notify/notify.variable.css +1 -262
  109. package/lib/overflow-title/components/overflow-title.d.ts +7 -0
  110. package/lib/overflow-title/index.d.ts +15 -0
  111. package/lib/overflow-title/index.js +1 -0
  112. package/lib/overflow-title/props.d.ts +3 -0
  113. package/lib/pagination/index.d.ts +19 -0
  114. package/lib/pagination/index.js +9 -47
  115. package/lib/pagination/pagination.css +9 -139
  116. package/lib/pagination/pagination.d.ts +13 -0
  117. package/lib/pagination/pagination.less +13 -14
  118. package/lib/pagination/pagination.variable.css +9 -270
  119. package/lib/pop-confirm/index.d.ts +32 -0
  120. package/lib/pop-confirm/index.js +18 -16
  121. package/lib/pop-confirm/pop-confirm.css +1 -133
  122. package/lib/pop-confirm/pop-confirm.d.ts +14 -0
  123. package/lib/pop-confirm/pop-confirm.less +1 -3
  124. package/lib/pop-confirm/pop-confirm.variable.css +2 -265
  125. package/lib/pop-confirm/props.d.ts +7 -1
  126. package/lib/popover/popover.css +0 -130
  127. package/lib/popover/popover.variable.css +1 -262
  128. package/lib/process/process.css +13 -143
  129. package/lib/process/process.variable.css +1 -262
  130. package/lib/progress/progress.css +4 -134
  131. package/lib/progress/progress.variable.css +5 -396
  132. package/lib/radio/index.d.ts +21 -21
  133. package/lib/radio/radio-button.d.ts +7 -7
  134. package/lib/radio/radio-group.d.ts +7 -7
  135. package/lib/radio/radio.css +42 -172
  136. package/lib/radio/radio.d.ts +7 -7
  137. package/lib/radio/radio.variable.css +1 -262
  138. package/lib/rate/rate.css +0 -130
  139. package/lib/rate/rate.variable.css +1 -262
  140. package/lib/resize-layout/resize-layout.css +0 -130
  141. package/lib/resize-layout/resize-layout.variable.css +1 -262
  142. package/lib/scrollbar/index.d.ts +13 -133
  143. package/lib/scrollbar/index.js +18444 -1343
  144. package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +2 -0
  145. package/lib/scrollbar/scrollbar-core/helpers.d.ts +5 -0
  146. package/lib/scrollbar/scrollbar-core/index.d.ts +241 -0
  147. package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +5 -0
  148. package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +1 -0
  149. package/lib/scrollbar/scrollbar.css +75 -0
  150. package/lib/scrollbar/scrollbar.less +94 -0
  151. package/lib/{styles/themes/themes.css → scrollbar/scrollbar.variable.css} +76 -2
  152. package/lib/search-select/index.d.ts +72 -40
  153. package/lib/search-select/index.js +67 -85
  154. package/lib/search-select/input.d.ts +4 -5
  155. package/lib/search-select/search-select.css +33 -163
  156. package/lib/search-select/search-select.d.ts +39 -15
  157. package/lib/search-select/search-select.variable.css +34 -425
  158. package/lib/search-select/selected.d.ts +9 -11
  159. package/lib/search-select/utils.d.ts +3 -3
  160. package/lib/select/common.d.ts +2 -2
  161. package/lib/select/index.d.ts +4 -32
  162. package/lib/select/index.js +59 -119
  163. package/lib/select/option.d.ts +5 -4
  164. package/lib/select/select.css +43 -175
  165. package/lib/select/select.d.ts +0 -12
  166. package/lib/select/select.less +4 -7
  167. package/lib/select/select.variable.css +44 -437
  168. package/lib/select/type.d.ts +10 -9
  169. package/lib/shared/index.d.ts +0 -1
  170. package/lib/shared/index.js +1 -72
  171. package/lib/sideslider/index.d.ts +11 -34
  172. package/lib/sideslider/index.js +0 -1
  173. package/lib/sideslider/sideslider.css +9 -138
  174. package/lib/sideslider/sideslider.d.ts +5 -16
  175. package/lib/sideslider/sideslider.less +8 -7
  176. package/lib/sideslider/sideslider.variable.css +9 -269
  177. package/lib/slider/slider.css +5 -135
  178. package/lib/slider/slider.variable.css +1 -262
  179. package/lib/steps/index.d.ts +18 -3
  180. package/lib/steps/index.js +1 -0
  181. package/lib/steps/steps.css +38 -168
  182. package/lib/steps/steps.d.ts +11 -1
  183. package/lib/steps/steps.variable.css +1 -262
  184. package/lib/styles/index.d.ts +0 -1
  185. package/lib/styles/mixins/animate.css +0 -130
  186. package/lib/styles/mixins/animate.variable.css +1 -262
  187. package/lib/styles/mixins/mixins.css +0 -130
  188. package/lib/styles/mixins/mixins.variable.css +0 -130
  189. package/lib/styles/mixins/popper.css +0 -130
  190. package/lib/styles/mixins/popper.variable.css +1 -262
  191. package/lib/styles/mixins/scroll.css +0 -130
  192. package/lib/styles/mixins/scroll.variable.css +1 -262
  193. package/lib/styles/reset.css +0 -130
  194. package/lib/styles/reset.variable.css +1 -262
  195. package/lib/styles/themes/themes.less +129 -299
  196. package/lib/swiper/swiper.css +0 -130
  197. package/lib/swiper/swiper.variable.css +1 -262
  198. package/lib/switcher/switcher.css +17 -147
  199. package/lib/switcher/switcher.variable.css +18 -409
  200. package/lib/tab/index.d.ts +92 -0
  201. package/lib/tab/index.js +14 -1
  202. package/lib/tab/props.d.ts +35 -0
  203. package/lib/tab/tab-nav.d.ts +45 -2
  204. package/lib/tab/tab.css +17 -147
  205. package/lib/tab/tab.d.ts +44 -0
  206. package/lib/tab/tab.variable.css +1 -262
  207. package/lib/table/components/table-cell.d.ts +0 -22
  208. package/lib/table/components/table-column.d.ts +44 -1
  209. package/lib/table/const.d.ts +2 -15
  210. package/lib/table/events.d.ts +98 -2
  211. package/lib/table/index.d.ts +561 -89
  212. package/lib/table/index.js +3333 -3812
  213. package/lib/table/plugins/col-group.d.ts +38 -0
  214. package/lib/table/plugins/head-filter.css +0 -131
  215. package/lib/table/plugins/head-filter.d.ts +1 -2
  216. package/lib/table/plugins/head-filter.less +0 -1
  217. package/lib/table/plugins/head-filter.variable.css +1 -263
  218. package/lib/table/plugins/head-sort.css +0 -130
  219. package/lib/table/plugins/head-sort.variable.css +1 -262
  220. package/lib/table/plugins/settings.css +0 -131
  221. package/lib/table/plugins/settings.d.ts +16 -0
  222. package/lib/table/plugins/settings.less +0 -1
  223. package/lib/table/plugins/settings.variable.css +1 -263
  224. package/lib/table/plugins/use-active-columns.d.ts +16 -0
  225. package/lib/table/plugins/use-column-resize.d.ts +35 -0
  226. package/lib/table/plugins/use-column-template.d.ts +7 -0
  227. package/lib/table/{hooks → plugins}/use-draggable.d.ts +2 -2
  228. package/lib/table/plugins/use-fixed-column.d.ts +27 -0
  229. package/lib/table/plugins/use-head-cell.d.ts +7 -0
  230. package/lib/table/plugins/use-pagination.d.ts +23 -0
  231. package/lib/table/{hooks → plugins}/use-shift-key.d.ts +2 -4
  232. package/lib/table/props.d.ts +30 -92
  233. package/lib/table/table.css +327 -597
  234. package/lib/table/table.d.ts +181 -47
  235. package/lib/table/table.less +101 -228
  236. package/lib/table/table.variable.css +328 -859
  237. package/lib/table/use-attributes.d.ts +62 -0
  238. package/lib/table/use-column.d.ts +155 -0
  239. package/lib/table/use-common.d.ts +1679 -0
  240. package/lib/table/use-render.d.ts +11 -0
  241. package/lib/table/utils.d.ts +18 -45
  242. package/lib/table-column/index.d.ts +132 -3
  243. package/lib/table-column/index.js +28 -17367
  244. package/lib/tag/index.js +1 -0
  245. package/lib/tag/tag.css +6 -136
  246. package/lib/tag/tag.less +1 -1
  247. package/lib/tag/tag.variable.css +2 -263
  248. package/lib/tag-input/index.js +3 -3
  249. package/lib/tag-input/tag-input.css +18 -148
  250. package/lib/tag-input/tag-input.d.ts +14 -2
  251. package/lib/tag-input/tag-input.variable.css +1 -262
  252. package/lib/time-picker/index.d.ts +19 -0
  253. package/lib/time-picker/time-picker.css +0 -130
  254. package/lib/time-picker/time-picker.variable.css +1 -262
  255. package/lib/timeline/timeline.css +19 -149
  256. package/lib/timeline/timeline.variable.css +1 -262
  257. package/lib/transfer/transfer.css +19 -149
  258. package/lib/transfer/transfer.variable.css +1 -262
  259. package/lib/tree/constant.d.ts +1 -3
  260. package/lib/tree/index.d.ts +7 -21
  261. package/lib/tree/index.js +18 -61
  262. package/lib/tree/props.d.ts +5 -12
  263. package/lib/tree/tree.css +78 -242
  264. package/lib/tree/tree.d.ts +3 -9
  265. package/lib/tree/tree.variable.css +79 -504
  266. package/lib/tree/use-node-action.d.ts +9 -10
  267. package/lib/tree/use-node-async.d.ts +1 -2
  268. package/lib/tree/use-node-attribute.d.ts +34 -42
  269. package/lib/tree/use-search.d.ts +1 -1
  270. package/lib/tree/use-tree-init.d.ts +5 -8
  271. package/lib/tree/util.d.ts +21 -21
  272. package/lib/upload/index.d.ts +4 -27
  273. package/lib/upload/index.js +7 -30
  274. package/lib/upload/props.d.ts +2 -7
  275. package/lib/upload/upload.css +27 -157
  276. package/lib/upload/upload.d.ts +2 -13
  277. package/lib/upload/upload.type.d.ts +0 -6
  278. package/lib/upload/upload.variable.css +28 -419
  279. package/lib/virtual-render/index.d.ts +46 -12
  280. package/lib/virtual-render/index.js +148 -17469
  281. package/lib/virtual-render/props.d.ts +9 -2
  282. package/lib/virtual-render/use-fix-top.d.ts +1 -1
  283. package/lib/virtual-render/use-scrollbar.d.ts +17 -4
  284. package/lib/virtual-render/v-virtual-render.d.ts +1 -7
  285. package/lib/virtual-render/virtual-render.css +69 -225
  286. package/lib/virtual-render/virtual-render.d.ts +22 -6
  287. package/lib/virtual-render/virtual-render.less +11 -2
  288. package/lib/virtual-render/virtual-render.variable.css +70 -487
  289. package/lib/volar.components.d.ts +0 -2
  290. package/package.json +1 -1
  291. package/lib/scrollbar/css/scrollbar.css +0 -239
  292. package/lib/scrollbar/css/scrollbar.less +0 -139
  293. package/lib/scrollbar/css/scrollbar.variable.css +0 -499
  294. package/lib/scrollbar/handlers/click-rail.d.ts +0 -2
  295. package/lib/scrollbar/handlers/drag-thumb.d.ts +0 -1
  296. package/lib/scrollbar/handlers/keyboard.d.ts +0 -2
  297. package/lib/scrollbar/handlers/mouse-wheel.d.ts +0 -2
  298. package/lib/scrollbar/handlers/touch.d.ts +0 -4
  299. package/lib/scrollbar/helper/class-names.d.ts +0 -21
  300. package/lib/scrollbar/helper/css.d.ts +0 -3
  301. package/lib/scrollbar/helper/dom.d.ts +0 -4
  302. package/lib/scrollbar/helper/event-manager.d.ts +0 -20
  303. package/lib/scrollbar/helper/util.d.ts +0 -11
  304. package/lib/scrollbar/process-scroll-diff.d.ts +0 -1
  305. package/lib/scrollbar/update-geometry.d.ts +0 -8
  306. package/lib/shared/frame-throttle.d.ts +0 -15
  307. package/lib/styles/themes/themes.variable.css +0 -130
  308. package/lib/table/components/ghost-body.d.ts +0 -2
  309. package/lib/table/hooks/use-cell.d.ts +0 -20
  310. package/lib/table/hooks/use-column-resize.d.ts +0 -7
  311. package/lib/table/hooks/use-column-template.d.ts +0 -5
  312. package/lib/table/hooks/use-columns.d.ts +0 -69
  313. package/lib/table/hooks/use-fixed-column.d.ts +0 -10
  314. package/lib/table/hooks/use-head.d.ts +0 -16
  315. package/lib/table/hooks/use-layout.d.ts +0 -25
  316. package/lib/table/hooks/use-pagination.d.ts +0 -16
  317. package/lib/table/hooks/use-render.d.ts +0 -21
  318. package/lib/table/hooks/use-rows.d.ts +0 -30
  319. package/lib/table/hooks/use-settings.d.ts +0 -134
  320. /package/lib/table/{components → plugins}/body-empty.d.ts +0 -0
  321. /package/lib/table/{hooks → plugins}/use-observer-resize.d.ts +0 -0
  322. /package/lib/table/{hooks → plugins}/use-scroll-loading.d.ts +0 -0
@@ -1,53 +1,45 @@
1
- import { TreeNode, TreePropTypes } from './props';
1
+ import { TreePropTypes } from './props';
2
2
  declare const _default: (flatData: {
3
- data: TreeNode[];
4
- schema: WeakMap<TreeNode, unknown>;
3
+ data: any[];
4
+ schema: WeakMap<Object, any>;
5
5
  }, props?: TreePropTypes) => {
6
- getSchemaVal: (node: TreeNode) => unknown;
7
- getNodeAttr: (node: TreeNode, attr: string) => any;
8
- getNodeId: (node: TreeNode) => any;
9
- getNodeById: (id: string | unknown) => TreeNode;
10
- getNodeParentId: (node: TreeNode) => any;
11
- getParentNodeData: (node: TreeNode | string) => any;
6
+ getSchemaVal: (node: any) => any;
7
+ getNodeAttr: (node: any, attr: string) => any;
8
+ getNodeId: (node: any) => any;
9
+ getNodeById: (id: any) => any;
10
+ getNodeParentId: (node: any) => any;
11
+ getParentNodeData: (node: any) => any;
12
12
  getNodePathById: (id: string) => any;
13
13
  getNodeAttrById: (id: string, attr: string) => any;
14
14
  getNodeParentIdById: (id: string) => any;
15
- getParentNodeAttr: (node: TreeNode, attrName: string) => any;
16
- getParentNode: (node: TreeNode) => any;
17
- setNodeAttr: (node: TreeNode, attr: string, val: unknown, id?: any) => void;
18
- setNodeAttrById: (id: unknown, attr: string, val: unknown) => void;
19
- getNodePath: (node: TreeNode) => any;
20
- isRootNode: (node: TreeNode | string) => any;
21
- isNodeOpened: (node: TreeNode) => any;
22
- hasChildNode: (node: TreeNode) => any;
23
- isItemOpen: (item: TreeNode) => any;
24
- isNodeChecked: (node: TreeNode) => any;
25
- isNodeMatched: (node: TreeNode) => any;
26
- isNodeLoading: (node: TreeNode) => any;
27
- checkNodeIsOpen: (node: TreeNode) => any;
28
- getSourceNodeByPath: (path: string, uid?: string) => any[];
29
- getSourceNodeByUID: (uid: string) => TreeNode;
30
- isMatchedNode: (node: TreeNode) => any;
31
- resolveScopedSlotParam: (item: TreeNode) => {
15
+ getParentNodeAttr: (node: any, attrName: string) => any;
16
+ getParentNode: (node: any) => any;
17
+ setNodeAttr: (node: any, attr: string, val: any, id?: any) => void;
18
+ setNodeAttrById: (id: any, attr: string, val: any) => void;
19
+ getNodePath: (node: any) => any;
20
+ isRootNode: (node: any | string) => any;
21
+ isNodeOpened: (node: any) => any;
22
+ hasChildNode: (node: any) => any;
23
+ isItemOpen: (item: any) => any;
24
+ isNodeChecked: (node: any) => any;
25
+ isNodeMatched: (node: any) => any;
26
+ isNodeLoading: (node: any) => any;
27
+ checkNodeIsOpen: (node: any) => any;
28
+ getSourceNodeByPath: (path: string, uid?: string) => any;
29
+ getSourceNodeByUID: (uid: string) => any;
30
+ isMatchedNode: (node: any) => any;
31
+ resolveScopedSlotParam: (item: any) => {
32
32
  [x: string]: any;
33
33
  fullPath: any;
34
34
  uuid: any;
35
35
  parent: any;
36
36
  parentId: any;
37
37
  };
38
- setTreeNodeLoading: (node: TreeNode, value: boolean) => void;
39
- extendNodeAttr: (item: TreeNode) => TreeNode & {
40
- __attr__: {
41
- [x: string]: any;
42
- fullPath: any;
43
- uuid: any;
44
- parent: any;
45
- parentId: any;
46
- };
47
- };
48
- getChildNodes: (node: TreeNode) => TreeNode[];
49
- extendNodeScopedData: (item: TreeNode) => {
50
- data: TreeNode;
38
+ setTreeNodeLoading: (node: any, value: boolean) => void;
39
+ extendNodeAttr: (item: any) => any;
40
+ getChildNodes: (node: any) => any;
41
+ extendNodeScopedData: (item: any) => {
42
+ data: any;
51
43
  attributes: {
52
44
  [x: string]: any;
53
45
  fullPath: any;
@@ -56,12 +48,12 @@ declare const _default: (flatData: {
56
48
  parentId: any;
57
49
  };
58
50
  };
59
- getIntersectionResponse: (target: HTMLElement | TreeNode) => {
51
+ getIntersectionResponse: (target: HTMLElement | Record<string, any>) => {
60
52
  level: any;
61
- target: HTMLElement | TreeNode;
53
+ target: HTMLElement | Record<string, any>;
62
54
  index: any;
63
55
  parent: any;
64
- node: HTMLElement | TreeNode;
56
+ node: HTMLElement | Record<string, any>;
65
57
  isRoot: any;
66
58
  };
67
59
  };
@@ -1,6 +1,6 @@
1
1
  import { SearchOption, TreePropTypes } from './props';
2
2
  declare const _default: (props: TreePropTypes) => {
3
- searchFn: (itemValue: unknown, item: unknown) => boolean;
3
+ searchFn: (itemValue: number | string, item: any) => any;
4
4
  refSearch: import("vue").Ref<string | number | boolean | SearchOption>;
5
5
  isSearchActive: import("vue").ComputedRef<boolean>;
6
6
  isSearchDisabled: boolean;
@@ -1,16 +1,13 @@
1
- import { TreeNode, TreePropTypes } from './props';
1
+ import { TreePropTypes } from './props';
2
2
  declare const _default: (props: TreePropTypes) => {
3
3
  flatData: {
4
- data: {
5
- [x: string]: unknown;
6
- children?: any[];
7
- }[];
8
- schema: WeakMap<TreeNode, Record<string, unknown>> & Omit<WeakMap<TreeNode, Record<string, unknown>>, keyof WeakMap<any, any>>;
4
+ data: any[];
5
+ schema: WeakMap<Object, any> & Omit<WeakMap<Object, any>, keyof WeakMap<any, any>>;
9
6
  levelLineSchema: {};
10
7
  };
11
- asyncNodeClick: (item: TreeNode) => Promise<boolean> | Promise<void | Record<string, unknown>>;
8
+ asyncNodeClick: (item: any) => Promise<any>;
12
9
  deepAutoOpen: () => void;
13
- afterDataUpdate: (callFn: (d: any) => void) => void;
10
+ afterDataUpdate: (callFn: (d: any) => any) => void;
14
11
  registerNextLoop: (key: string, event: any, reset?: boolean) => void;
15
12
  onSelected: (event: (d: any) => void) => void;
16
13
  };
@@ -1,22 +1,22 @@
1
- import { TreeNode, TreePropTypes } from './props';
1
+ import { TreePropTypes } from './props';
2
2
  export type IFlatData = {
3
- data: TreeNode[];
4
- schema: WeakMap<TreeNode, Record<string, unknown>>;
3
+ data: any[];
4
+ schema: WeakMap<Object, any>;
5
5
  };
6
6
  /**
7
7
  * 获取当前节点显示Label
8
8
  * @param item 当前节点
9
9
  * @param props Props
10
10
  */
11
- export declare const getLabel: (item: TreeNode, props: TreePropTypes) => unknown;
11
+ export declare const getLabel: (item: any, props: TreePropTypes) => any;
12
12
  /**
13
13
  * 根据Props获取Tree样式设置
14
14
  * @param item
15
15
  * @param props
16
16
  * @returns
17
17
  */
18
- export declare const getTreeStyle: (item: TreeNode, props: TreePropTypes) => {
19
- '--level-line': unknown;
18
+ export declare const getTreeStyle: (item: any, props: TreePropTypes) => {
19
+ '--level-line': any;
20
20
  '--lineHeight': string;
21
21
  '--indent': string;
22
22
  '--offset-left': string;
@@ -27,16 +27,16 @@ export declare const getTreeStyle: (item: TreeNode, props: TreePropTypes) => {
27
27
  * @param props
28
28
  * @returns
29
29
  */
30
- export declare const getNodeItemStyle: (item: TreeNode, props: TreePropTypes, flatData: IFlatData, showTree?: boolean) => {};
30
+ export declare const getNodeItemStyle: any;
31
31
  /**
32
32
  * 获取当前渲染节点Class List
33
33
  * @param item
34
34
  * @returns
35
35
  */
36
- export declare const getNodeItemClass: (item: TreeNode, schema: WeakMap<TreeNode, Record<string, unknown>>, props: TreePropTypes, showTree?: boolean) => {
37
- [x: string]: unknown;
38
- 'is-root': unknown;
39
- 'is-open': unknown;
36
+ export declare const getNodeItemClass: (item: any, schema: WeakMap<Object, any>, props: TreePropTypes, showTree?: boolean) => {
37
+ [x: string]: any;
38
+ 'is-root': any;
39
+ 'is-open': any;
40
40
  'is-virtual-render': boolean;
41
41
  'level-line': boolean;
42
42
  };
@@ -45,12 +45,12 @@ export declare const getNodeItemClass: (item: TreeNode, schema: WeakMap<TreeNode
45
45
  * @param item
46
46
  * @returns
47
47
  */
48
- export declare const getNodeRowClass: (item: TreeNode, schema: WeakMap<TreeNode, Record<string, unknown>>) => {
49
- [x: string]: unknown;
50
- 'is-checked': unknown;
51
- 'is-selected': unknown;
52
- 'node-folder': unknown;
53
- 'node-leaf': unknown;
48
+ export declare const getNodeRowClass: (item: any, schema: WeakMap<Object, any>) => {
49
+ [x: string]: any;
50
+ 'is-checked': any;
51
+ 'is-selected': any;
52
+ 'node-folder': any;
53
+ 'node-leaf': any;
54
54
  };
55
55
  /**
56
56
  * 根据路径更新指定节点Child-Data
@@ -60,7 +60,7 @@ export declare const getNodeRowClass: (item: TreeNode, schema: WeakMap<TreeNode,
60
60
  * @param nodekey 节点key
61
61
  * @param nodeValue 节点值
62
62
  */
63
- export declare const updateTreeNode: (path: string, treeData: TreeNode[], childKey: string, nodekey: string, nodeValue: Record<string, unknown>[]) => void;
63
+ export declare const updateTreeNode: (path: string, treeData: any[], childKey: string, nodekey: string, nodeValue: any) => void;
64
64
  /**
65
65
  * 根据路径更新指定节点Child-Data
66
66
  * @param path 节点路径
@@ -68,7 +68,7 @@ export declare const updateTreeNode: (path: string, treeData: TreeNode[], childK
68
68
  * @param childKey Child Key
69
69
  * @param assignVal value
70
70
  */
71
- export declare const assignTreeNode: (path: string, treeData: TreeNode[], childKey: string, assignVal: Record<string, unknown>) => void;
72
- export declare const resolveNodeItem: (node: TreeNode) => TreeNode;
71
+ export declare const assignTreeNode: (path: string, treeData: any[], childKey: string, assignVal: any) => void;
72
+ export declare const resolveNodeItem: (node: any) => any;
73
73
  export declare const resolvePropIsMatched: (node: any, prop: any, id: any) => any;
74
- export declare const showCheckbox: (props: TreePropTypes, node?: TreeNode) => any;
74
+ export declare const showCheckbox: (props: TreePropTypes, node?: any) => any;
@@ -1,10 +1,5 @@
1
1
  declare const Upload: {
2
2
  new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
3
- type: {
4
- type: import("vue").PropType<"formdata" | "binary">;
5
- default: "formdata" | "binary";
6
- validator: (val: import("./upload.type").ETypes) => boolean;
7
- };
8
3
  theme: {
9
4
  type: import("vue").PropType<"button" | "picture" | "draggable">;
10
5
  default: "button" | "picture" | "draggable";
@@ -93,7 +88,7 @@ declare const Upload: {
93
88
  type: import("vue").PropType<(event: Event) => boolean | void>;
94
89
  };
95
90
  beforeUpload: {
96
- type: import("vue").PropType<(file: import("./upload.type").UploadRawFile, uploadFiles: File[]) => boolean | Promise<boolean>>;
91
+ type: import("vue").PropType<(file: import("./upload.type").UploadRawFile) => boolean | Promise<boolean>>;
97
92
  };
98
93
  beforeRemove: {
99
94
  type: import("vue").PropType<(file: import("./upload.type").UploadFile, uploadFiles: import("./upload.type").UploadFile[]) => boolean | Promise<boolean>>;
@@ -122,11 +117,6 @@ declare const Upload: {
122
117
  onSuccess?: (...args: any[]) => any;
123
118
  onExceed?: (...args: any[]) => any;
124
119
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("done" | "error" | "progress" | "delete" | "success" | "exceed")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
125
- type: {
126
- type: import("vue").PropType<"formdata" | "binary">;
127
- default: "formdata" | "binary";
128
- validator: (val: import("./upload.type").ETypes) => boolean;
129
- };
130
120
  theme: {
131
121
  type: import("vue").PropType<"button" | "picture" | "draggable">;
132
122
  default: "button" | "picture" | "draggable";
@@ -215,7 +205,7 @@ declare const Upload: {
215
205
  type: import("vue").PropType<(event: Event) => boolean | void>;
216
206
  };
217
207
  beforeUpload: {
218
- type: import("vue").PropType<(file: import("./upload.type").UploadRawFile, uploadFiles: File[]) => boolean | Promise<boolean>>;
208
+ type: import("vue").PropType<(file: import("./upload.type").UploadRawFile) => boolean | Promise<boolean>>;
219
209
  };
220
210
  beforeRemove: {
221
211
  type: import("vue").PropType<(file: import("./upload.type").UploadFile, uploadFiles: import("./upload.type").UploadFile[]) => boolean | Promise<boolean>>;
@@ -245,7 +235,6 @@ declare const Upload: {
245
235
  onExceed?: (...args: any[]) => any;
246
236
  }, {
247
237
  name: string;
248
- type: "formdata" | "binary";
249
238
  data: import("./upload.type").ExtraFormData | import("./upload.type").ExtraFormData[];
250
239
  header: import("./upload.type").HeaderDataAttr | import("./upload.type").HeaderDataAttr[];
251
240
  extCls: string;
@@ -274,11 +263,6 @@ declare const Upload: {
274
263
  M: {};
275
264
  Defaults: {};
276
265
  }, Readonly<import("vue").ExtractPropTypes<{
277
- type: {
278
- type: import("vue").PropType<"formdata" | "binary">;
279
- default: "formdata" | "binary";
280
- validator: (val: import("./upload.type").ETypes) => boolean;
281
- };
282
266
  theme: {
283
267
  type: import("vue").PropType<"button" | "picture" | "draggable">;
284
268
  default: "button" | "picture" | "draggable";
@@ -367,7 +351,7 @@ declare const Upload: {
367
351
  type: import("vue").PropType<(event: Event) => boolean | void>;
368
352
  };
369
353
  beforeUpload: {
370
- type: import("vue").PropType<(file: import("./upload.type").UploadRawFile, uploadFiles: File[]) => boolean | Promise<boolean>>;
354
+ type: import("vue").PropType<(file: import("./upload.type").UploadRawFile) => boolean | Promise<boolean>>;
371
355
  };
372
356
  beforeRemove: {
373
357
  type: import("vue").PropType<(file: import("./upload.type").UploadFile, uploadFiles: import("./upload.type").UploadFile[]) => boolean | Promise<boolean>>;
@@ -397,7 +381,6 @@ declare const Upload: {
397
381
  onExceed?: (...args: any[]) => any;
398
382
  }, () => JSX.Element, {}, {}, {}, {
399
383
  name: string;
400
- type: "formdata" | "binary";
401
384
  data: import("./upload.type").ExtraFormData | import("./upload.type").ExtraFormData[];
402
385
  header: import("./upload.type").HeaderDataAttr | import("./upload.type").HeaderDataAttr[];
403
386
  extCls: string;
@@ -423,11 +406,6 @@ declare const Upload: {
423
406
  __isTeleport?: never;
424
407
  __isSuspense?: never;
425
408
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
426
- type: {
427
- type: import("vue").PropType<"formdata" | "binary">;
428
- default: "formdata" | "binary";
429
- validator: (val: import("./upload.type").ETypes) => boolean;
430
- };
431
409
  theme: {
432
410
  type: import("vue").PropType<"button" | "picture" | "draggable">;
433
411
  default: "button" | "picture" | "draggable";
@@ -516,7 +494,7 @@ declare const Upload: {
516
494
  type: import("vue").PropType<(event: Event) => boolean | void>;
517
495
  };
518
496
  beforeUpload: {
519
- type: import("vue").PropType<(file: import("./upload.type").UploadRawFile, uploadFiles: File[]) => boolean | Promise<boolean>>;
497
+ type: import("vue").PropType<(file: import("./upload.type").UploadRawFile) => boolean | Promise<boolean>>;
520
498
  };
521
499
  beforeRemove: {
522
500
  type: import("vue").PropType<(file: import("./upload.type").UploadFile, uploadFiles: import("./upload.type").UploadFile[]) => boolean | Promise<boolean>>;
@@ -546,7 +524,6 @@ declare const Upload: {
546
524
  onExceed?: (...args: any[]) => any;
547
525
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("done" | "error" | "progress" | "delete" | "success" | "exceed")[], "done" | "error" | "progress" | "delete" | "success" | "exceed", {
548
526
  name: string;
549
- type: "formdata" | "binary";
550
527
  data: import("./upload.type").ExtraFormData | import("./upload.type").ExtraFormData[];
551
528
  header: import("./upload.type").HeaderDataAttr | import("./upload.type").HeaderDataAttr[];
552
529
  extCls: string;
@@ -1292,11 +1292,6 @@ var EThemes;
1292
1292
  EThemes["DRAGGABLE"] = "draggable";
1293
1293
  EThemes["PICTURE"] = "picture";
1294
1294
  })(EThemes || (EThemes = {}));
1295
- var ETypes;
1296
- (function (ETypes) {
1297
- ETypes["BINARY"] = "binary";
1298
- ETypes["FORMDATA"] = "formdata";
1299
- })(ETypes || (ETypes = {}));
1300
1295
  var EUploadStatus;
1301
1296
  (function (EUploadStatus) {
1302
1297
  EUploadStatus["FAIL"] = "fail";
@@ -1332,19 +1327,7 @@ var EUploadStatus;
1332
1327
  */
1333
1328
 
1334
1329
  var themes = [EThemes.BUTTON, EThemes.DRAGGABLE, EThemes.PICTURE];
1335
- var types = [ETypes.FORMDATA, ETypes.BINARY];
1336
1330
  /* harmony default export */ const props = ({
1337
- type: {
1338
- type: String,
1339
- "default": 'formdata',
1340
- validator: function validator(val) {
1341
- if (!val || types.includes(val)) {
1342
- return true;
1343
- }
1344
- console.error("invalid type, ".concat(val, ", the type must be one of \u3010").concat(types.join(' | '), "\u3011"));
1345
- return false;
1346
- }
1347
- },
1348
1331
  theme: {
1349
1332
  type: String,
1350
1333
  "default": 'draggable',
@@ -2069,9 +2052,7 @@ var ajaxUpload = function ajaxUpload(option) {
2069
2052
  throw new Error('XMLHttpRequest is undefined');
2070
2053
  }
2071
2054
  var xhr = new XMLHttpRequest();
2072
- var action = option.action,
2073
- type = option.type;
2074
- var isFormdata = type === 'formdata';
2055
+ var action = option.action;
2075
2056
  if (xhr.upload) {
2076
2057
  xhr.upload.addEventListener('progress', function (event) {
2077
2058
  var progressEvent = event;
@@ -2080,7 +2061,7 @@ var ajaxUpload = function ajaxUpload(option) {
2080
2061
  });
2081
2062
  }
2082
2063
  var formData = new FormData();
2083
- if (isFormdata && option.data) {
2064
+ if (option.data) {
2084
2065
  var appendData = option.data;
2085
2066
  if (!Array.isArray(appendData)) {
2086
2067
  appendData = [appendData];
@@ -2094,7 +2075,7 @@ var ajaxUpload = function ajaxUpload(option) {
2094
2075
  }
2095
2076
  });
2096
2077
  }
2097
- if (isFormdata && option.formDataAttributes) {
2078
+ if (option.formDataAttributes) {
2098
2079
  var _appendData = option.formDataAttributes;
2099
2080
  if (!Array.isArray(_appendData)) {
2100
2081
  _appendData = [_appendData];
@@ -2103,9 +2084,7 @@ var ajaxUpload = function ajaxUpload(option) {
2103
2084
  if (Array.isArray(item.value)) formData.append.apply(formData, [item.name].concat(_toConsumableArray(item.value)));else formData.append(item.name, item.value);
2104
2085
  });
2105
2086
  }
2106
- if (isFormdata) {
2107
- formData.append(option.filename, option.file, option.file.name);
2108
- }
2087
+ formData.append(option.filename, option.file, option.file.name);
2109
2088
  xhr.addEventListener('error', function () {
2110
2089
  option.onError(new Error('An error occurred during upload'));
2111
2090
  });
@@ -2149,7 +2128,7 @@ var ajaxUpload = function ajaxUpload(option) {
2149
2128
  xhr.setRequestHeader(key, String(value));
2150
2129
  }
2151
2130
  }
2152
- xhr.send(isFormdata ? formData : option.file);
2131
+ xhr.send(formData);
2153
2132
  return xhr;
2154
2133
  };
2155
2134
  // 该方法用于在不同的浏览器使用不同的方式
@@ -2727,7 +2706,7 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
2727
2706
  case 2:
2728
2707
  _context.prev = 2;
2729
2708
  _context.next = 5;
2730
- return (_props$beforeUpload = props.beforeUpload) === null || _props$beforeUpload === void 0 ? void 0 : _props$beforeUpload.call(props, file, sendFiles);
2709
+ return (_props$beforeUpload = props.beforeUpload) === null || _props$beforeUpload === void 0 ? void 0 : _props$beforeUpload.call(props, file);
2731
2710
  case 5:
2732
2711
  beforeResult = _context.sent;
2733
2712
  _context.next = 11;
@@ -2754,8 +2733,7 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
2754
2733
  return _upload.apply(this, arguments);
2755
2734
  }
2756
2735
  function send(file, sendFiles) {
2757
- var type = props.type,
2758
- headers = props.headers,
2736
+ var headers = props.headers,
2759
2737
  header = props.header,
2760
2738
  data = props.data,
2761
2739
  formDataAttributes = props.formDataAttributes,
@@ -2769,7 +2747,6 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
2769
2747
  customRequest = props.customRequest;
2770
2748
  var uid = file.uid;
2771
2749
  var options = {
2772
- type: type,
2773
2750
  headers: headers,
2774
2751
  header: header,
2775
2752
  withCredentials: withCredentials,
@@ -1,11 +1,6 @@
1
- import { APIResponse, EThemes, ETypes, ExtraFormData, FormDataAttr, HeaderDataAttr, MaxSize, UploadFile, UploadRawFile, UploadRequestHandler } from './upload.type';
1
+ import { APIResponse, EThemes, ExtraFormData, FormDataAttr, HeaderDataAttr, MaxSize, UploadFile, UploadRawFile, UploadRequestHandler } from './upload.type';
2
2
  import type { PropType } from 'vue';
3
3
  declare const _default: {
4
- type: {
5
- type: PropType<"formdata" | "binary">;
6
- default: "formdata" | "binary";
7
- validator: (val: ETypes) => boolean;
8
- };
9
4
  theme: {
10
5
  type: PropType<"button" | "picture" | "draggable">;
11
6
  default: "button" | "picture" | "draggable";
@@ -94,7 +89,7 @@ declare const _default: {
94
89
  type: PropType<(event: Event) => boolean | void>;
95
90
  };
96
91
  beforeUpload: {
97
- type: PropType<(file: UploadRawFile, uploadFiles: File[]) => Promise<boolean> | boolean>;
92
+ type: PropType<(file: UploadRawFile) => Promise<boolean> | boolean>;
98
93
  };
99
94
  beforeRemove: {
100
95
  type: PropType<(file: UploadFile, uploadFiles: UploadFile[]) => Promise<boolean> | boolean>;