@opentiny/vue-docs 2.2.4 → 2.2.6

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 (414) hide show
  1. package/demos/mobile/app/container/basic-usage.vue +105 -0
  2. package/demos/mobile/app/container/custom-width.vue +93 -0
  3. package/demos/mobile/app/container/webdoc/container.cn.md +7 -0
  4. package/demos/mobile/app/container/webdoc/container.en.md +7 -0
  5. package/demos/mobile/app/container/webdoc/container.js +80 -0
  6. package/demos/mobile/app/pull-refresh/animation-duration.vue +58 -12
  7. package/demos/mobile/app/pull-refresh/base.vue +32 -18
  8. package/demos/mobile/app/pull-refresh/disabled-pull-down.vue +66 -0
  9. package/demos/mobile/app/pull-refresh/disabled-pull-up.vue +67 -0
  10. package/demos/mobile/app/pull-refresh/{hasmore.vue → event.vue} +21 -20
  11. package/demos/mobile/app/pull-refresh/{enhance.vue → has-more.vue} +20 -25
  12. package/demos/mobile/app/pull-refresh/loosing-text.vue +55 -12
  13. package/demos/mobile/app/pull-refresh/pull-refresh-slot.vue +64 -15
  14. package/demos/mobile/app/pull-refresh/pull-up-distance.vue +74 -0
  15. package/demos/mobile/app/pull-refresh/pulling-text.vue +56 -12
  16. package/demos/mobile/app/pull-refresh/webdoc/pull-refresh.js +98 -120
  17. package/demos/mobile/app/tabs/before-leave.vue +3 -3
  18. package/demos/mobile/app/tabs/tabs-events.vue +7 -7
  19. package/demos/mobile/menus.js +4 -1
  20. package/demos/mobile-first/app/tabs/basic-usage.vue +3 -3
  21. package/demos/mobile-first/app/tabs/before-leave.vue +3 -3
  22. package/demos/mobile-first/app/tabs/change-title.vue +2 -2
  23. package/demos/mobile-first/app/tabs/custom-tab-content.vue +3 -3
  24. package/demos/mobile-first/app/tabs/custom-tab-title.vue +3 -3
  25. package/demos/mobile-first/app/tabs/position-bottom.vue +10 -10
  26. package/demos/mobile-first/app/tabs/position-left.vue +10 -10
  27. package/demos/mobile-first/app/tabs/position-right.vue +10 -10
  28. package/demos/mobile-first/app/tabs/position.vue +10 -10
  29. package/demos/mobile-first/app/tabs/prevent-tab-switching.vue +3 -3
  30. package/demos/mobile-first/app/tabs/stretch-wh.vue +3 -3
  31. package/demos/mobile-first/app/tabs/tab-style-bordercard.vue +10 -10
  32. package/demos/mobile-first/app/tabs/tab-style-card.vue +10 -10
  33. package/demos/mobile-first/app/tabs/tabdata-title.vue +4 -4
  34. package/demos/mobile-first/app/tabs/tabs-draggable.vue +1 -1
  35. package/demos/mobile-first/app/tabs/tabs-events-add.vue +3 -3
  36. package/demos/mobile-first/app/tabs/tabs-events-click.vue +3 -3
  37. package/demos/mobile-first/app/tabs/tabs-events-close.vue +4 -4
  38. package/demos/mobile-first/app/tabs/tabs-events-edit.vue +4 -4
  39. package/demos/mobile-first/app/tabs/tabs-separator.vue +8 -8
  40. package/demos/mobile-first/app/tabs/tabs-size.vue +3 -3
  41. package/demos/mobile-first/app/tabs/tabs-tabs.vue +2 -2
  42. package/demos/mobile-first/app/tabs/with-add.vue +1 -1
  43. package/demos/pc/app/action-menu/disabled.vue +2 -1
  44. package/demos/pc/app/action-menu/icon-composition-api.vue +73 -0
  45. package/demos/pc/app/action-menu/icon.vue +79 -0
  46. package/demos/pc/app/action-menu/popper-class.spec.ts +2 -1
  47. package/demos/pc/app/action-menu/webdoc/action-menu.js +42 -1
  48. package/demos/pc/app/autocomplete/webdoc/autocomplete.js +30 -16
  49. package/demos/pc/app/breadcrumb/webdoc/breadcrumb.js +3 -3
  50. package/demos/pc/app/button/basic-usage-composition-api.vue +2 -0
  51. package/demos/pc/app/button/basic-usage.vue +2 -0
  52. package/demos/pc/app/button/click-composition-api.vue +1 -1
  53. package/demos/pc/app/button/click.vue +1 -1
  54. package/demos/pc/app/button/dynamic-disabled-composition-api.vue +10 -1
  55. package/demos/pc/app/button/{dynamic-disabled.spec.js → dynamic-disabled.spec.ts} +4 -0
  56. package/demos/pc/app/button/dynamic-disabled.vue +12 -3
  57. package/demos/pc/app/button/ghost-composition-api.vue +26 -0
  58. package/demos/pc/app/button/ghost.spec.ts +69 -0
  59. package/demos/pc/app/button/ghost.vue +32 -0
  60. package/demos/pc/app/button/icon-composition-api.vue +2 -0
  61. package/demos/pc/app/button/icon.vue +2 -0
  62. package/demos/pc/app/button/loading-composition-api.vue +2 -0
  63. package/demos/pc/app/button/loading.vue +2 -0
  64. package/demos/pc/app/button/size-composition-api.vue +2 -0
  65. package/demos/pc/app/button/size.vue +2 -0
  66. package/demos/pc/app/button/text-composition-api.vue +1 -1
  67. package/demos/pc/app/button/text.vue +1 -1
  68. package/demos/pc/app/button/webdoc/button.js +28 -1
  69. package/demos/pc/app/button-group/button-group-multiple-composition-api.vue +9 -9
  70. package/demos/pc/app/button-group/button-group-multiple.vue +9 -9
  71. package/demos/pc/app/button-group/change-event-composition-api.vue +1 -1
  72. package/demos/pc/app/button-group/change-event.vue +1 -1
  73. package/demos/pc/app/button-group/show-edit-composition-api.vue +1 -1
  74. package/demos/pc/app/button-group/show-edit.vue +1 -1
  75. package/demos/pc/app/button-group/webdoc/button-group.js +2 -3
  76. package/demos/pc/app/carousel/webdoc/carousel.js +82 -49
  77. package/demos/pc/app/cascader/auto-load-checkStrictly-composition-api.vue +2 -1
  78. package/demos/pc/app/cascader/auto-load-checkStrictly.vue +2 -1
  79. package/demos/pc/app/cascader/auto-load-composition-api.vue +3 -1
  80. package/demos/pc/app/cascader/auto-load.vue +2 -1
  81. package/demos/pc/app/cascader/events-composition-api.vue +1 -1
  82. package/demos/pc/app/cascader/expand-trigger-composition-api.vue +195 -2
  83. package/demos/pc/app/cascader/show-all-levels-composition-api.vue +197 -2
  84. package/demos/pc/app/cascader/webdoc/cascader.js +27 -13
  85. package/demos/pc/app/cascader-panel/basic-usage-composition-api.vue +3 -1
  86. package/demos/pc/app/cascader-panel/basic-usage.vue +2 -1
  87. package/demos/pc/app/cascader-panel/cascader-panel-props-composition-api.vue +3 -1
  88. package/demos/pc/app/cascader-panel/cascader-panel-props.vue +3 -1
  89. package/demos/pc/app/cascader-panel/change-composition-api.vue +1 -2
  90. package/demos/pc/app/cascader-panel/change.vue +1 -1
  91. package/demos/pc/app/cascader-panel/webdoc/cascader-panel.js +5 -5
  92. package/demos/pc/app/color-picker/webdoc/color-picker.js +36 -18
  93. package/demos/pc/app/color-select-panel/webdoc/color-select-panel.js +32 -19
  94. package/demos/pc/app/config-provider/basic.spec.ts +9 -0
  95. package/demos/pc/app/config-provider/tag.spec.ts +12 -0
  96. package/demos/pc/app/config-provider/text-direct.spec.ts +11 -0
  97. package/demos/pc/app/config-provider/webdoc/config-provider.en.md +7 -0
  98. package/demos/pc/app/config-provider/webdoc/config-provider.js +27 -12
  99. package/demos/pc/app/container/basic-usage.spec.js +47 -2
  100. package/demos/pc/app/container/custom-with-height.spec.js +10 -2
  101. package/demos/pc/app/crop/webdoc/crop.js +53 -49
  102. package/demos/pc/app/dialog-box/webdoc/dialog-box.js +82 -83
  103. package/demos/pc/app/divider/webdoc/divider.js +25 -21
  104. package/demos/pc/app/dropdown/events-composition-api.vue +1 -1
  105. package/demos/pc/app/dropdown/events.spec.ts +1 -0
  106. package/demos/pc/app/dropdown/multi-level-composition-api.vue +4 -8
  107. package/demos/pc/app/dropdown/multi-level.spec.ts +16 -9
  108. package/demos/pc/app/dropdown/multi-level.vue +3 -7
  109. package/demos/pc/app/dropdown/show-icon-composition-api.vue +44 -21
  110. package/demos/pc/app/dropdown/show-icon.vue +42 -12
  111. package/demos/pc/app/dropdown/webdoc/dropdown.js +29 -8
  112. package/demos/pc/app/fall-menu/custom-menuitem.spec.ts +6 -9
  113. package/demos/pc/app/fall-menu/custom-slider-icon.spec.ts +10 -21
  114. package/demos/pc/app/fall-menu/data-resource.spec.ts +6 -9
  115. package/demos/pc/app/file-upload/abort-quest.spec.ts +6 -5
  116. package/demos/pc/app/file-upload/accept-file-image.spec.ts +9 -4
  117. package/demos/pc/app/file-upload/custom-trigger.spec.ts +1 -1
  118. package/demos/pc/app/file-upload/disabled.spec.ts +4 -5
  119. package/demos/pc/app/file-upload/drag-upload.spec.ts +1 -1
  120. package/demos/pc/app/file-upload/file-picture-card.spec.ts +7 -6
  121. package/demos/pc/app/file-upload/form-validation.spec.ts +2 -2
  122. package/demos/pc/app/file-upload/image-size.spec.ts +2 -2
  123. package/demos/pc/app/file-upload/max-file-count.spec.ts +6 -6
  124. package/demos/pc/app/file-upload/paste-upload-composition-api.vue +2 -2
  125. package/demos/pc/app/file-upload/paste-upload.spec.ts +19 -2
  126. package/demos/pc/app/file-upload/picture-card.spec.ts +6 -5
  127. package/demos/pc/app/file-upload/picture-list.spec.ts +2 -3
  128. package/demos/pc/app/file-upload/prevent-delete-file.spec.ts +1 -1
  129. package/demos/pc/app/file-upload/prevent-upload-file.spec.ts +1 -1
  130. package/demos/pc/app/file-upload/upload-events.spec.ts +6 -4
  131. package/demos/pc/app/file-upload/upload-file-list-slot.spec.ts +18 -0
  132. package/demos/pc/app/file-upload/upload-file-list-thumb-composition-api.vue +4 -3
  133. package/demos/pc/app/file-upload/upload-file-list-thumb.spec.ts +2 -2
  134. package/demos/pc/app/file-upload/upload-file-list-thumb.vue +4 -3
  135. package/demos/pc/app/file-upload/upload-file-list.spec.ts +9 -9
  136. package/demos/pc/app/file-upload/upload-limit.spec.ts +5 -8
  137. package/demos/pc/app/file-upload/upload-request.spec.ts +1 -1
  138. package/demos/pc/app/file-upload/upload-user-head.spec.ts +1 -1
  139. package/demos/pc/app/file-upload/webdoc/file-upload.js +4 -4
  140. package/demos/pc/app/file-upload//346/265/213/350/257/225.txt +1 -0
  141. package/demos/pc/app/form/custom-validation-rule-composition-api.vue +2 -14
  142. package/demos/pc/app/form/custom-validation-rule.vue +2 -8
  143. package/demos/pc/app/form/form-validate-field.vue +2 -2
  144. package/demos/pc/app/form/size.spec.ts +26 -6
  145. package/demos/pc/app/grid/custom-style/body-style-composition-api.vue +1 -1
  146. package/demos/pc/app/grid/custom-style/footer-style-composition-api.vue +64 -19
  147. package/demos/pc/app/grid/drag/row-drag-ctrl-composition-api.vue +4 -4
  148. package/demos/pc/app/grid/edit/trigger-mode-hm-editing-composition-api.vue +2 -2
  149. package/demos/pc/app/grid/edit/trigger-mode-hm-editing.vue +1 -1
  150. package/demos/pc/app/grid/event/cell-mouse-event-composition-api.vue +1 -1
  151. package/demos/pc/app/grid/event/context-menu-event-composition-api.vue +1 -0
  152. package/demos/pc/app/grid/event/edit-event-composition-api.vue +1 -1
  153. package/demos/pc/app/grid/expand/set-row-expansion-composition-api.vue +9 -4
  154. package/demos/pc/app/grid/loading/{grid-loading-off-tip-composition-api.vue → grid-custom-loading-composition-api.vue} +29 -4
  155. package/demos/pc/app/grid/loading/grid-custom-loading.spec.js +7 -0
  156. package/demos/pc/app/grid/loading/{grid-loading-off-tip.vue → grid-custom-loading.vue} +27 -1
  157. package/demos/pc/app/grid/operation-column/clear-and-set-radio-row-composition-api.vue +5 -1
  158. package/demos/pc/app/grid/operation-column/selection-operation-composition-api.vue +32 -0
  159. package/demos/pc/app/grid/size/grid-size-composition-api.vue +17 -0
  160. package/demos/pc/app/grid/slot/editor-slot-composition-api.vue +13 -7
  161. package/demos/pc/app/grid/sort/combinations-sort-composition-api.vue +3 -3
  162. package/demos/pc/app/grid/sort/combinations-sort.spec.js +3 -0
  163. package/demos/pc/app/grid/sort/combinations-sort.vue +3 -3
  164. package/demos/pc/app/grid/toolbar/insert-remove-rows-composition-api.vue +1 -1
  165. package/demos/pc/app/grid/toolbar/insert-remove-rows.vue +1 -1
  166. package/demos/pc/app/grid/toolbar/refresh-grid-composition-api.vue +105 -0
  167. package/demos/pc/app/grid/tree-table/set-tree-expansion-composition-api.vue +4 -4
  168. package/demos/pc/app/grid/validation/before-submit-validation-composition-api.vue +19 -2
  169. package/demos/pc/app/grid/validation/before-submit-validation.spec.js +5 -2
  170. package/demos/pc/app/grid/validation/before-submit-validation.vue +19 -2
  171. package/demos/pc/app/grid/webdoc/grid-loading.js +9 -5
  172. package/demos/pc/app/grid/webdoc/grid-size.js +2 -2
  173. package/demos/pc/app/grid/webdoc/grid-validation.js +1 -1
  174. package/demos/pc/app/grid/webdoc/grid.js +8 -1
  175. package/demos/pc/app/guide/callback-composition-api.vue +2 -2
  176. package/demos/pc/app/guide/callback.vue +2 -2
  177. package/demos/pc/app/guide/highlight-box-composition-api.vue +9 -8
  178. package/demos/pc/app/guide/highlight-box.vue +8 -2
  179. package/demos/pc/app/guide/offset-composition-api.vue +7 -2
  180. package/demos/pc/app/guide/offset.vue +7 -2
  181. package/demos/pc/app/guide/size-composition-api.vue +3 -8
  182. package/demos/pc/app/guide/size.vue +3 -8
  183. package/demos/pc/app/guide/webdoc/guide.js +2 -2
  184. package/demos/pc/app/image/basic-usage.spec.ts +9 -2
  185. package/demos/pc/app/image/events.spec.ts +3 -1
  186. package/demos/pc/app/image/lazy-composition-api.vue +2 -2
  187. package/demos/pc/app/image/lazy.spec.ts +7 -4
  188. package/demos/pc/app/image/lazy.vue +2 -2
  189. package/demos/pc/app/image/preview-in-dialog.spec.ts +15 -1
  190. package/demos/pc/app/image/preview.spec.ts +28 -13
  191. package/demos/pc/app/image/slot.spec.ts +3 -0
  192. package/demos/pc/app/input/webdoc/input.js +11 -11
  193. package/demos/pc/app/link/basic-usage-composition-api.vue +1 -1
  194. package/demos/pc/app/link/basic-usage.spec.ts +1 -1
  195. package/demos/pc/app/link/basic-usage.vue +1 -1
  196. package/demos/pc/app/link/config-href.spec.ts +2 -2
  197. package/demos/pc/app/link/custom-icon.spec.ts +5 -5
  198. package/demos/pc/app/link/dynamic-disable.spec.ts +11 -11
  199. package/demos/pc/app/link/focus-no-underline.spec.ts +3 -3
  200. package/demos/pc/app/link/link-style-composition-api.vue +6 -6
  201. package/demos/pc/app/link/link-style.spec.ts +36 -7
  202. package/demos/pc/app/link/link-style.vue +6 -6
  203. package/demos/pc/app/link/webdoc/link.js +20 -22
  204. package/demos/pc/app/link-menu/webdoc/link-menu.js +22 -22
  205. package/demos/pc/app/milestone/basic-usage-composition-api.vue +6 -6
  206. package/demos/pc/app/milestone/basic-usage.spec.ts +1 -1
  207. package/demos/pc/app/milestone/basic-usage.vue +6 -6
  208. package/demos/pc/app/milestone/line-style-composition-api.vue +6 -6
  209. package/demos/pc/app/milestone/line-style.vue +6 -6
  210. package/demos/pc/app/milestone/show-number-composition-api.vue +9 -7
  211. package/demos/pc/app/milestone/show-number.spec.ts +7 -7
  212. package/demos/pc/app/milestone/show-number.vue +9 -7
  213. package/demos/pc/app/milestone/solid-style-composition-api.vue +7 -7
  214. package/demos/pc/app/milestone/solid-style.spec.ts +7 -7
  215. package/demos/pc/app/milestone/solid-style.vue +7 -7
  216. package/demos/pc/app/milestone/webdoc/milestone.js +31 -12
  217. package/demos/pc/app/modal/webdoc/modal.js +80 -76
  218. package/demos/pc/app/nav-menu/basic-usage.spec.ts +2 -2
  219. package/demos/pc/app/nav-menu/before-skip-prevent.spec.ts +1 -1
  220. package/demos/pc/app/nav-menu/before-skip.spec.ts +1 -1
  221. package/demos/pc/app/nav-menu/custom-service.spec.ts +1 -2
  222. package/demos/pc/app/nav-menu/overflow.spec.ts +2 -2
  223. package/demos/pc/app/nav-menu/slot-logo.spec.ts +1 -1
  224. package/demos/pc/app/nav-menu/slot-toolbar.spec.ts +2 -2
  225. package/demos/pc/app/numeric/webdoc/numeric.js +33 -32
  226. package/demos/pc/app/search/basic-usage.spec.ts +1 -1
  227. package/demos/pc/app/search/clearable.spec.ts +1 -1
  228. package/demos/pc/app/search/events-composition-api.vue +6 -0
  229. package/demos/pc/app/search/events.spec.ts +9 -6
  230. package/demos/pc/app/search/events.vue +5 -0
  231. package/demos/pc/app/search/webdoc/search.js +14 -4
  232. package/demos/pc/app/slide-bar/webdoc/slide-bar.js +18 -12
  233. package/demos/pc/app/slider/webdoc/slider.js +23 -18
  234. package/demos/pc/app/steps/advanced-steps.spec.ts +3 -2
  235. package/demos/pc/app/steps/click-composition-api.vue +0 -1
  236. package/demos/pc/app/steps/click.spec.ts +1 -12
  237. package/demos/pc/app/steps/custom-steps-item.spec.ts +1 -1
  238. package/demos/pc/app/steps/node-status-composition-api.vue +1 -1
  239. package/demos/pc/app/steps/node-status.spec.ts +1 -1
  240. package/demos/pc/app/steps/node-status.vue +1 -1
  241. package/demos/pc/app/steps/normal-steps-composition-api.vue +1 -1
  242. package/demos/pc/app/steps/normal-steps.spec.ts +2 -2
  243. package/demos/pc/app/steps/normal-steps.vue +1 -1
  244. package/demos/pc/app/steps/only-number-composition-api.vue +1 -1
  245. package/demos/pc/app/steps/only-number.spec.ts +1 -1
  246. package/demos/pc/app/steps/only-number.vue +1 -1
  247. package/demos/pc/app/steps/show-divider-composition-api.vue +1 -1
  248. package/demos/pc/app/steps/show-divider.spec.ts +1 -1
  249. package/demos/pc/app/steps/show-divider.vue +1 -1
  250. package/demos/pc/app/steps/size-composition-api.vue +6 -9
  251. package/demos/pc/app/steps/size.spec.ts +1 -4
  252. package/demos/pc/app/steps/size.vue +4 -4
  253. package/demos/pc/app/steps/slot-active-node-desc-composition-api.vue +3 -1
  254. package/demos/pc/app/steps/slot-active-node-desc.spec.ts +1 -1
  255. package/demos/pc/app/steps/slot-active-node-desc.vue +3 -1
  256. package/demos/pc/app/steps/slot-description-composition-api.vue +6 -6
  257. package/demos/pc/app/steps/slot-description.spec.ts +1 -1
  258. package/demos/pc/app/steps/slot-description.vue +5 -5
  259. package/demos/pc/app/steps/slot-item-composition-api.vue +0 -1
  260. package/demos/pc/app/steps/slot-item.spec.ts +1 -7
  261. package/demos/pc/app/steps/slot-item.vue +0 -1
  262. package/demos/pc/app/steps/space.spec.ts +1 -1
  263. package/demos/pc/app/steps/text-position-composition-api.vue +1 -1
  264. package/demos/pc/app/steps/text-position.spec.ts +1 -4
  265. package/demos/pc/app/steps/text-position.vue +1 -1
  266. package/demos/pc/app/steps/vertical-steps.spec.ts +13 -19
  267. package/demos/pc/app/steps/webdoc/steps.js +18 -17
  268. package/demos/pc/app/tabs/basic-usage-composition-api.vue +4 -4
  269. package/demos/pc/app/tabs/basic-usage.vue +4 -4
  270. package/demos/pc/app/tabs/before-leave-composition-api.vue +3 -3
  271. package/demos/pc/app/tabs/before-leave.vue +3 -3
  272. package/demos/pc/app/tabs/custom-more-icon-composition-api.vue +1 -1
  273. package/demos/pc/app/tabs/custom-more-icon.vue +1 -1
  274. package/demos/pc/app/tabs/custom-tab-content-composition-api.vue +3 -3
  275. package/demos/pc/app/tabs/custom-tab-content.vue +3 -3
  276. package/demos/pc/app/tabs/custom-tab-title-composition-api.vue +3 -3
  277. package/demos/pc/app/tabs/custom-tab-title.vue +3 -3
  278. package/demos/pc/app/tabs/lazy-composition-api.vue +5 -3
  279. package/demos/pc/app/tabs/lazy.vue +5 -3
  280. package/demos/pc/app/tabs/position-composition-api.vue +22 -17
  281. package/demos/pc/app/tabs/position.spec.ts +4 -4
  282. package/demos/pc/app/tabs/position.vue +19 -18
  283. package/demos/pc/app/tabs/prevent-tab-switching-composition-api.vue +3 -3
  284. package/demos/pc/app/tabs/prevent-tab-switching.vue +3 -3
  285. package/demos/pc/app/tabs/stretch-wh-composition-api.vue +3 -3
  286. package/demos/pc/app/tabs/stretch-wh.vue +3 -3
  287. package/demos/pc/app/tabs/tab-style-bordercard-composition-api.vue +10 -10
  288. package/demos/pc/app/tabs/tab-style-bordercard.vue +10 -10
  289. package/demos/pc/app/tabs/tab-style-card-composition-api.vue +1 -1
  290. package/demos/pc/app/tabs/tab-style-card.vue +1 -1
  291. package/demos/pc/app/tabs/tabs-draggable-composition-api.vue +1 -1
  292. package/demos/pc/app/tabs/tabs-draggable.spec.ts +1 -7
  293. package/demos/pc/app/tabs/tabs-draggable.vue +1 -1
  294. package/demos/pc/app/tabs/tabs-events-click-composition-api.vue +3 -3
  295. package/demos/pc/app/tabs/tabs-events-click.vue +3 -3
  296. package/demos/pc/app/tabs/tabs-events-close-composition-api.vue +4 -4
  297. package/demos/pc/app/tabs/tabs-events-close.vue +4 -4
  298. package/demos/pc/app/tabs/tabs-events-edit-composition-api.vue +4 -4
  299. package/demos/pc/app/tabs/tabs-events-edit.vue +4 -4
  300. package/demos/pc/app/tabs/tabs-separator-composition-api.vue +7 -7
  301. package/demos/pc/app/tabs/tabs-separator.vue +7 -7
  302. package/demos/pc/app/tabs/tabs-size-composition-api.vue +3 -3
  303. package/demos/pc/app/tabs/tabs-size.vue +3 -3
  304. package/demos/pc/app/tabs/tooltip-composition-api.vue +17 -13
  305. package/demos/pc/app/tabs/tooltip.vue +17 -13
  306. package/demos/pc/app/tabs/webdoc/tabs.js +35 -35
  307. package/demos/pc/app/tabs/with-add-composition-api.vue +1 -1
  308. package/demos/pc/app/tabs/with-add.vue +1 -1
  309. package/demos/pc/app/tag/{before-delete-composition-api.vue → delete-composition-api.vue} +6 -16
  310. package/demos/pc/app/tag/delete.spec.ts +19 -0
  311. package/demos/pc/app/tag/{closable.vue → delete.vue} +22 -5
  312. package/demos/pc/app/tag/webdoc/tag.js +15 -7
  313. package/demos/pc/app/time-line/webdoc/time-line.js +12 -12
  314. package/demos/pc/app/toggle-menu/webdoc/toggle-menu.js +64 -55
  315. package/demos/pc/app/tooltip/content.spec.js +1 -1
  316. package/demos/pc/app/tooltip/custom-popper.spec.js +4 -4
  317. package/demos/pc/app/transfer/basic-usage.spec.ts +7 -20
  318. package/demos/pc/app/transfer/custom-btns.spec.ts +11 -19
  319. package/demos/pc/app/transfer/custom-filter.spec.ts +6 -4
  320. package/demos/pc/app/transfer/custom-footer.spec.ts +1 -2
  321. package/demos/pc/app/transfer/custom-render.spec.ts +7 -5
  322. package/demos/pc/app/transfer/custom-titles.spec.ts +5 -3
  323. package/demos/pc/app/transfer/default-checked.spec.ts +5 -9
  324. package/demos/pc/app/transfer/drop-config.spec.ts +21 -16
  325. package/demos/pc/app/transfer/manual-clear-query.spec.ts +2 -2
  326. package/demos/pc/app/transfer/nested-table.spec.ts +12 -35
  327. package/demos/pc/app/transfer/nested-tree.spec.ts +3 -30
  328. package/demos/pc/app/transfer/target-order.spec.ts +2 -1
  329. package/demos/pc/app/transfer/transfer-events.spec.ts +2 -1
  330. package/demos/pc/app/tree/basic-usage.spec.ts +26 -16
  331. package/demos/pc/app/tree/check-op.spec.ts +37 -19
  332. package/demos/pc/app/tree/checkbox.spec.ts +23 -18
  333. package/demos/pc/app/tree/contextmenu.spec.ts +9 -8
  334. package/demos/pc/app/tree/drag.spec.ts +10 -18
  335. package/demos/pc/app/tree/edit.spec.ts +24 -103
  336. package/demos/pc/app/tree/expand-control.spec.ts +22 -18
  337. package/demos/pc/app/tree/filter-view.spec.ts +16 -18
  338. package/demos/pc/app/tree/icons.spec.ts +20 -18
  339. package/demos/pc/app/tree/lazy.spec.ts +10 -18
  340. package/demos/pc/app/tree/node-hl.spec.ts +27 -18
  341. package/demos/pc/app/tree/node-op-composition-api.vue +12 -6
  342. package/demos/pc/app/tree/node-op.spec.ts +32 -19
  343. package/demos/pc/app/tree/other.spec.ts +5 -18
  344. package/demos/pc/app/tree/props.spec.ts +7 -18
  345. package/demos/pc/app/tree/radio.spec.ts +10 -18
  346. package/demos/pc/app/tree/slot.spec.ts +12 -18
  347. package/demos/pc/app/tree/webdoc/tree.js +2 -2
  348. package/demos/pc/app/tree-menu/accordion.spec.ts +3 -1
  349. package/demos/pc/app/tree-menu/basic-usage.spec.ts +4 -2
  350. package/demos/pc/app/tree-menu/current-node-composition-api.vue +7 -3
  351. package/demos/pc/app/tree-menu/current-node.spec.ts +20 -13
  352. package/demos/pc/app/tree-menu/current-node.vue +8 -6
  353. package/demos/pc/app/tree-menu/custom-icon.spec.ts +12 -2
  354. package/demos/pc/app/tree-menu/data-resource.spec.ts +33 -21
  355. package/demos/pc/app/tree-menu/default-expand-all.spec.ts +25 -8
  356. package/demos/pc/app/tree-menu/default-expanded-keys-highlight.spec.ts +6 -4
  357. package/demos/pc/app/tree-menu/default-expanded-keys.spec.ts +11 -7
  358. package/demos/pc/app/tree-menu/draggable.spec.ts +11 -4
  359. package/demos/pc/app/tree-menu/empty-text.spec.ts +1 -1
  360. package/demos/pc/app/tree-menu/event-allow-draggable.spec.ts +4 -1
  361. package/demos/pc/app/tree-menu/events.spec.ts +56 -28
  362. package/demos/pc/app/tree-menu/expand-on-click-node.spec.ts +32 -3
  363. package/demos/pc/app/tree-menu/filter-node-method.spec.ts +9 -6
  364. package/demos/pc/app/tree-menu/filter-node-method.vue +0 -4
  365. package/demos/pc/app/tree-menu/indent.spec.ts +9 -4
  366. package/demos/pc/app/tree-menu/lazy-load.spec.ts +8 -4
  367. package/demos/pc/app/tree-menu/menu-collapsible.spec.ts +5 -2
  368. package/demos/pc/app/tree-menu/show-checkbox.spec.ts +79 -41
  369. package/demos/pc/app/tree-menu/text-ellipsis.spec.ts +7 -4
  370. package/demos/pc/app/tree-menu/tree-menu-slot.spec.ts +4 -3
  371. package/demos/pc/app/tree-menu/webdoc/tree-menu.cn.md +1 -1
  372. package/demos/pc/app/tree-menu/webdoc/tree-menu.en.md +1 -1
  373. package/demos/pc/app/tree-menu/webdoc/tree-menu.js +3 -3
  374. package/demos/pc/app/user-contact/webdoc/user-contact.js +21 -13
  375. package/demos/pc/app/user-head/icon-user-head.spec.ts +3 -3
  376. package/demos/pc/app/user-head/image-user-head.spec.ts +2 -2
  377. package/demos/pc/app/user-head/webdoc/user-head.js +44 -28
  378. package/demos/pc/webdoc/changelog.md +1 -0
  379. package/demos/pc/webdoc/import-components.md +2 -4
  380. package/demos/pc/webdoc/theme-en.md +8 -4
  381. package/demos/pc/webdoc/theme.md +10 -3
  382. package/package.json +6 -6
  383. package/src/App.vue +0 -2
  384. package/src/i18n/index.js +3 -3
  385. package/src/main.js +2 -7
  386. package/src/menus.jsx +1 -1
  387. package/src/tools/useApiMode.js +2 -2
  388. package/src/tools/useBulletin.jsx +2 -2
  389. package/src/tools/utils.js +2 -2
  390. package/src/views/components/VersionTip.vue +14 -8
  391. package/src/views/components/components.vue +48 -47
  392. package/src/views/components/demo.vue +11 -11
  393. package/src/views/docs/docs.vue +2 -3
  394. package/src/views/layout/layout.vue +17 -19
  395. package/src/views/overview.vue +16 -13
  396. package/vite.config.ts +10 -4
  397. package/demos/mobile/app/pull-refresh/disabled.vue +0 -57
  398. package/demos/mobile/app/pull-refresh/head-height.vue +0 -31
  399. package/demos/mobile/app/pull-refresh/result-text.vue +0 -46
  400. package/demos/mobile/app/pull-refresh/success-duration.vue +0 -31
  401. package/demos/mobile/app/pull-refresh/success-text.vue +0 -27
  402. package/demos/pc/app/grid/loading/grid-loading-off-tip.spec.js +0 -8
  403. package/demos/pc/app/tag/before-delete.vue +0 -64
  404. package/demos/pc/app/tag/closable-composition-api.vue +0 -25
  405. package/demos/pc/app/tag/closable.spec.ts +0 -14
  406. /package/demos/pc/app/button/{autofocus.spec.js → autofocus.spec.ts} +0 -0
  407. /package/demos/pc/app/button/{basic-usage.spec.js → basic-usage.spec.ts} +0 -0
  408. /package/demos/pc/app/button/{click.spec.js → click.spec.ts} +0 -0
  409. /package/demos/pc/app/button/{icon.spec.js → icon.spec.ts} +0 -0
  410. /package/demos/pc/app/button/{image.spec.js → image.spec.ts} +0 -0
  411. /package/demos/pc/app/button/{loading.spec.js → loading.spec.ts} +0 -0
  412. /package/demos/pc/app/button/{reset-time.spec.js → reset-time.spec.ts} +0 -0
  413. /package/demos/pc/app/button/{size.spec.js → size.spec.ts} +0 -0
  414. /package/demos/pc/app/button/{text.spec.js → text.spec.ts} +0 -0
@@ -0,0 +1,12 @@
1
+ import { test, expect } from '@playwright/test'
2
+
3
+ test('测试自定义标签', async ({ page }) => {
4
+ page.on('pageerror', (exception) => expect(exception).toBeNull())
5
+ await page.goto('config-provider#tag')
6
+ await page.getByText('这是一个Tag被DOM包裹').click()
7
+ await page.locator('#tag span').nth(2).click()
8
+ await page.waitForTimeout(300)
9
+ await page.locator('#tag span').nth(2).click()
10
+ await page.waitForTimeout(300)
11
+ await expect(page.locator('.tiny-switch').nth(2)).toHaveCSS('background-color', 'rgb(94, 124, 224)')
12
+ })
@@ -0,0 +1,11 @@
1
+ import { test, expect } from '@playwright/test'
2
+
3
+ test('测试改变文字方向', async ({ page }) => {
4
+ page.on('pageerror', (exception) => expect(exception).toBeNull())
5
+ await page.goto('config-provider#text-direct')
6
+ await page.getByRole('link', { name: '改变文字方向' }).click()
7
+ await page.getByRole('button', { name: 'RTL' }).click()
8
+ await page.waitForTimeout(300)
9
+ await page.getByRole('button', { name: 'LTR' }).click()
10
+ await page.waitForTimeout(300)
11
+ })
@@ -0,0 +1,7 @@
1
+ ---
2
+ title: ConfigProvide Assembly
3
+ ---
4
+
5
+ # ConfigProvide Assembly
6
+
7
+ <div></div>
@@ -4,24 +4,32 @@ export default {
4
4
  demos: [
5
5
  {
6
6
  'demoId': 'base',
7
- 'name': { 'zh-CN': '基本使用', 'en-US': '' },
8
- 'desc': { 'zh-CN': '可以通过<code>design</code>属性配置自定义不同设计规范的图标和逻辑', 'en-US': '' },
7
+ 'name': { 'zh-CN': '基本使用', 'en-US': 'Basic Use' },
8
+ 'desc': {
9
+ 'zh-CN': '通过<code>design</code>属性配置自定义不同设计规范的图标和逻辑。',
10
+ 'en-US':
11
+ 'Icons and logic for different design specifications can be customized through the <code>design</code> attribute configuration.'
12
+ },
9
13
  'codeFiles': ['base.vue']
10
14
  },
11
15
  {
12
16
  'demoId': 'text-direct',
13
- 'name': { 'zh-CN': '改变文字方向', 'en-US': '' },
17
+ 'name': { 'zh-CN': '改变文字方向', 'en-US': 'Change the direction of text' },
14
18
  'desc': {
15
19
  'zh-CN':
16
- '有时, 我们需要改变文字的排列方向, 例如我们在排列阿拉伯语是就需要RTL而非LTR.config-provider也考虑到了这点,只需要覆写design.direction即可',
17
- 'en-US': ''
20
+ '通过<code>:direction="ltr"</code>设置文字对齐方向,<code>ltr</code>为左对齐,<code>rtl</code>为右对齐。',
21
+ 'en-US':
22
+ 'Set the text alignment direction through<code>: direction="ltr"</code>, where<code>ltr</code>is left aligned and<code>rtl</code>is right aligned.'
18
23
  },
19
24
  'codeFiles': ['text-direct.vue']
20
25
  },
21
26
  {
22
27
  'demoId': 'tag',
23
- 'name': { 'zh-CN': '自定义标签', 'en-US': '' },
24
- 'desc': { 'zh-CN': '可以通过<code>tag</code>可以自定义容器标签', 'en-US': '' },
28
+ 'name': { 'zh-CN': '自定义标签', 'en-US': 'Custom tags' },
29
+ 'desc': {
30
+ 'zh-CN': '通过<code>tag</code>可以自定义容器标签。',
31
+ 'en-US': 'Container labels can be customized through<code>tag</code>.'
32
+ },
25
33
  'codeFiles': ['tag.vue']
26
34
  }
27
35
  ],
@@ -29,33 +37,40 @@ export default {
29
37
  {
30
38
  'name': 'config-provider',
31
39
  'type': 'component',
32
- 'properties': [
40
+ 'props': [
33
41
  {
34
42
  'name': 'design',
35
43
  'type': 'ConfigProviderProps',
36
44
  'defaultValue': '',
37
- 'desc': { 'zh-CN': '规范,可以通过该属于定制一些自定义的交互规范', 'en-US': '' },
45
+ 'desc': {
46
+ 'zh-CN': '规范,可以通过该属于定制一些自定义的交互规范',
47
+ 'en-US': 'Standardization can be achieved by customizing some custom interaction specifications'
48
+ },
38
49
  'demoId': 'base'
39
50
  },
40
51
  {
41
52
  'name': 'breakPoints',
42
53
  'type': 'breakPoint',
43
54
  'defaultValue': "{'xs': 480,'sm': 640,'md': 768,'lg': 1024,'xl': 1280,'2xl': 1536}",
44
- 'desc': { 'zh-CN': '断点, 为Layout提供', 'en-US': '' },
55
+ 'desc': { 'zh-CN': '断点, 为Layout提供', 'en-US': 'Breakpoints, providing layout with' },
45
56
  'demoId': 'base'
46
57
  },
47
58
  {
48
59
  'name': 'direction',
49
60
  'type': "'ltr' | 'rtl'",
50
61
  'defaultValue': 'ltr',
51
- 'desc': { 'zh-CN': '文字排版方向', 'en-US': '' },
62
+ 'desc': { 'zh-CN': '文字排版方向', 'en-US': 'Text layout direction' },
52
63
  'demoId': 'text-dire'
53
64
  },
54
65
  {
55
66
  'name': 'tag',
56
67
  'type': 'object',
57
68
  'defaultValue': "{enable: true,name: 'div'}",
58
- 'desc': { 'zh-CN': '是否被元素包裹, 如果是vue2且没有一个单一节点, 组件会自动创建一个div', 'en-US': '' },
69
+ 'desc': {
70
+ 'zh-CN': '是否被元素包裹, 如果是vue2且没有一个单一节点, 组件会自动创建一个div',
71
+ 'en-US':
72
+ 'Whether it is wrapped by elements, if it is Vue2 and there is no single node, the component will automatically create a div'
73
+ },
59
74
  'demoId': 'base'
60
75
  }
61
76
  ],
@@ -2,8 +2,53 @@ import { test, expect } from '@playwright/test'
2
2
 
3
3
  test('基础用法', async ({ page }) => {
4
4
  page.on('pageerror', (exception) => expect(exception).toBeNull())
5
-
6
5
  await page.goto('container#basic-usage')
7
- const header = page.locator('.pc-demo-container .tiny-container__header')
6
+
7
+ const preview = page.locator('.pc-demo-container')
8
+ const header = preview.locator('.tiny-container__header')
9
+ const aside = preview.locator('.tiny-container__aside')
10
+ const main = preview.locator('.tiny-container__main')
11
+ const footer = preview.locator('.tiny-container__footer')
12
+ const btnCalssic = preview.getByText('经典')
13
+ const btnSimple = preview.getByText('简约')
14
+ const btnfashion = preview.getByText('时尚')
15
+ const btnlegend = preview.getByText('传奇')
16
+
17
+ // 默认显示
8
18
  await expect(header).toHaveText('Header')
19
+ await expect(main).toHaveCSS('top', '60px')
20
+ await expect(main).toHaveCSS('left', '200px')
21
+ await page.waitForTimeout(20)
22
+
23
+ // 经典模式
24
+ await btnCalssic.click()
25
+ await expect(footer).toHaveText('Footer')
26
+ await expect(main).toHaveCSS('top', '60px')
27
+ await expect(main).toHaveCSS('bottom', '60px')
28
+ await expect(main).toHaveCSS('left', '0px')
29
+ await page.waitForTimeout(20)
30
+
31
+ // 简约
32
+ await btnSimple.click()
33
+ await expect(header).toHaveCount(0)
34
+ await expect(main).toHaveCSS('top', '0px')
35
+ await expect(main).toHaveCSS('left', '200px')
36
+ await page.waitForTimeout(20)
37
+
38
+ // 时尚
39
+ await btnfashion.click()
40
+ await expect(header).toHaveCount(1)
41
+ await expect(header).toHaveCSS('top', '0px')
42
+ await expect(header).toHaveCSS('left', '200px')
43
+ await expect(main).toHaveCSS('top', '60px')
44
+ await expect(main).toHaveCSS('left', '200px')
45
+ await page.waitForTimeout(20)
46
+
47
+ // 传奇
48
+ await btnlegend.click()
49
+ await expect(header).toHaveCount(1)
50
+ await expect(main).toHaveCSS('top', '60px')
51
+ await expect(main).toHaveCSS('left', '200px')
52
+ await expect(aside).toHaveCSS('top', '60px')
53
+ await expect(footer).toHaveCSS('left', '200px')
9
54
  })
@@ -2,8 +2,16 @@ import { test, expect } from '@playwright/test'
2
2
 
3
3
  test('自定义宽度和高度', async ({ page }) => {
4
4
  page.on('pageerror', (exception) => expect(exception).toBeNull())
5
-
6
5
  await page.goto('container#custom-with-height')
7
- const header = page.locator('.pc-demo-container .tiny-container__header')
6
+
7
+ const preview = page.locator('.pc-demo-container')
8
+ const header = preview.locator('.tiny-container__header')
9
+ const aside = preview.locator('.tiny-container__aside')
10
+ const main = preview.locator('.tiny-container__main')
11
+ const footer = preview.locator('.tiny-container__footer')
12
+
8
13
  await expect(header).toHaveCSS('height', '80px')
14
+ await expect(aside).toHaveCSS('width', '200px')
15
+ await expect(main).toHaveCSS('top', '80px')
16
+ await expect(footer).toHaveCSS('height', '80px')
9
17
  })
@@ -29,17 +29,17 @@ export default {
29
29
  'name': { 'zh-CN': '裁剪框最小宽高', 'en-US': 'Minimum width and height of the crop box' },
30
30
  'desc': {
31
31
  'zh-CN':
32
- '<p>通过属性 <code>min-crop-box-width</code> 、<code>min-crop-box-height</code> 设置裁剪框最小宽高。设置后,调整裁剪框宽高时,调整到最小值后将不能再调整。\n通过属性 <code>mmin-container-width</code> 、<code>min-container-height</code> 设置容器的最小宽度,最小高度。</p>\n',
32
+ '<p>通过属性 <code>min-crop-box-width</code> 、<code>min-crop-box-height</code> 设置裁剪框最小宽高。设置后,调整裁剪框宽高时,调整到最小值后将不能再调整。\n通过属性 <code>min-container-width</code> 、<code>min-container-height</code> 设置容器的最小宽度,最小高度。</p>\n',
33
33
  'en-US':
34
- '<p>Set the minimum width and height of the cropping frame through the <code>min-crop-box-width</code> and <code>min-crop-box-height</code> attributes. After this parameter is set, the width and height of the cropping box cannot be adjusted after the width and height are adjusted to the minimum value. \n Set the minimum width and height of the container through the <code>mmin-container-width</code> and <code>min-container-height</code> attributes. </p>\n'
34
+ '<p>Set the minimum width and height of the cropping frame through the <code>min-crop-box-width</code> and <code>min-crop-box-height</code> attributes. After this parameter is set, the width and height of the cropping box cannot be adjusted after the width and height are adjusted to the minimum value. \n Set the minimum width and height of the container through the <code>min-container-width</code> and <code>min-container-height</code> attributes. </p>\n'
35
35
  },
36
36
  'codeFiles': ['min-crop-box-width-height.vue']
37
37
  },
38
38
  {
39
39
  'demoId': 'no-background',
40
- 'name': { 'zh-CN': '不显示网格背景', 'en-US': 'Do not display the grid background.' },
40
+ 'name': { 'zh-CN': '不显示网格背景', 'en-US': 'Do not display the grid background' },
41
41
  'desc': {
42
- 'zh-CN': '<p>设置 <code>background</code> 属性为 <code>false</code> 后,将不显示容器的网格背景。</p>\n',
42
+ 'zh-CN': '<p>通过设置 <code>background</code> 属性为 <code>false</code> 后,将不显示容器的网格背景。</p>\n',
43
43
  'en-US':
44
44
  '<p>When <code>background</code> is set to <code>false</code>, the grid background of the container is not displayed. </p>\n'
45
45
  },
@@ -47,9 +47,9 @@ export default {
47
47
  },
48
48
  {
49
49
  'demoId': 'no-guides',
50
- 'name': { 'zh-CN': '不显示虚线', 'en-US': 'Do not display dotted lines.' },
50
+ 'name': { 'zh-CN': '不显示虚线', 'en-US': 'Do not display dotted lines' },
51
51
  'desc': {
52
- 'zh-CN': '<p>设置 <code>guides</code> 属性为 <code>false</code> 将取消裁剪框上方的虚线显示。</p>\n',
52
+ 'zh-CN': '<p>通过设置 <code>guides</code> 属性为 <code>false</code> 将取消裁剪框上方的虚线显示。</p>\n',
53
53
  'en-US':
54
54
  '<p>Setting <code>guides</code> to <code>false</code> will cancel the dotted line above the crop box. </p>\n'
55
55
  },
@@ -59,7 +59,8 @@ export default {
59
59
  'demoId': 'no-modal',
60
60
  'name': { 'zh-CN': '不显示模态', 'en-US': 'Do not display modal' },
61
61
  'desc': {
62
- 'zh-CN': '<p>设置 <code>modal</code> 属性为 <code>false</code> 将取消裁剪框下方图片上方的模态层显示。</p>\n',
62
+ 'zh-CN':
63
+ '<p>通过设置 <code>modal</code> 属性为 <code>false</code> 将取消裁剪框下方图片上方的模态层显示。</p>\n',
63
64
  'en-US':
64
65
  '<p>Setting <code>modal</code> to <code>false</code> cancels the display of the modal layer above the image below the crop box. </p>\n'
65
66
  },
@@ -102,7 +103,7 @@ export default {
102
103
  'demoId': 'get-container-data',
103
104
  'name': { 'zh-CN': '获取容器数据', 'en-US': 'Obtain container data' },
104
105
  'desc': {
105
- 'zh-CN': '<p>调用 <code>getContainerData</code> 方法可以获取容器的大小数据。</p>\n',
106
+ 'zh-CN': '<p>通过调用 <code>getContainerData</code> 方法可以获取容器的大小数据。</p>\n',
106
107
  'en-US': '<p>Invoke the <code>getContainerData</code> method to obtain the container size data. </p>\n'
107
108
  },
108
109
  'codeFiles': ['get-container-data.vue']
@@ -111,7 +112,7 @@ export default {
111
112
  'demoId': 'get-crop-box-data',
112
113
  'name': { 'zh-CN': '获取剪切框数据', 'en-US': 'Obtain clip box data' },
113
114
  'desc': {
114
- 'zh-CN': '<p>调用 <code>getCropBoxData</code> 方法可以获取剪切框的位置和大小数据。</p>\n',
115
+ 'zh-CN': '<p>通过调用 <code>getCropBoxData</code> 方法可以获取剪切框的位置和大小数据。</p>\n',
115
116
  'en-US':
116
117
  '<p>Invoke the <code>getCropBoxData</code> method to obtain the position and size of the clip box. </p>\n'
117
118
  },
@@ -122,7 +123,7 @@ export default {
122
123
  'name': { 'zh-CN': '获取裁剪后的图片数据', 'en-US': 'Obtain the cropped image data' },
123
124
  'desc': {
124
125
  'zh-CN':
125
- '<p>调用 <code>getCroppedCanvas</code> 方法可以获取裁剪后的图片数据,搭配 <code>toDataURL</code> 方法将转成 base64 图片数据,搭配 <code>toBlob</code> 方法将生成 Blob 图片数据。</p>\n',
126
+ '<p>通过调用 <code>getCroppedCanvas</code> 方法可以获取裁剪后的图片数据,搭配 <code>toDataURL</code> 方法将转成 base64 图片数据,搭配 <code>toBlob</code> 方法将生成 Blob 图片数据。</p>\n',
126
127
  'en-US':
127
128
  '<p>Invoke the <code>getCroppedCanvas</code> method to obtain the cropped image data. Use the <code>toDataURL</code> method to convert the cropped image data to Base64 image data. Use the <code>toBlob</code> method to generate Blob image data. </p>\n'
128
129
  },
@@ -132,7 +133,7 @@ export default {
132
133
  'demoId': 'get-data',
133
134
  'name': { 'zh-CN': '获取裁剪区域数据', 'en-US': 'Obtain crop area data' },
134
135
  'desc': {
135
- 'zh-CN': '<p>调用 <code>getData</code> 方法可以获取裁剪区域的位置以及大小。</p>\n',
136
+ 'zh-CN': '<p>通过调用 <code>getData</code> 方法可以获取裁剪区域的位置以及大小。</p>\n',
136
137
  'en-US':
137
138
  '<p>Invoke the <code>getData</code> method to obtain the position and size of the cropping area. </p>\n'
138
139
  },
@@ -143,7 +144,7 @@ export default {
143
144
  'name': { 'zh-CN': '获取图像数据', 'en-US': 'Obtain Image Data' },
144
145
  'desc': {
145
146
  'zh-CN':
146
- '<p>调用 <code>getImageData</code> 方法可以获取图像位置、大小和其他相关数据,若想获取画布位置和大小数据可以调用 <code>getCanvasData</code> 方法。</p>\n',
147
+ '<p>通过调用 <code>getImageData</code> 方法可以获取图像位置、大小和其他相关数据,若想获取画布位置和大小数据可以调用 <code>getCanvasData</code> 方法。</p>\n',
147
148
  'en-US':
148
149
  '<p>Invoke the <code>getImageData</code> method to obtain the image position, size, and other related data. To obtain the canvas position and size data, call the <code>getCanvasData</code> method. </p>\n'
149
150
  },
@@ -154,7 +155,7 @@ export default {
154
155
  'name': { 'zh-CN': '替换图片', 'en-US': 'Replace Image' },
155
156
  'desc': {
156
157
  'zh-CN':
157
- '<p>调用 <code>replace</code> 方法可以替换图像的 src 并重新构建 cropper 。 通过 <code>rotatable</code> 属性控制图片旋转,默认为 true 。</p>\n',
158
+ '<p>通过调用 <code>replace</code> 方法可以替换图像的 src 并重新构建 cropper 。 通过 <code>rotatable</code> 属性控制图片旋转,默认为 true。</p>\n',
158
159
  'en-US':
159
160
  '<p>Invoke the <code>replace</code> method to replace the image src and rebuild the cropper. The <code>rotatable</code> attribute is used to control image rotation. The default value is true. </p>\n'
160
161
  },
@@ -163,7 +164,10 @@ export default {
163
164
  {
164
165
  'demoId': 'replace-image1',
165
166
  'name': { 'zh-CN': '放大图片', 'en-US': 'Enlarge Image' },
166
- 'desc': { 'zh-CN': '详细用法参考如下示例', 'en-US': 'For details, see the following example.' },
167
+ 'desc': {
168
+ 'zh-CN': '通过<code>zoomable</code>可放大图片。',
169
+ 'en-US': 'You can zoom in on the image by<code>zoomable</code>.'
170
+ },
167
171
  'codeFiles': ['replace-image.vue']
168
172
  },
169
173
  {
@@ -174,7 +178,7 @@ export default {
174
178
  },
175
179
  'desc': {
176
180
  'zh-CN':
177
- '<p><code>zoom-on-wheel</code> 属性为 <code>true</code> 情况下,通过 <code>wheel-zoom-ratio</code> 属性可以设置缩放比例,默认为 <code>0.1</code> 。</p>\n',
181
+ '<p>通过<code>zoom-on-wheel</code> 属性为 <code>true</code> 情况下,通过 <code>wheel-zoom-ratio</code> 属性可以设置缩放比例,默认为 <code>0.1</code> 。</p>\n',
178
182
  'en-US':
179
183
  '<p><code>zoom-on-wheel</code> attribute is set to <code>true</code>, you can use the <code>wheel-zoom-ratio</code> attribute to set the scaling ratio. The default value is <code>0.1</code>. </p>\n'
180
184
  },
@@ -182,10 +186,10 @@ export default {
182
186
  },
183
187
  {
184
188
  'demoId': 'zoom-on-wheel',
185
- 'name': { 'zh-CN': '禁用鼠标滚轮缩放图像', 'en-US': 'Disable the mouse wheel to zoom in or out the image.' },
189
+ 'name': { 'zh-CN': '禁用鼠标滚轮缩放图像', 'en-US': 'Disable the mouse wheel to zoom in or out the image' },
186
190
  'desc': {
187
191
  'zh-CN':
188
- '<p>设置 <code>zoom-on-wheel</code> 属性为 <code>false</code> 后,将不允许通过滚动鼠标滚轮来缩放图像。</p>\n',
192
+ '<p>通过设置 <code>zoom-on-wheel</code> 属性为 <code>false</code> 后,将不允许通过滚动鼠标滚轮来缩放图像。</p>\n',
189
193
  'en-US':
190
194
  '<p>After the <code>zoom-on-wheel</code> attribute is set to <code>false</code>, the image cannot be zoomed in or out by scrolling the mouse wheel. </p>\n'
191
195
  },
@@ -195,7 +199,7 @@ export default {
195
199
  'demoId': 'event-ready',
196
200
  'name': { 'zh-CN': 'ready 事件', 'en-US': 'ready event' },
197
201
  'desc': {
198
- 'zh-CN': '<p>当一个 cropper 实例完全构建时触发 <code>ready</code> 事件。</p>\n',
202
+ 'zh-CN': '<p>当一个 cropper 实例完全构建时,通过触发 <code>ready</code> 事件。</p>\n',
199
203
  'en-US': '<p>When a cropper instance is completely built, the <code>ready</code> event is triggered. </p>\n'
200
204
  },
201
205
  'codeFiles': ['event-ready.vue']
@@ -205,9 +209,9 @@ export default {
205
209
  'name': { 'zh-CN': '裁剪框方法 事件', 'en-US': 'Crop box method event' },
206
210
  'desc': {
207
211
  'zh-CN':
208
- '<p>当一个 cropper 实例完全构建时触发 <code>disable</code> 方法禁用裁剪框,当触发 <code>enable</code> 启用裁剪框</p>\n',
212
+ '<p>当一个 cropper 实例完全构建时,通过触发 <code>disable</code> 方法禁用裁剪框,当触发 <code>enable</code> 启用裁剪框。</p>\n',
209
213
  'en-US':
210
- '<p>When a cropper instance is completely built, the <code>disable</code> method is triggered to disable the cropping box. When the <code>enable</code> method is triggered to enable the cropping box</p>\n'
214
+ '<p>When a cropper instance is completely built, the <code>disable</code> method is triggered to disable the cropping box. When the <code>enable</code> method is triggered to enable the cropping box.</p>\n'
211
215
  },
212
216
  'codeFiles': ['crop-meth.vue']
213
217
  },
@@ -216,9 +220,9 @@ export default {
216
220
  'name': { 'zh-CN': '裁剪相关事件', 'en-US': 'Cutout Event' },
217
221
  'desc': {
218
222
  'zh-CN':
219
- '<div class="tip custom-block"><p class="custom-block-title">TIP</p>\n<p>说明当画布或剪切框开始发生变化时触发 <code>cropstart</code> 事件\n当画布或剪切框正在发生变化时触发 <code>cropmove</code> 事件\n当画布或剪切框发生变化结束时触发 <code>cropend</code> 事件\n当画布或裁剪框发生改变时触发 <code>crop</code> 事件\n通过触发 <code>getCanvasData</code> 获取画布 Canvas(图像包装器)位置和大小数据</p>\n</div>\n',
223
+ '<div class="tip custom-block"><p class="custom-block-title">TIP</p>\n<p>说明当画布或剪切框开始发生变化时触发 <code>cropstart</code> 事件\n当画布或剪切框正在发生变化时触发 <code>cropmove</code> 事件\n当画布或剪切框发生变化结束时触发 <code>cropend</code> 事件\n当画布或裁剪框发生改变时触发 <code>crop</code> 事件\n通过触发 <code>getCanvasData</code> 获取画布 Canvas(图像包装器)位置和大小数据。</p>\n</div>\n',
220
224
  'en-US':
221
- '<div class="tip custom-block"><p class="custom-block-title">TIP</p>\n<p> Description: The <code>cropstart</code> event is triggered when the canvas or clipping box starts to change.\nThe <code>cropmove</code> event is triggered when the canvas or clipping box is changed.\nThe <code>cropen event is triggered when the canvas or clipping box ends. d</code>Event\nThe <code>crop</code> event is triggered when the canvas or crop box changes. \nThe <code>getCanvasData</code> event is triggered to obtain the position and size data of the canvas (image wrapper) </p>\n</div>\n'
225
+ '<div class="tip custom-block"><p class="custom-block-title">TIP</p>\n<p> Description: The <code>cropstart</code> event is triggered when the canvas or clipping box starts to change.\nThe <code>cropmove</code> event is triggered when the canvas or clipping box is changed.\nThe <code>cropen event is triggered when the canvas or clipping box ends. d</code>Event\nThe <code>crop</code> event is triggered when the canvas or crop box changes. \nThe <code>getCanvasData</code> event is triggered to obtain the position and size data of the canvas (image wrapper). </p>\n</div>\n'
222
226
  },
223
227
  'codeFiles': ['event-about-crop.vue']
224
228
  }
@@ -227,15 +231,15 @@ export default {
227
231
  {
228
232
  'name': 'crop',
229
233
  'type': 'component',
230
- 'properties': [
234
+ 'props': [
231
235
  {
232
236
  'name': 'crop-type',
233
237
  'type': 'string',
234
238
  'defaultValue': '',
235
239
  'desc': {
236
- 'zh-CN': '设置图片裁剪后返回的类型,可配置为 blob 和 base64,默认为 base64',
240
+ 'zh-CN': '设置图片裁剪后返回的类型,可配置为 blob 和 base64,默认为 base64',
237
241
  'en-US':
238
- 'Type of the image that is returned after cropping. The value can be blob or base64. The default value is base64.'
242
+ 'Type of the image that is returned after cropping. The value can be blob or base64. The default value is base64'
239
243
  },
240
244
  'demoId': 'get-cropped-canvas'
241
245
  },
@@ -244,8 +248,8 @@ export default {
244
248
  'type': 'boolean',
245
249
  'defaultValue': '',
246
250
  'desc': {
247
- 'zh-CN': '设置裁剪区域图片是否可预览,默认为 false',
248
- 'en-US': 'Specifies whether images in the cropping area can be previewed. The default value is false.'
251
+ 'zh-CN': '设置裁剪区域图片是否可预览,默认为 false',
252
+ 'en-US': 'Specifies whether images in the cropping area can be previewed. The default value is false'
249
253
  },
250
254
  'demoId': ''
251
255
  },
@@ -254,9 +258,9 @@ export default {
254
258
  'type': 'number',
255
259
  'defaultValue': '',
256
260
  'desc': {
257
- 'zh-CN': '设置图片裁剪后的压缩比例,值在 0-1 之间,默认为 0.92',
261
+ 'zh-CN': '设置图片裁剪后的压缩比例,值在 0-1 之间,默认为 0.92',
258
262
  'en-US':
259
- 'Set the compression ratio of the cropped image. The value ranges from 0 to 1. The default value is 0.92.'
263
+ 'Set the compression ratio of the cropped image. The value ranges from 0 to 1. The default value is 0.92'
260
264
  },
261
265
  'demoId': ''
262
266
  },
@@ -273,9 +277,9 @@ export default {
273
277
  'defaultValue': '',
274
278
  'desc': {
275
279
  'zh-CN':
276
- '定义 cropper 的视图模式;默认为 0;0:没有限制,3 可以移动到 2 外。1:3 只能在 2 内移动。2:2 图片不全部铺满 1 (即缩小时可以有一边出现空隙)。3:2 图片填充整个 1',
280
+ '定义 cropper 的视图模式;默认为 0;0:没有限制,3 可以移动到 2 外。1:3 只能在 2 内移动。2:2 图片不全部铺满 1 (即缩小时可以有一边出现空隙)。3:2 图片填充整个 1',
277
281
  'en-US':
278
- 'Defines the view mode of the cropper. The default value is 0. 0: no restriction. The value 3 can be moved out of the value 2. 1:3 can only be moved within 2. The 2:2 picture is not completely covered with 1 (i.e., there may be gaps on one side when the picture is zoomed out). 3: 2 The image fills the entire 1.'
282
+ 'Defines the view mode of the cropper. The default value is 0. 0: no restriction. The value 3 can be moved out of the value 2. 1:3 can only be moved within 2. The 2:2 picture is not completely covered with 1 (i.e., there may be gaps on one side when the picture is zoomed out). 3: 2 The image fills the entire 1'
279
283
  },
280
284
  'demoId': 'view-mode'
281
285
  },
@@ -285,9 +289,9 @@ export default {
285
289
  'defaultValue': '',
286
290
  'desc': {
287
291
  'zh-CN':
288
- "定义 cropper 的拖拽模式;默认为 'crop';'crop': 可以产生一个新的裁剪框 3 。'move':只可以移动图片 3 。'none': 什么也不处理。",
292
+ "定义 cropper 的拖拽模式;默认为 'crop';'crop': 可以产生一个新的裁剪框 3 。'move':只可以移动图片 3 。'none': 什么也不处理",
289
293
  'en-US':
290
- "Defines the drag mode of the cropper. The default value is'crop'. 'Crop': A new crop box 3 can be generated. 'move': Only image 3 can be moved. 'none': no action is required."
294
+ "Defines the drag mode of the cropper. The default value is'crop'. 'Crop': A new crop box 3 can be generated. 'move': Only image 3 can be moved. 'none': no action is required"
291
295
  },
292
296
  'demoId': 'drag-mode'
293
297
  },
@@ -319,7 +323,7 @@ export default {
319
323
  'desc': {
320
324
  'zh-CN': '是否显示图片上方裁剪框下方的黑色模态;默认为 true',
321
325
  'en-US':
322
- 'Whether to display the black mode below the cropping box above the image; The default value is true.'
326
+ 'Whether to display the black mode below the cropping box above the image; The default value is true'
323
327
  },
324
328
  'demoId': 'no-modal'
325
329
  },
@@ -329,7 +333,7 @@ export default {
329
333
  'defaultValue': '',
330
334
  'desc': {
331
335
  'zh-CN': '是否在裁剪框上方显示虚线;默认为 true',
332
- 'en-US': 'Whether to display dotted lines above the crop box; The default value is true.'
336
+ 'en-US': 'Whether to display dotted lines above the crop box; The default value is true'
333
337
  },
334
338
  'demoId': 'no-guides'
335
339
  },
@@ -339,7 +343,7 @@ export default {
339
343
  'defaultValue': '',
340
344
  'desc': {
341
345
  'zh-CN': '裁剪框是否在图片正中心;默认为 true',
342
- 'en-US': 'Whether the cropping frame is in the center of the image; The default value is true.'
346
+ 'en-US': 'Whether the cropping frame is in the center of the image; The default value is true'
343
347
  },
344
348
  'demoId': 'aspect-ratio'
345
349
  },
@@ -349,7 +353,7 @@ export default {
349
353
  'defaultValue': '',
350
354
  'desc': {
351
355
  'zh-CN': '是否显示容器的网格背景;默认为 true',
352
- 'en-US': 'Whether to display the grid background of the container; The default value is true.'
356
+ 'en-US': 'Whether to display the grid background of the container; The default value is true'
353
357
  },
354
358
  'demoId': 'no-background'
355
359
  },
@@ -359,7 +363,7 @@ export default {
359
363
  'defaultValue': '',
360
364
  'desc': {
361
365
  'zh-CN': '是否允许可以移动后面的图片;默认为 true',
362
- 'en-US': 'Indicates whether the image can be moved. The default value is true.'
366
+ 'en-US': 'Indicates whether the image can be moved. The default value is true'
363
367
  },
364
368
  'demoId': 'drag-mode'
365
369
  },
@@ -369,7 +373,7 @@ export default {
369
373
  'defaultValue': '',
370
374
  'desc': {
371
375
  'zh-CN': '是否允许旋转图像;默认为 true',
372
- 'en-US': 'Indicates whether images can be rotated. The default value is true.'
376
+ 'en-US': 'Indicates whether images can be rotated. The default value is true'
373
377
  },
374
378
  'demoId': 'replace-image'
375
379
  },
@@ -379,7 +383,7 @@ export default {
379
383
  'defaultValue': '',
380
384
  'desc': {
381
385
  'zh-CN': '是否允许放大图像;默认为 true',
382
- 'en-US': 'Whether to allow image zooming in; The default value is true.'
386
+ 'en-US': 'Whether to allow image zooming in; The default value is true'
383
387
  },
384
388
  'demoId': 'replace-image'
385
389
  },
@@ -390,7 +394,7 @@ export default {
390
394
  'desc': {
391
395
  'zh-CN': '是否可以通过滚动鼠标滚轮来缩放图像;默认为 true',
392
396
  'en-US':
393
- 'Specifies whether you can zoom in or out an image by scrolling the mouse wheel. The default value is true.'
397
+ 'Specifies whether you can zoom in or out an image by scrolling the mouse wheel. The default value is true'
394
398
  },
395
399
  'demoId': 'zoom-on-wheel'
396
400
  },
@@ -451,7 +455,7 @@ export default {
451
455
  'desc': {
452
456
  'zh-CN': '初始化时,是否自动显示裁剪框;默认为 true',
453
457
  'en-US':
454
- 'Indicates whether to automatically display the crop box during initialization. The default value is true.'
458
+ 'Indicates whether to automatically display the crop box during initialization. The default value is true'
455
459
  },
456
460
  'demoId': 'auto-crop-area'
457
461
  },
@@ -483,7 +487,7 @@ export default {
483
487
  'defaultValue': '',
484
488
  'desc': {
485
489
  'zh-CN': '当一个 cropper 实例完全构建时触发',
486
- 'en-US': 'This event is triggered when a cropper instance is completely built.'
490
+ 'en-US': 'This event is triggered when a cropper instance is completely built'
487
491
  },
488
492
  'demoId': 'event-ready'
489
493
  },
@@ -494,7 +498,7 @@ export default {
494
498
  'desc': {
495
499
  'zh-CN': 'cropdata 事件回调函数中可以拿到裁剪后的数据,默认为 base64 数据',
496
500
  'en-US':
497
- 'The tailored data can be obtained from the cropdata event callback function. The default value is Base64 data.'
501
+ 'The tailored data can be obtained from the cropdata event callback function. The default value is Base64 data'
498
502
  },
499
503
  'demoId': 'event-about-crop'
500
504
  },
@@ -562,8 +566,8 @@ export default {
562
566
  'type': '',
563
567
  'defaultValue': '',
564
568
  'desc': {
565
- 'zh-CN': '替换图像的 src 并重新构建 cropper;参数为 图片 URL ',
566
- 'en-US': 'Replace the image src and rebuild the cropper. The parameter is the image URL.'
569
+ 'zh-CN': '替换图像的 src 并重新构建 cropper;参数为 图片 URL',
570
+ 'en-US': 'Replace the image src and rebuild the cropper. The parameter is the image URL'
567
571
  },
568
572
  'demoId': 'replace-image'
569
573
  },
@@ -634,7 +638,7 @@ export default {
634
638
  'desc': {
635
639
  'zh-CN': '改变裁切框的宽高比;参数为(aspectRatio),类型 number,是一个正数',
636
640
  'en-US':
637
- 'Change the aspect ratio of the cutting frame; The parameter is (aspectRatio) and the type is number. The value is a positive number.'
641
+ 'Change the aspect ratio of the cutting frame; The parameter is (aspectRatio) and the type is number. The value is a positive number'
638
642
  },
639
643
  'demoId': 'aspect-ratio'
640
644
  },
@@ -644,7 +648,7 @@ export default {
644
648
  'defaultValue': '',
645
649
  'desc': {
646
650
  'zh-CN': '禁用裁切框(裁切框不可移动)',
647
- 'en-US': 'Disable the cropping box (the cropping box cannot be moved).'
651
+ 'en-US': 'Disable the cropping box (the cropping box cannot be moved)'
648
652
  },
649
653
  'demoId': 'crop-meth'
650
654
  },
@@ -661,7 +665,7 @@ export default {
661
665
  'defaultValue': '',
662
666
  'desc': {
663
667
  'zh-CN': '销毁 cropper 并从图像中删除整个 cropper',
664
- 'en-US': 'Destroy the cropper and delete the entire cropper from the image.'
668
+ 'en-US': 'Destroy the cropper and delete the entire cropper from the image'
665
669
  },
666
670
  'demoId': 'event-ready'
667
671
  }