vft 0.0.509 → 0.0.513

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 (329) hide show
  1. package/dist/index.css +1 -1
  2. package/es/components/affix/affix.vue2.js +2 -2
  3. package/es/components/alert/alert.vue2.js +1 -1
  4. package/es/components/autocomplete/autocomplete.vue.d.ts +2 -2
  5. package/es/components/autocomplete/autocomplete.vue2.js +1 -1
  6. package/es/components/autocomplete/index.d.ts +6 -6
  7. package/es/components/avatar/avatar.vue2.js +2 -2
  8. package/es/components/avatar-stack/avatar-stack.vue2.js +7 -7
  9. package/es/components/backtop/backtop.vue2.js +1 -1
  10. package/es/components/breadcrumb/breadcrumb-item.vue2.js +3 -3
  11. package/es/components/breadcrumb/breadcrumb.vue2.js +2 -2
  12. package/es/components/button/button-group.vue2.js +2 -2
  13. package/es/components/button/button.vue2.js +7 -7
  14. package/es/components/button/index.d.ts +9 -9
  15. package/es/components/button/use-button.js +3 -3
  16. package/es/components/card/card.vue2.js +6 -6
  17. package/es/components/carousel/carousel-item.vue2.js +3 -3
  18. package/es/components/carousel/carousel.vue2.js +1 -1
  19. package/es/components/cascader/cascader.vue2.js +202 -203
  20. package/es/components/cascader-panel/index.vue2.js +1 -1
  21. package/es/components/cascader-panel/menu.vue2.js +49 -50
  22. package/es/components/cascader-panel/node.vue2.js +8 -8
  23. package/es/components/check-tag/check-tag.vue2.js +2 -2
  24. package/es/components/checkbox/checkbox-button.vue2.js +13 -13
  25. package/es/components/checkbox/checkbox-group.vue2.js +3 -3
  26. package/es/components/checkbox/checkbox.vue2.js +1 -1
  27. package/es/components/clamp/clamp.vue2.js +2 -2
  28. package/es/components/clamp-toggle/clamp-toggle.vue2.js +18 -19
  29. package/es/components/clamp-tooltip/clamp-tooltip.vue2.js +6 -6
  30. package/es/components/col/col.vue2.js +2 -2
  31. package/es/components/collapse/collapse-item.vue2.js +2 -2
  32. package/es/components/collapse/collapse.vue2.js +2 -2
  33. package/es/components/collapse-transition/collapse-transition.vue2.js +2 -2
  34. package/es/components/color-picker/color-picker.vue2.js +133 -134
  35. package/es/components/color-picker/components/alpha-slider.vue2.js +2 -2
  36. package/es/components/color-picker/components/hue-slider.vue.js +2 -2
  37. package/es/components/color-picker/components/predefine.vue.js +3 -3
  38. package/es/components/color-picker/components/sv-panel.vue.js +2 -2
  39. package/es/components/config-provider/config-provider.vue.d.ts +0 -2
  40. package/es/components/config-provider/config-provider.vue2.js +4 -5
  41. package/es/components/config-provider/constants.d.ts +0 -1
  42. package/es/components/config-provider/constants.js +2 -3
  43. package/es/components/config-provider/hooks/use-global-config.js +30 -33
  44. package/es/components/config-provider/index.d.ts +0 -9
  45. package/es/components/config-provider/index.js +5 -6
  46. package/es/components/container/aside.vue2.js +2 -2
  47. package/es/components/container/container.vue2.js +2 -2
  48. package/es/components/container/footer.vue2.js +2 -2
  49. package/es/components/container/header.vue2.js +2 -2
  50. package/es/components/container/main.vue2.js +2 -2
  51. package/es/components/context-menu/context-menu.vue2.js +1 -1
  52. package/es/components/countdown/countdown.vue2.js +2 -2
  53. package/es/components/date-picker/composables/use-basic-date-table.d.ts +1 -1
  54. package/es/components/date-picker/composables/use-basic-date-table.js +123 -124
  55. package/es/components/date-picker/composables/use-month-range-header.js +14 -15
  56. package/es/components/date-picker/composables/use-panel-date-range.js +23 -24
  57. package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +6 -6
  58. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +39 -40
  59. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +40 -41
  60. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +178 -179
  61. package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +224 -225
  62. package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +12 -12
  63. package/es/components/date-picker/date-picker-com/panel-year-range.vue2.js +12 -12
  64. package/es/components/date-picker/props/basic-date-table.js +3 -3
  65. package/es/components/date-picker/props/basic-month-table.js +3 -3
  66. package/es/components/date-picker/props/basic-year-table.js +3 -3
  67. package/es/components/date-time-select/date-time-select.vue2.js +36 -39
  68. package/es/components/descriptions/description.vue2.js +1 -1
  69. package/es/components/descriptions/descriptions-row.vue2.js +10 -10
  70. package/es/components/dialog/dialog-content.vue2.js +3 -3
  71. package/es/components/dialog/dialog.vue2.js +5 -5
  72. package/es/components/divider/divider.vue2.js +5 -5
  73. package/es/components/drawer/drawer.vue2.js +4 -4
  74. package/es/components/dropdown/dropdown-item-impl.vue2.js +3 -3
  75. package/es/components/dropdown/dropdown-item.vue2.js +2 -2
  76. package/es/components/dropdown/dropdown-menu.vue2.js +2 -2
  77. package/es/components/dropdown/dropdown.vue2.js +66 -67
  78. package/es/components/empty/empty.vue2.js +36 -37
  79. package/es/components/footer-layout/footer-layout.vue2.js +2 -2
  80. package/es/components/form/form-item.vue2.js +16 -16
  81. package/es/components/form/form.vue2.js +2 -2
  82. package/es/components/full-screen/full-screen.vue2.js +17 -18
  83. package/es/components/header-layout/header-layout.vue2.js +1 -1
  84. package/es/components/horizontal-menu/horizontal-menu.vue2.js +3 -3
  85. package/es/components/icon/icon.vue2.js +3 -3
  86. package/es/components/icon-text/icon-text.vue2.js +1 -1
  87. package/es/components/iframe-layout/iframe-layout.vue2.js +4 -4
  88. package/es/components/iframe-layout/iframe-page.vue2.js +2 -2
  89. package/es/components/image/image.vue2.js +59 -60
  90. package/es/components/image-viewer/image-viewer.vue2.js +44 -45
  91. package/es/components/index.d.ts +1 -0
  92. package/es/components/index.js +213 -211
  93. package/es/components/input/input.vue2.js +6 -6
  94. package/es/components/input-number/input-number.vue2.js +4 -4
  95. package/es/components/input-tag/input-tag.vue2.js +7 -7
  96. package/es/components/link/link.vue2.js +1 -1
  97. package/es/components/list-cell/list-cell.vue2.js +1 -1
  98. package/es/components/logo/logo.vue2.js +10 -10
  99. package/es/components/md-comment/md-comment.vue2.js +2 -2
  100. package/es/components/md-container/md-container.vue2.js +74 -75
  101. package/es/components/md-container/toc.js +36 -37
  102. package/es/components/menu/menu-collapse-transition.vue.js +2 -2
  103. package/es/components/menu/menu-item-group.vue2.js +7 -7
  104. package/es/components/menu/menu-item.vue2.js +1 -1
  105. package/es/components/message/message.vue2.js +3 -3
  106. package/es/components/message-box/index.d.ts +4 -0
  107. package/es/components/message-box/index.js +14 -0
  108. package/es/components/message-box/message-box.vue.d.ts +103 -0
  109. package/es/components/message-box/message-box.vue.js +4 -0
  110. package/es/components/message-box/message-box.vue2.js +358 -0
  111. package/es/components/message-box/method.d.ts +3 -0
  112. package/es/components/message-box/method.js +100 -0
  113. package/es/components/message-box/style/css.d.ts +2 -0
  114. package/es/components/message-box/style/css.js +3 -0
  115. package/es/components/message-box/style/index.d.ts +2 -0
  116. package/es/components/message-box/style/index.js +3 -0
  117. package/es/components/message-box/types.d.ts +202 -0
  118. package/es/components/modal/index.d.ts +1 -0
  119. package/es/components/modal/modal-footer-action.vue2.js +24 -25
  120. package/es/components/modal/modal.vue.d.ts +1 -0
  121. package/es/components/modal/modal.vue2.js +30 -28
  122. package/es/components/multiple-tabs/multiple-tabs.vue2.js +16 -17
  123. package/es/components/multiple-tabs/tab-content.vue2.js +2 -2
  124. package/es/components/multiple-tabs/use/use-tab-dropdown.js +53 -54
  125. package/es/components/notification/notification.vue2.js +1 -1
  126. package/es/components/overlay/overlay.vue2.js +1 -1
  127. package/es/components/page-wrapper/page-wrapper.vue2.js +2 -2
  128. package/es/components/pagination/components/jumper.vue2.js +28 -29
  129. package/es/components/pagination/components/next.vue2.js +4 -4
  130. package/es/components/pagination/components/pager.vue2.js +1 -1
  131. package/es/components/pagination/components/prev.vue2.js +4 -4
  132. package/es/components/pagination/components/sizes.vue2.js +20 -21
  133. package/es/components/pagination/components/total.vue2.js +10 -11
  134. package/es/components/popconfirm/index.d.ts +15 -15
  135. package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
  136. package/es/components/popconfirm/popconfirm.vue2.js +39 -40
  137. package/es/components/popover/popover.vue2.js +1 -1
  138. package/es/components/popper/arrow.vue2.js +2 -2
  139. package/es/components/popper/content.vue2.js +2 -2
  140. package/es/components/popper/trigger.vue2.js +4 -4
  141. package/es/components/progress/progress.vue2.js +1 -1
  142. package/es/components/progress-i/progress-i.vue2.js +2 -2
  143. package/es/components/qrcode/qrcode.vue2.js +1 -1
  144. package/es/components/radio/radio-button.vue2.js +2 -2
  145. package/es/components/radio/radio-group.vue2.js +3 -3
  146. package/es/components/radio/radio.vue2.js +2 -2
  147. package/es/components/rate/rate.vue2.js +6 -6
  148. package/es/components/router-view-content/router-view-content.vue2.js +7 -7
  149. package/es/components/roving-focus-group/roving-focus-group.vue2.js +2 -2
  150. package/es/components/roving-focus-group/roving-focus-item.vue2.js +2 -2
  151. package/es/components/row/row.vue2.js +2 -2
  152. package/es/components/scrollbar/bar.vue2.js +2 -2
  153. package/es/components/scrollbar/scrollbar.vue2.js +7 -7
  154. package/es/components/scrollbar/thumb.vue2.js +2 -2
  155. package/es/components/search/search.vue2.js +50 -51
  156. package/es/components/segmented/segmented.vue2.js +7 -7
  157. package/es/components/select/group-item.vue.js +2 -2
  158. package/es/components/select/index.d.ts +4 -4
  159. package/es/components/select/option-item.vue.js +2 -2
  160. package/es/components/select/select.vue.d.ts +4 -4
  161. package/es/components/select/select.vue.js +1 -1
  162. package/es/components/select/useSelect.d.ts +4 -4
  163. package/es/components/select/useSelect.js +231 -232
  164. package/es/components/skeleton/skeleton-item.vue2.js +2 -2
  165. package/es/components/skeleton/skeleton.vue2.js +8 -8
  166. package/es/components/slider/button.vue2.js +2 -2
  167. package/es/components/slider/slider.vue2.js +1 -1
  168. package/es/components/space/space.js +1 -1
  169. package/es/components/statistic/statistic.vue2.js +17 -17
  170. package/es/components/steps/item.vue2.js +11 -11
  171. package/es/components/steps/steps.vue2.js +2 -2
  172. package/es/components/super-form/super-form-action.vue2.js +47 -48
  173. package/es/components/super-form/super-form-item.vue2.js +204 -206
  174. package/es/components/super-form/super-form.vue2.js +7 -7
  175. package/es/components/super-form/use/helper.d.ts +1 -1
  176. package/es/components/super-form/use/helper.js +63 -63
  177. package/es/components/super-form/use/use-form.js +8 -8
  178. package/es/components/switch/switch.vue2.js +1 -1
  179. package/es/components/table/field.js +111 -130
  180. package/es/components/table/table.vue2.js +128 -133
  181. package/es/components/table/use/use-columns.js +26 -29
  182. package/es/components/table/use/use-data-source.js +59 -60
  183. package/es/components/tabs/tab-bar.vue2.js +2 -2
  184. package/es/components/tabs/tab-pane.vue2.js +6 -6
  185. package/es/components/teleport/teleport.vue2.js +2 -2
  186. package/es/components/time-picker/common/picker-range-trigger.vue2.js +2 -2
  187. package/es/components/time-picker/common/picker.vue2.js +8 -8
  188. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +1 -1
  189. package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +65 -66
  190. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +133 -134
  191. package/es/components/time-select/time-select.vue2.js +3 -3
  192. package/es/components/timeline/timeline-item.vue2.js +1 -1
  193. package/es/components/tooltip/content.vue2.js +6 -6
  194. package/es/components/tooltip/tooltip.vue2.js +1 -1
  195. package/es/components/tooltip/trigger.vue2.js +2 -2
  196. package/es/components/transfer/transfer-panel.vue2.js +58 -59
  197. package/es/components/transfer/transfer.vue2.js +69 -70
  198. package/es/components/tree/tree-node.vue.js +1 -1
  199. package/es/components/tree/tree.vue2.js +59 -60
  200. package/es/components/upload/upload-content.vue2.js +47 -48
  201. package/es/components/upload/upload-dragger.vue2.js +2 -2
  202. package/es/components/upload/upload-list.vue2.js +45 -46
  203. package/es/components/upload/upload.vue2.js +98 -99
  204. package/es/components/verify-code/verify-code.vue2.js +2 -2
  205. package/es/components/watermark/watermark.vue2.js +2 -2
  206. package/es/hooks/use-id/index.js +2 -2
  207. package/es/hooks/use-z-index/index.js +3 -3
  208. package/es/index.d.ts +0 -1
  209. package/es/index.js +39 -42
  210. package/es/package.json.d.ts +1 -1
  211. package/es/package.json.js +1 -1
  212. package/es/plugin.js +5 -3
  213. package/es/utils/helper.js +2 -2
  214. package/es/utils/ns-cover.js +1 -1
  215. package/es/utils/vue/vnode.js +3 -3
  216. package/lib/components/autocomplete/autocomplete.vue.d.ts +2 -2
  217. package/lib/components/autocomplete/index.d.ts +6 -6
  218. package/lib/components/button/index.d.ts +9 -9
  219. package/lib/components/button/use-button.cjs +1 -1
  220. package/lib/components/cascader/cascader.vue2.cjs +1 -1
  221. package/lib/components/cascader-panel/menu.vue2.cjs +4 -4
  222. package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
  223. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  224. package/lib/components/config-provider/config-provider.vue.d.ts +0 -2
  225. package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
  226. package/lib/components/config-provider/constants.cjs +1 -1
  227. package/lib/components/config-provider/constants.d.ts +0 -1
  228. package/lib/components/config-provider/hooks/use-global-config.cjs +1 -1
  229. package/lib/components/config-provider/index.cjs +1 -1
  230. package/lib/components/config-provider/index.d.ts +0 -9
  231. package/lib/components/date-picker/composables/use-basic-date-table.cjs +1 -1
  232. package/lib/components/date-picker/composables/use-basic-date-table.d.ts +1 -1
  233. package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -1
  234. package/lib/components/date-picker/composables/use-panel-date-range.cjs +1 -1
  235. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  236. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  237. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  238. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
  239. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  240. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  241. package/lib/components/empty/empty.vue2.cjs +1 -1
  242. package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
  243. package/lib/components/image/image.vue2.cjs +1 -1
  244. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  245. package/lib/components/index.cjs +1 -1
  246. package/lib/components/index.d.ts +1 -0
  247. package/lib/components/input/input.vue2.cjs +1 -1
  248. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  249. package/lib/components/md-container/toc.cjs +1 -1
  250. package/lib/components/message-box/index.cjs +1 -0
  251. package/lib/components/message-box/index.d.ts +4 -0
  252. package/lib/components/message-box/message-box.vue.cjs +1 -0
  253. package/lib/components/message-box/message-box.vue.d.ts +103 -0
  254. package/lib/components/message-box/message-box.vue2.cjs +1 -0
  255. package/lib/components/message-box/method.cjs +1 -0
  256. package/lib/components/message-box/method.d.ts +3 -0
  257. package/lib/components/message-box/style/css.cjs +1 -0
  258. package/lib/components/message-box/style/css.d.ts +2 -0
  259. package/lib/components/message-box/style/index.cjs +1 -0
  260. package/lib/components/message-box/style/index.d.ts +2 -0
  261. package/lib/components/message-box/types.d.ts +202 -0
  262. package/lib/components/modal/index.d.ts +1 -0
  263. package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
  264. package/lib/components/modal/modal.vue.d.ts +1 -0
  265. package/lib/components/modal/modal.vue2.cjs +1 -1
  266. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  267. package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
  268. package/lib/components/pagination/components/jumper.vue2.cjs +1 -1
  269. package/lib/components/pagination/components/sizes.vue2.cjs +1 -1
  270. package/lib/components/pagination/components/total.vue2.cjs +1 -1
  271. package/lib/components/popconfirm/index.d.ts +15 -15
  272. package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
  273. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
  274. package/lib/components/search/search.vue2.cjs +1 -1
  275. package/lib/components/select/index.d.ts +4 -4
  276. package/lib/components/select/select.vue.d.ts +4 -4
  277. package/lib/components/select/useSelect.cjs +1 -1
  278. package/lib/components/select/useSelect.d.ts +4 -4
  279. package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
  280. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  281. package/lib/components/super-form/use/helper.cjs +1 -1
  282. package/lib/components/super-form/use/helper.d.ts +1 -1
  283. package/lib/components/super-form/use/use-form.cjs +1 -1
  284. package/lib/components/table/field.cjs +1 -1
  285. package/lib/components/table/table.vue2.cjs +1 -1
  286. package/lib/components/table/use/use-columns.cjs +1 -1
  287. package/lib/components/table/use/use-data-source.cjs +1 -1
  288. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
  289. package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
  290. package/lib/components/transfer/transfer-panel.vue2.cjs +1 -1
  291. package/lib/components/transfer/transfer.vue2.cjs +1 -1
  292. package/lib/components/tree/tree.vue2.cjs +1 -1
  293. package/lib/components/upload/upload-content.vue2.cjs +1 -1
  294. package/lib/components/upload/upload-list.vue2.cjs +1 -1
  295. package/lib/components/upload/upload.vue2.cjs +1 -1
  296. package/lib/index.cjs +1 -1
  297. package/lib/index.d.ts +0 -1
  298. package/lib/package.json.cjs +1 -1
  299. package/lib/package.json.d.ts +1 -1
  300. package/lib/plugin.cjs +1 -1
  301. package/package.json +3 -3
  302. package/theme-style/index.css +1 -1
  303. package/theme-style/src/message-box.scss +2 -2
  304. package/theme-style/src/table.scss +6 -0
  305. package/theme-style/vft-message-box.css +1 -1
  306. package/theme-style/vft-table.css +1 -1
  307. package/web-types.json +1 -1
  308. package/es/locale/index.d.ts +0 -26
  309. package/es/locale/index.js +0 -10
  310. package/es/locale/lang/en.d.ts +0 -183
  311. package/es/locale/lang/en.js +0 -241
  312. package/es/locale/lang/zh-cn.d.ts +0 -183
  313. package/es/locale/lang/zh-cn.js +0 -241
  314. package/es/locale/lang/zh-tw.d.ts +0 -183
  315. package/es/locale/lang/zh-tw.js +0 -241
  316. package/es/locale/use-locale.d.ts +0 -17
  317. package/es/locale/use-locale.js +0 -56
  318. package/lib/locale/index.cjs +0 -1
  319. package/lib/locale/index.d.ts +0 -26
  320. package/lib/locale/lang/en.cjs +0 -1
  321. package/lib/locale/lang/en.d.ts +0 -183
  322. package/lib/locale/lang/zh-cn.cjs +0 -1
  323. package/lib/locale/lang/zh-cn.d.ts +0 -183
  324. package/lib/locale/lang/zh-tw.cjs +0 -1
  325. package/lib/locale/lang/zh-tw.d.ts +0 -183
  326. package/lib/locale/use-locale.cjs +0 -1
  327. package/lib/locale/use-locale.d.ts +0 -17
  328. /package/es/{locale/index.d.js → components/message-box/types.js} +0 -0
  329. /package/lib/{locale/index.d.cjs → components/message-box/types.cjs} +0 -0
@@ -1,4 +1,4 @@
1
- import { defineComponent as n, computed as m, createElementBlock as c, openBlock as r, normalizeClass as a, unref as t, createBlock as l, createCommentVNode as p, normalizeProps as s, mergeProps as f } from "vue";
1
+ import { defineComponent as n, computed as m, openBlock as r, createElementBlock as c, normalizeClass as a, unref as t, createBlock as l, normalizeProps as p, mergeProps as s, createCommentVNode as f } from "vue";
2
2
  import { VftIcon as u } from "../icon/index.js";
3
3
  import "@vueuse/core";
4
4
  import { singleAttrToObj as d } from "@vft/utils";
@@ -27,7 +27,7 @@ const g = n({
27
27
  return (v, _) => (r(), c("div", {
28
28
  class: a([t(o).e("item"), t(o).e(e.variant)])
29
29
  }, [
30
- e.variant === "image" ? (r(), l(t(u), s(f({ key: 0 }, i.value)), null, 16)) : p("", !0)
30
+ e.variant === "image" ? (r(), l(t(u), p(s({ key: 0 }, i.value)), null, 16)) : f("", !0)
31
31
  ], 2));
32
32
  }
33
33
  });
@@ -1,4 +1,4 @@
1
- import { defineComponent as k, computed as y, createElementBlock as n, renderSlot as u, unref as t, openBlock as o, mergeProps as d, Fragment as l, renderList as c, createCommentVNode as h, createVNode as B, normalizeClass as f, createBlock as $, normalizeProps as v } from "vue";
1
+ import { defineComponent as k, computed as y, unref as t, openBlock as o, createElementBlock as n, mergeProps as u, Fragment as l, renderList as d, renderSlot as c, createVNode as h, normalizeClass as f, createBlock as B, createCommentVNode as $, normalizeProps as v } from "vue";
2
2
  import "@vueuse/core";
3
3
  import "@vft/utils";
4
4
  import "../config-provider/hooks/use-global-config.js";
@@ -28,17 +28,17 @@ const N = k({
28
28
  );
29
29
  return g({
30
30
  uiLoading: s
31
- }), (a, z) => t(s) ? (o(), n("div", d({
31
+ }), (a, z) => t(s) ? (o(), n("div", u({
32
32
  key: 0,
33
33
  class: [t(r).b(), t(r).is("animated", e.animated)]
34
34
  }, a.$attrs), [
35
- (o(!0), n(l, null, c(e.count, (m) => (o(), n(l, { key: m }, [
36
- e.loading ? u(a.$slots, "template", { key: m }, () => [
37
- B(p, {
35
+ (o(!0), n(l, null, d(e.count, (m) => (o(), n(l, { key: m }, [
36
+ e.loading ? c(a.$slots, "template", { key: m }, () => [
37
+ h(p, {
38
38
  class: f(t(r).is("first")),
39
39
  variant: "p"
40
40
  }, null, 8, ["class"]),
41
- (o(!0), n(l, null, c(e.rows, (i) => (o(), $(p, {
41
+ (o(!0), n(l, null, d(e.rows, (i) => (o(), B(p, {
42
42
  key: i,
43
43
  class: f([
44
44
  t(r).e("paragraph"),
@@ -46,9 +46,9 @@ const N = k({
46
46
  ]),
47
47
  variant: "p"
48
48
  }, null, 8, ["class"]))), 128))
49
- ]) : h("", !0)
49
+ ]) : $("", !0)
50
50
  ], 64))), 128))
51
- ], 16)) : u(a.$slots, "default", v(d({ key: 1 }, a.$attrs)));
51
+ ], 16)) : c(a.$slots, "default", v(u({ key: 1 }, a.$attrs)));
52
52
  }
53
53
  });
54
54
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as b, reactive as N, getCurrentInstance as S, toRefs as T, createElementBlock as P, openBlock as z, unref as t, normalizeStyle as K, normalizeClass as d, createVNode as L, withCtx as f, createElementVNode as g, toDisplayString as X } from "vue";
1
+ import { defineComponent as b, reactive as N, getCurrentInstance as S, toRefs as T, openBlock as P, createElementBlock as z, unref as t, normalizeStyle as K, normalizeClass as d, createVNode as L, withCtx as f, createElementVNode as g, toDisplayString as X } from "vue";
2
2
  import { isNumber as Y } from "@vft/utils";
3
3
  import { VftTooltip as A } from "../tooltip/index.js";
4
4
  import { UPDATE_MODEL_EVENT as F } from "../../constants/event.js";
@@ -56,7 +56,7 @@ const R = ["tabindex"], U = b({
56
56
  setPosition: M,
57
57
  hovering: a,
58
58
  dragging: p
59
- }), (j, e) => (z(), P("div", {
59
+ }), (j, e) => (P(), z("div", {
60
60
  ref_key: "button",
61
61
  ref: B,
62
62
  class: d([t(m).e("button-wrapper"), { hover: t(a), dragging: t(p) }]),
@@ -1,4 +1,4 @@
1
- import { defineComponent as $, reactive as oe, getCurrentInstance as ie, computed as d, toRefs as D, provide as re, createElementBlock as r, openBlock as o, unref as e, normalizeClass as u, createElementVNode as V, createBlock as I, createCommentVNode as S, normalizeStyle as p, createVNode as ne, Fragment as k, renderList as B } from "vue";
1
+ import { defineComponent as $, reactive as oe, getCurrentInstance as ie, computed as d, toRefs as D, provide as re, openBlock as o, createElementBlock as r, unref as e, normalizeClass as u, createElementVNode as V, normalizeStyle as p, createVNode as ne, createBlock as I, createCommentVNode as S, Fragment as k, renderList as B } from "vue";
2
2
  import "../form/index.js";
3
3
  import { VftInputNumber as ue } from "../input-number/index.js";
4
4
  import "@vueuse/core";
@@ -1,4 +1,4 @@
1
- import { isNumber as m, isString as P, isArray as p } from "@vft/utils";
1
+ import { isNumber as m, isArray as p, isString as P } from "@vft/utils";
2
2
  import { componentSizes as T } from "../../constants/size.js";
3
3
  import "@vueuse/core";
4
4
  import "../config-provider/hooks/use-global-config.js";
@@ -1,4 +1,4 @@
1
- import { defineComponent as v, computed as k, createElementBlock as o, openBlock as l, normalizeClass as s, unref as r, createCommentVNode as f, createElementVNode as a, renderSlot as c, createTextVNode as V, toDisplayString as n, normalizeStyle as b } from "vue";
1
+ import { defineComponent as v, computed as k, openBlock as o, createElementBlock as l, normalizeClass as s, unref as r, renderSlot as f, createTextVNode as V, toDisplayString as a, createCommentVNode as c, createElementVNode as n, normalizeStyle as b } from "vue";
2
2
  import "@vueuse/core";
3
3
  import { isFunction as B, isNumber as C } from "@vft/utils";
4
4
  import "../config-provider/hooks/use-global-config.js";
@@ -27,40 +27,40 @@ const z = v({
27
27
  * @description current display value
28
28
  */
29
29
  displayValue: d
30
- }), (e, p) => (l(), o("div", {
30
+ }), (e, p) => (o(), l("div", {
31
31
  class: s(r(t).b())
32
32
  }, [
33
- e.$slots.title || e.title ? (l(), o("div", {
33
+ e.$slots.title || e.title ? (o(), l("div", {
34
34
  key: 0,
35
35
  class: s(r(t).e("head"))
36
36
  }, [
37
- c(e.$slots, "title", {}, () => [
38
- V(n(e.title), 1)
37
+ f(e.$slots, "title", {}, () => [
38
+ V(a(e.title), 1)
39
39
  ])
40
- ], 2)) : f("", !0),
41
- a("div", {
40
+ ], 2)) : c("", !0),
41
+ n("div", {
42
42
  class: s(r(t).e("content"))
43
43
  }, [
44
- e.$slots.prefix || e.prefix ? (l(), o("div", {
44
+ e.$slots.prefix || e.prefix ? (o(), l("div", {
45
45
  key: 0,
46
46
  class: s(r(t).e("prefix"))
47
47
  }, [
48
- c(e.$slots, "prefix", {}, () => [
49
- a("span", null, n(e.prefix), 1)
48
+ f(e.$slots, "prefix", {}, () => [
49
+ n("span", null, a(e.prefix), 1)
50
50
  ])
51
- ], 2)) : f("", !0),
52
- a("span", {
51
+ ], 2)) : c("", !0),
52
+ n("span", {
53
53
  class: s(r(t).e("number")),
54
54
  style: b(e.valueStyle)
55
- }, n(d.value), 7),
56
- e.$slots.suffix || e.suffix ? (l(), o("div", {
55
+ }, a(d.value), 7),
56
+ e.$slots.suffix || e.suffix ? (o(), l("div", {
57
57
  key: 1,
58
58
  class: s(r(t).e("suffix"))
59
59
  }, [
60
- c(e.$slots, "suffix", {}, () => [
61
- a("span", null, n(e.suffix), 1)
60
+ f(e.$slots, "suffix", {}, () => [
61
+ n("span", null, a(e.suffix), 1)
62
62
  ])
63
- ], 2)) : f("", !0)
63
+ ], 2)) : c("", !0)
64
64
  ], 2)
65
65
  ], 2));
66
66
  }
@@ -1,4 +1,4 @@
1
- import { defineComponent as K, ref as N, inject as Y, getCurrentInstance as q, onMounted as x, watch as F, computed as n, reactive as G, onBeforeUnmount as H, createElementBlock as a, openBlock as i, normalizeClass as l, normalizeStyle as D, createCommentVNode as y, createElementVNode as m, unref as t, renderSlot as p, createTextVNode as $, toDisplayString as k, createBlock as V, mergeProps as Q } from "vue";
1
+ import { defineComponent as K, ref as N, inject as Y, getCurrentInstance as q, onMounted as x, watch as F, computed as n, reactive as G, onBeforeUnmount as H, openBlock as i, createElementBlock as a, normalizeClass as l, normalizeStyle as D, unref as t, renderSlot as p, createElementVNode as m, createTextVNode as $, toDisplayString as y, createCommentVNode as k, createBlock as V, mergeProps as Q } from "vue";
2
2
  import { VftIcon as I } from "../icon/index.js";
3
3
  import "@vueuse/core";
4
4
  import { singleAttrToObj as R, isNumber as X } from "@vft/utils";
@@ -89,25 +89,25 @@ const ee = K({
89
89
  class: l([t(e).e("title"), t(e).is(r.value)])
90
90
  }, [
91
91
  p(s.$slots, "title", {}, () => [
92
- $(k(v.title), 1)
92
+ $(y(v.title), 1)
93
93
  ])
94
94
  ], 2),
95
95
  u.value ? (i(), a("div", {
96
96
  key: 0,
97
97
  class: l(t(e).e("arrow"))
98
- }, null, 2)) : y("", !0),
98
+ }, null, 2)) : k("", !0),
99
99
  m("div", {
100
100
  class: l([t(e).e("description"), t(e).is(r.value)])
101
101
  }, [
102
102
  p(s.$slots, "description", {}, () => [
103
- $(k(v.description), 1)
103
+ $(y(v.description), 1)
104
104
  ])
105
105
  ], 2)
106
- ], 2)) : y("", !0),
106
+ ], 2)) : k("", !0),
107
107
  m("div", {
108
108
  class: l([t(e).e("head"), t(e).is(r.value)])
109
109
  }, [
110
- u.value ? y("", !0) : (i(), a("div", {
110
+ u.value ? k("", !0) : (i(), a("div", {
111
111
  key: 0,
112
112
  class: l(t(e).e("line"))
113
113
  }, [
@@ -130,10 +130,10 @@ const ee = K({
130
130
  key: 2,
131
131
  class: l([t(e).e("icon-inner"), t(e).is("status")]),
132
132
  icon: "icon-close"
133
- }, null, 8, ["class"])) : u.value ? y("", !0) : (i(), a("div", {
133
+ }, null, 8, ["class"])) : u.value ? k("", !0) : (i(), a("div", {
134
134
  key: 3,
135
135
  class: l(t(e).e("icon-inner"))
136
- }, k(c.value + 1), 3))
136
+ }, y(c.value + 1), 3))
137
137
  ])
138
138
  ], 2)
139
139
  ], 2),
@@ -142,7 +142,7 @@ const ee = K({
142
142
  class: l(t(e).e("bottom-slot"))
143
143
  }, [
144
144
  p(s.$slots, "bottom")
145
- ], 2)) : C.value ? y("", !0) : (i(), a("div", {
145
+ ], 2)) : C.value ? k("", !0) : (i(), a("div", {
146
146
  key: 3,
147
147
  class: l(t(e).e("main"))
148
148
  }, [
@@ -150,7 +150,7 @@ const ee = K({
150
150
  class: l([t(e).e("title"), t(e).is(r.value)])
151
151
  }, [
152
152
  p(s.$slots, "title", {}, () => [
153
- $(k(v.title), 1)
153
+ $(y(v.title), 1)
154
154
  ])
155
155
  ], 2),
156
156
  u.value ? (i(), a("div", {
@@ -161,7 +161,7 @@ const ee = K({
161
161
  class: l([t(e).e("description"), t(e).is(r.value)])
162
162
  }, [
163
163
  p(s.$slots, "description", {}, () => [
164
- $(k(v.description), 1)
164
+ $(y(v.description), 1)
165
165
  ])
166
166
  ], 2))
167
167
  ], 2))
@@ -1,4 +1,4 @@
1
- import { defineComponent as m, getCurrentInstance as u, watch as a, provide as h, createElementBlock as S, openBlock as C, normalizeClass as v, unref as i, renderSlot as E, createVNode as N } from "vue";
1
+ import { defineComponent as m, getCurrentInstance as u, watch as a, provide as h, openBlock as S, createElementBlock as C, normalizeClass as v, unref as i, renderSlot as E, createVNode as N } from "vue";
2
2
  import { CHANGE_EVENT as _ } from "../../constants/event.js";
3
3
  import "@vueuse/core";
4
4
  import "@vft/utils";
@@ -42,7 +42,7 @@ const T = m({
42
42
  (e, t) => {
43
43
  l(_, e, t);
44
44
  }
45
- ), (e, t) => (C(), S("div", {
45
+ ), (e, t) => (S(), C("div", {
46
46
  class: v([i(n).b(), i(n).m(o.simple ? "simple" : o.direction)])
47
47
  }, [
48
48
  E(e.$slots, "default"),
@@ -1,7 +1,7 @@
1
- import { defineComponent as x, computed as a, createBlock as l, createCommentVNode as c, openBlock as r, unref as o, normalizeProps as R, mergeProps as p, withCtx as i, createVNode as T, normalizeClass as N, renderSlot as C, createTextVNode as f, toDisplayString as B } from "vue";
1
+ import { defineComponent as g, computed as i, openBlock as l, createBlock as c, unref as o, normalizeProps as x, mergeProps as r, withCtx as u, createVNode as R, normalizeClass as T, createTextVNode as B, toDisplayString as f, createCommentVNode as p, renderSlot as b } from "vue";
2
2
  import { VftButton as v } from "../button/index.js";
3
- import { VftFormItem as V } from "../form/index.js";
4
- import { VftRow as F } from "../row/index.js";
3
+ import { VftFormItem as N } from "../form/index.js";
4
+ import { VftRow as V } from "../row/index.js";
5
5
  import "@vueuse/core";
6
6
  import "@vft/utils";
7
7
  import "../config-provider/hooks/use-global-config.js";
@@ -10,9 +10,8 @@ import { useNamespace as S } from "../../hooks/use-namespace/index.js";
10
10
  import "../../hooks/use-model-toggle/index.js";
11
11
  import "@popperjs/core";
12
12
  import "../../hooks/use-z-index/index.js";
13
- import { useLocale as j } from "../../locale/use-locale.js";
14
- import { useFormContext as A } from "./use/use-form-context.js";
15
- const W = /* @__PURE__ */ x({
13
+ import { useFormContext as j } from "./use/use-form-context.js";
14
+ const M = /* @__PURE__ */ g({
16
15
  __name: "super-form-action",
17
16
  props: {
18
17
  showResetButton: { type: Boolean },
@@ -25,85 +24,85 @@ const W = /* @__PURE__ */ x({
25
24
  submitResetReverse: { type: Boolean }
26
25
  },
27
26
  setup(t) {
28
- const m = S("form-action"), { t: b } = j(), { resetAction: h, submitAction: k, commonAction: w } = A(), O = a(() => ({
27
+ const m = S("form-action"), { resetAction: d, submitAction: h, commonAction: C } = j(), k = i(() => ({
29
28
  justify: "end",
30
29
  ...t.actionRowOptions
31
- })), g = a(
32
- () => Object.assign({ btnText: b("vft.superForm.reset") }, t.resetButtonOptions)
33
- ), y = a(
34
- () => Object.assign({ btnText: b("vft.superForm.submit") }, t.submitButtonOptions)
35
- ), u = a(
36
- () => Object.assign({ btnText: b("vft.superForm.cancel") }, t.commonButtonOptions)
37
- ), d = (e) => ({
30
+ })), O = i(
31
+ () => Object.assign({ btnText: "重置" }, t.resetButtonOptions)
32
+ ), w = i(
33
+ () => Object.assign({ btnText: "确认" }, t.submitButtonOptions)
34
+ ), a = i(
35
+ () => Object.assign({ btnText: "取消" }, t.commonButtonOptions)
36
+ ), y = (e) => ({
38
37
  type: e ? "warning" : "primary",
39
- options: e ? g.value : y.value,
40
- action: e ? h : k,
38
+ options: e ? O.value : w.value,
39
+ action: e ? d : h,
41
40
  className: e ? m.e("reset") : m.e("submit"),
42
41
  show: e ? t.showResetButton : t.showSubmitButton
43
- }), n = a(
44
- () => d(!t.submitResetReverse)
45
- ), s = a(
46
- () => d(t.submitResetReverse)
42
+ }), n = i(
43
+ () => y(!t.submitResetReverse)
44
+ ), s = i(
45
+ () => y(t.submitResetReverse)
47
46
  );
48
- return (e, $) => t.showCommonButton || n.value.show || s.value.show ? (r(), l(o(F), R(p({ key: 0 }, O.value)), {
49
- default: i(() => [
50
- T(o(V), {
51
- class: N([{ "submit-block": y.value.block }, o(m).b()])
47
+ return (e, A) => t.showCommonButton || n.value.show || s.value.show ? (l(), c(o(V), x(r({ key: 0 }, k.value)), {
48
+ default: u(() => [
49
+ R(o(N), {
50
+ class: T([{ "submit-block": w.value.block }, o(m).b()])
52
51
  }, {
53
- default: i(() => [
54
- t.showCommonButton && !u.value.isBehind ? (r(), l(o(v), p({ key: 0 }, u.value, {
52
+ default: u(() => [
53
+ t.showCommonButton && !a.value.isBehind ? (l(), c(o(v), r({ key: 0 }, a.value, {
55
54
  class: o(m).e("common"),
56
- onClick: o(w)
55
+ onClick: o(C)
57
56
  }), {
58
- default: i(() => [
59
- f(B(u.value.btnText), 1)
57
+ default: u(() => [
58
+ B(f(a.value.btnText), 1)
60
59
  ]),
61
60
  _: 1
62
- }, 16, ["class", "onClick"])) : c("", !0),
63
- C(e.$slots, "resetBefore"),
64
- n.value.show ? (r(), l(o(v), p({
61
+ }, 16, ["class", "onClick"])) : p("", !0),
62
+ b(e.$slots, "resetBefore"),
63
+ n.value.show ? (l(), c(o(v), r({
65
64
  key: 1,
66
65
  type: n.value.type
67
66
  }, n.value.options, {
68
67
  onClick: n.value.action,
69
68
  class: n.value.className
70
69
  }), {
71
- default: i(() => [
72
- f(B(n.value.options.btnText), 1)
70
+ default: u(() => [
71
+ B(f(n.value.options.btnText), 1)
73
72
  ]),
74
73
  _: 1
75
- }, 16, ["type", "onClick", "class"])) : c("", !0),
76
- C(e.$slots, "submitBefore"),
77
- s.value.show ? (r(), l(o(v), p({
74
+ }, 16, ["type", "onClick", "class"])) : p("", !0),
75
+ b(e.$slots, "submitBefore"),
76
+ s.value.show ? (l(), c(o(v), r({
78
77
  key: 2,
79
78
  type: s.value.type
80
79
  }, s.value.options, {
81
80
  onClick: s.value.action,
82
81
  class: s.value.className
83
82
  }), {
84
- default: i(() => [
85
- f(B(s.value.options.btnText), 1)
83
+ default: u(() => [
84
+ B(f(s.value.options.btnText), 1)
86
85
  ]),
87
86
  _: 1
88
- }, 16, ["type", "onClick", "class"])) : c("", !0),
89
- C(e.$slots, "submitAfter"),
90
- t.showCommonButton && u.value.isBehind ? (r(), l(o(v), p({ key: 3 }, u.value, {
87
+ }, 16, ["type", "onClick", "class"])) : p("", !0),
88
+ b(e.$slots, "submitAfter"),
89
+ t.showCommonButton && a.value.isBehind ? (l(), c(o(v), r({ key: 3 }, a.value, {
91
90
  class: o(m).e("common"),
92
- onClick: o(w)
91
+ onClick: o(C)
93
92
  }), {
94
- default: i(() => [
95
- f(B(u.value.btnText), 1)
93
+ default: u(() => [
94
+ B(f(a.value.btnText), 1)
96
95
  ]),
97
96
  _: 1
98
- }, 16, ["class", "onClick"])) : c("", !0)
97
+ }, 16, ["class", "onClick"])) : p("", !0)
99
98
  ]),
100
99
  _: 3
101
100
  }, 8, ["class"])
102
101
  ]),
103
102
  _: 3
104
- }, 16)) : c("", !0);
103
+ }, 16)) : p("", !0);
105
104
  }
106
105
  });
107
106
  export {
108
- W as default
107
+ M as default
109
108
  };