vft 0.0.74 → 0.0.77

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 (373) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/es/component.js +67 -48
  4. package/es/components/affix/affix.js +45 -0
  5. package/es/components/affix/affix.vue.js +4 -0
  6. package/es/components/affix/affix.vue2.js +83 -0
  7. package/es/components/affix/index.js +12 -0
  8. package/es/components/affix/style/css.js +2 -0
  9. package/es/components/affix/style/index.js +2 -0
  10. package/es/components/back-top/back-top.vue2.js +10 -2
  11. package/es/components/button/button.vue2.js +58 -59
  12. package/es/components/button/use-button.js +26 -20
  13. package/es/components/card/card.vue.js +4 -0
  14. package/es/components/card/card.vue2.js +44 -0
  15. package/es/components/card/index.js +12 -0
  16. package/es/components/card/instance.js +1 -0
  17. package/es/components/card/style/css.js +2 -0
  18. package/es/components/card/style/index.js +2 -0
  19. package/es/components/check-tag/check-tag.vue.js +4 -0
  20. package/es/components/check-tag/check-tag.vue2.js +35 -0
  21. package/es/components/check-tag/index.js +12 -0
  22. package/es/components/check-tag/style/css.js +2 -0
  23. package/es/components/check-tag/style/index.js +2 -0
  24. package/es/components/color-picker/color-picker.vue2.js +1 -1
  25. package/es/components/context-menu/context-menu.vue2.js +10 -2
  26. package/es/components/date-picker/composables/use-month-range-header.js +1 -1
  27. package/es/components/date-picker/constants.js +16 -2
  28. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +37 -34
  29. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +0 -1
  30. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +177 -178
  31. package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +328 -336
  32. package/es/components/date-picker/date-picker.js +18 -18
  33. package/es/components/date-picker/index.js +5 -4
  34. package/es/components/date-picker/props/shared.js +1 -1
  35. package/es/components/date-time-select/date-time-select.vue2.js +59 -59
  36. package/es/components/dialog/dialog.vue2.js +12 -12
  37. package/es/components/dialog/hooks/use-dialog.js +4 -4
  38. package/es/components/dropdown/dropdown-menu.vue2.js +4 -4
  39. package/es/components/footer-layout/footer-layout.vue2.js +10 -2
  40. package/es/components/header-layout/header-layout.vue2.js +10 -2
  41. package/es/components/horizontal-menu/constants.js +4 -0
  42. package/es/components/horizontal-menu/horizontal-menu.vue2.js +153 -86
  43. package/es/components/horizontal-menu/index.js +7 -5
  44. package/es/components/horizontal-menu/style/css.js +3 -0
  45. package/es/components/horizontal-menu/style/index.js +3 -0
  46. package/es/components/index.js +228 -194
  47. package/es/components/md-container/md-container.vue2.js +10 -2
  48. package/es/components/menu/menu-item.vue2.js +58 -58
  49. package/es/components/menu/menu.vue2.js +72 -68
  50. package/es/components/menu/style/css.js +3 -0
  51. package/es/components/menu/style/index.js +3 -0
  52. package/es/components/menu/sub-menu.vue2.js +139 -117
  53. package/es/components/multiple-tabs/multiple-tabs.vue2.js +35 -26
  54. package/es/components/option/style/css.js +2 -0
  55. package/es/components/option/style/index.js +2 -0
  56. package/es/components/option-group/style/css.js +2 -0
  57. package/es/components/option-group/style/index.js +2 -0
  58. package/es/components/popconfirm/index.js +12 -0
  59. package/es/components/popconfirm/popconfirm.vue.js +4 -0
  60. package/es/components/popconfirm/popconfirm.vue2.js +112 -0
  61. package/es/components/popconfirm/style/css.js +6 -0
  62. package/es/components/popconfirm/style/index.js +6 -0
  63. package/es/components/result/result.vue2.js +10 -2
  64. package/es/components/roving-focus-group/roving-focus-item.vue2.js +1 -1
  65. package/es/components/select/index.js +22 -0
  66. package/es/components/select/option-group.vue.js +25 -0
  67. package/es/components/select/option-group.vue2.js +53 -0
  68. package/es/components/select/option.vue.js +27 -0
  69. package/es/components/select/option.vue2.js +58 -0
  70. package/es/components/select/options.js +34 -0
  71. package/es/components/select/select-dropdown.vue.js +15 -0
  72. package/es/components/select/select-dropdown.vue2.js +32 -0
  73. package/es/components/select/select.vue.js +327 -0
  74. package/es/components/select/select.vue2.js +348 -0
  75. package/es/components/select/style/css.js +8 -0
  76. package/es/components/select/style/index.js +8 -0
  77. package/es/components/select/token.js +5 -0
  78. package/es/components/select/useOption.js +71 -0
  79. package/es/components/select/useSelect.js +414 -0
  80. package/es/components/select-v2/select-dropdown.js +1 -1
  81. package/es/components/select-v2/useSelect.js +269 -269
  82. package/es/components/side-menu/side-menu.vue2.js +153 -142
  83. package/es/components/side-menu/style/css.js +3 -0
  84. package/es/components/side-menu/style/index.js +3 -0
  85. package/es/components/skeleton/index.js +16 -0
  86. package/es/components/skeleton/skeleton-item.vue.js +4 -0
  87. package/es/components/skeleton/skeleton-item.vue2.js +31 -0
  88. package/es/components/skeleton/skeleton.vue.js +4 -0
  89. package/es/components/skeleton/skeleton.vue2.js +55 -0
  90. package/es/components/skeleton/style/css.js +3 -0
  91. package/es/components/skeleton/style/index.js +3 -0
  92. package/es/components/skeleton-item/style/css.js +2 -0
  93. package/es/components/skeleton-item/style/index.js +2 -0
  94. package/es/components/space/index.js +17 -0
  95. package/es/components/space/item.js +24 -0
  96. package/es/components/space/space.js +182 -0
  97. package/es/components/space/style/css.js +2 -0
  98. package/es/components/space/style/index.js +2 -0
  99. package/es/components/space/use-space.js +44 -0
  100. package/es/components/switch/switch.vue2.js +1 -1
  101. package/es/components/tabs/tab-nav.vue2.js +30 -22
  102. package/es/components/tabs/tabs.vue2.js +37 -37
  103. package/es/components/time-picker/common/picker.vue2.js +241 -257
  104. package/es/components/time-picker/common/props.js +10 -6
  105. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +1 -1
  106. package/es/components/time-picker/time-picker.js +10 -10
  107. package/es/components/time-select/time-select.vue2.js +38 -42
  108. package/es/components/tooltip/content.vue2.js +1 -1
  109. package/es/components/tree/index.js +14 -0
  110. package/es/components/tree/model/node.js +248 -0
  111. package/es/components/tree/model/tree-store.js +197 -0
  112. package/es/components/tree/model/useDragNode.js +71 -0
  113. package/es/components/tree/model/useKeydown.js +81 -0
  114. package/es/components/tree/model/useNodeExpandEventBroadcast.js +19 -0
  115. package/es/components/tree/model/util.js +21 -0
  116. package/es/components/tree/style/css.js +3 -0
  117. package/es/components/tree/style/index.js +3 -0
  118. package/es/components/tree/tree-node-content.vue.js +4 -0
  119. package/es/components/tree/tree-node-content.vue2.js +28 -0
  120. package/es/components/tree/tree-node.vue.js +98 -0
  121. package/es/components/tree/tree-node.vue2.js +152 -0
  122. package/es/components/tree/tree.type.js +1 -0
  123. package/es/components/tree/tree.vue.js +48 -0
  124. package/es/components/tree/tree.vue2.js +268 -0
  125. package/es/components/tree-select/cache-options.js +32 -0
  126. package/es/components/tree-select/index.js +9 -0
  127. package/es/components/tree-select/select.js +38 -0
  128. package/es/components/tree-select/style/css.js +11 -0
  129. package/es/components/tree-select/style/index.js +11 -0
  130. package/es/components/tree-select/tree-select-option.js +21 -0
  131. package/es/components/tree-select/tree-select.vue.js +4 -0
  132. package/es/components/tree-select/tree-select.vue2.js +81 -0
  133. package/es/components/tree-select/tree.js +137 -0
  134. package/es/components/tree-select/utils.js +45 -0
  135. package/es/hooks/index.js +25 -21
  136. package/es/hooks/use-focus/index.js +9 -0
  137. package/es/hooks/use-throttle-render/index.js +21 -0
  138. package/es/index.js +408 -368
  139. package/es/package.json.js +1 -1
  140. package/es/utils/helper.js +5 -2
  141. package/es/utils/index.js +48 -46
  142. package/lib/component.cjs +1 -1
  143. package/lib/components/affix/affix.cjs +1 -0
  144. package/lib/components/affix/affix.vue.cjs +1 -0
  145. package/lib/components/affix/affix.vue2.cjs +1 -0
  146. package/lib/components/affix/index.cjs +1 -0
  147. package/lib/components/affix/style/css.cjs +1 -0
  148. package/lib/components/affix/style/index.cjs +1 -0
  149. package/lib/components/back-top/back-top.vue2.cjs +1 -1
  150. package/lib/components/button/button.vue2.cjs +1 -1
  151. package/lib/components/button/use-button.cjs +1 -1
  152. package/lib/components/card/card.vue.cjs +1 -0
  153. package/lib/components/card/card.vue2.cjs +1 -0
  154. package/lib/components/card/index.cjs +1 -0
  155. package/lib/components/card/instance.cjs +1 -0
  156. package/lib/components/card/style/css.cjs +1 -0
  157. package/lib/components/card/style/index.cjs +1 -0
  158. package/lib/components/check-tag/check-tag.vue.cjs +1 -0
  159. package/lib/components/check-tag/check-tag.vue2.cjs +1 -0
  160. package/lib/components/check-tag/index.cjs +1 -0
  161. package/lib/components/check-tag/style/css.cjs +1 -0
  162. package/lib/components/check-tag/style/index.cjs +1 -0
  163. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  164. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  165. package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -1
  166. package/lib/components/date-picker/constants.cjs +1 -1
  167. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  168. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  169. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  170. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
  171. package/lib/components/date-picker/date-picker.cjs +1 -1
  172. package/lib/components/date-picker/index.cjs +1 -1
  173. package/lib/components/date-picker/props/shared.cjs +1 -1
  174. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  175. package/lib/components/dialog/dialog.vue2.cjs +1 -1
  176. package/lib/components/dialog/hooks/use-dialog.cjs +1 -1
  177. package/lib/components/dropdown/dropdown-menu.vue2.cjs +1 -1
  178. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  179. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  180. package/lib/components/horizontal-menu/constants.cjs +1 -0
  181. package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
  182. package/lib/components/horizontal-menu/index.cjs +1 -1
  183. package/lib/components/horizontal-menu/style/css.cjs +1 -1
  184. package/lib/components/horizontal-menu/style/index.cjs +1 -1
  185. package/lib/components/index.cjs +1 -1
  186. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  187. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  188. package/lib/components/menu/menu.vue2.cjs +1 -1
  189. package/lib/components/menu/style/css.cjs +1 -1
  190. package/lib/components/menu/style/index.cjs +1 -1
  191. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  192. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  193. package/lib/components/option/style/css.cjs +1 -0
  194. package/lib/components/option/style/index.cjs +1 -0
  195. package/lib/components/option-group/style/css.cjs +1 -0
  196. package/lib/components/option-group/style/index.cjs +1 -0
  197. package/lib/components/popconfirm/index.cjs +1 -0
  198. package/lib/components/popconfirm/popconfirm.vue.cjs +1 -0
  199. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -0
  200. package/lib/components/popconfirm/style/css.cjs +1 -0
  201. package/lib/components/popconfirm/style/index.cjs +1 -0
  202. package/lib/components/result/result.vue2.cjs +1 -1
  203. package/lib/components/roving-focus-group/roving-focus-item.vue2.cjs +1 -1
  204. package/lib/components/select/index.cjs +1 -0
  205. package/lib/components/select/option-group.vue.cjs +1 -0
  206. package/lib/components/select/option-group.vue2.cjs +1 -0
  207. package/lib/components/select/option.vue.cjs +1 -0
  208. package/lib/components/select/option.vue2.cjs +1 -0
  209. package/lib/components/select/options.cjs +1 -0
  210. package/lib/components/select/select-dropdown.vue.cjs +1 -0
  211. package/lib/components/select/select-dropdown.vue2.cjs +1 -0
  212. package/lib/components/select/select.vue.cjs +1 -0
  213. package/lib/components/select/select.vue2.cjs +1 -0
  214. package/lib/components/select/style/css.cjs +1 -0
  215. package/lib/components/select/style/index.cjs +1 -0
  216. package/lib/components/select/token.cjs +1 -0
  217. package/lib/components/select/useOption.cjs +1 -0
  218. package/lib/components/select/useSelect.cjs +1 -0
  219. package/lib/components/select-v2/select-dropdown.cjs +1 -1
  220. package/lib/components/select-v2/useSelect.cjs +1 -1
  221. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  222. package/lib/components/side-menu/style/css.cjs +1 -1
  223. package/lib/components/side-menu/style/index.cjs +1 -1
  224. package/lib/components/skeleton/index.cjs +1 -0
  225. package/lib/components/skeleton/skeleton-item.vue.cjs +1 -0
  226. package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -0
  227. package/lib/components/skeleton/skeleton.vue.cjs +1 -0
  228. package/lib/components/skeleton/skeleton.vue2.cjs +1 -0
  229. package/lib/components/skeleton/style/css.cjs +1 -0
  230. package/lib/components/skeleton/style/index.cjs +1 -0
  231. package/lib/components/skeleton-item/style/css.cjs +1 -0
  232. package/lib/components/skeleton-item/style/index.cjs +1 -0
  233. package/lib/components/space/index.cjs +1 -0
  234. package/lib/components/space/item.cjs +1 -0
  235. package/lib/components/space/space.cjs +1 -0
  236. package/lib/components/space/style/css.cjs +1 -0
  237. package/lib/components/space/style/index.cjs +1 -0
  238. package/lib/components/space/use-space.cjs +1 -0
  239. package/lib/components/switch/switch.vue2.cjs +1 -1
  240. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  241. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  242. package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
  243. package/lib/components/time-picker/common/props.cjs +1 -1
  244. package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
  245. package/lib/components/time-picker/time-picker.cjs +1 -1
  246. package/lib/components/time-select/time-select.vue2.cjs +1 -1
  247. package/lib/components/tooltip/content.vue2.cjs +1 -1
  248. package/lib/components/tree/index.cjs +1 -0
  249. package/lib/components/tree/model/node.cjs +1 -0
  250. package/lib/components/tree/model/tree-store.cjs +1 -0
  251. package/lib/components/tree/model/useDragNode.cjs +1 -0
  252. package/lib/components/tree/model/useKeydown.cjs +1 -0
  253. package/lib/components/tree/model/useNodeExpandEventBroadcast.cjs +1 -0
  254. package/lib/components/tree/model/util.cjs +1 -0
  255. package/lib/components/tree/style/css.cjs +1 -0
  256. package/lib/components/tree/style/index.cjs +1 -0
  257. package/lib/components/tree/tree-node-content.vue.cjs +1 -0
  258. package/lib/components/tree/tree-node-content.vue2.cjs +1 -0
  259. package/lib/components/tree/tree-node.vue.cjs +1 -0
  260. package/lib/components/tree/tree-node.vue2.cjs +1 -0
  261. package/lib/components/tree/tree.type.cjs +1 -0
  262. package/lib/components/tree/tree.vue.cjs +1 -0
  263. package/lib/components/tree/tree.vue2.cjs +1 -0
  264. package/lib/components/tree-select/cache-options.cjs +1 -0
  265. package/lib/components/tree-select/index.cjs +1 -0
  266. package/lib/components/tree-select/select.cjs +1 -0
  267. package/lib/components/tree-select/style/css.cjs +1 -0
  268. package/lib/components/tree-select/style/index.cjs +1 -0
  269. package/lib/components/tree-select/tree-select-option.cjs +1 -0
  270. package/lib/components/tree-select/tree-select.vue.cjs +1 -0
  271. package/lib/components/tree-select/tree-select.vue2.cjs +1 -0
  272. package/lib/components/tree-select/tree.cjs +1 -0
  273. package/lib/components/tree-select/utils.cjs +1 -0
  274. package/lib/hooks/index.cjs +1 -1
  275. package/lib/hooks/use-focus/index.cjs +1 -0
  276. package/lib/hooks/use-throttle-render/index.cjs +1 -0
  277. package/lib/index.cjs +1 -1
  278. package/lib/package.json.cjs +1 -1
  279. package/lib/utils/helper.cjs +1 -1
  280. package/lib/utils/index.cjs +1 -1
  281. package/package.json +2 -2
  282. package/tags.json +1 -1
  283. package/theme-style/base.css +1 -1
  284. package/theme-style/index.css +1 -1
  285. package/theme-style/src/alert.scss +1 -1
  286. package/theme-style/src/autocomplete.scss +2 -2
  287. package/theme-style/src/breadcrumb.scss +4 -4
  288. package/theme-style/src/calendar.scss +2 -2
  289. package/theme-style/src/card.scss +1 -1
  290. package/theme-style/src/carousel.scss +1 -1
  291. package/theme-style/src/cascader.scss +3 -3
  292. package/theme-style/src/check-tag.scss +3 -3
  293. package/theme-style/src/checkbox.scss +1 -1
  294. package/theme-style/src/color-picker.scss +2 -2
  295. package/theme-style/src/common/var.scss +527 -521
  296. package/theme-style/src/date-picker/date-picker.scss +1 -1
  297. package/theme-style/src/date-picker/date-range-picker.scss +2 -2
  298. package/theme-style/src/date-picker/date-table.scss +1 -1
  299. package/theme-style/src/date-picker/month-table.scss +2 -2
  300. package/theme-style/src/date-picker/picker-panel.scss +4 -5
  301. package/theme-style/src/date-picker/picker.scss +7 -9
  302. package/theme-style/src/date-picker/time-picker.scss +2 -2
  303. package/theme-style/src/date-picker/time-spinner.scss +6 -8
  304. package/theme-style/src/date-picker/year-table.scss +3 -3
  305. package/theme-style/src/date-time-select.scss +3 -4
  306. package/theme-style/src/descriptions-item.scss +4 -4
  307. package/theme-style/src/descriptions.scss +2 -2
  308. package/theme-style/src/header-layout.scss +1 -1
  309. package/theme-style/src/horizontal-menu.scss +27 -39
  310. package/theme-style/src/image-viewer.scss +1 -1
  311. package/theme-style/src/index.scss +3 -0
  312. package/theme-style/src/input-number.scss +1 -1
  313. package/theme-style/src/menu.scss +76 -66
  314. package/theme-style/src/mixins/_var.scss +2 -2
  315. package/theme-style/src/mixins/mixins.scss +2 -2
  316. package/theme-style/src/popconfirm.scss +16 -0
  317. package/theme-style/src/popper.scss +4 -2
  318. package/theme-style/src/progress.scss +1 -1
  319. package/theme-style/src/reset.scss +3 -3
  320. package/theme-style/src/result.scss +2 -2
  321. package/theme-style/src/select-dropdown-v2.scss +1 -1
  322. package/theme-style/src/select-dropdown.scss +1 -1
  323. package/theme-style/src/select-v2.scss +2 -2
  324. package/theme-style/src/select.scss +4 -5
  325. package/theme-style/src/skeleton-item.scss +83 -0
  326. package/theme-style/src/skeleton.scss +44 -0
  327. package/theme-style/src/step.scss +10 -10
  328. package/theme-style/src/tabs.scss +15 -155
  329. package/theme-style/src/timeline-item.scss +2 -2
  330. package/theme-style/src/transfer.scss +5 -5
  331. package/theme-style/src/tree.scss +2 -5
  332. package/theme-style/src/upload.scss +11 -11
  333. package/theme-style/src/var.scss +1 -1
  334. package/theme-style/vft-alert.css +1 -1
  335. package/theme-style/vft-autocomplete.css +1 -1
  336. package/theme-style/vft-breadcrumb.css +1 -1
  337. package/theme-style/vft-calendar.css +1 -1
  338. package/theme-style/vft-card.css +1 -1
  339. package/theme-style/vft-carousel.css +1 -1
  340. package/theme-style/vft-cascader.css +1 -1
  341. package/theme-style/vft-check-tag.css +1 -1
  342. package/theme-style/vft-checkbox.css +1 -1
  343. package/theme-style/vft-color-picker.css +1 -1
  344. package/theme-style/vft-date-picker.css +1 -1
  345. package/theme-style/vft-date-time-select.css +1 -1
  346. package/theme-style/vft-descriptions-item.css +1 -1
  347. package/theme-style/vft-descriptions.css +1 -1
  348. package/theme-style/vft-header-layout.css +1 -1
  349. package/theme-style/vft-horizontal-menu.css +1 -1
  350. package/theme-style/vft-image-viewer.css +1 -1
  351. package/theme-style/vft-input-number.css +1 -1
  352. package/theme-style/vft-menu.css +1 -1
  353. package/theme-style/vft-popconfirm.css +1 -0
  354. package/theme-style/vft-popper.css +1 -1
  355. package/theme-style/vft-progress.css +1 -1
  356. package/theme-style/vft-reset.css +1 -1
  357. package/theme-style/vft-result.css +1 -1
  358. package/theme-style/vft-select-dropdown-v2.css +1 -1
  359. package/theme-style/vft-select-dropdown.css +1 -1
  360. package/theme-style/vft-select-v2.css +1 -1
  361. package/theme-style/vft-select.css +1 -1
  362. package/theme-style/vft-skeleton-item.css +1 -0
  363. package/theme-style/vft-skeleton.css +1 -0
  364. package/theme-style/vft-step.css +1 -1
  365. package/theme-style/vft-tabs.css +1 -1
  366. package/theme-style/vft-time-picker.css +1 -1
  367. package/theme-style/vft-time-select.css +1 -1
  368. package/theme-style/vft-timeline-item.css +1 -1
  369. package/theme-style/vft-transfer.css +1 -1
  370. package/theme-style/vft-tree.css +1 -1
  371. package/theme-style/vft-upload.css +1 -1
  372. package/theme-style/vft-var.css +1 -1
  373. package/web-types.json +1 -1
@@ -1,383 +1,375 @@
1
- import { defineComponent as qe, inject as Ge, toRef as de, ref as T, computed as v, resolveComponent as ce, openBlock as h, createElementBlock as b, normalizeClass as u, unref as e, createElementVNode as m, renderSlot as He, Fragment as Je, renderList as Qe, toDisplayString as K, createCommentVNode as C, createVNode as c, withDirectives as ve, withCtx as q, createBlock as We, createTextVNode as me } from "vue";
2
- import M from "dayjs";
3
- import { ClickOutside as fe } from "@vft/directives";
4
- import { isArray as pe } from "@vft/utils";
5
- import { VftButton as he } from "../../button/index.js";
6
- import { VftIcon as w } from "../../icon/index.js";
7
- import { VftInput as F } from "../../input/index.js";
1
+ import { defineComponent as _e, inject as qe, toRef as ie, ref as V, computed as c, openBlock as p, createElementBlock as h, normalizeClass as u, unref as e, createElementVNode as v, renderSlot as Ge, Fragment as He, renderList as Je, toDisplayString as _, createCommentVNode as C, createVNode as d, withDirectives as de, createBlock as Qe, withCtx as ce, createTextVNode as ve } from "vue";
2
+ import T from "dayjs";
3
+ import { ClickOutside as me } from "@vft/directives";
4
+ import { isArray as fe } from "@vft/utils";
5
+ import { VftButton as pe } from "../../button/index.js";
6
+ import { VftIcon as b } from "../../icon/index.js";
7
+ import { VftInput as E } from "../../input/index.js";
8
8
  import "../../time-picker/index.js";
9
- import { panelDateRangeProps as Xe } from "../props/panel-date-range.js";
10
- import { useRangePicker as Ze } from "../composables/use-range-picker.js";
11
- import { isValidRange as be, getDefaultValue as je } from "../utils.js";
12
- import ge from "./basic-date-table.vue2.js";
13
- import ke from "../../time-picker/time-picker-com/panel-time-pick.vue2.js";
14
- import { extractTimeFormat as ea, extractDateFormat as aa } from "../../time-picker/utils.js";
15
- const la = ["onClick"], ta = ["disabled"], na = ["disabled"], oa = ["disabled"], ra = ["disabled"], E = "month", wa = /* @__PURE__ */ qe({
9
+ import { panelDateRangeProps as We } from "../props/panel-date-range.js";
10
+ import { useRangePicker as Xe } from "../composables/use-range-picker.js";
11
+ import { isValidRange as he, getDefaultValue as Ze } from "../utils.js";
12
+ import be from "./basic-date-table.vue2.js";
13
+ import ge from "../../time-picker/time-picker-com/panel-time-pick.vue2.js";
14
+ import { extractTimeFormat as je, extractDateFormat as ea } from "../../time-picker/utils.js";
15
+ const aa = ["onClick"], la = ["disabled"], ta = ["disabled"], na = ["disabled"], oa = ["disabled"], A = "month", ya = /* @__PURE__ */ _e({
16
16
  __name: "panel-date-range",
17
- props: Xe,
17
+ props: We,
18
18
  emits: ["pick", "set-picker-option", "calendar-change", "panel-change"],
19
- setup(ye, { emit: P }) {
20
- const p = ye, A = Ge("EP_PICKER_BASE"), { disabledDate: Y, cellClassName: G, format: D, defaultTime: U, arrowControl: H, clearable: Ce } = A.props, J = de(A.props, "shortcuts"), Q = de(A.props, "defaultValue"), g = T("zh-cn"), t = T(M().locale(g.value)), n = T(M().locale(g.value).add(1, E)), {
21
- minDate: o,
22
- maxDate: r,
23
- rangeState: x,
24
- ppNs: d,
25
- drpNs: f,
26
- handleChangeRange: W,
27
- handleRangeConfirm: X,
28
- handleShortcutClick: we,
29
- onSelect: Z
30
- } = Ze(p, {
31
- defaultValue: Q,
32
- leftDate: t,
33
- rightDate: n,
34
- unit: E,
19
+ setup(ke, { emit: w }) {
20
+ const f = ke, U = qe("EP_PICKER_BASE"), { disabledDate: B, cellClassName: q, format: M, defaultTime: L, arrowControl: G, clearable: ye } = U.props, H = ie(U.props, "shortcuts"), J = ie(U.props, "defaultValue"), g = V("zh-cn"), n = V(T().locale(g.value)), o = V(T().locale(g.value).add(1, A)), {
21
+ minDate: r,
22
+ maxDate: s,
23
+ rangeState: P,
24
+ ppNs: i,
25
+ drpNs: m,
26
+ handleChangeRange: Q,
27
+ handleRangeConfirm: W,
28
+ handleShortcutClick: Ce,
29
+ onSelect: X
30
+ } = Xe(f, {
31
+ defaultValue: J,
32
+ leftDate: n,
33
+ rightDate: o,
34
+ unit: A,
35
35
  onParsedValueChanged: Ke
36
- }), I = T({
36
+ }), D = V({
37
37
  min: null,
38
38
  max: null
39
- }), k = T({
39
+ }), k = V({
40
40
  min: null,
41
41
  max: null
42
- }), Pe = v(() => `${t.value.year()} 年 月${t.value.month() + 1})}`), xe = v(() => `${n.value.year()} 年 月${n.value.month() + 1})}`), j = v(() => t.value.year()), L = v(() => t.value.month()), ee = v(() => n.value.year()), ae = v(() => n.value.month()), le = v(() => !!J.value.length), Ve = v(() => I.value.min !== null ? I.value.min : o.value ? o.value.format(O.value) : ""), Te = v(() => I.value.max !== null ? I.value.max : r.value || o.value ? (r.value || o.value).format(O.value) : ""), Me = v(() => k.value.min !== null ? k.value.min : o.value ? o.value.format(B.value) : ""), De = v(() => k.value.max !== null ? k.value.max : r.value || o.value ? (r.value || o.value).format(B.value) : ""), B = v(() => ea(D)), O = v(() => aa(D)), Ie = () => {
43
- t.value = t.value.subtract(1, "year"), p.unlinkPanels || (n.value = t.value.add(1, "month")), y("year");
42
+ }), we = c(() => `${n.value.year()} 年 ${n.value.month() + 1}月`), Pe = c(() => `${o.value.year()} 年 ${o.value.month() + 1}月`), Z = c(() => n.value.year()), O = c(() => n.value.month()), j = c(() => o.value.year()), ee = c(() => o.value.month()), ae = c(() => !!H.value.length), xe = c(() => D.value.min !== null ? D.value.min : r.value ? r.value.format(K.value) : ""), Ve = c(() => D.value.max !== null ? D.value.max : s.value || r.value ? (s.value || r.value).format(K.value) : ""), Te = c(() => k.value.min !== null ? k.value.min : r.value ? r.value.format($.value) : ""), Me = c(() => k.value.max !== null ? k.value.max : s.value || r.value ? (s.value || r.value).format($.value) : ""), $ = c(() => je(M)), K = c(() => ea(M)), De = () => {
43
+ n.value = n.value.subtract(1, "year"), f.unlinkPanels || (o.value = n.value.add(1, "month")), y("year");
44
+ }, Ie = () => {
45
+ n.value = n.value.subtract(1, "month"), f.unlinkPanels || (o.value = n.value.add(1, "month")), y("month");
44
46
  }, Se = () => {
45
- t.value = t.value.subtract(1, "month"), p.unlinkPanels || (n.value = t.value.add(1, "month")), y("month");
47
+ f.unlinkPanels ? o.value = o.value.add(1, "year") : (n.value = n.value.add(1, "year"), o.value = n.value.add(1, "month")), y("year");
46
48
  }, $e = () => {
47
- p.unlinkPanels ? n.value = n.value.add(1, "year") : (t.value = t.value.add(1, "year"), n.value = t.value.add(1, "month")), y("year");
49
+ f.unlinkPanels ? o.value = o.value.add(1, "month") : (n.value = n.value.add(1, "month"), o.value = n.value.add(1, "month")), y("month");
48
50
  }, Ne = () => {
49
- p.unlinkPanels ? n.value = n.value.add(1, "month") : (t.value = t.value.add(1, "month"), n.value = t.value.add(1, "month")), y("month");
51
+ n.value = n.value.add(1, "year"), y("year");
50
52
  }, Be = () => {
51
- t.value = t.value.add(1, "year"), y("year");
53
+ n.value = n.value.add(1, "month"), y("month");
52
54
  }, Ye = () => {
53
- t.value = t.value.add(1, "month"), y("month");
55
+ o.value = o.value.subtract(1, "year"), y("year");
54
56
  }, ze = () => {
55
- n.value = n.value.subtract(1, "year"), y("year");
56
- }, Re = () => {
57
- n.value = n.value.subtract(1, "month"), y("month");
57
+ o.value = o.value.subtract(1, "month"), y("month");
58
58
  }, y = (l) => {
59
- P("panel-change", [t.value.toDate(), n.value.toDate()], l);
60
- }, z = v(() => {
61
- const l = (L.value + 1) % 12, a = L.value + 1 >= 12 ? 1 : 0;
62
- return p.unlinkPanels && new Date(j.value + a, l) < new Date(ee.value, ae.value);
63
- }), R = v(() => p.unlinkPanels && ee.value * 12 + ae.value - (j.value * 12 + L.value + 1) >= 12), _e = v(() => !(o.value && r.value && !x.value.selecting && be([o.value, r.value]))), _ = v(() => p.type === "datetime" || p.type === "datetimerange"), te = (l, a) => {
59
+ w("panel-change", [n.value.toDate(), o.value.toDate()], l);
60
+ }, Y = c(() => {
61
+ const l = (O.value + 1) % 12, a = O.value + 1 >= 12 ? 1 : 0;
62
+ return f.unlinkPanels && new Date(Z.value + a, l) < new Date(j.value, ee.value);
63
+ }), z = c(() => f.unlinkPanels && j.value * 12 + ee.value - (Z.value * 12 + O.value + 1) >= 12), Re = c(() => !(r.value && s.value && !P.value.selecting && he([r.value, s.value]))), R = c(() => f.type === "datetime" || f.type === "datetimerange"), le = (l, a) => {
64
64
  if (l)
65
- return U ? M(U[a] || U).locale(g.value).year(l.year()).month(l.month()).date(l.date()) : l;
66
- }, ne = (l, a = !0) => {
67
- const s = l.minDate, V = l.maxDate, i = te(s, 0), N = te(V, 1);
68
- r.value === N && o.value === i || (P("calendar-change", [s.toDate(), V && V.toDate()]), r.value = N, o.value = i, !(!a || _.value) && X());
69
- }, S = T(!1), $ = T(!1), Fe = () => {
70
- S.value = !1;
65
+ return L ? T(L[a] || L).locale(g.value).year(l.year()).month(l.month()).date(l.date()) : l;
66
+ }, te = (l, a = !0) => {
67
+ const t = l.minDate, x = l.maxDate, N = le(t, 0), F = le(x, 1);
68
+ s.value === F && r.value === N || (w("calendar-change", [t.toDate(), x && x.toDate()]), s.value = F, r.value = N, !(!a || R.value) && W());
69
+ }, I = V(!1), S = V(!1), Fe = () => {
70
+ I.value = !1;
71
71
  }, Ee = () => {
72
- $.value = !1;
73
- }, oe = (l, a) => {
74
- I.value[a] = l;
75
- const s = M(l, O.value).locale(g.value);
76
- if (s.isValid()) {
77
- if (Y && Y(s.toDate()))
72
+ S.value = !1;
73
+ }, ne = (l, a) => {
74
+ D.value[a] = l;
75
+ const t = T(l, K.value).locale(g.value);
76
+ if (t.isValid()) {
77
+ if (B && B(t.toDate()))
78
78
  return;
79
- a === "min" ? (t.value = s, o.value = (o.value || t.value).year(s.year()).month(s.month()).date(s.date()), p.unlinkPanels || (n.value = s.add(1, "month"), r.value = o.value.add(1, "month"))) : (n.value = s, r.value = (r.value || n.value).year(s.year()).month(s.month()).date(s.date()), p.unlinkPanels || (t.value = s.subtract(1, "month"), o.value = r.value.subtract(1, "month")));
79
+ a === "min" ? (n.value = t, r.value = (r.value || n.value).year(t.year()).month(t.month()).date(t.date()), f.unlinkPanels || (o.value = t.add(1, "month"), s.value = r.value.add(1, "month"))) : (o.value = t, s.value = (s.value || o.value).year(t.year()).month(t.month()).date(t.date()), f.unlinkPanels || (n.value = t.subtract(1, "month"), r.value = s.value.subtract(1, "month")));
80
80
  }
81
+ }, oe = (l, a) => {
82
+ D.value[a] = null;
81
83
  }, re = (l, a) => {
82
- I.value[a] = null;
83
- }, se = (l, a) => {
84
84
  k.value[a] = l;
85
- const s = M(l, B.value).locale(g.value);
86
- s.isValid() && (a === "min" ? (S.value = !0, o.value = (o.value || t.value).hour(s.hour()).minute(s.minute()).second(s.second()), (!r.value || r.value.isBefore(o.value)) && (r.value = o.value)) : ($.value = !0, r.value = (r.value || n.value).hour(s.hour()).minute(s.minute()).second(s.second()), n.value = r.value, r.value && r.value.isBefore(o.value) && (o.value = r.value)));
87
- }, ue = (l, a) => {
88
- k.value[a] = null, a === "min" ? (t.value = o.value, S.value = !1) : (n.value = r.value, $.value = !1);
89
- }, Ae = (l, a, s) => {
90
- k.value.min || (l && (t.value = l, o.value = (o.value || t.value).hour(l.hour()).minute(l.minute()).second(l.second())), s || (S.value = a), (!r.value || r.value.isBefore(o.value)) && (r.value = o.value, n.value = l));
91
- }, Ue = (l, a, s) => {
92
- k.value.max || (l && (n.value = l, r.value = (r.value || n.value).hour(l.hour()).minute(l.minute()).second(l.second())), s || ($.value = a), r.value && r.value.isBefore(o.value) && (o.value = r.value));
93
- }, ie = () => {
94
- t.value = je(e(Q), {
85
+ const t = T(l, $.value).locale(g.value);
86
+ t.isValid() && (a === "min" ? (I.value = !0, r.value = (r.value || n.value).hour(t.hour()).minute(t.minute()).second(t.second()), (!s.value || s.value.isBefore(r.value)) && (s.value = r.value)) : (S.value = !0, s.value = (s.value || o.value).hour(t.hour()).minute(t.minute()).second(t.second()), o.value = s.value, s.value && s.value.isBefore(r.value) && (r.value = s.value)));
87
+ }, se = (l, a) => {
88
+ k.value[a] = null, a === "min" ? (n.value = r.value, I.value = !1) : (o.value = s.value, S.value = !1);
89
+ }, Ae = (l, a, t) => {
90
+ k.value.min || (l && (n.value = l, r.value = (r.value || n.value).hour(l.hour()).minute(l.minute()).second(l.second())), t || (I.value = a), (!s.value || s.value.isBefore(r.value)) && (s.value = r.value, o.value = l));
91
+ }, Ue = (l, a, t) => {
92
+ k.value.max || (l && (o.value = l, s.value = (s.value || o.value).hour(l.hour()).minute(l.minute()).second(l.second())), t || (S.value = a), s.value && s.value.isBefore(r.value) && (r.value = s.value));
93
+ }, ue = () => {
94
+ n.value = Ze(e(J), {
95
95
  lang: e(g),
96
96
  unit: "month",
97
- unlinkPanels: p.unlinkPanels
98
- })[0], n.value = t.value.add(1, "month"), P("pick", null);
99
- }, Le = (l) => pe(l) ? l.map((a) => a.format(D)) : l.format(D), Oe = (l) => pe(l) ? l.map((a) => M(a, D).locale(g.value)) : M(l, D).locale(g.value);
97
+ unlinkPanels: f.unlinkPanels
98
+ })[0], o.value = n.value.add(1, "month"), w("pick", null);
99
+ }, Le = (l) => fe(l) ? l.map((a) => a.format(M)) : l.format(M), Oe = (l) => fe(l) ? l.map((a) => T(a, M).locale(g.value)) : T(l, M).locale(g.value);
100
100
  function Ke(l, a) {
101
- if (p.unlinkPanels && a) {
102
- const s = (l == null ? void 0 : l.year()) || 0, V = (l == null ? void 0 : l.month()) || 0, i = a.year(), N = a.month();
103
- n.value = s === i && V === N ? a.add(1, E) : a;
101
+ if (f.unlinkPanels && a) {
102
+ const t = (l == null ? void 0 : l.year()) || 0, x = (l == null ? void 0 : l.month()) || 0, N = a.year(), F = a.month();
103
+ o.value = t === N && x === F ? a.add(1, A) : a;
104
104
  } else
105
- n.value = t.value.add(1, E), a && (n.value = n.value.hour(a.hour()).minute(a.minute()).second(a.second()));
105
+ o.value = n.value.add(1, A), a && (o.value = o.value.hour(a.hour()).minute(a.minute()).second(a.second()));
106
106
  }
107
- return P("set-picker-option", ["isValidValue", be]), P("set-picker-option", ["parseUserInput", Oe]), P("set-picker-option", ["formatToString", Le]), P("set-picker-option", ["handleClear", ie]), (l, a) => {
108
- const s = ce("arrow-right"), V = ce("el-icon");
109
- return h(), b("div", {
110
- class: u([
111
- e(d).b(),
112
- e(f).b(),
113
- {
114
- "has-sidebar": l.$slots.sidebar || e(le),
115
- "has-time": e(_)
116
- }
117
- ])
107
+ return w("set-picker-option", ["isValidValue", he]), w("set-picker-option", ["parseUserInput", Oe]), w("set-picker-option", ["formatToString", Le]), w("set-picker-option", ["handleClear", ue]), (l, a) => (p(), h("div", {
108
+ class: u([
109
+ e(i).b(),
110
+ e(m).b(),
111
+ {
112
+ "has-sidebar": l.$slots.sidebar || e(ae),
113
+ "has-time": e(R)
114
+ }
115
+ ])
116
+ }, [
117
+ v("div", {
118
+ class: u(e(i).e("body-wrapper"))
118
119
  }, [
119
- m("div", {
120
- class: u(e(d).e("body-wrapper"))
120
+ Ge(l.$slots, "sidebar", {
121
+ class: u(e(i).e("sidebar"))
122
+ }),
123
+ e(ae) ? (p(), h("div", {
124
+ key: 0,
125
+ class: u(e(i).e("sidebar"))
121
126
  }, [
122
- He(l.$slots, "sidebar", {
123
- class: u(e(d).e("sidebar"))
124
- }),
125
- e(le) ? (h(), b("div", {
127
+ (p(!0), h(He, null, Je(e(H), (t, x) => (p(), h("button", {
128
+ key: x,
129
+ type: "button",
130
+ class: u(e(i).e("shortcut")),
131
+ onClick: (N) => e(Ce)(t)
132
+ }, _(t.text), 11, aa))), 128))
133
+ ], 2)) : C("", !0),
134
+ v("div", {
135
+ class: u(e(i).e("body"))
136
+ }, [
137
+ e(R) ? (p(), h("div", {
126
138
  key: 0,
127
- class: u(e(d).e("sidebar"))
128
- }, [
129
- (h(!0), b(Je, null, Qe(e(J), (i, N) => (h(), b("button", {
130
- key: N,
131
- type: "button",
132
- class: u(e(d).e("shortcut")),
133
- onClick: (sa) => e(we)(i)
134
- }, K(i.text), 11, la))), 128))
135
- ], 2)) : C("", !0),
136
- m("div", {
137
- class: u(e(d).e("body"))
139
+ class: u(e(m).e("time-header"))
138
140
  }, [
139
- e(_) ? (h(), b("div", {
140
- key: 0,
141
- class: u(e(f).e("time-header"))
141
+ v("span", {
142
+ class: u(e(m).e("editors-wrap"))
142
143
  }, [
143
- m("span", {
144
- class: u(e(f).e("editors-wrap"))
144
+ v("span", {
145
+ class: u(e(m).e("time-picker-wrap"))
145
146
  }, [
146
- m("span", {
147
- class: u(e(f).e("time-picker-wrap"))
148
- }, [
149
- c(e(F), {
150
- size: "small",
151
- disabled: e(x).selecting,
152
- placeholder: "开始日期",
153
- class: u(e(f).e("editor")),
154
- "model-value": e(Ve),
155
- "validate-event": !1,
156
- onInput: a[0] || (a[0] = (i) => oe(i, "min")),
157
- onChange: a[1] || (a[1] = (i) => re(i, "min"))
158
- }, null, 8, ["disabled", "class", "model-value"])
159
- ], 2),
160
- ve((h(), b("span", {
161
- class: u(e(f).e("time-picker-wrap"))
162
- }, [
163
- c(e(F), {
164
- size: "small",
165
- class: u(e(f).e("editor")),
166
- disabled: e(x).selecting,
167
- placeholder: "开始时间",
168
- "model-value": e(Me),
169
- "validate-event": !1,
170
- onFocus: a[2] || (a[2] = (i) => S.value = !0),
171
- onInput: a[3] || (a[3] = (i) => se(i, "min")),
172
- onChange: a[4] || (a[4] = (i) => ue(i, "min"))
173
- }, null, 8, ["class", "disabled", "model-value"]),
174
- c(e(ke), {
175
- visible: S.value,
176
- format: e(B),
177
- "datetime-role": "start",
178
- "time-arrow-control": e(H),
179
- "parsed-value": t.value,
180
- onPick: Ae
181
- }, null, 8, ["visible", "format", "time-arrow-control", "parsed-value"])
182
- ], 2)), [
183
- [e(fe), Fe]
184
- ])
147
+ d(e(E), {
148
+ size: "small",
149
+ disabled: e(P).selecting,
150
+ placeholder: "开始日期",
151
+ class: u(e(m).e("editor")),
152
+ "model-value": e(xe),
153
+ "validate-event": !1,
154
+ onInput: a[0] || (a[0] = (t) => ne(t, "min")),
155
+ onChange: a[1] || (a[1] = (t) => oe(t, "min"))
156
+ }, null, 8, ["disabled", "class", "model-value"])
185
157
  ], 2),
186
- m("span", null, [
187
- c(V, null, {
188
- default: q(() => [
189
- c(s)
190
- ]),
191
- _: 1
192
- })
193
- ]),
194
- m("span", {
195
- class: u([e(f).e("editors-wrap"), "is-right"])
158
+ de((p(), h("span", {
159
+ class: u(e(m).e("time-picker-wrap"))
196
160
  }, [
197
- m("span", {
198
- class: u(e(f).e("time-picker-wrap"))
199
- }, [
200
- c(e(F), {
201
- size: "small",
202
- class: u(e(f).e("editor")),
203
- disabled: e(x).selecting,
204
- placeholder: "结束日期",
205
- "model-value": e(Te),
206
- readonly: !e(o),
207
- "validate-event": !1,
208
- onInput: a[5] || (a[5] = (i) => oe(i, "max")),
209
- onChange: a[6] || (a[6] = (i) => re(i, "max"))
210
- }, null, 8, ["class", "disabled", "model-value", "readonly"])
211
- ], 2),
212
- ve((h(), b("span", {
213
- class: u(e(f).e("time-picker-wrap"))
214
- }, [
215
- c(e(F), {
216
- size: "small",
217
- class: u(e(f).e("editor")),
218
- disabled: e(x).selecting,
219
- placeholder: "结束时间",
220
- "model-value": e(De),
221
- readonly: !e(o),
222
- "validate-event": !1,
223
- onFocus: a[7] || (a[7] = (i) => e(o) && ($.value = !0)),
224
- onInput: a[8] || (a[8] = (i) => se(i, "max")),
225
- onChange: a[9] || (a[9] = (i) => ue(i, "max"))
226
- }, null, 8, ["class", "disabled", "model-value", "readonly"]),
227
- c(e(ke), {
228
- "datetime-role": "end",
229
- visible: $.value,
230
- format: e(B),
231
- "time-arrow-control": e(H),
232
- "parsed-value": n.value,
233
- onPick: Ue
234
- }, null, 8, ["visible", "format", "time-arrow-control", "parsed-value"])
235
- ], 2)), [
236
- [e(fe), Ee]
237
- ])
238
- ], 2)
239
- ], 2)) : C("", !0),
240
- m("div", {
241
- class: u([[e(d).e("content"), e(f).e("content")], "is-left"])
161
+ d(e(E), {
162
+ size: "small",
163
+ class: u(e(m).e("editor")),
164
+ disabled: e(P).selecting,
165
+ placeholder: "开始时间",
166
+ "model-value": e(Te),
167
+ "validate-event": !1,
168
+ onFocus: a[2] || (a[2] = (t) => I.value = !0),
169
+ onInput: a[3] || (a[3] = (t) => re(t, "min")),
170
+ onChange: a[4] || (a[4] = (t) => se(t, "min"))
171
+ }, null, 8, ["class", "disabled", "model-value"]),
172
+ d(e(ge), {
173
+ visible: I.value,
174
+ format: e($),
175
+ "datetime-role": "start",
176
+ "time-arrow-control": e(G),
177
+ "parsed-value": n.value,
178
+ onPick: Ae
179
+ }, null, 8, ["visible", "format", "time-arrow-control", "parsed-value"])
180
+ ], 2)), [
181
+ [e(me), Fe]
182
+ ])
183
+ ], 2),
184
+ v("span", null, [
185
+ d(e(b), { icon: "ico-ep:arrow-right" })
186
+ ]),
187
+ v("span", {
188
+ class: u([e(m).e("editors-wrap"), "is-right"])
242
189
  }, [
243
- m("div", {
244
- class: u(e(f).e("header"))
190
+ v("span", {
191
+ class: u(e(m).e("time-picker-wrap"))
245
192
  }, [
246
- m("button", {
247
- type: "button",
248
- class: u([e(d).e("icon-btn"), "d-arrow-left"]),
249
- onClick: Ie
250
- }, [
251
- c(e(w), { icon: "ico-ep:d-arrow-left" })
252
- ], 2),
253
- m("button", {
254
- type: "button",
255
- class: u([e(d).e("icon-btn"), "arrow-left"]),
256
- onClick: Se
257
- }, [
258
- c(e(w), { icon: "ico-ep:arrow-left" })
259
- ], 2),
260
- l.unlinkPanels ? (h(), b("button", {
261
- key: 0,
262
- type: "button",
263
- disabled: !e(R),
264
- class: u([[e(d).e("icon-btn"), { "is-disabled": !e(R) }], "d-arrow-right"]),
265
- onClick: Be
266
- }, [
267
- c(e(w), { icon: "ico-ep:d-arrow-right" })
268
- ], 10, ta)) : C("", !0),
269
- l.unlinkPanels ? (h(), b("button", {
270
- key: 1,
271
- type: "button",
272
- disabled: !e(z),
273
- class: u([[e(d).e("icon-btn"), { "is-disabled": !e(z) }], "arrow-right"]),
274
- onClick: Ye
275
- }, [
276
- c(e(w), { icon: "ico-ep:arrow-right" })
277
- ], 10, na)) : C("", !0),
278
- m("div", null, K(e(Pe)), 1)
193
+ d(e(E), {
194
+ size: "small",
195
+ class: u(e(m).e("editor")),
196
+ disabled: e(P).selecting,
197
+ placeholder: "结束日期",
198
+ "model-value": e(Ve),
199
+ readonly: !e(r),
200
+ "validate-event": !1,
201
+ onInput: a[5] || (a[5] = (t) => ne(t, "max")),
202
+ onChange: a[6] || (a[6] = (t) => oe(t, "max"))
203
+ }, null, 8, ["class", "disabled", "model-value", "readonly"])
279
204
  ], 2),
280
- c(ge, {
281
- "selection-mode": "range",
282
- date: t.value,
283
- "min-date": e(o),
284
- "max-date": e(r),
285
- "range-state": e(x),
286
- "disabled-date": e(Y),
287
- "cell-class-name": e(G),
288
- onChangerange: e(W),
289
- onPick: ne,
290
- onSelect: e(Z)
291
- }, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "cell-class-name", "onChangerange", "onSelect"])
205
+ de((p(), h("span", {
206
+ class: u(e(m).e("time-picker-wrap"))
207
+ }, [
208
+ d(e(E), {
209
+ size: "small",
210
+ class: u(e(m).e("editor")),
211
+ disabled: e(P).selecting,
212
+ placeholder: "结束时间",
213
+ "model-value": e(Me),
214
+ readonly: !e(r),
215
+ "validate-event": !1,
216
+ onFocus: a[7] || (a[7] = (t) => e(r) && (S.value = !0)),
217
+ onInput: a[8] || (a[8] = (t) => re(t, "max")),
218
+ onChange: a[9] || (a[9] = (t) => se(t, "max"))
219
+ }, null, 8, ["class", "disabled", "model-value", "readonly"]),
220
+ d(e(ge), {
221
+ "datetime-role": "end",
222
+ visible: S.value,
223
+ format: e($),
224
+ "time-arrow-control": e(G),
225
+ "parsed-value": o.value,
226
+ onPick: Ue
227
+ }, null, 8, ["visible", "format", "time-arrow-control", "parsed-value"])
228
+ ], 2)), [
229
+ [e(me), Ee]
230
+ ])
231
+ ], 2)
232
+ ], 2)) : C("", !0),
233
+ v("div", {
234
+ class: u([[e(i).e("content"), e(m).e("content")], "is-left"])
235
+ }, [
236
+ v("div", {
237
+ class: u(e(m).e("header"))
238
+ }, [
239
+ v("button", {
240
+ type: "button",
241
+ class: u([e(i).e("icon-btn"), "d-arrow-left"]),
242
+ onClick: De
243
+ }, [
244
+ d(e(b), { icon: "ico-ep:d-arrow-left" })
245
+ ], 2),
246
+ v("button", {
247
+ type: "button",
248
+ class: u([e(i).e("icon-btn"), "arrow-left"]),
249
+ onClick: Ie
250
+ }, [
251
+ d(e(b), { icon: "ico-ep:arrow-left" })
252
+ ], 2),
253
+ l.unlinkPanels ? (p(), h("button", {
254
+ key: 0,
255
+ type: "button",
256
+ disabled: !e(z),
257
+ class: u([[e(i).e("icon-btn"), { "is-disabled": !e(z) }], "d-arrow-right"]),
258
+ onClick: Ne
259
+ }, [
260
+ d(e(b), { icon: "ico-ep:d-arrow-right" })
261
+ ], 10, la)) : C("", !0),
262
+ l.unlinkPanels ? (p(), h("button", {
263
+ key: 1,
264
+ type: "button",
265
+ disabled: !e(Y),
266
+ class: u([[e(i).e("icon-btn"), { "is-disabled": !e(Y) }], "arrow-right"]),
267
+ onClick: Be
268
+ }, [
269
+ d(e(b), { icon: "ico-ep:arrow-right" })
270
+ ], 10, ta)) : C("", !0),
271
+ v("div", null, _(e(we)), 1)
292
272
  ], 2),
293
- m("div", {
294
- class: u([[e(d).e("content"), e(f).e("content")], "is-right"])
273
+ d(be, {
274
+ "selection-mode": "range",
275
+ date: n.value,
276
+ "min-date": e(r),
277
+ "max-date": e(s),
278
+ "range-state": e(P),
279
+ "disabled-date": e(B),
280
+ "cell-class-name": e(q),
281
+ onChangerange: e(Q),
282
+ onPick: te,
283
+ onSelect: e(X)
284
+ }, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "cell-class-name", "onChangerange", "onSelect"])
285
+ ], 2),
286
+ v("div", {
287
+ class: u([[e(i).e("content"), e(m).e("content")], "is-right"])
288
+ }, [
289
+ v("div", {
290
+ class: u(e(m).e("header"))
295
291
  }, [
296
- m("div", {
297
- class: u(e(f).e("header"))
292
+ l.unlinkPanels ? (p(), h("button", {
293
+ key: 0,
294
+ type: "button",
295
+ disabled: !e(z),
296
+ class: u([[e(i).e("icon-btn"), { "is-disabled": !e(z) }], "d-arrow-left"]),
297
+ onClick: Ye
298
+ }, [
299
+ d(e(b), { icon: "ico-ep:d-arrow-left" })
300
+ ], 10, na)) : C("", !0),
301
+ l.unlinkPanels ? (p(), h("button", {
302
+ key: 1,
303
+ type: "button",
304
+ disabled: !e(Y),
305
+ class: u([[e(i).e("icon-btn"), { "is-disabled": !e(Y) }], "arrow-left"]),
306
+ onClick: ze
298
307
  }, [
299
- l.unlinkPanels ? (h(), b("button", {
300
- key: 0,
301
- type: "button",
302
- disabled: !e(R),
303
- class: u([[e(d).e("icon-btn"), { "is-disabled": !e(R) }], "d-arrow-left"]),
304
- onClick: ze
305
- }, [
306
- c(e(w), { icon: "ico-ep:d-arrow-left" })
307
- ], 10, oa)) : C("", !0),
308
- l.unlinkPanels ? (h(), b("button", {
309
- key: 1,
310
- type: "button",
311
- disabled: !e(z),
312
- class: u([[e(d).e("icon-btn"), { "is-disabled": !e(z) }], "arrow-left"]),
313
- onClick: Re
314
- }, [
315
- c(e(w), { icon: "ico-ep:arrow-left" })
316
- ], 10, ra)) : C("", !0),
317
- m("button", {
318
- type: "button",
319
- class: u([e(d).e("icon-btn"), "d-arrow-right"]),
320
- onClick: $e
321
- }, [
322
- c(e(w), { icon: "ico-ep:arrow-right" })
323
- ], 2),
324
- m("button", {
325
- type: "button",
326
- class: u([e(d).e("icon-btn"), "arrow-right"]),
327
- onClick: Ne
328
- }, [
329
- c(e(w), { icon: "ico-ep:arrow-right" })
330
- ], 2),
331
- m("div", null, K(e(xe)), 1)
308
+ d(e(b), { icon: "ico-ep:arrow-left" })
309
+ ], 10, oa)) : C("", !0),
310
+ v("button", {
311
+ type: "button",
312
+ class: u([e(i).e("icon-btn"), "d-arrow-right"]),
313
+ onClick: Se
314
+ }, [
315
+ d(e(b), { icon: "ico-ep:d-arrow-right" })
332
316
  ], 2),
333
- c(ge, {
334
- "selection-mode": "range",
335
- date: n.value,
336
- "min-date": e(o),
337
- "max-date": e(r),
338
- "range-state": e(x),
339
- "disabled-date": e(Y),
340
- "cell-class-name": e(G),
341
- onChangerange: e(W),
342
- onPick: ne,
343
- onSelect: e(Z)
344
- }, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "cell-class-name", "onChangerange", "onSelect"])
345
- ], 2)
317
+ v("button", {
318
+ type: "button",
319
+ class: u([e(i).e("icon-btn"), "arrow-right"]),
320
+ onClick: $e
321
+ }, [
322
+ d(e(b), { icon: "ico-ep:arrow-right" })
323
+ ], 2),
324
+ v("div", null, _(e(Pe)), 1)
325
+ ], 2),
326
+ d(be, {
327
+ "selection-mode": "range",
328
+ date: o.value,
329
+ "min-date": e(r),
330
+ "max-date": e(s),
331
+ "range-state": e(P),
332
+ "disabled-date": e(B),
333
+ "cell-class-name": e(q),
334
+ onChangerange: e(Q),
335
+ onPick: te,
336
+ onSelect: e(X)
337
+ }, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "cell-class-name", "onChangerange", "onSelect"])
346
338
  ], 2)
347
- ], 2),
348
- e(_) ? (h(), b("div", {
339
+ ], 2)
340
+ ], 2),
341
+ e(R) ? (p(), h("div", {
342
+ key: 0,
343
+ class: u(e(i).e("footer"))
344
+ }, [
345
+ e(ye) ? (p(), Qe(e(pe), {
349
346
  key: 0,
350
- class: u(e(d).e("footer"))
351
- }, [
352
- e(Ce) ? (h(), We(e(he), {
353
- key: 0,
354
- text: "",
355
- size: "small",
356
- class: u(e(d).e("link-btn")),
357
- onClick: ie
358
- }, {
359
- default: q(() => [
360
- me("清除")
361
- ]),
362
- _: 1
363
- }, 8, ["class"])) : C("", !0),
364
- c(e(he), {
365
- plain: "",
366
- size: "small",
367
- class: u(e(d).e("link-btn")),
368
- disabled: e(_e),
369
- onClick: a[10] || (a[10] = (i) => e(X)(!1))
370
- }, {
371
- default: q(() => [
372
- me("确认")
373
- ]),
374
- _: 1
375
- }, 8, ["class", "disabled"])
376
- ], 2)) : C("", !0)
377
- ], 2);
378
- };
347
+ text: "",
348
+ size: "small",
349
+ class: u(e(i).e("link-btn")),
350
+ onClick: ue
351
+ }, {
352
+ default: ce(() => [
353
+ ve("清除")
354
+ ]),
355
+ _: 1
356
+ }, 8, ["class"])) : C("", !0),
357
+ d(e(pe), {
358
+ plain: "",
359
+ size: "small",
360
+ class: u(e(i).e("link-btn")),
361
+ disabled: e(Re),
362
+ onClick: a[10] || (a[10] = (t) => e(W)(!1))
363
+ }, {
364
+ default: ce(() => [
365
+ ve("确认")
366
+ ]),
367
+ _: 1
368
+ }, 8, ["class", "disabled"])
369
+ ], 2)) : C("", !0)
370
+ ], 2));
379
371
  }
380
372
  });
381
373
  export {
382
- wa as default
374
+ ya as default
383
375
  };