@opentiny/vue-docs 2.2.19 → 2.2.21

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 (438) hide show
  1. package/demos/apis/action-menu.js +11 -0
  2. package/demos/apis/cascader.js +10 -0
  3. package/demos/apis/config-provider.js +1 -1
  4. package/demos/apis/date-picker.js +1 -1
  5. package/demos/apis/float-button.js +22 -22
  6. package/demos/apis/form.js +21 -0
  7. package/demos/apis/hui.js +49 -0
  8. package/demos/apis/image.js +32 -7
  9. package/demos/apis/mind-map.js +36 -41
  10. package/demos/apis/numeric.js +24 -0
  11. package/demos/apis/popeditor.js +1 -1
  12. package/demos/apis/roles.js +13 -0
  13. package/demos/apis/select.js +34 -0
  14. package/demos/apis/skeleton.js +10 -10
  15. package/demos/apis/statistic.js +144 -0
  16. package/demos/apis/tag.js +17 -7
  17. package/demos/apis/time-line.js +2 -1
  18. package/demos/mobile/app/alert/basic-usage.spec.ts +36 -0
  19. package/demos/mobile/app/alert/center.spec.ts +11 -0
  20. package/demos/mobile/app/alert/custom-close.spec.ts +45 -0
  21. package/demos/mobile/app/alert/custom-close.vue +6 -3
  22. package/demos/mobile/app/alert/icon.spec.ts +11 -0
  23. package/demos/mobile/app/alert/size.spec.ts +17 -0
  24. package/demos/mobile/app/alert/size.vue +1 -2
  25. package/demos/mobile/app/alert/slot-default.spec.ts +12 -0
  26. package/demos/mobile/app/alert/target.spec.ts +8 -0
  27. package/demos/mobile/app/alert/webdoc/alert.js +4 -4
  28. package/demos/mobile/app/input/basic-usage.spec.ts +25 -0
  29. package/demos/mobile/app/input/clearable.spec.ts +13 -0
  30. package/demos/mobile/app/input/counter.spec.ts +19 -0
  31. package/demos/mobile/app/input/counter.vue +1 -1
  32. package/demos/mobile/app/input/disabled.spec.ts +17 -0
  33. package/demos/mobile/app/input/events.spec.ts +24 -0
  34. package/demos/mobile/app/input/methods.spec.ts +23 -0
  35. package/demos/mobile/app/input/native-attributes.spec.ts +14 -0
  36. package/demos/mobile/app/input/native-attributes.vue +0 -5
  37. package/demos/mobile/app/input/prefix-suffix-icon.spec.ts +12 -0
  38. package/demos/mobile/app/input/show-password.spec.ts +16 -0
  39. package/demos/mobile/app/input/slots.spec.ts +32 -0
  40. package/demos/mobile/app/input/slots.vue +7 -7
  41. package/demos/mobile/app/input/textarea-rows-cols.spec.ts +11 -0
  42. package/demos/mobile/app/input/textarea-rows-cols.vue +3 -3
  43. package/demos/mobile/app/input/textarea-scalable.spec.ts +25 -0
  44. package/demos/mobile/app/input/textarea-scalable.vue +21 -10
  45. package/demos/mobile/app/input/type-select.spec.ts +20 -0
  46. package/demos/mobile/app/input/type.spec.ts +20 -0
  47. package/demos/mobile/app/input/validate-event.spec.ts +22 -0
  48. package/demos/mobile/app/input/webdoc/input.js +36 -36
  49. package/demos/mobile-first/app/numeric/empty-value-composition-api.vue +15 -0
  50. package/demos/mobile-first/app/numeric/empty-value.vue +24 -0
  51. package/demos/mobile-first/app/numeric/webdoc/numeric.js +14 -0
  52. package/demos/mobile-first/app/select/collapse-tags.vue +1 -1
  53. package/demos/mobile-first/app/select/webdoc/select.js +3 -2
  54. package/demos/pc/app/action-menu/card-mode-composition-api.vue +31 -0
  55. package/demos/pc/app/action-menu/card-mode.spec.ts +16 -0
  56. package/demos/pc/app/action-menu/card-mode.vue +39 -0
  57. package/demos/pc/app/action-menu/webdoc/action-menu.js +14 -0
  58. package/demos/pc/app/button/ghost-composition-api.vue +6 -6
  59. package/demos/pc/app/button/ghost.spec.ts +13 -6
  60. package/demos/pc/app/button/ghost.vue +6 -6
  61. package/demos/pc/app/calendar-view/calendar-event-composition-api.vue +5 -0
  62. package/demos/pc/app/calendar-view/calendar-event.spec.ts +5 -0
  63. package/demos/pc/app/calendar-view/calendar-event.vue +5 -1
  64. package/demos/pc/app/calendar-view/set-working-day-composition-api.vue +3 -0
  65. package/demos/pc/app/calendar-view/set-working-day.vue +3 -0
  66. package/demos/pc/app/calendar-view/webdoc/calendar-view.js +43 -20
  67. package/demos/pc/app/cascader/slot-composition-api.vue +226 -0
  68. package/demos/pc/app/cascader/slot.spec.ts +16 -0
  69. package/demos/pc/app/cascader/slot.vue +234 -0
  70. package/demos/pc/app/cascader/webdoc/cascader.js +18 -0
  71. package/demos/pc/app/chart/amap/amap.spec.ts +6 -0
  72. package/demos/pc/app/chart/amap/amap.spec.ts-snapshots/base-chromium-win32.png +0 -0
  73. package/demos/pc/app/chart/bar/bar.spec.ts +43 -0
  74. package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/base-chromium-win32.png +0 -0
  75. package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  76. package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  77. package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  78. package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  79. package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
  80. package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/demo7-chromium-win32.png +0 -0
  81. package/demos/pc/app/chart/bmap/bmap.spec.ts +7 -0
  82. package/demos/pc/app/chart/bmap/bmap.spec.ts-snapshots/base-chromium-win32.png +0 -0
  83. package/demos/pc/app/chart/boxplot/boxplot.spec.ts +19 -0
  84. package/demos/pc/app/chart/boxplot/boxplot.spec.ts-snapshots/base-chromium-win32.png +0 -0
  85. package/demos/pc/app/chart/boxplot/boxplot.spec.ts-snapshots/multiple-chromium-win32.png +0 -0
  86. package/demos/pc/app/chart/boxplot/boxplot.spec.ts-snapshots/vertical-chromium-win32.png +0 -0
  87. package/demos/pc/app/chart/candle/candle.spec.ts +43 -0
  88. package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/base-chromium-win32.png +0 -0
  89. package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  90. package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  91. package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  92. package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  93. package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
  94. package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo7-chromium-win32.png +0 -0
  95. package/demos/pc/app/chart/funnel/funnel.spec.ts +43 -0
  96. package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/base-chromium-win32.png +0 -0
  97. package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  98. package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  99. package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  100. package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  101. package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
  102. package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo7-chromium-win32.png +0 -0
  103. package/demos/pc/app/chart/gauge/gauge.spec.ts +37 -0
  104. package/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/base-chromium-win32.png +0 -0
  105. package/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  106. package/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  107. package/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  108. package/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  109. package/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
  110. package/demos/pc/app/chart/graph/graph.spec.ts +19 -0
  111. package/demos/pc/app/chart/graph/graph.spec.ts-snapshots/base-chromium-win32.png +0 -0
  112. package/demos/pc/app/chart/graph/graph.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  113. package/demos/pc/app/chart/graph/graph.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  114. package/demos/pc/app/chart/heatmap/heatmap.spec.ts +31 -0
  115. package/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/base-chromium-win32.png +0 -0
  116. package/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  117. package/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  118. package/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  119. package/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  120. package/demos/pc/app/chart/histogram/histogram.spec.ts +49 -0
  121. package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/base-chromium-win32.png +0 -0
  122. package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  123. package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  124. package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  125. package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  126. package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
  127. package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo7-chromium-win32.png +0 -0
  128. package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo8-chromium-win32.png +0 -0
  129. package/demos/pc/app/chart/line/line.spec.ts +55 -0
  130. package/demos/pc/app/chart/line/line.spec.ts-snapshots/base-chromium-win32.png +0 -0
  131. package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  132. package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  133. package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  134. package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  135. package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
  136. package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo7-chromium-win32.png +0 -0
  137. package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo8-chromium-win32.png +0 -0
  138. package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo9-chromium-win32.png +0 -0
  139. package/demos/pc/app/chart/liquidfill/liquidfill.spec.ts +7 -0
  140. package/demos/pc/app/chart/liquidfill/liquidfill.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  141. package/demos/pc/app/chart/map/base-composition-api.vue +7 -2
  142. package/demos/pc/app/chart/map/base.vue +3 -2
  143. package/demos/pc/app/chart/map/map.spec.ts +7 -0
  144. package/demos/pc/app/chart/map/map.spec.ts-snapshots/base-chromium-win32.png +0 -0
  145. package/demos/pc/app/chart/pie/pie.spec.ts +43 -0
  146. package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/base-chromium-win32.png +0 -0
  147. package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  148. package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  149. package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  150. package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  151. package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
  152. package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo7-chromium-win32.png +0 -0
  153. package/demos/pc/app/chart/process/base-composition-api.vue +29 -0
  154. package/demos/pc/app/chart/process/base.vue +37 -0
  155. package/demos/pc/app/chart/process/demo2-composition-api.vue +32 -0
  156. package/demos/pc/app/chart/process/demo2.vue +40 -0
  157. package/demos/pc/app/chart/process/demo3-composition-api.vue +71 -0
  158. package/demos/pc/app/chart/process/demo3.vue +79 -0
  159. package/demos/pc/app/chart/process/demo4-composition-api.vue +29 -0
  160. package/demos/pc/app/chart/process/demo4.vue +37 -0
  161. package/demos/pc/app/chart/process/demo5-composition-api.vue +28 -0
  162. package/demos/pc/app/chart/process/demo5.vue +36 -0
  163. package/demos/pc/app/chart/process/demo6-composition-api.vue +44 -0
  164. package/demos/pc/app/chart/process/demo6.vue +52 -0
  165. package/demos/pc/app/chart/radar/radar.spec.ts +19 -0
  166. package/demos/pc/app/chart/radar/radar.spec.ts-snapshots/base-chromium-win32.png +0 -0
  167. package/demos/pc/app/chart/radar/radar.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  168. package/demos/pc/app/chart/radar/radar.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  169. package/demos/pc/app/chart/ring/ring.spec.ts +43 -0
  170. package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/base-chromium-win32.png +0 -0
  171. package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  172. package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  173. package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  174. package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  175. package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
  176. package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/ring-title-chromium-win32.png +0 -0
  177. package/demos/pc/app/chart/sankey/sankey.spec.ts +13 -0
  178. package/demos/pc/app/chart/sankey/sankey.spec.ts-snapshots/base-chromium-win32.png +0 -0
  179. package/demos/pc/app/chart/sankey/sankey.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  180. package/demos/pc/app/chart/scatter/scatter.spec.ts +49 -0
  181. package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/base-chromium-win32.png +0 -0
  182. package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  183. package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  184. package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  185. package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  186. package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
  187. package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo7-chromium-win32.png +0 -0
  188. package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo8-chromium-win32.png +0 -0
  189. package/demos/pc/app/chart/sunburst/sunburst.spec.ts +19 -0
  190. package/demos/pc/app/chart/sunburst/sunburst.spec.ts-snapshots/base-chromium-win32.png +0 -0
  191. package/demos/pc/app/chart/sunburst/sunburst.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  192. package/demos/pc/app/chart/sunburst/sunburst.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  193. package/demos/pc/app/chart/tree/tree.spec.ts +31 -0
  194. package/demos/pc/app/chart/tree/tree.spec.ts-snapshots/base-chromium-win32.png +0 -0
  195. package/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  196. package/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  197. package/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  198. package/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  199. package/demos/pc/app/chart/waterfall/waterfall.spec.ts +31 -0
  200. package/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/base-chromium-win32.png +0 -0
  201. package/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  202. package/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  203. package/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  204. package/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
  205. package/demos/pc/app/chart/webdoc/chart-process.cn.md +7 -0
  206. package/demos/pc/app/chart/webdoc/chart-process.en.md +7 -0
  207. package/demos/pc/app/chart/webdoc/chart-process.js +55 -0
  208. package/demos/pc/app/chart/webdoc/chart-process.json.cn.md +7 -0
  209. package/demos/pc/app/chart/webdoc/chart-process.json.en.md +7 -0
  210. package/demos/pc/app/chart/wordcloud/wordcloud.spec.ts +25 -0
  211. package/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/base-chromium-win32.png +0 -0
  212. package/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
  213. package/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
  214. package/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
  215. package/demos/pc/app/company/custom-service.spec.ts +2 -1
  216. package/demos/pc/app/country/custom-service.spec.js +1 -1
  217. package/demos/pc/app/date-picker/basic-usage-composition-api.vue +2 -0
  218. package/demos/pc/app/date-picker/basic-usage.vue +2 -0
  219. package/demos/pc/app/date-picker/default-value.spec.ts +2 -2
  220. package/demos/pc/app/date-picker/events.spec.ts +3 -3
  221. package/demos/pc/app/date-picker/format.spec.ts +2 -2
  222. package/demos/pc/app/dropdown/options.spec.ts +3 -0
  223. package/demos/pc/app/dropdown/trigger.spec.ts +2 -2
  224. package/demos/pc/app/file-upload/http-request-composition-api.vue +5 -3
  225. package/demos/pc/app/file-upload/http-request.vue +4 -2
  226. package/demos/pc/app/float-button/backTop.spec.ts +14 -0
  227. package/demos/pc/app/float-button/basic-usage.spec.ts +34 -0
  228. package/demos/pc/app/float-button/icon.spec.ts +10 -0
  229. package/demos/pc/app/float-button/jump.spec.ts +8 -0
  230. package/demos/pc/app/float-button/reset-time.spec.ts +18 -0
  231. package/demos/pc/app/float-button/trigger.spec.ts +16 -0
  232. package/demos/pc/app/form/error-slot-composition-api.vue +62 -0
  233. package/demos/pc/app/form/error-slot.spec.ts +15 -0
  234. package/demos/pc/app/form/error-slot.vue +71 -0
  235. package/demos/pc/app/form/extra-tip-composition-api.vue +48 -0
  236. package/demos/pc/app/form/extra-tip.spec.ts +15 -0
  237. package/demos/pc/app/form/extra-tip.vue +57 -0
  238. package/demos/pc/app/form/webdoc/form.js +34 -4
  239. package/demos/pc/app/grid/filter/simple-date-filter.spec.ts +2 -1
  240. package/demos/pc/app/grid/fixed/group-header-fixed-composition-api.vue +212 -0
  241. package/demos/pc/app/grid/fixed/group-header-fixed.vue +232 -0
  242. package/demos/pc/app/grid/large-data/column-anchor-clear-active-composition-api.vue +190 -0
  243. package/demos/pc/app/grid/large-data/column-anchor-clear-active.vue +199 -0
  244. package/demos/pc/app/grid/large-data/column-anchor-composition-api.vue +124 -0
  245. package/demos/pc/app/grid/large-data/scroll-to.spec.js +1 -1
  246. package/demos/pc/app/grid/renderer/inner-renderer-rate-composition-api.vue +50 -0
  247. package/demos/pc/app/grid/renderer/inner-renderer-rate.spec.js +12 -0
  248. package/demos/pc/app/grid/renderer/inner-renderer-rate.vue +60 -0
  249. package/demos/pc/app/grid/size/grid-size.spec.js +2 -2
  250. package/demos/pc/app/grid/tree-table/set-tree-expansion-composition-api.vue +2 -2
  251. package/demos/pc/app/grid/tree-table/set-tree-expansion.vue +2 -2
  252. package/demos/pc/app/grid/tree-table/tree-grid-index-composition-api.vue +2 -2
  253. package/demos/pc/app/grid/tree-table/tree-grid-index.spec.js +16 -4
  254. package/demos/pc/app/grid/tree-table/tree-grid-index.vue +2 -2
  255. package/demos/pc/app/grid/tree-table/tree-grid-insert-delete-update-composition-api.vue +7 -2
  256. package/demos/pc/app/grid/tree-table/tree-grid-insert-delete-update.spec.js +6 -2
  257. package/demos/pc/app/grid/tree-table/tree-grid-insert-delete-update.vue +5 -2
  258. package/demos/pc/app/grid/webdoc/grid-custom-style.js +1 -1
  259. package/demos/pc/app/grid/webdoc/grid-editor.js +1 -1
  260. package/demos/pc/app/grid/webdoc/grid-fixed.js +11 -0
  261. package/demos/pc/app/grid/webdoc/grid-large-data.js +24 -0
  262. package/demos/pc/app/grid/webdoc/grid-renderer.js +11 -0
  263. package/demos/pc/app/grid/webdoc/grid-toolbar.js +1 -1
  264. package/demos/pc/app/image/count-slot-composition-api.vue +32 -0
  265. package/demos/pc/app/image/count-slot.spec.ts +16 -0
  266. package/demos/pc/app/image/count-slot.vue +40 -0
  267. package/demos/pc/app/image/index-change-composition-api.vue +29 -0
  268. package/demos/pc/app/image/index-change.spec.ts +16 -0
  269. package/demos/pc/app/image/index-change.vue +37 -0
  270. package/demos/pc/app/image/keep-style-composition-api.vue +24 -0
  271. package/demos/pc/app/image/keep-style.spec.ts +56 -0
  272. package/demos/pc/app/image/keep-style.vue +32 -0
  273. package/demos/pc/app/image/preview-composition-api.vue +1 -1
  274. package/demos/pc/app/image/preview.vue +1 -1
  275. package/demos/pc/app/image/webdoc/image.js +73 -11
  276. package/demos/pc/app/mind-map/basic-usage-composition-api.vue +4 -4
  277. package/demos/pc/app/mind-map/basic-usage.vue +4 -4
  278. package/demos/pc/app/mind-map/event-composition-api.vue +13 -45
  279. package/demos/pc/app/mind-map/event.spec.ts +11 -8
  280. package/demos/pc/app/mind-map/event.vue +27 -57
  281. package/demos/pc/app/mind-map/export-data-composition-api.vue +7 -9
  282. package/demos/pc/app/mind-map/export-data.vue +13 -13
  283. package/demos/pc/app/mind-map/webdoc/mind-map.js +38 -10
  284. package/demos/pc/app/numeric/controls-composition-api.vue +10 -4
  285. package/demos/pc/app/numeric/controls.vue +10 -4
  286. package/demos/pc/app/numeric/empty-value-composition-api.vue +15 -0
  287. package/demos/pc/app/numeric/empty-value.spec.ts +15 -0
  288. package/demos/pc/app/numeric/empty-value.vue +24 -0
  289. package/demos/pc/app/numeric/mouse-wheel.spec.ts +1 -1
  290. package/demos/pc/app/numeric/precision-composition-api.vue +10 -4
  291. package/demos/pc/app/numeric/precision.vue +10 -4
  292. package/demos/pc/app/numeric/string-mode-composition-api.vue +10 -0
  293. package/demos/pc/app/numeric/string-mode.spec.ts +17 -0
  294. package/demos/pc/app/numeric/string-mode.vue +19 -0
  295. package/demos/pc/app/numeric/webdoc/numeric.js +52 -26
  296. package/demos/pc/app/popconfirm/trigger.spec.ts +8 -6
  297. package/demos/pc/app/popconfirm/type.spec.ts +6 -5
  298. package/demos/pc/app/popeditor/condition-layout-composition-api.vue +3 -2
  299. package/demos/pc/app/popeditor/condition-layout.vue +3 -2
  300. package/demos/pc/app/popeditor/slot-footer-composition-api.vue +2 -2
  301. package/demos/pc/app/popeditor/slot-footer.vue +2 -2
  302. package/demos/pc/app/popeditor/webdoc/popeditor.js +11 -12
  303. package/demos/pc/app/radio/dynamic-disable-composition-api.vue +7 -4
  304. package/demos/pc/app/radio/dynamic-disable.vue +8 -5
  305. package/demos/pc/app/roles/base-composition-api.vue +2 -2
  306. package/demos/pc/app/roles/base.vue +2 -2
  307. package/demos/pc/app/select/collapse-tags-composition-api.vue +7 -1
  308. package/demos/pc/app/select/collapse-tags.spec.ts +50 -29
  309. package/demos/pc/app/select/collapse-tags.vue +10 -3
  310. package/demos/pc/app/select/copy-multi.spec.ts +1 -0
  311. package/demos/pc/app/select/copy-single.spec.ts +1 -0
  312. package/demos/pc/app/select/disabled-composition-api.vue +2 -2
  313. package/demos/pc/app/select/disabled.spec.ts +3 -3
  314. package/demos/pc/app/select/disabled.vue +2 -2
  315. package/demos/pc/app/select/events-composition-api.vue +0 -1
  316. package/demos/pc/app/select/events.spec.ts +3 -4
  317. package/demos/pc/app/select/events.vue +0 -1
  318. package/demos/pc/app/select/multiple.vue +1 -1
  319. package/demos/pc/app/select/nest-grid-remote-composition-api.vue +120 -0
  320. package/demos/pc/app/select/nest-grid-remote.spec.ts +135 -0
  321. package/demos/pc/app/select/nest-grid-remote.vue +136 -0
  322. package/demos/pc/app/select/size.spec.ts +4 -2
  323. package/demos/pc/app/select/webdoc/select.js +10 -24
  324. package/demos/pc/app/skeleton/animation-composition-api.vue +25 -0
  325. package/demos/pc/app/skeleton/animation.spec.ts +19 -0
  326. package/demos/pc/app/skeleton/animation.vue +36 -0
  327. package/demos/pc/app/skeleton/custom-layout-composition-api.vue +19 -3
  328. package/demos/pc/app/skeleton/custom-layout.spec.ts +4 -7
  329. package/demos/pc/app/skeleton/custom-layout.vue +19 -3
  330. package/demos/pc/app/skeleton/custom-paragraph-width-composition-api.vue +1 -1
  331. package/demos/pc/app/skeleton/custom-paragraph-width.spec.ts +1 -1
  332. package/demos/pc/app/skeleton/custom-paragraph-width.vue +1 -1
  333. package/demos/pc/app/skeleton/custom-rows.spec.ts +1 -1
  334. package/demos/pc/app/skeleton/fine-grained-mode-composition-api.vue +5 -22
  335. package/demos/pc/app/skeleton/fine-grained-mode.spec.ts +4 -40
  336. package/demos/pc/app/skeleton/fine-grained-mode.vue +6 -23
  337. package/demos/pc/app/skeleton/loading-completed-composition-api.vue +3 -13
  338. package/demos/pc/app/skeleton/loading-completed.spec.ts +1 -12
  339. package/demos/pc/app/skeleton/loading-completed.vue +4 -10
  340. package/demos/pc/app/skeleton/size-composition-api.vue +16 -0
  341. package/demos/pc/app/skeleton/size.spec.ts +14 -0
  342. package/demos/pc/app/skeleton/size.vue +23 -0
  343. package/demos/pc/app/skeleton/webdoc/skeleton.js +42 -21
  344. package/demos/pc/app/statistic/basic-usage-composition-api.vue +26 -0
  345. package/demos/pc/app/statistic/basic-usage.spec.ts +20 -0
  346. package/demos/pc/app/statistic/basic-usage.vue +38 -0
  347. package/demos/pc/app/statistic/statistic-slot-composition-api.vue +39 -0
  348. package/demos/pc/app/statistic/statistic-slot.spec.ts +13 -0
  349. package/demos/pc/app/statistic/statistic-slot.vue +51 -0
  350. package/demos/pc/app/statistic/statistic-style-composition-api.vue +29 -0
  351. package/demos/pc/app/statistic/statistic-style.spec.ts +7 -0
  352. package/demos/pc/app/statistic/statistic-style.vue +41 -0
  353. package/demos/pc/app/statistic/webdoc/statistic.cn.md +7 -0
  354. package/demos/pc/app/statistic/webdoc/statistic.en.md +7 -0
  355. package/demos/pc/app/statistic/webdoc/statistic.js +46 -0
  356. package/demos/pc/app/tabs/tabs-events-close.spec.ts +1 -1
  357. package/demos/pc/app/tag/color3-composition-api.vue +19 -1
  358. package/demos/pc/app/tag/color3.spec.ts +7 -11
  359. package/demos/pc/app/tag/color3.vue +19 -1
  360. package/demos/pc/app/tag/webdoc/tag.js +4 -4
  361. package/demos/pc/app/time-line/custom-field-composition-api.vue +4 -1
  362. package/demos/pc/app/time-line/custom-field.spec.ts +1 -0
  363. package/demos/pc/app/time-line/custom-field.vue +4 -1
  364. package/demos/pc/app/time-line/custom-icon-composition-api.vue +21 -0
  365. package/demos/pc/app/time-line/custom-icon.spec.ts +14 -0
  366. package/demos/pc/app/time-line/custom-icon.vue +34 -0
  367. package/demos/pc/app/time-line/status-composition-api.vue +24 -3
  368. package/demos/pc/app/time-line/status.spec.ts +53 -11
  369. package/demos/pc/app/time-line/status.vue +14 -3
  370. package/demos/pc/app/time-line/webdoc/time-line.js +57 -44
  371. package/demos/pc/app/time-picker/default-value.spec.ts +6 -4
  372. package/demos/pc/app/time-picker/disabled.spec.ts +2 -7
  373. package/demos/pc/app/time-picker/editable.spec.ts +4 -1
  374. package/demos/pc/app/time-picker/format.spec.ts +6 -8
  375. package/demos/pc/app/time-picker/is-range.spec.ts +1 -1
  376. package/demos/pc/app/time-picker/picker-options.spec.ts +16 -14
  377. package/demos/pc/app/tree-menu/lazy-load-composition-api.vue +1 -1
  378. package/demos/pc/app/tree-menu/lazy-load.vue +1 -1
  379. package/demos/pc/menus.js +73 -68
  380. package/demos/pc/webdoc/aui-adapter-en.md +207 -0
  381. package/demos/pc/webdoc/aui-adapter.md +207 -0
  382. package/demos/pc/webdoc/changelog.md +67 -3
  383. package/demos/saas/menus.js +2 -3
  384. package/index.html +1 -1
  385. package/package.json +11 -11
  386. package/src/tools/useApiMode.js +1 -1
  387. package/src/tools/useTheme.js +2 -1
  388. package/src/views/components/components.vue +17 -6
  389. package/src/views/layout/layout.vue +3 -4
  390. package/src/views/overview.vue +9 -5
  391. package/demos/apis/credit-card-form.js +0 -98
  392. package/demos/apis/detail-page.js +0 -126
  393. package/demos/apis/slide-bar.js +0 -104
  394. package/demos/pc/app/credit-card-form/background-image-composition-api.vue +0 -17
  395. package/demos/pc/app/credit-card-form/background-image.vue +0 -25
  396. package/demos/pc/app/credit-card-form/basic-usage-composition-api.vue +0 -16
  397. package/demos/pc/app/credit-card-form/basic-usage.vue +0 -24
  398. package/demos/pc/app/credit-card-form/credit-card-form-events-composition-api.vue +0 -51
  399. package/demos/pc/app/credit-card-form/credit-card-form-events.vue +0 -55
  400. package/demos/pc/app/credit-card-form/webdoc/credit-card-form.cn.md +0 -7
  401. package/demos/pc/app/credit-card-form/webdoc/credit-card-form.en.md +0 -7
  402. package/demos/pc/app/credit-card-form/webdoc/credit-card-form.js +0 -46
  403. package/demos/pc/app/detail-page/basic-usage-composition-api.vue +0 -32
  404. package/demos/pc/app/detail-page/basic-usage.spec.ts +0 -29
  405. package/demos/pc/app/detail-page/basic-usage.vue +0 -40
  406. package/demos/pc/app/detail-page/custom-show-text-composition-api.vue +0 -41
  407. package/demos/pc/app/detail-page/custom-show-text.spec.ts +0 -16
  408. package/demos/pc/app/detail-page/custom-show-text.vue +0 -49
  409. package/demos/pc/app/detail-page/webdoc/detail-page.cn.md +0 -7
  410. package/demos/pc/app/detail-page/webdoc/detail-page.en.md +0 -7
  411. package/demos/pc/app/detail-page/webdoc/detail-page.js +0 -38
  412. package/demos/pc/app/select/nest-grid-remote-multi-composition-api.vue +0 -106
  413. package/demos/pc/app/select/nest-grid-remote-multi.spec.ts +0 -68
  414. package/demos/pc/app/select/nest-grid-remote-multi.vue +0 -118
  415. package/demos/pc/app/select/nest-grid-remote-single-composition-api.vue +0 -230
  416. package/demos/pc/app/select/nest-grid-remote-single.spec.ts +0 -62
  417. package/demos/pc/app/select/nest-grid-remote-single.vue +0 -238
  418. package/demos/pc/app/slide-bar/basic-usage-composition-api.vue +0 -21
  419. package/demos/pc/app/slide-bar/basic-usage.spec.ts +0 -12
  420. package/demos/pc/app/slide-bar/basic-usage.vue +0 -29
  421. package/demos/pc/app/slide-bar/custom-content-composition-api.vue +0 -26
  422. package/demos/pc/app/slide-bar/custom-content.spec.ts +0 -10
  423. package/demos/pc/app/slide-bar/custom-content.vue +0 -34
  424. package/demos/pc/app/slide-bar/custom-tag-composition-api.vue +0 -93
  425. package/demos/pc/app/slide-bar/custom-tag.spec.ts +0 -10
  426. package/demos/pc/app/slide-bar/custom-tag.vue +0 -101
  427. package/demos/pc/app/slide-bar/slide-bar-events-composition-api.vue +0 -37
  428. package/demos/pc/app/slide-bar/slide-bar-events.spec.ts +0 -11
  429. package/demos/pc/app/slide-bar/slide-bar-events.vue +0 -45
  430. package/demos/pc/app/slide-bar/webdoc/slide-bar.cn.md +0 -7
  431. package/demos/pc/app/slide-bar/webdoc/slide-bar.en.md +0 -7
  432. package/demos/pc/app/slide-bar/webdoc/slide-bar.js +0 -72
  433. package/demos/pc/app/slide-bar/wheel-blocks-composition-api.vue +0 -21
  434. package/demos/pc/app/slide-bar/wheel-blocks.spec.ts +0 -13
  435. package/demos/pc/app/slide-bar/wheel-blocks.vue +0 -29
  436. package/demos/pc/overviewimage/credit-card-form.svg +0 -91
  437. package/demos/pc/overviewimage/detail-page.svg +0 -90
  438. package/demos/pc/overviewimage/slide-bar.svg +0 -96
@@ -22,9 +22,9 @@ export default {
22
22
  },
23
23
  desc: {
24
24
  'zh-CN':
25
- '<p>可通过<code>max</code>属性设置计数器允许的最大值,<code>min</code>属性设置计数器允许的最小值,<code>circulate</code>属性设置当计数器的数值为最大值,继续计数,是否从最小值开始计数。</p>\n',
25
+ '可通过<code>max</code>属性设置计数器允许的最大值,<code>min</code>属性设置计数器允许的最小值,<code>circulate</code>属性设置当计数器的数值为最大值,继续计数,是否从最小值开始计数。',
26
26
  'en-US':
27
- '<p>By setting the maximum value allowed by the<code>max</code>attribute counter, setting the minimum value allowed by the<code>min</code>attribute counter, and setting the<code>cycle</code>attribute, when the counter value reaches the maximum value, continue counting, whether to start counting from the minimum value.</p>\n'
27
+ 'By setting the maximum value allowed by the<code>max</code>attribute counter, setting the minimum value allowed by the<code>min</code>attribute counter, and setting the<code>cycle</code>attribute, when the counter value reaches the maximum value, continue counting, whether to start counting from the minimum value.'
28
28
  },
29
29
  codeFiles: ['max-min.vue']
30
30
  },
@@ -35,9 +35,8 @@ export default {
35
35
  'en-US': 'Step'
36
36
  },
37
37
  desc: {
38
- 'zh-CN': '<p>可通过<code>step</code>属性设置计数器的加减数值。</p>\n',
39
- 'en-US':
40
- '<p>Set the addition and subtraction values of the counter through the<code>step</code>attribute.</p>\n'
38
+ 'zh-CN': '可通过<code>step</code>属性设置计数器的加减数值。',
39
+ 'en-US': 'Set the addition and subtraction values of the counter through the<code>step</code>attribute.'
41
40
  },
42
41
  codeFiles: ['about-step.vue']
43
42
  },
@@ -48,10 +47,9 @@ export default {
48
47
  'en-US': 'Numerical precision and format'
49
48
  },
50
49
  desc: {
51
- 'zh-CN':
52
- '<p>可通过<code>precision</code>属性设置计数器的精度值,<code>format</code>属性设置数字显示格式。</p>\n',
50
+ 'zh-CN': '可通过<code>precision</code>属性设置计数器的精度值,<code>format</code>属性设置数字显示格式。',
53
51
  'en-US':
54
- '<p>Set the precision value of the counter through the<code>precision</code>attribute,<code>format</code> property sets the numeric display format.</p>\n'
52
+ 'Set the precision value of the counter through the<code>precision</code>attribute,<code>format</code> property sets the numeric display format.'
55
53
  },
56
54
  codeFiles: ['precision.vue']
57
55
  },
@@ -62,7 +60,7 @@ export default {
62
60
  'en-US': 'Disabled'
63
61
  },
64
62
  desc: {
65
- 'zh-CN': '<p>可通过<code>disabled</code>属性设置是否禁用计数器。</p>',
63
+ 'zh-CN': '可通过<code>disabled</code>属性设置是否禁用计数器。',
66
64
  'en-US': 'Disable the counter by setting <code>disabled</code>.'
67
65
  },
68
66
  codeFiles: ['dynamic-disabled.vue']
@@ -77,10 +75,24 @@ export default {
77
75
  'zh-CN':
78
76
  '可通过<code>allow-empty</code>属性设置计数器内容的可清空特性,默认为 <code>false</code>,表示不可清空。',
79
77
  'en-US':
80
- '<p>You can use the <code>allow-empty</code> property to set the clearability of counter contents. The default value is <code>false</code>, indicating that the data cannot be cleared. </p>\n'
78
+ 'You can use the <code>allow-empty</code> property to set the clearability of counter contents. The default value is <code>false</code>, indicating that the data cannot be cleared. '
81
79
  },
82
80
  codeFiles: ['allow-empty.vue']
83
81
  },
82
+ {
83
+ demoId: 'empty-value',
84
+ name: {
85
+ 'zh-CN': '设定清空输入后的绑定值',
86
+ 'en-US': 'Sets the binding value after the input is cleared'
87
+ },
88
+ desc: {
89
+ 'zh-CN':
90
+ '可通过 <code>empty-value</code> 属性设置计数器在可清空下,清空后组件的绑定值。默认为 <code>undefined</code>。示例中将清空后组件绑定值改为<code>null</code>',
91
+ 'en-US':
92
+ 'You can use the <code>empty-value</code> attribute to set the binding value of the cleared component when the counter can be cleared. The default value is <code>undefined</code>. In the example, the component binding value is changed to <code>null</code>.'
93
+ },
94
+ codeFiles: ['empty-value.vue']
95
+ },
84
96
  {
85
97
  demoId: 'numeric-size',
86
98
  name: {
@@ -89,9 +101,9 @@ export default {
89
101
  },
90
102
  desc: {
91
103
  'zh-CN':
92
- '<p>可通过<code>size</code> 属性设置计数器尺寸,可选值有<code>medium</code><code>small</code><code>mini</code>。</p>\n',
104
+ '可通过<code>size</code> 属性设置计数器尺寸,可选值有<code>medium</code><code>small</code><code>mini</code>。',
93
105
  'en-US':
94
- '<p>You can set the counter size through the<code>size</code>attribute.The value can be <code>medium</code><code>small</code><code>mini</code>. </p>\n'
106
+ 'You can set the counter size through the<code>size</code>attribute.The value can be <code>medium</code><code>small</code><code>mini</code>. '
95
107
  },
96
108
  codeFiles: ['numeric-size.vue']
97
109
  },
@@ -103,9 +115,9 @@ export default {
103
115
  },
104
116
  desc: {
105
117
  'zh-CN':
106
- '<p>可通过<code>controls</code> 属性设置计数器是否显示加减按钮,<code>controls-position</code> 属性设置加减按钮显示的位置。加减按钮默认分列两侧显示,<code>show-left</code> 属性设置左对齐。</p>\n',
118
+ '可通过<code>controls</code> 属性设置计数器是否显示加减按钮,<code>controls-position</code> 属性设置加减按钮显示的位置。加减按钮默认分列两侧显示,<code>show-left</code> 属性设置左对齐。',
107
119
  'en-US':
108
- '<p>By setting whether the<code>controls</code>attribute counter displays add/subtract buttons, set the position where the<code>controls position</code>attribute add/subtract buttons are displayed. The addition and subtraction buttons are displayed on both sides of the column by default,<code>show-left</code> property set to left</p>\n'
120
+ 'By setting whether the<code>controls</code>attribute counter displays add/subtract buttons, set the position where the<code>controls position</code>attribute add/subtract buttons are displayed. The addition and subtraction buttons are displayed on both sides of the column by default,<code>show-left</code> property set to left'
109
121
  },
110
122
  codeFiles: ['controls.vue']
111
123
  },
@@ -116,9 +128,9 @@ export default {
116
128
  'en-US': 'Mouse wheel scrolling change value'
117
129
  },
118
130
  desc: {
119
- 'zh-CN': '<p>可通过<code>mouse-wheel</code>属性设置控制鼠标滚动滑轮的数值。</p>\n',
131
+ 'zh-CN': '可通过<code>mouse-wheel</code>属性设置控制鼠标滚动滑轮的数值。',
120
132
  'en-US':
121
- '<p>You can use the <code>mouse-wheel</code> attribute to control whether the scroll wheel can change the value. </p>\n'
133
+ 'You can use the <code>mouse-wheel</code> attribute to control whether the scroll wheel can change the value. '
122
134
  },
123
135
  codeFiles: ['mouse-wheel.vue']
124
136
  },
@@ -129,9 +141,9 @@ export default {
129
141
  'en-US': 'Unit'
130
142
  },
131
143
  desc: {
132
- 'zh-CN': '<p>可通过<code>unit</code>属性设置计数器的单位,设置单位后,加减按钮将不可用。</p>\n',
144
+ 'zh-CN': '可通过<code>unit</code>属性设置计数器的单位,设置单位后,加减按钮将不可用。',
133
145
  'en-US':
134
- '<p>Set the unit of the counter by using the <code>unit</code>property. After setting the unit, the increase and decrease buttons will be disabled.</p>\n'
146
+ 'Set the unit of the counter by using the <code>unit</code>property. After setting the unit, the increase and decrease buttons will be disabled.'
135
147
  },
136
148
  codeFiles: ['unit.vue']
137
149
  },
@@ -142,8 +154,10 @@ export default {
142
154
  'en-US': 'Value change event'
143
155
  },
144
156
  desc: {
145
- 'zh-CN': '<p> 可通过<code>@change</code>设置监听数值改变事件。</p>\n',
146
- 'en-US': 'The <code>@change</code> event is triggered when the value of the text box is changed. </p>\n'
157
+ 'zh-CN':
158
+ '可通过<code>@change</code>设置监听数值改变事件。当<code>change-compat</code>为false时,仅当加减按钮及直接输入数值时会触发<code>change</code>事件。',
159
+ 'en-US':
160
+ 'The <code>@change</code> event is triggered when the value of the text box is changed. When the<code>change compat</code>is false, the <code>change</code> event will be triggered when only the add and subtract buttons and directly entering numerical values are used.</p>\n'
147
161
  },
148
162
  codeFiles: ['change-event.vue']
149
163
  },
@@ -154,8 +168,8 @@ export default {
154
168
  'en-US': 'Focus Event'
155
169
  },
156
170
  desc: {
157
- 'zh-CN': '<p>可通过<code>@focus</code>设置监听输入框获得焦点事件。</p>\n',
158
- 'en-US': 'The <code>@focus</code> event is triggered when the text box is focused. </p>\n'
171
+ 'zh-CN': '可通过<code>@focus</code>设置监听输入框获得焦点事件。',
172
+ 'en-US': 'The <code>@focus</code> event is triggered when the text box is focused. '
159
173
  },
160
174
  codeFiles: ['focus-event.vue']
161
175
  },
@@ -166,11 +180,23 @@ export default {
166
180
  'en-US': 'Out of Focus Event'
167
181
  },
168
182
  desc: {
169
- 'zh-CN': '<p>可通过<code>@blur</code>设置监听输入框失去焦点事件。</p>\n',
170
- 'en-US': '<p>The<code>@blur</code>event is triggered when the text box loses focus. </p>\n'
183
+ 'zh-CN': '可通过<code>@blur</code>设置监听输入框失去焦点事件。',
184
+ 'en-US': 'The<code>@blur</code>event is triggered when the text box loses focus. '
171
185
  },
172
186
  codeFiles: ['blur-event.vue']
173
187
  },
188
+ {
189
+ demoId: 'string-mode',
190
+ name: {
191
+ 'zh-CN': '高精度',
192
+ 'en-US': 'Out of Focus Event'
193
+ },
194
+ desc: {
195
+ 'zh-CN': '可通过 <code>string-mode</code> 设置高精度模式,当 JS 默认的 Number 不满足数字的长度与精度需求时。',
196
+ 'en-US': 'The<code>@blur</code>event is triggered when the text box loses focus. '
197
+ },
198
+ codeFiles: ['string-mode.vue']
199
+ },
174
200
  {
175
201
  demoId: 'filter-mode',
176
202
  name: {
@@ -179,7 +205,7 @@ export default {
179
205
  },
180
206
  desc: {
181
207
  'zh-CN':
182
- '<p>通过<code> shape="filter" </code>属性设置切换过滤器模式,过滤器模式下可传入<code>title</code>显示标题,<code>tip</code>显示提示信息,<code>clearable</code>是否显示清除按钮,默认值为<code>true</code>。<code>blank</code>属性将过滤器背景设置为透明。</p>\n',
208
+ '通过<code> shape="filter" </code>属性设置切换过滤器模式,过滤器模式下可传入<code>title</code>显示标题,<code>tip</code>显示提示信息,<code>clearable</code>是否显示清除按钮,默认值为<code>true</code>。<code>blank</code>属性将过滤器背景设置为透明。',
183
209
  'en-US':
184
210
  'Set the <code>shape="filter"</code> attribute to switch the filter mode. In the filter mode, you can transfer the <code>title</code> to display the title and <code>tip</code> to display the prompt. <code>clearable</code>Indicates whether to display the Clear button. The default value is <code>true</code>.<code>blank</code> property sets the filter background to transparent.'
185
211
  },
@@ -193,7 +219,7 @@ export default {
193
219
  },
194
220
  desc: {
195
221
  'zh-CN':
196
- '<p>通过<code>filter</code>属性展示筛选框,<code>filter-change</code>事件筛选框选择触发,过滤器模式下点击关闭图标,触发<code>clear</code>事件。</p>\n',
222
+ '通过<code>filter</code>属性展示筛选框,<code>filter-change</code>事件筛选框选择触发,过滤器模式下点击关闭图标,触发<code>clear</code>事件。',
197
223
  'en-US':
198
224
  'The <code>filter</code> attribute is used to display the filter box. Select Trigger in the <code>filter-change</code> event filter box. In filter mode, click the close icon to trigger the <code>clear</code> event.'
199
225
  },
@@ -4,15 +4,17 @@ test('触发方式', async ({ page }) => {
4
4
  page.on('pageerror', (exception) => expect(exception).toBeNull())
5
5
  await page.goto('popconfirm#trigger')
6
6
 
7
- const demo = page.locator('#trigger')
8
- const popConfirm = demo.locator('.tiny-popconfirm .tiny-popconfirm__reference .tiny-button')
7
+ const hoverBtn = page.getByRole('button', { name: '鼠标悬停显示' })
8
+ const clickBtn = page.getByRole('button', { name: '点击显示' })
9
9
  const popConfirmPopover = page.locator('body > .tiny-popconfirm-popover')
10
+ const hoverValueBtn = page.getByRole('button', { name: '确定' })
10
11
 
11
- await popConfirm.first().hover()
12
+ await hoverBtn.hover()
13
+ await page.waitForTimeout(100)
12
14
  await expect(popConfirmPopover.first()).toBeVisible()
15
+ await hoverValueBtn.click()
16
+ await page.waitForTimeout(100)
13
17
 
14
- await popConfirm.nth(1).hover()
15
- await expect(popConfirmPopover.nth(1)).not.toBeVisible()
16
- await popConfirm.nth(1).click()
18
+ await clickBtn.click()
17
19
  await expect(popConfirmPopover.nth(1)).toBeVisible()
18
20
  })
@@ -1,4 +1,5 @@
1
- import { test, expect, Locator } from '@playwright/test'
1
+ import type { Locator } from '@playwright/test'
2
+ import { test, expect } from '@playwright/test'
2
3
 
3
4
  test('图标类型', async ({ page }) => {
4
5
  page.on('pageerror', (exception) => expect(exception).toBeNull())
@@ -9,16 +10,16 @@ test('图标类型', async ({ page }) => {
9
10
  const popConfirmPopover = page.locator('body > .tiny-popconfirm-popover')
10
11
  const getIcon = (parent: Locator) => parent.locator('svg.tiny-svg path').first()
11
12
 
12
- await popConfirm.first().click()
13
+ await popConfirm.first().hover()
13
14
  await expect(popConfirmPopover.first()).toBeVisible()
14
15
  await expect(getIcon(popConfirmPopover.first())).toBeVisible()
15
- await popConfirm.nth(1).click()
16
+ await popConfirm.nth(1).hover()
16
17
  await expect(popConfirmPopover.nth(1)).toBeVisible()
17
18
  await expect(getIcon(popConfirmPopover.nth(1))).toBeVisible()
18
- await popConfirm.nth(2).click()
19
+ await popConfirm.nth(2).hover()
19
20
  await expect(popConfirmPopover.nth(2)).toBeVisible()
20
21
  await expect(getIcon(popConfirmPopover.nth(2))).toBeVisible()
21
- await popConfirm.nth(3).click()
22
+ await popConfirm.nth(3).hover()
22
23
  await expect(popConfirmPopover.nth(3)).toBeVisible()
23
24
  await expect(getIcon(popConfirmPopover.nth(3))).toBeVisible()
24
25
  })
@@ -14,6 +14,7 @@
14
14
  <script setup>
15
15
  import { ref } from 'vue'
16
16
  import { Popeditor as TinyPopeditor, Select, Numeric } from '@opentiny/vue'
17
+ import { hooks } from '@opentiny/vue-common'
17
18
 
18
19
  const value = ref(5)
19
20
  const gridOp = ref({
@@ -54,7 +55,7 @@ const conditions = ref([
54
55
  {
55
56
  label: '城市',
56
57
  field: 'city',
57
- component: Select,
58
+ component: hooks.markRaw(Select),
58
59
  attrs: {
59
60
  options: [
60
61
  { label: '福州', value: 'fz' },
@@ -63,7 +64,7 @@ const conditions = ref([
63
64
  },
64
65
  span: 6
65
66
  },
66
- { label: '员工', field: 'employees', component: Numeric }
67
+ { label: '员工', field: 'employees', component: hooks.markRaw(Numeric) }
67
68
  ])
68
69
 
69
70
  function remoteSearch({ page }) {
@@ -13,6 +13,7 @@
13
13
 
14
14
  <script>
15
15
  import { Popeditor, Select, Numeric } from '@opentiny/vue'
16
+ import { hooks } from '@opentiny/vue-common'
16
17
 
17
18
  export default {
18
19
  components: {
@@ -59,7 +60,7 @@ export default {
59
60
  {
60
61
  label: '城市',
61
62
  field: 'city',
62
- component: Select,
63
+ component: hooks.markRaw(Select),
63
64
  attrs: {
64
65
  options: [
65
66
  { label: '福州', value: 'fz' },
@@ -68,7 +69,7 @@ export default {
68
69
  },
69
70
  span: 6
70
71
  },
71
- { label: '员工', field: 'employees', component: Numeric }
72
+ { label: '员工', field: 'employees', component: hooks.markRaw(Numeric) }
72
73
  ]
73
74
  }
74
75
  },
@@ -101,7 +101,7 @@ const gridOp = ref({
101
101
  })
102
102
 
103
103
  function handleClick(next) {
104
- // doSomething() // do something you want
105
- next() // next
104
+ // do something you want
105
+ next()
106
106
  }
107
107
  </script>
@@ -109,8 +109,8 @@ export default {
109
109
  },
110
110
  methods: {
111
111
  handleClick(next) {
112
- // doSomething() // do something you want
113
- next() // next
112
+ // do something you want
113
+ next()
114
114
  }
115
115
  }
116
116
  }
@@ -193,7 +193,7 @@ export default {
193
193
  },
194
194
  desc: {
195
195
  'zh-CN':
196
- '\n <p>通过 <code>before-close</code> 属性可以配置一个拦截弹窗关闭的方法。如果方法返回 <code>false</code> 值,则拦截弹窗关闭;否则不拦截。</p>\n <p>可以通过该拦截方法传入的参数获取关闭的操作类型 <code>confirm</code> 弹窗有以下关闭类型:</p>\n <ul>\n <li>confirm:点击确认时关闭</li>\n <li>cancel:点击取消时关闭</li>\n <li>close:点击关闭按钮时关闭</li>\n </ul>\n ',
196
+ '<p>通过 <code>before-close</code> 属性可以配置一个拦截弹窗关闭的方法。如果方法返回 <code>false</code> 值,则拦截弹窗关闭;否则不拦截。</p>\n <p>可以通过该拦截方法传入的参数获取关闭的操作类型 <code>confirm</code> 弹窗有以下关闭类型:</p>\n <ul>\n <li>confirm:点击确认时关闭</li>\n <li>cancel:点击取消时关闭</li>\n <li>close:点击关闭按钮时关闭</li>\n </ul>\n ',
197
197
  'en-US':
198
198
  '<p>The <code>tabindex</code> attribute is used to determine whether the focus can be obtained by pressing Tab and the focus sequence. This parameter is valid only when the <code>readonly</code> attribute is set to false. </p>'
199
199
  },
@@ -206,8 +206,8 @@ export default {
206
206
  'en-US': 'Reset'
207
207
  },
208
208
  desc: {
209
- 'zh-CN': '<p>通过 <code>readonly</code> 属性设置为是否禁用。</p>',
210
- 'en-US': '<p>Use the <code>before-reset</code> attribute to set the hook function before reset. </p>'
209
+ 'zh-CN': '<p>通过 <code>readonly</code> 属性设置为是否只读。</p>',
210
+ 'en-US': '<p>Set the <code>readonly</code> attribute to read-only.</p>'
211
211
  },
212
212
  codeFiles: ['readonly.vue']
213
213
  },
@@ -215,12 +215,13 @@ export default {
215
215
  demoId: 'tabindex',
216
216
  name: {
217
217
  'zh-CN': '输入框的 tabindex',
218
- 'en-US': 'Component Query Condition Slot'
218
+ 'en-US': 'tabindex in the text box'
219
219
  },
220
220
  desc: {
221
221
  'zh-CN':
222
222
  '<p>通过 <code>tabindex</code> 属性设置通过 Tab 键获焦及获焦顺序(<code>readonly</code> 属性设置为 false 时有效)。</p>',
223
- 'en-US': '<p>Customize the pop-up panel query structure by slot <code>search</code>. </p>'
223
+ 'en-US':
224
+ '<p>Set the focus obtaining and focus obtaining sequence by pressing Tab through the <code>tabindex</code> attribute. This parameter is valid only when the <code>readonly</code> attribute is set to false.</p>'
224
225
  },
225
226
  codeFiles: ['tabindex.vue']
226
227
  },
@@ -232,7 +233,7 @@ export default {
232
233
  },
233
234
  desc: {
234
235
  'zh-CN': '<p>通过 <code>before-reset</code> 属性设置重置前的钩子函数。</p>',
235
- 'en-US': '<p> is set to read-only through the <code>disabled</code> attribute. </p>'
236
+ 'en-US': '<p>Use the <code>before-reset</code> attribute to set the hook function before reset. </p>'
236
237
  },
237
238
  codeFiles: ['before-reset.vue']
238
239
  },
@@ -240,12 +241,11 @@ export default {
240
241
  demoId: 'slot',
241
242
  name: {
242
243
  'zh-CN': '组件查询条件插槽',
243
- 'en-US': 'The filter criteria in the pop-up window can be cleared.'
244
+ 'en-US': 'Component Query Condition Slot'
244
245
  },
245
246
  desc: {
246
247
  'zh-CN': '<p>通过插槽 <code>search</code> 自定义弹出面板查询结构。</p>',
247
- 'en-US':
248
- 'The <p><code>clearable</code> Popeditor component supports the configuration of the Clear button in the search form. </p>'
248
+ 'en-US': 'Customize the pop-up panel query structure through slot <code>search</code>.'
249
249
  },
250
250
  codeFiles: ['slot.vue']
251
251
  },
@@ -268,9 +268,8 @@ export default {
268
268
  'en-US': 'Submit Field Mapping'
269
269
  },
270
270
  desc: {
271
- 'zh-CN': '<p>通过 <code>disabled</code> 属性设置为是否只读。</p>',
272
- 'en-US':
273
- '<p>The <code>value-field</code> attribute is used to set the fields submitted by the component to the background. </p>'
271
+ 'zh-CN': '<p>通过 <code>disabled</code> 属性设置为是否禁用。</p>',
272
+ 'en-US': '<p>Use the <code>disabled</code> attribute to set whether to disable the function.</p>'
274
273
  },
275
274
  codeFiles: ['disabled.vue']
276
275
  },
@@ -4,9 +4,7 @@
4
4
  <tiny-radio disabled v-model="radio" label="不选中禁用">不选中禁用</tiny-radio>
5
5
  <div class="mt-20">
6
6
  <tiny-radio-group disabled v-model="radio1">
7
- <tiny-radio :label="3">备选项1</tiny-radio>
8
- <tiny-radio :label="6">备选项2</tiny-radio>
9
- <tiny-radio :label="9">备选项3</tiny-radio>
7
+ <tiny-radio v-for="item in dataArr" :key="item.value" :label="item.lable">{{ item.value }}</tiny-radio>
10
8
  </tiny-radio-group>
11
9
  </div>
12
10
 
@@ -25,8 +23,13 @@ import { ref } from 'vue'
25
23
  import { Radio as TinyRadio, RadioButton as TinyRadioButton, RadioGroup as TinyRadioGroup } from '@opentiny/vue'
26
24
 
27
25
  const radio = ref('禁用')
28
- const radio1 = ref('3')
26
+ const radio1 = ref('6')
29
27
  const radio2 = ref('1')
28
+ const dataArr = ref([
29
+ { lable: '3', value: '备选项1' },
30
+ { lable: '6', value: '备选项2' },
31
+ { lable: '9', value: '备选项3' }
32
+ ])
30
33
  </script>
31
34
 
32
35
  <style scoped>
@@ -4,9 +4,7 @@
4
4
  <tiny-radio disabled v-model="radio" label="不选中禁用">不选中禁用</tiny-radio>
5
5
  <div class="mt-20">
6
6
  <tiny-radio-group disabled v-model="radio1">
7
- <tiny-radio :label="3">备选项1</tiny-radio>
8
- <tiny-radio :label="6">备选项2</tiny-radio>
9
- <tiny-radio :label="9">备选项3</tiny-radio>
7
+ <tiny-radio v-for="item in dataArr" :key="item.value" :label="item.lable">{{ item.value }}</tiny-radio>
10
8
  </tiny-radio-group>
11
9
  </div>
12
10
 
@@ -32,8 +30,13 @@ export default {
32
30
  data() {
33
31
  return {
34
32
  radio: '禁用',
35
- radio1: '3',
36
- radio2: '1'
33
+ radio1: '6',
34
+ radio2: '1',
35
+ dataArr: [
36
+ { lable: '3', value: '备选项1' },
37
+ { lable: '6', value: '备选项2' },
38
+ { lable: '9', value: '备选项3' }
39
+ ]
37
40
  }
38
41
  }
39
42
  }
@@ -1,8 +1,8 @@
1
1
  <template>
2
- <tiny-roles @change="change"></tiny-roles>
2
+ <tiny-roles @change="change" :popper-append-to-body="false"></tiny-roles>
3
3
  </template>
4
4
 
5
- <script setup lang="jsx">
5
+ <script setup>
6
6
  import { Roles as TinyRoles, Modal } from '@opentiny/vue'
7
7
 
8
8
  function change(userId) {
@@ -1,8 +1,8 @@
1
1
  <template>
2
- <tiny-roles @change="change"></tiny-roles>
2
+ <tiny-roles @change="change" :popper-append-to-body="false"></tiny-roles>
3
3
  </template>
4
4
 
5
- <script lang="jsx">
5
+ <script>
6
6
  import { Roles, Modal } from '@opentiny/vue'
7
7
 
8
8
  export default {
@@ -3,7 +3,7 @@
3
3
  <br />
4
4
  <div>场景1: collapse-tags折叠</div>
5
5
  <br />
6
- <tiny-select v-model="value1" multiple collapse-tags>
6
+ <tiny-select v-model="value1" :show-proportion="true" multiple collapse-tags>
7
7
  <tiny-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </tiny-option>
8
8
  </tiny-select>
9
9
  <br />
@@ -16,6 +16,11 @@
16
16
  <br />
17
17
  <br />
18
18
  <br />
19
+ <div>场景3: click-expand 折叠</div>
20
+ <br />
21
+ <tiny-select v-model="value3" :max-visible-rows="2" multiple click-expand>
22
+ <tiny-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </tiny-option>
23
+ </tiny-select>
19
24
  </div>
20
25
  </template>
21
26
 
@@ -33,6 +38,7 @@ const options = ref([
33
38
 
34
39
  const value1 = ref(['选项1', '选项2'])
35
40
  const value2 = ref(['选项1', '选项2', '选项3', '选项4'])
41
+ const value3 = ref(['选项1', '选项2', '选项3', '选项4', '选项5'])
36
42
  </script>
37
43
 
38
44
  <style lang="less" scoped>
@@ -1,32 +1,53 @@
1
1
  import { test, expect } from '@playwright/test'
2
2
 
3
- test('collapse-tags', async ({ page }) => {
4
- page.on('pageerror', (exception) => expect(exception).toBeNull())
5
- await page.goto('select#collapse-tags')
6
- const wrap = page.locator('#collapse-tags')
7
- const select = wrap.locator('.tiny-select').nth(0)
8
- const dropdown = page.locator('body > .tiny-select-dropdown')
9
- const tag = select.locator('.tiny-tag')
10
- const option = dropdown.locator('.tiny-option')
11
-
12
- // 验证默认值的折叠标签显示
13
- await expect(tag).toHaveCount(2)
14
- await expect(tag.filter({ hasText: '黄金糕' })).toBeVisible()
15
- await expect(tag.filter({ hasText: '+ 1' })).toBeVisible()
16
-
17
- // 点击下拉后选中效果
18
- await tag.first().click()
19
- await expect(option.filter({ hasText: '黄金糕' })).toHaveClass(/selected/)
20
- await expect(option.filter({ hasText: '双皮奶' })).toHaveClass(/selected/)
21
-
22
- // 取消选中一个
23
- await option.filter({ hasText: '黄金糕' }).locator('span').nth(2).click()
24
- await expect(tag.filter({ hasText: '+ 1' })).toBeHidden()
25
- await expect(tag).toHaveCount(1)
26
-
27
- // 再选中2个
28
- await option.filter({ hasText: '蚵仔煎' }).locator('span').nth(2).click()
29
- await option.filter({ hasText: '北京烤鸭' }).locator('span').nth(2).click()
30
- await expect(tag.filter({ hasText: '+ 2' })).toBeVisible()
31
- await expect(tag).toHaveCount(2)
3
+ test.describe('展开折叠标签', () => {
4
+ test('collapse-tags', async ({ page }) => {
5
+ page.on('pageerror', (exception) => expect(exception).toBeNull())
6
+ await page.goto('select#collapse-tags')
7
+ const wrap = page.locator('#collapse-tags')
8
+ const select = wrap.locator('.tiny-select').nth(0)
9
+ const dropdown = page.locator('body > .tiny-select-dropdown')
10
+ const tag = select.locator('.tiny-tag')
11
+ const option = dropdown.locator('.tiny-option')
12
+
13
+ // 验证默认值的折叠标签显示
14
+ await expect(tag).toHaveCount(2)
15
+ await expect(tag.filter({ hasText: '黄金糕' })).toBeVisible()
16
+ await expect(tag.filter({ hasText: '+ 1' })).toBeVisible()
17
+
18
+ // 点击下拉后选中效果
19
+ await tag.first().click()
20
+ await expect(option.filter({ hasText: '黄金糕' })).toHaveClass(/selected/)
21
+ await expect(option.filter({ hasText: '双皮奶' })).toHaveClass(/selected/)
22
+
23
+ // 取消选中一个
24
+ await option.filter({ hasText: '黄金糕' }).locator('span').nth(2).click()
25
+ await expect(tag.filter({ hasText: '+ 1' })).toBeHidden()
26
+ await expect(tag).toHaveCount(1)
27
+
28
+ // 再选中2
29
+ await option.filter({ hasText: '蚵仔煎' }).locator('span').nth(2).click()
30
+ await option.filter({ hasText: '北京烤鸭' }).locator('span').nth(2).click()
31
+ await expect(tag.filter({ hasText: '+ 2' })).toBeVisible()
32
+ await expect(tag).toHaveCount(2)
33
+ })
34
+
35
+ test('click-expand 点击展开折叠', async ({ page }) => {
36
+ page.on('pageerror', (exception) => expect(exception).toBeNull())
37
+ await page.goto('select#collapse-tags')
38
+
39
+ const select = page.locator('#collapse-tags .tiny-select').nth(2)
40
+ const expandTag = select.locator('.tiny-select__tags-collapse')
41
+ const collapseSpan = select.locator('.tiny-select__collapse-text')
42
+ const tags = select.locator('.tiny-tag')
43
+
44
+ await expect(select).toHaveClass(/is-click-expand/)
45
+ await expect(expandTag).toBeVisible()
46
+ await expect(collapseSpan).not.toBeVisible()
47
+ await expect(tags.last()).toHaveClass(/not-visible/)
48
+ await expandTag.click()
49
+ await expect(expandTag).not.toBeVisible()
50
+ await expect(collapseSpan).toBeVisible()
51
+ await expect(tags.last()).not.toHaveClass(/not-visible/)
52
+ })
32
53
  })
@@ -3,7 +3,7 @@
3
3
  <br />
4
4
  <div>场景1: collapse-tags折叠</div>
5
5
  <br />
6
- <tiny-select v-model="value1" multiple collapse-tags>
6
+ <tiny-select v-model="value1" :show-proportion="true" multiple collapse-tags>
7
7
  <tiny-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </tiny-option>
8
8
  </tiny-select>
9
9
  <br />
@@ -16,6 +16,11 @@
16
16
  <br />
17
17
  <br />
18
18
  <br />
19
+ <div>场景3: click-expand 折叠</div>
20
+ <br />
21
+ <tiny-select v-model="value3" :max-visible-rows="2" multiple click-expand>
22
+ <tiny-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </tiny-option>
23
+ </tiny-select>
19
24
  </div>
20
25
  </template>
21
26
 
@@ -34,10 +39,12 @@ export default {
34
39
  { value: '选项2', label: '双皮奶' },
35
40
  { value: '选项3', label: '蚵仔煎' },
36
41
  { value: '选项4', label: '龙须面超长超长超长超长超长超长超长超长超长' },
37
- { value: '选项5', label: '北京烤鸭' }
42
+ { value: '选项5', label: '北京烤鸭' },
43
+ { value: '选项6', label: '肠粉' }
38
44
  ],
39
45
  value1: ['选项1', '选项2'],
40
- value2: ['选项1', '选项2', '选项3', '选项4']
46
+ value2: ['选项1', '选项2', '选项3', '选项4'],
47
+ value3: ['选项1', '选项2', '选项3', '选项4', '选项5']
41
48
  }
42
49
  }
43
50
  }
@@ -8,6 +8,7 @@ test('多选复制单个标签', async ({ page }) => {
8
8
  const select = wrap.locator('.tiny-select').nth(0)
9
9
  const tag = select.locator('.tiny-tag').nth(0)
10
10
 
11
+ await expect(tag).toContainText('黄金糕')
11
12
  await page.waitForTimeout(200)
12
13
  const tagBox = await tag.locator('span').boundingBox()
13
14
  const x = tagBox.x + tagBox.width
@@ -33,6 +33,7 @@ test('单选可搜索配置 allow-copy 可复制', async ({ page }) => {
33
33
  const input = select.locator('.tiny-input__inner')
34
34
  const valueInput = wrap.locator('.custom .tiny-input__inner')
35
35
 
36
+ await expect(input).toHaveValue('黄金糕')
36
37
  await page.waitForTimeout(200)
37
38
  const inputBox = await input.boundingBox()
38
39