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
@@ -23,337 +23,357 @@ function createInternalData() {
23
23
  lastScrollLeft: 0
24
24
  };
25
25
  }
26
- var scrollbar_default = defineVxeComponent({
27
- name: "VxeScrollbar",
28
- props: {
29
- id: [String, Number],
30
- viewId: [String, Number],
31
- theme: {
32
- type: String,
33
- default: () => getConfig().scrollbar.theme
34
- },
35
- width: [String, Number],
36
- height: [String, Number],
37
- minWidth: [String, Number],
38
- minHeight: [String, Number],
39
- maxWidth: [String, Number],
40
- maxHeight: [String, Number],
41
- loading: Boolean,
42
- native: {
43
- type: Boolean,
44
- default: () => getConfig().scrollbar.native
45
- },
46
- fluentOverlay: {
47
- type: Boolean,
48
- default: () => getConfig().scrollbar.fluentOverlay
49
- },
50
- padding: {
51
- type: Boolean,
52
- default: () => getConfig().scrollbar.padding
53
- },
54
- autoHide: {
55
- type: Boolean,
56
- default: () => getConfig().scrollbar.autoHide
57
- },
58
- visible: {
59
- type: Boolean,
60
- default: () => getConfig().scrollbar.visible
61
- },
62
- xConfig: Object,
63
- yConfig: Object,
64
- className: {
65
- type: String,
66
- default: () => getConfig().scrollbar.className
67
- },
68
- viewAttrs: {
69
- type: Object,
70
- default: () => getConfig().scrollbar.viewAttrs
71
- },
72
- viewStyle: {
73
- type: Object,
74
- default: () => getConfig().scrollbar.viewStyle
75
- },
76
- viewClassName: {
77
- type: String,
78
- default: () => getConfig().scrollbar.viewClassName
79
- },
80
- viewInnerClassName: {
81
- type: String,
82
- default: () => getConfig().scrollbar.viewInnerClassName
83
- },
84
- size: {
85
- type: String,
86
- default: () => getConfig().scrollbar.size || getConfig().size
87
- },
88
- /**
89
- * 已废弃
90
- * @deprecated
91
- */
92
- autoResize: {
93
- type: Boolean,
94
- default: () => getConfig().scrollbar.autoResize
95
- },
96
- /**
97
- * 已废弃
98
- * @deprecated
99
- */
100
- syncResize: [Boolean, String, Number]
101
- },
102
- emits: ["scroll", "scroll-boundary"],
103
- setup(props, context) {
104
- const { emit, slots } = context;
105
- const xID = XEUtils.uniqueId();
106
- const refElem = ref();
107
- const refViewElem = ref();
108
- const refViewInnerElem = ref();
109
- const reactData = reactive(createReactData());
110
- const internalData = createInternalData();
111
- const { computeSize } = useFns.useSize(props);
112
- const computeWrapperStyle = computed(() => {
113
- const { width, height, minWidth, minHeight, maxWidth, maxHeight } = props;
114
- const barWidth = computeYWidth.value;
115
- const barHeight = computeXHeight.value;
116
- const stys = {};
117
- if (width) {
118
- stys.width = toCssUnit(width);
119
- }
120
- if (height) {
121
- stys.height = toCssUnit(height);
122
- }
123
- if (minWidth) {
124
- stys.minWidth = toCssUnit(minWidth);
125
- }
126
- if (minHeight) {
127
- stys.minHeight = toCssUnit(minHeight);
128
- }
129
- if (maxWidth) {
130
- stys.maxWidth = toCssUnit(maxWidth);
131
- }
132
- if (maxHeight) {
133
- stys.maxHeight = toCssUnit(maxHeight);
134
- }
135
- if (barWidth || barHeight) {
136
- stys["--vxe-ui-scrollbar-y-width"] = toCssUnit(barWidth || barHeight);
137
- stys["--vxe-ui-scrollbar-x-height"] = toCssUnit(barHeight || barWidth);
138
- }
139
- return stys;
140
- });
141
- const computeXHeight = computed(() => {
142
- const xOpts = computeXOpts.value;
143
- return xOpts.height;
144
- });
145
- const computeYWidth = computed(() => {
146
- const yOpts = computeYOpts.value;
147
- return yOpts.width;
148
- });
149
- const computeXVisible = computed(() => {
150
- const { visible } = props;
151
- const xOpts = computeXOpts.value;
152
- return getDefaultConfig(xOpts.visible, visible);
153
- });
154
- const computeYVisible = computed(() => {
155
- const { visible } = props;
156
- const yOpts = computeYOpts.value;
157
- return getDefaultConfig(yOpts.visible, visible);
158
- });
159
- const computeXAutoHide = computed(() => {
160
- const { autoHide } = props;
161
- const xOpts = computeXOpts.value;
162
- return getDefaultConfig(xOpts.autoHide, autoHide);
163
- });
164
- const computeYAutoHide = computed(() => {
165
- const { autoHide } = props;
166
- const yOpts = computeYOpts.value;
167
- return getDefaultConfig(yOpts.autoHide, autoHide);
168
- });
169
- const computeWrapperClss = computed(() => {
170
- const { native, theme, className, padding, fluentOverlay } = props;
171
- const { yThumbHeight, xThumbWidth } = reactData;
172
- const vSize = computeSize.value;
173
- const xToTop = computeXToTop.value;
174
- const yToLeft = computeYToLeft.value;
175
- const xVisible = computeXVisible.value;
176
- const yVisible = computeYVisible.value;
177
- const xAutoHide = computeXAutoHide.value;
178
- const yAutoHide = computeYAutoHide.value;
179
- return domUtils.buildClass(
180
- [
181
- "vxe-scrollbar",
182
- vSize ? `size--${vSize}` : "",
183
- theme ? `theme--${theme}` : "",
184
- fluentOverlay ? "is--fluent-overlay" : "is--default-mode",
185
- `ov-x--${xVisible === false ? "hidden" : "visible"}`,
186
- `ov-y--${yVisible === false ? "hidden" : "visible"}`,
187
- `sx-pos--${xToTop ? "top" : "bottom"}`,
188
- `sy-pos--${yToLeft ? "left" : "right"}`,
189
- native ? "is--native" : "is--virtual",
190
- className
191
- ],
192
- {
193
- "is--padding": padding,
194
- "ov-x--auto-hide": xAutoHide,
195
- "ov-y--auto-hide": yAutoHide,
196
- "overflow-y": yThumbHeight,
197
- "overflow-x": xThumbWidth
198
- }
199
- );
200
- });
201
- const computeViewClss = computed(() => {
202
- const { viewClassName } = props;
203
- return domUtils.buildClass(["vxe-scrollbar--view", viewClassName]);
204
- });
205
- const computeViewInnerClss = computed(() => {
206
- const { viewInnerClassName } = props;
207
- return domUtils.buildClass(["vxe-scrollbar--view-inner", viewInnerClassName]);
208
- });
209
- const computeXOpts = computed(() => {
210
- return Object.assign({}, getConfig().scrollbar.xConfig, props.xConfig);
211
- });
212
- const computeYOpts = computed(() => {
213
- return Object.assign({}, getConfig().scrollbar.yConfig, props.yConfig);
214
- });
215
- const computeXToTop = computed(() => {
216
- const xOpts = computeXOpts.value;
217
- return xOpts.position === "top";
218
- });
219
- const computeYToLeft = computed(() => {
220
- const yOpts = computeYOpts.value;
221
- return yOpts.position === "left";
222
- });
223
- const refMaps = {
224
- refElem
225
- };
226
- const computeMaps = {};
227
- const $xeScrollbar = {
228
- xID,
229
- props,
230
- context,
231
- reactData,
232
- internalData,
233
- getRefMaps: () => refMaps,
234
- getComputeMaps: () => computeMaps
235
- };
236
- const { refTrackXElem, refTrackYElem, refThumbXElem, refThumbYElem, updateThumbSize, updateThumbOffset, clickTrackXEvent, clickTrackYEvent, pointerdownThumbXEvent, pointermoveThumbXEvent, cleatPointerThumbEvent, pointerdownThumbYEvent, pointermoveThumbYEvent } = useFns.useInitVScrollbar($xeScrollbar);
237
- const dispatchEvent = (type, params, evnt) => {
238
- emit(type, createEvent(evnt, { $scrollbar: $xeScrollbar }, params));
239
- };
240
- const scrollbarMethods = {
241
- dispatchEvent,
242
- getScrollViewElem() {
243
- const viewEl = refViewElem.value;
244
- return viewEl || null;
26
+ var scrollbar_default = (
27
+ /* define-vxe-component start */
28
+ defineVxeComponent({
29
+ name: "VxeScrollbar",
30
+ props: {
31
+ id: [String, Number],
32
+ viewId: [String, Number],
33
+ theme: {
34
+ type: String,
35
+ default: () => getConfig().scrollbar.theme
245
36
  },
246
- getScrollViewInnerElem() {
247
- const viewInnerEl = refViewInnerElem.value;
248
- return viewInnerEl || null;
37
+ width: [String, Number],
38
+ height: [String, Number],
39
+ minWidth: [String, Number],
40
+ minHeight: [String, Number],
41
+ maxWidth: [String, Number],
42
+ maxHeight: [String, Number],
43
+ loading: Boolean,
44
+ native: {
45
+ type: Boolean,
46
+ default: () => getConfig().scrollbar.native
249
47
  },
250
- scrollTo(left, top) {
251
- const viewEl = refViewElem.value;
252
- if (viewEl) {
253
- if (XEUtils.isNumber(left)) {
254
- viewEl.scrollTo(left, top || 0);
255
- } else {
256
- viewEl.scrollTo(left);
257
- }
258
- }
48
+ fluentOverlay: {
49
+ type: Boolean,
50
+ default: () => getConfig().scrollbar.fluentOverlay
259
51
  },
260
- scrollIntoView() {
261
- const viewEl = refViewElem.value;
262
- if (viewEl) {
263
- viewEl.scrollIntoView();
264
- }
52
+ padding: {
53
+ type: Boolean,
54
+ default: () => getConfig().scrollbar.padding
265
55
  },
266
- setScrollTop(top) {
267
- const viewEl = refViewElem.value;
268
- if (viewEl) {
269
- viewEl.scrollTop = top;
270
- }
56
+ autoHide: {
57
+ type: Boolean,
58
+ default: () => getConfig().scrollbar.autoHide
271
59
  },
272
- setScrollLeft(left) {
273
- const viewEl = refViewElem.value;
274
- if (viewEl) {
275
- viewEl.scrollLeft = left;
276
- }
60
+ visible: {
61
+ type: Boolean,
62
+ default: () => getConfig().scrollbar.visible
277
63
  },
278
- getScrollTop() {
279
- const viewEl = refViewElem.value;
280
- if (viewEl) {
281
- return viewEl.scrollTop;
282
- }
283
- return 0;
64
+ xConfig: Object,
65
+ yConfig: Object,
66
+ className: {
67
+ type: String,
68
+ default: () => getConfig().scrollbar.className
284
69
  },
285
- getScrollLeft() {
286
- const viewEl = refViewElem.value;
287
- if (viewEl) {
288
- return viewEl.scrollLeft;
289
- }
290
- return 0;
70
+ viewAttrs: {
71
+ type: Object,
72
+ default: () => getConfig().scrollbar.viewAttrs
291
73
  },
292
- clearScroll() {
293
- const viewEl = refViewElem.value;
294
- if (viewEl) {
295
- viewEl.scrollTop = 0;
296
- viewEl.scrollLeft = 0;
297
- }
74
+ viewStyle: {
75
+ type: Object,
76
+ default: () => getConfig().scrollbar.viewStyle
298
77
  },
299
- recalculate() {
300
- updateThumbSize();
301
- updateThumbOffset();
302
- return nextTick();
303
- }
304
- };
305
- const scrollEvent = (evnt) => {
306
- const { xThumbWidth, yThumbHeight } = reactData;
307
- const { lastScrollTop, lastScrollLeft } = internalData;
308
- const xOpts = computeXOpts.value;
309
- const yOpts = computeYOpts.value;
310
- const viewEl = evnt.currentTarget;
311
- const { scrollTop, scrollLeft, clientWidth, clientHeight, scrollHeight, scrollWidth } = viewEl;
312
- let direction = "";
313
- let isTopBoundary = false;
314
- let isBottomBoundary = false;
315
- let isLeftBoundary = false;
316
- let isRightBoundary = false;
317
- if (lastScrollTop !== scrollTop) {
318
- const yThreshold = XEUtils.toNumber(yOpts.threshold) || 1;
319
- if (lastScrollTop < scrollTop) {
320
- direction = "bottom";
321
- if (yThumbHeight > 0 && scrollTop + clientHeight >= scrollHeight - yThreshold) {
322
- isBottomBoundary = true;
78
+ viewClassName: {
79
+ type: String,
80
+ default: () => getConfig().scrollbar.viewClassName
81
+ },
82
+ viewInnerClassName: {
83
+ type: String,
84
+ default: () => getConfig().scrollbar.viewInnerClassName
85
+ },
86
+ size: {
87
+ type: String,
88
+ default: () => getConfig().scrollbar.size || getConfig().size
89
+ },
90
+ /**
91
+ * 已废弃
92
+ * @deprecated
93
+ */
94
+ autoResize: {
95
+ type: Boolean,
96
+ default: () => getConfig().scrollbar.autoResize
97
+ },
98
+ /**
99
+ * 已废弃
100
+ * @deprecated
101
+ */
102
+ syncResize: [Boolean, String, Number]
103
+ },
104
+ emits: ["scroll", "scroll-boundary"],
105
+ setup(props, context) {
106
+ const { emit, slots } = context;
107
+ const xID = XEUtils.uniqueId();
108
+ const refElem = ref();
109
+ const refViewElem = ref();
110
+ const refViewInnerElem = ref();
111
+ const reactData = reactive(createReactData());
112
+ const internalData = createInternalData();
113
+ const { computeSize } = useFns.useSize(props);
114
+ const computeWrapperStyle = computed(() => {
115
+ const { width, height, minWidth, minHeight, maxWidth, maxHeight } = props;
116
+ const barWidth = computeYWidth.value;
117
+ const barHeight = computeXHeight.value;
118
+ const stys = {};
119
+ if (width) {
120
+ stys.width = toCssUnit(width);
121
+ }
122
+ if (height) {
123
+ stys.height = toCssUnit(height);
124
+ }
125
+ if (minWidth) {
126
+ stys.minWidth = toCssUnit(minWidth);
127
+ }
128
+ if (minHeight) {
129
+ stys.minHeight = toCssUnit(minHeight);
130
+ }
131
+ if (maxWidth) {
132
+ stys.maxWidth = toCssUnit(maxWidth);
133
+ }
134
+ if (maxHeight) {
135
+ stys.maxHeight = toCssUnit(maxHeight);
136
+ }
137
+ if (barWidth || barHeight) {
138
+ stys["--vxe-ui-scrollbar-y-width"] = toCssUnit(barWidth || barHeight);
139
+ stys["--vxe-ui-scrollbar-x-height"] = toCssUnit(barHeight || barWidth);
140
+ }
141
+ return stys;
142
+ });
143
+ const computeXHeight = computed(() => {
144
+ const xOpts = computeXOpts.value;
145
+ return xOpts.height;
146
+ });
147
+ const computeYWidth = computed(() => {
148
+ const yOpts = computeYOpts.value;
149
+ return yOpts.width;
150
+ });
151
+ const computeXVisible = computed(() => {
152
+ const { visible } = props;
153
+ const xOpts = computeXOpts.value;
154
+ return getDefaultConfig(xOpts.visible, visible);
155
+ });
156
+ const computeYVisible = computed(() => {
157
+ const { visible } = props;
158
+ const yOpts = computeYOpts.value;
159
+ return getDefaultConfig(yOpts.visible, visible);
160
+ });
161
+ const computeXAutoHide = computed(() => {
162
+ const { autoHide } = props;
163
+ const xOpts = computeXOpts.value;
164
+ return getDefaultConfig(xOpts.autoHide, autoHide);
165
+ });
166
+ const computeYAutoHide = computed(() => {
167
+ const { autoHide } = props;
168
+ const yOpts = computeYOpts.value;
169
+ return getDefaultConfig(yOpts.autoHide, autoHide);
170
+ });
171
+ const computeWrapperClss = computed(() => {
172
+ const { native, theme, className, padding, fluentOverlay } = props;
173
+ const { yThumbHeight, xThumbWidth } = reactData;
174
+ const vSize = computeSize.value;
175
+ const xToTop = computeXToTop.value;
176
+ const yToLeft = computeYToLeft.value;
177
+ const xVisible = computeXVisible.value;
178
+ const yVisible = computeYVisible.value;
179
+ const xAutoHide = computeXAutoHide.value;
180
+ const yAutoHide = computeYAutoHide.value;
181
+ return domUtils.buildClass(
182
+ [
183
+ "vxe-scrollbar",
184
+ vSize ? `size--${vSize}` : "",
185
+ theme ? `theme--${theme}` : "",
186
+ fluentOverlay ? "is--fluent-overlay" : "is--default-mode",
187
+ `ov-x--${xVisible === false ? "hidden" : "visible"}`,
188
+ `ov-y--${yVisible === false ? "hidden" : "visible"}`,
189
+ `sx-pos--${xToTop ? "top" : "bottom"}`,
190
+ `sy-pos--${yToLeft ? "left" : "right"}`,
191
+ native ? "is--native" : "is--virtual",
192
+ className
193
+ ],
194
+ {
195
+ "is--padding": padding,
196
+ "ov-x--auto-hide": xAutoHide,
197
+ "ov-y--auto-hide": yAutoHide,
198
+ "overflow-y": yThumbHeight,
199
+ "overflow-x": xThumbWidth
200
+ }
201
+ );
202
+ });
203
+ const computeViewClss = computed(() => {
204
+ const { viewClassName } = props;
205
+ return domUtils.buildClass(["vxe-scrollbar--view", viewClassName]);
206
+ });
207
+ const computeViewInnerClss = computed(() => {
208
+ const { viewInnerClassName } = props;
209
+ return domUtils.buildClass(["vxe-scrollbar--view-inner", viewInnerClassName]);
210
+ });
211
+ const computeXOpts = computed(() => {
212
+ return Object.assign({}, getConfig().scrollbar.xConfig, props.xConfig);
213
+ });
214
+ const computeYOpts = computed(() => {
215
+ return Object.assign({}, getConfig().scrollbar.yConfig, props.yConfig);
216
+ });
217
+ const computeXToTop = computed(() => {
218
+ const xOpts = computeXOpts.value;
219
+ return xOpts.position === "top";
220
+ });
221
+ const computeYToLeft = computed(() => {
222
+ const yOpts = computeYOpts.value;
223
+ return yOpts.position === "left";
224
+ });
225
+ const refMaps = {
226
+ refElem
227
+ };
228
+ const computeMaps = {};
229
+ const $xeScrollbar = {
230
+ xID,
231
+ props,
232
+ context,
233
+ reactData,
234
+ internalData,
235
+ getRefMaps: () => refMaps,
236
+ getComputeMaps: () => computeMaps
237
+ };
238
+ const { refTrackXElem, refTrackYElem, refThumbXElem, refThumbYElem, updateThumbSize, updateThumbOffset, clickTrackXEvent, clickTrackYEvent, pointerdownThumbXEvent, pointermoveThumbXEvent, cleatPointerThumbEvent, pointerdownThumbYEvent, pointermoveThumbYEvent } = useFns.useInitVScrollbar($xeScrollbar);
239
+ const dispatchEvent = (type, params, evnt) => {
240
+ emit(type, createEvent(evnt, { $scrollbar: $xeScrollbar }, params));
241
+ };
242
+ const scrollbarMethods = {
243
+ dispatchEvent,
244
+ getScrollViewElem() {
245
+ const viewEl = refViewElem.value;
246
+ return viewEl || null;
247
+ },
248
+ getScrollViewInnerElem() {
249
+ const viewInnerEl = refViewInnerElem.value;
250
+ return viewInnerEl || null;
251
+ },
252
+ scrollTo(left, top) {
253
+ const viewEl = refViewElem.value;
254
+ if (viewEl) {
255
+ if (XEUtils.isNumber(left)) {
256
+ viewEl.scrollTo(left, top || 0);
257
+ } else {
258
+ viewEl.scrollTo(left);
259
+ }
323
260
  }
324
- } else {
325
- direction = "top";
326
- if (yThumbHeight > 0 && scrollTop <= yThreshold) {
327
- isTopBoundary = true;
261
+ },
262
+ scrollIntoView() {
263
+ const viewEl = refViewElem.value;
264
+ if (viewEl) {
265
+ viewEl.scrollIntoView();
328
266
  }
267
+ },
268
+ setScrollTop(top) {
269
+ const viewEl = refViewElem.value;
270
+ if (viewEl) {
271
+ viewEl.scrollTop = top;
272
+ }
273
+ },
274
+ setScrollLeft(left) {
275
+ const viewEl = refViewElem.value;
276
+ if (viewEl) {
277
+ viewEl.scrollLeft = left;
278
+ }
279
+ },
280
+ getScrollTop() {
281
+ const viewEl = refViewElem.value;
282
+ if (viewEl) {
283
+ return viewEl.scrollTop;
284
+ }
285
+ return 0;
286
+ },
287
+ getScrollLeft() {
288
+ const viewEl = refViewElem.value;
289
+ if (viewEl) {
290
+ return viewEl.scrollLeft;
291
+ }
292
+ return 0;
293
+ },
294
+ clearScroll() {
295
+ const viewEl = refViewElem.value;
296
+ if (viewEl) {
297
+ viewEl.scrollTop = 0;
298
+ viewEl.scrollLeft = 0;
299
+ }
300
+ },
301
+ recalculate() {
302
+ updateThumbSize();
303
+ updateThumbOffset();
304
+ return nextTick();
329
305
  }
330
- }
331
- if (lastScrollLeft !== scrollLeft) {
332
- const xThreshold = XEUtils.toNumber(xOpts.threshold) || 1;
333
- if (lastScrollLeft < scrollLeft) {
334
- direction = "right";
335
- if (xThumbWidth > 0 && scrollLeft + clientWidth >= scrollWidth - xThreshold) {
336
- isRightBoundary = true;
306
+ };
307
+ const scrollEvent = (evnt) => {
308
+ const { xThumbWidth, yThumbHeight } = reactData;
309
+ const { lastScrollTop, lastScrollLeft } = internalData;
310
+ const xOpts = computeXOpts.value;
311
+ const yOpts = computeYOpts.value;
312
+ const viewEl = evnt.currentTarget;
313
+ const { scrollTop, scrollLeft, clientWidth, clientHeight, scrollHeight, scrollWidth } = viewEl;
314
+ let direction = "";
315
+ let isTopBoundary = false;
316
+ let isBottomBoundary = false;
317
+ let isLeftBoundary = false;
318
+ let isRightBoundary = false;
319
+ if (lastScrollTop !== scrollTop) {
320
+ const yThreshold = XEUtils.toNumber(yOpts.threshold) || 1;
321
+ if (lastScrollTop < scrollTop) {
322
+ direction = "bottom";
323
+ if (yThumbHeight > 0 && scrollTop + clientHeight >= scrollHeight - yThreshold) {
324
+ isBottomBoundary = true;
325
+ }
326
+ } else {
327
+ direction = "top";
328
+ if (yThumbHeight > 0 && scrollTop <= yThreshold) {
329
+ isTopBoundary = true;
330
+ }
337
331
  }
338
- } else {
339
- direction = "left";
340
- if (xThumbWidth > 0 && scrollLeft <= xThreshold) {
341
- isLeftBoundary = true;
332
+ }
333
+ if (lastScrollLeft !== scrollLeft) {
334
+ const xThreshold = XEUtils.toNumber(xOpts.threshold) || 1;
335
+ if (lastScrollLeft < scrollLeft) {
336
+ direction = "right";
337
+ if (xThumbWidth > 0 && scrollLeft + clientWidth >= scrollWidth - xThreshold) {
338
+ isRightBoundary = true;
339
+ }
340
+ } else {
341
+ direction = "left";
342
+ if (xThumbWidth > 0 && scrollLeft <= xThreshold) {
343
+ isLeftBoundary = true;
344
+ }
342
345
  }
343
346
  }
344
- }
345
- updateThumbOffset();
346
- internalData.lastScrollTop = scrollTop;
347
- internalData.lastScrollLeft = scrollLeft;
348
- if (isBottomBoundary || isTopBoundary || isRightBoundary || isLeftBoundary) {
347
+ updateThumbOffset();
348
+ internalData.lastScrollTop = scrollTop;
349
+ internalData.lastScrollLeft = scrollLeft;
350
+ if (isBottomBoundary || isTopBoundary || isRightBoundary || isLeftBoundary) {
351
+ dispatchEvent(
352
+ "scroll-boundary",
353
+ {
354
+ direction,
355
+ isTop: isTopBoundary,
356
+ isBottom: isBottomBoundary,
357
+ isLeft: isLeftBoundary,
358
+ isRight: isRightBoundary,
359
+ scrollTop,
360
+ scrollLeft,
361
+ clientWidth,
362
+ clientHeight,
363
+ scrollHeight,
364
+ scrollWidth
365
+ },
366
+ evnt
367
+ );
368
+ }
349
369
  dispatchEvent(
350
- "scroll-boundary",
370
+ "scroll",
351
371
  {
352
372
  direction,
353
- isTop: isTopBoundary,
354
- isBottom: isBottomBoundary,
355
- isLeft: isLeftBoundary,
356
- isRight: isRightBoundary,
373
+ isTop: yThumbHeight > 0 && scrollTop <= 0,
374
+ isBottom: yThumbHeight > 0 && scrollTop + clientHeight >= scrollHeight,
375
+ isLeft: xThumbWidth > 0 && scrollLeft <= 0,
376
+ isRight: xThumbWidth > 0 && scrollLeft + clientWidth >= scrollWidth,
357
377
  scrollTop,
358
378
  scrollLeft,
359
379
  clientWidth,
@@ -363,219 +383,202 @@ var scrollbar_default = defineVxeComponent({
363
383
  },
364
384
  evnt
365
385
  );
366
- }
367
- dispatchEvent(
368
- "scroll",
369
- {
370
- direction,
371
- isTop: yThumbHeight > 0 && scrollTop <= 0,
372
- isBottom: yThumbHeight > 0 && scrollTop + clientHeight >= scrollHeight,
373
- isLeft: xThumbWidth > 0 && scrollLeft <= 0,
374
- isRight: xThumbWidth > 0 && scrollLeft + clientWidth >= scrollWidth,
375
- scrollTop,
376
- scrollLeft,
377
- clientWidth,
378
- clientHeight,
379
- scrollHeight,
380
- scrollWidth
381
- },
382
- evnt
386
+ };
387
+ const scrollbarPrivateMethods = {};
388
+ Object.assign($xeScrollbar, scrollbarMethods, scrollbarPrivateMethods);
389
+ const renderVN = () => {
390
+ const { id, native, loading, viewId, viewAttrs, viewStyle } = props;
391
+ const wrapperStyle = computeWrapperStyle.value;
392
+ const wrapperClss = computeWrapperClss.value;
393
+ const viewClss = computeViewClss.value;
394
+ const viewInnerClss = computeViewInnerClss.value;
395
+ const xVisible = computeXVisible.value;
396
+ const yVisible = computeYVisible.value;
397
+ const defaultSlot = slots.default;
398
+ return h(
399
+ "div",
400
+ {
401
+ ref: refElem,
402
+ id: id || null,
403
+ class: wrapperClss,
404
+ style: wrapperStyle
405
+ },
406
+ [
407
+ h(
408
+ "div",
409
+ {
410
+ ref: refViewElem,
411
+ class: viewClss,
412
+ onScroll: scrollEvent,
413
+ id: viewId || null,
414
+ style: viewStyle,
415
+ ...viewAttrs
416
+ },
417
+ [
418
+ h(
419
+ "div",
420
+ {
421
+ key: "vi",
422
+ ref: refViewInnerElem,
423
+ class: viewInnerClss
424
+ },
425
+ defaultSlot ? defaultSlot({}) : []
426
+ )
427
+ ]
428
+ ),
429
+ native || xVisible === false ? renderEmptyElement($xeScrollbar) : h(
430
+ "div",
431
+ {
432
+ ref: refTrackXElem,
433
+ class: "vxe-scrollbar--track-x",
434
+ onClick: clickTrackXEvent
435
+ },
436
+ [
437
+ h("div", {
438
+ ref: refThumbXElem,
439
+ class: "vxe-scrollbar--thumb-x",
440
+ onPointerdown: pointerdownThumbXEvent,
441
+ onPointermove: pointermoveThumbXEvent,
442
+ onPointerup: cleatPointerThumbEvent,
443
+ onPointercancel: cleatPointerThumbEvent,
444
+ onLostpointercapture: cleatPointerThumbEvent
445
+ })
446
+ ]
447
+ ),
448
+ native || yVisible === false ? renderEmptyElement($xeScrollbar) : h(
449
+ "div",
450
+ {
451
+ ref: refTrackYElem,
452
+ class: "vxe-scrollbar--track-y",
453
+ onClick: clickTrackYEvent
454
+ },
455
+ [
456
+ h("div", {
457
+ ref: refThumbYElem,
458
+ class: "vxe-scrollbar--thumb-y",
459
+ onPointerdown: pointerdownThumbYEvent,
460
+ onPointermove: pointermoveThumbYEvent,
461
+ onPointerup: cleatPointerThumbEvent,
462
+ onPointercancel: cleatPointerThumbEvent,
463
+ onLostpointercapture: cleatPointerThumbEvent
464
+ })
465
+ ]
466
+ ),
467
+ h(VxeLoadingComponent, {
468
+ class: "vxe-scrollbar--loading",
469
+ modelValue: loading
470
+ })
471
+ ]
472
+ );
473
+ };
474
+ const reFlag = ref(0);
475
+ watch(
476
+ () => props.height,
477
+ () => {
478
+ reFlag.value++;
479
+ }
383
480
  );
384
- };
385
- const scrollbarPrivateMethods = {};
386
- Object.assign($xeScrollbar, scrollbarMethods, scrollbarPrivateMethods);
387
- const renderVN = () => {
388
- const { id, native, loading, viewId, viewAttrs, viewStyle } = props;
389
- const wrapperStyle = computeWrapperStyle.value;
390
- const wrapperClss = computeWrapperClss.value;
391
- const viewClss = computeViewClss.value;
392
- const viewInnerClss = computeViewInnerClss.value;
393
- const xVisible = computeXVisible.value;
394
- const yVisible = computeYVisible.value;
395
- const defaultSlot = slots.default;
396
- return h(
397
- "div",
398
- {
399
- ref: refElem,
400
- id: id || null,
401
- class: wrapperClss,
402
- style: wrapperStyle
403
- },
404
- [
405
- h(
406
- "div",
407
- {
408
- ref: refViewElem,
409
- class: viewClss,
410
- onScroll: scrollEvent,
411
- id: viewId || null,
412
- style: viewStyle,
413
- ...viewAttrs
414
- },
415
- [
416
- h(
417
- "div",
418
- {
419
- key: "vi",
420
- ref: refViewInnerElem,
421
- class: viewInnerClss
422
- },
423
- defaultSlot ? defaultSlot({}) : []
424
- )
425
- ]
426
- ),
427
- native || xVisible === false ? renderEmptyElement($xeScrollbar) : h(
428
- "div",
429
- {
430
- ref: refTrackXElem,
431
- class: "vxe-scrollbar--track-x",
432
- onClick: clickTrackXEvent
433
- },
434
- [
435
- h("div", {
436
- ref: refThumbXElem,
437
- class: "vxe-scrollbar--thumb-x",
438
- onPointerdown: pointerdownThumbXEvent,
439
- onPointermove: pointermoveThumbXEvent,
440
- onPointerup: cleatPointerThumbEvent,
441
- onPointercancel: cleatPointerThumbEvent,
442
- onLostpointercapture: cleatPointerThumbEvent
443
- })
444
- ]
445
- ),
446
- native || yVisible === false ? renderEmptyElement($xeScrollbar) : h(
447
- "div",
448
- {
449
- ref: refTrackYElem,
450
- class: "vxe-scrollbar--track-y",
451
- onClick: clickTrackYEvent
452
- },
453
- [
454
- h("div", {
455
- ref: refThumbYElem,
456
- class: "vxe-scrollbar--thumb-y",
457
- onPointerdown: pointerdownThumbYEvent,
458
- onPointermove: pointermoveThumbYEvent,
459
- onPointerup: cleatPointerThumbEvent,
460
- onPointercancel: cleatPointerThumbEvent,
461
- onLostpointercapture: cleatPointerThumbEvent
462
- })
463
- ]
464
- ),
465
- h(VxeLoadingComponent, {
466
- class: "vxe-scrollbar--loading",
467
- modelValue: loading
468
- })
469
- ]
481
+ watch(
482
+ () => props.width,
483
+ () => {
484
+ reFlag.value++;
485
+ }
470
486
  );
471
- };
472
- const reFlag = ref(0);
473
- watch(
474
- () => props.height,
475
- () => {
476
- reFlag.value++;
477
- }
478
- );
479
- watch(
480
- () => props.width,
481
- () => {
482
- reFlag.value++;
483
- }
484
- );
485
- watch(
486
- () => props.minHeight,
487
- () => {
488
- reFlag.value++;
489
- }
490
- );
491
- watch(
492
- () => props.minWidth,
493
- () => {
494
- reFlag.value++;
495
- }
496
- );
497
- watch(
498
- () => props.maxHeight,
499
- () => {
500
- reFlag.value++;
501
- }
502
- );
503
- watch(
504
- () => props.maxWidth,
505
- () => {
506
- reFlag.value++;
507
- }
508
- );
509
- watch(
510
- () => props.native,
511
- () => {
512
- reFlag.value++;
513
- }
514
- );
515
- watch(
516
- () => props.syncResize,
517
- () => {
518
- reFlag.value++;
519
- }
520
- );
521
- watch(computeYWidth, () => {
522
- reFlag.value++;
523
- });
524
- watch(computeXHeight, () => {
525
- reFlag.value++;
526
- });
527
- watch(computeXVisible, () => {
528
- nextTick(() => {
487
+ watch(
488
+ () => props.minHeight,
489
+ () => {
490
+ reFlag.value++;
491
+ }
492
+ );
493
+ watch(
494
+ () => props.minWidth,
495
+ () => {
496
+ reFlag.value++;
497
+ }
498
+ );
499
+ watch(
500
+ () => props.maxHeight,
501
+ () => {
502
+ reFlag.value++;
503
+ }
504
+ );
505
+ watch(
506
+ () => props.maxWidth,
507
+ () => {
508
+ reFlag.value++;
509
+ }
510
+ );
511
+ watch(
512
+ () => props.native,
513
+ () => {
514
+ reFlag.value++;
515
+ }
516
+ );
517
+ watch(
518
+ () => props.syncResize,
519
+ () => {
520
+ reFlag.value++;
521
+ }
522
+ );
523
+ watch(computeYWidth, () => {
529
524
  reFlag.value++;
530
525
  });
531
- });
532
- watch(computeYVisible, () => {
533
- nextTick(() => {
526
+ watch(computeXHeight, () => {
534
527
  reFlag.value++;
535
528
  });
536
- });
537
- watch(reFlag, () => {
538
- $xeScrollbar.recalculate().then(() => {
539
- $xeScrollbar.recalculate();
529
+ watch(computeXVisible, () => {
530
+ nextTick(() => {
531
+ reFlag.value++;
532
+ });
540
533
  });
541
- });
542
- onMounted(() => {
543
- const { autoResize } = props;
544
- const viewEl = refViewElem.value;
545
- const viewInnerEl = refViewInnerElem.value;
546
- if (autoResize) {
547
- const scrollObserver = globalResize.create(() => {
548
- if (props.autoResize) {
549
- reFlag.value++;
550
- }
534
+ watch(computeYVisible, () => {
535
+ nextTick(() => {
536
+ reFlag.value++;
551
537
  });
552
- if (viewEl) {
553
- scrollObserver.observe(viewEl);
554
- }
555
- if (viewInnerEl) {
556
- scrollObserver.observe(viewInnerEl);
538
+ });
539
+ watch(reFlag, () => {
540
+ $xeScrollbar.recalculate().then(() => {
541
+ $xeScrollbar.recalculate();
542
+ });
543
+ });
544
+ onMounted(() => {
545
+ const { autoResize } = props;
546
+ const viewEl = refViewElem.value;
547
+ const viewInnerEl = refViewInnerElem.value;
548
+ if (autoResize) {
549
+ const scrollObserver = globalResize.create(() => {
550
+ if (props.autoResize) {
551
+ reFlag.value++;
552
+ }
553
+ });
554
+ if (viewEl) {
555
+ scrollObserver.observe(viewEl);
556
+ }
557
+ if (viewInnerEl) {
558
+ scrollObserver.observe(viewInnerEl);
559
+ }
560
+ internalData.scrollObserver = scrollObserver;
557
561
  }
558
- internalData.scrollObserver = scrollObserver;
559
- }
560
- reFlag.value++;
561
- globalEvents.on($xeScrollbar, "resize", () => {
562
562
  reFlag.value++;
563
+ globalEvents.on($xeScrollbar, "resize", () => {
564
+ reFlag.value++;
565
+ });
566
+ });
567
+ onBeforeUnmount(() => {
568
+ const { scrollObserver } = internalData;
569
+ if (scrollObserver) {
570
+ scrollObserver.disconnect();
571
+ }
572
+ globalEvents.off($xeScrollbar, "resize");
563
573
  });
564
- });
565
- onBeforeUnmount(() => {
566
- const { scrollObserver } = internalData;
567
- if (scrollObserver) {
568
- scrollObserver.disconnect();
569
- }
570
- globalEvents.off($xeScrollbar, "resize");
571
- });
572
- $xeScrollbar.renderVN = renderVN;
573
- return $xeScrollbar;
574
- },
575
- render() {
576
- return this.renderVN();
577
- }
578
- });
574
+ $xeScrollbar.renderVN = renderVN;
575
+ return $xeScrollbar;
576
+ },
577
+ render() {
578
+ return this.renderVN();
579
+ }
580
+ })
581
+ );
579
582
  export {
580
583
  scrollbar_default as default
581
584
  };