@silver-formily/element-plus 3.0.1 → 3.0.3

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 (539) hide show
  1. package/README.en-US.md +1 -1
  2. package/README.md +1 -1
  3. package/esm/__builtins__/configs/index.mjs +6 -5
  4. package/esm/__builtins__/configs/index.mjs.map +1 -1
  5. package/esm/__builtins__/shared/load-config-provider.mjs +19 -11
  6. package/esm/__builtins__/shared/load-config-provider.mjs.map +1 -1
  7. package/esm/__builtins__/shared/loading.mjs +50 -46
  8. package/esm/__builtins__/shared/loading.mjs.map +1 -1
  9. package/esm/__builtins__/shared/simple-version-compare.mjs +16 -15
  10. package/esm/__builtins__/shared/simple-version-compare.mjs.map +1 -1
  11. package/esm/__builtins__/shared/transform-component.mjs +30 -31
  12. package/esm/__builtins__/shared/transform-component.mjs.map +1 -1
  13. package/esm/__builtins__/shared/use-enter-submit.mjs +77 -24
  14. package/esm/__builtins__/shared/use-enter-submit.mjs.map +1 -1
  15. package/esm/__builtins__/shared/utils.mjs +44 -32
  16. package/esm/__builtins__/shared/utils.mjs.map +1 -1
  17. package/esm/_virtual/_/plugin-vue/export-helper.mjs +8 -0
  18. package/esm/array-base/array-base-addition.mjs +53 -0
  19. package/esm/array-base/array-base-addition.mjs.map +1 -0
  20. package/esm/array-base/array-base-index.mjs +17 -0
  21. package/esm/array-base/array-base-index.mjs.map +1 -0
  22. package/esm/array-base/array-base-inner.mjs +30 -0
  23. package/esm/array-base/array-base-inner.mjs.map +1 -0
  24. package/esm/array-base/array-base-item.mjs +21 -0
  25. package/esm/array-base/array-base-item.mjs.map +1 -0
  26. package/esm/array-base/array-base-move-down.mjs +45 -0
  27. package/esm/array-base/array-base-move-down.mjs.map +1 -0
  28. package/esm/array-base/array-base-move-up.mjs +45 -0
  29. package/esm/array-base/array-base-move-up.mjs.map +1 -0
  30. package/esm/array-base/array-base-remove.mjs +45 -0
  31. package/esm/array-base/array-base-remove.mjs.map +1 -0
  32. package/esm/array-base/array-base-sort-handle.mjs +33 -0
  33. package/esm/array-base/array-base-sort-handle.mjs.map +1 -0
  34. package/esm/array-base/index.mjs +28 -209
  35. package/esm/array-base/index.mjs.map +1 -1
  36. package/esm/array-base/style.css +36 -0
  37. package/esm/array-base/symbols.mjs +7 -6
  38. package/esm/array-base/symbols.mjs.map +1 -1
  39. package/esm/array-base/types.d.ts +23 -24
  40. package/esm/array-base/utils.d.ts +11 -17
  41. package/esm/array-base/utils.mjs +58 -61
  42. package/esm/array-base/utils.mjs.map +1 -1
  43. package/esm/array-cards/array-cards.mjs +109 -0
  44. package/esm/array-cards/array-cards.mjs.map +1 -0
  45. package/esm/array-cards/index.d.ts +120 -113
  46. package/esm/array-cards/index.mjs +19 -119
  47. package/esm/array-cards/index.mjs.map +1 -1
  48. package/esm/array-cards/style.css +20 -0
  49. package/esm/array-collapse/array-collapse-item.mjs +74 -0
  50. package/esm/array-collapse/array-collapse-item.mjs.map +1 -0
  51. package/esm/array-collapse/array-collapse.mjs +117 -0
  52. package/esm/array-collapse/array-collapse.mjs.map +1 -0
  53. package/esm/array-collapse/index.d.ts +137 -129
  54. package/esm/array-collapse/index.mjs +21 -175
  55. package/esm/array-collapse/index.mjs.map +1 -1
  56. package/esm/array-collapse/style.css +20 -0
  57. package/esm/array-collapse/utils.mjs +7 -13
  58. package/esm/array-collapse/utils.mjs.map +1 -1
  59. package/esm/array-items/array-items-item.mjs +22 -0
  60. package/esm/array-items/array-items-item.mjs.map +1 -0
  61. package/esm/array-items/array-items.mjs +88 -0
  62. package/esm/array-items/array-items.mjs.map +1 -0
  63. package/esm/array-items/index.d.ts +132 -125
  64. package/esm/array-items/index.mjs +21 -108
  65. package/esm/array-items/index.mjs.map +1 -1
  66. package/esm/array-items/style.css +22 -0
  67. package/esm/array-list-tabs/array-list-tabs.mjs +191 -0
  68. package/esm/array-list-tabs/array-list-tabs.mjs.map +1 -0
  69. package/esm/array-list-tabs/index.d.ts +80 -74
  70. package/esm/array-list-tabs/index.mjs +12 -187
  71. package/esm/array-list-tabs/index.mjs.map +1 -1
  72. package/esm/array-list-tabs/style.css +90 -0
  73. package/esm/array-list-tabs/utils.mjs +11 -16
  74. package/esm/array-list-tabs/utils.mjs.map +1 -1
  75. package/esm/array-table/array-table.mjs +236 -0
  76. package/esm/array-table/array-table.mjs.map +1 -0
  77. package/esm/array-table/index.d.ts +106 -1597
  78. package/esm/array-table/index.mjs +24 -224
  79. package/esm/array-table/index.mjs.map +1 -1
  80. package/esm/array-table/style.css +23 -0
  81. package/esm/array-table/types.d.ts +11 -6
  82. package/esm/array-table/utils.mjs +14 -23
  83. package/esm/array-table/utils.mjs.map +1 -1
  84. package/esm/array-tabs/array-tabs.mjs +92 -0
  85. package/esm/array-tabs/array-tabs.mjs.map +1 -0
  86. package/esm/array-tabs/index.d.ts +7 -2
  87. package/esm/array-tabs/index.mjs +8 -87
  88. package/esm/array-tabs/index.mjs.map +1 -1
  89. package/esm/array-tabs/style.css +7 -0
  90. package/esm/autocomplete/autocomplete.mjs +99 -0
  91. package/esm/autocomplete/autocomplete.mjs.map +1 -0
  92. package/esm/autocomplete/index.d.ts +5 -639
  93. package/esm/autocomplete/index.mjs +14 -114
  94. package/esm/autocomplete/index.mjs.map +1 -1
  95. package/esm/cascader/cascader.mjs +32 -0
  96. package/esm/cascader/cascader.mjs.map +1 -0
  97. package/esm/cascader/index.d.ts +5 -28
  98. package/esm/cascader/index.mjs +13 -51
  99. package/esm/cascader/index.mjs.map +1 -1
  100. package/esm/checkbox/checkbox-group.mjs +64 -0
  101. package/esm/checkbox/checkbox-group.mjs.map +1 -0
  102. package/esm/checkbox/index.d.ts +5 -817
  103. package/esm/checkbox/index.mjs +16 -70
  104. package/esm/checkbox/index.mjs.map +1 -1
  105. package/esm/color-picker/index.d.ts +8 -210
  106. package/esm/color-picker/index.mjs +13 -17
  107. package/esm/color-picker/index.mjs.map +1 -1
  108. package/esm/color-picker-panel/index.d.ts +8 -129
  109. package/esm/color-picker-panel/index.mjs +16 -25
  110. package/esm/color-picker-panel/index.mjs.map +1 -1
  111. package/esm/date-picker/index.d.ts +5 -443
  112. package/esm/date-picker/index.mjs +21 -29
  113. package/esm/date-picker/index.mjs.map +1 -1
  114. package/esm/date-picker/utils.mjs +21 -26
  115. package/esm/date-picker/utils.mjs.map +1 -1
  116. package/esm/date-picker-panel/index.d.ts +5 -143
  117. package/esm/date-picker-panel/index.mjs +23 -30
  118. package/esm/date-picker-panel/index.mjs.map +1 -1
  119. package/esm/editable/editable-popover.mjs +95 -0
  120. package/esm/editable/editable-popover.mjs.map +1 -0
  121. package/esm/editable/editable.mjs +113 -0
  122. package/esm/editable/editable.mjs.map +1 -0
  123. package/esm/editable/index.d.ts +10 -150
  124. package/esm/editable/index.mjs +17 -220
  125. package/esm/editable/index.mjs.map +1 -1
  126. package/esm/editable/style.css +29 -0
  127. package/esm/form/form.mjs +50 -70
  128. package/esm/form/form.mjs.map +1 -1
  129. package/esm/form/form.vue.d.ts +48 -0
  130. package/esm/form/index.d.ts +1 -1
  131. package/esm/form-button-group/form-button-group-sticky.mjs +37 -0
  132. package/esm/form-button-group/form-button-group-sticky.mjs.map +1 -0
  133. package/esm/form-button-group/form-button-group.mjs +71 -0
  134. package/esm/form-button-group/form-button-group.mjs.map +1 -0
  135. package/esm/form-button-group/index.d.ts +94 -87
  136. package/esm/form-button-group/index.mjs +10 -97
  137. package/esm/form-button-group/index.mjs.map +1 -1
  138. package/esm/form-button-group/style.css +281 -0
  139. package/esm/form-button-group/utils.mjs +7 -13
  140. package/esm/form-button-group/utils.mjs.map +1 -1
  141. package/esm/form-collapse/form-collapse.mjs +74 -0
  142. package/esm/form-collapse/form-collapse.mjs.map +1 -0
  143. package/esm/form-collapse/index.d.ts +43 -39
  144. package/esm/form-collapse/index.mjs +20 -87
  145. package/esm/form-collapse/index.mjs.map +1 -1
  146. package/esm/form-collapse/style.css +7 -0
  147. package/esm/form-collapse/utils.d.ts +21 -27
  148. package/esm/form-collapse/utils.mjs +48 -46
  149. package/esm/form-collapse/utils.mjs.map +1 -1
  150. package/esm/form-dialog/dialog-content.mjs +118 -0
  151. package/esm/form-dialog/dialog-content.mjs.map +1 -0
  152. package/esm/form-dialog/index.d.ts +8 -4
  153. package/esm/form-dialog/index.mjs +142 -211
  154. package/esm/form-dialog/index.mjs.map +1 -1
  155. package/esm/form-dialog/types.d.ts +38 -32
  156. package/esm/form-drawer/drawer-content.mjs +118 -0
  157. package/esm/form-drawer/drawer-content.mjs.map +1 -0
  158. package/esm/form-drawer/index.d.ts +8 -4
  159. package/esm/form-drawer/index.mjs +142 -204
  160. package/esm/form-drawer/index.mjs.map +1 -1
  161. package/esm/form-drawer/types.d.ts +38 -32
  162. package/esm/form-grid/form-grid-column.mjs +28 -0
  163. package/esm/form-grid/form-grid-column.mjs.map +1 -0
  164. package/esm/form-grid/form-grid.mjs +69 -0
  165. package/esm/form-grid/form-grid.mjs.map +1 -0
  166. package/esm/form-grid/hooks.mjs +7 -7
  167. package/esm/form-grid/hooks.mjs.map +1 -1
  168. package/esm/form-grid/index.d.ts +5 -2
  169. package/esm/form-grid/index.mjs +10 -110
  170. package/esm/form-grid/index.mjs.map +1 -1
  171. package/esm/form-grid/style.css +128 -0
  172. package/esm/form-item/form-item.mjs +308 -0
  173. package/esm/form-item/form-item.mjs.map +1 -0
  174. package/esm/form-item/form-item.vue.d.ts +29 -0
  175. package/esm/form-item/index.d.ts +9 -77
  176. package/esm/form-item/index.mjs +28 -333
  177. package/esm/form-item/index.mjs.map +1 -1
  178. package/esm/form-item/style.css +263 -0
  179. package/esm/form-item/types.d.ts +34 -29
  180. package/esm/form-item/utils.mjs +15 -15
  181. package/esm/form-item/utils.mjs.map +1 -1
  182. package/esm/form-layout/form-layout.mjs +103 -84
  183. package/esm/form-layout/form-layout.mjs.map +1 -1
  184. package/esm/form-layout/form-layout.vue.d.ts +28 -0
  185. package/esm/form-layout/index.d.ts +1 -1
  186. package/esm/form-layout/types.d.ts +24 -40
  187. package/esm/form-layout/utils.mjs +73 -99
  188. package/esm/form-layout/utils.mjs.map +1 -1
  189. package/esm/form-step/form-step-pane.mjs +15 -0
  190. package/esm/form-step/form-step-pane.mjs.map +1 -0
  191. package/esm/form-step/form-step.mjs +63 -0
  192. package/esm/form-step/form-step.mjs.map +1 -0
  193. package/esm/form-step/index.d.ts +29 -23
  194. package/esm/form-step/index.mjs +12 -94
  195. package/esm/form-step/index.mjs.map +1 -1
  196. package/esm/form-step/types.d.ts +19 -19
  197. package/esm/form-step/utils.d.ts +14 -10
  198. package/esm/form-step/utils.mjs +75 -59
  199. package/esm/form-step/utils.mjs.map +1 -1
  200. package/esm/form-tab/form-tab.mjs +79 -0
  201. package/esm/form-tab/form-tab.mjs.map +1 -0
  202. package/esm/form-tab/hooks.mjs +18 -16
  203. package/esm/form-tab/hooks.mjs.map +1 -1
  204. package/esm/form-tab/index.d.ts +5 -3
  205. package/esm/form-tab/index.mjs +10 -77
  206. package/esm/form-tab/index.mjs.map +1 -1
  207. package/esm/form-tab/style.css +4 -0
  208. package/esm/form-tab/utils.mjs +14 -13
  209. package/esm/form-tab/utils.mjs.map +1 -1
  210. package/esm/index.d.ts +53 -48
  211. package/esm/index.mjs +50 -103
  212. package/esm/input/index.d.ts +5 -52
  213. package/esm/input/index.mjs +16 -69
  214. package/esm/input/index.mjs.map +1 -1
  215. package/esm/input/input.mjs +41 -0
  216. package/esm/input/input.mjs.map +1 -0
  217. package/esm/input-number/index.d.ts +8 -329
  218. package/esm/input-number/index.mjs +12 -24
  219. package/esm/input-number/index.mjs.map +1 -1
  220. package/esm/input-tag/index.d.ts +5 -32
  221. package/esm/input-tag/index.mjs +13 -50
  222. package/esm/input-tag/index.mjs.map +1 -1
  223. package/esm/input-tag/input-tag.mjs +41 -0
  224. package/esm/input-tag/input-tag.mjs.map +1 -0
  225. package/esm/mention/index.d.ts +5 -50
  226. package/esm/mention/index.mjs +15 -97
  227. package/esm/mention/index.mjs.map +1 -1
  228. package/esm/mention/mention.mjs +77 -0
  229. package/esm/mention/mention.mjs.map +1 -0
  230. package/esm/pagination/components/jumper.mjs +11 -12
  231. package/esm/pagination/components/jumper.mjs.map +1 -1
  232. package/esm/pagination/components/jumper2.mjs +59 -0
  233. package/esm/pagination/components/jumper2.mjs.map +1 -0
  234. package/esm/pagination/components/next.mjs +18 -22
  235. package/esm/pagination/components/next.mjs.map +1 -1
  236. package/esm/pagination/components/next2.mjs +38 -0
  237. package/esm/pagination/components/next2.mjs.map +1 -0
  238. package/esm/pagination/components/pager.mjs +21 -22
  239. package/esm/pagination/components/pager.mjs.map +1 -1
  240. package/esm/pagination/components/pager2.mjs +229 -0
  241. package/esm/pagination/components/pager2.mjs.map +1 -0
  242. package/esm/pagination/components/prev.mjs +16 -22
  243. package/esm/pagination/components/prev.mjs.map +1 -1
  244. package/esm/pagination/components/prev2.mjs +38 -0
  245. package/esm/pagination/components/prev2.mjs.map +1 -0
  246. package/esm/pagination/components/sizes.mjs +32 -7
  247. package/esm/pagination/components/sizes.mjs.map +1 -1
  248. package/esm/pagination/components/sizes2.mjs +66 -0
  249. package/esm/pagination/components/sizes2.mjs.map +1 -0
  250. package/esm/pagination/components/total.mjs +10 -11
  251. package/esm/pagination/components/total.mjs.map +1 -1
  252. package/esm/pagination/components/total2.mjs +26 -0
  253. package/esm/pagination/components/total2.mjs.map +1 -0
  254. package/esm/pagination/pagination.mjs +271 -626
  255. package/esm/pagination/pagination.mjs.map +1 -1
  256. package/esm/password/index.d.ts +8 -54
  257. package/esm/password/index.mjs +11 -14
  258. package/esm/password/index.mjs.map +1 -1
  259. package/esm/preview-text/cascader.mjs +51 -0
  260. package/esm/preview-text/cascader.mjs.map +1 -0
  261. package/esm/preview-text/color-picker.mjs +37 -0
  262. package/esm/preview-text/color-picker.mjs.map +1 -0
  263. package/esm/preview-text/date-picker.mjs +61 -0
  264. package/esm/preview-text/date-picker.mjs.map +1 -0
  265. package/esm/preview-text/index.d.ts +107 -106
  266. package/esm/preview-text/index.mjs +25 -364
  267. package/esm/preview-text/index.mjs.map +1 -1
  268. package/esm/preview-text/input.mjs +39 -0
  269. package/esm/preview-text/input.mjs.map +1 -0
  270. package/esm/preview-text/preview.mjs +30 -0
  271. package/esm/preview-text/preview.mjs.map +1 -0
  272. package/esm/preview-text/rate.mjs +32 -0
  273. package/esm/preview-text/rate.mjs.map +1 -0
  274. package/esm/preview-text/select.mjs +42 -0
  275. package/esm/preview-text/select.mjs.map +1 -0
  276. package/esm/preview-text/style.css +16 -0
  277. package/esm/preview-text/time-picker.mjs +39 -0
  278. package/esm/preview-text/time-picker.mjs.map +1 -0
  279. package/esm/preview-text/tree.mjs +73 -0
  280. package/esm/preview-text/tree.mjs.map +1 -0
  281. package/esm/preview-text/utils.d.ts +10 -13
  282. package/esm/preview-text/utils.mjs +15 -15
  283. package/esm/preview-text/utils.mjs.map +1 -1
  284. package/esm/query-form/default-components.mjs +45 -45
  285. package/esm/query-form/default-components.mjs.map +1 -1
  286. package/esm/query-form/hooks.mjs +31 -26
  287. package/esm/query-form/hooks.mjs.map +1 -1
  288. package/esm/query-form/index.d.ts +115 -105
  289. package/esm/query-form/index.mjs +10 -334
  290. package/esm/query-form/index.mjs.map +1 -1
  291. package/esm/query-form/query-form-light.mjs +86 -0
  292. package/esm/query-form/query-form-light.mjs.map +1 -0
  293. package/esm/query-form/query-form.mjs +263 -0
  294. package/esm/query-form/query-form.mjs.map +1 -0
  295. package/esm/query-form/style.css +27 -0
  296. package/esm/query-form/types.d.ts +42 -41
  297. package/esm/query-form-item/index.d.ts +7 -151
  298. package/esm/query-form-item/index.mjs +15 -184
  299. package/esm/query-form-item/index.mjs.map +1 -1
  300. package/esm/query-form-item/query-form-item.mjs +195 -0
  301. package/esm/query-form-item/query-form-item.mjs.map +1 -0
  302. package/esm/query-form-item/style.css +12 -0
  303. package/esm/query-form-item/types.d.ts +42 -38
  304. package/esm/radio/index.d.ts +429 -473
  305. package/esm/radio/index.mjs +15 -69
  306. package/esm/radio/index.mjs.map +1 -1
  307. package/esm/radio/radio-group.mjs +70 -0
  308. package/esm/radio/radio-group.mjs.map +1 -0
  309. package/esm/{styles/radio/index.css → radio/style.css} +3 -1
  310. package/esm/rate/index.d.ts +8 -187
  311. package/esm/rate/index.mjs +13 -17
  312. package/esm/rate/index.mjs.map +1 -1
  313. package/esm/reset/index.d.ts +5 -2
  314. package/esm/reset/index.mjs +8 -44
  315. package/esm/reset/index.mjs.map +1 -1
  316. package/esm/reset/reset.mjs +42 -0
  317. package/esm/reset/reset.mjs.map +1 -0
  318. package/esm/segmented/index.d.ts +5 -26
  319. package/esm/segmented/index.mjs +13 -41
  320. package/esm/segmented/index.mjs.map +1 -1
  321. package/esm/segmented/segmented.mjs +26 -0
  322. package/esm/segmented/segmented.mjs.map +1 -0
  323. package/esm/select/index.d.ts +5 -129
  324. package/esm/select/index.mjs +14 -128
  325. package/esm/select/index.mjs.map +1 -1
  326. package/esm/select/select.mjs +95 -0
  327. package/esm/select/select.mjs.map +1 -0
  328. package/esm/select-table/index.d.ts +4 -1557
  329. package/esm/select-table/index.mjs +12 -205
  330. package/esm/select-table/index.mjs.map +1 -1
  331. package/esm/select-table/select-table.mjs +202 -0
  332. package/esm/select-table/select-table.mjs.map +1 -0
  333. package/esm/select-table/style.css +14 -0
  334. package/esm/shared/overlay-elements.mjs +15 -16
  335. package/esm/shared/overlay-elements.mjs.map +1 -1
  336. package/esm/shared/url-change-listener.mjs +50 -0
  337. package/esm/shared/url-change-listener.mjs.map +1 -0
  338. package/esm/slider/index.d.ts +8 -177
  339. package/esm/slider/index.mjs +13 -17
  340. package/esm/slider/index.mjs.map +1 -1
  341. package/esm/space/index.d.ts +2 -1
  342. package/esm/space/index.mjs +2 -6
  343. package/esm/submit/index.d.ts +5 -2
  344. package/esm/submit/index.mjs +8 -40
  345. package/esm/submit/index.mjs.map +1 -1
  346. package/esm/submit/submit.mjs +41 -0
  347. package/esm/submit/submit.mjs.map +1 -0
  348. package/esm/switch/index.d.ts +8 -299
  349. package/esm/switch/index.mjs +8 -13
  350. package/esm/switch/index.mjs.map +1 -1
  351. package/esm/time-picker/index.d.ts +8 -445
  352. package/esm/time-picker/index.mjs +10 -17
  353. package/esm/time-picker/index.mjs.map +1 -1
  354. package/esm/time-select/index.d.ts +5 -185
  355. package/esm/time-select/index.mjs +13 -17
  356. package/esm/time-select/index.mjs.map +1 -1
  357. package/esm/transfer/index.d.ts +8 -267
  358. package/esm/transfer/index.mjs +8 -11
  359. package/esm/transfer/index.mjs.map +1 -1
  360. package/esm/tree/index.d.ts +4 -41
  361. package/esm/tree/index.mjs +14 -105
  362. package/esm/tree/index.mjs.map +1 -1
  363. package/esm/tree/tree.mjs +127 -0
  364. package/esm/tree/tree.mjs.map +1 -0
  365. package/esm/tree/utils.mjs +157 -149
  366. package/esm/tree/utils.mjs.map +1 -1
  367. package/esm/tree-select/index.d.ts +5 -16
  368. package/esm/tree-select/index.mjs +13 -41
  369. package/esm/tree-select/index.mjs.map +1 -1
  370. package/esm/tree-select/tree-select.mjs +38 -0
  371. package/esm/tree-select/tree-select.mjs.map +1 -0
  372. package/esm/upload/index.d.ts +5 -712
  373. package/esm/upload/index.mjs +11 -176
  374. package/esm/upload/index.mjs.map +1 -1
  375. package/esm/upload/upload.mjs +176 -0
  376. package/esm/upload/upload.mjs.map +1 -0
  377. package/package.json +25 -26
  378. package/esm/__builtins__/configs/index.d.ts +0 -1
  379. package/esm/__builtins__/index.d.ts +0 -2
  380. package/esm/__builtins__/index.mjs +0 -23
  381. package/esm/__builtins__/index.mjs.map +0 -1
  382. package/esm/__builtins__/shared/index.d.ts +0 -6
  383. package/esm/__builtins__/shared/index.mjs +0 -21
  384. package/esm/__builtins__/shared/index.mjs.map +0 -1
  385. package/esm/__builtins__/shared/load-config-provider.d.ts +0 -2
  386. package/esm/__builtins__/shared/loading.d.ts +0 -12
  387. package/esm/__builtins__/shared/simple-version-compare.d.ts +0 -2
  388. package/esm/__builtins__/shared/transform-component.d.ts +0 -3
  389. package/esm/__builtins__/shared/types.d.ts +0 -2
  390. package/esm/__builtins__/shared/types.mjs +0 -2
  391. package/esm/__builtins__/shared/types.mjs.map +0 -1
  392. package/esm/__builtins__/shared/use-enter-submit.d.ts +0 -9
  393. package/esm/__builtins__/shared/utils.d.ts +0 -9
  394. package/esm/array-base/array-base-addition.d.ts +0 -5
  395. package/esm/array-base/array-base-index.d.ts +0 -19
  396. package/esm/array-base/array-base-inner.d.ts +0 -18
  397. package/esm/array-base/array-base-item.d.ts +0 -18
  398. package/esm/array-base/array-base-move-down.d.ts +0 -18
  399. package/esm/array-base/array-base-move-up.d.ts +0 -18
  400. package/esm/array-base/array-base-remove.d.ts +0 -18
  401. package/esm/array-base/array-base-sort-handle.d.ts +0 -2
  402. package/esm/array-base/index.d.ts +0 -114
  403. package/esm/array-base/symbols.d.ts +0 -4
  404. package/esm/array-base/types.mjs +0 -2
  405. package/esm/array-base/types.mjs.map +0 -1
  406. package/esm/array-cards/array-cards.d.ts +0 -13
  407. package/esm/array-collapse/array-collapse-item.d.ts +0 -18
  408. package/esm/array-collapse/array-collapse.d.ts +0 -16
  409. package/esm/array-collapse/utils.d.ts +0 -1
  410. package/esm/array-items/array-items-item.d.ts +0 -30
  411. package/esm/array-items/array-items.d.ts +0 -2
  412. package/esm/array-list-tabs/array-list-tabs.d.ts +0 -31
  413. package/esm/array-list-tabs/utils.d.ts +0 -3
  414. package/esm/array-table/array-table.d.ts +0 -1505
  415. package/esm/array-table/types.mjs +0 -2
  416. package/esm/array-table/types.mjs.map +0 -1
  417. package/esm/array-table/utils.d.ts +0 -5
  418. package/esm/array-tabs/array-tabs.d.ts +0 -2
  419. package/esm/autocomplete/autocomplete.d.ts +0 -1222
  420. package/esm/cascader/cascader.d.ts +0 -25
  421. package/esm/checkbox/checkbox-group.d.ts +0 -42
  422. package/esm/date-picker/utils.d.ts +0 -4
  423. package/esm/editable/editable-popover.d.ts +0 -25
  424. package/esm/editable/editable.d.ts +0 -193
  425. package/esm/env.d.d.ts +0 -1
  426. package/esm/env.d.mjs +0 -2
  427. package/esm/env.d.mjs.map +0 -1
  428. package/esm/form/form.d.ts +0 -46
  429. package/esm/form/index.mjs +0 -6
  430. package/esm/form/index.mjs.map +0 -1
  431. package/esm/form-button-group/form-button-group-sticky.d.ts +0 -17
  432. package/esm/form-button-group/form-button-group.d.ts +0 -57
  433. package/esm/form-button-group/utils.d.ts +0 -1
  434. package/esm/form-collapse/form-collapse.d.ts +0 -18
  435. package/esm/form-dialog/dialog-content.d.ts +0 -846
  436. package/esm/form-dialog/types.mjs +0 -2
  437. package/esm/form-dialog/types.mjs.map +0 -1
  438. package/esm/form-drawer/drawer-content.d.ts +0 -976
  439. package/esm/form-drawer/types.mjs +0 -2
  440. package/esm/form-drawer/types.mjs.map +0 -1
  441. package/esm/form-grid/form-grid-column.d.ts +0 -29
  442. package/esm/form-grid/form-grid.d.ts +0 -101
  443. package/esm/form-grid/hooks.d.ts +0 -4
  444. package/esm/form-item/form-item.d.ts +0 -19
  445. package/esm/form-item/types.mjs +0 -2
  446. package/esm/form-item/types.mjs.map +0 -1
  447. package/esm/form-item/utils.d.ts +0 -3
  448. package/esm/form-layout/form-layout.d.ts +0 -31
  449. package/esm/form-layout/index.mjs +0 -6
  450. package/esm/form-layout/index.mjs.map +0 -1
  451. package/esm/form-layout/types.mjs +0 -2
  452. package/esm/form-layout/types.mjs.map +0 -1
  453. package/esm/form-layout/utils.d.ts +0 -57
  454. package/esm/form-step/form-step-pane.d.ts +0 -2
  455. package/esm/form-step/form-step.d.ts +0 -5
  456. package/esm/form-step/types.mjs +0 -2
  457. package/esm/form-step/types.mjs.map +0 -1
  458. package/esm/form-tab/form-tab.d.ts +0 -7
  459. package/esm/form-tab/hooks.d.ts +0 -8
  460. package/esm/form-tab/types.d.ts +0 -12
  461. package/esm/form-tab/types.mjs +0 -2
  462. package/esm/form-tab/types.mjs.map +0 -1
  463. package/esm/form-tab/utils.d.ts +0 -4
  464. package/esm/index.mjs.map +0 -1
  465. package/esm/input/input.d.ts +0 -25
  466. package/esm/input-tag/input-tag.d.ts +0 -32
  467. package/esm/mention/mention.d.ts +0 -51
  468. package/esm/pagination/components/jumper.d.ts +0 -16
  469. package/esm/pagination/components/next.d.ts +0 -42
  470. package/esm/pagination/components/pager.d.ts +0 -42
  471. package/esm/pagination/components/prev.d.ts +0 -39
  472. package/esm/pagination/components/sizes.d.ts +0 -56
  473. package/esm/pagination/components/total.d.ts +0 -8
  474. package/esm/pagination/pagination.d.ts +0 -128
  475. package/esm/preview-text/cascader.d.ts +0 -5
  476. package/esm/preview-text/color-picker.d.ts +0 -5
  477. package/esm/preview-text/date-picker.d.ts +0 -5
  478. package/esm/preview-text/input.d.ts +0 -28
  479. package/esm/preview-text/preview.d.ts +0 -18
  480. package/esm/preview-text/rate.d.ts +0 -5
  481. package/esm/preview-text/select.d.ts +0 -5
  482. package/esm/preview-text/time-picker.d.ts +0 -5
  483. package/esm/preview-text/tree.d.ts +0 -22
  484. package/esm/query-form/default-components.d.ts +0 -5
  485. package/esm/query-form/hooks.d.ts +0 -25
  486. package/esm/query-form/query-form-light.d.ts +0 -27
  487. package/esm/query-form/query-form.d.ts +0 -52
  488. package/esm/query-form/types.mjs +0 -2
  489. package/esm/query-form/types.mjs.map +0 -1
  490. package/esm/query-form-item/query-form-item.d.ts +0 -96
  491. package/esm/query-form-item/types.mjs +0 -2
  492. package/esm/query-form-item/types.mjs.map +0 -1
  493. package/esm/radio/radio-group.d.ts +0 -33
  494. package/esm/reset/reset.d.ts +0 -45
  495. package/esm/segmented/segmented.d.ts +0 -25
  496. package/esm/select/select.d.ts +0 -45
  497. package/esm/select-table/select-table.d.ts +0 -3030
  498. package/esm/select-table/types.d.ts +0 -17
  499. package/esm/select-table/types.mjs +0 -2
  500. package/esm/select-table/types.mjs.map +0 -1
  501. package/esm/shared/overlay-elements.d.ts +0 -6
  502. package/esm/space/index.mjs.map +0 -1
  503. package/esm/styles/array-base/index.css +0 -1
  504. package/esm/styles/array-cards/index.css +0 -1
  505. package/esm/styles/array-collapse/index.css +0 -1
  506. package/esm/styles/array-items/index.css +0 -1
  507. package/esm/styles/array-list-tabs/index.css +0 -1
  508. package/esm/styles/array-table/index.css +0 -1
  509. package/esm/styles/array-tabs/index.css +0 -1
  510. package/esm/styles/editable/index.css +0 -1
  511. package/esm/styles/form-button-group/index.css +0 -1
  512. package/esm/styles/form-collapse/index.css +0 -1
  513. package/esm/styles/form-grid/index.css +0 -1
  514. package/esm/styles/form-item/index.css +0 -1
  515. package/esm/styles/form-tab/index.css +0 -1
  516. package/esm/styles/preview-text/index.css +0 -1
  517. package/esm/styles/query-form/index.css +0 -1
  518. package/esm/styles/query-form-item/index.css +0 -1
  519. package/esm/styles/select-table/index.css +0 -1
  520. package/esm/submit/submit.d.ts +0 -36
  521. package/esm/tree/tree.d.ts +0 -20
  522. package/esm/tree/types.d.ts +0 -13
  523. package/esm/tree/types.mjs +0 -2
  524. package/esm/tree/types.mjs.map +0 -1
  525. package/esm/tree/utils.d.ts +0 -45
  526. package/esm/tree-select/tree-select.d.ts +0 -10
  527. package/esm/upload/upload.d.ts +0 -1259
  528. package/esm/vendor/icon.mjs +0 -11
  529. package/esm/vendor/icon.mjs.map +0 -1
  530. package/esm/vendor/lodash.mjs +0 -1506
  531. package/esm/vendor/lodash.mjs.map +0 -1
  532. package/esm/vendor/runtime.mjs +0 -34
  533. package/esm/vendor/runtime.mjs.map +0 -1
  534. package/esm/vendor/shared.esm-bundler.mjs +0 -9
  535. package/esm/vendor/shared.esm-bundler.mjs.map +0 -1
  536. package/esm/vendor/sizes.mjs +0 -27
  537. package/esm/vendor/sizes.mjs.map +0 -1
  538. package/esm/vendor/types.mjs +0 -19
  539. package/esm/vendor/types.mjs.map +0 -1
@@ -1,69 +1,15 @@
1
- import { connect as E, mapProps as T } from "@silver-formily/vue";
2
- import { ElRadioButton as B, ElRadio as v, ElRadioGroup as C, version as G } from "element-plus";
3
- import "@formily/reactive";
4
- import "@vueuse/core";
5
- import { defineComponent as O, computed as c, useSlots as x, openBlock as t, createBlock as p, unref as u, normalizeProps as A, guardReactiveProps as L, withCtx as i, createElementBlock as f, Fragment as d, renderList as _, resolveDynamicComponent as y, mergeProps as b, createTextVNode as h, toDisplayString as j, renderSlot as w } from "vue";
6
- import { mapReadPretty as D } from "../__builtins__/shared/transform-component.mjs";
7
- import { useCleanAttrs as F, composeExport as N } from "../__builtins__/shared/utils.mjs";
8
- import { PreviewText as z } from "../preview-text/index.mjs";
9
- import { isPlainObj as H } from "@formily/shared";
10
- import { lt as I } from "../__builtins__/shared/simple-version-compare.mjs";
11
- import "@formily/core";
12
- import "@silver-formily/reactive-vue";
13
- import '../styles/radio/index.css';const V = /* @__PURE__ */ O({
14
- name: "FRadioGroup",
15
- __name: "radio-group",
16
- props: {
17
- options: {
18
- type: Array,
19
- default: () => []
20
- },
21
- optionType: {
22
- type: String,
23
- default: "default"
24
- }
25
- },
26
- setup(P) {
27
- const o = P, { props: R } = F(), s = c(() => o.optionType === "button" ? B : v), S = I(G, "2.6.0");
28
- function l(e) {
29
- return H(e);
30
- }
31
- function g(e, n) {
32
- return l(o.options[n]) ? o.options[n].label : e.label;
33
- }
34
- const m = c(() => o.options.map((e) => l(e) ? S ? {
35
- ...e,
36
- label: e.value
37
- } : e : {
38
- label: e,
39
- value: e
40
- })), k = x();
41
- return (e, n) => (t(), p(u(C), A(L(u(R))), {
42
- default: i(() => [
43
- u(k).option ? (t(!0), f(d, { key: 1 }, _(m.value, (r, a) => (t(), p(y(s.value), b({ key: a }, { ref_for: !0 }, r), {
44
- default: i(() => [
45
- w(e.$slots, "option", { option: r })
46
- ]),
47
- _: 2
48
- }, 1040))), 128)) : (t(!0), f(d, { key: 0 }, _(m.value, (r, a) => (t(), p(y(s.value), b({ key: a }, { ref_for: !0 }, r), {
49
- default: i(() => [
50
- h(j(g(r, a)), 1)
51
- ]),
52
- _: 2
53
- }, 1040))), 128))
54
- ]),
55
- _: 3
56
- }, 16));
57
- }
58
- }), $ = E(
59
- V,
60
- T({ dataSource: "options", disabled: !0 }),
61
- D(z.Select)
62
- ), te = N(v, {
63
- Group: $
64
- });
65
- export {
66
- te as Radio,
67
- te as default
68
- };
69
- //# sourceMappingURL=index.mjs.map
1
+ import { mapReadPretty } from "../__builtins__/shared/transform-component.mjs";
2
+ import { composeExport } from "../__builtins__/shared/utils.mjs";
3
+ import PreviewText from "../preview-text/index.mjs";
4
+ import _sfc_main from "./radio-group.mjs";
5
+ import "./style.css";
6
+ import { ElRadio } from "element-plus";
7
+ import { connect, mapProps } from "@silver-formily/vue";
8
+ const Radio = composeExport(ElRadio, { Group: connect(_sfc_main, mapProps({
9
+ dataSource: "options",
10
+ disabled: true
11
+ }), mapReadPretty(PreviewText.Select)) });
12
+ //#endregion
13
+ export { Radio as default };
14
+
15
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../src/radio/radio-group.vue","../../src/radio/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { RadioProps } from 'element-plus'\nimport type { PropType } from 'vue'\nimport { isPlainObj } from '@formily/shared'\nimport { ElRadio, ElRadioButton, ElRadioGroup, version } from 'element-plus'\nimport { computed, useSlots } from 'vue'\nimport { lt, useCleanAttrs } from '../__builtins__'\n\ndefineOptions({\n name: 'FRadioGroup',\n})\n\nconst props = defineProps({\n options: {\n type: Array as PropType<Array<RadioProps | string | number>>,\n default: () => [],\n },\n optionType: {\n type: String as PropType<'default' | 'button'>,\n default: 'default',\n },\n})\n\nconst { props: radioProps } = useCleanAttrs()\n\nconst OptionType = computed(() => {\n return props.optionType === 'button' ? ElRadioButton : ElRadio\n})\nconst IS_LESS_THAN_2_6_0 = lt(version, '2.6.0')\n\nfunction isRadioPropsObject(option: any): option is RadioProps {\n return isPlainObj(option)\n}\n\nfunction getOptionLabel(option: any, index: number) {\n if (isRadioPropsObject(props.options[index])) {\n return props.options[index].label\n }\n return option.label\n}\n\nconst compatiableProps = computed(() => {\n return props.options.map((option) => {\n if (!isRadioPropsObject(option)) {\n return {\n label: option,\n value: option,\n }\n }\n /* istanbul ignore if -- @preserve */\n if (IS_LESS_THAN_2_6_0) {\n return {\n ...option,\n label: option.value,\n }\n }\n return option\n })\n})\n\nconst slots = useSlots()\n</script>\n\n<template>\n <ElRadioGroup v-bind=\"radioProps\">\n <template v-if=\"!slots.option\">\n <component :is=\"OptionType\" v-for=\"(option, index) of compatiableProps\" :key=\"index\" v-bind=\"option\">\n {{ getOptionLabel(option, index) }}\n </component>\n </template>\n <template v-else>\n <component :is=\"OptionType\" v-for=\"(option, index) of compatiableProps\" :key=\"index\" v-bind=\"option\">\n <slot name=\"option\" :option=\"option\" />\n </component>\n </template>\n </ElRadioGroup>\n</template>\n","import { connect, mapProps } from '@silver-formily/vue'\nimport { ElRadio } from 'element-plus'\nimport { composeExport, mapReadPretty } from '../__builtins__'\nimport { PreviewText } from '../preview-text'\nimport FRadioGroup from './radio-group.vue'\nimport './style.scss'\n\nconst RadioGroup = connect<typeof FRadioGroup>(\n FRadioGroup,\n mapProps({ dataSource: 'options', disabled: true }),\n mapReadPretty(PreviewText.Select),\n)\nexport const Radio = composeExport(ElRadio, {\n Group: RadioGroup,\n})\n\nexport default Radio\n"],"names":["props","__props","radioProps","useCleanAttrs","OptionType","computed","ElRadioButton","ElRadio","IS_LESS_THAN_2_6_0","lt","version","isRadioPropsObject","option","isPlainObj","getOptionLabel","index","compatiableProps","slots","useSlots","_openBlock","_createBlock","_unref","_createElementBlock","_Fragment","_renderList","_resolveDynamicComponent","_mergeProps","_renderSlot","_ctx","RadioGroup","connect","FRadioGroup","mapProps","mapReadPretty","PreviewText","Radio","composeExport"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,UAAMA,IAAQC,GAWR,EAAE,OAAOC,EAAA,IAAeC,EAAA,GAExBC,IAAaC,EAAS,MACnBL,EAAM,eAAe,WAAWM,IAAgBC,CACxD,GACKC,IAAqBC,EAAGC,GAAS,OAAO;AAE9C,aAASC,EAAmBC,GAAmC;AAC7D,aAAOC,EAAWD,CAAM;AAAA,IAC1B;AAEA,aAASE,EAAeF,GAAaG,GAAe;AAClD,aAAIJ,EAAmBX,EAAM,QAAQe,CAAK,CAAC,IAClCf,EAAM,QAAQe,CAAK,EAAE,QAEvBH,EAAO;AAAA,IAChB;AAEA,UAAMI,IAAmBX,EAAS,MACzBL,EAAM,QAAQ,IAAI,CAACY,MACnBD,EAAmBC,CAAM,IAO1BJ,IACK;AAAA,MACL,GAAGI;AAAA,MACH,OAAOA,EAAO;AAAA,IAAA,IAGXA,IAZE;AAAA,MACL,OAAOA;AAAA,MACP,OAAOA;AAAA,IAAA,CAWZ,CACF,GAEKK,IAAQC,EAAA;sBAIZC,EAAA,GAAAC,EAWeC,UAXOA,EAAAnB,CAAA,CAAU,CAAA,GAAA;AAAA,iBAC9B,MAIW;AAAA,QAJMmB,EAAAJ,CAAA,EAAM,UAMrBE,EAAA,EAAA,GAAAG,EAEYC,GAAA,EAAA,KAAA,KAAAC,EAF0CR,EAAA,OAAgB,CAAlCJ,GAAQG,YAA5CK,EAEYK,EAFIrB,OAAU,GAA1BsB,EAEY,EAF6D,KAAKX,KAAK,EAAA,SAAA,GAAA,GAAUH,CAAM,GAAA;AAAA,qBACjG,MAAuC;AAAA,YAAvCe,EAAuCC,EAAA,QAAA,UAAA,EAAlB,QAAAhB,GAAc;AAAA,UAAA;;6BANrCO,EAAA,EAAA,GAAAG,EAEYC,GAAA,EAAA,KAAA,KAAAC,EAF0CR,EAAA,OAAgB,CAAlCJ,GAAQG,YAA5CK,EAEYK,EAFIrB,OAAU,GAA1BsB,EAEY,EAF6D,KAAKX,KAAK,EAAA,SAAA,GAAA,GAAUH,CAAM,GAAA;AAAA,qBACjG,MAAmC;AAAA,gBAAhCE,EAAeF,GAAQG,CAAK,CAAA,GAAA,CAAA;AAAA,UAAA;;;;;;;IC5DjCc,IAAaC;AAAA,EACjBC;AAAAA,EACAC,EAAS,EAAE,YAAY,WAAW,UAAU,IAAM;AAAA,EAClDC,EAAcC,EAAY,MAAM;AAClC,GACaC,KAAQC,EAAc7B,GAAS;AAAA,EAC1C,OAAOsB;AACT,CAAC;"}
1
+ {"version":3,"file":"index.mjs","names":["FRadioGroup"],"sources":["../../src/radio/index.ts"],"sourcesContent":["import { connect, mapProps } from '@silver-formily/vue'\nimport { ElRadio } from 'element-plus'\nimport { composeExport, mapReadPretty } from '../__builtins__'\nimport { PreviewText } from '../preview-text'\nimport FRadioGroup from './radio-group.vue'\nimport './style.scss'\n\nconst RadioGroup = connect<typeof FRadioGroup>(\n FRadioGroup,\n mapProps({ dataSource: 'options', disabled: true }),\n mapReadPretty(PreviewText.Select),\n)\nexport const Radio = composeExport(ElRadio, {\n Group: RadioGroup,\n})\n\nexport default Radio\n"],"mappings":";;;;;;;AAYA,MAAa,QAAQ,cAAc,SAAS,EAC1C,OANiB,QACjBA,WACA,SAAS;CAAE,YAAY;CAAW,UAAU;CAAM,CAAC,EACnD,cAAc,YAAY,OAAO,CAClC,EAGA,CAAC"}
@@ -0,0 +1,70 @@
1
+ import { lt } from "../__builtins__/shared/simple-version-compare.mjs";
2
+ import { useCleanAttrs } from "../__builtins__/shared/utils.mjs";
3
+ import { ElRadio, ElRadioButton, ElRadioGroup, version } from "element-plus";
4
+ import { Fragment, computed, createBlock, createElementBlock, createTextVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useSlots, withCtx } from "vue";
5
+ import { isPlainObj } from "@formily/shared";
6
+ //#region src/radio/radio-group.vue
7
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
+ name: "FRadioGroup",
9
+ __name: "radio-group",
10
+ props: {
11
+ options: {
12
+ type: Array,
13
+ default: () => []
14
+ },
15
+ optionType: {
16
+ type: String,
17
+ default: "default"
18
+ }
19
+ },
20
+ setup(__props) {
21
+ const props = __props;
22
+ const { props: radioProps } = useCleanAttrs();
23
+ const OptionType = computed(() => {
24
+ return props.optionType === "button" ? ElRadioButton : ElRadio;
25
+ });
26
+ const IS_LESS_THAN_2_6_0 = lt(version, "2.6.0");
27
+ function isRadioPropsObject(option) {
28
+ return isPlainObj(option);
29
+ }
30
+ function getOptionLabel(option, index) {
31
+ if (isRadioPropsObject(props.options[index])) return props.options[index].label;
32
+ return option.label;
33
+ }
34
+ const compatiableProps = computed(() => {
35
+ return props.options.map((option) => {
36
+ if (!isRadioPropsObject(option)) return {
37
+ label: option,
38
+ value: option
39
+ };
40
+ /* istanbul ignore if -- @preserve */
41
+ if (IS_LESS_THAN_2_6_0) return {
42
+ ...option,
43
+ label: option.value
44
+ };
45
+ return option;
46
+ });
47
+ });
48
+ const slots = useSlots();
49
+ return (_ctx, _cache) => {
50
+ return openBlock(), createBlock(unref(ElRadioGroup), normalizeProps(guardReactiveProps(unref(radioProps))), {
51
+ default: withCtx(() => [!unref(slots).option ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(compatiableProps.value, (option, index) => {
52
+ return openBlock(), createBlock(resolveDynamicComponent(OptionType.value), mergeProps({ key: index }, { ref_for: true }, option), {
53
+ default: withCtx(() => [createTextVNode(toDisplayString(getOptionLabel(option, index)), 1)]),
54
+ _: 2
55
+ }, 1040);
56
+ }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(compatiableProps.value, (option, index) => {
57
+ return openBlock(), createBlock(resolveDynamicComponent(OptionType.value), mergeProps({ key: index }, { ref_for: true }, option), {
58
+ default: withCtx(() => [renderSlot(_ctx.$slots, "option", { option })]),
59
+ _: 2
60
+ }, 1040);
61
+ }), 128))]),
62
+ _: 3
63
+ }, 16);
64
+ };
65
+ }
66
+ });
67
+ //#endregion
68
+ export { _sfc_main as default };
69
+
70
+ //# sourceMappingURL=radio-group.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio-group.mjs","names":[],"sources":["../../src/radio/radio-group.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { RadioProps } from 'element-plus'\nimport type { PropType } from 'vue'\nimport { isPlainObj } from '@formily/shared'\nimport { ElRadio, ElRadioButton, ElRadioGroup, version } from 'element-plus'\nimport { computed, useSlots } from 'vue'\nimport { lt, useCleanAttrs } from '../__builtins__'\n\ndefineOptions({\n name: 'FRadioGroup',\n})\n\nconst props = defineProps({\n options: {\n type: Array as PropType<Array<RadioProps | string | number>>,\n default: () => [],\n },\n optionType: {\n type: String as PropType<'default' | 'button'>,\n default: 'default',\n },\n})\n\nconst { props: radioProps } = useCleanAttrs()\n\nconst OptionType = computed(() => {\n return props.optionType === 'button' ? ElRadioButton : ElRadio\n})\nconst IS_LESS_THAN_2_6_0 = lt(version, '2.6.0')\n\nfunction isRadioPropsObject(option: any): option is RadioProps {\n return isPlainObj(option)\n}\n\nfunction getOptionLabel(option: any, index: number) {\n if (isRadioPropsObject(props.options[index])) {\n return props.options[index].label\n }\n return option.label\n}\n\nconst compatiableProps = computed(() => {\n return props.options.map((option) => {\n if (!isRadioPropsObject(option)) {\n return {\n label: option,\n value: option,\n }\n }\n /* istanbul ignore if -- @preserve */\n if (IS_LESS_THAN_2_6_0) {\n return {\n ...option,\n label: option.value,\n }\n }\n return option\n })\n})\n\nconst slots = useSlots()\n</script>\n\n<template>\n <ElRadioGroup v-bind=\"radioProps\">\n <template v-if=\"!slots.option\">\n <component :is=\"OptionType\" v-for=\"(option, index) of compatiableProps\" :key=\"index\" v-bind=\"option\">\n {{ getOptionLabel(option, index) }}\n </component>\n </template>\n <template v-else>\n <component :is=\"OptionType\" v-for=\"(option, index) of compatiableProps\" :key=\"index\" v-bind=\"option\">\n <slot name=\"option\" :option=\"option\" />\n </component>\n </template>\n </ElRadioGroup>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;EAYA,MAAM,QAAQ;EAWd,MAAM,EAAE,OAAO,eAAe,eAAc;EAE5C,MAAM,aAAa,eAAe;AAChC,UAAO,MAAM,eAAe,WAAW,gBAAgB;IACxD;EACD,MAAM,qBAAqB,GAAG,SAAS,QAAO;EAE9C,SAAS,mBAAmB,QAAmC;AAC7D,UAAO,WAAW,OAAM;;EAG1B,SAAS,eAAe,QAAa,OAAe;AAClD,OAAI,mBAAmB,MAAM,QAAQ,OAAO,CAC1C,QAAO,MAAM,QAAQ,OAAO;AAE9B,UAAO,OAAO;;EAGhB,MAAM,mBAAmB,eAAe;AACtC,UAAO,MAAM,QAAQ,KAAK,WAAW;AACnC,QAAI,CAAC,mBAAmB,OAAO,CAC7B,QAAO;KACL,OAAO;KACP,OAAO;KACT;;AAGF,QAAI,mBACF,QAAO;KACL,GAAG;KACH,OAAO,OAAO;KAChB;AAEF,WAAO;KACR;IACF;EAED,MAAM,QAAQ,UAAS;;uBAIrB,YAWe,MAAA,aAAA,EAAA,eAAA,mBAXO,MAAA,WAAU,CAAA,CAAA,EAAA;2BAKnB,CAAA,CAJM,MAAA,MAAK,CAAC,UAAA,UAAA,KAAA,EACrB,mBAEY,UAAA,EAAA,KAAA,GAAA,EAAA,WAF0C,iBAAA,QAAlB,QAAQ,UAAK;yBAAjD,YAEY,wBAFI,WAAA,MAAU,EAA1B,WAEY,EAF6D,KAAK,OAAK,EAAA,EAAA,SAAA,MAAA,EAAU,OAAM,EAAA;6BAC9D,CAAA,gBAAA,gBAAhC,eAAe,QAAQ,MAAK,CAAA,EAAA,EAAA,CAAA,CAAA;;;kCAIjC,mBAEY,UAAA,EAAA,KAAA,GAAA,EAAA,WAF0C,iBAAA,QAAlB,QAAQ,UAAK;yBAAjD,YAEY,wBAFI,WAAA,MAAU,EAA1B,WAEY,EAF6D,KAAK,OAAK,EAAA,EAAA,SAAA,MAAA,EAAU,OAAM,EAAA;6BAC1D,CAAvC,WAAuC,KAAA,QAAA,UAAA,EAAV,QAAM,CAAA,CAAA,CAAA"}
@@ -1 +1,3 @@
1
- .formily-element-plus-form-item-control-content-component .el-radio-group{vertical-align:bottom}
1
+ .formily-element-plus-form-item-control-content-component .el-radio-group {
2
+ vertical-align: bottom;
3
+ }
@@ -1,187 +1,8 @@
1
- import { ElRate } from 'element-plus';
2
- export type RateProps = typeof ElRate;
3
- export declare const Rate: import('element-plus/es/utils/index.mjs').SFCWithInstall<import('vue').DefineComponent<{
4
- size: {
5
- type: import('vue').PropType<"" | "small" | "default" | "large">;
6
- };
7
- max: {
8
- type: import('vue').PropType<number>;
9
- default: number;
10
- };
11
- disabled: {
12
- type: import('vue').PropType<boolean>;
13
- default: undefined;
14
- };
15
- id: {
16
- type: import('vue').PropType<string>;
17
- default: undefined;
18
- };
19
- modelValue: {
20
- type: import('vue').PropType<number>;
21
- default: number;
22
- };
23
- ariaLabel: {
24
- type: import('vue').PropType<string>;
25
- };
26
- clearable: {
27
- type: import('vue').PropType<boolean>;
28
- };
29
- lowThreshold: {
30
- type: import('vue').PropType<number>;
31
- default: number;
32
- };
33
- highThreshold: {
34
- type: import('vue').PropType<number>;
35
- default: number;
36
- };
37
- colors: {
38
- type: import('vue').PropType<string[] | Record<number, string>>;
39
- default: () => string[];
40
- };
41
- voidColor: {
42
- type: import('vue').PropType<string>;
43
- default: string;
44
- };
45
- disabledVoidColor: {
46
- type: import('vue').PropType<string>;
47
- default: string;
48
- };
49
- icons: {
50
- type: import('vue').PropType<(string | import('vue').Component)[] | Record<number, string | import('vue').Component>>;
51
- default: () => any[];
52
- };
53
- voidIcon: {
54
- type: import('vue').PropType<string | import('vue').Component>;
55
- default: () => any;
56
- };
57
- disabledVoidIcon: {
58
- type: import('vue').PropType<string | import('vue').Component>;
59
- default: () => any;
60
- };
61
- allowHalf: {
62
- type: import('vue').PropType<boolean>;
63
- };
64
- showText: {
65
- type: import('vue').PropType<boolean>;
66
- };
67
- showScore: {
68
- type: import('vue').PropType<boolean>;
69
- };
70
- textColor: {
71
- type: import('vue').PropType<string>;
72
- default: string;
73
- };
74
- texts: {
75
- type: import('vue').PropType<string[]>;
76
- default: () => string[];
77
- };
78
- scoreTemplate: {
79
- type: import('vue').PropType<string>;
80
- default: string;
81
- };
82
- }, {
83
- setCurrentValue: (value: number, event?: MouseEvent) => void;
84
- resetCurrentValue: () => void;
85
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
86
- "update:modelValue": (value: number) => void;
87
- change: (value: number) => void;
88
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
89
- size: {
90
- type: import('vue').PropType<"" | "small" | "default" | "large">;
91
- };
92
- max: {
93
- type: import('vue').PropType<number>;
94
- default: number;
95
- };
96
- disabled: {
97
- type: import('vue').PropType<boolean>;
98
- default: undefined;
99
- };
100
- id: {
101
- type: import('vue').PropType<string>;
102
- default: undefined;
103
- };
104
- modelValue: {
105
- type: import('vue').PropType<number>;
106
- default: number;
107
- };
108
- ariaLabel: {
109
- type: import('vue').PropType<string>;
110
- };
111
- clearable: {
112
- type: import('vue').PropType<boolean>;
113
- };
114
- lowThreshold: {
115
- type: import('vue').PropType<number>;
116
- default: number;
117
- };
118
- highThreshold: {
119
- type: import('vue').PropType<number>;
120
- default: number;
121
- };
122
- colors: {
123
- type: import('vue').PropType<string[] | Record<number, string>>;
124
- default: () => string[];
125
- };
126
- voidColor: {
127
- type: import('vue').PropType<string>;
128
- default: string;
129
- };
130
- disabledVoidColor: {
131
- type: import('vue').PropType<string>;
132
- default: string;
133
- };
134
- icons: {
135
- type: import('vue').PropType<(string | import('vue').Component)[] | Record<number, string | import('vue').Component>>;
136
- default: () => any[];
137
- };
138
- voidIcon: {
139
- type: import('vue').PropType<string | import('vue').Component>;
140
- default: () => any;
141
- };
142
- disabledVoidIcon: {
143
- type: import('vue').PropType<string | import('vue').Component>;
144
- default: () => any;
145
- };
146
- allowHalf: {
147
- type: import('vue').PropType<boolean>;
148
- };
149
- showText: {
150
- type: import('vue').PropType<boolean>;
151
- };
152
- showScore: {
153
- type: import('vue').PropType<boolean>;
154
- };
155
- textColor: {
156
- type: import('vue').PropType<string>;
157
- default: string;
158
- };
159
- texts: {
160
- type: import('vue').PropType<string[]>;
161
- default: () => string[];
162
- };
163
- scoreTemplate: {
164
- type: import('vue').PropType<string>;
165
- default: string;
166
- };
167
- }>> & {
168
- "onUpdate:modelValue"?: ((value: number) => any) | undefined;
169
- onChange?: ((value: number) => any) | undefined;
170
- }, {
171
- disabled: boolean;
172
- id: string;
173
- modelValue: number;
174
- max: number;
175
- textColor: string;
176
- colors: string[] | Record<number, string>;
177
- lowThreshold: number;
178
- highThreshold: number;
179
- voidColor: string;
180
- disabledVoidColor: string;
181
- icons: Array<string | import('vue').Component> | Record<number, string | import('vue').Component>;
182
- voidIcon: string | import('vue').Component;
183
- disabledVoidIcon: string | import('vue').Component;
184
- texts: string[];
185
- scoreTemplate: string;
186
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>;
187
- export default Rate;
1
+ import { ElRate } from "element-plus";
2
+
3
+ //#region src/rate/index.d.ts
4
+ type RateProps = typeof ElRate;
5
+ declare const Rate: any;
6
+ //#endregion
7
+ export { Rate, RateProps };
8
+ //# sourceMappingURL=index.d.ts.map
@@ -1,17 +1,13 @@
1
- import { connect as r, mapProps as t } from "@silver-formily/vue";
2
- import { ElRate as o } from "element-plus";
3
- import "@formily/reactive";
4
- import "@vueuse/core";
5
- import "vue";
6
- import { mapReadPretty as e } from "../__builtins__/shared/transform-component.mjs";
7
- import { PreviewText as m } from "../preview-text/index.mjs";
8
- const s = r(
9
- o,
10
- t({ readOnly: "readonly", disabled: !0 }),
11
- e(m.Rate)
12
- );
13
- export {
14
- s as Rate,
15
- s as default
16
- };
17
- //# sourceMappingURL=index.mjs.map
1
+ import { mapReadPretty } from "../__builtins__/shared/transform-component.mjs";
2
+ import PreviewText from "../preview-text/index.mjs";
3
+ import { ElRate } from "element-plus";
4
+ import { connect, mapProps } from "@silver-formily/vue";
5
+ //#region src/rate/index.ts
6
+ const Rate = connect(ElRate, mapProps({
7
+ readOnly: "readonly",
8
+ disabled: true
9
+ }), mapReadPretty(PreviewText.Rate));
10
+ //#endregion
11
+ export { Rate as default };
12
+
13
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../src/rate/index.ts"],"sourcesContent":["import { connect, mapProps } from '@silver-formily/vue'\nimport { ElRate } from 'element-plus'\nimport { mapReadPretty } from '../__builtins__'\nimport { PreviewText } from '../preview-text'\n\nexport type RateProps = typeof ElRate\n\nexport const Rate = connect<typeof ElRate>(\n ElRate,\n mapProps({ readOnly: 'readonly', disabled: true }),\n mapReadPretty(PreviewText.Rate),\n)\n\nexport default Rate\n"],"names":["Rate","connect","ElRate","mapProps","mapReadPretty","PreviewText"],"mappings":";;;;;;;AAOO,MAAMA,IAAOC;AAAA,EAClBC;AAAA,EACAC,EAAS,EAAE,UAAU,YAAY,UAAU,IAAM;AAAA,EACjDC,EAAcC,EAAY,IAAI;AAChC;"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../src/rate/index.ts"],"sourcesContent":["import { connect, mapProps } from '@silver-formily/vue'\nimport { ElRate } from 'element-plus'\nimport { mapReadPretty } from '../__builtins__'\nimport { PreviewText } from '../preview-text'\n\nexport type RateProps = typeof ElRate\n\nexport const Rate = connect<typeof ElRate>(\n ElRate,\n mapProps({ readOnly: 'readonly', disabled: true }),\n mapReadPretty(PreviewText.Rate),\n)\n\nexport default Rate\n"],"mappings":";;;;;AAOA,MAAa,OAAO,QAClB,QACA,SAAS;CAAE,UAAU;CAAY,UAAU;CAAM,CAAC,EAClD,cAAc,YAAY,KAAK,CAChC"}
@@ -1,2 +1,5 @@
1
- export declare const Reset: any;
2
- export default Reset;
1
+ //#region src/reset/index.d.ts
2
+ declare const Reset: any;
3
+ //#endregion
4
+ export { Reset };
5
+ //# sourceMappingURL=index.d.ts.map
@@ -1,44 +1,8 @@
1
- import { observer as s } from "@silver-formily/reactive-vue";
2
- import { defineComponent as c, openBlock as i, createBlock as f, unref as u, mergeProps as d, withCtx as m, renderSlot as p } from "vue";
3
- import { useParentForm as C } from "@silver-formily/vue";
4
- import { ElButton as k } from "element-plus";
5
- const F = /* @__PURE__ */ c({
6
- name: "FReset",
7
- inheritAttrs: !1,
8
- __name: "reset",
9
- props: {
10
- onClick: Function,
11
- forceClear: {
12
- type: Boolean,
13
- default: !1
14
- },
15
- validate: {
16
- type: Boolean,
17
- default: !1
18
- },
19
- onResetValidateSuccess: Function,
20
- onResetValidateFailed: Function
21
- },
22
- setup(a) {
23
- const e = a, n = C();
24
- function r(t) {
25
- if (e.onClick && e.onClick?.(t) === !1)
26
- return;
27
- const o = n?.value;
28
- o?.reset("*", {
29
- forceClear: e.forceClear
30
- }), e.validate && o?.validate().then(e.onResetValidateSuccess).catch((l) => e.onResetValidateFailed?.(l));
31
- }
32
- return (t, o) => (i(), f(u(k), d(t.$attrs, { onClick: r }), {
33
- default: m(() => [
34
- p(t.$slots, "default")
35
- ]),
36
- _: 3
37
- }, 16));
38
- }
39
- }), _ = s(F);
40
- export {
41
- _ as Reset,
42
- _ as default
43
- };
44
- //# sourceMappingURL=index.mjs.map
1
+ import _sfc_main from "./reset.mjs";
2
+ import { observer } from "@silver-formily/reactive-vue";
3
+ //#region src/reset/index.ts
4
+ const Reset = observer(_sfc_main);
5
+ //#endregion
6
+ export { Reset as default };
7
+
8
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../src/reset/reset.vue","../../src/reset/index.ts"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { PropType } from 'vue'\nimport { useParentForm } from '@silver-formily/vue'\nimport { ElButton } from 'element-plus'\n\ndefineOptions({\n name: 'FReset',\n inheritAttrs: false,\n})\n\nconst props = defineProps({\n onClick: Function as PropType<(e: MouseEvent) => void | boolean>,\n forceClear: {\n type: Boolean,\n default: false,\n },\n validate: {\n type: Boolean,\n default: false,\n },\n onResetValidateSuccess: Function as PropType<(payload: any) => void>,\n onResetValidateFailed: Function as PropType<(error: any) => void>,\n})\n\nconst formRef = useParentForm()\n\nfunction handleClick(e: MouseEvent) {\n if (props.onClick && (props.onClick)?.(e) === false)\n return\n\n const form = formRef?.value\n form?.reset('*', {\n forceClear: props.forceClear,\n })\n props.validate && form?.validate()\n .then(props.onResetValidateSuccess)\n .catch(error => props.onResetValidateFailed?.(error))\n}\n</script>\n\n<template>\n <ElButton v-bind=\"$attrs\" @click=\"handleClick\">\n <slot />\n </ElButton>\n</template>\n","import { observer } from '@silver-formily/reactive-vue'\nimport FReset from './reset.vue'\n\nexport const Reset = observer(FReset)\n\nexport default Reset\n"],"names":["props","__props","formRef","useParentForm","handleClick","e","form","error","_openBlock","_createBlock","_unref","_mergeProps","_ctx","_renderSlot","Reset","observer","FReset"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAUA,UAAMA,IAAQC,GAcRC,IAAUC,EAAA;AAEhB,aAASC,EAAYC,GAAe;AAClC,UAAIL,EAAM,WAAYA,EAAM,UAAWK,CAAC,MAAM;AAC5C;AAEF,YAAMC,IAAOJ,GAAS;AACtB,MAAAI,GAAM,MAAM,KAAK;AAAA,QACf,YAAYN,EAAM;AAAA,MAAA,CACnB,GACDA,EAAM,YAAYM,GAAM,SAAA,EACrB,KAAKN,EAAM,sBAAsB,EACjC,MAAM,CAAAO,MAASP,EAAM,wBAAwBO,CAAK,CAAC;AAAA,IACxD;sBAIEC,EAAA,GAAAC,EAEWC,MAFXC,EAEWC,UAFa,EAAG,SAAOR,EAAA,CAAW,GAAA;AAAA,iBAC3C,MAAQ;AAAA,QAARS,EAAQD,EAAA,QAAA,SAAA;AAAA,MAAA;;;;ICvCCE,IAAQC,EAASC,CAAM;"}
1
+ {"version":3,"file":"index.mjs","names":["FReset"],"sources":["../../src/reset/index.ts"],"sourcesContent":["import { observer } from '@silver-formily/reactive-vue'\nimport FReset from './reset.vue'\n\nexport const Reset = observer(FReset)\n\nexport default Reset\n"],"mappings":";;;AAGA,MAAa,QAAQ,SAASA,UAAO"}
@@ -0,0 +1,42 @@
1
+ import { ElButton } from "element-plus";
2
+ import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
3
+ import { useParentForm } from "@silver-formily/vue";
4
+ //#region src/reset/reset.vue
5
+ const _sfc_main = /* @__PURE__ */ defineComponent({
6
+ name: "FReset",
7
+ inheritAttrs: false,
8
+ __name: "reset",
9
+ props: {
10
+ onClick: Function,
11
+ forceClear: {
12
+ type: Boolean,
13
+ default: false
14
+ },
15
+ validate: {
16
+ type: Boolean,
17
+ default: false
18
+ },
19
+ onResetValidateSuccess: Function,
20
+ onResetValidateFailed: Function
21
+ },
22
+ setup(__props) {
23
+ const props = __props;
24
+ const formRef = useParentForm();
25
+ function handleClick(e) {
26
+ if (props.onClick && props.onClick?.(e) === false) return;
27
+ const form = formRef?.value;
28
+ form?.reset("*", { forceClear: props.forceClear });
29
+ props.validate && form?.validate().then(props.onResetValidateSuccess).catch((error) => props.onResetValidateFailed?.(error));
30
+ }
31
+ return (_ctx, _cache) => {
32
+ return openBlock(), createBlock(unref(ElButton), mergeProps(_ctx.$attrs, { onClick: handleClick }), {
33
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
34
+ _: 3
35
+ }, 16);
36
+ };
37
+ }
38
+ });
39
+ //#endregion
40
+ export { _sfc_main as default };
41
+
42
+ //# sourceMappingURL=reset.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reset.mjs","names":["$attrs"],"sources":["../../src/reset/reset.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { PropType } from 'vue'\nimport { useParentForm } from '@silver-formily/vue'\nimport { ElButton } from 'element-plus'\n\ndefineOptions({\n name: 'FReset',\n inheritAttrs: false,\n})\n\nconst props = defineProps({\n onClick: Function as PropType<(e: MouseEvent) => void | boolean>,\n forceClear: {\n type: Boolean,\n default: false,\n },\n validate: {\n type: Boolean,\n default: false,\n },\n onResetValidateSuccess: Function as PropType<(payload: any) => void>,\n onResetValidateFailed: Function as PropType<(error: any) => void>,\n})\n\nconst formRef = useParentForm()\n\nfunction handleClick(e: MouseEvent) {\n if (props.onClick && (props.onClick)?.(e) === false)\n return\n\n const form = formRef?.value\n form?.reset('*', {\n forceClear: props.forceClear,\n })\n props.validate && form?.validate()\n .then(props.onResetValidateSuccess)\n .catch(error => props.onResetValidateFailed?.(error))\n}\n</script>\n\n<template>\n <ElButton v-bind=\"$attrs\" @click=\"handleClick\">\n <slot />\n </ElButton>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;EAUA,MAAM,QAAQ;EAcd,MAAM,UAAU,eAAc;EAE9B,SAAS,YAAY,GAAe;AAClC,OAAI,MAAM,WAAY,MAAM,UAAW,EAAE,KAAK,MAC5C;GAEF,MAAM,OAAO,SAAS;AACtB,SAAM,MAAM,KAAK,EACf,YAAY,MAAM,YACnB,CAAA;AACD,SAAM,YAAY,MAAM,UAAS,CAC9B,KAAK,MAAM,uBAAsB,CACjC,OAAM,UAAS,MAAM,wBAAwB,MAAM,CAAA;;;uBAKtD,YAEW,MAAA,SAAA,EAFX,WAAkBA,KAEP,QAFa,EAAG,SAAO,aAAW,CAAA,EAAA;2BACnC,CAAR,WAAQ,KAAA,QAAA,UAAA,CAAA,CAAA"}
@@ -1,26 +1,5 @@
1
- export declare const Segmented: {
2
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
3
- options?: import('element-plus/es/components/segmented/src/types.mjs').Option[];
4
- }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
5
- P: {};
6
- B: {};
7
- D: {};
8
- C: {};
9
- M: {};
10
- Defaults: {};
11
- }, Readonly<{
12
- options?: import('element-plus/es/components/segmented/src/types.mjs').Option[];
13
- }> & Readonly<{}>, {}, {}, {}, {}, {}>;
14
- __isFragment?: never;
15
- __isTeleport?: never;
16
- __isSuspense?: never;
17
- } & import('vue').ComponentOptionsBase<Readonly<{
18
- options?: import('element-plus/es/components/segmented/src/types.mjs').Option[];
19
- }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
20
- $slots: {
21
- default?(_: {
22
- item: any;
23
- }): any;
24
- };
25
- });
26
- export default Segmented;
1
+ //#region src/segmented/index.d.ts
2
+ declare const Segmented: any;
3
+ //#endregion
4
+ export { Segmented };
5
+ //# sourceMappingURL=index.d.ts.map
@@ -1,41 +1,13 @@
1
- import { connect as m, mapProps as i } from "@silver-formily/vue";
2
- import { ElSegmented as a } from "element-plus";
3
- import "@formily/reactive";
4
- import "@vueuse/core";
5
- import { defineComponent as c, useSlots as d, openBlock as l, createBlock as f, unref as e, mergeProps as u, createSlots as S, withCtx as g, renderSlot as P, normalizeProps as _, guardReactiveProps as h } from "vue";
6
- import { mapReadPretty as k } from "../__builtins__/shared/transform-component.mjs";
7
- import { PreviewText as v } from "../preview-text/index.mjs";
8
- import "@formily/core";
9
- import "@silver-formily/reactive-vue";
10
- import { useCleanAttrs as x } from "../__builtins__/shared/utils.mjs";
11
- const C = /* @__PURE__ */ c({
12
- name: "FSegmented",
13
- inheritAttrs: !1,
14
- __name: "segmented",
15
- props: {
16
- options: {}
17
- },
18
- setup(t) {
19
- const o = t, r = d(), { props: s } = x();
20
- return (n, w) => (l(), f(e(a), u(e(s), {
21
- options: o.options
22
- }), S({ _: 2 }, [
23
- e(r).default ? {
24
- name: "default",
25
- fn: g((p) => [
26
- P(n.$slots, "default", _(h(p)))
27
- ]),
28
- key: "0"
29
- } : void 0
30
- ]), 1040, ["options"]));
31
- }
32
- }), j = m(
33
- C,
34
- i({ dataSource: "options", disabled: !0 }),
35
- k(v.Select)
36
- );
37
- export {
38
- j as Segmented,
39
- j as default
40
- };
41
- //# sourceMappingURL=index.mjs.map
1
+ import { mapReadPretty } from "../__builtins__/shared/transform-component.mjs";
2
+ import PreviewText from "../preview-text/index.mjs";
3
+ import _sfc_main from "./segmented.mjs";
4
+ import { connect, mapProps } from "@silver-formily/vue";
5
+ //#region src/segmented/index.ts
6
+ const Segmented = connect(_sfc_main, mapProps({
7
+ dataSource: "options",
8
+ disabled: true
9
+ }), mapReadPretty(PreviewText.Select));
10
+ //#endregion
11
+ export { Segmented as default };
12
+
13
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../src/segmented/segmented.vue","../../src/segmented/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ElSegmented } from 'element-plus'\nimport { useSlots } from 'vue'\nimport { useCleanAttrs } from '../__builtins__'\n\ndefineOptions({\n name: 'FSegmented',\n inheritAttrs: false,\n})\n\nconst props = defineProps<{\n options?: SegmentedOptions\n}>()\n\ntype SegmentedOption = NonNullable<InstanceType<typeof ElSegmented>['$props']['options']>[number]\n\ntype SegmentedOptions = SegmentedOption[]\n\nconst slots = useSlots()\nconst { props: segmentedProps } = useCleanAttrs()\n</script>\n\n<template>\n <ElSegmented v-bind=\"segmentedProps\" :options=\"props.options\">\n <template v-if=\"slots.default\" #default=\"slotData\">\n <slot v-bind=\"slotData\" />\n </template>\n </ElSegmented>\n</template>\n","import { connect, mapProps } from '@silver-formily/vue'\nimport { mapReadPretty } from '../__builtins__'\nimport { PreviewText } from '../preview-text'\nimport FSegmented from './segmented.vue'\n\nexport const Segmented = connect<typeof FSegmented>(\n FSegmented,\n mapProps({ dataSource: 'options', disabled: true }),\n mapReadPretty(PreviewText.Select),\n)\n\nexport default Segmented\n"],"names":["props","__props","slots","useSlots","segmentedProps","useCleanAttrs","_createBlock","_unref","ElSegmented","_mergeProps","_withCtx","slotData","_renderSlot","_ctx","Segmented","connect","FSegmented","mapProps","mapReadPretty","PreviewText"],"mappings":";;;;;;;;;;;;;;;;;;AAUA,UAAMA,IAAQC,GAQRC,IAAQC,EAAA,GACR,EAAE,OAAOC,EAAA,IAAmBC,EAAA;2BAIhCC,EAIcC,EAAAC,CAAA,GAJdC,EAIcF,EAAAH,CAAA,GAJqB;AAAA,MAAG,SAASJ,EAAM;AAAA,IAAA;MACnCO,EAAAL,CAAA,EAAM;cAAU;AAAA,QAC9B,IAAAQ,EAAA,CADuCC,MAAQ;AAAA,UAC/CC,EAA0BC,yBAAZF,CAAQ,CAAA,CAAA;AAAA,QAAA;;;;;ICpBfG,IAAYC;AAAA,EACvBC;AAAAA,EACAC,EAAS,EAAE,YAAY,WAAW,UAAU,IAAM;AAAA,EAClDC,EAAcC,EAAY,MAAM;AAClC;"}
1
+ {"version":3,"file":"index.mjs","names":["FSegmented"],"sources":["../../src/segmented/index.ts"],"sourcesContent":["import { connect, mapProps } from '@silver-formily/vue'\nimport { mapReadPretty } from '../__builtins__'\nimport { PreviewText } from '../preview-text'\nimport FSegmented from './segmented.vue'\n\nexport const Segmented = connect<typeof FSegmented>(\n FSegmented,\n mapProps({ dataSource: 'options', disabled: true }),\n mapReadPretty(PreviewText.Select),\n)\n\nexport default Segmented\n"],"mappings":";;;;;AAKA,MAAa,YAAY,QACvBA,WACA,SAAS;CAAE,YAAY;CAAW,UAAU;CAAM,CAAC,EACnD,cAAc,YAAY,OAAO,CAClC"}