@silver-formily/element-plus 0.0.1-alpha.0 → 0.0.1-alpha.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 (321) hide show
  1. package/package.json +1 -1
  2. package/esm/__builtins__/configs/index.d.ts +0 -1
  3. package/esm/__builtins__/configs/index.mjs +0 -5
  4. package/esm/__builtins__/configs/index.mjs.map +0 -1
  5. package/esm/__builtins__/index.d.ts +0 -2
  6. package/esm/__builtins__/index.mjs +0 -27
  7. package/esm/__builtins__/index.mjs.map +0 -1
  8. package/esm/__builtins__/shared/hooks.d.ts +0 -7
  9. package/esm/__builtins__/shared/hooks.mjs +0 -59
  10. package/esm/__builtins__/shared/hooks.mjs.map +0 -1
  11. package/esm/__builtins__/shared/index.d.ts +0 -7
  12. package/esm/__builtins__/shared/index.mjs +0 -25
  13. package/esm/__builtins__/shared/index.mjs.map +0 -1
  14. package/esm/__builtins__/shared/load-config-provider.d.ts +0 -2
  15. package/esm/__builtins__/shared/load-config-provider.mjs +0 -13
  16. package/esm/__builtins__/shared/load-config-provider.mjs.map +0 -1
  17. package/esm/__builtins__/shared/loading.d.ts +0 -12
  18. package/esm/__builtins__/shared/loading.mjs +0 -49
  19. package/esm/__builtins__/shared/loading.mjs.map +0 -1
  20. package/esm/__builtins__/shared/simple-version-compare.d.ts +0 -2
  21. package/esm/__builtins__/shared/simple-version-compare.mjs +0 -18
  22. package/esm/__builtins__/shared/simple-version-compare.mjs.map +0 -1
  23. package/esm/__builtins__/shared/transform-component.d.ts +0 -8
  24. package/esm/__builtins__/shared/transform-component.mjs +0 -50
  25. package/esm/__builtins__/shared/transform-component.mjs.map +0 -1
  26. package/esm/__builtins__/shared/types.d.ts +0 -2
  27. package/esm/__builtins__/shared/types.mjs +0 -2
  28. package/esm/__builtins__/shared/types.mjs.map +0 -1
  29. package/esm/__builtins__/shared/utils.d.ts +0 -8
  30. package/esm/__builtins__/shared/utils.mjs +0 -34
  31. package/esm/__builtins__/shared/utils.mjs.map +0 -1
  32. package/esm/array-base/array-base-addition.d.ts +0 -5
  33. package/esm/array-base/array-base-index.d.ts +0 -19
  34. package/esm/array-base/array-base-inner.d.ts +0 -18
  35. package/esm/array-base/array-base-item.d.ts +0 -18
  36. package/esm/array-base/array-base-move-down.d.ts +0 -18
  37. package/esm/array-base/array-base-move-up.d.ts +0 -18
  38. package/esm/array-base/array-base-remove.d.ts +0 -18
  39. package/esm/array-base/array-base-sort-handle.d.ts +0 -2
  40. package/esm/array-base/index.d.ts +0 -114
  41. package/esm/array-base/index.mjs +0 -225
  42. package/esm/array-base/index.mjs.map +0 -1
  43. package/esm/array-base/symbols.d.ts +0 -4
  44. package/esm/array-base/symbols.mjs +0 -6
  45. package/esm/array-base/symbols.mjs.map +0 -1
  46. package/esm/array-base/types.d.ts +0 -28
  47. package/esm/array-base/types.mjs +0 -2
  48. package/esm/array-base/types.mjs.map +0 -1
  49. package/esm/array-base/utils.d.ts +0 -18
  50. package/esm/array-base/utils.mjs +0 -88
  51. package/esm/array-base/utils.mjs.map +0 -1
  52. package/esm/array-cards/array-cards.d.ts +0 -13
  53. package/esm/array-cards/index.d.ts +0 -122
  54. package/esm/array-cards/index.mjs +0 -119
  55. package/esm/array-cards/index.mjs.map +0 -1
  56. package/esm/array-collapse/array-collapse-item.d.ts +0 -18
  57. package/esm/array-collapse/array-collapse.d.ts +0 -16
  58. package/esm/array-collapse/index.d.ts +0 -134
  59. package/esm/array-collapse/index.mjs +0 -180
  60. package/esm/array-collapse/index.mjs.map +0 -1
  61. package/esm/array-collapse/utils.d.ts +0 -1
  62. package/esm/array-collapse/utils.mjs +0 -12
  63. package/esm/array-collapse/utils.mjs.map +0 -1
  64. package/esm/array-items/array-items-item.d.ts +0 -30
  65. package/esm/array-items/array-items.d.ts +0 -2
  66. package/esm/array-items/index.d.ts +0 -130
  67. package/esm/array-items/index.mjs +0 -105
  68. package/esm/array-items/index.mjs.map +0 -1
  69. package/esm/array-list-tabs/array-list-tabs.d.ts +0 -31
  70. package/esm/array-list-tabs/index.d.ts +0 -83
  71. package/esm/array-list-tabs/index.mjs +0 -183
  72. package/esm/array-list-tabs/index.mjs.map +0 -1
  73. package/esm/array-list-tabs/utils.d.ts +0 -3
  74. package/esm/array-list-tabs/utils.mjs +0 -16
  75. package/esm/array-list-tabs/utils.mjs.map +0 -1
  76. package/esm/array-table/index.mjs +0 -230
  77. package/esm/array-table/index.mjs.map +0 -1
  78. package/esm/array-table/types.d.ts +0 -6
  79. package/esm/array-table/types.mjs +0 -2
  80. package/esm/array-table/types.mjs.map +0 -1
  81. package/esm/array-table/utils.d.ts +0 -5
  82. package/esm/array-table/utils.mjs +0 -26
  83. package/esm/array-table/utils.mjs.map +0 -1
  84. package/esm/array-tabs/array-tabs.d.ts +0 -2
  85. package/esm/array-tabs/index.d.ts +0 -2
  86. package/esm/array-tabs/index.mjs +0 -88
  87. package/esm/array-tabs/index.mjs.map +0 -1
  88. package/esm/cascader/cascader.d.ts +0 -30
  89. package/esm/cascader/index.d.ts +0 -41
  90. package/esm/cascader/index.mjs +0 -54
  91. package/esm/cascader/index.mjs.map +0 -1
  92. package/esm/checkbox/checkbox-group.d.ts +0 -58
  93. package/esm/checkbox/index.d.ts +0 -716
  94. package/esm/checkbox/index.mjs +0 -86
  95. package/esm/checkbox/index.mjs.map +0 -1
  96. package/esm/date-picker/index.d.ts +0 -2
  97. package/esm/date-picker/index.mjs +0 -57
  98. package/esm/date-picker/index.mjs.map +0 -1
  99. package/esm/editable/editable-popover.d.ts +0 -25
  100. package/esm/editable/editable.d.ts +0 -187
  101. package/esm/editable/index.d.ts +0 -147
  102. package/esm/editable/index.mjs +0 -231
  103. package/esm/editable/index.mjs.map +0 -1
  104. package/esm/form/form.d.ts +0 -46
  105. package/esm/form/form.mjs +0 -77
  106. package/esm/form/form.mjs.map +0 -1
  107. package/esm/form/index.d.ts +0 -1
  108. package/esm/form/index.mjs +0 -6
  109. package/esm/form/index.mjs.map +0 -1
  110. package/esm/form-button-group/form-button-group-sticky.d.ts +0 -17
  111. package/esm/form-button-group/form-button-group.d.ts +0 -48
  112. package/esm/form-button-group/index.d.ts +0 -87
  113. package/esm/form-button-group/index.mjs +0 -90
  114. package/esm/form-button-group/index.mjs.map +0 -1
  115. package/esm/form-button-group/utils.d.ts +0 -1
  116. package/esm/form-button-group/utils.mjs +0 -12
  117. package/esm/form-button-group/utils.mjs.map +0 -1
  118. package/esm/form-collapse/form-collapse.d.ts +0 -18
  119. package/esm/form-collapse/index.d.ts +0 -45
  120. package/esm/form-collapse/index.mjs +0 -103
  121. package/esm/form-collapse/index.mjs.map +0 -1
  122. package/esm/form-collapse/utils.d.ts +0 -31
  123. package/esm/form-collapse/utils.mjs +0 -54
  124. package/esm/form-collapse/utils.mjs.map +0 -1
  125. package/esm/form-dialog/dialog-content.d.ts +0 -60
  126. package/esm/form-dialog/index.d.ts +0 -4
  127. package/esm/form-dialog/index.mjs +0 -209
  128. package/esm/form-dialog/index.mjs.map +0 -1
  129. package/esm/form-dialog/types.d.ts +0 -32
  130. package/esm/form-dialog/types.mjs +0 -2
  131. package/esm/form-dialog/types.mjs.map +0 -1
  132. package/esm/form-drawer/drawer-content.d.ts +0 -60
  133. package/esm/form-drawer/index.d.ts +0 -4
  134. package/esm/form-drawer/index.mjs +0 -203
  135. package/esm/form-drawer/index.mjs.map +0 -1
  136. package/esm/form-drawer/types.d.ts +0 -32
  137. package/esm/form-drawer/types.mjs +0 -2
  138. package/esm/form-drawer/types.mjs.map +0 -1
  139. package/esm/form-grid/form-grid-column.d.ts +0 -29
  140. package/esm/form-grid/form-grid.d.ts +0 -101
  141. package/esm/form-grid/hooks.d.ts +0 -4
  142. package/esm/form-grid/hooks.mjs +0 -7
  143. package/esm/form-grid/hooks.mjs.map +0 -1
  144. package/esm/form-grid/index.d.ts +0 -182
  145. package/esm/form-grid/index.mjs +0 -106
  146. package/esm/form-grid/index.mjs.map +0 -1
  147. package/esm/form-item/form-item.d.ts +0 -18
  148. package/esm/form-item/index.d.ts +0 -70
  149. package/esm/form-item/index.mjs +0 -346
  150. package/esm/form-item/index.mjs.map +0 -1
  151. package/esm/form-item/types.d.ts +0 -25
  152. package/esm/form-item/types.mjs +0 -2
  153. package/esm/form-item/types.mjs.map +0 -1
  154. package/esm/form-item/utils.d.ts +0 -3
  155. package/esm/form-item/utils.mjs +0 -18
  156. package/esm/form-item/utils.mjs.map +0 -1
  157. package/esm/form-layout/form-layout.d.ts +0 -32
  158. package/esm/form-layout/form-layout.mjs +0 -86
  159. package/esm/form-layout/form-layout.mjs.map +0 -1
  160. package/esm/form-layout/index.d.ts +0 -1
  161. package/esm/form-layout/index.mjs +0 -6
  162. package/esm/form-layout/index.mjs.map +0 -1
  163. package/esm/form-layout/types.d.ts +0 -43
  164. package/esm/form-layout/types.mjs +0 -2
  165. package/esm/form-layout/types.mjs.map +0 -1
  166. package/esm/form-layout/utils.d.ts +0 -57
  167. package/esm/form-layout/utils.mjs +0 -109
  168. package/esm/form-layout/utils.mjs.map +0 -1
  169. package/esm/form-step/form-step-pane.d.ts +0 -2
  170. package/esm/form-step/form-step.d.ts +0 -5
  171. package/esm/form-step/index.d.ts +0 -24
  172. package/esm/form-step/index.mjs +0 -96
  173. package/esm/form-step/index.mjs.map +0 -1
  174. package/esm/form-step/types.d.ts +0 -21
  175. package/esm/form-step/types.mjs +0 -2
  176. package/esm/form-step/types.mjs.map +0 -1
  177. package/esm/form-step/utils.d.ts +0 -11
  178. package/esm/form-step/utils.mjs +0 -66
  179. package/esm/form-step/utils.mjs.map +0 -1
  180. package/esm/form-tab/form-tab.d.ts +0 -7
  181. package/esm/form-tab/hooks.d.ts +0 -7
  182. package/esm/form-tab/hooks.mjs +0 -32
  183. package/esm/form-tab/hooks.mjs.map +0 -1
  184. package/esm/form-tab/index.d.ts +0 -28
  185. package/esm/form-tab/index.mjs +0 -80
  186. package/esm/form-tab/index.mjs.map +0 -1
  187. package/esm/form-tab/types.d.ts +0 -12
  188. package/esm/form-tab/types.mjs +0 -2
  189. package/esm/form-tab/types.mjs.map +0 -1
  190. package/esm/form-tab/utils.d.ts +0 -4
  191. package/esm/form-tab/utils.mjs +0 -14
  192. package/esm/form-tab/utils.mjs.map +0 -1
  193. package/esm/index.d.ts +0 -37
  194. package/esm/index.mjs +0 -81
  195. package/esm/index.mjs.map +0 -1
  196. package/esm/input/index.d.ts +0 -84
  197. package/esm/input/index.mjs +0 -77
  198. package/esm/input/index.mjs.map +0 -1
  199. package/esm/input/input.d.ts +0 -32
  200. package/esm/input-number/index.d.ts +0 -4
  201. package/esm/input-number/index.mjs +0 -30
  202. package/esm/input-number/index.mjs.map +0 -1
  203. package/esm/pagination/components/jumper.d.ts +0 -16
  204. package/esm/pagination/components/jumper.mjs +0 -12
  205. package/esm/pagination/components/jumper.mjs.map +0 -1
  206. package/esm/pagination/components/next.d.ts +0 -42
  207. package/esm/pagination/components/next.mjs +0 -23
  208. package/esm/pagination/components/next.mjs.map +0 -1
  209. package/esm/pagination/components/pager.d.ts +0 -42
  210. package/esm/pagination/components/pager.mjs +0 -23
  211. package/esm/pagination/components/pager.mjs.map +0 -1
  212. package/esm/pagination/components/prev.d.ts +0 -39
  213. package/esm/pagination/components/prev.mjs +0 -22
  214. package/esm/pagination/components/prev.mjs.map +0 -1
  215. package/esm/pagination/components/sizes.d.ts +0 -56
  216. package/esm/pagination/components/sizes.mjs +0 -7
  217. package/esm/pagination/components/sizes.mjs.map +0 -1
  218. package/esm/pagination/components/total.d.ts +0 -8
  219. package/esm/pagination/components/total.mjs +0 -11
  220. package/esm/pagination/components/total.mjs.map +0 -1
  221. package/esm/pagination/pagination.d.ts +0 -128
  222. package/esm/pagination/pagination.mjs +0 -631
  223. package/esm/pagination/pagination.mjs.map +0 -1
  224. package/esm/password/index.d.ts +0 -86
  225. package/esm/password/index.mjs +0 -14
  226. package/esm/password/index.mjs.map +0 -1
  227. package/esm/preview-text/cascader.d.ts +0 -5
  228. package/esm/preview-text/date-picker.d.ts +0 -5
  229. package/esm/preview-text/index.d.ts +0 -102
  230. package/esm/preview-text/index.mjs +0 -321
  231. package/esm/preview-text/index.mjs.map +0 -1
  232. package/esm/preview-text/input.d.ts +0 -28
  233. package/esm/preview-text/preview.d.ts +0 -18
  234. package/esm/preview-text/select.d.ts +0 -5
  235. package/esm/preview-text/time-picker.d.ts +0 -5
  236. package/esm/preview-text/tree.d.ts +0 -22
  237. package/esm/preview-text/utils.d.ts +0 -14
  238. package/esm/preview-text/utils.mjs +0 -16
  239. package/esm/preview-text/utils.mjs.map +0 -1
  240. package/esm/radio/index.d.ts +0 -634
  241. package/esm/radio/index.mjs +0 -80
  242. package/esm/radio/index.mjs.map +0 -1
  243. package/esm/radio/radio-group.d.ts +0 -44
  244. package/esm/reset/index.d.ts +0 -63
  245. package/esm/reset/index.mjs +0 -48
  246. package/esm/reset/index.mjs.map +0 -1
  247. package/esm/reset/reset.d.ts +0 -45
  248. package/esm/select/index.d.ts +0 -142
  249. package/esm/select/index.mjs +0 -132
  250. package/esm/select/index.mjs.map +0 -1
  251. package/esm/select/select.d.ts +0 -50
  252. package/esm/select-table/index.mjs +0 -204
  253. package/esm/select-table/index.mjs.map +0 -1
  254. package/esm/select-table/types.d.ts +0 -14
  255. package/esm/select-table/types.mjs +0 -2
  256. package/esm/select-table/types.mjs.map +0 -1
  257. package/esm/space/index.d.ts +0 -1
  258. package/esm/space/index.mjs +0 -6
  259. package/esm/space/index.mjs.map +0 -1
  260. package/esm/styles/array-base/index.css +0 -1
  261. package/esm/styles/array-cards/index.css +0 -1
  262. package/esm/styles/array-collapse/index.css +0 -1
  263. package/esm/styles/array-items/index.css +0 -1
  264. package/esm/styles/array-list-tabs/index.css +0 -1
  265. package/esm/styles/array-table/index.css +0 -1
  266. package/esm/styles/array-tabs/index.css +0 -1
  267. package/esm/styles/editable/index.css +0 -1
  268. package/esm/styles/form-button-group/index.css +0 -1
  269. package/esm/styles/form-collapse/index.css +0 -1
  270. package/esm/styles/form-grid/index.css +0 -1
  271. package/esm/styles/form-item/index.css +0 -1
  272. package/esm/styles/form-tab/index.css +0 -1
  273. package/esm/styles/preview-text/index.css +0 -1
  274. package/esm/styles/radio/index.css +0 -1
  275. package/esm/styles/select-table/index.css +0 -1
  276. package/esm/submit/index.d.ts +0 -48
  277. package/esm/submit/index.mjs +0 -47
  278. package/esm/submit/index.mjs.map +0 -1
  279. package/esm/submit/submit.d.ts +0 -36
  280. package/esm/switch/index.d.ts +0 -4
  281. package/esm/switch/index.mjs +0 -19
  282. package/esm/switch/index.mjs.map +0 -1
  283. package/esm/time-picker/index.d.ts +0 -4
  284. package/esm/time-picker/index.mjs +0 -21
  285. package/esm/time-picker/index.mjs.map +0 -1
  286. package/esm/time-select/index.d.ts +0 -2
  287. package/esm/time-select/index.mjs +0 -21
  288. package/esm/time-select/index.mjs.map +0 -1
  289. package/esm/transfer/index.d.ts +0 -1509
  290. package/esm/transfer/index.mjs +0 -11
  291. package/esm/transfer/index.mjs.map +0 -1
  292. package/esm/tree/index.d.ts +0 -42
  293. package/esm/tree/index.mjs +0 -105
  294. package/esm/tree/index.mjs.map +0 -1
  295. package/esm/tree/tree.d.ts +0 -20
  296. package/esm/tree/types.d.ts +0 -13
  297. package/esm/tree/types.mjs +0 -2
  298. package/esm/tree/types.mjs.map +0 -1
  299. package/esm/tree/utils.d.ts +0 -45
  300. package/esm/tree/utils.mjs +0 -161
  301. package/esm/tree/utils.mjs.map +0 -1
  302. package/esm/tree-select/index.d.ts +0 -32
  303. package/esm/tree-select/index.mjs +0 -51
  304. package/esm/tree-select/index.mjs.map +0 -1
  305. package/esm/tree-select/tree-select.d.ts +0 -17
  306. package/esm/upload/index.d.ts +0 -889
  307. package/esm/upload/index.mjs +0 -185
  308. package/esm/upload/index.mjs.map +0 -1
  309. package/esm/upload/upload.d.ts +0 -1613
  310. package/esm/vendor/icon.mjs +0 -11
  311. package/esm/vendor/icon.mjs.map +0 -1
  312. package/esm/vendor/lodash.mjs +0 -1400
  313. package/esm/vendor/lodash.mjs.map +0 -1
  314. package/esm/vendor/runtime.mjs +0 -29
  315. package/esm/vendor/runtime.mjs.map +0 -1
  316. package/esm/vendor/shared.esm-bundler.mjs +0 -14
  317. package/esm/vendor/shared.esm-bundler.mjs.map +0 -1
  318. package/esm/vendor/sizes.mjs +0 -27
  319. package/esm/vendor/sizes.mjs.map +0 -1
  320. package/esm/vendor/types.mjs +0 -19
  321. package/esm/vendor/types.mjs.map +0 -1
@@ -1,11 +0,0 @@
1
- import { connect as a, mapProps as r } from "@formily/vue";
2
- import { ElTransfer as o } from "element-plus";
3
- const m = a(
4
- o,
5
- r({ dataSource: "data", value: "modelValue" })
6
- );
7
- export {
8
- m as Transfer,
9
- m as default
10
- };
11
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sources":["../../src/transfer/index.ts"],"sourcesContent":["import { connect, mapProps } from '@formily/vue'\n\nimport { ElTransfer } from 'element-plus'\n\nexport type TransferProps = typeof ElTransfer\n\nexport const Transfer = connect(\n ElTransfer,\n mapProps({ dataSource: 'data', value: 'modelValue' }),\n)\n\nexport default Transfer\n"],"names":["Transfer","connect","ElTransfer","mapProps"],"mappings":";;AAMO,MAAMA,IAAWC;AAAA,EACtBC;AAAA,EACAC,EAAS,EAAE,YAAY,QAAQ,OAAO,cAAc;AACtD;"}
@@ -1,42 +0,0 @@
1
- declare const Tree: {
2
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').TreeValueTypeProps> & Readonly<{
3
- onChange?: (value: any) => any;
4
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
- change: (value: any) => any;
6
- }, import('vue').PublicProps, {
7
- props: any;
8
- valueType: "all" | "parent" | "child" | "path";
9
- includeHalfChecked: boolean;
10
- optionAsValue: boolean;
11
- }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, any, any, import('vue').ComponentProvideOptions, {
12
- P: {};
13
- B: {};
14
- D: {};
15
- C: {};
16
- M: {};
17
- Defaults: {};
18
- }, Readonly<import('./types').TreeValueTypeProps> & Readonly<{
19
- onChange?: (value: any) => any;
20
- }>, {}, {}, {}, {}, {
21
- props: any;
22
- valueType: "all" | "parent" | "child" | "path";
23
- includeHalfChecked: boolean;
24
- optionAsValue: boolean;
25
- }>;
26
- __isFragment?: never;
27
- __isTeleport?: never;
28
- __isSuspense?: never;
29
- } & import('vue').ComponentOptionsBase<Readonly<import('./types').TreeValueTypeProps> & Readonly<{
30
- onChange?: (value: any) => any;
31
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
32
- change: (value: any) => any;
33
- }, string, {
34
- props: any;
35
- valueType: "all" | "parent" | "child" | "path";
36
- includeHalfChecked: boolean;
37
- optionAsValue: boolean;
38
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
39
- $slots: any;
40
- });
41
- export { Tree };
42
- export default Tree;
@@ -1,105 +0,0 @@
1
- import { useField as D, connect as H, mapProps as F } from "@formily/vue";
2
- import { defineComponent as P, useSlots as R, ref as y, computed as v, watch as k, nextTick as g, createBlock as C, openBlock as T, unref as a, withCtx as K, withDirectives as w, mergeProps as B, createSlots as V, renderList as E, renderSlot as L, normalizeProps as j, guardReactiveProps as z } from "vue";
3
- import { ElScrollbar as I, ElTree as N, vLoading as O } from "element-plus";
4
- import "@formily/reactive";
5
- import { mapReadPretty as $ } from "../__builtins__/shared/transform-component.mjs";
6
- import { PreviewText as q } from "../preview-text/index.mjs";
7
- import { isFn as G } from "@formily/shared";
8
- import "@formily/core";
9
- import "@formily/reactive-vue";
10
- import { useCleanAttrs as J } from "../__builtins__/shared/utils.mjs";
11
- import { addDisabledToNodes as M, flattenTree as Q, getInputKeys as U, getOutputData as W } from "./utils.mjs";
12
- const X = /* @__PURE__ */ P({
13
- name: "Tree",
14
- inheritAttrs: !1,
15
- __name: "tree",
16
- props: {
17
- nodeKey: null,
18
- data: null,
19
- value: null,
20
- valueType: { default: "all" },
21
- includeHalfChecked: { type: Boolean, default: !1 },
22
- optionAsValue: { type: Boolean, default: !1 },
23
- props: { default: {
24
- children: "children",
25
- label: "label",
26
- disabled: "disabled"
27
- } },
28
- optionFormatter: { type: Function },
29
- height: null,
30
- maxHeight: null
31
- },
32
- emits: ["change"],
33
- setup(b, { emit: x }) {
34
- var f;
35
- const e = b, i = x, S = R(), { props: l } = J(), o = y(), n = y([]), c = v(() => M(e.data ?? [], l.value.disabled, e.props)), d = v(() => Q(c.value ?? [], [], e.props.children));
36
- async function p() {
37
- await g();
38
- const t = o.value.getCheckedKeys(), h = o.value.getHalfCheckedKeys() || [];
39
- n.value = t;
40
- const { value: m, nodes: r } = W(t, h, {
41
- flatData: d.value,
42
- nodeKey: e.nodeKey,
43
- propsConfig: e.props,
44
- data: e.data ?? [],
45
- valueType: e.valueType,
46
- includeHalfChecked: e.includeHalfChecked,
47
- checkStrictly: l.value.checkStrictly
48
- });
49
- e.optionAsValue ? G(e.optionFormatter) ? i("change", r.map((s, _, A) => e.optionFormatter(s, _, A))) : i("change", r) : i("change", m);
50
- }
51
- k(() => e.value, (t) => {
52
- t !== void 0 && (n.value = U(t, {
53
- optionAsValue: e.optionAsValue,
54
- nodeKey: e.nodeKey,
55
- flatData: d.value,
56
- propsConfig: e.props,
57
- data: e.data ?? [],
58
- valueType: e.valueType,
59
- checkStrictly: l.value.checkStrictly
60
- }), g(() => {
61
- o.value && o.value.setCheckedKeys(n.value);
62
- }));
63
- }, { immediate: !0 }), k(() => [e.valueType, e.optionAsValue, e.includeHalfChecked], () => {
64
- p();
65
- }, { immediate: !1 });
66
- const u = D();
67
- return (f = u.value) == null || f.inject({
68
- getTreeRef: () => o
69
- }), (t, h) => (T(), C(a(I), {
70
- height: e.height,
71
- "max-height": e.maxHeight
72
- }, {
73
- default: K(() => [
74
- w((T(), C(a(N), B({
75
- ref_key: "treeRef",
76
- ref: o,
77
- data: c.value,
78
- props: e.props,
79
- "node-key": e.nodeKey,
80
- "default-checked-keys": n.value,
81
- "show-checkbox": !0
82
- }, a(l), { onCheck: p }), V({ _: 2 }, [
83
- E(a(S), (m, r) => ({
84
- name: r,
85
- fn: K((s) => [
86
- L(t.$slots, r, j(z({ field: a(u), ...s })))
87
- ])
88
- }))
89
- ]), 1040, ["data", "props", "node-key", "default-checked-keys"])), [
90
- [a(O), a(l).loading]
91
- ])
92
- ]),
93
- _: 3
94
- }, 8, ["height", "max-height"]));
95
- }
96
- }), ce = H(
97
- X,
98
- F({ dataSource: "data", loading: "loading", disabled: !0 }),
99
- $(q.Tree)
100
- );
101
- export {
102
- ce as Tree,
103
- ce as default
104
- };
105
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sources":["../../src/tree/tree.vue","../../src/tree/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { Field } from '@formily/core'\nimport type { TreeValueTypeProps } from './types'\nimport { isFn } from '@formily/shared'\nimport { useField } from '@formily/vue'\nimport { ElScrollbar, ElTree, vLoading } from 'element-plus'\nimport { computed, nextTick, ref, useSlots, watch } from 'vue'\nimport { useCleanAttrs } from '../__builtins__'\nimport { addDisabledToNodes, flattenTree, getInputKeys, getOutputData } from './utils'\n\ndefineOptions({\n name: 'Tree',\n inheritAttrs: false,\n})\n\nconst props = defineProps({\n nodeKey: null,\n data: null,\n value: null,\n valueType: { default: 'all' },\n includeHalfChecked: { type: Boolean, default: false },\n optionAsValue: { type: Boolean, default: false },\n props: { default: {\n children: 'children',\n label: 'label',\n disabled: 'disabled',\n } },\n optionFormatter: { type: Function },\n height: null,\n maxHeight: null\n})\n\nconst emit = defineEmits([\"change\"])\n\nconst slots = useSlots()\n\nconst { props: attrs } = useCleanAttrs()\nconst treeRef = ref<InstanceType<typeof ElTree>>()\nconst checkedKeys = ref<any[]>([])\n\nconst processedData = computed(() => {\n return addDisabledToNodes(props.data ?? [], attrs.value.disabled, props.props)\n})\n\nconst flatData = computed(() => flattenTree(processedData.value ?? [], [], props.props.children))\n\nasync function handleCheck() {\n await nextTick()\n const keys = treeRef.value.getCheckedKeys()\n const halfCheckedKeys = treeRef.value.getHalfCheckedKeys() || []\n checkedKeys.value = keys\n\n const { value, nodes } = getOutputData(keys, halfCheckedKeys, {\n flatData: flatData.value,\n nodeKey: props.nodeKey,\n propsConfig: props.props,\n data: props.data ?? [],\n valueType: props.valueType,\n includeHalfChecked: props.includeHalfChecked,\n checkStrictly: attrs.value.checkStrictly,\n })\n\n if (props.optionAsValue) {\n isFn(props.optionFormatter)\n ? emit('change', nodes.map((element, index, array) => {\n return props.optionFormatter(element, index, array)\n }))\n : emit('change', nodes)\n }\n else {\n emit('change', value)\n }\n}\n\nwatch(() => props.value, (newValue) => {\n if (newValue !== undefined) {\n checkedKeys.value = getInputKeys(newValue, {\n optionAsValue: props.optionAsValue,\n nodeKey: props.nodeKey,\n flatData: flatData.value,\n propsConfig: props.props,\n data: props.data ?? [],\n valueType: props.valueType,\n checkStrictly: attrs.value.checkStrictly,\n })\n nextTick(() => {\n if (treeRef.value) {\n treeRef.value.setCheckedKeys(checkedKeys.value)\n }\n })\n }\n}, { immediate: true })\n\nwatch(() => [props.valueType, props.optionAsValue, props.includeHalfChecked], () => {\n handleCheck()\n}, { immediate: false })\n\nconst fieldRef = useField<Field>()\nfieldRef.value?.inject({\n getTreeRef: () => {\n return treeRef\n },\n})\n</script>\n\n<template>\n <ElScrollbar :height=\"props.height\" :max-height=\"props.maxHeight\">\n <ElTree\n ref=\"treeRef\"\n v-loading=\"attrs.loading\"\n :data=\"processedData\"\n :props=\"props.props\"\n :node-key=\"props.nodeKey\"\n :default-checked-keys=\"checkedKeys\"\n :show-checkbox=\"true\"\n v-bind=\"attrs\"\n @check=\"handleCheck\"\n >\n <template v-for=\"(_, name) of slots\" #[name]=\"slotData\">\n <slot :name=\"name\" v-bind=\"{ field: fieldRef, ...slotData }\" />\n </template>\n </ElTree>\n </ElScrollbar>\n</template>\n","import { connect, mapProps } from '@formily/vue'\nimport { mapReadPretty } from '../__builtins__'\nimport { PreviewText } from '../preview-text'\nimport InnerTree from './tree.vue'\n\nconst Tree = connect(\n InnerTree,\n mapProps({ dataSource: 'data', loading: 'loading', disabled: true }),\n mapReadPretty(PreviewText.Tree),\n)\n\nexport { Tree }\n\nexport default Tree\n"],"names":["props","__props","emit","__emit","slots","useSlots","attrs","useCleanAttrs","treeRef","ref","checkedKeys","processedData","computed","addDisabledToNodes","flatData","flattenTree","handleCheck","nextTick","keys","halfCheckedKeys","value","nodes","getOutputData","isFn","element","index","array","watch","newValue","getInputKeys","fieldRef","useField","_a","_createBlock","_unref","ElScrollbar","_withDirectives","_openBlock","_mergeProps","_createSlots","_","name","_withCtx","slotData","_renderSlot","_ctx","_normalizeProps","_guardReactiveProps","vLoading","Tree","connect","InnerTree","mapProps","mapReadPretty","PreviewText"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,UAAMA,IAAQC,GAiBRC,IAAOC,GAEPC,IAAQC,EAAA,GAER,EAAE,OAAOC,EAAA,IAAUC,EAAA,GACnBC,IAAUC,EAAA,GACVC,IAAcD,EAAW,EAAE,GAE3BE,IAAgBC,EAAS,MACtBC,EAAmBb,EAAM,QAAQ,CAAA,GAAIM,EAAM,MAAM,UAAUN,EAAM,KAAK,CAC9E,GAEKc,IAAWF,EAAS,MAAMG,EAAYJ,EAAc,SAAS,CAAA,GAAI,IAAIX,EAAM,MAAM,QAAQ,CAAC;AAEhG,mBAAegB,IAAc;AAC3B,YAAMC,EAAA;AACN,YAAMC,IAAOV,EAAQ,MAAM,eAAA,GACrBW,IAAkBX,EAAQ,MAAM,mBAAA,KAAwB,CAAA;AAC9D,MAAAE,EAAY,QAAQQ;AAEpB,YAAM,EAAE,OAAAE,GAAO,OAAAC,EAAA,IAAUC,EAAcJ,GAAMC,GAAiB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A,EAAM;AAAA,IAAA;iBACrD,MAcS;AAAA,QAdToC,GAAAC,EAAA,GAAAJ,EAcSC,MAdTI,EAcS;AAAA,mBAbH;AAAA,UAAJ,KAAI9B;AAAA,UAEH,MAAMG,EAAA;AAAA,UACN,OAAOX,EAAM;AAAA,UACb,YAAUA,EAAM;AAAA,UAChB,wBAAsBU,EAAA;AAAA,UACtB,iBAAe;AAAA,QAAA,GACRwB,EAAA5B,CAAA,GAAK,EACZ,SAAOU,GAAW,GAAAuB,EAAA,EAAA,GAAA,KAAA;AAAA,YAEWL,EAAA9B,CAAA,GAAK,CAAjBoC,GAAGC;;YACnB,IAAAC,EAAA,CAD4CC,MAAQ;AAAA,cACpDC,EAA+DC,EAAA,QAAlDJ,GAAIK,EAAAC,EAAA,EAAA,OAAmBb,EAAAJ,CAAA,MAAaa,EAAA,CAAQ,CAAA,CAAA;AAAA,YAAA;;;UAVhD,CAAAT,EAAAc,CAAA,GAAAd,EAAA5B,CAAA,EAAM,OAAO;AAAA,QAAA;;;;;ICxGxB2C,KAAOC;AAAA,EACXC;AAAAA,EACAC,EAAS,EAAE,YAAY,QAAQ,SAAS,WAAW,UAAU,IAAM;AAAA,EACnEC,EAAcC,EAAY,IAAI;AAChC;"}
@@ -1,20 +0,0 @@
1
- import { TreeValueTypeProps } from './types';
2
- declare function __VLS_template(): any;
3
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
4
- declare const __VLS_component: import('vue').DefineComponent<TreeValueTypeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
- change: (value: any) => any;
6
- }, string, import('vue').PublicProps, Readonly<TreeValueTypeProps> & Readonly<{
7
- onChange?: (value: any) => any;
8
- }>, {
9
- props: any;
10
- valueType: "all" | "parent" | "child" | "path";
11
- includeHalfChecked: boolean;
12
- optionAsValue: boolean;
13
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, any, any>;
14
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
- export default _default;
16
- type __VLS_WithTemplateSlots<T, S> = T & {
17
- new (): {
18
- $slots: S;
19
- };
20
- };
@@ -1,13 +0,0 @@
1
- import { TreeNodeData } from 'element-plus';
2
- export interface TreeValueTypeProps {
3
- nodeKey: string;
4
- data?: TreeNodeData[];
5
- value?: any;
6
- valueType?: 'all' | 'parent' | 'child' | 'path';
7
- includeHalfChecked?: boolean;
8
- optionAsValue?: boolean;
9
- props?: any;
10
- optionFormatter?: (node: TreeNodeData, index: number, array: TreeNodeData[]) => TreeNodeData;
11
- height?: number;
12
- maxHeight?: number;
13
- }
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=types.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,45 +0,0 @@
1
- import { TreeNodeData } from 'element-plus';
2
- export declare function flattenTree(nodes: TreeNodeData[], result?: TreeNodeData[], childrenKey?: string): TreeNodeData[];
3
- export declare function addDisabledToNodes(nodes: TreeNodeData[], disabled: boolean, propsConfig: any): TreeNodeData[];
4
- export declare function traverseTree(nodes: TreeNodeData[], callback: (node: TreeNodeData) => void, options?: {
5
- leafOnly?: boolean;
6
- childrenKey?: string;
7
- }): void;
8
- export declare function getChildrenKeys(node: TreeNodeData, nodeKey: string, propsConfig: any): any[];
9
- export declare function extractKeysFromPath(pathNodes: TreeNodeData[], nodeKey: string, propsConfig: any): any[];
10
- export declare function getSelectedPath(nodes: TreeNodeData[], selectedKeys: any[], nodeKey: string, propsConfig: any): TreeNodeData[];
11
- /**
12
- * 查找节点的所有父节点路径
13
- */
14
- export declare function findParents(nodes: TreeNodeData[], targetKey: any, nodeKey: string, propsConfig: any, parents?: any[]): any[];
15
- /**
16
- * 过滤叶子节点
17
- */
18
- export declare function filterLeafNodes(keys: any[], flatData: TreeNodeData[], nodeKey: string, propsConfig: any): any[];
19
- /**
20
- * 获取输出数据
21
- */
22
- export declare function getOutputData(keys: any[], halfCheckedKeys: any[], options: {
23
- flatData: TreeNodeData[];
24
- nodeKey: string;
25
- propsConfig: any;
26
- data: TreeNodeData[];
27
- valueType: string;
28
- includeHalfChecked: boolean;
29
- checkStrictly: boolean;
30
- }): {
31
- value: any[];
32
- nodes: TreeNodeData[];
33
- };
34
- /**
35
- * 根据valueType将输入值转换为checkedKeys
36
- */
37
- export declare function getInputKeys(inputValue: any, options: {
38
- optionAsValue: boolean;
39
- nodeKey: string;
40
- flatData: TreeNodeData[];
41
- propsConfig: any;
42
- data: TreeNodeData[];
43
- valueType: string;
44
- checkStrictly: boolean;
45
- }): any[];
@@ -1,161 +0,0 @@
1
- function k(c, r = [], t = "children") {
2
- for (const e of c)
3
- r.push(e), e[t] && e[t].length > 0 && k(e[t], r, t);
4
- return r;
5
- }
6
- function m(c, r, t) {
7
- return r ? c.map((e) => {
8
- const n = { ...e };
9
- return n[t.disabled] = !0, e[t.children] && e[t.children].length > 0 && (n[t.children] = m(e[t.children], r, t)), n;
10
- }) : c;
11
- }
12
- function S(c, r, t = {}) {
13
- const { leafOnly: e = !1, childrenKey: n = "children" } = t;
14
- for (const l of c) {
15
- const i = l[n] || [], o = i.length === 0;
16
- (!e || o) && r(l), i.length > 0 && S(i, r, t);
17
- }
18
- }
19
- function N(c, r, t) {
20
- const e = c[t.children] || [];
21
- if (e.length === 0)
22
- return [];
23
- const n = [];
24
- return S(e, (l) => {
25
- n.push(l[r]);
26
- }, { childrenKey: t.children }), n;
27
- }
28
- function w(c, r, t) {
29
- const e = [];
30
- return S(c, (n) => {
31
- e.push(n[r]);
32
- }, { leafOnly: !0, childrenKey: t.children }), e;
33
- }
34
- function P(c, r, t, e) {
35
- const n = [];
36
- for (const l of c) {
37
- const i = l[e.children] || [], o = i.length > 0 ? P(i, r, t, e).length > 0 : !1;
38
- if (r.includes(l[t]) || o) {
39
- const u = { ...l };
40
- o && i.length > 0 && (u[e.children] = P(i, r, t, e)), n.push(u);
41
- }
42
- }
43
- return n;
44
- }
45
- function T(c, r, t, e, n = []) {
46
- for (const l of c) {
47
- const i = [...n, l[t]];
48
- if (l[t] === r)
49
- return i;
50
- const o = l[e.children] || [];
51
- if (o.length > 0) {
52
- const u = T(o, r, t, e, i);
53
- if (u.length > 0)
54
- return u;
55
- }
56
- }
57
- /* istanbul ignore next -- @preserve */
58
- return [];
59
- }
60
- function v(c, r, t, e) {
61
- return c.filter((n) => {
62
- const l = r.find((o) => o[t] === n);
63
- return l ? (l[e.children] || []).length === 0 : !1;
64
- });
65
- }
66
- function D(c, r = [], t) {
67
- const { flatData: e, nodeKey: n, propsConfig: l, data: i, valueType: o, includeHalfChecked: u, checkStrictly: a } = t, d = e.filter(
68
- (s) => c.includes(s[n])
69
- );
70
- let h = [...c], f = [...d];
71
- if (a)
72
- return {
73
- value: h,
74
- nodes: f
75
- };
76
- switch (o) {
77
- case "parent": {
78
- const s = [];
79
- for (const y of d)
80
- s.push(...N(y, n, l));
81
- h = c.filter((y) => !s.includes(y)), f = d.filter(
82
- (y) => h.includes(y[n])
83
- );
84
- break;
85
- }
86
- case "child": {
87
- for (const s of d)
88
- N(s, n, l).some((g) => c.includes(g)) && (h = h.filter((g) => g !== s[n]), f = f.filter(
89
- (g) => g[n] !== s[n]
90
- ));
91
- break;
92
- }
93
- case "path": {
94
- const s = P(i, c, n, l);
95
- return {
96
- value: s,
97
- nodes: s
98
- };
99
- }
100
- default: {
101
- if (u && r.length > 0) {
102
- const s = e.filter(
103
- (y) => r.includes(y[n])
104
- );
105
- h = [...h, ...r], f = [...f, ...s];
106
- }
107
- break;
108
- }
109
- }
110
- return {
111
- value: h,
112
- nodes: f
113
- };
114
- }
115
- function b(c, r) {
116
- const { optionAsValue: t, nodeKey: e, flatData: n, propsConfig: l, data: i, valueType: o, checkStrictly: u } = r;
117
- /* istanbul ignore if -- @preserve */
118
- if (!c || !Array.isArray(c))
119
- return [];
120
- const a = t ? c.map((d) => d[e]) : c;
121
- if (u)
122
- return a;
123
- switch (o) {
124
- case "parent": {
125
- const d = [...a];
126
- for (const h of a) {
127
- const f = n.find((s) => s[e] === h);
128
- if (f) {
129
- const s = N(f, e, l);
130
- d.push(...s);
131
- }
132
- }
133
- return v(d, n, e, l);
134
- }
135
- case "child": {
136
- const d = [...a];
137
- for (const h of a) {
138
- const f = T(i, h, e, l);
139
- d.push(...f);
140
- }
141
- return v(d, n, e, l);
142
- }
143
- case "path":
144
- return w(a, e, l);
145
- default:
146
- return v(a, n, e, l);
147
- }
148
- }
149
- export {
150
- m as addDisabledToNodes,
151
- w as extractKeysFromPath,
152
- v as filterLeafNodes,
153
- T as findParents,
154
- k as flattenTree,
155
- N as getChildrenKeys,
156
- b as getInputKeys,
157
- D as getOutputData,
158
- P as getSelectedPath,
159
- S as traverseTree
160
- };
161
- //# sourceMappingURL=utils.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.mjs","sources":["../../src/tree/utils.ts"],"sourcesContent":["import type { TreeNodeData } from 'element-plus'\n\nexport function flattenTree(nodes: TreeNodeData[], result: TreeNodeData[] = [], childrenKey = 'children'): TreeNodeData[] {\n for (const node of nodes) {\n result.push(node)\n if (node[childrenKey] && node[childrenKey].length > 0) {\n flattenTree(node[childrenKey], result, childrenKey)\n }\n }\n return result\n}\n\nexport function addDisabledToNodes(nodes: TreeNodeData[], disabled: boolean, propsConfig: any): TreeNodeData[] {\n if (!disabled) {\n return nodes\n }\n\n return nodes.map((node) => {\n const newNode = { ...node }\n newNode[propsConfig.disabled!] = true\n\n if (node[propsConfig.children!] && node[propsConfig.children!].length > 0) {\n newNode[propsConfig.children!] = addDisabledToNodes(node[propsConfig.children!], disabled, propsConfig)\n }\n\n return newNode\n })\n}\n\nexport function traverseTree(\n nodes: TreeNodeData[],\n callback: (node: TreeNodeData) => void,\n options: {\n leafOnly?: boolean\n childrenKey?: string\n } = {},\n) {\n const { leafOnly = false, childrenKey = 'children' } = options\n\n for (const node of nodes) {\n const children = node[childrenKey] || []\n const isLeaf = children.length === 0\n\n if (!leafOnly || isLeaf) {\n callback(node)\n }\n if (children.length > 0) {\n traverseTree(children, callback, options)\n }\n }\n}\n\nexport function getChildrenKeys(node: TreeNodeData, nodeKey: string, propsConfig: any): any[] {\n const children = node[propsConfig.children!] || []\n if (children.length === 0)\n return []\n\n const keys: any[] = []\n traverseTree(children, (child) => {\n keys.push(child[nodeKey])\n }, { childrenKey: propsConfig.children })\n\n return keys\n}\n\nexport function extractKeysFromPath(pathNodes: TreeNodeData[], nodeKey: string, propsConfig: any): any[] {\n const keys: any[] = []\n traverseTree(pathNodes, (node) => {\n keys.push(node[nodeKey])\n }, { leafOnly: true, childrenKey: propsConfig.children })\n\n return keys\n}\n\nexport function getSelectedPath(nodes: TreeNodeData[], selectedKeys: any[], nodeKey: string, propsConfig: any): TreeNodeData[] {\n const result: TreeNodeData[] = []\n\n for (const node of nodes) {\n const children = node[propsConfig.children!] || []\n const hasSelectedChild = children.length > 0\n ? getSelectedPath(children, selectedKeys, nodeKey, propsConfig).length > 0\n : false\n\n if (selectedKeys.includes(node[nodeKey]) || hasSelectedChild) {\n const newNode = { ...node }\n if (hasSelectedChild && children.length > 0) {\n newNode[propsConfig.children!] = getSelectedPath(children, selectedKeys, nodeKey, propsConfig)\n }\n result.push(newNode)\n }\n }\n\n return result\n}\n\n/**\n * 查找节点的所有父节点路径\n */\nexport function findParents(nodes: TreeNodeData[], targetKey: any, nodeKey: string, propsConfig: any, parents: any[] = []): any[] {\n for (const node of nodes) {\n const currentPath = [...parents, node[nodeKey]]\n\n if (node[nodeKey] === targetKey) {\n return currentPath\n }\n\n const children = node[propsConfig.children!] || []\n if (children.length > 0) {\n const found = findParents(children, targetKey, nodeKey, propsConfig, currentPath)\n if (found.length > 0) {\n return found\n }\n }\n }\n /* istanbul ignore next -- @preserve */\n return []\n}\n\n/**\n * 过滤叶子节点\n */\nexport function filterLeafNodes(keys: any[], flatData: TreeNodeData[], nodeKey: string, propsConfig: any): any[] {\n return keys.filter((key) => {\n const node = flatData.find(n => n[nodeKey] === key)\n if (!node)\n return false\n const children = node[propsConfig.children!] || []\n return children.length === 0\n })\n}\n\n/**\n * 获取输出数据\n */\nexport function getOutputData(\n keys: any[],\n halfCheckedKeys: any[] = [],\n options: {\n flatData: TreeNodeData[]\n nodeKey: string\n propsConfig: any\n data: TreeNodeData[]\n valueType: string\n includeHalfChecked: boolean\n checkStrictly: boolean\n },\n) {\n const { flatData, nodeKey, propsConfig, data, valueType, includeHalfChecked, checkStrictly } = options\n\n const selectedNodes = flatData.filter(node =>\n keys.includes(node[nodeKey]),\n )\n\n let outputKeys = [...keys]\n let outputNodes = [...selectedNodes]\n\n if (checkStrictly) {\n return {\n value: outputKeys,\n nodes: outputNodes,\n }\n }\n\n switch (valueType) {\n case 'parent': {\n const allChildKeys: any[] = []\n for (const node of selectedNodes) {\n allChildKeys.push(...getChildrenKeys(node, nodeKey, propsConfig))\n }\n outputKeys = keys.filter(key => !allChildKeys.includes(key))\n outputNodes = selectedNodes.filter(node =>\n outputKeys.includes(node[nodeKey]),\n )\n break\n }\n\n case 'child': {\n for (const node of selectedNodes) {\n const childKeys = getChildrenKeys(node, nodeKey, propsConfig)\n const hasSelectedChild = childKeys.some(key => keys.includes(key))\n if (hasSelectedChild) {\n outputKeys = outputKeys.filter(key => key !== node[nodeKey])\n outputNodes = outputNodes.filter(n =>\n n[nodeKey] !== node[nodeKey],\n )\n }\n }\n break\n }\n\n case 'path': {\n const selectedPath = getSelectedPath(data, keys, nodeKey, propsConfig)\n return {\n value: selectedPath,\n nodes: selectedPath,\n }\n }\n\n default: { // 'all'\n if (includeHalfChecked && halfCheckedKeys.length > 0) {\n const halfCheckedNodes = flatData.filter(node =>\n halfCheckedKeys.includes(node[nodeKey]),\n )\n outputKeys = [...outputKeys, ...halfCheckedKeys]\n outputNodes = [...outputNodes, ...halfCheckedNodes]\n }\n break\n }\n }\n\n return {\n value: outputKeys,\n nodes: outputNodes,\n }\n}\n\n/**\n * 根据valueType将输入值转换为checkedKeys\n */\nexport function getInputKeys(\n inputValue: any,\n options: {\n optionAsValue: boolean\n nodeKey: string\n flatData: TreeNodeData[]\n propsConfig: any\n data: TreeNodeData[]\n valueType: string\n checkStrictly: boolean\n },\n): any[] {\n const { optionAsValue, nodeKey, flatData, propsConfig, data, valueType, checkStrictly } = options\n\n /* istanbul ignore if -- @preserve */\n if (!inputValue || !Array.isArray(inputValue))\n return []\n\n const valueArray = optionAsValue ? inputValue.map((item: any) => item[nodeKey]) : inputValue\n\n if (checkStrictly) {\n return valueArray\n }\n\n switch (valueType) {\n case 'parent': {\n const allKeys = [...valueArray]\n\n for (const key of valueArray) {\n const node = flatData.find(n => n[nodeKey] === key)\n if (node) {\n const childKeys = getChildrenKeys(node, nodeKey, propsConfig)\n allKeys.push(...childKeys)\n }\n }\n return filterLeafNodes(allKeys, flatData, nodeKey, propsConfig)\n }\n\n case 'child': {\n const allKeys = [...valueArray]\n for (const key of valueArray) {\n const parentPath = findParents(data, key, nodeKey, propsConfig)\n allKeys.push(...parentPath)\n }\n return filterLeafNodes(allKeys, flatData, nodeKey, propsConfig)\n }\n\n case 'path': {\n return extractKeysFromPath(valueArray, nodeKey, propsConfig)\n }\n\n default: { // 'all'\n return filterLeafNodes(valueArray, flatData, nodeKey, propsConfig)\n }\n }\n}\n"],"names":["flattenTree","nodes","result","childrenKey","node","addDisabledToNodes","disabled","propsConfig","newNode","traverseTree","callback","options","leafOnly","children","isLeaf","getChildrenKeys","nodeKey","keys","child","extractKeysFromPath","pathNodes","getSelectedPath","selectedKeys","hasSelectedChild","findParents","targetKey","parents","currentPath","found","filterLeafNodes","flatData","key","n","getOutputData","halfCheckedKeys","data","valueType","includeHalfChecked","checkStrictly","selectedNodes","outputKeys","outputNodes","allChildKeys","selectedPath","halfCheckedNodes","getInputKeys","inputValue","optionAsValue","valueArray","item","allKeys","childKeys","parentPath"],"mappings":"AAEO,SAASA,EAAYC,GAAuBC,IAAyB,CAAA,GAAIC,IAAc,YAA4B;AACxH,aAAWC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;AAAA,IAChE;AAAA,IAEA,KAAK,SAAS;AACZ,YAAM2C,IAAU,CAAC,GAAGF,CAAU;AAC9B,iBAAWjB,KAAOiB,GAAY;AAC5B,cAAMI,IAAa5B,EAAYW,GAAMJ,GAAKf,GAAST,CAAW;AAC9D,QAAA2C,EAAQ,KAAK,GAAGE,CAAU;AAAA,MAC5B;AACA,aAAOvB,EAAgBqB,GAASpB,GAAUd,GAAST,CAAW;AAAA,IAChE;AAAA,IAEA,KAAK;AACH,aAAOY,EAAoB6B,GAAYhC,GAAST,CAAW;AAAA,IAG7D;AACE,aAAOsB,EAAgBmB,GAAYlB,GAAUd,GAAST,CAAW;AAAA,EACnE;AAEJ;"}
@@ -1,32 +0,0 @@
1
- export declare const TreeSelect: {
2
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
3
- value: any;
4
- }> & Readonly<{
5
- onChange?: (...args: any[]) => any;
6
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
- change: (...args: any[]) => void;
8
- }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, any, any, import('vue').ComponentProvideOptions, {
9
- P: {};
10
- B: {};
11
- D: {};
12
- C: {};
13
- M: {};
14
- Defaults: {};
15
- }, Readonly<{
16
- value: any;
17
- }> & Readonly<{
18
- onChange?: (...args: any[]) => any;
19
- }>, {}, {}, {}, {}, {}>;
20
- __isFragment?: never;
21
- __isTeleport?: never;
22
- __isSuspense?: never;
23
- } & import('vue').ComponentOptionsBase<Readonly<{
24
- value: any;
25
- }> & Readonly<{
26
- onChange?: (...args: any[]) => any;
27
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
28
- change: (...args: any[]) => void;
29
- }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
30
- $slots: any;
31
- });
32
- export default TreeSelect;
@@ -1,51 +0,0 @@
1
- import { useField as v, connect as g, mapProps as P } from "@formily/vue";
2
- import { defineComponent as R, useSlots as _, ref as T, createBlock as y, openBlock as h, unref as e, mergeProps as k, createSlots as x, renderList as C, withCtx as w, renderSlot as A, normalizeProps as B, guardReactiveProps as F } from "vue";
3
- import { ElTreeSelect as V } from "element-plus";
4
- import "@formily/reactive";
5
- import { mapReadPretty as j } from "../__builtins__/shared/transform-component.mjs";
6
- import { PreviewText as z } from "../preview-text/index.mjs";
7
- import "@formily/core";
8
- import "@formily/reactive-vue";
9
- import { useCleanAttrs as E } from "../__builtins__/shared/utils.mjs";
10
- const L = /* @__PURE__ */ R({
11
- name: "FSelectTree",
12
- inheritAttrs: !1,
13
- __name: "tree-select",
14
- props: {
15
- value: null
16
- },
17
- emits: ["change"],
18
- setup(m, { emit: i }) {
19
- var o;
20
- const c = m, p = i, u = _(), { props: d } = E(), r = T(), t = v();
21
- return (o = t.value) == null || o.inject({
22
- getTreeSelectRef: () => r
23
- }), (f, l) => {
24
- var n;
25
- return h(), y(e(V), k({
26
- ref_key: "treeSelectRef",
27
- ref: r,
28
- "model-value": c.value,
29
- loading: (n = e(t).value) == null ? void 0 : n.loading
30
- }, e(d), {
31
- "onUpdate:modelValue": l[0] || (l[0] = (a) => p("change", a))
32
- }), x({ _: 2 }, [
33
- C(e(u), (a, s) => ({
34
- name: s,
35
- fn: w((S) => [
36
- A(f.$slots, s, B(F({ field: e(t), ...S })))
37
- ])
38
- }))
39
- ]), 1040, ["model-value", "loading"]);
40
- };
41
- }
42
- }), J = g(
43
- L,
44
- P({ value: "modelValue", readOnly: "readonly", dataSource: "data" }),
45
- j(z.Select)
46
- );
47
- export {
48
- J as TreeSelect,
49
- J as default
50
- };
51
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sources":["../../src/tree-select/tree-select.vue","../../src/tree-select/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { Field } from '@formily/core'\nimport { useField } from '@formily/vue'\nimport { ElTreeSelect } from 'element-plus'\nimport { ref, useSlots } from 'vue'\nimport { useCleanAttrs } from '../__builtins__'\n\ndefineOptions({\n name: 'FSelectTree',\n inheritAttrs: false,\n})\n\nconst props = defineProps({\n value: null\n})\n\nconst emit = defineEmits(['change'])\n\nconst slots = useSlots()\n\nconst { props: attrs } = useCleanAttrs()\n\nconst treeSelectRef = ref()\n\nconst fieldRef = useField<Field>()\n\nfieldRef.value?.inject({\n getTreeSelectRef: () => {\n return treeSelectRef\n },\n})\n</script>\n\n<template>\n <ElTreeSelect\n ref=\"treeSelectRef\"\n :model-value=\"props.value\"\n :loading=\"fieldRef.value?.loading\"\n v-bind=\"attrs\"\n @update:model-value=\"emit('change', $event)\"\n >\n <template v-for=\"(_, name) of slots\" #[name]=\"slotData\">\n <slot :name=\"name\" v-bind=\"{ field: fieldRef, ...slotData }\" />\n </template>\n </ElTreeSelect>\n</template>\n","import { connect, mapProps } from '@formily/vue'\r\nimport { mapReadPretty } from '../__builtins__'\r\nimport { PreviewText } from '../preview-text'\r\nimport FTreeSelect from './tree-select.vue'\r\n\r\nexport const TreeSelect = connect(\r\n FTreeSelect,\r\n mapProps({ value: 'modelValue', readOnly: 'readonly', dataSource: 'data' }),\r\n mapReadPretty(PreviewText.Select),\r\n)\r\n\r\nexport default TreeSelect\r\n"],"names":["props","__props","emit","__emit","slots","useSlots","attrs","useCleanAttrs","treeSelectRef","ref","fieldRef","useField","_a","_openBlock","_createBlock","_unref","_mergeProps","_cache","$event","_","name","_withCtx","slotData","_renderSlot","_ctx","_normalizeProps","_guardReactiveProps","TreeSelect","connect","FTreeSelect","mapProps","mapReadPretty","PreviewText"],"mappings":";;;;;;;;;;;;;;;;;;;AAYA,UAAMA,IAAQC,GAIRC,IAAOC,GAEPC,IAAQC,EAAA,GAER,EAAE,OAAOC,EAAA,IAAUC,EAAA,GAEnBC,IAAgBC,EAAA,GAEhBC,IAAWC,EAAA;AAEjB,YAAAC,IAAAF,EAAS,UAAT,QAAAE,EAAgB,OAAO;AAAA,MACrB,kBAAkB,MACTJ;AAAA,IACT;;AAKA,aAAAK,KAAAC,EAUeC,MAVfC,EAUe;AAAA,iBATT;AAAA,QAAJ,KAAIR;AAAA,QACH,eAAaR,EAAM;AAAA,QACnB,UAASe,IAAAA,EAAAL,CAAA,EAAS,UAATK,gBAAAA,EAAgB;AAAA,MAAA,GAClBA,EAAAT,CAAA,GAAK;AAAA,QACZ,uBAAkBW,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAAEhB,EAAI,UAAWgB,CAAM;AAAA,MAAA;UAEZH,EAAAX,CAAA,GAAK,CAAjBe,GAAGC;;UACnB,IAAAC,EAAA,CAD4CC,MAAQ;AAAA,YACpDC,EAA+DC,EAAA,QAAlDJ,GAAIK,EAAAC,EAAA,EAAA,OAAmBX,EAAAL,CAAA,MAAaY,EAAA,CAAQ,CAAA,CAAA;AAAA,UAAA;;;;;ICrClDK,IAAaC;AAAA,EACxBC;AAAAA,EACAC,EAAS,EAAE,OAAO,cAAc,UAAU,YAAY,YAAY,QAAQ;AAAA,EAC1EC,EAAcC,EAAY,MAAM;AAClC;"}
@@ -1,17 +0,0 @@
1
- type __VLS_Props = {
2
- value: any;
3
- };
4
- declare function __VLS_template(): any;
5
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
6
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
- change: (...args: any[]) => void;
8
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
- onChange?: (...args: any[]) => any;
10
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, any, any>;
11
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
- export default _default;
13
- type __VLS_WithTemplateSlots<T, S> = T & {
14
- new (): {
15
- $slots: S;
16
- };
17
- };