vxe-pc-ui 4.20.34 → 4.20.35

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 (367) hide show
  1. package/dist/all.esm.js +45718 -45038
  2. package/dist/all.esm.min.js +3 -3
  3. package/dist/style.css +307 -1
  4. package/dist/style.mini.css +1 -1
  5. package/es/alert/src/alert.js +117 -114
  6. package/es/anchor/src/anchor-link.js +110 -107
  7. package/es/anchor/src/anchor.js +212 -209
  8. package/es/avatar/src/avatar.js +132 -129
  9. package/es/backtop/src/backtop.js +267 -264
  10. package/es/badge/src/badge.js +102 -99
  11. package/es/breadcrumb/src/breadcrumb-item.js +104 -101
  12. package/es/breadcrumb/src/breadcrumb.js +70 -67
  13. package/es/button/src/button-group.js +88 -85
  14. package/es/calendar/src/calendar.js +1371 -1368
  15. package/es/card/src/card.js +235 -232
  16. package/es/carousel/src/carousel-item.js +78 -75
  17. package/es/carousel/src/carousel.js +392 -389
  18. package/es/cascader/src/cascader.js +1667 -1664
  19. package/es/checkbox/src/button.js +198 -195
  20. package/es/checkbox/src/checkbox.js +181 -178
  21. package/es/checkbox/src/group.js +210 -207
  22. package/es/collapse/src/collapse-pane.js +98 -95
  23. package/es/collapse/src/collapse.js +340 -337
  24. package/es/color-picker/src/color-picker.js +1116 -1113
  25. package/es/components.d.ts +1 -0
  26. package/es/components.js +3 -0
  27. package/es/context-menu/src/context-menu.js +601 -598
  28. package/es/countdown/src/countdown.js +224 -221
  29. package/es/date-panel/src/date-panel.js +1905 -1902
  30. package/es/date-picker/src/date-picker.js +1537 -1534
  31. package/es/date-range-picker/src/date-range-picker.js +1412 -1409
  32. package/es/divider/src/divider.js +80 -77
  33. package/es/drawer/src/drawer.js +778 -775
  34. package/es/empty/src/empty.js +100 -97
  35. package/es/form/src/form-group.js +74 -71
  36. package/es/form/src/form-item.js +76 -73
  37. package/es/form/src/form.js +789 -786
  38. package/es/icon/src/icon.js +59 -56
  39. package/es/icon/style.css +1 -1
  40. package/es/icon/style.mini.css +1 -1
  41. package/es/icon-picker/src/icon-picker.js +719 -716
  42. package/es/image/src/group.js +130 -127
  43. package/es/image/src/image.js +243 -240
  44. package/es/image/src/preview.js +627 -624
  45. package/es/index.esm.js +2 -0
  46. package/es/index.js +2 -0
  47. package/es/input/src/input.js +2700 -2697
  48. package/es/layout-aside/src/layout-aside.js +138 -135
  49. package/es/layout-body/src/layout-body.js +145 -142
  50. package/es/layout-container/src/layout-container.js +71 -68
  51. package/es/layout-footer/src/layout-footer.js +60 -57
  52. package/es/layout-header/src/layout-header.js +58 -55
  53. package/es/link/src/link.js +131 -128
  54. package/es/list/src/list.js +2174 -2171
  55. package/es/loading/src/loading.js +141 -138
  56. package/es/mention/src/mention.js +49 -46
  57. package/es/menu/src/menu.js +799 -796
  58. package/es/modal/src/modal.js +1519 -1527
  59. package/es/notice-bar/src/notice-bar.js +168 -165
  60. package/es/number-input/src/number-input.js +1094 -1091
  61. package/es/pager/src/pager.js +767 -764
  62. package/es/password-input/src/password-input.js +431 -428
  63. package/es/print/src/page-break.js +63 -60
  64. package/es/print/src/print.js +303 -300
  65. package/es/pulldown/src/pulldown.js +403 -400
  66. package/es/radio/src/button.js +214 -211
  67. package/es/radio/src/group.js +195 -192
  68. package/es/radio/src/radio.js +194 -191
  69. package/es/rate/src/rate.js +164 -161
  70. package/es/result/src/result.js +116 -113
  71. package/es/row/src/col.js +133 -130
  72. package/es/row/src/row.js +111 -108
  73. package/es/scrollbar/src/scrollbar.js +518 -515
  74. package/es/segmented/src/segmented.js +240 -237
  75. package/es/select/src/optgroup.js +44 -41
  76. package/es/select/src/option.js +39 -36
  77. package/es/select/src/select.js +1914 -1896
  78. package/es/slider/src/slider.js +419 -416
  79. package/es/space/src/space.js +190 -187
  80. package/es/splitter/src/splitter-panel.js +146 -143
  81. package/es/splitter/src/splitter.js +917 -914
  82. package/es/step-item/index.d.ts +76 -0
  83. package/es/step-item/index.js +17 -0
  84. package/es/steps/index.d.ts +288 -34
  85. package/es/steps/src/step-info.d.ts +6 -0
  86. package/es/steps/src/step-info.js +20 -0
  87. package/es/steps/src/step-item.d.ts +14 -0
  88. package/es/steps/src/step-item.js +39 -0
  89. package/es/steps/src/steps.d.ts +68 -8
  90. package/es/steps/src/steps.js +299 -47
  91. package/es/steps/src/util.d.ts +7 -0
  92. package/es/steps/src/util.js +44 -0
  93. package/es/steps/style.css +297 -0
  94. package/es/steps/style.mini.css +1 -0
  95. package/es/style.css +307 -1
  96. package/es/style.mini.css +1 -1
  97. package/es/switch/src/switch.js +228 -225
  98. package/es/table-select/src/table-select.js +865 -862
  99. package/es/table-transfer/src/table-transfer.js +61 -58
  100. package/es/tabs/src/tab-pane.js +102 -99
  101. package/es/tabs/src/tabs.js +936 -933
  102. package/es/tag/src/tag.js +163 -160
  103. package/es/text/src/text.js +232 -229
  104. package/es/text-ellipsis/src/text-ellipsis.js +252 -249
  105. package/es/textarea/src/textarea.js +434 -431
  106. package/es/timeline/src/timeline.js +74 -36
  107. package/es/timeline/src/util.js +7 -4
  108. package/es/tip/src/tip.js +117 -114
  109. package/es/tooltip/src/tooltip.js +552 -549
  110. package/es/tour/src/tour.js +49 -46
  111. package/es/transfer/src/transfer.js +95 -92
  112. package/es/tree/src/tree.js +3379 -3376
  113. package/es/tree-select/src/tree-select.js +969 -966
  114. package/es/ui/index.js +8 -2
  115. package/es/ui/src/log.js +1 -1
  116. package/es/upload/src/upload.js +1791 -1788
  117. package/es/vxe-icon/style.css +1 -1
  118. package/es/vxe-icon/style.mini.css +1 -1
  119. package/es/vxe-steps/style.css +297 -0
  120. package/es/vxe-steps/style.mini.css +1 -0
  121. package/es/watermark/src/watermark.js +158 -155
  122. package/lib/alert/src/alert.js +117 -114
  123. package/lib/anchor/src/anchor-link.js +110 -107
  124. package/lib/anchor/src/anchor.js +212 -209
  125. package/lib/avatar/src/avatar.js +132 -129
  126. package/lib/backtop/src/backtop.js +267 -264
  127. package/lib/badge/src/badge.js +102 -99
  128. package/lib/breadcrumb/src/breadcrumb-item.js +104 -101
  129. package/lib/breadcrumb/src/breadcrumb.js +70 -67
  130. package/lib/button/src/button-group.js +88 -85
  131. package/lib/calendar/src/calendar.js +1371 -1368
  132. package/lib/card/src/card.js +235 -232
  133. package/lib/carousel/src/carousel-item.js +78 -75
  134. package/lib/carousel/src/carousel.js +392 -389
  135. package/lib/cascader/src/cascader.js +1665 -1662
  136. package/lib/checkbox/src/button.js +198 -195
  137. package/lib/checkbox/src/checkbox.js +181 -178
  138. package/lib/checkbox/src/group.js +210 -207
  139. package/lib/collapse/src/collapse-pane.js +98 -95
  140. package/lib/collapse/src/collapse.js +340 -337
  141. package/lib/color-picker/src/color-picker.js +1116 -1113
  142. package/lib/components.js +3 -0
  143. package/lib/context-menu/src/context-menu.js +601 -598
  144. package/lib/countdown/src/countdown.js +224 -221
  145. package/lib/date-panel/src/date-panel.js +1905 -1902
  146. package/lib/date-picker/src/date-picker.js +1537 -1534
  147. package/lib/date-range-picker/src/date-range-picker.js +1412 -1409
  148. package/lib/divider/src/divider.js +80 -77
  149. package/lib/drawer/src/drawer.js +778 -775
  150. package/lib/empty/src/empty.js +100 -97
  151. package/lib/form/src/form-group.js +74 -71
  152. package/lib/form/src/form-item.js +76 -73
  153. package/lib/form/src/form.js +789 -786
  154. package/lib/icon/src/icon.js +59 -56
  155. package/lib/icon/style/style.css +1 -1
  156. package/lib/icon/style/style.mini.css +1 -1
  157. package/lib/icon-picker/src/icon-picker.js +719 -716
  158. package/lib/image/src/group.js +130 -127
  159. package/lib/image/src/image.js +243 -240
  160. package/lib/image/src/preview.js +627 -624
  161. package/lib/index.common.js +2 -0
  162. package/lib/index.js +2 -0
  163. package/lib/index.umd.js +47411 -46732
  164. package/lib/index.umd.min.js +3 -3
  165. package/lib/input/src/input.js +2700 -2697
  166. package/lib/layout-aside/src/layout-aside.js +138 -135
  167. package/lib/layout-body/src/layout-body.js +145 -142
  168. package/lib/layout-container/src/layout-container.js +71 -68
  169. package/lib/layout-footer/src/layout-footer.js +60 -57
  170. package/lib/layout-header/src/layout-header.js +58 -55
  171. package/lib/link/src/link.js +131 -128
  172. package/lib/list/src/list.js +2173 -2170
  173. package/lib/loading/src/loading.js +141 -138
  174. package/lib/mention/src/mention.js +49 -46
  175. package/lib/menu/src/menu.js +799 -796
  176. package/lib/modal/src/modal.js +1519 -1527
  177. package/lib/notice-bar/src/notice-bar.js +168 -165
  178. package/lib/number-input/src/number-input.js +1094 -1091
  179. package/lib/pager/src/pager.js +767 -764
  180. package/lib/password-input/src/password-input.js +431 -428
  181. package/lib/print/src/page-break.js +63 -60
  182. package/lib/print/src/print.js +303 -300
  183. package/lib/pulldown/src/pulldown.js +403 -400
  184. package/lib/radio/src/button.js +214 -211
  185. package/lib/radio/src/group.js +195 -192
  186. package/lib/radio/src/radio.js +194 -191
  187. package/lib/rate/src/rate.js +164 -161
  188. package/lib/result/src/result.js +116 -113
  189. package/lib/row/src/col.js +133 -130
  190. package/lib/row/src/row.js +111 -108
  191. package/lib/scrollbar/src/scrollbar.js +518 -515
  192. package/lib/segmented/src/segmented.js +240 -237
  193. package/lib/select/src/optgroup.js +44 -41
  194. package/lib/select/src/option.js +39 -36
  195. package/lib/select/src/select.js +1915 -1897
  196. package/lib/slider/src/slider.js +419 -416
  197. package/lib/space/src/space.js +190 -187
  198. package/lib/splitter/src/splitter-panel.js +146 -143
  199. package/lib/splitter/src/splitter.js +917 -914
  200. package/lib/step-item/index.js +47 -0
  201. package/lib/steps/src/step-info.js +49 -0
  202. package/lib/steps/src/step-item.js +59 -0
  203. package/lib/steps/src/steps.js +298 -46
  204. package/lib/steps/src/util.js +74 -0
  205. package/lib/steps/style/style.css +297 -0
  206. package/lib/steps/style/style.mini.css +1 -0
  207. package/lib/style.css +307 -1
  208. package/lib/style.mini.css +1 -1
  209. package/lib/switch/src/switch.js +228 -225
  210. package/lib/table-select/src/table-select.js +865 -862
  211. package/lib/table-transfer/src/table-transfer.js +61 -58
  212. package/lib/tabs/src/tab-pane.js +102 -99
  213. package/lib/tabs/src/tabs.js +936 -933
  214. package/lib/tag/src/tag.js +163 -160
  215. package/lib/text/src/text.js +232 -229
  216. package/lib/text-ellipsis/src/text-ellipsis.js +252 -249
  217. package/lib/textarea/src/textarea.js +434 -431
  218. package/lib/timeline/src/timeline.js +74 -36
  219. package/lib/timeline/src/util.js +7 -4
  220. package/lib/tip/src/tip.js +117 -114
  221. package/lib/tooltip/src/tooltip.js +552 -549
  222. package/lib/tour/src/tour.js +49 -46
  223. package/lib/transfer/src/transfer.js +95 -92
  224. package/lib/tree/src/tree.js +3379 -3376
  225. package/lib/tree-select/src/tree-select.js +969 -966
  226. package/lib/ui/index.js +8 -2
  227. package/lib/ui/src/log.js +1 -1
  228. package/lib/upload/src/upload.js +1788 -1785
  229. package/lib/vxe-icon/style/style.css +1 -1
  230. package/lib/vxe-icon/style/style.mini.css +1 -1
  231. package/lib/vxe-steps/style/style.css +297 -0
  232. package/lib/vxe-steps/style/style.mini.css +1 -0
  233. package/lib/watermark/src/watermark.js +158 -155
  234. package/package.json +1 -1
  235. package/packages/alert/src/alert.ts +2 -2
  236. package/packages/anchor/src/anchor-link.ts +2 -2
  237. package/packages/anchor/src/anchor.ts +2 -2
  238. package/packages/avatar/src/avatar.ts +2 -2
  239. package/packages/backtop/src/backtop.ts +2 -2
  240. package/packages/badge/src/badge.ts +2 -2
  241. package/packages/breadcrumb/src/breadcrumb-item.ts +2 -2
  242. package/packages/breadcrumb/src/breadcrumb.ts +2 -2
  243. package/packages/button/src/button-group.ts +2 -2
  244. package/packages/calendar/src/calendar.ts +2 -2
  245. package/packages/card/src/card.ts +2 -2
  246. package/packages/carousel/src/carousel-item.ts +2 -2
  247. package/packages/carousel/src/carousel.ts +2 -2
  248. package/packages/cascader/src/cascader.ts +2 -2
  249. package/packages/checkbox/src/button.ts +3 -15
  250. package/packages/checkbox/src/checkbox.ts +2 -2
  251. package/packages/checkbox/src/group.ts +2 -2
  252. package/packages/collapse/src/collapse-pane.ts +2 -2
  253. package/packages/collapse/src/collapse.ts +2 -2
  254. package/packages/color-picker/src/color-picker.ts +2 -2
  255. package/packages/components.ts +3 -0
  256. package/packages/context-menu/src/context-menu.ts +3 -16
  257. package/packages/countdown/src/countdown.ts +2 -2
  258. package/packages/date-panel/src/date-panel.ts +2 -2
  259. package/packages/date-picker/src/date-picker.ts +2 -2
  260. package/packages/date-range-picker/src/date-range-picker.ts +2 -2
  261. package/packages/divider/src/divider.ts +2 -2
  262. package/packages/drawer/src/drawer.ts +2 -2
  263. package/packages/empty/src/empty.ts +2 -2
  264. package/packages/form/src/form-group.ts +2 -2
  265. package/packages/form/src/form-item.ts +2 -2
  266. package/packages/form/src/form.ts +2 -2
  267. package/packages/icon/src/icon.ts +2 -2
  268. package/packages/icon-picker/src/icon-picker.ts +2 -2
  269. package/packages/image/src/group.ts +2 -2
  270. package/packages/image/src/image.ts +2 -2
  271. package/packages/image/src/preview.ts +3 -16
  272. package/packages/index.ts +2 -2
  273. package/packages/input/src/input.ts +2 -2
  274. package/packages/layout-aside/src/layout-aside.ts +2 -2
  275. package/packages/layout-body/src/layout-body.ts +2 -2
  276. package/packages/layout-container/src/layout-container.ts +3 -14
  277. package/packages/layout-footer/src/layout-footer.ts +2 -2
  278. package/packages/layout-header/src/layout-header.ts +2 -2
  279. package/packages/link/src/link.ts +2 -2
  280. package/packages/list/src/list.ts +2 -2
  281. package/packages/loading/src/loading.ts +2 -2
  282. package/packages/mention/src/mention.ts +2 -2
  283. package/packages/menu/src/menu.ts +2 -2
  284. package/packages/modal/src/modal.ts +5 -20
  285. package/packages/notice-bar/src/notice-bar.ts +2 -2
  286. package/packages/number-input/src/number-input.ts +3 -17
  287. package/packages/pager/src/pager.ts +2 -2
  288. package/packages/password-input/src/password-input.ts +2 -2
  289. package/packages/print/src/page-break.ts +2 -2
  290. package/packages/print/src/print.ts +2 -2
  291. package/packages/pulldown/src/pulldown.ts +2 -2
  292. package/packages/radio/src/button.ts +3 -16
  293. package/packages/radio/src/group.ts +3 -17
  294. package/packages/radio/src/radio.ts +2 -2
  295. package/packages/rate/src/rate.ts +2 -2
  296. package/packages/result/src/result.ts +2 -2
  297. package/packages/row/src/col.ts +2 -2
  298. package/packages/row/src/row.ts +2 -2
  299. package/packages/scrollbar/src/scrollbar.ts +3 -4
  300. package/packages/segmented/src/segmented.ts +2 -2
  301. package/packages/select/src/optgroup.ts +2 -2
  302. package/packages/select/src/option.ts +2 -2
  303. package/packages/select/src/select.ts +33 -19
  304. package/packages/slider/src/slider.ts +2 -2
  305. package/packages/space/src/space.ts +2 -2
  306. package/packages/splitter/src/splitter-panel.ts +2 -2
  307. package/packages/splitter/src/splitter.ts +2 -2
  308. package/packages/step-item/index.ts +16 -0
  309. package/packages/steps/src/step-info.ts +18 -0
  310. package/packages/steps/src/step-item.ts +41 -0
  311. package/packages/steps/src/steps.ts +273 -13
  312. package/packages/steps/src/util.ts +44 -0
  313. package/packages/switch/src/switch.ts +2 -2
  314. package/packages/table-select/src/table-select.ts +2 -2
  315. package/packages/table-transfer/src/table-transfer.ts +3 -15
  316. package/packages/tabs/src/tab-pane.ts +2 -2
  317. package/packages/tabs/src/tabs.ts +2 -2
  318. package/packages/tag/src/tag.ts +2 -2
  319. package/packages/text/src/text.ts +2 -2
  320. package/packages/text-ellipsis/src/text-ellipsis.ts +2 -2
  321. package/packages/textarea/src/textarea.ts +2 -2
  322. package/packages/timeline/src/timeline-info.ts +17 -17
  323. package/packages/timeline/src/timeline.ts +93 -49
  324. package/packages/timeline/src/util.ts +44 -41
  325. package/packages/tip/src/tip.ts +2 -2
  326. package/packages/tooltip/src/tooltip.ts +2 -2
  327. package/packages/tour/src/tour.ts +2 -2
  328. package/packages/transfer/src/transfer.ts +2 -2
  329. package/packages/tree/src/tree.ts +2 -2
  330. package/packages/tree-select/src/tree-select.ts +2 -2
  331. package/packages/ui/index.ts +8 -1
  332. package/packages/upload/src/upload.ts +2 -2
  333. package/packages/watermark/src/watermark.ts +2 -2
  334. package/styles/all.scss +1 -0
  335. package/styles/components/step-item.scss +0 -0
  336. package/styles/components/steps.scss +354 -0
  337. package/styles/theme/base.scss +9 -0
  338. package/types/all.d.ts +3 -0
  339. package/types/components/gantt.d.ts +1 -3
  340. package/types/components/select.d.ts +1 -13
  341. package/types/components/step-item.d.ts +72 -0
  342. package/types/components/steps.d.ts +67 -8
  343. package/types/components/table.d.ts +7 -66
  344. package/types/handles/form-design.d.ts +1 -4
  345. package/types/ui/global-config.d.ts +2 -0
  346. package/types/ui/global-icon.d.ts +7 -0
  347. /package/dist/{iconfont.1793330162657.ttf → iconfont.1793359478136.ttf} +0 -0
  348. /package/dist/{iconfont.1793330162657.woff → iconfont.1793359478136.woff} +0 -0
  349. /package/dist/{iconfont.1793330162657.woff2 → iconfont.1793359478136.woff2} +0 -0
  350. /package/es/icon/{iconfont.1793330162657.ttf → iconfont.1793359478136.ttf} +0 -0
  351. /package/es/icon/{iconfont.1793330162657.woff → iconfont.1793359478136.woff} +0 -0
  352. /package/es/icon/{iconfont.1793330162657.woff2 → iconfont.1793359478136.woff2} +0 -0
  353. /package/es/{iconfont.1793330162657.ttf → iconfont.1793359478136.ttf} +0 -0
  354. /package/es/{iconfont.1793330162657.woff → iconfont.1793359478136.woff} +0 -0
  355. /package/es/{iconfont.1793330162657.woff2 → iconfont.1793359478136.woff2} +0 -0
  356. /package/es/vxe-icon/{iconfont.1793330162657.ttf → iconfont.1793359478136.ttf} +0 -0
  357. /package/es/vxe-icon/{iconfont.1793330162657.woff → iconfont.1793359478136.woff} +0 -0
  358. /package/es/vxe-icon/{iconfont.1793330162657.woff2 → iconfont.1793359478136.woff2} +0 -0
  359. /package/lib/icon/style/{iconfont.1793330162657.ttf → iconfont.1793359478136.ttf} +0 -0
  360. /package/lib/icon/style/{iconfont.1793330162657.woff → iconfont.1793359478136.woff} +0 -0
  361. /package/lib/icon/style/{iconfont.1793330162657.woff2 → iconfont.1793359478136.woff2} +0 -0
  362. /package/lib/{iconfont.1793330162657.ttf → iconfont.1793359478136.ttf} +0 -0
  363. /package/lib/{iconfont.1793330162657.woff → iconfont.1793359478136.woff} +0 -0
  364. /package/lib/{iconfont.1793330162657.woff2 → iconfont.1793359478136.woff2} +0 -0
  365. /package/lib/vxe-icon/style/{iconfont.1793330162657.ttf → iconfont.1793359478136.ttf} +0 -0
  366. /package/lib/vxe-icon/style/{iconfont.1793330162657.woff → iconfont.1793359478136.woff} +0 -0
  367. /package/lib/vxe-icon/style/{iconfont.1793330162657.woff2 → iconfont.1793359478136.woff2} +0 -0
@@ -38,426 +38,429 @@ var import_core = require("@vxe-ui/core");
38
38
  var import_dom = require("../../ui/src/dom");
39
39
  var import_utils = require("../../ui/src/utils");
40
40
  const { getConfig, globalEvents, createEvent, useFns, renderEmptyElement } = import_core.VxeUI;
41
- var pulldown_default = (0, import_comp.defineVxeComponent)({
42
- name: "VxePulldown",
43
- props: {
44
- modelValue: Boolean,
45
- disabled: Boolean,
46
- placement: String,
47
- /**
48
- * 已废弃,请使用 popup-config.trigger
49
- * @deprecated
50
- */
51
- trigger: {
52
- type: String,
53
- default: () => getConfig().pulldown.trigger
54
- },
55
- /**
56
- * 已废弃,请使用 popupConfig.zIndex
57
- * @deprecated
58
- */
59
- zIndex: Number,
60
- size: {
61
- type: String,
62
- default: () => getConfig().pulldown.size || getConfig().size
63
- },
64
- options: Array,
65
- className: {
66
- type: [String, Function],
67
- default: () => getConfig().pulldown.className
68
- },
69
- /**
70
- * 已废弃,请使用 popupConfig.className
71
- * @deprecated
72
- */
73
- popupClassName: [String, Function],
74
- showPopupShadow: Boolean,
75
- popupConfig: Object,
76
- destroyOnClose: {
77
- type: Boolean,
78
- default: () => getConfig().pulldown.destroyOnClose
79
- },
80
- transfer: {
81
- type: Boolean,
82
- default: null
83
- }
84
- },
85
- emits: ["update:modelValue", "click", "option-click", "show-panel", "hide-panel", "visible-change"],
86
- setup(props, context) {
87
- const { slots, emit } = context;
88
- const $xeModal = (0, import_vue.inject)("$xeModal", null);
89
- const $xeDrawer = (0, import_vue.inject)("$xeDrawer", null);
90
- const $xeTable = (0, import_vue.inject)("$xeTable", null);
91
- const $xeForm = (0, import_vue.inject)("$xeForm", null);
92
- const xID = import_xe_utils.default.uniqueId();
93
- const { computeSize } = useFns.useSize(props);
94
- const reactData = (0, import_vue.reactive)({
95
- initialized: false,
96
- panelIndex: 0,
97
- panelStyle: {},
98
- panelPlacement: null,
99
- visiblePanel: false,
100
- isAniVisible: false,
101
- isActivated: false
102
- });
103
- const internalData = {
104
- hpTimeout: void 0
105
- };
106
- const refElem = (0, import_vue.ref)();
107
- const refPulldownContent = (0, import_vue.ref)();
108
- const refPulldownPanel = (0, import_vue.ref)();
109
- const computeBtnTransfer = (0, import_vue.computed)(() => {
110
- const { transfer } = props;
111
- const popupOpts = computePopupOpts.value;
112
- if (import_xe_utils.default.isBoolean(popupOpts.transfer)) {
113
- return popupOpts.transfer;
41
+ var pulldown_default = (
42
+ /* define-vxe-component start */
43
+ (0, import_comp.defineVxeComponent)({
44
+ name: "VxePulldown",
45
+ props: {
46
+ modelValue: Boolean,
47
+ disabled: Boolean,
48
+ placement: String,
49
+ /**
50
+ * 已废弃,请使用 popup-config.trigger
51
+ * @deprecated
52
+ */
53
+ trigger: {
54
+ type: String,
55
+ default: () => getConfig().pulldown.trigger
56
+ },
57
+ /**
58
+ * 已废弃,请使用 popupConfig.zIndex
59
+ * @deprecated
60
+ */
61
+ zIndex: Number,
62
+ size: {
63
+ type: String,
64
+ default: () => getConfig().pulldown.size || getConfig().size
65
+ },
66
+ options: Array,
67
+ className: {
68
+ type: [String, Function],
69
+ default: () => getConfig().pulldown.className
70
+ },
71
+ /**
72
+ * 已废弃,请使用 popupConfig.className
73
+ * @deprecated
74
+ */
75
+ popupClassName: [String, Function],
76
+ showPopupShadow: Boolean,
77
+ popupConfig: Object,
78
+ destroyOnClose: {
79
+ type: Boolean,
80
+ default: () => getConfig().pulldown.destroyOnClose
81
+ },
82
+ transfer: {
83
+ type: Boolean,
84
+ default: null
114
85
  }
115
- if (transfer === null) {
116
- const globalTransfer = getConfig().pulldown.transfer;
117
- if (import_xe_utils.default.isBoolean(globalTransfer)) {
118
- return globalTransfer;
86
+ },
87
+ emits: ["update:modelValue", "click", "option-click", "show-panel", "hide-panel", "visible-change"],
88
+ setup(props, context) {
89
+ const { slots, emit } = context;
90
+ const $xeModal = (0, import_vue.inject)("$xeModal", null);
91
+ const $xeDrawer = (0, import_vue.inject)("$xeDrawer", null);
92
+ const $xeTable = (0, import_vue.inject)("$xeTable", null);
93
+ const $xeForm = (0, import_vue.inject)("$xeForm", null);
94
+ const xID = import_xe_utils.default.uniqueId();
95
+ const { computeSize } = useFns.useSize(props);
96
+ const reactData = (0, import_vue.reactive)({
97
+ initialized: false,
98
+ panelIndex: 0,
99
+ panelStyle: {},
100
+ panelPlacement: null,
101
+ visiblePanel: false,
102
+ isAniVisible: false,
103
+ isActivated: false
104
+ });
105
+ const internalData = {
106
+ hpTimeout: void 0
107
+ };
108
+ const refElem = (0, import_vue.ref)();
109
+ const refPulldownContent = (0, import_vue.ref)();
110
+ const refPulldownPanel = (0, import_vue.ref)();
111
+ const computeBtnTransfer = (0, import_vue.computed)(() => {
112
+ const { transfer } = props;
113
+ const popupOpts = computePopupOpts.value;
114
+ if (import_xe_utils.default.isBoolean(popupOpts.transfer)) {
115
+ return popupOpts.transfer;
119
116
  }
120
- if ($xeTable || $xeModal || $xeDrawer || $xeForm) {
121
- return true;
117
+ if (transfer === null) {
118
+ const globalTransfer = getConfig().pulldown.transfer;
119
+ if (import_xe_utils.default.isBoolean(globalTransfer)) {
120
+ return globalTransfer;
121
+ }
122
+ if ($xeTable || $xeModal || $xeDrawer || $xeForm) {
123
+ return true;
124
+ }
122
125
  }
123
- }
124
- return transfer;
125
- });
126
- const computePopupOpts = (0, import_vue.computed)(() => {
127
- return Object.assign({}, getConfig().pulldown.popupConfig, props.popupConfig);
128
- });
129
- const refMaps = {
130
- refElem
131
- };
132
- const $xePulldown = {
133
- xID,
134
- props,
135
- context,
136
- reactData,
137
- internalData,
138
- getRefMaps: () => refMaps
139
- };
140
- let pulldownMethods = {};
141
- const updateZindex = () => {
142
- const popupOpts = computePopupOpts.value;
143
- const customZIndex = popupOpts.zIndex || props.zIndex;
144
- if (customZIndex) {
145
- reactData.panelIndex = import_xe_utils.default.toNumber(customZIndex);
146
- } else if (reactData.panelIndex < (0, import_utils.getLastZIndex)()) {
147
- reactData.panelIndex = (0, import_utils.nextZIndex)();
148
- }
149
- };
150
- const isPanelVisible = () => {
151
- return reactData.visiblePanel;
152
- };
153
- const updatePlacement = () => {
154
- const { placement } = props;
155
- const { panelIndex } = reactData;
156
- const targetElem = refPulldownContent.value;
157
- const panelElem = refPulldownPanel.value;
158
- const btnTransfer = computeBtnTransfer.value;
159
- const popupOpts = computePopupOpts.value;
160
- const handleStyle = () => {
161
- const ppObj = (0, import_dom.updatePanelPlacement)(targetElem, panelElem, {
162
- placement: popupOpts.placement || placement,
163
- defaultPlacement: popupOpts.defaultPlacement,
164
- appendTo: popupOpts.appendTo,
165
- teleportTo: btnTransfer
166
- });
167
- const panelStyle = Object.assign(ppObj.style, {
168
- zIndex: panelIndex
169
- });
170
- reactData.panelStyle = panelStyle;
171
- reactData.panelPlacement = ppObj.placement;
126
+ return transfer;
127
+ });
128
+ const computePopupOpts = (0, import_vue.computed)(() => {
129
+ return Object.assign({}, getConfig().pulldown.popupConfig, props.popupConfig);
130
+ });
131
+ const refMaps = {
132
+ refElem
172
133
  };
173
- handleStyle();
174
- return (0, import_vue.nextTick)().then(handleStyle);
175
- };
176
- const showPanel = () => {
177
- if (!reactData.initialized) {
178
- reactData.initialized = true;
179
- }
180
- return new Promise((resolve) => {
181
- if (!props.disabled) {
182
- if (internalData.hpTimeout) {
183
- clearTimeout(internalData.hpTimeout);
184
- }
185
- reactData.isActivated = true;
186
- reactData.isAniVisible = true;
187
- setTimeout(() => {
188
- reactData.visiblePanel = true;
189
- emit("update:modelValue", true);
190
- updatePlacement();
191
- setTimeout(() => {
192
- resolve(updatePlacement());
193
- }, 40);
194
- }, 10);
195
- updateZindex();
196
- dispatchEvent("visible-change", { visible: true }, null);
197
- } else {
198
- (0, import_vue.nextTick)(() => {
199
- resolve();
134
+ const $xePulldown = {
135
+ xID,
136
+ props,
137
+ context,
138
+ reactData,
139
+ internalData,
140
+ getRefMaps: () => refMaps
141
+ };
142
+ let pulldownMethods = {};
143
+ const updateZindex = () => {
144
+ const popupOpts = computePopupOpts.value;
145
+ const customZIndex = popupOpts.zIndex || props.zIndex;
146
+ if (customZIndex) {
147
+ reactData.panelIndex = import_xe_utils.default.toNumber(customZIndex);
148
+ } else if (reactData.panelIndex < (0, import_utils.getLastZIndex)()) {
149
+ reactData.panelIndex = (0, import_utils.nextZIndex)();
150
+ }
151
+ };
152
+ const isPanelVisible = () => {
153
+ return reactData.visiblePanel;
154
+ };
155
+ const updatePlacement = () => {
156
+ const { placement } = props;
157
+ const { panelIndex } = reactData;
158
+ const targetElem = refPulldownContent.value;
159
+ const panelElem = refPulldownPanel.value;
160
+ const btnTransfer = computeBtnTransfer.value;
161
+ const popupOpts = computePopupOpts.value;
162
+ const handleStyle = () => {
163
+ const ppObj = (0, import_dom.updatePanelPlacement)(targetElem, panelElem, {
164
+ placement: popupOpts.placement || placement,
165
+ defaultPlacement: popupOpts.defaultPlacement,
166
+ appendTo: popupOpts.appendTo,
167
+ teleportTo: btnTransfer
168
+ });
169
+ const panelStyle = Object.assign(ppObj.style, {
170
+ zIndex: panelIndex
200
171
  });
172
+ reactData.panelStyle = panelStyle;
173
+ reactData.panelPlacement = ppObj.placement;
174
+ };
175
+ handleStyle();
176
+ return (0, import_vue.nextTick)().then(handleStyle);
177
+ };
178
+ const showPanel = () => {
179
+ if (!reactData.initialized) {
180
+ reactData.initialized = true;
201
181
  }
202
- });
203
- };
204
- const hideOptionPanel = () => {
205
- reactData.visiblePanel = false;
206
- dispatchEvent("visible-change", { visible: false }, null);
207
- emit("update:modelValue", false);
208
- return new Promise((resolve) => {
209
- if (reactData.isAniVisible) {
210
- internalData.hpTimeout = setTimeout(() => {
211
- reactData.isAniVisible = false;
182
+ return new Promise((resolve) => {
183
+ if (!props.disabled) {
184
+ if (internalData.hpTimeout) {
185
+ clearTimeout(internalData.hpTimeout);
186
+ }
187
+ reactData.isActivated = true;
188
+ reactData.isAniVisible = true;
189
+ setTimeout(() => {
190
+ reactData.visiblePanel = true;
191
+ emit("update:modelValue", true);
192
+ updatePlacement();
193
+ setTimeout(() => {
194
+ resolve(updatePlacement());
195
+ }, 40);
196
+ }, 10);
197
+ updateZindex();
198
+ dispatchEvent("visible-change", { visible: true }, null);
199
+ } else {
212
200
  (0, import_vue.nextTick)(() => {
213
201
  resolve();
214
202
  });
215
- }, 350);
216
- } else {
217
- (0, import_vue.nextTick)(() => {
218
- resolve();
219
- });
220
- }
221
- });
222
- };
223
- const togglePanel = () => {
224
- if (reactData.visiblePanel) {
225
- return hideOptionPanel();
226
- }
227
- return showPanel();
228
- };
229
- const handleOptionEvent = (evnt, option) => {
230
- if (!option.disabled) {
203
+ }
204
+ });
205
+ };
206
+ const hideOptionPanel = () => {
207
+ reactData.visiblePanel = false;
208
+ dispatchEvent("visible-change", { visible: false }, null);
209
+ emit("update:modelValue", false);
210
+ return new Promise((resolve) => {
211
+ if (reactData.isAniVisible) {
212
+ internalData.hpTimeout = setTimeout(() => {
213
+ reactData.isAniVisible = false;
214
+ (0, import_vue.nextTick)(() => {
215
+ resolve();
216
+ });
217
+ }, 350);
218
+ } else {
219
+ (0, import_vue.nextTick)(() => {
220
+ resolve();
221
+ });
222
+ }
223
+ });
224
+ };
225
+ const togglePanel = () => {
231
226
  if (reactData.visiblePanel) {
232
- hideOptionPanel();
233
- dispatchEvent("hide-panel", {}, evnt);
227
+ return hideOptionPanel();
234
228
  }
235
- dispatchEvent("option-click", { option }, evnt);
236
- }
237
- };
238
- const clickTargetEvent = (evnt) => {
239
- const { trigger } = props;
240
- const popupOpts = computePopupOpts.value;
241
- const currTrigger = trigger || popupOpts.trigger;
242
- if (currTrigger === "click") {
243
- if (reactData.visiblePanel) {
244
- hideOptionPanel();
245
- dispatchEvent("hide-panel", {}, evnt);
246
- } else {
247
- showPanel();
248
- dispatchEvent("show-panel", {}, evnt);
229
+ return showPanel();
230
+ };
231
+ const handleOptionEvent = (evnt, option) => {
232
+ if (!option.disabled) {
233
+ if (reactData.visiblePanel) {
234
+ hideOptionPanel();
235
+ dispatchEvent("hide-panel", {}, evnt);
236
+ }
237
+ dispatchEvent("option-click", { option }, evnt);
249
238
  }
250
- }
251
- dispatchEvent("click", { $pulldown: $xePulldown }, evnt);
252
- };
253
- const handleGlobalMousedownEvent = (evnt) => {
254
- const { trigger, disabled } = props;
255
- const { visiblePanel } = reactData;
256
- const popupOpts = computePopupOpts.value;
257
- const currTrigger = trigger || popupOpts.trigger;
258
- const el = refElem.value;
259
- const panelElem = refPulldownPanel.value;
260
- if (!disabled) {
261
- reactData.isActivated = (0, import_dom.getEventTargetNode)(evnt, el).flag || (0, import_dom.getEventTargetNode)(evnt, panelElem).flag;
262
- if (visiblePanel && !reactData.isActivated) {
239
+ };
240
+ const clickTargetEvent = (evnt) => {
241
+ const { trigger } = props;
242
+ const popupOpts = computePopupOpts.value;
243
+ const currTrigger = trigger || popupOpts.trigger;
244
+ if (currTrigger === "click") {
245
+ if (reactData.visiblePanel) {
246
+ hideOptionPanel();
247
+ dispatchEvent("hide-panel", {}, evnt);
248
+ } else {
249
+ showPanel();
250
+ dispatchEvent("show-panel", {}, evnt);
251
+ }
252
+ }
253
+ dispatchEvent("click", { $pulldown: $xePulldown }, evnt);
254
+ };
255
+ const handleGlobalMousedownEvent = (evnt) => {
256
+ const { trigger, disabled } = props;
257
+ const { visiblePanel } = reactData;
258
+ const popupOpts = computePopupOpts.value;
259
+ const currTrigger = trigger || popupOpts.trigger;
260
+ const el = refElem.value;
261
+ const panelElem = refPulldownPanel.value;
262
+ if (!disabled) {
263
+ reactData.isActivated = (0, import_dom.getEventTargetNode)(evnt, el).flag || (0, import_dom.getEventTargetNode)(evnt, panelElem).flag;
264
+ if (visiblePanel && !reactData.isActivated) {
265
+ if (currTrigger !== "manual") {
266
+ hideOptionPanel();
267
+ dispatchEvent("hide-panel", {}, evnt);
268
+ }
269
+ }
270
+ }
271
+ };
272
+ const handleGlobalBlurEvent = (evnt) => {
273
+ const { trigger } = props;
274
+ const { visiblePanel, isActivated } = reactData;
275
+ const popupOpts = computePopupOpts.value;
276
+ const currTrigger = trigger || popupOpts.trigger;
277
+ if (visiblePanel) {
263
278
  if (currTrigger !== "manual") {
264
279
  hideOptionPanel();
265
280
  dispatchEvent("hide-panel", {}, evnt);
266
281
  }
267
282
  }
268
- }
269
- };
270
- const handleGlobalBlurEvent = (evnt) => {
271
- const { trigger } = props;
272
- const { visiblePanel, isActivated } = reactData;
273
- const popupOpts = computePopupOpts.value;
274
- const currTrigger = trigger || popupOpts.trigger;
275
- if (visiblePanel) {
276
- if (currTrigger !== "manual") {
277
- hideOptionPanel();
278
- dispatchEvent("hide-panel", {}, evnt);
283
+ if (isActivated) {
284
+ reactData.isActivated = false;
279
285
  }
280
- }
281
- if (isActivated) {
282
- reactData.isActivated = false;
283
- }
284
- };
285
- const handleGlobalResizeEvent = () => {
286
- const { visiblePanel } = reactData;
287
- if (visiblePanel) {
288
- updatePlacement();
289
- }
290
- };
291
- const handleGlobalScrollEvent = () => {
292
- const { visiblePanel } = reactData;
293
- if (visiblePanel) {
294
- updatePlacement();
295
- }
296
- };
297
- const dispatchEvent = (type, params, evnt) => {
298
- emit(type, createEvent(evnt, { $pulldown: $xePulldown }, params));
299
- };
300
- pulldownMethods = {
301
- dispatchEvent,
302
- isPanelVisible,
303
- togglePanel,
304
- showPanel,
305
- hidePanel: hideOptionPanel
306
- };
307
- Object.assign($xePulldown, pulldownMethods);
308
- const renderDefaultPanel = (options) => {
309
- const optionSlot = slots.option;
310
- return (0, import_vue.h)(
311
- "div",
312
- {
313
- class: "vxe-pulldown--panel-list"
314
- },
315
- options ? options.map((item) => {
316
- return (0, import_vue.h)(
317
- "div",
318
- {
319
- class: "vxe-pulldown--panel-item",
320
- onClick(evnt) {
321
- handleOptionEvent(evnt, item);
286
+ };
287
+ const handleGlobalResizeEvent = () => {
288
+ const { visiblePanel } = reactData;
289
+ if (visiblePanel) {
290
+ updatePlacement();
291
+ }
292
+ };
293
+ const handleGlobalScrollEvent = () => {
294
+ const { visiblePanel } = reactData;
295
+ if (visiblePanel) {
296
+ updatePlacement();
297
+ }
298
+ };
299
+ const dispatchEvent = (type, params, evnt) => {
300
+ emit(type, createEvent(evnt, { $pulldown: $xePulldown }, params));
301
+ };
302
+ pulldownMethods = {
303
+ dispatchEvent,
304
+ isPanelVisible,
305
+ togglePanel,
306
+ showPanel,
307
+ hidePanel: hideOptionPanel
308
+ };
309
+ Object.assign($xePulldown, pulldownMethods);
310
+ const renderDefaultPanel = (options) => {
311
+ const optionSlot = slots.option;
312
+ return (0, import_vue.h)(
313
+ "div",
314
+ {
315
+ class: "vxe-pulldown--panel-list"
316
+ },
317
+ options ? options.map((item) => {
318
+ return (0, import_vue.h)(
319
+ "div",
320
+ {
321
+ class: "vxe-pulldown--panel-item",
322
+ onClick(evnt) {
323
+ handleOptionEvent(evnt, item);
324
+ }
325
+ },
326
+ optionSlot ? optionSlot({ $pulldown: $xePulldown, option: item }) : `${item.label || ""}`
327
+ );
328
+ }) : []
329
+ );
330
+ };
331
+ const renderVN = () => {
332
+ const { className, options, showPopupShadow, destroyOnClose, disabled } = props;
333
+ const { initialized, isActivated, isAniVisible, visiblePanel, panelStyle, panelPlacement } = reactData;
334
+ const btnTransfer = computeBtnTransfer.value;
335
+ const vSize = computeSize.value;
336
+ const popupOpts = computePopupOpts.value;
337
+ const defaultSlot = slots.default;
338
+ const headerSlot = slots.header;
339
+ const footerSlot = slots.footer;
340
+ const dropdownSlot = slots.dropdown;
341
+ const ppClassName = popupOpts.className || props.popupClassName;
342
+ return (0, import_vue.h)(
343
+ "div",
344
+ {
345
+ ref: refElem,
346
+ class: [
347
+ "vxe-pulldown",
348
+ className ? import_xe_utils.default.isFunction(className) ? className({ $pulldown: $xePulldown }) : className : "",
349
+ {
350
+ [`size--${vSize}`]: vSize,
351
+ "is--visible": visiblePanel,
352
+ "is--disabled": disabled,
353
+ "is--active": isActivated
322
354
  }
323
- },
324
- optionSlot ? optionSlot({ $pulldown: $xePulldown, option: item }) : `${item.label || ""}`
325
- );
326
- }) : []
327
- );
328
- };
329
- const renderVN = () => {
330
- const { className, options, showPopupShadow, destroyOnClose, disabled } = props;
331
- const { initialized, isActivated, isAniVisible, visiblePanel, panelStyle, panelPlacement } = reactData;
332
- const btnTransfer = computeBtnTransfer.value;
333
- const vSize = computeSize.value;
334
- const popupOpts = computePopupOpts.value;
335
- const defaultSlot = slots.default;
336
- const headerSlot = slots.header;
337
- const footerSlot = slots.footer;
338
- const dropdownSlot = slots.dropdown;
339
- const ppClassName = popupOpts.className || props.popupClassName;
340
- return (0, import_vue.h)(
341
- "div",
342
- {
343
- ref: refElem,
344
- class: [
345
- "vxe-pulldown",
346
- className ? import_xe_utils.default.isFunction(className) ? className({ $pulldown: $xePulldown }) : className : "",
347
- {
348
- [`size--${vSize}`]: vSize,
349
- "is--visible": visiblePanel,
350
- "is--disabled": disabled,
351
- "is--active": isActivated
352
- }
353
- ]
354
- },
355
- [
356
- (0, import_vue.h)(
357
- "div",
358
- {
359
- ref: refPulldownContent,
360
- class: "vxe-pulldown--content",
361
- onClick: clickTargetEvent
362
- },
363
- defaultSlot ? defaultSlot({ options, $pulldown: $xePulldown }) : []
364
- ),
365
- (0, import_vue.h)(
366
- import_vue.Teleport,
367
- {
368
- to: "body",
369
- disabled: btnTransfer ? !initialized : true
370
- },
371
- [
372
- (0, import_vue.h)(
373
- "div",
374
- {
375
- ref: refPulldownPanel,
376
- class: [
377
- "vxe-table--ignore-clear vxe-pulldown--panel",
378
- ppClassName ? import_xe_utils.default.isFunction(ppClassName) ? ppClassName({ $pulldown: $xePulldown }) : ppClassName : "",
379
- {
380
- [`size--${vSize}`]: vSize,
381
- "is--transfer": btnTransfer,
382
- "ani--leave": isAniVisible,
383
- "ani--enter": visiblePanel
384
- }
385
- ],
386
- placement: panelPlacement,
387
- style: panelStyle
388
- },
389
- [
390
- (0, import_vue.h)(
391
- "div",
392
- {
393
- class: [
394
- "vxe-pulldown--panel-wrapper",
395
- {
396
- "is--shadow": showPopupShadow
397
- }
398
- ]
399
- },
400
- initialized && (destroyOnClose ? visiblePanel || isAniVisible : true) ? [
401
- headerSlot ? (0, import_vue.h)(
402
- "div",
403
- {
404
- class: "vxe-pulldown--panel-header"
405
- },
406
- headerSlot({ options, $pulldown: $xePulldown })
407
- ) : renderEmptyElement($xePulldown),
408
- (0, import_vue.h)(
409
- "div",
410
- {
411
- class: "vxe-pulldown--panel-body"
412
- },
413
- dropdownSlot ? dropdownSlot({ options, $pulldown: $xePulldown }) : [renderDefaultPanel(options)]
414
- ),
415
- footerSlot ? (0, import_vue.h)(
416
- "div",
417
- {
418
- class: "vxe-pulldown--panel-footer"
419
- },
420
- footerSlot({ options, $pulldown: $xePulldown })
421
- ) : renderEmptyElement($xePulldown)
422
- ] : []
423
- )
424
- ]
425
- )
426
355
  ]
427
- )
428
- ]
356
+ },
357
+ [
358
+ (0, import_vue.h)(
359
+ "div",
360
+ {
361
+ ref: refPulldownContent,
362
+ class: "vxe-pulldown--content",
363
+ onClick: clickTargetEvent
364
+ },
365
+ defaultSlot ? defaultSlot({ options, $pulldown: $xePulldown }) : []
366
+ ),
367
+ (0, import_vue.h)(
368
+ import_vue.Teleport,
369
+ {
370
+ to: "body",
371
+ disabled: btnTransfer ? !initialized : true
372
+ },
373
+ [
374
+ (0, import_vue.h)(
375
+ "div",
376
+ {
377
+ ref: refPulldownPanel,
378
+ class: [
379
+ "vxe-table--ignore-clear vxe-pulldown--panel",
380
+ ppClassName ? import_xe_utils.default.isFunction(ppClassName) ? ppClassName({ $pulldown: $xePulldown }) : ppClassName : "",
381
+ {
382
+ [`size--${vSize}`]: vSize,
383
+ "is--transfer": btnTransfer,
384
+ "ani--leave": isAniVisible,
385
+ "ani--enter": visiblePanel
386
+ }
387
+ ],
388
+ placement: panelPlacement,
389
+ style: panelStyle
390
+ },
391
+ [
392
+ (0, import_vue.h)(
393
+ "div",
394
+ {
395
+ class: [
396
+ "vxe-pulldown--panel-wrapper",
397
+ {
398
+ "is--shadow": showPopupShadow
399
+ }
400
+ ]
401
+ },
402
+ initialized && (destroyOnClose ? visiblePanel || isAniVisible : true) ? [
403
+ headerSlot ? (0, import_vue.h)(
404
+ "div",
405
+ {
406
+ class: "vxe-pulldown--panel-header"
407
+ },
408
+ headerSlot({ options, $pulldown: $xePulldown })
409
+ ) : renderEmptyElement($xePulldown),
410
+ (0, import_vue.h)(
411
+ "div",
412
+ {
413
+ class: "vxe-pulldown--panel-body"
414
+ },
415
+ dropdownSlot ? dropdownSlot({ options, $pulldown: $xePulldown }) : [renderDefaultPanel(options)]
416
+ ),
417
+ footerSlot ? (0, import_vue.h)(
418
+ "div",
419
+ {
420
+ class: "vxe-pulldown--panel-footer"
421
+ },
422
+ footerSlot({ options, $pulldown: $xePulldown })
423
+ ) : renderEmptyElement($xePulldown)
424
+ ] : []
425
+ )
426
+ ]
427
+ )
428
+ ]
429
+ )
430
+ ]
431
+ );
432
+ };
433
+ (0, import_vue.watch)(
434
+ () => props.modelValue,
435
+ (value) => {
436
+ reactData.isActivated = !!value;
437
+ if (value) {
438
+ showPanel();
439
+ } else {
440
+ hideOptionPanel();
441
+ }
442
+ }
429
443
  );
430
- };
431
- (0, import_vue.watch)(
432
- () => props.modelValue,
433
- (value) => {
434
- reactData.isActivated = !!value;
435
- if (value) {
444
+ (0, import_vue.nextTick)(() => {
445
+ if (props.modelValue) {
436
446
  showPanel();
437
- } else {
438
- hideOptionPanel();
439
447
  }
440
- }
441
- );
442
- (0, import_vue.nextTick)(() => {
443
- if (props.modelValue) {
444
- showPanel();
445
- }
446
- globalEvents.on($xePulldown, "mousedown", handleGlobalMousedownEvent);
447
- globalEvents.on($xePulldown, "blur", handleGlobalBlurEvent);
448
- globalEvents.on($xePulldown, "resize", handleGlobalResizeEvent);
449
- globalEvents.on($xePulldown, "scroll", handleGlobalScrollEvent);
450
- });
451
- (0, import_vue.onUnmounted)(() => {
452
- globalEvents.off($xePulldown, "mousedown");
453
- globalEvents.off($xePulldown, "blur");
454
- globalEvents.off($xePulldown, "resize");
455
- globalEvents.off($xePulldown, "scroll");
456
- });
457
- $xePulldown.renderVN = renderVN;
458
- return $xePulldown;
459
- },
460
- render() {
461
- return this.renderVN();
462
- }
463
- });
448
+ globalEvents.on($xePulldown, "mousedown", handleGlobalMousedownEvent);
449
+ globalEvents.on($xePulldown, "blur", handleGlobalBlurEvent);
450
+ globalEvents.on($xePulldown, "resize", handleGlobalResizeEvent);
451
+ globalEvents.on($xePulldown, "scroll", handleGlobalScrollEvent);
452
+ });
453
+ (0, import_vue.onUnmounted)(() => {
454
+ globalEvents.off($xePulldown, "mousedown");
455
+ globalEvents.off($xePulldown, "blur");
456
+ globalEvents.off($xePulldown, "resize");
457
+ globalEvents.off($xePulldown, "scroll");
458
+ });
459
+ $xePulldown.renderVN = renderVN;
460
+ return $xePulldown;
461
+ },
462
+ render() {
463
+ return this.renderVN();
464
+ }
465
+ })
466
+ );