@opentiny/vue-renderless 3.11.7 → 3.12.0

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 (340) hide show
  1. package/anchor/index.js +13 -6
  2. package/anchor/vue.js +1 -1
  3. package/breadcrumb/index.js +6 -1
  4. package/breadcrumb-item/index.js +8 -1
  5. package/calendar-bar/index.js +295 -68
  6. package/calendar-bar/vue.js +82 -8
  7. package/calendar-view/index.js +2 -2
  8. package/card/index.js +4 -4
  9. package/card/vue.js +2 -3
  10. package/card-group/vue.js +3 -7
  11. package/carousel/index.js +26 -27
  12. package/carousel/vue.js +41 -46
  13. package/carousel-item/index.js +9 -6
  14. package/carousel-item/vue.js +4 -4
  15. package/cascader-mobile/index.js +5 -1
  16. package/cascader-mobile/vue.js +2 -1
  17. package/cascader-panel/index.js +6 -2
  18. package/cascader-view/index.js +363 -0
  19. package/cascader-view/vue.js +130 -0
  20. package/chart-core/deps/constants.js +27 -0
  21. package/chart-core/deps/numerify.js +27 -28
  22. package/chart-core/index.js +122 -31
  23. package/chart-core/vue.js +12 -8
  24. package/chart-radar/index.js +2 -2
  25. package/checkbox-button/vue.js +8 -1
  26. package/checkbox-group/vue.js +4 -5
  27. package/col/index.js +5 -9
  28. package/col/vue.js +4 -3
  29. package/collapse-item/index.js +14 -2
  30. package/color-picker/index.js +24 -34
  31. package/color-picker/utils/color.js +7 -1
  32. package/color-picker/vue.js +39 -26
  33. package/color-select-panel/alpha-select/vue.js +5 -8
  34. package/color-select-panel/hue-select/index.js +4 -2
  35. package/color-select-panel/hue-select/vue.js +11 -10
  36. package/color-select-panel/index.js +29 -17
  37. package/color-select-panel/utils/color.js +5 -0
  38. package/color-select-panel/vue.js +16 -7
  39. package/column-list-item/index.js +19 -5
  40. package/column-list-item/vue.js +16 -14
  41. package/common/bigInt.js +1 -1
  42. package/common/deps/dom.js +37 -5
  43. package/common/deps/repeat-click.js +3 -2
  44. package/common/deps/touch-emulator.js +95 -0
  45. package/common/deps/touch.js +12 -11
  46. package/common/deps/useEventListener.js +47 -0
  47. package/common/deps/useTouch.js +68 -0
  48. package/common/deps/vue-popper.js +3 -4
  49. package/common/index.js +1 -1
  50. package/common/runtime.js +1 -1
  51. package/common/string.js +20 -9
  52. package/date-picker/index.js +24 -4
  53. package/date-picker-mobile/index.js +5 -1
  54. package/file-upload/index.js +148 -50
  55. package/file-upload/vue.js +24 -6
  56. package/filter/index.js +2 -1
  57. package/filter/vue.js +1 -1
  58. package/form-item/index.js +24 -21
  59. package/form-item/vue.js +14 -12
  60. package/grid/plugins/export.js +0 -8
  61. package/grid/utils/common.js +13 -16
  62. package/image-viewer/index.js +1 -1
  63. package/ip-address/index.js +6 -3
  64. package/menu/index.js +127 -0
  65. package/menu/vue.js +90 -0
  66. package/menu-node/index.js +12 -0
  67. package/menu-node/vue.js +42 -0
  68. package/modal/index.js +6 -0
  69. package/modal/vue.js +3 -1
  70. package/numeric/index.js +18 -2
  71. package/numeric/vue.js +11 -7
  72. package/package.json +1 -1
  73. package/popconfirm/index.js +15 -6
  74. package/popconfirm/vue.js +5 -4
  75. package/pull-refresh-mobile-first/index.js +243 -0
  76. package/pull-refresh-mobile-first/vue.js +116 -0
  77. package/qr-code/index.js +54 -0
  78. package/qr-code/vue.js +31 -0
  79. package/radio/index.js +9 -7
  80. package/radio/vue.js +4 -4
  81. package/radio-button/index.js +2 -2
  82. package/radio-button/vue.js +2 -2
  83. package/radio-group/vue.js +1 -0
  84. package/rich-text-edtior/index.js +18 -38
  85. package/rich-text-edtior/vue.js +52 -63
  86. package/select/index.js +6 -6
  87. package/select/vue.js +1 -1
  88. package/slide-bar/index.js +6 -6
  89. package/slide-bar/vue.js +5 -5
  90. package/slider/index.js +47 -14
  91. package/slider/vue.js +25 -6
  92. package/slider-button/index.js +5 -1
  93. package/slider-button/vue.js +1 -0
  94. package/slider-button-group/index.js +15 -0
  95. package/slider-button-group/vue.js +8 -11
  96. package/standard-list-item/index.js +9 -3
  97. package/standard-list-item/vue.js +3 -2
  98. package/switch/index.js +11 -9
  99. package/switch/vue.js +1 -1
  100. package/tab-bar/index.js +1 -1
  101. package/tab-bar/vue.js +2 -1
  102. package/tab-nav/index.js +31 -31
  103. package/tab-nav/vue.js +13 -12
  104. package/tabs/vue.js +3 -1
  105. package/tabs-mf/index.js +14 -9
  106. package/tabs-mf/vue-bar.js +3 -2
  107. package/tabs-mf/vue-nav-item.js +2 -1
  108. package/tabs-mf/vue-nav.js +18 -2
  109. package/tabs-mf/vue.js +3 -1
  110. package/tag/index.js +1 -1
  111. package/toast/index.js +7 -0
  112. package/toast/vue.js +19 -0
  113. package/transfer/index.js +2 -2
  114. package/transfer/vue.js +1 -1
  115. package/tree-node/index.js +1 -1
  116. package/types/{action-menu.type.d.mts → action-menu.type.d.ts} +3 -3
  117. package/types/{alert.type.d.mts → alert.type.d.ts} +2 -1
  118. package/types/{anchor.type.d.mts → anchor.type.d.ts} +3 -3
  119. package/types/{badge.type.d.mts → badge.type.d.ts} +1 -1
  120. package/types/{breadcrumb-item.type.d.mts → breadcrumb-item.type.d.ts} +1 -1
  121. package/types/{breadcrumb.type.d.mts → breadcrumb.type.d.ts} +1 -1
  122. package/types/{button-group.type.d.mts → button-group.type.d.ts} +1 -1
  123. package/types/{button.type.d.mts → button.type.d.ts} +1 -1
  124. package/types/{cascader-menu.type.d.mts → cascader-menu.type.d.ts} +4 -4
  125. package/types/{cascader-node.type.d.mts → cascader-node.type.d.ts} +4 -4
  126. package/types/{cascader-panel.type.d.mts → cascader-panel.type.d.ts} +6 -6
  127. package/types/{checkbox.type.d.mts → checkbox.type.d.ts} +2 -1
  128. package/types/{collapse-item.type.d.mts → collapse-item.type.d.ts} +1 -1
  129. package/types/{collapse.type.d.mts → collapse.type.d.ts} +1 -1
  130. package/types/{color-picker.type.d.mts → color-picker.type.d.ts} +2 -2
  131. package/types/{color-select-panel.type.d.mts → color-select-panel.type.d.ts} +2 -2
  132. package/types/{date-picker.type.d.mts → date-picker.type.d.ts} +5 -1
  133. package/types/{dialog-box.type.d.mts → dialog-box.type.d.ts} +9 -9
  134. package/types/{dropdown-item.type-77f0c8c5.d.ts → dropdown-item.type-bf83e929.d.ts} +4 -4
  135. package/types/{dropdown-item.type.d.mts → dropdown-item.type.d.ts} +3 -3
  136. package/types/{dropdown-menu.type.d.mts → dropdown-menu.type.d.ts} +3 -3
  137. package/types/{dropdown.type.d.mts → dropdown.type.d.ts} +1 -1
  138. package/types/{file-upload.type.d.mts → file-upload.type.d.ts} +2 -2
  139. package/types/{floatbar.type.d.mts → floatbar.type.d.ts} +7 -7
  140. package/types/{form-item.type.d.mts → form-item.type.d.ts} +2 -2
  141. package/types/{form.type-1e2e9272.d.ts → form.type-d0fd42f3.d.ts} +20 -7
  142. package/types/{form.type.d.mts → form.type.d.ts} +2 -2
  143. package/types/{image.type.d.mts → image.type.d.ts} +1 -1
  144. package/types/{input.type.d.mts → input.type.d.ts} +10 -2
  145. package/types/{link.type.d.mts → link.type.d.ts} +1 -1
  146. package/types/{loading.type.d.mts → loading.type.d.ts} +1 -1
  147. package/types/{milestone.type.d.mts → milestone.type.d.ts} +1 -1
  148. package/types/{modal.type.d.mts → modal.type.d.ts} +18 -19
  149. package/types/{nav-menu.type.d.mts → nav-menu.type.d.ts} +1 -1
  150. package/types/{numeric.type.d.mts → numeric.type.d.ts} +9 -3
  151. package/types/{picker.type.d.mts → picker.type.d.ts} +5 -1
  152. package/types/{popeditor.type.d.mts → popeditor.type.d.ts} +1 -1
  153. package/types/{popover.type.d.mts → popover.type.d.ts} +1 -1
  154. package/types/{progress.type.d.mts → progress.type.d.ts} +1 -1
  155. package/types/{radio-button.type.d.mts → radio-button.type.d.ts} +3 -3
  156. package/types/{radio-group.type.d.mts → radio-group.type.d.ts} +5 -1
  157. package/types/{radio.type.d.mts → radio.type.d.ts} +2 -2
  158. package/types/{search.type.d.mts → search.type.d.ts} +1 -1
  159. package/types/{shared.type.d.mts → shared.type.d.ts} +7 -7
  160. package/types/{slider.type.d.mts → slider.type.d.ts} +1 -1
  161. package/types/{steps.type.d.mts → steps.type.d.ts} +6 -1
  162. package/types/{switch.type.d.mts → switch.type.d.ts} +5 -1
  163. package/types/{tab-bar.type.d.mts → tab-bar.type.d.ts} +3 -2
  164. package/types/{tab-item.type.d.mts → tab-item.type.d.ts} +2 -2
  165. package/types/{tab-nav.type.d.mts → tab-nav.type.d.ts} +13 -12
  166. package/types/{tabs.type.d.mts → tabs.type.d.ts} +6 -4
  167. package/types/{tag.type.d.mts → tag.type.d.ts} +1 -1
  168. package/types/{time-line.type-5f76ecc2.d.ts → time-line.type-d7daa669.d.ts} +1 -1
  169. package/types/{time-line.type.d.mts → time-line.type.d.ts} +2 -2
  170. package/types/{timeline-item.type.d.mts → timeline-item.type.d.ts} +2 -2
  171. package/types/toast.type.d.ts +63 -0
  172. package/types/{tooltip.type.d.mts → tooltip.type.d.ts} +2 -9
  173. package/types/{upload-dragger.type.d.mts → upload-dragger.type.d.ts} +2 -2
  174. package/types/{upload-list.type-b934f279.d.ts → upload-list.type-343e8c11.d.ts} +45 -7
  175. package/types/{upload-list.type.d.mts → upload-list.type.d.ts} +2 -2
  176. package/types/{upload.type.d.mts → upload.type.d.ts} +2 -2
  177. package/types/watermark.type.d.ts +33 -0
  178. package/types/{wizard.type.d.mts → wizard.type.d.ts} +1 -1
  179. package/upload/index.js +1 -1
  180. package/upload-list/index.js +3 -2
  181. package/upload-list/vue.js +12 -2
  182. package/watermark/index.js +202 -0
  183. package/watermark/vue.js +27 -0
  184. package/wizard/index.js +5 -5
  185. package/card-group/index.js +0 -16
  186. package/color-picker/alpha-select/index.js +0 -20
  187. package/color-picker/alpha-select/vue.js +0 -60
  188. package/color-picker/color-select/index.js +0 -69
  189. package/color-picker/color-select/vue.js +0 -57
  190. package/color-picker/utils/use-drag.js +0 -38
  191. /package/types/{action-sheet.type.d.mts → action-sheet.type.d.ts} +0 -0
  192. /package/types/{amount.type.d.mts → amount.type.d.ts} +0 -0
  193. /package/types/{area.type.d.mts → area.type.d.ts} +0 -0
  194. /package/types/{autocomplete.type.d.mts → autocomplete.type.d.ts} +0 -0
  195. /package/types/{autonavi-map.type.d.mts → autonavi-map.type.d.ts} +0 -0
  196. /package/types/{avatar.type.d.mts → avatar.type.d.ts} +0 -0
  197. /package/types/{baidu-map.type.d.mts → baidu-map.type.d.ts} +0 -0
  198. /package/types/{bulletin-board.type.d.mts → bulletin-board.type.d.ts} +0 -0
  199. /package/types/{calendar-bar.type.d.mts → calendar-bar.type.d.ts} +0 -0
  200. /package/types/{calendar.type.d.mts → calendar.type.d.ts} +0 -0
  201. /package/types/{card-group.type.d.mts → card-group.type.d.ts} +0 -0
  202. /package/types/{card-template.type.d.mts → card-template.type.d.ts} +0 -0
  203. /package/types/{card.type.d.mts → card.type.d.ts} +0 -0
  204. /package/types/{carousel-item.type.d.mts → carousel-item.type.d.ts} +0 -0
  205. /package/types/{carousel.type.d.mts → carousel.type.d.ts} +0 -0
  206. /package/types/{cascader-mobile.type.d.mts → cascader-mobile.type.d.ts} +0 -0
  207. /package/types/{cascader-select.type.d.mts → cascader-select.type.d.ts} +0 -0
  208. /package/types/{cascader.type.d.mts → cascader.type.d.ts} +0 -0
  209. /package/types/{cell.type.d.mts → cell.type.d.ts} +0 -0
  210. /package/types/{chart-bar.type.d.mts → chart-bar.type.d.ts} +0 -0
  211. /package/types/{chart-boxplot.type.d.mts → chart-boxplot.type.d.ts} +0 -0
  212. /package/types/{chart-candle.type.d.mts → chart-candle.type.d.ts} +0 -0
  213. /package/types/{chart-core.type.d.mts → chart-core.type.d.ts} +0 -0
  214. /package/types/{chart-funnel.type.d.mts → chart-funnel.type.d.ts} +0 -0
  215. /package/types/{chart-gauge.type.d.mts → chart-gauge.type.d.ts} +0 -0
  216. /package/types/{chart-graph.type.d.mts → chart-graph.type.d.ts} +0 -0
  217. /package/types/{chart-heatmap.type.d.mts → chart-heatmap.type.d.ts} +0 -0
  218. /package/types/{chart-line.type.d.mts → chart-line.type.d.ts} +0 -0
  219. /package/types/{chart-liquidfill.type.d.mts → chart-liquidfill.type.d.ts} +0 -0
  220. /package/types/{chart-map.type.d.mts → chart-map.type.d.ts} +0 -0
  221. /package/types/{chart-pie.type.d.mts → chart-pie.type.d.ts} +0 -0
  222. /package/types/{chart-radar.type.d.mts → chart-radar.type.d.ts} +0 -0
  223. /package/types/{chart-sankey.type.d.mts → chart-sankey.type.d.ts} +0 -0
  224. /package/types/{chart-scatter.type.d.mts → chart-scatter.type.d.ts} +0 -0
  225. /package/types/{chart-sunburst.type.d.mts → chart-sunburst.type.d.ts} +0 -0
  226. /package/types/{chart-tree.type.d.mts → chart-tree.type.d.ts} +0 -0
  227. /package/types/{chart-waterfall.type.d.mts → chart-waterfall.type.d.ts} +0 -0
  228. /package/types/{chart-wordcloud.type.d.mts → chart-wordcloud.type.d.ts} +0 -0
  229. /package/types/{checkbox-button.type.d.mts → checkbox-button.type.d.ts} +0 -0
  230. /package/types/{checkbox-group.type.d.mts → checkbox-group.type.d.ts} +0 -0
  231. /package/types/{col.type.d.mts → col.type.d.ts} +0 -0
  232. /package/types/{column-list-group.type.d.mts → column-list-group.type.d.ts} +0 -0
  233. /package/types/{column-list-item.type.d.mts → column-list-item.type.d.ts} +0 -0
  234. /package/types/{common.type.d.mts → common.type.d.ts} +0 -0
  235. /package/types/{company.type.d.mts → company.type.d.ts} +0 -0
  236. /package/types/{container.type.d.mts → container.type.d.ts} +0 -0
  237. /package/types/{country.type.d.mts → country.type.d.ts} +0 -0
  238. /package/types/{credit-card-form.type.d.mts → credit-card-form.type.d.ts} +0 -0
  239. /package/types/{credit-card.type.d.mts → credit-card.type.d.ts} +0 -0
  240. /package/types/{crop.type.d.mts → crop.type.d.ts} +0 -0
  241. /package/types/{currency.type.d.mts → currency.type.d.ts} +0 -0
  242. /package/types/{date-panel.type.d.mts → date-panel.type.d.ts} +0 -0
  243. /package/types/{date-picker-mobile.type.d.mts → date-picker-mobile.type.d.ts} +0 -0
  244. /package/types/{date-range.type.d.mts → date-range.type.d.ts} +0 -0
  245. /package/types/{date-table.type.d.mts → date-table.type.d.ts} +0 -0
  246. /package/types/{dept.type.d.mts → dept.type.d.ts} +0 -0
  247. /package/types/{detail-page.type.d.mts → detail-page.type.d.ts} +0 -0
  248. /package/types/{dialog-select.type.d.mts → dialog-select.type.d.ts} +0 -0
  249. /package/types/{drawer.type.d.mts → drawer.type.d.ts} +0 -0
  250. /package/types/{drop-roles.type.d.mts → drop-roles.type.d.ts} +0 -0
  251. /package/types/{drop-times.type.d.mts → drop-times.type.d.ts} +0 -0
  252. /package/types/{dynamic-scroller-item.type.d.mts → dynamic-scroller-item.type.d.ts} +0 -0
  253. /package/types/{dynamic-scroller.type.d.mts → dynamic-scroller.type.d.ts} +0 -0
  254. /package/types/{espace.type.d.mts → espace.type.d.ts} +0 -0
  255. /package/types/{exception.type.d.mts → exception.type.d.ts} +0 -0
  256. /package/types/{fall-menu.type.d.mts → fall-menu.type.d.ts} +0 -0
  257. /package/types/{filter-bar.type.d.mts → filter-bar.type.d.ts} +0 -0
  258. /package/types/{filter-box.type.d.mts → filter-box.type.d.ts} +0 -0
  259. /package/types/{filter-panel.type.d.mts → filter-panel.type.d.ts} +0 -0
  260. /package/types/{filter.type.d.mts → filter.type.d.ts} +0 -0
  261. /package/types/{floating-button.type.d.mts → floating-button.type.d.ts} +0 -0
  262. /package/types/{flowchart.type.d.mts → flowchart.type.d.ts} +0 -0
  263. /package/types/{fullscreen.type.d.mts → fullscreen.type.d.ts} +0 -0
  264. /package/types/{grid.type.d.mts → grid.type.d.ts} +0 -0
  265. /package/types/{guide.type.d.mts → guide.type.d.ts} +0 -0
  266. /package/types/{hrapprover.type.d.mts → hrapprover.type.d.ts} +0 -0
  267. /package/types/{image-viewer.type.d.mts → image-viewer.type.d.ts} +0 -0
  268. /package/types/{index-bar-anchor.type.d.mts → index-bar-anchor.type.d.ts} +0 -0
  269. /package/types/{index-bar.type.d.mts → index-bar.type.d.ts} +0 -0
  270. /package/types/{ip-address.type.d.mts → ip-address.type.d.ts} +0 -0
  271. /package/types/{layout.type.d.mts → layout.type.d.ts} +0 -0
  272. /package/types/{link-menu.type.d.mts → link-menu.type.d.ts} +0 -0
  273. /package/types/{list.type.d.mts → list.type.d.ts} +0 -0
  274. /package/types/{locales.type.d.mts → locales.type.d.ts} +0 -0
  275. /package/types/{logon-user.type.d.mts → logon-user.type.d.ts} +0 -0
  276. /package/types/{logout.type.d.mts → logout.type.d.ts} +0 -0
  277. /package/types/{mini-picker.type.d.mts → mini-picker.type.d.ts} +0 -0
  278. /package/types/{month-range.type.d.mts → month-range.type.d.ts} +0 -0
  279. /package/types/{month-table.type.d.mts → month-table.type.d.ts} +0 -0
  280. /package/types/{multi-select.type.d.mts → multi-select.type.d.ts} +0 -0
  281. /package/types/{notify.type.d.mts → notify.type.d.ts} +0 -0
  282. /package/types/{option-group.type.d.mts → option-group.type.d.ts} +0 -0
  283. /package/types/{option.type.d.mts → option.type.d.ts} +0 -0
  284. /package/types/{pager-item.type.d.mts → pager-item.type.d.ts} +0 -0
  285. /package/types/{pager.type.d.mts → pager.type.d.ts} +0 -0
  286. /package/types/{panel.type.d.mts → panel.type.d.ts} +0 -0
  287. /package/types/{picker-column.type.d.mts → picker-column.type.d.ts} +0 -0
  288. /package/types/{pop-upload.type.d.mts → pop-upload.type.d.ts} +0 -0
  289. /package/types/{popconfirm.type.d.mts → popconfirm.type.d.ts} +0 -0
  290. /package/types/{popup.type.d.mts → popup.type.d.ts} +0 -0
  291. /package/types/{pull-refresh.type.d.mts → pull-refresh.type.d.ts} +0 -0
  292. /package/types/{query-builder.type.d.mts → query-builder.type.d.ts} +0 -0
  293. /package/types/{rate.type.d.mts → rate.type.d.ts} +0 -0
  294. /package/types/{record.type.d.mts → record.type.d.ts} +0 -0
  295. /package/types/{recycle-scroller.type.d.mts → recycle-scroller.type.d.ts} +0 -0
  296. /package/types/{river.type.d.mts → river.type.d.ts} +0 -0
  297. /package/types/{roles.type.d.mts → roles.type.d.ts} +0 -0
  298. /package/types/{row.type.d.mts → row.type.d.ts} +0 -0
  299. /package/types/{scroll-text.type.d.mts → scroll-text.type.d.ts} +0 -0
  300. /package/types/{scrollbar.type.d.mts → scrollbar.type.d.ts} +0 -0
  301. /package/types/{select-dropdown.type.d.mts → select-dropdown.type.d.ts} +0 -0
  302. /package/types/{select-mobile.type.d.mts → select-mobile.type.d.ts} +0 -0
  303. /package/types/{select-view.type.d.mts → select-view.type.d.ts} +0 -0
  304. /package/types/{select.type.d.mts → select.type.d.ts} +0 -0
  305. /package/types/{selected-box.type.d.mts → selected-box.type.d.ts} +0 -0
  306. /package/types/{slide-bar.type.d.mts → slide-bar.type.d.ts} +0 -0
  307. /package/types/{slider-button-group.type.d.mts → slider-button-group.type.d.ts} +0 -0
  308. /package/types/{slider-button.type.d.mts → slider-button.type.d.ts} +0 -0
  309. /package/types/{split.type.d.mts → split.type.d.ts} +0 -0
  310. /package/types/{standard-list-item.type.d.mts → standard-list-item.type.d.ts} +0 -0
  311. /package/types/{tab-dropdown.type.d.mts → tab-dropdown.type.d.ts} +0 -0
  312. /package/types/{tab-item-mf.type.d.mts → tab-item-mf.type.d.ts} +0 -0
  313. /package/types/{tabbar-item.type.d.mts → tabbar-item.type.d.ts} +0 -0
  314. /package/types/{tabbar.type.d.mts → tabbar.type.d.ts} +0 -0
  315. /package/types/{table.type.d.mts → table.type.d.ts} +0 -0
  316. /package/types/{tabs-mf.type.d.mts → tabs-mf.type.d.ts} +0 -0
  317. /package/types/{tag-group.type.d.mts → tag-group.type.d.ts} +0 -0
  318. /package/types/{tall-storage.type.d.mts → tall-storage.type.d.ts} +0 -0
  319. /package/types/{text-popup.type.d.mts → text-popup.type.d.ts} +0 -0
  320. /package/types/{time-panel.type.d.mts → time-panel.type.d.ts} +0 -0
  321. /package/types/{time-picker-mobile.type.d.mts → time-picker-mobile.type.d.ts} +0 -0
  322. /package/types/{time-range.type.d.mts → time-range.type.d.ts} +0 -0
  323. /package/types/{time-spinner.type.d.mts → time-spinner.type.d.ts} +0 -0
  324. /package/types/{time.type.d.mts → time.type.d.ts} +0 -0
  325. /package/types/{toggle-menu.type.d.mts → toggle-menu.type.d.ts} +0 -0
  326. /package/types/{top-box.type.d.mts → top-box.type.d.ts} +0 -0
  327. /package/types/{transfer-panel.type.d.mts → transfer-panel.type.d.ts} +0 -0
  328. /package/types/{transfer.type.d.mts → transfer.type.d.ts} +0 -0
  329. /package/types/{tree-menu.type.d.mts → tree-menu.type.d.ts} +0 -0
  330. /package/types/{tree-node.type.d.mts → tree-node.type.d.ts} +0 -0
  331. /package/types/{tree.type.d.mts → tree.type.d.ts} +0 -0
  332. /package/types/{user-account.type.d.mts → user-account.type.d.ts} +0 -0
  333. /package/types/{user-contact.type.d.mts → user-contact.type.d.ts} +0 -0
  334. /package/types/{user-head-group.type.d.mts → user-head-group.type.d.ts} +0 -0
  335. /package/types/{user-head.type.d.mts → user-head.type.d.ts} +0 -0
  336. /package/types/{user-link.type.d.mts → user-link.type.d.ts} +0 -0
  337. /package/types/{user.type.d.mts → user.type.d.ts} +0 -0
  338. /package/types/{wheel.type.d.mts → wheel.type.d.ts} +0 -0
  339. /package/types/{year-range.type.d.mts → year-range.type.d.ts} +0 -0
  340. /package/types/{year-table.type.d.mts → year-table.type.d.ts} +0 -0
package/slider/vue.js CHANGED
@@ -21,6 +21,7 @@ import {
21
21
  hideTip,
22
22
  autoSlider,
23
23
  customBeforeAppearHook,
24
+ customAppearHook,
24
25
  customAfterAppearHook,
25
26
  watchActiveValue,
26
27
  watchModelValue,
@@ -51,11 +52,13 @@ const api = [
51
52
  "hideTip",
52
53
  "autoSlider",
53
54
  "customBeforeAppearHook",
55
+ "customAppearHook",
54
56
  "customAfterAppearHook",
55
57
  "inputValueChange"
56
58
  ];
57
- const initState = ({ reactive, computed, props, api: api2, parent }) => {
59
+ const initState = ({ reactive, computed, props, api: api2, parent, inject }) => {
58
60
  const state = reactive({
61
+ showAutoWidth: inject("showAutoWidth", null),
59
62
  tipStyle: {},
60
63
  barStyle: {},
61
64
  moveStyle: [],
@@ -86,9 +89,9 @@ const initState = ({ reactive, computed, props, api: api2, parent }) => {
86
89
  });
87
90
  return state;
88
91
  };
89
- const renderless = (props, { computed, onBeforeUnmount, onMounted, reactive, watch, inject }, { parent, constants, nextTick, emit, mode }) => {
92
+ const renderless = (props, { computed, onBeforeUnmount, onMounted, reactive, watch, inject }, { vm, parent, constants, nextTick, emit, mode }) => {
90
93
  const api2 = {};
91
- const state = initState({ reactive, computed, props, api: api2, parent });
94
+ const state = initState({ reactive, computed, props, api: api2, parent, inject });
92
95
  parent.tinyForm = parent.tinyForm || inject("form", null);
93
96
  Object.assign(api2, {
94
97
  state,
@@ -96,14 +99,15 @@ const renderless = (props, { computed, onBeforeUnmount, onMounted, reactive, wat
96
99
  formatTipValue: formatTipValue(props),
97
100
  setBarStyle: setBarStyle({ props, state }),
98
101
  changeActiveValue: changeActiveValue(state),
99
- bindResize: bindResize({ parent, props, state }),
102
+ bindResize: bindResize({ vm, props, state }),
100
103
  setButtonStyle: setButtonStyle({ props, state }),
101
- calculateValue: calculateValue({ props, state }),
104
+ calculateValue: calculateValue({ vm, props, state }),
102
105
  getActiveButtonValue: getActiveButtonValue(state),
103
106
  getActiveButtonIndex: getActiveButtonIndex({ constants, mode, state }),
104
- setTipStyle: setTipStyle({ constants, mode, parent, props, state }),
107
+ setTipStyle: setTipStyle({ vm, constants, mode, props, state }),
105
108
  customAfterAppearHook: customAfterAppearHook({ state, props }),
106
109
  customBeforeAppearHook: customBeforeAppearHook(props),
110
+ customAppearHook: customAppearHook(),
107
111
  bindEvent: bindEvent(api2),
108
112
  autoSlider: autoSlider(api2),
109
113
  unBindEvent: unBindEvent(api2),
@@ -121,6 +125,7 @@ const renderless = (props, { computed, onBeforeUnmount, onMounted, reactive, wat
121
125
  inputValueChange: inputValueChange({ props, api: api2, state })
122
126
  });
123
127
  watch(() => props.modelValue, api2.watchModelValue, { immediate: true });
128
+ watch(() => state.activeValue, api2.watchActiveValue, { immediate: true });
124
129
  watch(
125
130
  () => props.min,
126
131
  (min) => {
@@ -138,6 +143,20 @@ const renderless = (props, { computed, onBeforeUnmount, onMounted, reactive, wat
138
143
  }
139
144
  );
140
145
  watch(() => state.activeValue, api2.watchActiveValue, { immediate: true });
146
+ watch(
147
+ () => state.leftBtnValue,
148
+ (newVal) => {
149
+ state.inputValue[0] = newVal;
150
+ },
151
+ { immediate: true }
152
+ );
153
+ watch(
154
+ () => state.rightBtnValue,
155
+ (newVal) => {
156
+ state.inputValue[1] = newVal;
157
+ },
158
+ { immediate: true }
159
+ );
141
160
  onMounted(() => {
142
161
  api2.bindEvent();
143
162
  api2.getPoints();
@@ -5,7 +5,11 @@ const handleChange = ({ constants, nextTick, dispatch, state }) => () => {
5
5
  });
6
6
  };
7
7
  const getValue = (state) => () => state.sliderButtonGroup.modelValue;
8
- const setValue = ({ state }) => (val) => state.sliderButtonGroup.$emit("update:modelValue", val);
8
+ const setValue = ({ state }) => (val) => {
9
+ if (state.disabled)
10
+ return;
11
+ return state.sliderButtonGroup.$emit("update:modelValue", val);
12
+ };
9
13
  const getGroup = ({ constants, parent: $parent }) => () => {
10
14
  let parent = $parent.$parent;
11
15
  while (parent) {
@@ -3,6 +3,7 @@ import { handleChange, getValue, setValue, getGroup, mounted, customEvents } fro
3
3
  const api = ["state", "handleChange"];
4
4
  const renderless = (props, { computed, reactive, onMounted, inject, onBeforeUnmount }, { emit, parent, dispatch, constants, nextTick, vm }) => {
5
5
  const state = reactive({
6
+ disabled: inject("disabled", null) || props.disabled,
6
7
  type: inject("sliderType", null),
7
8
  value: computed({
8
9
  get: () => api2.getValue(),
@@ -0,0 +1,15 @@
1
+ import "../chunk-G2ADBYYC.js";
2
+ const getChangePosition = (state) => (value) => {
3
+ state.eachBlockIndex.find((e, index) => {
4
+ if (e.index === value) {
5
+ state.currentIndex = index;
6
+ }
7
+ });
8
+ state.sliderSpace = state.eachBlock[state.currentIndex];
9
+ state.sliderWidth = state.sliderWidthData[state.currentIndex];
10
+ state.sliderHeight = state.sliderHeightData[state.currentIndex];
11
+ state.sliderCount += 1;
12
+ };
13
+ export {
14
+ getChangePosition
15
+ };
@@ -1,6 +1,7 @@
1
1
  import "../chunk-G2ADBYYC.js";
2
+ import { getChangePosition } from "./index";
2
3
  const api = ["state"];
3
- const renderless = (props, { reactive, provide }, { parent }) => {
4
+ const renderless = (props, { reactive, provide, onMounted }, { parent }) => {
4
5
  const state = reactive({
5
6
  tag: "div",
6
7
  isActive: false,
@@ -16,16 +17,8 @@ const renderless = (props, { reactive, provide }, { parent }) => {
16
17
  sliderCount: 0
17
18
  });
18
19
  parent.$on("handleChange", (value) => {
19
- state.eachBlockIndex.find((e, index) => {
20
- if (e.index === value) {
21
- state.currentIndex = index;
22
- }
23
- });
24
- state.sliderSpace = state.eachBlock[state.currentIndex];
25
- state.sliderWidth = state.sliderWidthData[state.currentIndex];
26
- state.sliderHeight = state.sliderHeightData[state.currentIndex];
20
+ api2.getChangePosition(value);
27
21
  parent.$emit("change", value);
28
- state.sliderCount += 1;
29
22
  });
30
23
  parent.$on("labelValue", (value) => {
31
24
  state.eachBlockIndex.push({ index: value });
@@ -41,9 +34,13 @@ const renderless = (props, { reactive, provide }, { parent }) => {
41
34
  state.sliderHeight = state.sliderHeightData[0];
42
35
  });
43
36
  const api2 = {};
44
- Object.assign(api2, { state });
37
+ Object.assign(api2, { state, getChangePosition: getChangePosition(state) });
45
38
  provide("sliderType", props.type);
46
39
  provide("sliderSize", props.size);
40
+ provide("disabled", props.disabled);
41
+ onMounted(() => {
42
+ api2.getChangePosition(props.modelValue);
43
+ });
47
44
  return api2;
48
45
  };
49
46
  export {
@@ -7,12 +7,18 @@ const handleEnterDesc = ({ state, props }) => ($event) => {
7
7
  state.descTooltip = "";
8
8
  }
9
9
  };
10
- const handelIconClick = ({ emit }) => (item, index) => {
10
+ const handelIconClick = ({ emit }) => (item, index, event) => {
11
11
  if (item.disabled)
12
12
  return;
13
- emit("icon-click", item, index);
13
+ emit("icon-click", item, index, event);
14
+ };
15
+ const handleTitleClick = ({ props }) => () => {
16
+ if (!props.titleOption.click)
17
+ return;
18
+ props.titleOption.click();
14
19
  };
15
20
  export {
16
21
  handelIconClick,
17
- handleEnterDesc
22
+ handleEnterDesc,
23
+ handleTitleClick
18
24
  };
@@ -1,6 +1,6 @@
1
1
  import "../chunk-G2ADBYYC.js";
2
- import { handleEnterDesc, handelIconClick } from "./index";
3
- const api = ["state", "handelIconClick", "handleEnterDesc"];
2
+ import { handleEnterDesc, handelIconClick, handleTitleClick } from "./index";
3
+ const api = ["state", "handelIconClick", "handleEnterDesc", "handleTitleClick"];
4
4
  const renderless = (props, { computed, reactive }, { emit }) => {
5
5
  const state = reactive({
6
6
  descTooltip: "",
@@ -11,6 +11,7 @@ const renderless = (props, { computed, reactive }, { emit }) => {
11
11
  const api2 = {};
12
12
  Object.assign(api2, {
13
13
  state,
14
+ handleTitleClick: handleTitleClick({ props }),
14
15
  handelIconClick: handelIconClick({ emit }),
15
16
  handleEnterDesc: handleEnterDesc({ state, props })
16
17
  });
package/switch/index.js CHANGED
@@ -11,15 +11,17 @@ const toggle = ({ emit, props, state }) => (event) => {
11
11
  };
12
12
  props.beforeChange ? props.beforeChange(change) : change();
13
13
  };
14
- const computedWarpClasses = ({ prefixCls, props, state }) => () => [
15
- {
16
- [prefixCls]: true,
17
- [`${prefixCls}-checked`]: state.currentValue === props.trueValue,
18
- [`${prefixCls}-disabled`]: state.disabled,
19
- mini: props.mini,
20
- disabled: state.disabled
21
- }
22
- ];
14
+ const computedWarpClasses = ({ prefixCls, props, state }) => () => {
15
+ return [
16
+ {
17
+ [prefixCls]: true,
18
+ [`${prefixCls}-checked`]: state.currentValue === props.trueValue,
19
+ [`${prefixCls}-disabled`]: state.disabled,
20
+ mini: props.mini,
21
+ disabled: state.disabled
22
+ }
23
+ ];
24
+ };
23
25
  const computedInnerClasses = ({ prefixCls }) => () => `${prefixCls}-inner`;
24
26
  const computedStyle = ({ props, state }) => () => {
25
27
  return {
package/switch/vue.js CHANGED
@@ -10,7 +10,7 @@ const renderless = (props, { computed, watch, reactive, inject }, { parent, cons
10
10
  wrapClasses: computed(() => api2.computedWarpClasses()),
11
11
  style: computed(() => api2.computedStyle()),
12
12
  formDisabled: computed(() => (parent.tinyForm || {}).disabled),
13
- disabled: computed(() => props.disabled || state.formDisabled || state.isDisplayOnly),
13
+ disabled: computed(() => props.disabled || state.formDisabled || state.isDisplayOnly || props.loading),
14
14
  isDisplayOnly: computed(() => props.displayOnly || (parent.tinyForm || {}).displayOnly),
15
15
  showText: computed(() => {
16
16
  if (props.showText === void 0) {
package/tab-bar/index.js CHANGED
@@ -46,7 +46,7 @@ const computedBarStyle = (parent) => (props, state) => {
46
46
  });
47
47
  }
48
48
  const transform = `translate${capitalize(sizeDir)}(${offset}px)`;
49
- style[sizeName] = tabSize + "px";
49
+ style[sizeName] = state.separator ? "" : tabSize + "px";
50
50
  style.transform = transform;
51
51
  style.msTransform = transform;
52
52
  style.webkitTransform = transform;
package/tab-bar/vue.js CHANGED
@@ -4,7 +4,8 @@ const api = ["state", "computedBarStyle"];
4
4
  const renderless = (props, { inject, reactive }, { parent }) => {
5
5
  const state = reactive({
6
6
  rootTabs: inject("rootTabs"),
7
- barStyle: {}
7
+ barStyle: {},
8
+ separator: inject("separator", null)
8
9
  });
9
10
  const api2 = {
10
11
  state,
package/tab-nav/index.js CHANGED
@@ -15,11 +15,11 @@ const computedNavStyle = (state) => {
15
15
  };
16
16
  }
17
17
  };
18
- const scrollIntoView = ({ parent, refs, state }) => () => {
18
+ const scrollIntoView = ({ parent, vm, state }) => () => {
19
19
  if (!state.scrollable) {
20
20
  return;
21
21
  }
22
- const nav = refs.nav;
22
+ const nav = vm.$refs.nav;
23
23
  const activeTab = parent.$el.querySelector(".is-active");
24
24
  if (!activeTab) {
25
25
  return;
@@ -32,13 +32,13 @@ const scrollIntoView = ({ parent, refs, state }) => () => {
32
32
  }
33
33
  };
34
34
  const computedSizeName = (state) => ~[POSITION.Top, POSITION.Bottom].indexOf(state.rootTabs.position) ? "width" : "height";
35
- const updated = ({ api, refs, state }) => () => {
36
- if (!refs.nav || state.dragging) {
35
+ const updated = ({ api, vm, state }) => () => {
36
+ if (!vm.$refs.nav || state.dragging) {
37
37
  return;
38
38
  }
39
- let navSize = refs.nav[`offset${capitalize(state.sizeName)}`];
39
+ let navSize = vm.$refs.nav[`offset${capitalize(state.sizeName)}`];
40
40
  if (state.mode === "mobile") {
41
- Array.prototype.forEach.call(refs.nav.children, (item) => {
41
+ Array.prototype.forEach.call(vm.$refs.nav.children, (item) => {
42
42
  if (item.classList && item.classList.contains("tiny-mobile-tabs__item")) {
43
43
  navSize += item.offsetWidth;
44
44
  }
@@ -49,7 +49,7 @@ const updated = ({ api, refs, state }) => () => {
49
49
  }
50
50
  });
51
51
  }
52
- const containerSize = refs.navScroll[`offset${capitalize(state.sizeName)}`];
52
+ const containerSize = vm.$refs.navScroll[`offset${capitalize(state.sizeName)}`];
53
53
  const currentOffset = state.navOffset;
54
54
  if (containerSize < navSize) {
55
55
  const currentOffset2 = state.navOffset;
@@ -69,10 +69,10 @@ const updated = ({ api, refs, state }) => () => {
69
69
  }
70
70
  }
71
71
  state.isActive && api.scrollIntoView();
72
- if (refs.tabBar) {
73
- refs.tabBar.state.barStyle = refs.tabBar.computedBarStyle(refs.tabBar, state);
72
+ if (vm.$refs.tabBar) {
73
+ vm.$refs.tabBar.state.barStyle = vm.$refs.tabBar.computedBarStyle(vm.$refs.tabBar, state);
74
74
  } else {
75
- const line = refs.nav.querySelector("tiny-mobile-tabs__line");
75
+ const line = vm.$refs.nav.querySelector("tiny-mobile-tabs__line");
76
76
  line && line.style && (line.style.transform = api.computedNavStyle(state).transform);
77
77
  }
78
78
  };
@@ -113,16 +113,16 @@ const windowFocusHandler = (state) => () => {
113
113
  state.focusable = true;
114
114
  }, 50);
115
115
  };
116
- const scrollToActiveTab = ({ parent, refs, state }) => () => {
116
+ const scrollToActiveTab = ({ parent, vm, state }) => () => {
117
117
  if (!state.scrollable) {
118
118
  return;
119
119
  }
120
- const nav = refs.nav;
120
+ const nav = vm.$refs.nav;
121
121
  const activeTab = parent.$el.querySelector(".is-active");
122
122
  if (!activeTab) {
123
123
  return;
124
124
  }
125
- const navScroll = refs.navScroll;
125
+ const navScroll = vm.$refs.navScroll;
126
126
  const activeTabBounding = activeTab.getBoundingClientRect();
127
127
  const navScrollBounding = navScroll.getBoundingClientRect();
128
128
  let maxOffset = nav.offsetWidth - navScrollBounding.width;
@@ -144,8 +144,8 @@ const scrollToActiveTab = ({ parent, refs, state }) => () => {
144
144
  newOffset = Math.max(newOffset, 0);
145
145
  state.navOffset = Math.min(newOffset, maxOffset);
146
146
  };
147
- const scrollPrev = ({ refs, state }) => () => {
148
- const containerSize = refs.navScroll[`offset${capitalize(state.sizeName)}`];
147
+ const scrollPrev = ({ vm, state }) => () => {
148
+ const containerSize = vm.$refs.navScroll[`offset${capitalize(state.sizeName)}`];
149
149
  const currentOffset = state.navOffset;
150
150
  if (!currentOffset) {
151
151
  return;
@@ -153,9 +153,9 @@ const scrollPrev = ({ refs, state }) => () => {
153
153
  const newOffset = currentOffset > containerSize ? currentOffset - containerSize : 0;
154
154
  state.navOffset = newOffset;
155
155
  };
156
- const scrollNext = ({ refs, state }) => () => {
157
- const navSize = refs.nav[`offset${capitalize(state.sizeName)}`];
158
- const containerSize = refs.navScroll[`offset${capitalize(state.sizeName)}`];
156
+ const scrollNext = ({ vm, state }) => () => {
157
+ const navSize = vm.$refs.nav[`offset${capitalize(state.sizeName)}`];
158
+ const containerSize = vm.$refs.navScroll[`offset${capitalize(state.sizeName)}`];
159
159
  const currentOffset = state.navOffset;
160
160
  if (navSize - currentOffset <= containerSize) {
161
161
  return;
@@ -213,20 +213,20 @@ const expandTabShow = ({ api, state }) => () => {
213
213
  }
214
214
  };
215
215
  const expandTabHide = (state) => () => state.showExpandItem = false;
216
- const computedHeaderStyle = ({ refs, state }) => () => {
217
- if (refs.nav) {
218
- state.expandHeaderStyle[state.sizeName] = refs.nav[`offset${capitalize(state.sizeName)}`] + "px";
216
+ const computedHeaderStyle = ({ vm, state }) => () => {
217
+ if (vm.$refs.nav) {
218
+ state.expandHeaderStyle[state.sizeName] = vm.$refs.nav[`offset${capitalize(state.sizeName)}`] + "px";
219
219
  }
220
220
  return state.expandHeaderStyle;
221
221
  };
222
- const handleTabDragStart = ({ state, refs, emit }) => (event) => {
222
+ const handleTabDragStart = ({ state, vm, emit }) => (event) => {
223
223
  state.dragging = true;
224
224
  if (![POSITION.Top, POSITION.Bottom].includes(state.rootTabs.position)) {
225
225
  emit("tab-drag-start", event);
226
226
  return;
227
227
  }
228
- const navContainer = refs.navScroll;
229
- const nav = refs.nav;
228
+ const navContainer = vm.$refs.navScroll;
229
+ const nav = vm.$refs.nav;
230
230
  const containerWidth = navContainer.offsetWidth;
231
231
  const navWidth = nav.offsetWidth;
232
232
  if (navWidth > containerWidth) {
@@ -240,15 +240,15 @@ const handleTabDragStart = ({ state, refs, emit }) => (event) => {
240
240
  }
241
241
  emit("tab-drag-start", event);
242
242
  };
243
- const handleTabDragEnd = ({ refs, state, nextTick }) => () => {
243
+ const handleTabDragEnd = ({ vm, state, nextTick }) => () => {
244
244
  state.dragging = false;
245
245
  if (![POSITION.Top, POSITION.Bottom].includes(state.rootTabs.position)) {
246
246
  return;
247
247
  }
248
- const nav = refs.nav;
248
+ const nav = vm.$refs.nav;
249
249
  if (nav.style.width) {
250
250
  const navOffset = nav.scrollLeft;
251
- const navContainer = refs.navScroll;
251
+ const navContainer = vm.$refs.navScroll;
252
252
  navContainer.style.height = "";
253
253
  nav.style.width = "";
254
254
  nav.style.overflowX = "";
@@ -262,14 +262,14 @@ const sortableEvent = ({
262
262
  api,
263
263
  props,
264
264
  state,
265
- refs,
265
+ vm,
266
266
  emit,
267
267
  markRaw
268
268
  }) => () => {
269
269
  if (!props.dropConfig || typeof props.dropConfig.plugin !== "function") {
270
270
  return;
271
271
  }
272
- const navSortableObj = new props.dropConfig.plugin(refs.nav, {
272
+ const navSortableObj = new props.dropConfig.plugin(vm.$refs.nav, {
273
273
  sort: true,
274
274
  draggable: ".tiny-tabs__item",
275
275
  onUpdate(event) {
@@ -287,9 +287,9 @@ const sortableEvent = ({
287
287
  });
288
288
  state.navSortableObj = markRaw(navSortableObj);
289
289
  };
290
- const watchCurrentName = ({ nextTick, refs, state }) => () => {
290
+ const watchCurrentName = ({ nextTick, vm, state }) => () => {
291
291
  nextTick(() => {
292
- const tabBarVnode = refs.tabBar;
292
+ const tabBarVnode = vm.$refs.tabBar;
293
293
  if (tabBarVnode) {
294
294
  tabBarVnode.state.barStyle = tabBarVnode.computedBarStyle(tabBarVnode, state);
295
295
  }
package/tab-nav/vue.js CHANGED
@@ -39,7 +39,7 @@ const api = [
39
39
  "computedHeaderStyle",
40
40
  "swiperHandle"
41
41
  ];
42
- const renderless = (props, { computed, inject, onBeforeUnmount, onMounted, onUpdated, reactive, markRaw }, { parent, nextTick, refs, mode: tinyMode, emit }) => {
42
+ const renderless = (props, { computed, inject, onBeforeUnmount, onMounted, onUpdated, reactive, markRaw }, { parent, vm, nextTick, mode: tinyMode, emit }) => {
43
43
  const api2 = { mounted, beforeUnmount, computedNavStyle, computedSizeName };
44
44
  const state = reactive({
45
45
  dragging: false,
@@ -58,7 +58,8 @@ const renderless = (props, { computed, inject, onBeforeUnmount, onMounted, onUpd
58
58
  rootTabs: inject("rootTabs"),
59
59
  sizeName: computed(() => api2.computedSizeName(state)),
60
60
  navStyle: computed(() => api2.computedNavStyle(state)),
61
- navSortableObj: {}
61
+ navSortableObj: {},
62
+ separator: inject("separator", null)
62
63
  });
63
64
  Object.assign(api2, {
64
65
  state,
@@ -67,20 +68,20 @@ const renderless = (props, { computed, inject, onBeforeUnmount, onMounted, onUpd
67
68
  moreTabShow: moreTabShow(state),
68
69
  expandTabShow: expandTabShow({ api: api2, state }),
69
70
  expandTabHide: expandTabHide(state),
70
- scrollPrev: scrollPrev({ refs, state }),
71
- scrollNext: scrollNext({ refs, state }),
71
+ scrollPrev: scrollPrev({ vm, state }),
72
+ scrollNext: scrollNext({ vm, state }),
72
73
  windowBlurHandler: windowBlurHandler(state),
73
74
  windowFocusHandler: windowFocusHandler(state),
74
75
  visibilityChangeHandler: visibilityChangeHandler(state),
75
- scrollToActiveTab: scrollToActiveTab({ parent, refs, state }),
76
- scrollIntoView: scrollIntoView({ parent, refs, state }),
77
- computedHeaderStyle: computedHeaderStyle({ refs, state }),
78
- watchCurrentName: watchCurrentName({ nextTick, refs, state }),
79
- handleTabDragStart: handleTabDragStart({ state, refs, emit }),
80
- handleTabDragEnd: handleTabDragEnd({ state, refs, nextTick }),
81
- sortableEvent: sortableEvent({ api: api2, props, state, refs, emit, markRaw })
76
+ scrollToActiveTab: scrollToActiveTab({ parent, vm, state }),
77
+ scrollIntoView: scrollIntoView({ parent, vm, state }),
78
+ computedHeaderStyle: computedHeaderStyle({ vm, state }),
79
+ watchCurrentName: watchCurrentName({ nextTick, vm, state }),
80
+ handleTabDragStart: handleTabDragStart({ state, vm, emit }),
81
+ handleTabDragEnd: handleTabDragEnd({ state, vm, nextTick }),
82
+ sortableEvent: sortableEvent({ api: api2, props, state, vm, emit, markRaw })
82
83
  });
83
- Object.assign(api2, { updated: updated({ api: api2, refs, state }), changeTab: changeTab(api2) });
84
+ Object.assign(api2, { updated: updated({ api: api2, vm, state }), changeTab: changeTab(api2) });
84
85
  onUpdated(() => api2.updated());
85
86
  onMounted(() => api2.mounted({ api: api2, parent }));
86
87
  onBeforeUnmount(() => api2.beforeUnmount({ api: api2, parent }));
package/tabs/vue.js CHANGED
@@ -38,7 +38,8 @@ const initState = ({ reactive, props }) => reactive({
38
38
  offsetX: 0,
39
39
  offsetY: 0,
40
40
  direction: "",
41
- expandPanesWidth: ""
41
+ expandPanesWidth: "",
42
+ separator: props.separator
42
43
  });
43
44
  const initWatcher = ({
44
45
  watch,
@@ -91,6 +92,7 @@ const renderless = (props, { onMounted, onUpdated, provide, reactive, watch }, {
91
92
  });
92
93
  api2.created();
93
94
  provide("rootTabs", parent);
95
+ provide("separator", state.separator);
94
96
  initWatcher({ watch, props, api: api2, state, nextTick, refs });
95
97
  onMounted(() => {
96
98
  api2.calcPaneInstances();
package/tabs-mf/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import "../chunk-G2ADBYYC.js";
2
2
  import { random } from "../common/string";
3
3
  import debounce from "../common/deps/debounce";
4
+ import { fastdom } from "../common/deps/fastdom";
4
5
  const setActive = ({ emit, state, props }) => (name) => {
5
6
  const current = state.currentItem ? state.currentItem.name : "";
6
7
  if (current && current !== name && props.beforeLeave && !props.beforeLeave(name, current)) {
@@ -21,16 +22,20 @@ const scrollTo = ({ vm, state }) => (name) => {
21
22
  const { $refs } = vm;
22
23
  const { tabbar } = $refs;
23
24
  const { scroll } = tabbar.$refs;
24
- const { clientWidth, scrollWidth } = scroll;
25
- if (name && scrollWidth > clientWidth) {
26
- const total = navs.length;
27
- const index = navs.findIndex((nav) => nav.name === name);
28
- const max = scrollWidth - clientWidth;
29
- if (~index) {
30
- scroll.scrollLeft = max / (total - 1) * index;
31
- tabbar.wheelListener();
25
+ fastdom.measure(() => {
26
+ const { clientWidth, scrollWidth } = scroll;
27
+ if (name && scrollWidth > clientWidth) {
28
+ const total = navs.length;
29
+ const index = navs.findIndex((nav) => nav.name === name);
30
+ const max = scrollWidth - clientWidth;
31
+ if (~index) {
32
+ fastdom.mutate(() => {
33
+ scroll.scrollLeft = max / (total - 1) * index;
34
+ tabbar.wheelListener();
35
+ });
36
+ }
32
37
  }
33
- }
38
+ });
34
39
  };
35
40
  const clickMore = (api) => (name) => {
36
41
  api.setActive(name);
@@ -2,9 +2,9 @@ import "../chunk-G2ADBYYC.js";
2
2
  import { addResizeListener, removeResizeListener } from "../common/deps/resize-event";
3
3
  import { wheelListener, getBoundRect, handleClickDropdownItem, key, emitAdd } from "./index";
4
4
  import { getAddWheelListener } from "./wheel";
5
+ const { addWheelListener, removeWheelListener } = getAddWheelListener(window, document);
5
6
  const api = ["state", "wheelListener", "handleClickDropdownItem", "key", "emitAdd"];
6
7
  const renderless = (props, { onMounted, onBeforeUnmount, reactive, watch, inject, computed }, { vm }) => {
7
- const { addWheelListener, removeWheelListener } = getAddWheelListener(window, document);
8
8
  const tabs = inject("tabs", null);
9
9
  const state = reactive({
10
10
  moreList: [],
@@ -14,7 +14,8 @@ const renderless = (props, { onMounted, onBeforeUnmount, reactive, watch, inject
14
14
  tabMoreWidth: 0,
15
15
  navPaddingRight: 0,
16
16
  withAdd: computed(() => tabs.withAdd),
17
- slotCustom: tabs.slots.custom
17
+ slotCustom: tabs.slots.custom,
18
+ separator: inject("separator", null)
18
19
  });
19
20
  const api2 = {
20
21
  getBoundRect: getBoundRect(vm),
@@ -6,7 +6,8 @@ const renderless = (props, { inject, markRaw, reactive, computed }, { vm }) => {
6
6
  tabs.addNav(markRaw(vm));
7
7
  const state = reactive({
8
8
  tabSize: computed(() => tabs.size),
9
- withClose: computed(() => tabs.withClose)
9
+ withClose: computed(() => tabs.withClose),
10
+ separator: inject("separator", null)
10
11
  });
11
12
  const api2 = {
12
13
  state,
@@ -1,10 +1,26 @@
1
1
  import "../chunk-G2ADBYYC.js";
2
2
  const api = ["state"];
3
- const renderless = (props, { reactive, inject, computed }) => {
3
+ const renderless = (props, { reactive, inject, computed, nextTick, watch }) => {
4
4
  const tabs = inject("tabs", null);
5
5
  const state = reactive({
6
- navItems: computed(() => tabs.state.items)
6
+ navItems: computed(() => tabs.state.items),
7
+ currentNav: null,
8
+ currentIndex: computed(
9
+ () => tabs.state.navs.findIndex((item) => tabs.state.currentItem && tabs.state.currentItem.name === item.name)
10
+ ),
11
+ currentWidth: 0,
12
+ currentPosition: 0
7
13
  });
14
+ watch(
15
+ () => state.currentIndex,
16
+ () => {
17
+ nextTick(() => {
18
+ const nav = state.currentNav = tabs.state.navs[state.currentIndex];
19
+ state.currentWidth = nav && nav.$el.offsetWidth || 0;
20
+ state.currentPosition = nav && nav.$el.offsetLeft || 0;
21
+ });
22
+ }
23
+ );
8
24
  return { state };
9
25
  };
10
26
  export {
package/tabs-mf/vue.js CHANGED
@@ -7,7 +7,8 @@ const renderless = (props, { onMounted, onBeforeUnmount, provide, reactive, watc
7
7
  items: [],
8
8
  navs: [],
9
9
  currentItem: computed(() => state.items.find((item) => item.selected)),
10
- key: computed(() => state.currentItem ? state.currentItem.name : random())
10
+ key: computed(() => state.currentItem ? state.currentItem.name : random()),
11
+ separator: props.separator
11
12
  });
12
13
  const api2 = {
13
14
  setActive: setActive({ emit, state, props }),
@@ -37,6 +38,7 @@ const renderless = (props, { onMounted, onBeforeUnmount, provide, reactive, watc
37
38
  state.navs.forEach((n, i) => state.navs[i] = null);
38
39
  state.navs.length = 0;
39
40
  });
41
+ provide("separator", state.separator);
40
42
  return api2;
41
43
  };
42
44
  export {
package/tag/index.js CHANGED
@@ -8,7 +8,7 @@ const handleClose = ({ emit, props, state }) => (event) => {
8
8
  props.beforeDelete ? props.beforeDelete(close) : close();
9
9
  };
10
10
  const handleClick = ({ emit, props, parent, state }) => (event) => {
11
- if (!props.selectable || props.disabled)
11
+ if (props.selectable === false || props.disabled)
12
12
  return;
13
13
  parent.$parent && parent.$parent.tagSelectable && event.stopPropagation();
14
14
  state.selected = !state.selected;
package/toast/index.js ADDED
@@ -0,0 +1,7 @@
1
+ import "../chunk-G2ADBYYC.js";
2
+ const timeout = (emit) => () => {
3
+ emit("timeout");
4
+ };
5
+ export {
6
+ timeout
7
+ };
package/toast/vue.js ADDED
@@ -0,0 +1,19 @@
1
+ import "../chunk-G2ADBYYC.js";
2
+ import { timeout } from "./index";
3
+ const api = ["state", "timeout"];
4
+ const renderless = (props, { reactive }, { vm, emit }) => {
5
+ const state = reactive({
6
+ text: props.text,
7
+ type: props.type,
8
+ time: props.time
9
+ });
10
+ const api2 = {
11
+ state,
12
+ timeout: timeout(emit)
13
+ };
14
+ return api2;
15
+ };
16
+ export {
17
+ api,
18
+ renderless
19
+ };