@opentiny/vue-docs 3.16.2 → 3.17.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 (1135) hide show
  1. package/demos/apis/autocomplete.js +1 -0
  2. package/demos/apis/base-select.js +896 -0
  3. package/demos/apis/breadcrumb.js +2 -0
  4. package/demos/apis/button-group.js +12 -0
  5. package/demos/apis/calendar.js +11 -9
  6. package/demos/apis/card.js +63 -22
  7. package/demos/apis/carousel.js +39 -1
  8. package/demos/apis/cascader-panel.js +5 -0
  9. package/demos/apis/cascader.js +5 -0
  10. package/demos/apis/collapse.js +11 -0
  11. package/demos/apis/color-picker.js +1 -1
  12. package/demos/apis/color-select-panel.js +1 -1
  13. package/demos/apis/currency.js +93 -13
  14. package/demos/apis/dialog-select.js +1 -0
  15. package/demos/apis/directives.js +3 -0
  16. package/demos/apis/drawer.js +53 -6
  17. package/demos/apis/dropdown.js +2 -0
  18. package/demos/apis/file-upload.js +5 -5
  19. package/demos/apis/form.js +3 -1
  20. package/demos/apis/grid.js +109 -64
  21. package/demos/apis/input.js +14 -0
  22. package/demos/apis/mind-map.js +1 -1
  23. package/demos/apis/modal.js +2 -2
  24. package/demos/apis/multi-select.js +1 -0
  25. package/demos/apis/pop-upload.js +7 -7
  26. package/demos/apis/popconfirm.js +1 -1
  27. package/demos/apis/popeditor.js +4 -4
  28. package/demos/apis/popover.js +8 -5
  29. package/demos/apis/qr-code.js +1 -1
  30. package/demos/apis/select.js +29 -3
  31. package/demos/apis/split.js +25 -4
  32. package/demos/apis/steps.js +1 -0
  33. package/demos/apis/tag-group.js +1 -0
  34. package/demos/apis/time-line.js +3 -2
  35. package/demos/apis/tooltip.js +2 -0
  36. package/demos/apis/transfer.js +4 -4
  37. package/demos/apis/tree-menu.js +11 -0
  38. package/demos/apis/tree-select.js +118 -0
  39. package/demos/apis/tree.js +29 -2
  40. package/demos/mobile-first/app/date-picker/about-clear.vue +25 -0
  41. package/demos/mobile-first/app/date-picker/basic-usage.vue +20 -0
  42. package/demos/mobile-first/app/date-picker/date-range.vue +35 -0
  43. package/demos/mobile-first/app/date-picker/datetime-range.vue +21 -0
  44. package/demos/mobile-first/app/date-picker/datetime.vue +20 -0
  45. package/demos/mobile-first/app/date-picker/disabled.vue +32 -0
  46. package/demos/mobile-first/app/date-picker/placeholder.vue +32 -0
  47. package/demos/mobile-first/app/date-picker/step.vue +25 -0
  48. package/demos/mobile-first/app/date-picker/webdoc/date-picker.cn.md +9 -0
  49. package/demos/mobile-first/app/date-picker/webdoc/date-picker.en.md +9 -0
  50. package/demos/mobile-first/app/date-picker/webdoc/date-picker.js +120 -0
  51. package/demos/mobile-first/app/date-picker/year.vue +63 -0
  52. package/demos/mobile-first/app/grid/basic-usage.vue +7 -1
  53. package/demos/mobile-first/app/input/resize.vue +48 -17
  54. package/demos/mobile-first/app/input/webdoc/input.js +8 -2
  55. package/demos/mobile-first/app/tabs/before-leave.vue +3 -0
  56. package/demos/mobile-first/app/time-line-new/auto-slot.vue +50 -0
  57. package/demos/mobile-first/app/time-line-new/basic-usage.vue +23 -0
  58. package/demos/mobile-first/app/time-line-new/fold-time.vue +29 -0
  59. package/demos/mobile-first/app/time-line-new/limited-nodes.vue +29 -0
  60. package/demos/mobile-first/app/time-line-new/many-status.vue +24 -0
  61. package/demos/mobile-first/app/time-line-new/node-max.vue +26 -0
  62. package/demos/mobile-first/app/time-line-new/node-toset.vue +32 -0
  63. package/demos/mobile-first/app/time-line-new/single-status.vue +40 -0
  64. package/demos/mobile-first/app/time-line-new/sub-field.vue +23 -0
  65. package/demos/mobile-first/app/time-line-new/webdoc/time-line-new.cn.md +9 -0
  66. package/demos/mobile-first/app/time-line-new/webdoc/time-line-new.en.md +9 -0
  67. package/demos/mobile-first/app/time-line-new/webdoc/time-line-new.js +120 -0
  68. package/demos/mobile-first/menus.js +10 -7
  69. package/demos/pc/app/amount/custom-service.spec.js +2 -1
  70. package/demos/pc/app/anchor/basic-usage-composition-api.vue +5 -1
  71. package/demos/pc/app/anchor/basic-usage.vue +5 -1
  72. package/demos/pc/app/anchor/is-affix-composition-api.vue +5 -1
  73. package/demos/pc/app/anchor/is-affix.vue +5 -1
  74. package/demos/pc/app/autocomplete/debounce.spec.ts +1 -2
  75. package/demos/pc/app/autocomplete/size.spec.ts +0 -1
  76. package/demos/pc/app/badge/offset-composition-api.vue +3 -0
  77. package/demos/pc/app/badge/offset.vue +3 -0
  78. package/demos/pc/app/base-select/all-text-composition-api.vue +28 -0
  79. package/demos/pc/app/base-select/all-text.spec.ts +13 -0
  80. package/demos/pc/app/base-select/all-text.vue +36 -0
  81. package/demos/pc/app/base-select/allow-create-composition-api.vue +102 -0
  82. package/demos/pc/app/base-select/allow-create.spec.ts +50 -0
  83. package/demos/pc/app/base-select/allow-create.vue +105 -0
  84. package/demos/pc/app/base-select/automatic-dropdown-composition-api.vue +52 -0
  85. package/demos/pc/app/base-select/automatic-dropdown.spec.ts +31 -0
  86. package/demos/pc/app/base-select/automatic-dropdown.vue +60 -0
  87. package/demos/pc/app/base-select/basic-usage-composition-api.vue +38 -0
  88. package/demos/pc/app/base-select/basic-usage.spec.ts +47 -0
  89. package/demos/pc/app/base-select/basic-usage.vue +47 -0
  90. package/demos/pc/app/base-select/binding-obj-composition-api.vue +35 -0
  91. package/demos/pc/app/base-select/binding-obj.spec.ts +21 -0
  92. package/demos/pc/app/base-select/binding-obj.vue +44 -0
  93. package/demos/pc/app/base-select/cache-usage-composition-api.vue +45 -0
  94. package/demos/pc/app/base-select/cache-usage.spec.ts +19 -0
  95. package/demos/pc/app/base-select/cache-usage.vue +55 -0
  96. package/demos/pc/app/base-select/clear-no-match-value-composition-api.vue +44 -0
  97. package/demos/pc/app/base-select/clear-no-match-value.spec.ts +24 -0
  98. package/demos/pc/app/base-select/clear-no-match-value.vue +52 -0
  99. package/demos/pc/app/base-select/clearable-composition-api.vue +25 -0
  100. package/demos/pc/app/base-select/clearable.spec.ts +21 -0
  101. package/demos/pc/app/base-select/clearable.vue +34 -0
  102. package/demos/pc/app/base-select/collapse-tags-composition-api.vue +48 -0
  103. package/demos/pc/app/base-select/collapse-tags.spec.ts +32 -0
  104. package/demos/pc/app/base-select/collapse-tags.vue +56 -0
  105. package/demos/pc/app/base-select/copy-multi-composition-api.vue +45 -0
  106. package/demos/pc/app/base-select/copy-multi.spec.ts +63 -0
  107. package/demos/pc/app/base-select/copy-multi.vue +55 -0
  108. package/demos/pc/app/base-select/copy-single-composition-api.vue +151 -0
  109. package/demos/pc/app/base-select/copy-single.spec.ts +76 -0
  110. package/demos/pc/app/base-select/copy-single.vue +157 -0
  111. package/demos/pc/app/base-select/disabled-composition-api.vue +100 -0
  112. package/demos/pc/app/base-select/disabled.spec.ts +88 -0
  113. package/demos/pc/app/base-select/disabled.vue +107 -0
  114. package/demos/pc/app/base-select/events-composition-api.vue +106 -0
  115. package/demos/pc/app/base-select/events.spec.ts +72 -0
  116. package/demos/pc/app/base-select/events.vue +112 -0
  117. package/demos/pc/app/base-select/filter-method-composition-api.vue +73 -0
  118. package/demos/pc/app/base-select/filter-method.spec.ts +89 -0
  119. package/demos/pc/app/base-select/filter-method.vue +83 -0
  120. package/demos/pc/app/base-select/filter-mode-composition-api.vue +42 -0
  121. package/demos/pc/app/base-select/filter-mode.vue +51 -0
  122. package/demos/pc/app/base-select/hide-drop-composition-api.vue +25 -0
  123. package/demos/pc/app/base-select/hide-drop.spec.ts +12 -0
  124. package/demos/pc/app/base-select/hide-drop.vue +34 -0
  125. package/demos/pc/app/base-select/input-box-type-composition-api.vue +44 -0
  126. package/demos/pc/app/base-select/input-box-type.spec.ts +72 -0
  127. package/demos/pc/app/base-select/input-box-type.vue +53 -0
  128. package/demos/pc/app/base-select/is-drop-inherit-width-composition-api.vue +40 -0
  129. package/demos/pc/app/base-select/is-drop-inherit-width.spec.ts +34 -0
  130. package/demos/pc/app/base-select/is-drop-inherit-width.vue +49 -0
  131. package/demos/pc/app/base-select/manual-focus-blur-composition-api.vue +88 -0
  132. package/demos/pc/app/base-select/manual-focus-blur.spec.ts +18 -0
  133. package/demos/pc/app/base-select/manual-focus-blur.vue +90 -0
  134. package/demos/pc/app/base-select/map-field-composition-api.vue +34 -0
  135. package/demos/pc/app/base-select/map-field.spec.ts +21 -0
  136. package/demos/pc/app/base-select/map-field.vue +66 -0
  137. package/demos/pc/app/base-select/memoize-usage-composition-api.vue +52 -0
  138. package/demos/pc/app/base-select/memoize-usage.spec.ts +19 -0
  139. package/demos/pc/app/base-select/memoize-usage.vue +66 -0
  140. package/demos/pc/app/base-select/multiple-composition-api.vue +91 -0
  141. package/demos/pc/app/base-select/multiple-mix-composition-api.vue +148 -0
  142. package/demos/pc/app/base-select/multiple-mix.vue +153 -0
  143. package/demos/pc/app/base-select/multiple.spec.ts +49 -0
  144. package/demos/pc/app/base-select/multiple.vue +98 -0
  145. package/demos/pc/app/base-select/native-properties-composition-api.vue +25 -0
  146. package/demos/pc/app/base-select/native-properties.spec.ts +16 -0
  147. package/demos/pc/app/base-select/native-properties.vue +34 -0
  148. package/demos/pc/app/base-select/no-data-text-composition-api.vue +35 -0
  149. package/demos/pc/app/base-select/no-data-text.spec.ts +39 -0
  150. package/demos/pc/app/base-select/no-data-text.vue +44 -0
  151. package/demos/pc/app/base-select/optimization-composition-api.vue +46 -0
  152. package/demos/pc/app/base-select/optimization.spec.ts +46 -0
  153. package/demos/pc/app/base-select/optimization.vue +55 -0
  154. package/demos/pc/app/base-select/option-group-composition-api.vue +96 -0
  155. package/demos/pc/app/base-select/option-group.spec.ts +22 -0
  156. package/demos/pc/app/base-select/option-group.vue +105 -0
  157. package/demos/pc/app/base-select/popup-style-position-composition-api.vue +32 -0
  158. package/demos/pc/app/base-select/popup-style-position.spec.ts +16 -0
  159. package/demos/pc/app/base-select/popup-style-position.vue +41 -0
  160. package/demos/pc/app/base-select/remote-method-composition-api.vue +283 -0
  161. package/demos/pc/app/base-select/remote-method.spec.ts +68 -0
  162. package/demos/pc/app/base-select/remote-method.vue +285 -0
  163. package/demos/pc/app/base-select/searchable-composition-api.vue +46 -0
  164. package/demos/pc/app/base-select/searchable.spec.ts +66 -0
  165. package/demos/pc/app/base-select/searchable.vue +55 -0
  166. package/demos/pc/app/base-select/show-alloption-composition-api.vue +25 -0
  167. package/demos/pc/app/base-select/show-alloption.spec.ts +15 -0
  168. package/demos/pc/app/base-select/show-alloption.vue +34 -0
  169. package/demos/pc/app/base-select/show-tip-composition-api.vue +19 -0
  170. package/demos/pc/app/base-select/show-tip.vue +28 -0
  171. package/demos/pc/app/base-select/size-composition-api.vue +40 -0
  172. package/demos/pc/app/base-select/size.spec.ts +58 -0
  173. package/demos/pc/app/base-select/size.vue +48 -0
  174. package/demos/pc/app/base-select/slot-default-composition-api.vue +93 -0
  175. package/demos/pc/app/base-select/slot-default.spec.ts +18 -0
  176. package/demos/pc/app/base-select/slot-default.vue +97 -0
  177. package/demos/pc/app/base-select/slot-empty-composition-api.vue +36 -0
  178. package/demos/pc/app/base-select/slot-empty.spec.ts +16 -0
  179. package/demos/pc/app/base-select/slot-empty.vue +45 -0
  180. package/demos/pc/app/base-select/slot-footer-composition-api.vue +35 -0
  181. package/demos/pc/app/base-select/slot-footer.spec.ts +16 -0
  182. package/demos/pc/app/base-select/slot-footer.vue +45 -0
  183. package/demos/pc/app/base-select/slot-label-composition-api.vue +77 -0
  184. package/demos/pc/app/base-select/slot-label.vue +85 -0
  185. package/demos/pc/app/base-select/slot-panel-composition-api.vue +148 -0
  186. package/demos/pc/app/base-select/slot-panel.spec.ts +20 -0
  187. package/demos/pc/app/base-select/slot-panel.vue +154 -0
  188. package/demos/pc/app/base-select/slot-prefix-composition-api.vue +31 -0
  189. package/demos/pc/app/base-select/slot-prefix.spec.ts +18 -0
  190. package/demos/pc/app/base-select/slot-prefix.vue +39 -0
  191. package/demos/pc/app/base-select/slot-reference-composition-api.vue +25 -0
  192. package/demos/pc/app/base-select/slot-reference.spec.ts +16 -0
  193. package/demos/pc/app/base-select/slot-reference.vue +33 -0
  194. package/demos/pc/app/base-select/tag-type-composition-api.vue +27 -0
  195. package/demos/pc/app/base-select/tag-type.spec.ts +13 -0
  196. package/demos/pc/app/base-select/tag-type.vue +36 -0
  197. package/demos/pc/app/base-select/webdoc/base-select.cn.md +7 -0
  198. package/demos/pc/app/base-select/webdoc/base-select.en.md +7 -0
  199. package/demos/pc/app/base-select/webdoc/base-select.js +550 -0
  200. package/demos/pc/app/bulletin-board/icon-composition-api.vue +9 -1
  201. package/demos/pc/app/bulletin-board/icon.vue +9 -1
  202. package/demos/pc/app/button/autofocus-composition-api.vue +8 -0
  203. package/demos/pc/app/button/autofocus.vue +8 -0
  204. package/demos/pc/app/button/basic-usage-composition-api.vue +1 -1
  205. package/demos/pc/app/button/basic-usage.vue +1 -1
  206. package/demos/pc/app/button/dynamic-disabled-composition-api.vue +1 -1
  207. package/demos/pc/app/button/dynamic-disabled.vue +1 -1
  208. package/demos/pc/app/button/ghost-composition-api.vue +2 -2
  209. package/demos/pc/app/button/ghost.vue +2 -2
  210. package/demos/pc/app/button/icon-composition-api.vue +1 -1
  211. package/demos/pc/app/button/icon.vue +1 -1
  212. package/demos/pc/app/button/loading-composition-api.vue +1 -1
  213. package/demos/pc/app/button/loading.vue +1 -1
  214. package/demos/pc/app/button/reset-time-composition-api.vue +8 -0
  215. package/demos/pc/app/button/reset-time.vue +8 -0
  216. package/demos/pc/app/button/size-composition-api.vue +1 -1
  217. package/demos/pc/app/button/size.vue +1 -1
  218. package/demos/pc/app/button/text-composition-api.vue +6 -1
  219. package/demos/pc/app/button/text.vue +6 -1
  220. package/demos/pc/app/button-group/disabled-composition-api.vue +1 -1
  221. package/demos/pc/app/button-group/disabled.spec.ts +4 -0
  222. package/demos/pc/app/button-group/disabled.vue +1 -1
  223. package/demos/pc/app/button-group/slot-empty-composition-api.vue +3 -1
  224. package/demos/pc/app/button-group/slot-empty.vue +3 -1
  225. package/demos/pc/app/button-group/sup-composition-api.vue +13 -7
  226. package/demos/pc/app/button-group/sup.spec.ts +2 -2
  227. package/demos/pc/app/button-group/sup.vue +13 -7
  228. package/demos/pc/app/button-group/webdoc/button-group.js +9 -6
  229. package/demos/pc/app/calendar/dynamic-add-schedule.spec.ts +1 -14
  230. package/demos/pc/app/calendar-view/set-working-day-composition-api.vue +20 -0
  231. package/demos/pc/app/calendar-view/set-working-day.vue +20 -0
  232. package/demos/pc/app/card/basic-usage-composition-api.vue +1 -1
  233. package/demos/pc/app/card/basic-usage.vue +1 -1
  234. package/demos/pc/app/card/card-select-composition-api.vue +165 -0
  235. package/demos/pc/app/card/card-select.vue +175 -0
  236. package/demos/pc/app/card/check-mode-composition-api.vue +101 -0
  237. package/demos/pc/app/card/check-mode.vue +110 -0
  238. package/demos/pc/app/card/custom-class-composition-api.vue +4 -1
  239. package/demos/pc/app/card/custom-class.vue +4 -1
  240. package/demos/pc/app/card/webdoc/card.js +29 -1
  241. package/demos/pc/app/carousel/card-show-composition-api.vue +98 -0
  242. package/demos/pc/app/carousel/card-show.spec.ts +18 -0
  243. package/demos/pc/app/carousel/card-show.vue +104 -0
  244. package/demos/pc/app/carousel/dialog-show-composition-api.vue +56 -0
  245. package/demos/pc/app/carousel/dialog-show.spec.ts +10 -0
  246. package/demos/pc/app/carousel/dialog-show.vue +64 -0
  247. package/demos/pc/app/carousel/swipeable-composition-api.vue +30 -0
  248. package/demos/pc/app/carousel/swipeable.vue +37 -0
  249. package/demos/pc/app/carousel/webdoc/carousel.js +44 -2
  250. package/demos/pc/app/chart/amap/amap.spec.ts-snapshots/base-chromium-win32.png +0 -0
  251. package/demos/pc/app/chart/amap/base-composition-api.vue +1 -1
  252. package/demos/pc/app/chart/amap/base.vue +1 -1
  253. package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/base-chromium-win32.png +0 -0
  254. package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  255. package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  256. package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  257. package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  258. package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
  259. package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/demo7-chromium-win32.png +0 -0
  260. package/demos/pc/app/chart/base-composition-api.vue +8 -0
  261. package/demos/pc/app/chart/base.vue +8 -0
  262. package/demos/pc/app/chart/bmap/base.vue +2 -2
  263. package/demos/pc/app/chart/bmap/bmap.spec.ts-snapshots/base-chromium-win32.png +0 -0
  264. package/demos/pc/app/chart/boxplot/boxplot.spec.ts-snapshots/base-chromium-win32.png +0 -0
  265. package/demos/pc/app/chart/boxplot/boxplot.spec.ts-snapshots/multiple-chromium-win32.png +0 -0
  266. package/demos/pc/app/chart/boxplot/boxplot.spec.ts-snapshots/vertical-chromium-win32.png +0 -0
  267. package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/base-chromium-win32.png +0 -0
  268. package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  269. package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  270. package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  271. package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  272. package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
  273. package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/base-chromium-win32.png +0 -0
  274. package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  275. package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  276. package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  277. package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  278. package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
  279. package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo7-chromium-win32.png +0 -0
  280. package/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/base-chromium-win32.png +0 -0
  281. package/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  282. package/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  283. package/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  284. package/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  285. package/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
  286. package/demos/pc/app/chart/graph/graph.spec.ts-snapshots/base-chromium-win32.png +0 -0
  287. package/demos/pc/app/chart/graph/graph.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  288. package/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/base-chromium-win32.png +0 -0
  289. package/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  290. package/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  291. package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/base-chromium-win32.png +0 -0
  292. package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  293. package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  294. package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  295. package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  296. package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
  297. package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo7-chromium-win32.png +0 -0
  298. package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo8-chromium-win32.png +0 -0
  299. package/demos/pc/app/chart/line/line.spec.ts-snapshots/base-chromium-win32.png +0 -0
  300. package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  301. package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  302. package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  303. package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
  304. package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo7-chromium-win32.png +0 -0
  305. package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo8-chromium-win32.png +0 -0
  306. package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo9-chromium-win32.png +0 -0
  307. package/demos/pc/app/chart/map/map.spec.ts-snapshots/base-chromium-win32.png +0 -0
  308. package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/base-chromium-win32.png +0 -0
  309. package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  310. package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  311. package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  312. package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  313. package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
  314. package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo7-chromium-win32.png +0 -0
  315. package/demos/pc/app/chart/process/process.spec.ts +0 -18
  316. package/demos/pc/app/chart/process/process.spec.ts-snapshots/base-chromium-win32.png +0 -0
  317. package/demos/pc/app/chart/process/process.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  318. package/demos/pc/app/chart/process/process.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  319. package/demos/pc/app/chart/process/process.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  320. package/demos/pc/app/chart/process/process.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  321. package/demos/pc/app/chart/process/process.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
  322. package/demos/pc/app/chart/radar/radar.spec.ts-snapshots/base-chromium-win32.png +0 -0
  323. package/demos/pc/app/chart/radar/radar.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  324. package/demos/pc/app/chart/radar/radar.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  325. package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/base-chromium-win32.png +0 -0
  326. package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  327. package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  328. package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  329. package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  330. package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
  331. package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/ring-title-chromium-win32.png +0 -0
  332. package/demos/pc/app/chart/sankey/sankey.spec.ts-snapshots/base-chromium-win32.png +0 -0
  333. package/demos/pc/app/chart/sankey/sankey.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  334. package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/base-chromium-win32.png +0 -0
  335. package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  336. package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  337. package/demos/pc/app/chart/sunburst/sunburst.spec.ts-snapshots/base-chromium-win32.png +0 -0
  338. package/demos/pc/app/chart/sunburst/sunburst.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  339. package/demos/pc/app/chart/sunburst/sunburst.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  340. package/demos/pc/app/chart/tree/tree.spec.ts-snapshots/base-chromium-win32.png +0 -0
  341. package/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  342. package/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  343. package/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  344. package/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  345. package/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/base-chromium-win32.png +0 -0
  346. package/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  347. package/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  348. package/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  349. package/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/base-chromium-win32.png +0 -0
  350. package/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  351. package/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  352. package/demos/pc/app/collapse/accordion-composition-api.vue +3 -6
  353. package/demos/pc/app/collapse/accordion.vue +4 -6
  354. package/demos/pc/app/collapse/basic-usage-composition-api.vue +2 -4
  355. package/demos/pc/app/collapse/basic-usage.vue +2 -4
  356. package/demos/pc/app/collapse/before-close-composition-api.vue +2 -4
  357. package/demos/pc/app/collapse/before-close.vue +2 -4
  358. package/demos/pc/app/collapse/disable-composition-api.vue +2 -4
  359. package/demos/pc/app/collapse/disable.vue +2 -4
  360. package/demos/pc/app/collapse/events-composition-api.vue +2 -4
  361. package/demos/pc/app/collapse/events.vue +2 -4
  362. package/demos/pc/app/collapse/icon-composition-api.vue +7 -7
  363. package/demos/pc/app/collapse/icon.vue +7 -8
  364. package/demos/pc/app/collapse/nested-content-composition-api.vue +2 -4
  365. package/demos/pc/app/collapse/nested-content.vue +2 -4
  366. package/demos/pc/app/collapse/title-composition-api.vue +2 -4
  367. package/demos/pc/app/collapse/title.vue +2 -4
  368. package/demos/pc/app/collapse/webdoc/collapse.js +2 -2
  369. package/demos/pc/app/color/auxiliary-color.spec.js +5 -11
  370. package/demos/pc/app/color/main-color.spec.js +5 -8
  371. package/demos/pc/app/color/neutral-color.spec.js +2 -7
  372. package/demos/pc/app/color-picker/dynamic-color-change-composition-api.vue +1 -0
  373. package/demos/pc/app/color-picker/dynamic-color-change.vue +1 -0
  374. package/demos/pc/app/color-picker/history-composition-api.vue +14 -10
  375. package/demos/pc/app/color-picker/history.vue +1 -0
  376. package/demos/pc/app/color-picker/predefine-composition-api.vue +13 -9
  377. package/demos/pc/app/color-picker/predefine.vue +1 -0
  378. package/demos/pc/app/color-picker/size-composition-api.vue +9 -2
  379. package/demos/pc/app/color-picker/size.vue +10 -3
  380. package/demos/pc/app/company/basic-usage-composition-api.vue +8 -0
  381. package/demos/pc/app/company/basic-usage.vue +8 -0
  382. package/demos/pc/app/config-provider/text-direct-composition-api.vue +8 -5
  383. package/demos/pc/app/config-provider/text-direct.spec.ts +0 -2
  384. package/demos/pc/app/config-provider/text-direct.vue +8 -5
  385. package/demos/pc/app/container/basic-usage-composition-api.vue +11 -4
  386. package/demos/pc/app/container/basic-usage.vue +12 -4
  387. package/demos/pc/app/container/custom-with-height-composition-api.vue +11 -4
  388. package/demos/pc/app/container/custom-with-height.vue +11 -4
  389. package/demos/pc/app/country/basic-usage-composition-api.vue +8 -0
  390. package/demos/pc/app/country/basic-usage.vue +8 -0
  391. package/demos/pc/app/crop/crop-meth.spec.ts +0 -6
  392. package/demos/pc/app/currency/basic-usage-composition-api.vue +8 -0
  393. package/demos/pc/app/currency/basic-usage.vue +8 -0
  394. package/demos/pc/app/currency/set-default-composition-api..vue +10 -0
  395. package/demos/pc/app/currency/set-default-custom-service-composition-api..vue +43 -0
  396. package/demos/pc/app/currency/set-default-custom-service.vue +50 -0
  397. package/demos/pc/app/currency/set-default.vue +18 -0
  398. package/demos/pc/app/currency/size-composition-api.vue +8 -0
  399. package/demos/pc/app/currency/size.vue +8 -0
  400. package/demos/pc/app/currency/webdoc/currency.js +27 -0
  401. package/demos/pc/app/date-picker/align-composition-api.vue +5 -0
  402. package/demos/pc/app/date-picker/align.vue +5 -0
  403. package/demos/pc/app/date-picker/clear-composition-api.vue +5 -2
  404. package/demos/pc/app/date-picker/clear.vue +5 -0
  405. package/demos/pc/app/date-picker/custom-weeks-composition-api.vue +10 -3
  406. package/demos/pc/app/date-picker/custom-weeks.vue +10 -3
  407. package/demos/pc/app/date-picker/default-value-composition-api.vue +1 -0
  408. package/demos/pc/app/date-picker/default-value.vue +1 -0
  409. package/demos/pc/app/date-picker/disabled-composition-api.vue +3 -3
  410. package/demos/pc/app/date-picker/disabled.vue +3 -3
  411. package/demos/pc/app/date-picker/format-composition-api.vue +9 -2
  412. package/demos/pc/app/date-picker/format.vue +10 -3
  413. package/demos/pc/app/date-picker/shortcuts-composition-api.vue +1 -1
  414. package/demos/pc/app/date-picker/shortcuts.vue +1 -1
  415. package/demos/pc/app/date-picker/step-composition-api.vue +5 -0
  416. package/demos/pc/app/date-picker/step.vue +3 -0
  417. package/demos/pc/app/date-picker/timezone-composition-api.vue +5 -0
  418. package/demos/pc/app/date-picker/timezone.vue +5 -0
  419. package/demos/pc/app/date-picker/unlink-panels-composition-api.vue +4 -1
  420. package/demos/pc/app/date-picker/unlink-panels.vue +4 -1
  421. package/demos/pc/app/dept/before-confirm-composition-api.vue +6 -1
  422. package/demos/pc/app/dept/before-confirm.vue +6 -1
  423. package/demos/pc/app/dept/dept-cancel-composition-api.vue +5 -0
  424. package/demos/pc/app/dept/dept-cancel.vue +5 -0
  425. package/demos/pc/app/dept/dept-confirm-composition-api.vue +5 -0
  426. package/demos/pc/app/dept/dept-confirm.vue +5 -0
  427. package/demos/pc/app/dialog-box/lock-scroll-composition-api.vue +32 -10
  428. package/demos/pc/app/dialog-box/lock-scroll.vue +32 -11
  429. package/demos/pc/app/directives/auto-tip/always-show-composition-api.vue +43 -0
  430. package/demos/pc/app/directives/auto-tip/always-show.spec.js +12 -0
  431. package/demos/pc/app/directives/auto-tip/always-show.vue +50 -0
  432. package/demos/pc/app/directives/auto-tip/basic-usage-composition-api.vue +16 -0
  433. package/demos/pc/app/directives/auto-tip/basic-usage.spec.js +9 -0
  434. package/demos/pc/app/directives/auto-tip/basic-usage.vue +20 -0
  435. package/demos/pc/app/directives/webdoc/directives-auto-tip.cn.md +7 -0
  436. package/demos/pc/app/directives/webdoc/directives-auto-tip.en.md +7 -0
  437. package/demos/pc/app/directives/webdoc/directives-auto-tip.js +46 -0
  438. package/demos/pc/app/drawer/before-close-composition-api.vue +12 -11
  439. package/demos/pc/app/drawer/before-close.spec.ts +2 -2
  440. package/demos/pc/app/drawer/before-close.vue +10 -10
  441. package/demos/pc/app/drawer/dragable-composition-api.vue +14 -3
  442. package/demos/pc/app/drawer/dragable.vue +12 -2
  443. package/demos/pc/app/drawer/events-composition-api.vue +45 -0
  444. package/demos/pc/app/drawer/events.spec.ts +35 -0
  445. package/demos/pc/app/drawer/events.vue +55 -0
  446. package/demos/pc/app/drawer/use-through-method-composition-api.vue +53 -0
  447. package/demos/pc/app/drawer/use-through-method.spec.ts +14 -0
  448. package/demos/pc/app/drawer/use-through-method.vue +60 -0
  449. package/demos/pc/app/drawer/webdoc/drawer.js +31 -19
  450. package/demos/pc/app/drop-roles/basic-usage-composition-api.vue +8 -0
  451. package/demos/pc/app/drop-roles/basic-usage.vue +8 -0
  452. package/demos/pc/app/drop-roles/size-composition-api.vue +8 -0
  453. package/demos/pc/app/drop-roles/size.vue +8 -0
  454. package/demos/pc/app/drop-times/basic-usage-composition-api.vue +1 -0
  455. package/demos/pc/app/drop-times/basic-usage.vue +1 -0
  456. package/demos/pc/app/dropdown/disabled-composition-api.vue +11 -3
  457. package/demos/pc/app/dropdown/disabled.vue +8 -3
  458. package/demos/pc/app/dropdown/events-composition-api.vue +7 -4
  459. package/demos/pc/app/dropdown/events.vue +6 -2
  460. package/demos/pc/app/dropdown/inherit-width-composition-api.vue +14 -3
  461. package/demos/pc/app/dropdown/inherit-width.vue +14 -3
  462. package/demos/pc/app/dropdown/options.spec.ts +1 -1
  463. package/demos/pc/app/dropdown/size-composition-api.vue +13 -3
  464. package/demos/pc/app/dropdown/size.vue +13 -3
  465. package/demos/pc/app/dropdown/split-button-composition-api.vue +8 -1
  466. package/demos/pc/app/dropdown/split-button.vue +8 -1
  467. package/demos/pc/app/file-upload/drag-upload-composition-api.vue +9 -1
  468. package/demos/pc/app/file-upload/drag-upload.vue +9 -1
  469. package/demos/pc/app/flowchart/basic-usage-composition-api.vue +4 -5
  470. package/demos/pc/app/flowchart/basic-usage.vue +4 -4
  471. package/demos/pc/app/font/Font-usage-specifications-composition-api.vue +1 -1
  472. package/demos/pc/app/font/Font-usage-specifications.vue +1 -1
  473. package/demos/pc/app/font/chinese-font-set-composition-api.vue +13 -2
  474. package/demos/pc/app/font/chinese-font-set.vue +13 -2
  475. package/demos/pc/app/font/english-fonts-composition-api.vue +13 -2
  476. package/demos/pc/app/font/english-fonts.vue +13 -2
  477. package/demos/pc/app/form/form-in-row-composition-api.vue +2 -2
  478. package/demos/pc/app/form/form-in-row.spec.js +1 -1
  479. package/demos/pc/app/form/form-in-row.vue +2 -2
  480. package/demos/pc/app/form/form-validate-field-composition-api.vue +1 -1
  481. package/demos/pc/app/form/form-validate-field.vue +1 -1
  482. package/demos/pc/app/form/form-validation-composition-api.vue +1 -1
  483. package/demos/pc/app/form/form-validation.vue +1 -1
  484. package/demos/pc/app/fullscreen/before-change-composition-api.vue +16 -8
  485. package/demos/pc/app/fullscreen/before-change.vue +16 -8
  486. package/demos/pc/app/fullscreen/example-api-composition-api.vue +7 -2
  487. package/demos/pc/app/fullscreen/example-api.vue +7 -2
  488. package/demos/pc/app/fullscreen/example-component-composition-api.vue +13 -8
  489. package/demos/pc/app/fullscreen/example-component.vue +13 -8
  490. package/demos/pc/app/grid/custom/column-simple.spec.js +3 -3
  491. package/demos/pc/app/grid/custom/page-size.spec.js +4 -3
  492. package/demos/pc/app/grid/data-source/auto-load.spec.js +2 -2
  493. package/demos/pc/app/grid/drag/multi-header-drag-composition-api.vue +156 -0
  494. package/demos/pc/app/grid/drag/multi-header-drag.spec.js +40 -0
  495. package/demos/pc/app/grid/drag/multi-header-drag.vue +166 -0
  496. package/demos/pc/app/grid/drag/row-drag-composition-api.vue +3 -1
  497. package/demos/pc/app/grid/drag/row-drag.spec.js +2 -2
  498. package/demos/pc/app/grid/drag/row-drag.vue +3 -1
  499. package/demos/pc/app/grid/dynamically-columns/dynamic-slot-composition-api.vue +88 -0
  500. package/demos/pc/app/grid/dynamically-columns/dynamic-slot.spec.js +14 -0
  501. package/demos/pc/app/grid/dynamically-columns/dynamic-slot.vue +97 -0
  502. package/demos/pc/app/grid/dynamically-columns/reverse-columns-composition-api.vue +58 -0
  503. package/demos/pc/app/grid/dynamically-columns/reverse-columns.spec.js +16 -0
  504. package/demos/pc/app/grid/dynamically-columns/reverse-columns.vue +68 -0
  505. package/demos/pc/app/grid/edit/status-of-editing-composition-api.vue +21 -2
  506. package/demos/pc/app/grid/edit/status-of-editing.spec.js +6 -0
  507. package/demos/pc/app/grid/edit/status-of-editing.vue +21 -2
  508. package/demos/pc/app/grid/editor/mutil-render.spec.js +1 -1
  509. package/demos/pc/app/grid/expand/has-row-expand.spec.js +4 -3
  510. package/demos/pc/app/grid/expand/set-row-expansion.spec.js +3 -3
  511. package/demos/pc/app/grid/faq/custom-column-composition-api.vue +48 -0
  512. package/demos/pc/app/grid/faq/custom-column.vue +57 -0
  513. package/demos/pc/app/grid/filter/request-service-reload-filter-composition-api.vue +141 -0
  514. package/demos/pc/app/grid/filter/request-service-reload-filter.spec.js +19 -0
  515. package/demos/pc/app/grid/filter/request-service-reload-filter.vue +146 -0
  516. package/demos/pc/app/grid/filter/simple-filter-composition-api.vue +1 -1
  517. package/demos/pc/app/grid/filter/simple-filter.vue +1 -1
  518. package/demos/pc/app/grid/header/many-header-switching-composition-api.vue +105 -0
  519. package/demos/pc/app/grid/header/many-header-switching.spec.js +11 -0
  520. package/demos/pc/app/grid/header/many-header-switching.vue +115 -0
  521. package/demos/pc/app/grid/large-data/column-anchor-composition-api.vue +72 -62
  522. package/demos/pc/app/grid/large-data/column-anchor.spec.js +15 -0
  523. package/demos/pc/app/grid/large-data/column-anchor.vue +72 -62
  524. package/demos/pc/app/grid/mouse-keyboard/keyboard-config.spec.js +2 -1
  525. package/demos/pc/app/grid/operation-column/radio-config-composition-api.vue +1 -1
  526. package/demos/pc/app/grid/operation-column/radio-config.vue +1 -1
  527. package/demos/pc/app/grid/operation-column/selection-config.spec.js +14 -3
  528. package/demos/pc/app/grid/renderer/inner-renderer-date.spec.js +1 -1
  529. package/demos/pc/app/grid/row-grouping/row-group-render-composition-api.vue +55 -29
  530. package/demos/pc/app/grid/row-grouping/row-group-render.spec.js +6 -0
  531. package/demos/pc/app/grid/row-grouping/row-group-render.vue +49 -25
  532. package/demos/pc/app/grid/row-grouping/row-group-scroll-composition-api.vue +110 -0
  533. package/demos/pc/app/grid/row-grouping/row-group-scroll.spec.js +13 -0
  534. package/demos/pc/app/grid/row-grouping/row-group-scroll.vue +119 -0
  535. package/demos/pc/app/grid/row-grouping/row-grouping-colspan-composition-api.vue +137 -0
  536. package/demos/pc/app/grid/row-grouping/row-grouping-colspan.spec.js +8 -0
  537. package/demos/pc/app/grid/row-grouping/row-grouping-colspan.vue +146 -0
  538. package/demos/pc/app/grid/row-grouping/row-grouping-composition-api.vue +3 -2
  539. package/demos/pc/app/grid/row-grouping/row-grouping.vue +2 -1
  540. package/demos/pc/app/grid/slot/editor-slot-composition-api.vue +25 -7
  541. package/demos/pc/app/grid/slot/editor-slot.spec.js +18 -0
  542. package/demos/pc/app/grid/slot/editor-slot.vue +22 -8
  543. package/demos/pc/app/grid/tip/column-header-tip.spec.js +1 -4
  544. package/demos/pc/app/grid/toolbar/copy-row-data.spec.js +1 -1
  545. package/demos/pc/app/grid/toolbar/toolbar-op-config-slots-composition-api.vue +76 -0
  546. package/demos/pc/app/grid/toolbar/toolbar-op-config-slots.spec.js +7 -0
  547. package/demos/pc/app/grid/toolbar/toolbar-op-config-slots.vue +85 -0
  548. package/demos/pc/app/grid/tree-table/tree-grid-index.spec.js +1 -1
  549. package/demos/pc/app/grid/validation/bubbling.spec.js +1 -1
  550. package/demos/pc/app/grid/webdoc/grid-drag.js +12 -3
  551. package/demos/pc/app/grid/webdoc/grid-dynamically-columns.js +18 -0
  552. package/demos/pc/app/grid/webdoc/grid-faq.js +13 -0
  553. package/demos/pc/app/grid/webdoc/grid-filter.js +9 -0
  554. package/demos/pc/app/grid/webdoc/grid-header.js +9 -0
  555. package/demos/pc/app/grid/webdoc/grid-mouse-keyboard.js +5 -2
  556. package/demos/pc/app/grid/webdoc/grid-row-grouping.js +25 -2
  557. package/demos/pc/app/grid/webdoc/grid-toolbar.js +11 -0
  558. package/demos/pc/app/icon/basic-usage-composition-api.vue +2 -3
  559. package/demos/pc/app/icon/basic-usage.vue +2 -3
  560. package/demos/pc/app/icon/show-title-composition-api.vue +1 -2
  561. package/demos/pc/app/icon/show-title.vue +1 -2
  562. package/demos/pc/app/image/custom-placeholder-composition-api.vue +5 -0
  563. package/demos/pc/app/image/custom-placeholder.vue +5 -0
  564. package/demos/pc/app/image/slot-composition-api.vue +5 -0
  565. package/demos/pc/app/image/slot.vue +5 -0
  566. package/demos/pc/app/input/display-only-composition-api.vue +18 -0
  567. package/demos/pc/app/input/display-only-popup-more-composition-api.vue +18 -0
  568. package/demos/pc/app/input/display-only-popup-more.vue +27 -0
  569. package/demos/pc/app/input/display-only.vue +19 -1
  570. package/demos/pc/app/input/native-composition-api.vue +8 -2
  571. package/demos/pc/app/input/native.vue +8 -2
  572. package/demos/pc/app/input/resize-composition-api.vue +1 -1
  573. package/demos/pc/app/input/resize.spec.ts +25 -11
  574. package/demos/pc/app/input/resize.vue +20 -9
  575. package/demos/pc/app/input/show-word-limit-composition-api.vue +1 -0
  576. package/demos/pc/app/input/show-word-limit.vue +1 -0
  577. package/demos/pc/app/input/validate-event.spec.ts +2 -1
  578. package/demos/pc/app/input/webdoc/input.js +35 -6
  579. package/demos/pc/app/layout/basic-usage-composition-api.vue +4 -1
  580. package/demos/pc/app/layout/basic-usage.vue +4 -1
  581. package/demos/pc/app/layout/responsive-layout.spec.ts +2 -0
  582. package/demos/pc/app/loading/size-composition-api.vue +6 -3
  583. package/demos/pc/app/logout/basic-usage-composition-api.vue +8 -1
  584. package/demos/pc/app/logout/basic-usage.vue +8 -1
  585. package/demos/pc/app/milestone/basic-usage-composition-api.vue +9 -1
  586. package/demos/pc/app/milestone/basic-usage.vue +9 -1
  587. package/demos/pc/app/milestone/custom-bottom-top-composition-api.vue +16 -8
  588. package/demos/pc/app/milestone/custom-bottom-top.vue +16 -8
  589. package/demos/pc/app/milestone/custom-flag-composition-api.vue +13 -5
  590. package/demos/pc/app/milestone/custom-flag.vue +13 -5
  591. package/demos/pc/app/milestone/custom-icon-slot-composition-api.vue +13 -5
  592. package/demos/pc/app/milestone/custom-icon-slot.vue +13 -5
  593. package/demos/pc/app/milestone/data-field-mapping-composition-api.vue +20 -12
  594. package/demos/pc/app/milestone/data-field-mapping.vue +20 -12
  595. package/demos/pc/app/milestone/flag-before-composition-api.vue +7 -1
  596. package/demos/pc/app/milestone/flag-before.vue +7 -1
  597. package/demos/pc/app/milestone/line-style-composition-api.vue +14 -1
  598. package/demos/pc/app/milestone/line-style.spec.ts +1 -1
  599. package/demos/pc/app/milestone/line-style.vue +14 -1
  600. package/demos/pc/app/milestone/milestone-events-composition-api.vue +14 -6
  601. package/demos/pc/app/milestone/milestone-events.vue +14 -6
  602. package/demos/pc/app/milestone/show-number-composition-api.vue +7 -1
  603. package/demos/pc/app/milestone/show-number.spec.ts +2 -3
  604. package/demos/pc/app/milestone/show-number.vue +7 -1
  605. package/demos/pc/app/milestone/solid-style-composition-api.vue +7 -1
  606. package/demos/pc/app/milestone/solid-style.spec.ts +2 -3
  607. package/demos/pc/app/milestone/solid-style.vue +7 -1
  608. package/demos/pc/app/modal/basic-usage.spec.ts +2 -2
  609. package/demos/pc/app/numeric/change-event-composition-api.vue +3 -2
  610. package/demos/pc/app/numeric/change-event.vue +3 -2
  611. package/demos/pc/app/numeric/controls-composition-api.vue +5 -0
  612. package/demos/pc/app/numeric/controls.vue +5 -0
  613. package/demos/pc/app/numeric/precision-composition-api.vue +5 -0
  614. package/demos/pc/app/numeric/precision.vue +5 -0
  615. package/demos/pc/app/pop-upload/custom-request-headers.spec.ts +2 -3
  616. package/demos/pc/app/popeditor/draggable-composition-api.vue +10 -2
  617. package/demos/pc/app/popeditor/draggable.vue +10 -2
  618. package/demos/pc/app/popeditor/events-composition-api.vue +6 -4
  619. package/demos/pc/app/popeditor/events.spec.ts +3 -1
  620. package/demos/pc/app/popeditor/events.vue +6 -4
  621. package/demos/pc/app/popeditor/suggest-composition-api.vue +1 -0
  622. package/demos/pc/app/popeditor/suggest.vue +1 -0
  623. package/demos/pc/app/popover/ignore-boundaries-composition-api.vue +72 -0
  624. package/demos/pc/app/popover/ignore-boundaries.spec.js +15 -0
  625. package/demos/pc/app/popover/ignore-boundaries.vue +80 -0
  626. package/demos/pc/app/popover/webdoc/popover.js +18 -0
  627. package/demos/pc/app/progress/custom-status-composition-api.vue +8 -4
  628. package/demos/pc/app/progress/custom-status.vue +8 -4
  629. package/demos/pc/app/radio/display-only-composition-api.vue +8 -2
  630. package/demos/pc/app/radio/display-only.vue +8 -2
  631. package/demos/pc/app/rich-text-editor/basic-usage-composition-api.vue +1 -1
  632. package/demos/pc/app/search/events-composition-api.vue +7 -0
  633. package/demos/pc/app/search/events.vue +7 -0
  634. package/demos/pc/app/select/all-text-composition-api.vue +7 -0
  635. package/demos/pc/app/select/all-text.vue +7 -0
  636. package/demos/pc/app/select/automatic-dropdown-composition-api.vue +3 -0
  637. package/demos/pc/app/select/automatic-dropdown.vue +3 -0
  638. package/demos/pc/app/select/binding-obj-composition-api.vue +1 -0
  639. package/demos/pc/app/select/binding-obj.vue +1 -0
  640. package/demos/pc/app/select/clear-no-match-value-composition-api.vue +3 -0
  641. package/demos/pc/app/select/clear-no-match-value.vue +3 -0
  642. package/demos/pc/app/select/collapse-tags-composition-api.vue +4 -1
  643. package/demos/pc/app/select/collapse-tags.spec.ts +3 -3
  644. package/demos/pc/app/select/collapse-tags.vue +4 -1
  645. package/demos/pc/app/select/copy-multi-composition-api.vue +6 -0
  646. package/demos/pc/app/select/copy-multi.vue +7 -0
  647. package/demos/pc/app/select/copy-single-composition-api.vue +7 -0
  648. package/demos/pc/app/select/copy-single.vue +7 -0
  649. package/demos/pc/app/select/disabled-composition-api.vue +1 -0
  650. package/demos/pc/app/select/disabled.vue +1 -0
  651. package/demos/pc/app/select/events-composition-api.vue +3 -0
  652. package/demos/pc/app/select/filter-method-composition-api.vue +3 -0
  653. package/demos/pc/app/select/filter-method.vue +3 -0
  654. package/demos/pc/app/select/init-label-composition-api.vue +57 -0
  655. package/demos/pc/app/select/init-label.vue +65 -0
  656. package/demos/pc/app/select/input-box-type-composition-api.vue +6 -0
  657. package/demos/pc/app/select/input-box-type.vue +6 -0
  658. package/demos/pc/app/select/is-drop-inherit-width-composition-api.vue +3 -0
  659. package/demos/pc/app/select/is-drop-inherit-width.vue +3 -0
  660. package/demos/pc/app/select/map-field-composition-api.vue +3 -0
  661. package/demos/pc/app/select/map-field.vue +3 -0
  662. package/demos/pc/app/select/memoize-usage-composition-api.vue +1 -0
  663. package/demos/pc/app/select/memoize-usage.vue +1 -0
  664. package/demos/pc/app/select/multiple-mix-composition-api.vue +3 -0
  665. package/demos/pc/app/select/multiple-mix.vue +3 -0
  666. package/demos/pc/app/select/nest-grid-composition-api.vue +5 -0
  667. package/demos/pc/app/select/nest-grid-disable-composition-api.vue +3 -0
  668. package/demos/pc/app/select/nest-grid-remote-composition-api.vue +7 -0
  669. package/demos/pc/app/select/nest-grid-remote.vue +7 -0
  670. package/demos/pc/app/select/nest-grid.vue +5 -0
  671. package/demos/pc/app/select/nest-tree-composition-api.vue +5 -0
  672. package/demos/pc/app/select/no-data-text-composition-api.vue +5 -0
  673. package/demos/pc/app/select/no-data-text.vue +5 -0
  674. package/demos/pc/app/select/optimization-composition-api.vue +3 -0
  675. package/demos/pc/app/select/optimization.vue +3 -0
  676. package/demos/pc/app/select/searchable.spec.ts +1 -1
  677. package/demos/pc/app/select/size-composition-api.vue +10 -0
  678. package/demos/pc/app/select/size.spec.ts +1 -1
  679. package/demos/pc/app/select/size.vue +10 -0
  680. package/demos/pc/app/select/slot-default-composition-api.vue +3 -0
  681. package/demos/pc/app/select/slot-default.vue +3 -0
  682. package/demos/pc/app/select/webdoc/select.js +21 -3
  683. package/demos/pc/app/split/basic-usage-composition-api.vue +5 -1
  684. package/demos/pc/app/split/basic-usage.vue +5 -1
  685. package/demos/pc/app/split/disabled-drag-composition-api.vue +5 -1
  686. package/demos/pc/app/split/disabled-drag.vue +5 -1
  687. package/demos/pc/app/split/event-click-composition-api.vue +5 -2
  688. package/demos/pc/app/split/event-click.vue +5 -2
  689. package/demos/pc/app/split/horizontal-collapse-composition-api.vue +5 -2
  690. package/demos/pc/app/split/horizontal-collapse-left-top-composition-api.vue +5 -1
  691. package/demos/pc/app/split/horizontal-collapse-left-top.vue +5 -1
  692. package/demos/pc/app/split/horizontal-collapse.vue +5 -2
  693. package/demos/pc/app/split/left-right-slot-composition-api.vue +5 -1
  694. package/demos/pc/app/split/left-right-slot.vue +5 -1
  695. package/demos/pc/app/split/moveend-event-composition-api.vue +5 -1
  696. package/demos/pc/app/split/moveend-event.vue +5 -1
  697. package/demos/pc/app/split/movestart-event-composition-api.vue +5 -1
  698. package/demos/pc/app/split/movestart-event.vue +5 -1
  699. package/demos/pc/app/split/moving-event-composition-api.vue +5 -1
  700. package/demos/pc/app/split/moving-event.vue +5 -1
  701. package/demos/pc/app/split/nested-use-composition-api.vue +5 -1
  702. package/demos/pc/app/split/nested-use.vue +5 -1
  703. package/demos/pc/app/split/split-mode-composition-api.vue +5 -1
  704. package/demos/pc/app/split/split-mode.vue +5 -1
  705. package/demos/pc/app/split/split-threshold-composition-api.vue +5 -1
  706. package/demos/pc/app/split/split-threshold.vue +5 -1
  707. package/demos/pc/app/split/top-bottom-slot-composition-api.vue +5 -1
  708. package/demos/pc/app/split/top-bottom-slot.vue +5 -1
  709. package/demos/pc/app/split/trigger-simple-composition-api.vue +5 -1
  710. package/demos/pc/app/split/trigger-simple.vue +5 -1
  711. package/demos/pc/app/split/trigger-slot-composition-api.vue +5 -1
  712. package/demos/pc/app/split/trigger-slot.vue +5 -1
  713. package/demos/pc/app/statistic/basic-usage.spec.ts +2 -14
  714. package/demos/pc/app/statistic/prefix-suffix-slot-composition-api.vue +12 -6
  715. package/demos/pc/app/statistic/prefix-suffix-slot.spec.ts +19 -0
  716. package/demos/pc/app/statistic/prefix-suffix-slot.vue +12 -6
  717. package/demos/pc/app/statistic/statistic-slot-composition-api.vue +4 -1
  718. package/demos/pc/app/statistic/statistic-slot.spec.ts +2 -4
  719. package/demos/pc/app/statistic/statistic-slot.vue +4 -1
  720. package/demos/pc/app/statistic/statistic-style-composition-api.vue +5 -4
  721. package/demos/pc/app/statistic/statistic-style.spec.ts +6 -1
  722. package/demos/pc/app/statistic/statistic-style.vue +5 -4
  723. package/demos/pc/app/statistic/webdoc/statistic.js +1 -1
  724. package/demos/pc/app/steps/advanced-steps-composition-api.vue +2 -0
  725. package/demos/pc/app/steps/advanced-steps.vue +2 -0
  726. package/demos/pc/app/steps/node-width-composition-api.vue +9 -1
  727. package/demos/pc/app/steps/node-width.vue +9 -1
  728. package/demos/pc/app/steps/size-composition-api.vue +16 -0
  729. package/demos/pc/app/steps/size.vue +16 -0
  730. package/demos/pc/app/tabs/basic-usage-composition-api.vue +1 -1
  731. package/demos/pc/app/tabs/basic-usage.vue +1 -1
  732. package/demos/pc/app/tabs/custom-tab-title-composition-api.vue +9 -2
  733. package/demos/pc/app/tabs/custom-tab-title.vue +9 -2
  734. package/demos/pc/app/tag/color-border-composition-api.vue +35 -0
  735. package/demos/pc/app/tag/color-border.spec.ts +16 -0
  736. package/demos/pc/app/tag/color-border.vue +41 -0
  737. package/demos/pc/app/tag/webdoc/tag.js +2 -2
  738. package/demos/pc/app/time-line/custom-field-composition-api.vue +8 -1
  739. package/demos/pc/app/time-line/custom-field.vue +8 -1
  740. package/demos/pc/app/time-line/custom-horizontal-timeline-composition-api.vue +1 -0
  741. package/demos/pc/app/time-line/custom-horizontal-timeline.vue +1 -0
  742. package/demos/pc/app/time-line/custom-vertical-timeline-composition-api.vue +2 -0
  743. package/demos/pc/app/time-line/custom-vertical-timeline.vue +2 -0
  744. package/demos/pc/app/time-line/set-node-width-composition-api.vue +2 -0
  745. package/demos/pc/app/time-line/set-node-width.vue +2 -0
  746. package/demos/pc/app/time-line/show-divider.spec.ts +1 -1
  747. package/demos/pc/app/time-line/slot-description-composition-api.vue +1 -1
  748. package/demos/pc/app/time-line/slot-description.vue +1 -1
  749. package/demos/pc/app/time-line/status-composition-api.vue +9 -2
  750. package/demos/pc/app/time-line/status.spec.ts +3 -3
  751. package/demos/pc/app/time-line/status.vue +9 -2
  752. package/demos/pc/app/time-line/timeline-item-composition-api.vue +2 -1
  753. package/demos/pc/app/time-line/timeline-item.vue +2 -1
  754. package/demos/pc/app/time-line/vertical-timeline-composition-api.vue +9 -1
  755. package/demos/pc/app/time-line/vertical-timeline.vue +9 -1
  756. package/demos/pc/app/time-line/webdoc/time-line.js +4 -5
  757. package/demos/pc/app/time-line-new/basic-usage.vue +32 -0
  758. package/demos/pc/app/time-line-new/custom-normal-step.vue +39 -0
  759. package/demos/pc/app/time-line-new/custom-vertical-step.vue +39 -0
  760. package/demos/pc/app/time-line-new/different-data1.vue +44 -0
  761. package/demos/pc/app/time-line-new/different-data2.vue +36 -0
  762. package/demos/pc/app/time-line-new/event.vue +29 -0
  763. package/demos/pc/app/time-line-new/node-toset1.vue +35 -0
  764. package/demos/pc/app/time-line-new/node-toset2.vue +36 -0
  765. package/demos/pc/app/time-line-new/set-start-value.vue +32 -0
  766. package/demos/pc/app/time-line-new/show-number.vue +28 -0
  767. package/demos/pc/app/time-line-new/show-status.vue +32 -0
  768. package/demos/pc/app/time-line-new/vertical1.vue +28 -0
  769. package/demos/pc/app/time-line-new/vertical2.vue +29 -0
  770. package/demos/pc/app/time-line-new/webdoc/time-line-new.cn.md +7 -0
  771. package/demos/pc/app/time-line-new/webdoc/time-line-new.en.md +7 -0
  772. package/demos/pc/app/time-line-new/webdoc/time-line-new.js +184 -0
  773. package/demos/pc/app/time-line-new/width.vue +28 -0
  774. package/demos/pc/app/time-picker/basic-usage-composition-api.vue +5 -0
  775. package/demos/pc/app/time-picker/basic-usage.vue +5 -0
  776. package/demos/pc/app/time-picker/clearable-composition-api.vue +8 -11
  777. package/demos/pc/app/time-picker/clearable.vue +8 -11
  778. package/demos/pc/app/time-picker/default-value-composition-api.vue +5 -0
  779. package/demos/pc/app/time-picker/default-value.vue +5 -0
  780. package/demos/pc/app/time-picker/disabled-composition-api.vue +5 -4
  781. package/demos/pc/app/time-picker/disabled.vue +5 -4
  782. package/demos/pc/app/time-picker/format-composition-api.vue +6 -4
  783. package/demos/pc/app/time-picker/format.vue +6 -4
  784. package/demos/pc/app/time-picker/placeholder-composition-api.vue +5 -0
  785. package/demos/pc/app/time-picker/placeholder.vue +5 -0
  786. package/demos/pc/app/tree/webdoc/tree.js +4 -2
  787. package/demos/pc/app/tree-menu/clearable-composition-api.vue +192 -0
  788. package/demos/pc/app/tree-menu/clearable.spec.ts +20 -0
  789. package/demos/pc/app/tree-menu/clearable.vue +182 -0
  790. package/demos/pc/app/tree-menu/current-node-composition-api.vue +10 -4
  791. package/demos/pc/app/tree-menu/current-node.vue +10 -4
  792. package/demos/pc/app/tree-menu/data-resource-composition-api.vue +1 -0
  793. package/demos/pc/app/tree-menu/data-resource.vue +1 -0
  794. package/demos/pc/app/tree-menu/expand-on-click-node-composition-api.vue +1 -0
  795. package/demos/pc/app/tree-menu/expand-on-click-node.vue +1 -0
  796. package/demos/pc/app/tree-menu/show-checkbox-composition-api.vue +1 -0
  797. package/demos/pc/app/tree-menu/show-checkbox.vue +1 -0
  798. package/demos/pc/app/tree-menu/show-filter-composition-api.vue +1 -0
  799. package/demos/pc/app/tree-menu/show-filter.vue +1 -0
  800. package/demos/pc/app/tree-menu/text-ellipsis-composition-api.vue +1 -0
  801. package/demos/pc/app/tree-menu/text-ellipsis.vue +1 -0
  802. package/demos/pc/app/tree-menu/webdoc/tree-menu.js +13 -0
  803. package/demos/pc/app/tree-select/basic-usage-composition-api.vue +55 -0
  804. package/demos/pc/app/tree-select/basic-usage.spec.ts +20 -0
  805. package/demos/pc/app/tree-select/basic-usage.vue +61 -0
  806. package/demos/pc/app/tree-select/webdoc/tree-select.cn.md +7 -0
  807. package/demos/pc/app/tree-select/webdoc/tree-select.en.md +7 -0
  808. package/demos/pc/app/tree-select/webdoc/tree-select.js +18 -0
  809. package/demos/pc/app/user/batch-composition-api.vue +9 -0
  810. package/demos/pc/app/user/batch.vue +8 -0
  811. package/demos/pc/app/user/cache-users-composition-api.vue +8 -0
  812. package/demos/pc/app/user/cache-users.vue +8 -0
  813. package/demos/pc/app/user/custom-service-composition-api.vue +9 -1
  814. package/demos/pc/app/user/custom-service.vue +8 -0
  815. package/demos/pc/app/user/custom-sort.vue +8 -0
  816. package/demos/pc/app/user/hidden-tips-disable-composition-api.vue +1 -0
  817. package/demos/pc/app/user/hidden-tips-disable.vue +1 -0
  818. package/demos/pc/app/user/user-select-size-composition-api.vue +8 -0
  819. package/demos/pc/app/user/user-select-size.vue +8 -0
  820. package/demos/pc/app/user/value-field-composition-api.vue +8 -0
  821. package/demos/pc/app/user/value-field.vue +8 -0
  822. package/demos/pc/app/user/value-split-composition-api.vue +8 -0
  823. package/demos/pc/app/user/value-split.vue +8 -0
  824. package/demos/pc/app/user-head/render-user-head-in-grid-composition-api.vue +18 -1
  825. package/demos/pc/app/user-head/render-user-head-in-grid.vue +18 -1
  826. package/demos/pc/menus.js +34 -15
  827. package/demos/pc/overviewimage/action-menu.svg +24 -66
  828. package/demos/pc/overviewimage/alert.svg +14 -56
  829. package/demos/pc/overviewimage/amount.svg +6 -48
  830. package/demos/pc/overviewimage/anchor.svg +11 -53
  831. package/demos/pc/overviewimage/area.svg +7 -49
  832. package/demos/pc/overviewimage/autocomplete.svg +22 -64
  833. package/demos/pc/overviewimage/badge.svg +24 -64
  834. package/demos/pc/overviewimage/breadcrumb.svg +13 -55
  835. package/demos/pc/overviewimage/bulletin-board.svg +17 -57
  836. package/demos/pc/overviewimage/button-group.svg +31 -73
  837. package/demos/pc/overviewimage/button.svg +20 -71
  838. package/demos/pc/overviewimage/calendar-view.svg +6 -48
  839. package/demos/pc/overviewimage/calendar.svg +21 -61
  840. package/demos/pc/overviewimage/card.svg +30 -116
  841. package/demos/pc/overviewimage/carousel.svg +30 -70
  842. package/demos/pc/overviewimage/cascader-panel.svg +36 -76
  843. package/demos/pc/overviewimage/cascader.svg +31 -73
  844. package/demos/pc/overviewimage/chart-attributes-demo.svg +25 -37
  845. package/demos/pc/overviewimage/chart-autonavi-map.svg +10 -52
  846. package/demos/pc/overviewimage/chart-baidu-map.svg +4 -46
  847. package/demos/pc/overviewimage/chart-bar.svg +10 -52
  848. package/demos/pc/overviewimage/chart-boxplot.svg +20 -62
  849. package/demos/pc/overviewimage/chart-candle.svg +12 -54
  850. package/demos/pc/overviewimage/chart-events.svg +10 -52
  851. package/demos/pc/overviewimage/chart-funnel.svg +13 -55
  852. package/demos/pc/overviewimage/chart-gauge.svg +14 -56
  853. package/demos/pc/overviewimage/chart-graph.svg +14 -56
  854. package/demos/pc/overviewimage/chart-heatmap.svg +8 -50
  855. package/demos/pc/overviewimage/chart-histogram.svg +14 -56
  856. package/demos/pc/overviewimage/chart-line.svg +9 -51
  857. package/demos/pc/overviewimage/chart-liquidfill.svg +8 -50
  858. package/demos/pc/overviewimage/chart-map.svg +7 -49
  859. package/demos/pc/overviewimage/chart-pie.svg +9 -51
  860. package/demos/pc/overviewimage/chart-question.svg +20 -62
  861. package/demos/pc/overviewimage/chart-radar.svg +14 -56
  862. package/demos/pc/overviewimage/chart-ring.svg +12 -54
  863. package/demos/pc/overviewimage/chart-sankey.svg +11 -53
  864. package/demos/pc/overviewimage/chart-scatter.svg +20 -62
  865. package/demos/pc/overviewimage/chart-sunburst.svg +13 -55
  866. package/demos/pc/overviewimage/chart-tree.svg +39 -81
  867. package/demos/pc/overviewimage/chart-waterfall.svg +10 -52
  868. package/demos/pc/overviewimage/chart-wordcloud.svg +13 -55
  869. package/demos/pc/overviewimage/chart.svg +12 -54
  870. package/demos/pc/overviewimage/checkbox.svg +22 -64
  871. package/demos/pc/overviewimage/collapse.svg +23 -92
  872. package/demos/pc/overviewimage/color-picker.svg +26 -68
  873. package/demos/pc/overviewimage/color-select-panel.svg +29 -71
  874. package/demos/pc/overviewimage/color.svg +11 -51
  875. package/demos/pc/overviewimage/company.svg +12 -54
  876. package/demos/pc/overviewimage/config-provider.svg +9 -69
  877. package/demos/pc/overviewimage/container.svg +29 -69
  878. package/demos/pc/overviewimage/country.svg +6 -48
  879. package/demos/pc/overviewimage/crop.svg +18 -58
  880. package/demos/pc/overviewimage/currency.svg +6 -48
  881. package/demos/pc/overviewimage/date-picker.svg +12 -54
  882. package/demos/pc/overviewimage/dept.svg +6 -48
  883. package/demos/pc/overviewimage/dev-chart.svg +41 -0
  884. package/demos/pc/overviewimage/dev.svg +20 -60
  885. package/demos/pc/overviewimage/dialog-box.svg +26 -66
  886. package/demos/pc/overviewimage/dialog-select.svg +18 -60
  887. package/demos/pc/overviewimage/divider.svg +11 -53
  888. package/demos/pc/overviewimage/drawer.svg +21 -63
  889. package/demos/pc/overviewimage/drop-roles.svg +12 -54
  890. package/demos/pc/overviewimage/drop-times.svg +24 -64
  891. package/demos/pc/overviewimage/dropdown.svg +22 -60
  892. package/demos/pc/overviewimage/espace.svg +17 -59
  893. package/demos/pc/overviewimage/fall-menu.svg +14 -56
  894. package/demos/pc/overviewimage/file-upload.svg +13 -55
  895. package/demos/pc/overviewimage/filter-panel.svg +19 -61
  896. package/demos/pc/overviewimage/floatbar.svg +8 -50
  897. package/demos/pc/overviewimage/flowchart.svg +43 -85
  898. package/demos/pc/overviewimage/font.svg +9 -51
  899. package/demos/pc/overviewimage/form.svg +35 -77
  900. package/demos/pc/overviewimage/fullscreen.svg +18 -58
  901. package/demos/pc/overviewimage/grid.svg +18 -60
  902. package/demos/pc/overviewimage/guide.svg +7 -49
  903. package/demos/pc/overviewimage/hrapprover.svg +8 -50
  904. package/demos/pc/overviewimage/icon.svg +15 -66
  905. package/demos/pc/overviewimage/image.svg +14 -54
  906. package/demos/pc/overviewimage/infinite-scroll.svg +7 -49
  907. package/demos/pc/overviewimage/input.svg +15 -55
  908. package/demos/pc/overviewimage/ip-address.svg +25 -67
  909. package/demos/pc/overviewimage/layout.svg +23 -65
  910. package/demos/pc/overviewimage/link-menu.svg +23 -63
  911. package/demos/pc/overviewimage/link.svg +13 -55
  912. package/demos/pc/overviewimage/loading.svg +11 -53
  913. package/demos/pc/overviewimage/locales.svg +11 -53
  914. package/demos/pc/overviewimage/logon-user.svg +15 -63
  915. package/demos/pc/overviewimage/logout.svg +6 -48
  916. package/demos/pc/overviewimage/milestone.svg +27 -67
  917. package/demos/pc/overviewimage/modal.svg +20 -62
  918. package/demos/pc/overviewimage/nav-menu.svg +22 -62
  919. package/demos/pc/overviewimage/notify.svg +21 -63
  920. package/demos/pc/overviewimage/numeric.svg +29 -71
  921. package/demos/pc/overviewimage/pager.svg +26 -68
  922. package/demos/pc/overviewimage/pop-upload.svg +10 -52
  923. package/demos/pc/overviewimage/popconfirm.svg +18 -94
  924. package/demos/pc/overviewimage/popeditor.svg +35 -75
  925. package/demos/pc/overviewimage/popover.svg +28 -68
  926. package/demos/pc/overviewimage/progress.svg +13 -55
  927. package/demos/pc/overviewimage/qr-code.svg +25 -67
  928. package/demos/pc/overviewimage/radio.svg +23 -65
  929. package/demos/pc/overviewimage/rate.svg +22 -64
  930. package/demos/pc/overviewimage/rich-text-editor.svg +8 -50
  931. package/demos/pc/overviewimage/roles.svg +6 -48
  932. package/demos/pc/overviewimage/scroll-text.svg +24 -64
  933. package/demos/pc/overviewimage/search.svg +33 -73
  934. package/demos/pc/overviewimage/select.svg +17 -59
  935. package/demos/pc/overviewimage/skeleton.svg +49 -0
  936. package/demos/pc/overviewimage/slider.svg +40 -114
  937. package/demos/pc/overviewimage/split.svg +21 -61
  938. package/demos/pc/overviewimage/steps.svg +16 -58
  939. package/demos/pc/overviewimage/switch.svg +22 -64
  940. package/demos/pc/overviewimage/tabs.svg +19 -59
  941. package/demos/pc/overviewimage/tag-group.svg +15 -57
  942. package/demos/pc/overviewimage/tag.svg +17 -59
  943. package/demos/pc/overviewimage/text-popup.svg +29 -69
  944. package/demos/pc/overviewimage/time-line.svg +30 -72
  945. package/demos/pc/overviewimage/time-picker.svg +19 -61
  946. package/demos/pc/overviewimage/time-select.svg +48 -90
  947. package/demos/pc/overviewimage/toggle-menu.svg +25 -67
  948. package/demos/pc/overviewimage/tooltip.svg +13 -53
  949. package/demos/pc/overviewimage/transfer.svg +28 -70
  950. package/demos/pc/overviewimage/tree-menu.svg +33 -73
  951. package/demos/pc/overviewimage/tree.svg +50 -92
  952. package/demos/pc/overviewimage/user-account.svg +8 -50
  953. package/demos/pc/overviewimage/user-contact.svg +23 -62
  954. package/demos/pc/overviewimage/user-head.svg +19 -61
  955. package/demos/pc/overviewimage/user-link.svg +13 -51
  956. package/demos/pc/overviewimage/user.svg +11 -53
  957. package/demos/pc/overviewimage/watermark.svg +7 -49
  958. package/demos/pc/overviewimage/wizard.svg +27 -67
  959. package/demos/pc/webdoc/changelog.md +39 -0
  960. package/demos/pc/webdoc/installation.md +33 -2
  961. package/env/.env.plus +8 -0
  962. package/index.html +11 -4
  963. package/package.json +13 -12
  964. package/playground/App.vue +7 -7
  965. package/playground.html +1 -1
  966. package/public/static/css/design-common.css +555 -0
  967. package/public/static/images/menuCollapse.svg +11 -0
  968. package/public/static/images/opentiny-logo.svg +20 -0
  969. package/public/static/images/tinyvue.svg +15 -0
  970. package/public/static/js/design-common.js +46 -0
  971. package/src/assets/custom-block.less +5 -0
  972. package/src/assets/images/leftMenu/cmp-business-components.svg +13 -0
  973. package/src/assets/images/leftMenu/cmp-chart-components.svg +22 -0
  974. package/src/assets/images/leftMenu/cmp-data-components.svg +23 -0
  975. package/src/assets/images/leftMenu/cmp-form-components.svg +14 -0
  976. package/src/assets/images/leftMenu/cmp-frame-style.svg +11 -0
  977. package/src/assets/images/leftMenu/cmp-navigation-components.svg +11 -0
  978. package/src/assets/images/leftMenu/cmp-other-components.svg +12 -0
  979. package/src/assets/images/leftMenu/cmp-table-components.svg +18 -0
  980. package/src/assets/images/leftMenu/cmp-tips-components.svg +18 -0
  981. package/src/assets/images/leftMenu/directives-custom-instruction.svg +13 -0
  982. package/src/assets/images/leftMenu/docs-usage-guidelines.svg +11 -0
  983. package/src/assets/images/leftMenu/overview.svg +12 -0
  984. package/src/assets/images/style-settings.svg +21 -0
  985. package/src/assets/images/theme-settings.svg +14 -0
  986. package/src/data/contributorMap.js +175 -0
  987. package/src/data/contributors.js +401 -0
  988. package/src/i18n/en.json +12 -1
  989. package/src/i18n/index.js +1 -0
  990. package/src/i18n/zh.json +12 -1
  991. package/src/menus.jsx +16 -4
  992. package/src/router.js +2 -2
  993. package/src/tools/useStyleSettings.js +46 -0
  994. package/src/tools/useTemplateMode.js +1 -1
  995. package/src/tools/utils.js +26 -3
  996. package/src/views/components/VersionTip.vue +10 -6
  997. package/src/views/components/{cmpConfig.js → cmp-config.js} +4 -2
  998. package/src/views/components/components.vue +665 -230
  999. package/src/views/components/demo.vue +65 -24
  1000. package/src/views/components/float-settings.vue +385 -0
  1001. package/src/views/docs/docs.vue +21 -17
  1002. package/src/views/layout/layout.vue +122 -132
  1003. package/src/views/overview.vue +16 -9
  1004. package/vite.config.ts +7 -4
  1005. package/demos/pc/app/chart/amap/amap.spec.ts-snapshots/base-chromium-darwin.png +0 -0
  1006. package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/base-chromium-darwin.png +0 -0
  1007. package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/demo2-chromium-darwin.png +0 -0
  1008. package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/demo3-chromium-darwin.png +0 -0
  1009. package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/demo4-chromium-darwin.png +0 -0
  1010. package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/demo5-chromium-darwin.png +0 -0
  1011. package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/demo6-chromium-darwin.png +0 -0
  1012. package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/demo7-chromium-darwin.png +0 -0
  1013. package/demos/pc/app/chart/bmap/bmap.spec.ts-snapshots/base-chromium-darwin.png +0 -0
  1014. package/demos/pc/app/chart/boxplot/boxplot.spec.ts-snapshots/base-chromium-darwin.png +0 -0
  1015. package/demos/pc/app/chart/boxplot/boxplot.spec.ts-snapshots/multiple-chromium-darwin.png +0 -0
  1016. package/demos/pc/app/chart/boxplot/boxplot.spec.ts-snapshots/vertical-chromium-darwin.png +0 -0
  1017. package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/base-chromium-darwin.png +0 -0
  1018. package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo2-chromium-darwin.png +0 -0
  1019. package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo3-chromium-darwin.png +0 -0
  1020. package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo4-chromium-darwin.png +0 -0
  1021. package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo5-chromium-darwin.png +0 -0
  1022. package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo6-chromium-darwin.png +0 -0
  1023. package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo7-chromium-win32.png +0 -0
  1024. package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/base-chromium-darwin.png +0 -0
  1025. package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo2-chromium-darwin.png +0 -0
  1026. package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo3-chromium-darwin.png +0 -0
  1027. package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo4-chromium-darwin.png +0 -0
  1028. package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo5-chromium-darwin.png +0 -0
  1029. package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo6-chromium-darwin.png +0 -0
  1030. package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo7-chromium-darwin.png +0 -0
  1031. package/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/base-chromium-darwin.png +0 -0
  1032. package/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo2-chromium-darwin.png +0 -0
  1033. package/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo3-chromium-darwin.png +0 -0
  1034. package/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo4-chromium-darwin.png +0 -0
  1035. package/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo5-chromium-darwin.png +0 -0
  1036. package/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo6-chromium-darwin.png +0 -0
  1037. package/demos/pc/app/chart/graph/graph.spec.ts-snapshots/base-chromium-darwin.png +0 -0
  1038. package/demos/pc/app/chart/graph/graph.spec.ts-snapshots/demo2-chromium-darwin.png +0 -0
  1039. package/demos/pc/app/chart/graph/graph.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  1040. package/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/base-chromium-darwin.png +0 -0
  1041. package/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo2-chromium-darwin.png +0 -0
  1042. package/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo3-chromium-darwin.png +0 -0
  1043. package/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  1044. package/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  1045. package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/base-chromium-darwin.png +0 -0
  1046. package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo2-chromium-darwin.png +0 -0
  1047. package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo3-chromium-darwin.png +0 -0
  1048. package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo4-chromium-darwin.png +0 -0
  1049. package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo5-chromium-darwin.png +0 -0
  1050. package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo6-chromium-darwin.png +0 -0
  1051. package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo7-chromium-darwin.png +0 -0
  1052. package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo8-chromium-darwin.png +0 -0
  1053. package/demos/pc/app/chart/line/line.spec.ts-snapshots/base-chromium-darwin.png +0 -0
  1054. package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo2-chromium-darwin.png +0 -0
  1055. package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo3-chromium-darwin.png +0 -0
  1056. package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  1057. package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo5-chromium-darwin.png +0 -0
  1058. package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo6-chromium-darwin.png +0 -0
  1059. package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo7-chromium-darwin.png +0 -0
  1060. package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo8-chromium-darwin.png +0 -0
  1061. package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo9-chromium-darwin.png +0 -0
  1062. package/demos/pc/app/chart/liquidfill/liquidfill.spec.ts +0 -5
  1063. package/demos/pc/app/chart/liquidfill/liquidfill.spec.ts-snapshots/base-chromium-win32.png +0 -0
  1064. package/demos/pc/app/chart/liquidfill/liquidfill.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  1065. package/demos/pc/app/chart/liquidfill/liquidfill.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  1066. package/demos/pc/app/chart/liquidfill/liquidfill.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  1067. package/demos/pc/app/chart/liquidfill/liquidfill.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  1068. package/demos/pc/app/chart/map/map.spec.ts-snapshots/base-chromium-darwin.png +0 -0
  1069. package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/base-chromium-darwin.png +0 -0
  1070. package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo2-chromium-darwin.png +0 -0
  1071. package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo3-chromium-darwin.png +0 -0
  1072. package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo4-chromium-darwin.png +0 -0
  1073. package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo5-chromium-darwin.png +0 -0
  1074. package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo6-chromium-darwin.png +0 -0
  1075. package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo7-chromium-darwin.png +0 -0
  1076. package/demos/pc/app/chart/process/process.spec.ts-snapshots/base-chromium-darwin.png +0 -0
  1077. package/demos/pc/app/chart/process/process.spec.ts-snapshots/demo2-chromium-darwin.png +0 -0
  1078. package/demos/pc/app/chart/process/process.spec.ts-snapshots/demo3-chromium-darwin.png +0 -0
  1079. package/demos/pc/app/chart/process/process.spec.ts-snapshots/demo4-chromium-darwin.png +0 -0
  1080. package/demos/pc/app/chart/process/process.spec.ts-snapshots/demo5-chromium-darwin.png +0 -0
  1081. package/demos/pc/app/chart/process/process.spec.ts-snapshots/demo6-chromium-darwin.png +0 -0
  1082. package/demos/pc/app/chart/radar/radar.spec.ts-snapshots/base-chromium-darwin.png +0 -0
  1083. package/demos/pc/app/chart/radar/radar.spec.ts-snapshots/demo2-chromium-darwin.png +0 -0
  1084. package/demos/pc/app/chart/radar/radar.spec.ts-snapshots/demo3-chromium-darwin.png +0 -0
  1085. package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/base-chromium-darwin.png +0 -0
  1086. package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo2-chromium-darwin.png +0 -0
  1087. package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo3-chromium-darwin.png +0 -0
  1088. package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo4-chromium-darwin.png +0 -0
  1089. package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo5-chromium-darwin.png +0 -0
  1090. package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo6-chromium-darwin.png +0 -0
  1091. package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/ring-title-chromium-darwin.png +0 -0
  1092. package/demos/pc/app/chart/sankey/sankey.spec.ts-snapshots/base-chromium-darwin.png +0 -0
  1093. package/demos/pc/app/chart/sankey/sankey.spec.ts-snapshots/demo2-chromium-darwin.png +0 -0
  1094. package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/base-chromium-darwin.png +0 -0
  1095. package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo2-chromium-darwin.png +0 -0
  1096. package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo3-chromium-darwin.png +0 -0
  1097. package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  1098. package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  1099. package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
  1100. package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo7-chromium-win32.png +0 -0
  1101. package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo8-chromium-win32.png +0 -0
  1102. package/demos/pc/app/chart/sunburst/sunburst.spec.ts-snapshots/base-chromium-darwin.png +0 -0
  1103. package/demos/pc/app/chart/sunburst/sunburst.spec.ts-snapshots/demo2-chromium-darwin.png +0 -0
  1104. package/demos/pc/app/chart/sunburst/sunburst.spec.ts-snapshots/demo3-chromium-darwin.png +0 -0
  1105. package/demos/pc/app/chart/tree/tree.spec.ts-snapshots/base-chromium-darwin.png +0 -0
  1106. package/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo2-chromium-darwin.png +0 -0
  1107. package/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo3-chromium-darwin.png +0 -0
  1108. package/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo4-chromium-darwin.png +0 -0
  1109. package/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo5-chromium-darwin.png +0 -0
  1110. package/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/base-chromium-darwin.png +0 -0
  1111. package/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo2-chromium-darwin.png +0 -0
  1112. package/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo3-chromium-darwin.png +0 -0
  1113. package/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo4-chromium-darwin.png +0 -0
  1114. package/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  1115. package/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/base-chromium-darwin.png +0 -0
  1116. package/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/demo2-chromium-darwin.png +0 -0
  1117. package/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  1118. package/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/demo3-chromium-darwin.png +0 -0
  1119. package/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/demo4-chromium-darwin.png +0 -0
  1120. package/demos/pc/app/drawer/close-event-composition-api.vue +0 -35
  1121. package/demos/pc/app/drawer/close-event.spec.ts +0 -18
  1122. package/demos/pc/app/drawer/close-event.vue +0 -43
  1123. package/demos/pc/app/drawer/confirm-event-composition-api.vue +0 -29
  1124. package/demos/pc/app/drawer/confirm-event.spec.ts +0 -11
  1125. package/demos/pc/overviewimage/accordion.svg +0 -120
  1126. package/demos/pc/overviewimage/actionmenu.svg +0 -114
  1127. package/demos/pc/overviewimage/angular.svg +0 -16
  1128. package/demos/pc/overviewimage/avatar.svg +0 -100
  1129. package/demos/pc/overviewimage/browser.svg +0 -126
  1130. package/demos/pc/overviewimage/buttongroup.svg +0 -138
  1131. package/demos/pc/overviewimage/chart-dev.svg +0 -83
  1132. package/demos/pc/overviewimage/checkbox-group.svg +0 -91
  1133. package/demos/pc/overviewimage/checkgroup.svg +0 -91
  1134. package/demos/pc/overviewimage/date-range.svg +0 -109
  1135. package/demos/pc/overviewimage/date.svg +0 -89
@@ -1,139 +1,254 @@
1
1
  <template>
2
- <div>
3
- <div v-if="templateModeState.isSaas" class="ti-pt20 ti-pl48 ti-mb-36">
4
- <span class="cmp-mode-title">文档类型: </span>
5
- <tiny-button-group :data="optionsList" v-model="templateModeState.mode"></tiny-button-group>
2
+ <div v-if="templateModeState.isSaas" class="ti-pt20 ti-pl48 ti-mb-36">
3
+ <span class="cmp-mode-title">文档类型: </span>
4
+ <tiny-button-group :data="optionsList" v-model="templateModeState.mode"></tiny-button-group>
5
+ </div>
6
+ <!-- 一个组件的文档: 描述md + demos + apis -->
7
+ <header class="flex-horizontal docs-header">
8
+ <div class="docs-title-wrap">
9
+ <div class="markdown-body markdown-top-body" size="medium" v-html="cmpTopMd"></div>
10
+ <version-tip
11
+ v-if="currJson.metaData || currJson.versionTipOption"
12
+ :meta-data="currJson.metaData"
13
+ v-bind="currJson.versionTipOption"
14
+ >
15
+ </version-tip>
6
16
  </div>
7
- <div class="ti-f-r ti-pt48 ti-pl48 ti-pr48">
8
- <div class="ti-fi-1 ti-w0 ti-rel cmp-container">
9
- <!-- 一个组件的文档: 描述md + demos + apis -->
10
- <div class="markdown-body markdown-top-body" size="medium" v-html="cmpTopMd"></div>
11
- <version-tip v-if="currJson.metaData || currJson.versionTipOption" :meta-data="currJson.metaData"
12
- v-bind="currJson.versionTipOption">
13
- </version-tip>
14
- <template v-if="currJson?.demos?.length > 0">
15
- <div class="all-demos-container">
16
- <h2 class="ti-f30 ti-fw-normal !ti-mb20">{{ i18nByKey('yan-shi') }}</h2>
17
- <div v-if="apiModeState.demoMode === 'default'" class="ti-f-c ti-f-wrap">
18
- <template v-if="currJson.column === '2' && currJson.demos.length > 1">
19
- <div class="one-demo-col2">
20
- <div>
21
- <demo v-for="demo in evenDemo" :key="demo.name" :demo="demo" />
17
+ <span class="docs-header-spacer"></span>
18
+ </header>
19
+ <div class="docs-content">
20
+ <div class="ti-fi-1 ti-rel cmp-container">
21
+ <div class="flex-horizontal docs-content-main">
22
+ <div class="docs-tabs-wrap">
23
+ <div v-if="['interfaces', 'types', 'classes'].includes(cmpId)" id="TS" class="all-api-container">
24
+ <div class="ti-f-c ti-f-wrap api-list">
25
+ <div class="mt20" v-for="oneGroup in currJson.apis" :key="oneGroup.name">
26
+ <div class="ti-f-r ti-f-pos-start ti-fw-bold">
27
+ <div :id="`cmp-${oneGroup.name}`" class="ti-f18">
28
+ {{ oneGroup.name }}
22
29
  </div>
23
- <div>
24
- <demo v-for="demo in oddDemo" :key="demo.name" :demo="demo" />
30
+ <div class="ti-ml12 ti-b-a-primary ti-c-primary ti-px8 ti-py4">
31
+ {{ oneGroup.type }}
25
32
  </div>
26
33
  </div>
27
- </template>
28
- <template v-else>
29
- <demo v-for="demo in currJson.demos" :key="demo.name" :demo="demo" class="mb16" />
30
- </template>
31
- </div>
32
- <div v-else>
33
- <demo v-if="singleDemo" :key="singleDemo.name" :demo="singleDemo" />
34
- </div>
35
- </div>
36
- </template>
37
- <template v-if="currJson.apis?.length > 0">
38
- <div id="API">
39
- <h2 class="ti-f30 ti-fw-normal ti-mt28">API</h2>
40
- <!-- apis 是一个数组 {name,type,properties:[原table内容],events:[] ...........} -->
41
- <div class="mt20" v-for="oneGroup in currJson.apis" :key="oneGroup.name">
42
- <div class="ti-f-r ti-f-pos-start ti-fw-bold">
43
- <div :id="oneGroup.name" class="ti-f18">{{ oneGroup.name }}</div>
44
- <div class="ti-ml12 ti-b-a-primary ti-c-primary ti-px8 ti-py4">{{ oneGroup.type }}</div>
45
- </div>
46
- <div v-for="(oneApiArr, key) in oneGroup" :key="key">
47
- <template v-if="key !== 'name' && key !== 'type' && oneApiArr.length > 0">
48
- <div class="ti-f18 ti-py28">{{ key }}</div>
49
- <table class="api-table">
50
- <thead>
51
- <tr v-if="key.includes('slots')">
52
- <th width="15%">{{ i18nByKey('name') }}</th>
53
- <th width="85%">{{ i18nByKey('desc') }}</th>
54
- </tr>
55
- <tr v-else-if="key.includes('events') || key.includes('methods')">
56
- <th width="15%">{{ i18nByKey('name') }}</th>
57
- <th width="20%">{{ i18nByKey('propType') }}</th>
58
- <th width="65%">{{ i18nByKey('desc') }}</th>
59
- </tr>
60
- <tr v-else>
61
- <th width="15%">{{ i18nByKey('name') }}</th>
62
- <th width="20%" v-if="hasKey(oneApiArr, 'type')">{{ i18nByKey('propType') }}</th>
63
- <th width="20%" v-if="hasKey(oneApiArr, 'defaultValue')">{{ i18nByKey('defValue') }}</th>
64
- <th width="45%">{{ i18nByKey('desc') }}</th>
65
- </tr>
66
- </thead>
67
- <tbody>
68
- <tr v-for="row in oneApiArr.sort((a, b) => a.name.localeCompare(b.name))" :key="row.name">
69
- <td>
70
- <a v-if="row.demoId" @click="jumpToDemo(row.demoId)">{{ row.name }}</a>
71
- <span v-else>{{ row.name }}</span>
72
- <version-tip v-if="row.metaData || row.versionTipOption" :meta-data="row.metaData"
73
- v-bind="row.versionTipOption" render-type="tag" tip-subject="api">
34
+ <div v-for="(oneApiArr, key) in oneGroup" :key="key">
35
+ <template v-if="key !== 'name' && key !== 'type' && oneApiArr.length > 0">
36
+ <div class="ti-f18 ti-py28" :id="`${oneGroup.name}--${key}`">
37
+ {{ key }}
38
+ </div>
39
+ <tiny-grid class="api-table" :data="tableData[oneGroup.name][key]" :expand-config="apiExpandConf">
40
+ <tiny-grid-column
41
+ v-if="tableData[oneGroup.name][key][0]?.type"
42
+ class-name="api-table-expand-col"
43
+ type="expand"
44
+ width="32"
45
+ >
46
+ <template #default="{ row }">
47
+ <async-highlight v-if="row.code" :code="row.code.trim()" types="ts"></async-highlight>
48
+ </template>
49
+ </tiny-grid-column>
50
+ <tiny-grid-column field="name" :title="i18nByKey('name')" :width="columnWidth[key][0]">
51
+ <template #default="{ row }">
52
+ <span class="api-table-name">
53
+ <a v-if="row.demoId" @click="jumpToDemo(row.demoId)">{{ row.name }}</a>
54
+ <span v-else>{{ row.name }}</span>
55
+ </span>
56
+ <version-tip
57
+ v-if="row.metaData || row.versionTipOption"
58
+ :meta-data="row.metaData"
59
+ v-bind="row.versionTipOption"
60
+ render-type="tag"
61
+ tip-subject="api"
62
+ >
74
63
  </version-tip>
75
- </td>
76
- <td v-if="!key.includes('slots') && hasKey(oneApiArr, 'type')" @click="handleTypeClick">
77
- <a v-if="row.typeAnchorName"
64
+ </template>
65
+ </tiny-grid-column>
66
+ <tiny-grid-column
67
+ v-if="tableData[oneGroup.name][key][0]?.type"
68
+ field="type"
69
+ :title="i18nByKey('propType')"
70
+ :width="columnWidth[key][1]"
71
+ >
72
+ <template #default="{ row }">
73
+ <a
74
+ v-if="row.typeAnchorName"
78
75
  :href="`${row.typeAnchorName.indexOf('#') === -1 ? '#' : ''}${row.typeAnchorName}`"
79
- v-html="row.type"></a>
76
+ v-html="row.type"
77
+ ></a>
80
78
  <span v-else v-html="row.type"></span>
81
- </td>
82
- <td v-if="
83
- !key.includes('slots') &&
84
- !key.includes('events') &&
85
- !key.includes('methods') &&
86
- hasKey(oneApiArr, 'defaultValue')
87
- ">
88
- <span
89
- v-html="typeof row.defaultValue === 'string' ? row.defaultValue || '--' : row.defaultValue"></span>
90
- </td>
91
- <td><span v-html="row.desc[langKey]"></span></td>
92
- </tr>
93
- </tbody>
94
- </table>
95
- </template>
79
+ </template>
80
+ </tiny-grid-column>
81
+ <tiny-grid-column
82
+ v-if="key === 'props'"
83
+ field="defaultValue"
84
+ :title="i18nByKey('defValue')"
85
+ :width="columnWidth[key][2]"
86
+ ></tiny-grid-column>
87
+ <tiny-grid-column field="desc" :title="i18nByKey('desc')"></tiny-grid-column>
88
+ </tiny-grid>
89
+ </template>
90
+ </div>
96
91
  </div>
97
92
  </div>
98
93
  </div>
99
- </template>
100
- <template v-if="currJson.types && currJson.types.length">
101
- <div class="ti-f18 ti-py28" id="types">types</div>
102
- <tiny-collapse v-model="activeNames">
103
- <div v-for="typeItem in currJson.types" :id="typeItem.name" :key="typeItem.name">
104
- <tiny-collapse-item :title="typeItem.name" :name="typeItem.name">
105
- <async-highlight :code="typeItem.code.trim()" types="ts"></async-highlight></tiny-collapse-item>
106
- </div>
107
- </tiny-collapse>
108
- </template>
109
- <h2 id="FAQ" v-if="cmpFAQMd" class="ti-f30 ti-fw-normal ti-mt28 ti-mb20">FAQ</h2>
110
- <div class="markdown-body" v-html="cmpFAQMd"></div>
111
- <div v-if="currJson.owner" class="ti-abs ti-right24 ti-top24" @click="copyText(currJson.owner)">
112
- {{ i18nByKey('doc-owner') }} : {{ currJson.owner }}
94
+ <tiny-tabs v-else v-model="activeTab" ref="demoTabs" class="docs-content-tabs" @click="onTabsClick">
95
+ <tiny-tab-item :title="i18nByKey('demos')" name="demos">
96
+ <!-- demos列表 -->
97
+ <template v-if="currJson?.demos?.length">
98
+ <div class="all-demos-container" id="all-demos-container">
99
+ <div v-if="apiModeState.demoMode === 'default'" id="demo-list" class="ti-f-c ti-f-wrap demo-list">
100
+ <demo
101
+ v-for="demo in currJson.demos"
102
+ :key="demo.name"
103
+ :demo="demo"
104
+ :curr-demo-id="currDemoId"
105
+ class="mb32"
106
+ />
107
+ </div>
108
+ <div v-else>
109
+ <demo v-if="singleDemo" :key="singleDemo.name" :demo="singleDemo" />
110
+ </div>
111
+ </div>
112
+ </template>
113
+
114
+ <!-- 贡献者 -->
115
+ <div class="cmp-contributor" v-if="contributors.length">
116
+ <h2 class="cmp-contributor-title">{{ i18nByKey('contributor') }}</h2>
117
+ <template v-for="item in contributors" :key="item.id">
118
+ <tiny-tooltip popper-class="docs-tooltip" placement="top" effect="light">
119
+ <template #content>
120
+ <span class="cmp-contributor-tip">{{ item.nickname }}</span>
121
+ </template>
122
+ <a :href="item.homepage" class="cmp-contributor-item" rel="noopener noreferrer" target="_blank">
123
+ <img class="cmp-contributor-avatar" :src="item.avatar" :alt="item.nickname" />
124
+ </a>
125
+ </tiny-tooltip>
126
+ </template>
127
+ </div>
128
+ </tiny-tab-item>
129
+ <tiny-tab-item v-if="showApiTab && !isRunningTest" title="API" name="api">
130
+ <!-- api文档 -->
131
+ <div id="API" class="all-api-container">
132
+ <div class="ti-f-c ti-f-wrap api-list">
133
+ <!-- apis 是一个数组 {name,type,properties:[原table内容],events:[] ...........} -->
134
+ <div class="mt20" v-for="oneGroup in currJson.apis" :key="oneGroup.name">
135
+ <div class="ti-f-r ti-f-pos-start ti-fw-bold">
136
+ <div :id="`cmp-${oneGroup.name}`" class="ti-f18">
137
+ {{ oneGroup.name }}
138
+ </div>
139
+ <div class="ti-ml12 ti-b-a-primary ti-c-primary ti-px8 ti-py4">
140
+ {{ oneGroup.type }}
141
+ </div>
142
+ </div>
143
+ <div v-for="(oneApiArr, key) in oneGroup" :key="key">
144
+ <template v-if="!['name', 'type'].includes(key) && oneApiArr.length > 0">
145
+ <div class="ti-f18 ti-py28" :id="`${oneGroup.name}--${key}`">
146
+ {{ key }}
147
+ </div>
148
+ <tiny-grid
149
+ ref="apiTableRef"
150
+ class="api-table"
151
+ :data="tableData[oneGroup.name][key]"
152
+ :expand-config="apiExpandConf"
153
+ :row-class-name="setCurrRowClass"
154
+ row-id="name"
155
+ >
156
+ <tiny-grid-column class-name="api-table-expand-col" type="expand" width="32">
157
+ <template #default="{ row }">
158
+ <async-highlight v-if="row.code" :code="row.code.trim()" types="ts"></async-highlight>
159
+ <div v-if="row.depTypes">
160
+ <async-highlight
161
+ v-for="(k, i) in row.depTypes"
162
+ :key="i"
163
+ :code="currJson.types[k]?.code"
164
+ types="ts"
165
+ ></async-highlight>
166
+ </div>
167
+ </template>
168
+ </tiny-grid-column>
169
+ <tiny-grid-column field="name" :title="i18nByKey('name')" :width="columnWidth[key][0]">
170
+ <template #default="{ row }">
171
+ <span class="api-table-name">
172
+ <a v-if="row.demoId" @click="jumpToDemo(row.demoId)">{{ row.name }}</a>
173
+ <span v-else>{{ row.name }}</span>
174
+ </span>
175
+ <version-tip
176
+ v-if="row.metaData || row.versionTipOption"
177
+ :meta-data="row.metaData"
178
+ v-bind="row.versionTipOption"
179
+ render-type="tag"
180
+ tip-subject="api"
181
+ >
182
+ </version-tip>
183
+ </template>
184
+ </tiny-grid-column>
185
+ <tiny-grid-column
186
+ v-if="tableData[oneGroup.name][key].find((i) => i.type)"
187
+ field="type"
188
+ :title="i18nByKey('propType')"
189
+ :width="columnWidth[key][1]"
190
+ >
191
+ <template #default="{ row }">
192
+ <span
193
+ :class="{ 'type-link': row.typeAnchorName || row.linkTo }"
194
+ :id="row.typeAnchorName ? row.type : ''"
195
+ @click="toOuterType(row)"
196
+ >{{ row.type }} <icon-outer-link v-if="row.linkTo"></icon-outer-link
197
+ ></span>
198
+ </template>
199
+ </tiny-grid-column>
200
+ <tiny-grid-column
201
+ v-if="key === 'props'"
202
+ field="defaultValue"
203
+ :title="i18nByKey('defValue')"
204
+ :width="columnWidth[key][2]"
205
+ ></tiny-grid-column>
206
+ <tiny-grid-column field="desc" :title="i18nByKey('desc')"></tiny-grid-column>
207
+ </tiny-grid>
208
+ </template>
209
+ </div>
210
+ </div>
211
+ </div>
212
+ </div>
213
+ </tiny-tab-item>
214
+ </tiny-tabs>
215
+ </div>
216
+ <!-- demo与api目录锚点 -->
217
+ <div class="cmp-page-anchor catalog" v-if="currAnchorLinks.length">
218
+ <tiny-anchor
219
+ id="anchor"
220
+ :links="currAnchorLinks"
221
+ :key="anchorRefreshKey"
222
+ :is-affix="anchorAffix"
223
+ type="dot"
224
+ mask-class="custom-active-anchor"
225
+ container-id="#doc-layout"
226
+ @link-click="handleAnchorClick"
227
+ >
228
+ </tiny-anchor>
113
229
  </div>
114
230
  </div>
115
231
 
116
- <!-- 目录列表 -->
117
- <div class="cmp-page-anchor catalog ti-w128 ti-sticky ti-top32" v-if="anchorLinks.length > 0">
118
- <tiny-anchor :is-affix="true" :links="anchorLinks" :key="anchorRefreshKey" mask-class="custom-active-anchor"
119
- @link-click="handleAnchorClick">
120
- </tiny-anchor>
232
+ <h2 id="FAQ" v-if="cmpFAQMd" class="ti-f30 ti-fw-normal ti-mt28 ti-mb20">FAQ</h2>
233
+ <div class="markdown-body" v-html="cmpFAQMd"></div>
234
+ <div v-if="currJson.owner" class="ti-abs ti-right24 ti-top24" @click="copyText(currJson.owner)">
235
+ {{ i18nByKey('doc-owner') }} : {{ currJson.owner }}
121
236
  </div>
122
237
  </div>
123
- <div id="footer"></div>
124
238
  </div>
239
+ <div id="footer"></div>
125
240
  </template>
126
241
 
127
242
  <script lang="jsx">
128
- import { defineComponent, reactive, computed, toRefs, watch, onMounted, ref } from 'vue'
243
+ import { defineComponent, reactive, computed, toRefs, watch, onMounted, ref, onUnmounted, nextTick } from 'vue'
129
244
  import { marked } from 'marked'
130
- import { Anchor, ButtonGroup } from '@opentiny/vue'
245
+ import { Anchor, ButtonGroup, Grid, GridColumn, Tabs, TabItem, Tooltip } from '@opentiny/vue'
246
+ import { iconOuterLink } from '@opentiny/vue-icon'
131
247
  import debounce from '@opentiny/vue-renderless/common/deps/debounce'
132
- import { i18nByKey, getWord, $clone, fetchDemosFile, useApiMode, useTemplateMode } from '@/tools'
248
+ import { i18nByKey, getWord, $clone, fetchDemosFile, useApiMode, useTemplateMode, getCmpContributors } from '@/tools'
133
249
  import demo from '@/views/components/demo'
134
250
  import { router } from '@/router.js'
135
- import { Collapse, CollapseItem } from '@opentiny/vue'
136
- import { faqMdConfig, getWebdocPath } from './cmpConfig'
251
+ import { faqMdConfig, getWebdocPath } from './cmp-config'
137
252
  import AsyncHighlight from './async-highlight.vue'
138
253
  import VersionTip from './VersionTip.vue'
139
254
 
@@ -143,35 +258,36 @@ export default defineComponent({
143
258
  Demo: demo,
144
259
  TinyAnchor: Anchor,
145
260
  TinyButtonGroup: ButtonGroup,
146
- TinyCollapse: Collapse,
147
- TinyCollapseItem: CollapseItem,
261
+ TinyTabs: Tabs,
262
+ TinyTabItem: TabItem,
263
+ TinyGrid: Grid,
264
+ TinyGridColumn: GridColumn,
265
+ TinyTooltip: Tooltip,
266
+ IconOuterLink: iconOuterLink(),
148
267
  AsyncHighlight,
149
268
  VersionTip
150
269
  },
151
270
  setup() {
271
+ const isRunningTest = localStorage.getItem('tiny-e2e-test') === 'true'
152
272
  const anchorRefreshKey = ref(0)
273
+ const apiTableRef = ref()
153
274
  const state = reactive({
154
275
  webDocPath: computed(() => ''),
155
276
  langKey: getWord('zh-CN', 'en-US'),
156
277
  cmpId: '',
157
- currJson: { column: 1, demos: [], apis: [] },
278
+ currJson: { column: 1, demos: [], apis: [], types: {} },
158
279
  cmpTopMd: null,
159
280
  cmpFAQMd: null,
160
281
  evenDemo: computed(() => state.currJson.demos?.filter((d, i) => i % 2 === 0) || []),
161
282
  oddDemo: computed(() => state.currJson.demos?.filter((d, i) => i % 2 === 1) || []),
162
- anchorLinks: computed(() => {
283
+ currDemoId: '',
284
+ demoAnchorLinks: computed(() => {
163
285
  const links =
164
286
  state.currJson?.demos?.map((demo) => ({
165
287
  key: demo.demoId,
166
288
  title: demo.name[state.langKey],
167
289
  link: `#${demo.demoId}`
168
290
  })) || []
169
- if (state.currJson?.apis?.length) {
170
- links.push({ key: 'API', title: 'API', link: '#API' })
171
- }
172
- if (state.currJson?.types?.length) {
173
- links.push({ key: 'types', title: 'types', link: '#types' })
174
- }
175
291
  if (state.cmpFAQMd) {
176
292
  links.push({
177
293
  key: 'FAQ',
@@ -181,14 +297,132 @@ export default defineComponent({
181
297
  }
182
298
  return links
183
299
  }),
300
+ apiAnchorLinks: computed(() => getApiAnchorLinks()),
301
+ anchorAffix: true,
302
+ currAnchorLinks: computed(() => (state.activeTab === 'demos' ? state.demoAnchorLinks : state.apiAnchorLinks)),
184
303
  // 单demo显示时
185
304
  singleDemo: null,
186
- activeNames: ''
305
+ activeTab: 'demos',
306
+ tableData: {},
307
+ currApiTypes: [],
308
+ showApiTab: computed(() => state.currApiTypes.length),
309
+ columnWidth: {
310
+ props: ['15%', '20%', '15%'],
311
+ events: ['15%', '25%', 0],
312
+ methods: ['15%', '20%', 0],
313
+ slots: ['15%', 0, 0],
314
+ format: ['15%', 0, 0]
315
+ },
316
+ apiExpandConf: {
317
+ expandAll: false,
318
+ trigger: 'row',
319
+ expandRowKeys: [],
320
+ accordion: false,
321
+ activeMethod: (row) => row.typeAnchorName,
322
+ showIcon: true // 配置是否显示展开图标
323
+ },
324
+ contributors: [] // 贡献者
187
325
  })
188
326
 
189
327
  const { apiModeState } = useApiMode()
190
328
  const { templateModeState, staticPath, optionsList } = useTemplateMode()
191
- const huiNewChart = ['chart-process']
329
+
330
+ const getApiAnchorLinks = () => {
331
+ if (!state.currJson.apis?.length) {
332
+ return []
333
+ }
334
+
335
+ const apiAnchorLinks = []
336
+ state.currJson.apis?.forEach((apiGroup) => {
337
+ const { name } = apiGroup
338
+ const typeLinks = state.currApiTypes
339
+ .filter((i) => apiGroup[i]?.length)
340
+ .map((i) => ({
341
+ key: i,
342
+ link: `#${name}--${i}`,
343
+ title: i
344
+ }))
345
+
346
+ const linkItem = {
347
+ key: name,
348
+ link: `#cmp-${name}`,
349
+ title: name,
350
+ children: typeLinks
351
+ }
352
+ apiAnchorLinks.push(linkItem)
353
+ })
354
+
355
+ return apiAnchorLinks
356
+ }
357
+
358
+ // 封装api表格数据
359
+ const parseApiData = () => {
360
+ if (!state.currJson.apis?.length) {
361
+ return {}
362
+ }
363
+
364
+ const tableData = {}
365
+ const apis = state.currJson.apis || []
366
+ for (const apiGroup of apis) {
367
+ const apiDisplay = {}
368
+ for (const apiType of Object.keys(apiGroup)) {
369
+ if (Array.isArray(apiGroup[apiType]) && apiGroup[apiType].length) {
370
+ const apiArr = apiGroup[apiType].map((i) => {
371
+ const { name, type, defaultValue, desc, demoId, typeAnchorName, linkTo, metaData, versionTipOption } = i
372
+ const item = {
373
+ name,
374
+ type,
375
+ defaultValue: defaultValue || '--',
376
+ desc: desc[state.langKey],
377
+ demoId,
378
+ metaData,
379
+ versionTipOption,
380
+ typeAnchorName: '',
381
+ linkTo
382
+ }
383
+ if (typeAnchorName) {
384
+ item.typeAnchorName = `${typeAnchorName?.includes('#') ? '' : '#'}${typeAnchorName}`
385
+ item.code = state.currJson.types[i.typeAnchorName]?.code || ''
386
+ item.depTypes = state.currJson.types[i.typeAnchorName]?.depTypes || []
387
+ }
388
+ return item
389
+ })
390
+ apiDisplay[apiType] = apiArr.sort((a, b) => a.name.localeCompare(b.name))
391
+ state.currApiTypes = Array.from(new Set([...state.currApiTypes, apiType]))
392
+ }
393
+ }
394
+
395
+ tableData[apiGroup.name] = apiDisplay
396
+ }
397
+ state.tableData = tableData
398
+ }
399
+
400
+ const getRowData = (type) => {
401
+ const tableData = state.tableData
402
+ let rowData
403
+ for (const comp of Object.values(tableData)) {
404
+ for (const apiGroup of Object.values(comp)) {
405
+ rowData = apiGroup.find((i) => i.type === type)
406
+ if (rowData) {
407
+ return rowData
408
+ }
409
+ }
410
+ }
411
+ }
412
+
413
+ const jumpToApi = (hash) => {
414
+ state.activeTab = 'api'
415
+ nextTick(() => {
416
+ const rowData = getRowData(hash)
417
+ const row = document.getElementById(hash).closest('.tiny-grid-body__row')
418
+ if (row) {
419
+ apiTableRef.value.forEach((i) => {
420
+ i.setCurrentRow(rowData)
421
+ i.setRowExpansion(rowData, true)
422
+ })
423
+ }
424
+ })
425
+ }
192
426
 
193
427
  // 页面加载/点击api中的链接,根据hash滚动。
194
428
  const scrollByHash = (hash) => {
@@ -198,6 +432,8 @@ export default defineComponent({
198
432
  top: 0,
199
433
  left: 0
200
434
  })
435
+ } else if (state.currJson.types[hash]) {
436
+ jumpToApi(hash)
201
437
  } else {
202
438
  let scrollTarget
203
439
  try {
@@ -207,8 +443,7 @@ export default defineComponent({
207
443
  // eslint-disable-next-line no-console
208
444
  console.log('querySelector has special character:', err)
209
445
  }
210
- if (scrollTarget) {
211
- scrollTarget.scrollIntoView()
446
+ if (scrollTarget && !isRunningTest) {
212
447
  document.getElementById('doc-layout').scrollTo({
213
448
  top: scrollTarget.offsetTop,
214
449
  left: 0,
@@ -233,20 +468,6 @@ export default defineComponent({
233
468
  }
234
469
  }
235
470
 
236
- // 改变折叠筐的展开状态, 2参为TRUE则表示是通过点击type属性跳转的锚点。不用进行判断直接赋值
237
- const changeActiveNames = (hash, isType = false) => {
238
- const newVal = hash.replace('#', '')
239
- if (isType) {
240
- state.activeNames = newVal
241
- return
242
- }
243
-
244
- const isTypeHashChange = state.currJson.types.some((item) => item.name === newVal)
245
- if (isTypeHashChange) {
246
- state.activeNames = newVal
247
- }
248
- }
249
-
250
471
  // saas下切换mode和组价示例都会触发loadPage,需要防抖
251
472
  const loadPage = debounce(templateModeState.isSaas ? 100 : 0, false, () => {
252
473
  const lang = getWord('cn', 'en')
@@ -255,96 +476,153 @@ export default defineComponent({
255
476
  // 将请求合并起来,这样页面更新一次,页面刷新的时机就固定了
256
477
  const promiseArr = [
257
478
  fetchDemosFile(`${staticPath.value}/${getWebdocPath(state.cmpId)}/webdoc/${state.cmpId}.${lang}.md`),
258
- fetchDemosFile(`${staticPath.value}/${getWebdocPath(state.cmpId)}/webdoc/${state.cmpId}.js`),
259
- fetchDemosFile(`@demos/apis/${getWebdocPath(state.cmpId) === 'chart' ? state.cmpId : getWebdocPath(state.cmpId)}.js`)
479
+ null,
480
+ fetchDemosFile(
481
+ `@demos/apis/${getWebdocPath(state.cmpId) === 'chart' ? state.cmpId : getWebdocPath(state.cmpId)}.js`
482
+ )
260
483
  ]
484
+ // 兼容ts文档
485
+ if (['interfaces', 'types', 'classes'].includes(state.cmpId)) {
486
+ state.activeTab = 'apis'
487
+ } else {
488
+ promiseArr[1] = fetchDemosFile(`${staticPath.value}/${getWebdocPath(state.cmpId)}/webdoc/${state.cmpId}.js`)
489
+ }
490
+
261
491
  if (faqMdConfig[state.cmpId]) {
262
492
  promiseArr.push(
263
493
  fetchDemosFile(`${staticPath.value}/${getWebdocPath(state.cmpId)}/webdoc/${state.cmpId}.faq.${lang}.md`)
264
494
  )
265
495
  }
266
496
 
267
- Promise.all(promiseArr).then(([mdData, jsData, apiData, faqData]) => {
268
- // 1、加载顶部md
269
- state.cmpTopMd = marked(mdData)
270
-
271
- // 2、加载faq.md
272
- if (faqData) {
273
- state.cmpFAQMd = marked(faqData)
274
- }
497
+ Promise.all(promiseArr)
498
+ .then(([mdData, jsData, apiData, faqData]) => {
499
+ // 1、加载顶部md
500
+ state.cmpTopMd = marked(mdData)
275
501
 
276
- // 3、加载cmpId.js 文件
277
- // eslint-disable-next-line no-eval
278
- const json = eval('(' + jsData.slice(15) + ')')
279
- state.currJson = {
280
- ...json,
281
- demos: $clone(json.demos || []), // 克隆一下,避免保存上次的isOpen
282
- column: json.column || '1' // columns可能为空
283
- }
502
+ // 2、加载faq.md
503
+ if (faqData) {
504
+ state.cmpFAQMd = marked(faqData)
505
+ }
284
506
 
285
- if (apiData) {
507
+ // 3、加载cmpId.js 文件
286
508
  // eslint-disable-next-line no-eval
287
- const apiJson = eval('(' + apiData.slice(15) + ')')
288
- // pc、mobile、mobile-first三种模式
289
- const demoMode = templateModeState.isSaas ? templateModeState.mode : import.meta.env.VITE_APP_MODE
290
- const demoKey = demoMode === 'mobile-first' ? 'mfDemo' : `${demoMode}Demo`
291
- state.currJson.apis = apiJson.apis.map((item) => {
292
- Object.keys(item).forEach((key) => {
293
- const apiItem = item[key]
294
- if (Array.isArray(apiItem)) {
295
- item[key] = apiItem
296
- .filter((i) => !i.mode || i.mode.includes(demoMode))
297
- .map((filterItem) => ({ ...filterItem, demoId: filterItem[demoKey] }))
298
- }
509
+ const json = jsData ? eval('(' + jsData.slice(15) + ')') : {}
510
+ state.currJson = {
511
+ ...json,
512
+ demos: $clone(json.demos || []), // 克隆一下,避免保存上次的isOpen
513
+ column: json.column || '1' // columns可能为空
514
+ }
515
+
516
+ if (apiData) {
517
+ // eslint-disable-next-line no-eval
518
+ const apiJson = eval('(' + apiData.slice(15) + ')')
519
+ // pc、mobile、mobile-first三种模式
520
+ const demoMode = templateModeState.isSaas ? templateModeState.mode : import.meta.env.VITE_APP_MODE
521
+ const demoKey = demoMode === 'mobile-first' ? 'mfDemo' : `${demoMode}Demo`
522
+ state.currJson.apis = apiJson.apis.map((item) => {
523
+ Object.keys(item).forEach((key) => {
524
+ const apiItem = item[key]
525
+ if (Array.isArray(apiItem)) {
526
+ item[key] = apiItem
527
+ .filter((i) => !i.mode || i.mode.includes(demoMode))
528
+ .map((filterItem) => ({ ...filterItem, demoId: filterItem[demoKey] }))
529
+ }
530
+ })
531
+ return item
299
532
  })
300
- return item
301
- })
302
- state.currJson.types = apiJson.types
303
- }
533
+ state.currJson.types =
534
+ apiJson.types?.reduce((res, cur) => {
535
+ res[cur.name] = cur
536
+ return res
537
+ }, {}) || {}
538
+ parseApiData()
539
+ }
304
540
 
305
- let hash = router.currentRoute.value.hash?.slice(1)
541
+ let hash = router.currentRoute.value.hash?.slice(1)
306
542
 
307
- // 单demo处理,如果有hash,取hash的demo, 没有hash, 取第1项
308
- if (hash) {
309
- state.singleDemo = state.currJson.demos.find((d) => d.demoId === hash)
310
- if (!state.singleDemo) {
543
+ // 单demo处理,如果有hash,取hash的demo, 没有hash, 取第1项
544
+ if (hash) {
545
+ state.singleDemo = state.currJson.demos.find((d) => d.demoId === hash)
546
+ if (!state.singleDemo) {
547
+ state.singleDemo = state.currJson.demos[0]
548
+ }
549
+ } else {
311
550
  state.singleDemo = state.currJson.demos[0]
312
551
  }
313
552
 
314
- if (state.currJson.types && state.currJson.types.length) {
315
- changeActiveNames(hash)
316
- }
317
- } else {
318
- state.singleDemo = state.currJson.demos[0]
319
- }
553
+ // F5刷新加载时,跳到当前示例
554
+ scrollByHash(hash)
555
+ })
556
+ .finally(() => {
557
+ // 获取组件贡献者
558
+ getContributors()
559
+ })
560
+ })
320
561
 
321
- // F5刷新加载时,跳到当前示例
322
- scrollByHash(hash)
323
- })
562
+ /**
563
+ * 获取贡献者
564
+ */
565
+ const getContributors = () => {
566
+ const cmpId = state.cmpId?.includes('grid') ? 'grid' : state.cmpId
567
+ state.contributors = getCmpContributors(cmpId)
568
+ }
569
+
570
+ const onDocLayoutScroll = debounce(100, false, () => {
571
+ const docLayout = document.getElementById('doc-layout')
572
+ const { scrollTop, scrollHeight, clientHeight: layoutHeight } = docLayout
573
+ const headerHeight = document.querySelector('.docs-header')?.clientHeight || 0
574
+ const footerHeight = document.getElementById('footer')?.clientHeight || 0
575
+ const anchorHeight = document.querySelector('#anchor')?.clientHeight || 0
576
+ const remainHeight = scrollHeight - scrollTop - layoutHeight // doc-layout视口下隐藏的部分高度
577
+ state.anchorAffix = layoutHeight - headerHeight - (footerHeight - remainHeight) > anchorHeight
324
578
  })
579
+
580
+ const setScrollListener = () => {
581
+ nextTick(() => {
582
+ const docLayout = document.getElementById('doc-layout')
583
+ if (docLayout) {
584
+ docLayout.addEventListener('scroll', onDocLayoutScroll)
585
+ }
586
+ })
587
+ }
588
+
589
+ const removeScrollListener = () => {
590
+ const docLayout = document.getElementById('doc-layout')
591
+ if (docLayout) {
592
+ docLayout.removeEventListener('scroll', onDocLayoutScroll)
593
+ }
594
+ }
595
+
325
596
  const fn = {
326
597
  copyText: (text) => {
327
598
  navigator.clipboard.writeText(text)
328
599
  },
600
+ onTabsClick: () => {
601
+ scrollToLayoutTop()
602
+ },
329
603
  // 点击 api区域的 name列时
330
604
  jumpToDemo: (demoId) => {
605
+ state.activeTab = 'demos'
331
606
  if (demoId.startsWith('chart') || demoId.startsWith('grid')) {
332
607
  router.push(demoId)
333
608
  } else {
334
609
  router.push(`#${demoId}`)
335
-
336
610
  if (apiModeState.demoMode === 'single') {
337
611
  state.singleDemo = state.currJson.demos.find((d) => d.demoId === demoId)
338
612
  }
613
+ scrollByHash(demoId)
339
614
  }
340
615
  },
341
- // 点击api 区域的type列
342
- handleTypeClick: (ev) => {
343
- const hash = ev.target.hash
344
- if (hash) {
345
- changeActiveNames(hash, true)
616
+
617
+ // 跳转到其他组件的api
618
+ toOuterType(row) {
619
+ if (!row.linkTo) {
620
+ return
346
621
  }
622
+
623
+ router.push(row.linkTo)
347
624
  },
625
+
348
626
  // 目录列表上的点击
349
627
  handleAnchorClick: (e, data) => {
350
628
  if (apiModeState.demoMode === 'single' && data.link.startsWith('#')) {
@@ -362,7 +640,10 @@ export default defineComponent({
362
640
  } else if (apiModeState.demoMode === 'default' && data.link.startsWith('#')) {
363
641
  // 多示例模式,自动会切到相应的位置。只需要记录singleDemo就好了
364
642
  const hash = data.link.slice(1)
643
+ state.currDemoId = hash
365
644
  state.singleDemo = state.currJson.demos.find((d) => d.demoId === hash)
645
+
646
+ e.preventDefault()
366
647
  }
367
648
  }
368
649
  }
@@ -379,6 +660,7 @@ export default defineComponent({
379
660
  }
380
661
  }
381
662
  )
663
+
382
664
  watch(
383
665
  () => apiModeState.demoMode,
384
666
  (value) => {
@@ -399,6 +681,11 @@ export default defineComponent({
399
681
  loadPage()
400
682
  const common = new window.TDCommon(['#footer'], {})
401
683
  common.renderFooter()
684
+ setScrollListener()
685
+ })
686
+
687
+ onUnmounted(() => {
688
+ removeScrollListener()
402
689
  })
403
690
 
404
691
  const hasKey = (apiArr, key) => !apiArr.every((item) => item[key] === undefined)
@@ -411,49 +698,136 @@ export default defineComponent({
411
698
  apiModeState,
412
699
  templateModeState,
413
700
  optionsList,
414
- hasKey
701
+ hasKey,
702
+ isRunningTest,
703
+ apiTableRef
415
704
  }
416
705
  }
417
706
  })
418
707
  </script>
419
708
 
420
709
  <style lang="less" scoped>
421
- table.api-table {
710
+ .docs-header {
711
+ position: sticky;
712
+ top: 0;
713
+ z-index: 200;
714
+ padding: var(--ti-common-space-4x) var(--ti-common-space-10x);
715
+ background-color: #fff;
716
+ box-shadow: var(--ti-common-space-3x) 0 var(--ti-common-space-5x) var(--ti-common-space-6) rgba(0, 0, 0, 0.06);
717
+
718
+ .docs-title-wrap {
719
+ flex: 1;
720
+ min-width: var(--layout-content-main-min-width);
721
+ max-width: var(--layout-content-main-max-width);
722
+ margin: 0 auto;
723
+ }
724
+
725
+ .markdown-top-body {
726
+ z-index: 99;
727
+ font-size: var(--ti-common-font-size-1);
728
+ transition: all ease-in-out 0.3s;
729
+
730
+ :deep(h1) {
731
+ margin: 0;
732
+ padding: 0;
733
+ font-size: var(--ti-common-font-size-5);
734
+ line-height: 40px;
735
+ }
736
+ }
737
+
738
+ .version-tip {
739
+ width: 100%;
740
+ }
741
+
742
+ .docs-header-spacer {
743
+ flex: none;
744
+ width: 200px;
745
+ }
746
+ }
747
+
748
+ .docs-content {
749
+ margin: var(--ti-common-space-4x) 0 120px;
750
+ transition: all ease-in-out 0.3s;
751
+
752
+ .docs-tabs-wrap {
753
+ flex: 1;
754
+ display: flex;
755
+ justify-content: center;
756
+ min-width: 680px;
757
+ padding: 0 var(--ti-common-space-10x);
758
+ }
759
+
760
+ .docs-content-tabs {
761
+ --ti-tabs-heigh: 48px;
762
+ --ti-tabs-item-font-size: var(--ti-common-font-size-3);
763
+ --ti-tabs-header-font-active-text-color: #2f5bea;
764
+ --ti-tabs-item-active-border-color: #2f5bea;
765
+
766
+ flex: 1;
767
+ transition: all ease-in-out 0.3s;
768
+ min-width: var(--layout-content-main-min-width);
769
+ max-width: var(--layout-content-main-max-width);
770
+
771
+ :deep(> .tiny-tabs__header) {
772
+ position: sticky;
773
+ top: 90px;
774
+ z-index: 100;
775
+ background-color: #fff;
776
+
777
+ &::after {
778
+ content: '';
779
+ position: absolute;
780
+ bottom: 0;
781
+ left: 0;
782
+ display: block;
783
+ width: 100%;
784
+ height: var(--ti-common-size-4x);
785
+ background: linear-gradient(to bottom, #fff, transparent);
786
+ transform: translateY(100%);
787
+ }
788
+
789
+ .tiny-tabs__item__title {
790
+ font-weight: bold;
791
+ }
792
+ }
793
+
794
+ :deep(.tiny-tabs__content) {
795
+ margin: 0;
796
+ overflow: visible;
797
+ }
798
+ }
799
+ }
800
+
801
+ .api-table {
802
+ --ti-grid-font-size: var(--ti-common-font-size-1);
803
+ --ti-grid-default-header-column-height: var(--ti-common-size-10x);
804
+
422
805
  width: 100%;
423
806
  table-layout: fixed;
424
807
  border-collapse: collapse;
425
808
  border: 1px solid rgb(239, 239, 245);
426
809
 
427
- a {
810
+ a,
811
+ .type-link {
428
812
  text-decoration: none;
429
813
  color: #5e7ce0;
430
814
  cursor: pointer;
431
815
  word-wrap: break-word;
432
- }
433
816
 
434
- tbody tr:hover {
435
- background-color: rgb(250, 250, 252);
817
+ .tiny-svg {
818
+ fill: #5e7ce0;
819
+ }
436
820
  }
437
-
438
- th {
439
- background-color: rgb(250, 250, 252);
440
- border-bottom: 1px solid rgb(239, 239, 245);
441
- padding: 12px;
442
- text-align: left;
443
- font-size: 14px;
444
- line-height: 1.5;
445
- word-break: break-word;
821
+ &-name:has(+ .version-tip) {
822
+ margin-right: 4px;
446
823
  }
447
824
 
448
- td {
449
- font-size: 14px;
450
- border-bottom: 1px solid rgb(239, 239, 245);
451
- padding: 12px;
452
- line-height: 1.5;
825
+ :deep(.api-table-expand-col) {
826
+ padding-left: var(--ti-common-space-4x);
827
+ }
453
828
 
454
- .version-tip {
455
- margin-left: 6px;
456
- }
829
+ :deep(.tiny-grid-body__expanded-cell) {
830
+ background-color: var(--ti-common-color-bg-gray);
457
831
  }
458
832
  }
459
833
 
@@ -464,8 +838,20 @@ table.api-table {
464
838
  }
465
839
 
466
840
  .catalog {
467
- height: calc(100vh - 150px);
468
- overflow: hidden;
841
+ flex: none;
842
+ width: 200px;
843
+ height: calc(100vh - 280px);
844
+ padding-top: var(--ti-common-space-4x);
845
+
846
+ .tiny-anchor__dot {
847
+ max-height: calc(100vh - 300px);
848
+ width: 200px;
849
+
850
+ :deep(.tiny-anchor) {
851
+ --ti-anchor-width: auto;
852
+ background-color: transparent;
853
+ }
854
+ }
469
855
  }
470
856
 
471
857
  .catalog:hover {
@@ -488,16 +874,32 @@ table.api-table {
488
874
  grid-template-columns: minmax(0px, 1fr) minmax(0px, 1fr);
489
875
  align-items: flex-start;
490
876
 
491
- >div {
877
+ > div {
492
878
  display: grid;
493
879
  gap: 16px;
494
880
  grid-template-columns: 100%;
495
881
  }
496
882
  }
497
883
 
498
- .cmp-container {
499
- padding-right: 24px;
884
+ .all-demos-container,
885
+ .all-api-container {
886
+ flex: 1;
887
+ padding-top: var(--ti-common-space-8x);
888
+ scroll-behavior: smooth;
889
+ }
500
890
 
891
+ .all-api-container {
892
+ padding-top: var(--ti-common-space-3x);
893
+ }
894
+
895
+ .flex-horizontal {
896
+ display: flex;
897
+ justify-content: space-between;
898
+ align-items: flex-start;
899
+ column-gap: var(--ti-common-space-4x);
900
+ }
901
+
902
+ .cmp-container {
501
903
  p {
502
904
  font-size: 16px;
503
905
  line-height: 1.7em;
@@ -509,15 +911,15 @@ table.api-table {
509
911
  :deep(.tiny-anchor__affix) {
510
912
  top: unset !important;
511
913
  overflow-y: auto;
512
- max-height: 80vh;
914
+ max-height: calc(100vh - 230px);
513
915
  }
514
916
 
515
917
  :deep(.tiny-anchor-link) {
516
918
  margin-bottom: 10px;
517
- max-width: 150px;
518
919
  font-size: 12px;
519
920
 
520
921
  a {
922
+ display: block;
521
923
  overflow: hidden;
522
924
  white-space: nowrap;
523
925
  text-overflow: ellipsis;
@@ -525,8 +927,45 @@ table.api-table {
525
927
  }
526
928
  }
527
929
 
930
+ .cmp-contributor {
931
+ margin-top: 48px;
932
+
933
+ .cmp-contributor-title {
934
+ margin-bottom: var(--ti-common-size-8x);
935
+ font-size: var(--ti-common-font-size-4);
936
+ font-weight: Semibold;
937
+ color: #191919;
938
+ }
939
+
940
+ .cmp-contributor-item {
941
+ width: 42px;
942
+ height: 42px;
943
+ margin-right: var(--ti-common-space-3x);
944
+ margin-bottom: var(--ti-common-space-5x);
945
+ display: inline-block;
946
+ border-radius: 50%;
947
+ overflow: hidden;
948
+ transition: all linear 0.2s;
949
+
950
+ &:hover {
951
+ transform: scale(110%);
952
+ }
953
+ }
954
+
955
+ .cmp-contributor-avatar {
956
+ width: 100%;
957
+ height: 100%;
958
+ }
959
+
960
+ .cmp-contributor-tip {
961
+ font-size: var(--ti-common-font-size-1);
962
+ color: #191919;
963
+ }
964
+ }
965
+
528
966
  @media (max-width: 1279px) {
529
- .catalog {
967
+ .catalog,
968
+ .docs-header-spacer {
530
969
  display: none;
531
970
  }
532
971
 
@@ -541,10 +980,6 @@ table.api-table {
541
980
  }
542
981
  }
543
982
 
544
- .all-demos-container {
545
- margin-top: 24px;
546
- }
547
-
548
983
  .custom-block.tip {
549
984
  background-color: #f3f5f7;
550
985
  border-color: #42b983;