@sdata/web-vue 1.11.0 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (292) hide show
  1. package/dist/sd.css +177 -6
  2. package/dist/sd.min.css +1 -1
  3. package/es/_components/select-view/style/index.css +13 -6
  4. package/es/_components/virtual-list/virtual-list.vue_vue_type_script_lang.js +2 -2
  5. package/es/_hooks/use-allow-search.d.ts +10 -0
  6. package/es/_hooks/use-allow-search.js +31 -0
  7. package/es/_hooks/use-scrollbar.js +1 -1
  8. package/es/_utils/color.js +1 -1
  9. package/es/_utils/date.js +7 -1
  10. package/es/_utils/dom.js +1 -1
  11. package/es/_utils/global-config.js +1 -1
  12. package/es/_utils/omit.js +1 -1
  13. package/es/_utils/responsive-observe.js +1 -1
  14. package/es/_utils/virtual-dropdown.js +1 -1
  15. package/es/_utils/vue-utils.js +4 -18
  16. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/asyncToGenerator.js +1 -1
  17. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/defineProperty.js +1 -1
  18. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/extends.js +1 -1
  19. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectDestructuringEmpty.js +1 -1
  20. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectSpread2.js +1 -1
  21. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectWithoutProperties.js +1 -1
  22. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectWithoutPropertiesLoose.js +1 -1
  23. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/toPrimitive.js +1 -1
  24. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/toPropertyKey.js +1 -1
  25. package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/typeof.js +1 -1
  26. package/es/affix/affix.vue_vue_type_script_lang.js +31 -3
  27. package/es/alert/alert.vue_vue_type_script_lang.js +55 -0
  28. package/es/anchor/anchor-link.vue_vue_type_script_lang.js +8 -0
  29. package/es/anchor/anchor.vue_vue_type_script_lang.js +32 -0
  30. package/es/auto-complete/auto-complete.js +102 -0
  31. package/es/avatar/avatar-group.js +31 -0
  32. package/es/avatar/avatar.vue_vue_type_script_lang.js +51 -1
  33. package/es/back-top/back-top.vue_vue_type_script_lang.js +16 -0
  34. package/es/badge/badge.js +34 -1
  35. package/es/breadcrumb/breadcrumb-item.js +27 -0
  36. package/es/breadcrumb/breadcrumb.js +39 -0
  37. package/es/button/button-group.vue_vue_type_script_lang.js +22 -0
  38. package/es/button/button.vue_vue_type_script_lang.js +58 -1
  39. package/es/calendar/calendar.js +47 -0
  40. package/es/calendar/month.js +1 -1
  41. package/es/calendar/year.js +1 -1
  42. package/es/card/card-grid.vue_vue_type_script_lang.js +6 -1
  43. package/es/card/card-meta.js +23 -0
  44. package/es/card/card.js +54 -0
  45. package/es/carousel/carousel.js +68 -1
  46. package/es/cascader/cascader-panel.js +2 -28
  47. package/es/cascader/cascader-panel.vue.d.ts +24 -306
  48. package/es/cascader/{cascader-panel.vue_vue_type_script_lang.js → cascader-panel.vue_vue_type_script_setup_true_lang.js} +92 -101
  49. package/es/cascader/cascader.js +2 -145
  50. package/es/cascader/cascader.vue.d.ts +53 -1289
  51. package/es/cascader/{cascader.vue_vue_type_script_lang.js → cascader.vue_vue_type_script_setup_true_lang.js} +236 -172
  52. package/es/cascader/index.d.ts +4 -2986
  53. package/es/cascader/types.d.ts +79 -0
  54. package/es/checkbox/checkbox-group.js +48 -0
  55. package/es/checkbox/checkbox.js +35 -0
  56. package/es/collapse/collapse-item.js +36 -0
  57. package/es/collapse/collapse.vue_vue_type_script_lang.js +47 -0
  58. package/es/color-picker/color-picker.js +90 -1
  59. package/es/color-picker/panel.js +5 -2
  60. package/es/color-picker/utils.js +1 -1
  61. package/es/comment/comment.js +47 -1
  62. package/es/components.d.ts +132 -127
  63. package/es/config-provider/config-provider.vue.d.ts +9 -0
  64. package/es/config-provider/config-provider.vue_vue_type_script_lang.js +72 -1
  65. package/es/config-provider/context.d.ts +1 -0
  66. package/es/config-provider/index.d.ts +15 -0
  67. package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +1 -1
  68. package/es/config-provider/theme.js +1 -1
  69. package/es/copy/copy.js +5 -0
  70. package/es/copy/copy.vue.d.ts +15 -0
  71. package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +95 -0
  72. package/es/copy/index.d.ts +15 -0
  73. package/es/copy/index.js +10 -0
  74. package/es/copy/style/css.js +2 -0
  75. package/es/copy/style/index.css +25 -0
  76. package/es/copy/style/index.d.ts +2 -0
  77. package/es/copy/style/index.js +2 -0
  78. package/es/copy/style/index.scss +15 -0
  79. package/es/copy/style/token.scss +3 -0
  80. package/es/copy/types.d.ts +21 -0
  81. package/es/cropper/cropper.js +5 -0
  82. package/es/cropper/cropper.vue.d.ts +45 -0
  83. package/es/cropper/cropper.vue_vue_type_script_setup_true_lang.js +266 -0
  84. package/es/cropper/index.d.ts +130 -0
  85. package/es/cropper/index.js +10 -0
  86. package/es/cropper/interface.d.ts +59 -0
  87. package/es/cropper/style/css.js +2 -0
  88. package/es/cropper/style/index.css +51 -0
  89. package/es/cropper/style/index.d.ts +2 -0
  90. package/es/cropper/style/index.js +2 -0
  91. package/es/cropper/style/index.scss +43 -0
  92. package/es/cropper/style/token.scss +8 -0
  93. package/es/date-picker/hooks/use-range-time-picker-value.js +1 -1
  94. package/es/date-picker/index.d.ts +54 -576
  95. package/es/date-picker/panels/date/index.js +1 -1
  96. package/es/date-picker/panels/date/index.vue_vue_type_script_lang.js +1 -1
  97. package/es/date-picker/panels/footer.vue.d.ts +55 -577
  98. package/es/date-picker/panels/footer.vue_vue_type_script_lang.js +1 -1
  99. package/es/date-picker/panels/month/index.js +1 -1
  100. package/es/date-picker/panels/quarter/index.js +1 -1
  101. package/es/date-picker/panels/year/index.js +1 -1
  102. package/es/date-picker/picker-panel.vue.d.ts +54 -576
  103. package/es/date-picker/picker.js +1 -1
  104. package/es/date-picker/picker.vue.d.ts +54 -576
  105. package/es/date-picker/picker.vue_vue_type_script_lang.js +193 -1
  106. package/es/date-picker/pickers/date-picker.js +42 -0
  107. package/es/date-picker/pickers/month-picker.js +12 -0
  108. package/es/date-picker/pickers/quarter-picker.js +17 -0
  109. package/es/date-picker/pickers/week-picker.js +23 -0
  110. package/es/date-picker/pickers/year-picker.js +12 -0
  111. package/es/date-picker/range-picker-panel.vue.d.ts +54 -576
  112. package/es/date-picker/range-picker-panel.vue_vue_type_script_lang.js +1 -1
  113. package/es/date-picker/range-picker.js +1 -1
  114. package/es/date-picker/range-picker.vue.d.ts +54 -576
  115. package/es/date-picker/range-picker.vue_vue_type_script_lang.js +120 -1
  116. package/es/descriptions/descriptions-item.vue_vue_type_script_lang.js +16 -0
  117. package/es/descriptions/descriptions.js +65 -1
  118. package/es/divider/divider.js +24 -0
  119. package/es/drawer/drawer.vue_vue_type_script_lang.js +161 -2
  120. package/es/drawer/index.js +2 -2
  121. package/es/dropdown/dropdown-button.vue_vue_type_script_lang.js +70 -0
  122. package/es/dropdown/dropdown-group.vue_vue_type_script_lang.js +12 -1
  123. package/es/dropdown/dropdown-option.vue_vue_type_script_lang.js +20 -1
  124. package/es/dropdown/dropdown-submenu.vue_vue_type_script_lang.js +57 -0
  125. package/es/dropdown/dropdown.vue_vue_type_script_lang.js +55 -0
  126. package/es/ellipsis/ellipsis.vue_vue_type_script_lang.js +25 -2
  127. package/es/ellipsis/performant-ellipsis.vue_vue_type_script_lang.js +24 -1
  128. package/es/empty/empty.js +18 -0
  129. package/es/form/form-item.vue_vue_type_script_lang.js +146 -3
  130. package/es/form/form.vue_vue_type_script_lang.js +108 -0
  131. package/es/grid/grid-col.vue_vue_type_script_lang.js +42 -1
  132. package/es/grid/grid-item.vue_vue_type_script_lang.js +13 -1
  133. package/es/grid/grid-row.vue_vue_type_script_lang.js +21 -0
  134. package/es/grid/grid.vue_vue_type_script_lang.js +20 -0
  135. package/es/icon.js +5 -5
  136. package/es/image/image.js +1 -1
  137. package/es/image/image.vue_vue_type_script_lang.js +82 -0
  138. package/es/image/preview-action.js +8 -0
  139. package/es/image/preview-group.js +1 -1
  140. package/es/image/preview-group.vue_vue_type_script_lang.js +48 -0
  141. package/es/image/preview-toolbar.vue_vue_type_script_lang.js +1 -0
  142. package/es/image/preview.vue_vue_type_script_lang.js +56 -1
  143. package/es/index.css +177 -6
  144. package/es/index.d.ts +9 -1
  145. package/es/index.js +6 -2
  146. package/es/index.scss +4 -0
  147. package/es/input/input-password.vue_vue_type_script_lang.js +13 -0
  148. package/es/input/input-search.js +35 -1
  149. package/es/input/input.js +129 -1
  150. package/es/input-number/index.d.ts +35 -23
  151. package/es/input-number/input-number.d.ts +19 -10
  152. package/es/input-number/input-number.js +205 -23
  153. package/es/input-tag/input-tag.js +137 -1
  154. package/es/input-tag/style/index.css +13 -6
  155. package/es/input-tag/utils.js +1 -1
  156. package/es/layout/content.js +5 -0
  157. package/es/layout/footer.js +5 -0
  158. package/es/layout/header.js +5 -0
  159. package/es/layout/layout.vue_vue_type_script_lang.js +6 -1
  160. package/es/layout/sider.vue_vue_type_script_lang.js +46 -0
  161. package/es/link/index.d.ts +44 -564
  162. package/es/link/interface.d.ts +15 -0
  163. package/es/link/link.js +2 -17
  164. package/es/link/link.vue.d.ts +31 -286
  165. package/es/link/link.vue_vue_type_script_setup_true_lang.js +112 -0
  166. package/es/link/style/index.css +6 -0
  167. package/es/link/style/index.scss +10 -0
  168. package/es/list/list-item-meta.vue_vue_type_script_lang.js +23 -0
  169. package/es/list/list-item.js +21 -1
  170. package/es/list/list.js +104 -2
  171. package/es/mention/mention.js +87 -1
  172. package/es/menu/base-menu.vue_vue_type_script_lang.js +102 -0
  173. package/es/menu/item-group.vue_vue_type_script_lang.js +11 -1
  174. package/es/menu/item.d.ts +1 -1
  175. package/es/menu/item.js +13 -2
  176. package/es/menu/menu.js +2 -1
  177. package/es/menu/sub-menu-pop.vue.d.ts +1 -1
  178. package/es/menu/sub-menu.js +40 -1
  179. package/es/message/index.js +1 -1
  180. package/es/modal/index.js +2 -2
  181. package/es/modal/modal.vue_vue_type_script_lang.js +193 -2
  182. package/es/notification/index.js +1 -1
  183. package/es/overflow-list/overflow-list.js +25 -1
  184. package/es/page-header/page-header.vue_vue_type_script_lang.js +38 -0
  185. package/es/pagination/page-jumper.vue.d.ts +35 -22
  186. package/es/pagination/pagination.js +122 -0
  187. package/es/popconfirm/popconfirm.vue_vue_type_script_lang.js +95 -1
  188. package/es/popover/popover.vue_vue_type_script_lang.js +62 -0
  189. package/es/progress/line.vue_vue_type_script_lang.js +1 -1
  190. package/es/progress/progress.vue_vue_type_script_lang.js +48 -0
  191. package/es/radio/radio-group.js +53 -0
  192. package/es/radio/radio.js +36 -0
  193. package/es/rate/rate.js +54 -0
  194. package/es/resize-box/resize-box.vue_vue_type_script_lang.js +47 -1
  195. package/es/result/result.vue_vue_type_script_lang.js +40 -0
  196. package/es/scrollbar/scrollbar.vue_vue_type_script_lang.js +108 -2
  197. package/es/sd-vue.js +10 -2
  198. package/es/secret/index.d.ts +48 -0
  199. package/es/secret/index.js +10 -0
  200. package/es/secret/secret.js +5 -0
  201. package/es/secret/secret.vue.d.ts +17 -0
  202. package/es/secret/secret.vue_vue_type_script_setup_true_lang.js +64 -0
  203. package/es/secret/style/css.js +2 -0
  204. package/es/secret/style/index.css +54 -0
  205. package/es/secret/style/index.d.ts +2 -0
  206. package/es/secret/style/index.js +2 -0
  207. package/es/secret/style/index.scss +48 -0
  208. package/es/secret/style/token.scss +9 -0
  209. package/es/select/hooks/use-options.js +1 -1
  210. package/es/select/optgroup.vue_vue_type_script_lang.js +12 -1
  211. package/es/select/option.vue_vue_type_script_lang.js +27 -0
  212. package/es/select/select.js +8 -6
  213. package/es/select/utils.js +1 -1
  214. package/es/skeleton/line.vue_vue_type_script_lang.js +16 -0
  215. package/es/skeleton/shape.vue_vue_type_script_lang.js +10 -0
  216. package/es/skeleton/skeleton.vue_vue_type_script_lang.js +8 -0
  217. package/es/slider/index.d.ts +66 -42
  218. package/es/slider/slider-input.vue.d.ts +33 -21
  219. package/es/slider/slider.vue.d.ts +33 -21
  220. package/es/slider/slider.vue_vue_type_script_lang.js +55 -0
  221. package/es/space/space.js +27 -0
  222. package/es/spin/spin.js +35 -0
  223. package/es/split/split.vue_vue_type_script_lang.js +62 -1
  224. package/es/statistic/countdown.vue_vue_type_script_lang.js +36 -1
  225. package/es/statistic/statistic.vue_vue_type_script_lang.js +74 -0
  226. package/es/steps/step.vue_vue_type_script_lang.js +36 -0
  227. package/es/steps/steps.vue_vue_type_script_lang.js +47 -0
  228. package/es/switch/switch.vue_vue_type_script_lang.js +98 -1
  229. package/es/table/table-column.js +115 -0
  230. package/es/table/table-operation-td.js +1 -1
  231. package/es/table/table-operation-th.js +1 -1
  232. package/es/table/table-td.js +1 -1
  233. package/es/table/table-th.js +1 -1
  234. package/es/table/table.js +442 -3
  235. package/es/table/utils.js +1 -1
  236. package/es/tabs/tab-pane.vue_vue_type_script_lang.js +23 -1
  237. package/es/tabs/tabs.js +104 -0
  238. package/es/tag/index.d.ts +29237 -74
  239. package/es/tag/interface.d.ts +9 -1
  240. package/es/tag/style/index.css +13 -6
  241. package/es/tag/style/index.scss +16 -4
  242. package/es/tag/tag.js +26 -5
  243. package/es/tag/tag.vue.d.ts +11688 -7
  244. package/es/tag/tag.vue_vue_type_script_lang.js +139 -3
  245. package/es/tag-group/index.d.ts +64 -0
  246. package/es/tag-group/index.js +10 -0
  247. package/es/tag-group/interface.d.ts +18 -0
  248. package/es/tag-group/style/css.js +2 -0
  249. package/es/tag-group/style/index.css +92 -0
  250. package/es/tag-group/style/index.d.ts +2 -0
  251. package/es/tag-group/style/index.js +2 -0
  252. package/es/tag-group/style/index.scss +108 -0
  253. package/es/tag-group/style/token.scss +6 -0
  254. package/es/tag-group/tag-group.js +5 -0
  255. package/es/tag-group/tag-group.vue.d.ts +46 -0
  256. package/es/tag-group/tag-group.vue_vue_type_script_setup_true_lang.js +360 -0
  257. package/es/textarea/textarea.vue_vue_type_script_lang.js +90 -1
  258. package/es/time-picker/range-panel.js +1 -1
  259. package/es/time-picker/time-picker.js +1 -1
  260. package/es/time-picker/time-picker.vue_vue_type_script_lang.js +132 -0
  261. package/es/timeline/item.vue_vue_type_script_lang.js +38 -1
  262. package/es/timeline/timeline.js +28 -0
  263. package/es/tooltip/tooltip.vue_vue_type_script_lang.js +61 -1
  264. package/es/transfer/transfer.vue_vue_type_script_lang.js +136 -0
  265. package/es/tree/base-node.vue_vue_type_script_lang.js +7 -0
  266. package/es/tree/node.js +1 -1
  267. package/es/tree/tree.vue_vue_type_script_lang.js +287 -2
  268. package/es/tree/utils/tree-data.js +1 -1
  269. package/es/tree-select/hooks/use-selected-state.js +1 -1
  270. package/es/tree-select/panel.js +1 -1
  271. package/es/tree-select/tree-select.js +1 -1
  272. package/es/tree-select/tree-select.vue_vue_type_script_lang.js +281 -8
  273. package/es/trigger/trigger.js +161 -1
  274. package/es/trigger/utils.js +1 -1
  275. package/es/typography/base.d.ts +7 -0
  276. package/es/typography/base.js +127 -3
  277. package/es/typography/interface.d.ts +2 -0
  278. package/es/typography/operations.js +30 -0
  279. package/es/typography/paragraph.js +8 -0
  280. package/es/typography/title.js +6 -1
  281. package/es/upload/upload.js +279 -2
  282. package/es/verification-code/verification-code.js +59 -0
  283. package/es/watermark/hooks/use-mutation-observer.js +1 -1
  284. package/es/watermark/watermark.js +58 -1
  285. package/es/web-vue.css +24 -24
  286. package/json/vetur-attributes.json +134 -218
  287. package/json/vetur-tags.json +58 -67
  288. package/json/web-types.json +304 -493
  289. package/package.json +9 -7
  290. package/es/_utils/clipboard.d.ts +0 -1
  291. package/es/_utils/clipboard.js +0 -35
  292. package/es/link/link.vue_vue_type_script_lang.js +0 -56
@@ -2,135 +2,140 @@ import { DrawerMethod } from './drawer';
2
2
  import { MessageMethod } from './message';
3
3
  import { ModalMethod } from './modal';
4
4
  import { NotificationMethod } from './notification';
5
+ type SDVue = typeof import('./index');
5
6
  declare module 'vue' {
6
7
  interface GlobalComponents {
7
- SdAffix: (typeof import('@sdata/web-vue'))['Affix'];
8
- SdAlert: (typeof import('@sdata/web-vue'))['Alert'];
9
- SdAnchor: (typeof import('@sdata/web-vue'))['Anchor'];
10
- SdAnchorLink: (typeof import('@sdata/web-vue'))['AnchorLink'];
11
- SdAutoComplete: (typeof import('@sdata/web-vue'))['AutoComplete'];
12
- SdAvatar: (typeof import('@sdata/web-vue'))['Avatar'];
13
- SdAvatarGroup: (typeof import('@sdata/web-vue'))['AvatarGroup'];
14
- SdBackTop: (typeof import('@sdata/web-vue'))['BackTop'];
15
- SdBadge: (typeof import('@sdata/web-vue'))['Badge'];
16
- SdBreadcrumb: (typeof import('@sdata/web-vue'))['Breadcrumb'];
17
- SdBreadcrumbItem: (typeof import('@sdata/web-vue'))['BreadcrumbItem'];
18
- SdButton: (typeof import('@sdata/web-vue'))['Button'];
19
- SdButtonGroup: (typeof import('@sdata/web-vue'))['ButtonGroup'];
20
- SdCalendar: (typeof import('@sdata/web-vue'))['Calendar'];
21
- SdCard: (typeof import('@sdata/web-vue'))['Card'];
22
- SdCardMeta: (typeof import('@sdata/web-vue'))['CardMeta'];
23
- SdCardGrid: (typeof import('@sdata/web-vue'))['CardGrid'];
24
- SdCarousel: (typeof import('@sdata/web-vue'))['Carousel'];
25
- SdCarouselItem: (typeof import('@sdata/web-vue'))['CarouselItem'];
26
- SdCascader: (typeof import('@sdata/web-vue'))['Cascader'];
27
- SdCascaderPanel: (typeof import('@sdata/web-vue'))['CascaderPanel'];
28
- SdCheckbox: (typeof import('@sdata/web-vue'))['Checkbox'];
29
- SdCheckboxGroup: (typeof import('@sdata/web-vue'))['CheckboxGroup'];
30
- SdCollapse: (typeof import('@sdata/web-vue'))['Collapse'];
31
- SdCollapseItem: (typeof import('@sdata/web-vue'))['CollapseItem'];
32
- SdColorPicker: (typeof import('@sdata/web-vue'))['ColorPicker'];
33
- SdComment: (typeof import('@sdata/web-vue'))['Comment'];
34
- SdConfigProvider: (typeof import('@sdata/web-vue'))['ConfigProvider'];
35
- SdDatePicker: (typeof import('@sdata/web-vue'))['DatePicker'];
36
- SdWeekPicker: (typeof import('@sdata/web-vue'))['WeekPicker'];
37
- SdMonthPicker: (typeof import('@sdata/web-vue'))['MonthPicker'];
38
- SdYearPicker: (typeof import('@sdata/web-vue'))['YearPicker'];
39
- SdQuarterPicker: (typeof import('@sdata/web-vue'))['QuarterPicker'];
40
- SdRangePicker: (typeof import('@sdata/web-vue'))['RangePicker'];
41
- SdDescriptions: (typeof import('@sdata/web-vue'))['Descriptions'];
42
- SdDescriptionsItem: (typeof import('@sdata/web-vue'))['DescriptionsItem'];
43
- SdDivider: (typeof import('@sdata/web-vue'))['Divider'];
44
- SdDrawer: (typeof import('@sdata/web-vue'))['Drawer'];
45
- SdDropdown: (typeof import('@sdata/web-vue'))['Dropdown'];
46
- SdDoption: (typeof import('@sdata/web-vue'))['Doption'];
47
- SdDgroup: (typeof import('@sdata/web-vue'))['Dgroup'];
48
- SdDsubmenu: (typeof import('@sdata/web-vue'))['Dsubmenu'];
49
- SdEllipsis: (typeof import('@sdata/web-vue'))['Ellipsis'];
50
- SdPerformantEllipsis: (typeof import('@sdata/web-vue'))['PerformantEllipsis'];
51
- SdEmpty: (typeof import('@sdata/web-vue'))['Empty'];
52
- SdForm: (typeof import('@sdata/web-vue'))['Form'];
53
- SdFormItem: (typeof import('@sdata/web-vue'))['FormItem'];
54
- SdGrid: (typeof import('@sdata/web-vue'))['Grid'];
55
- SdGridItem: (typeof import('@sdata/web-vue'))['GridItem'];
56
- SdCol: (typeof import('@sdata/web-vue'))['Col'];
57
- SdRow: (typeof import('@sdata/web-vue'))['Row'];
58
- SdImage: (typeof import('@sdata/web-vue'))['Image'];
59
- SdImagePreview: (typeof import('@sdata/web-vue'))['ImagePreview'];
60
- SdImagePreviewAction: (typeof import('@sdata/web-vue'))['ImagePreviewAction'];
61
- SdImagePreviewGroup: (typeof import('@sdata/web-vue'))['ImagePreviewGroup'];
62
- SdInput: (typeof import('@sdata/web-vue'))['Input'];
63
- SdInputGroup: (typeof import('@sdata/web-vue'))['InputGroup'];
64
- SdInputSearch: (typeof import('@sdata/web-vue'))['InputSearch'];
65
- SdInputPassword: (typeof import('@sdata/web-vue'))['InputPassword'];
66
- SdInputNumber: (typeof import('@sdata/web-vue'))['InputNumber'];
67
- SdInputTag: (typeof import('@sdata/web-vue'))['InputTag'];
68
- SdLayout: (typeof import('@sdata/web-vue'))['Layout'];
69
- SdLayoutHeader: (typeof import('@sdata/web-vue'))['LayoutHeader'];
70
- SdLayoutContent: (typeof import('@sdata/web-vue'))['LayoutContent'];
71
- SdLayoutFooter: (typeof import('@sdata/web-vue'))['LayoutFooter'];
72
- SdLayoutSider: (typeof import('@sdata/web-vue'))['LayoutSider'];
73
- SdLink: (typeof import('@sdata/web-vue'))['Link'];
74
- SdList: (typeof import('@sdata/web-vue'))['List'];
75
- SdListItem: (typeof import('@sdata/web-vue'))['ListItem'];
76
- SdListItemMeta: (typeof import('@sdata/web-vue'))['ListItemMeta'];
77
- SdMention: (typeof import('@sdata/web-vue'))['Mention'];
78
- SdMenu: (typeof import('@sdata/web-vue'))['Menu'];
79
- SdMenuItem: (typeof import('@sdata/web-vue'))['MenuItem'];
80
- SdMenuItemGroup: (typeof import('@sdata/web-vue'))['MenuItemGroup'];
81
- SdSubMenu: (typeof import('@sdata/web-vue'))['SubMenu'];
82
- SdModal: (typeof import('@sdata/web-vue'))['Modal'];
83
- SdPageHeader: (typeof import('@sdata/web-vue'))['PageHeader'];
84
- SdPagination: (typeof import('@sdata/web-vue'))['Pagination'];
85
- SdPopconfirm: (typeof import('@sdata/web-vue'))['Popconfirm'];
86
- SdPopover: (typeof import('@sdata/web-vue'))['Popover'];
87
- SdProgress: (typeof import('@sdata/web-vue'))['Progress'];
88
- SdRadio: (typeof import('@sdata/web-vue'))['Radio'];
89
- SdRadioGroup: (typeof import('@sdata/web-vue'))['RadioGroup'];
90
- SdRate: (typeof import('@sdata/web-vue'))['Rate'];
91
- SdResizeBox: (typeof import('@sdata/web-vue'))['ResizeBox'];
92
- SdResult: (typeof import('@sdata/web-vue'))['Result'];
93
- SdSelect: (typeof import('@sdata/web-vue'))['Select'];
94
- SdOption: (typeof import('@sdata/web-vue'))['Option'];
95
- SdOptgroup: (typeof import('@sdata/web-vue'))['Optgroup'];
96
- SdSkeleton: (typeof import('@sdata/web-vue'))['Skeleton'];
97
- SdSkeletonLine: (typeof import('@sdata/web-vue'))['SkeletonLine'];
98
- SdSkeletonShape: (typeof import('@sdata/web-vue'))['SkeletonShape'];
99
- SdSlider: (typeof import('@sdata/web-vue'))['Slider'];
100
- SdSpace: (typeof import('@sdata/web-vue'))['Space'];
101
- SdSpin: (typeof import('@sdata/web-vue'))['Spin'];
102
- SdSplit: (typeof import('@sdata/web-vue'))['Split'];
103
- SdStatistic: (typeof import('@sdata/web-vue'))['Statistic'];
104
- SdCountdown: (typeof import('@sdata/web-vue'))['Countdown'];
105
- SdSteps: (typeof import('@sdata/web-vue'))['Steps'];
106
- SdStep: (typeof import('@sdata/web-vue'))['Step'];
107
- SdSwitch: (typeof import('@sdata/web-vue'))['Switch'];
108
- SdTable: (typeof import('@sdata/web-vue'))['Table'];
109
- SdThead: (typeof import('@sdata/web-vue'))['Thead'];
110
- SdTd: (typeof import('@sdata/web-vue'))['Td'];
111
- SdTh: (typeof import('@sdata/web-vue'))['Th'];
112
- SdTr: (typeof import('@sdata/web-vue'))['Tr'];
113
- SdTbody: (typeof import('@sdata/web-vue'))['Tbody'];
114
- SdTableColumn: (typeof import('@sdata/web-vue'))['TableColumn'];
115
- SdTabs: (typeof import('@sdata/web-vue'))['Tabs'];
116
- SdTabPane: (typeof import('@sdata/web-vue'))['TabPane'];
117
- SdTag: (typeof import('@sdata/web-vue'))['Tag'];
118
- SdTextarea: (typeof import('@sdata/web-vue'))['Textarea'];
119
- SdTimePicker: (typeof import('@sdata/web-vue'))['TimePicker'];
120
- SdTimeline: (typeof import('@sdata/web-vue'))['Timeline'];
121
- SdTimelineItem: (typeof import('@sdata/web-vue'))['TimelineItem'];
122
- SdTooltip: (typeof import('@sdata/web-vue'))['Tooltip'];
123
- SdTransfer: (typeof import('@sdata/web-vue'))['Transfer'];
124
- SdTree: (typeof import('@sdata/web-vue'))['Tree'];
125
- SdTreeSelect: (typeof import('@sdata/web-vue'))['TreeSelect'];
126
- SdTrigger: (typeof import('@sdata/web-vue'))['Trigger'];
127
- SdTypography: (typeof import('@sdata/web-vue'))['Typography'];
128
- SdTypographyParagraph: (typeof import('@sdata/web-vue'))['TypographyParagraph'];
129
- SdTypographyTitle: (typeof import('@sdata/web-vue'))['TypographyTitle'];
130
- SdTypographyText: (typeof import('@sdata/web-vue'))['TypographyText'];
131
- SdUpload: (typeof import('@sdata/web-vue'))['Upload'];
132
- SdVerificationCode: (typeof import('@sdata/web-vue'))['VerificationCode'];
133
- SdWatermark: (typeof import('@sdata/web-vue'))['Watermark'];
8
+ SdAffix: SDVue['Affix'];
9
+ SdAlert: SDVue['Alert'];
10
+ SdAnchor: SDVue['Anchor'];
11
+ SdAnchorLink: SDVue['AnchorLink'];
12
+ SdAutoComplete: SDVue['AutoComplete'];
13
+ SdAvatar: SDVue['Avatar'];
14
+ SdAvatarGroup: SDVue['AvatarGroup'];
15
+ SdBackTop: SDVue['BackTop'];
16
+ SdBadge: SDVue['Badge'];
17
+ SdBreadcrumb: SDVue['Breadcrumb'];
18
+ SdBreadcrumbItem: SDVue['BreadcrumbItem'];
19
+ SdButton: SDVue['Button'];
20
+ SdButtonGroup: SDVue['ButtonGroup'];
21
+ SdCalendar: SDVue['Calendar'];
22
+ SdCard: SDVue['Card'];
23
+ SdCardMeta: SDVue['CardMeta'];
24
+ SdCardGrid: SDVue['CardGrid'];
25
+ SdCarousel: SDVue['Carousel'];
26
+ SdCarouselItem: SDVue['CarouselItem'];
27
+ SdCascader: SDVue['Cascader'];
28
+ SdCascaderPanel: SDVue['CascaderPanel'];
29
+ SdCheckbox: SDVue['Checkbox'];
30
+ SdCheckboxGroup: SDVue['CheckboxGroup'];
31
+ SdCollapse: SDVue['Collapse'];
32
+ SdCollapseItem: SDVue['CollapseItem'];
33
+ SdColorPicker: SDVue['ColorPicker'];
34
+ SdComment: SDVue['Comment'];
35
+ SdConfigProvider: SDVue['ConfigProvider'];
36
+ SdCopy: SDVue['Copy'];
37
+ SdCropper: SDVue['Cropper'];
38
+ SdDatePicker: SDVue['DatePicker'];
39
+ SdWeekPicker: SDVue['WeekPicker'];
40
+ SdMonthPicker: SDVue['MonthPicker'];
41
+ SdYearPicker: SDVue['YearPicker'];
42
+ SdQuarterPicker: SDVue['QuarterPicker'];
43
+ SdRangePicker: SDVue['RangePicker'];
44
+ SdDescriptions: SDVue['Descriptions'];
45
+ SdDescriptionsItem: SDVue['DescriptionsItem'];
46
+ SdDivider: SDVue['Divider'];
47
+ SdDrawer: SDVue['Drawer'];
48
+ SdDropdown: SDVue['Dropdown'];
49
+ SdDoption: SDVue['Doption'];
50
+ SdDgroup: SDVue['Dgroup'];
51
+ SdDsubmenu: SDVue['Dsubmenu'];
52
+ SdEllipsis: SDVue['Ellipsis'];
53
+ SdPerformantEllipsis: SDVue['PerformantEllipsis'];
54
+ SdEmpty: SDVue['Empty'];
55
+ SdForm: SDVue['Form'];
56
+ SdFormItem: SDVue['FormItem'];
57
+ SdGrid: SDVue['Grid'];
58
+ SdGridItem: SDVue['GridItem'];
59
+ SdCol: SDVue['Col'];
60
+ SdRow: SDVue['Row'];
61
+ SdImage: SDVue['Image'];
62
+ SdImagePreview: SDVue['ImagePreview'];
63
+ SdImagePreviewAction: SDVue['ImagePreviewAction'];
64
+ SdImagePreviewGroup: SDVue['ImagePreviewGroup'];
65
+ SdInput: SDVue['Input'];
66
+ SdInputGroup: SDVue['InputGroup'];
67
+ SdInputSearch: SDVue['InputSearch'];
68
+ SdInputPassword: SDVue['InputPassword'];
69
+ SdInputNumber: SDVue['InputNumber'];
70
+ SdInputTag: SDVue['InputTag'];
71
+ SdLayout: SDVue['Layout'];
72
+ SdLayoutHeader: SDVue['LayoutHeader'];
73
+ SdLayoutContent: SDVue['LayoutContent'];
74
+ SdLayoutFooter: SDVue['LayoutFooter'];
75
+ SdLayoutSider: SDVue['LayoutSider'];
76
+ SdLink: SDVue['Link'];
77
+ SdList: SDVue['List'];
78
+ SdListItem: SDVue['ListItem'];
79
+ SdListItemMeta: SDVue['ListItemMeta'];
80
+ SdMention: SDVue['Mention'];
81
+ SdMenu: SDVue['Menu'];
82
+ SdMenuItem: SDVue['MenuItem'];
83
+ SdMenuItemGroup: SDVue['MenuItemGroup'];
84
+ SdSubMenu: SDVue['SubMenu'];
85
+ SdModal: SDVue['Modal'];
86
+ SdPageHeader: SDVue['PageHeader'];
87
+ SdPagination: SDVue['Pagination'];
88
+ SdPopconfirm: SDVue['Popconfirm'];
89
+ SdPopover: SDVue['Popover'];
90
+ SdProgress: SDVue['Progress'];
91
+ SdRadio: SDVue['Radio'];
92
+ SdRadioGroup: SDVue['RadioGroup'];
93
+ SdRate: SDVue['Rate'];
94
+ SdResizeBox: SDVue['ResizeBox'];
95
+ SdResult: SDVue['Result'];
96
+ SdSelect: SDVue['Select'];
97
+ SdSecret: SDVue['Secret'];
98
+ SdOption: SDVue['Option'];
99
+ SdOptgroup: SDVue['Optgroup'];
100
+ SdSkeleton: SDVue['Skeleton'];
101
+ SdSkeletonLine: SDVue['SkeletonLine'];
102
+ SdSkeletonShape: SDVue['SkeletonShape'];
103
+ SdSlider: SDVue['Slider'];
104
+ SdSpace: SDVue['Space'];
105
+ SdSpin: SDVue['Spin'];
106
+ SdSplit: SDVue['Split'];
107
+ SdStatistic: SDVue['Statistic'];
108
+ SdCountdown: SDVue['Countdown'];
109
+ SdSteps: SDVue['Steps'];
110
+ SdStep: SDVue['Step'];
111
+ SdSwitch: SDVue['Switch'];
112
+ SdTable: SDVue['Table'];
113
+ SdThead: SDVue['Thead'];
114
+ SdTd: SDVue['Td'];
115
+ SdTh: SDVue['Th'];
116
+ SdTr: SDVue['Tr'];
117
+ SdTbody: SDVue['Tbody'];
118
+ SdTableColumn: SDVue['TableColumn'];
119
+ SdTabs: SDVue['Tabs'];
120
+ SdTabPane: SDVue['TabPane'];
121
+ SdTag: SDVue['Tag'];
122
+ SdTagGroup: SDVue['TagGroup'];
123
+ SdTextarea: SDVue['Textarea'];
124
+ SdTimePicker: SDVue['TimePicker'];
125
+ SdTimeline: SDVue['Timeline'];
126
+ SdTimelineItem: SDVue['TimelineItem'];
127
+ SdTooltip: SDVue['Tooltip'];
128
+ SdTransfer: SDVue['Transfer'];
129
+ SdTree: SDVue['Tree'];
130
+ SdTreeSelect: SDVue['TreeSelect'];
131
+ SdTrigger: SDVue['Trigger'];
132
+ SdTypography: SDVue['Typography'];
133
+ SdTypographyParagraph: SDVue['TypographyParagraph'];
134
+ SdTypographyTitle: SDVue['TypographyTitle'];
135
+ SdTypographyText: SDVue['TypographyText'];
136
+ SdUpload: SDVue['Upload'];
137
+ SdVerificationCode: SDVue['VerificationCode'];
138
+ SdWatermark: SDVue['Watermark'];
134
139
  }
135
140
  interface ComponentCustomProperties {
136
141
  $message: MessageMethod;
@@ -19,6 +19,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
19
19
  type: BooleanConstructor;
20
20
  default: boolean;
21
21
  };
22
+ allowSearch: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
22
26
  global: {
23
27
  type: BooleanConstructor;
24
28
  default: boolean;
@@ -60,6 +64,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
60
64
  type: BooleanConstructor;
61
65
  default: boolean;
62
66
  };
67
+ allowSearch: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
63
71
  global: {
64
72
  type: BooleanConstructor;
65
73
  default: boolean;
@@ -92,6 +100,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
92
100
  scrollToClose: boolean;
93
101
  rtl: boolean;
94
102
  allowClear: boolean;
103
+ allowSearch: boolean;
95
104
  global: boolean;
96
105
  exchangeTime: boolean;
97
106
  }, {}, {
@@ -6,47 +6,118 @@ import { defineComponent, getCurrentInstance, provide, reactive, toRefs, watch }
6
6
  var config_provider_vue_vue_type_script_lang_default = defineComponent({
7
7
  name: "ConfigProvider",
8
8
  props: {
9
+ /**
10
+ * @zh 组件类名前缀
11
+ * @en Component classname prefix
12
+ */
9
13
  prefixCls: {
10
14
  type: String,
11
15
  default: "sd"
12
16
  },
17
+ /**
18
+ * @zh 配置语言包
19
+ * @en Configure language pack
20
+ */
13
21
  locale: { type: Object },
22
+ /**
23
+ * @zh 大小
24
+ * @en Size
25
+ * @version 2.14.0
26
+ */
14
27
  size: { type: String },
28
+ /**
29
+ * @zh 是否默认开启清除按钮
30
+ * @en Whether to enable clear buttons by default
31
+ */
15
32
  allowClear: {
16
33
  type: Boolean,
17
34
  default: false
18
35
  },
36
+ /**
37
+ * @zh 是否默认开启搜索
38
+ * @en Whether to enable search by default
39
+ */
40
+ allowSearch: {
41
+ type: Boolean,
42
+ default: false
43
+ },
44
+ /**
45
+ * @zh 是否全局生效
46
+ * @en Is global effect
47
+ * @version 2.25.0
48
+ */
19
49
  global: {
20
50
  type: Boolean,
21
51
  default: false
22
52
  },
53
+ /**
54
+ * @zh 是否在容器滚动时更新弹出框的位置
55
+ * @us Whether to update the position of the popup when the container is scrolled
56
+ * @version 2.25.0
57
+ */
23
58
  updateAtScroll: {
24
59
  type: Boolean,
25
60
  default: false
26
61
  },
62
+ /**
63
+ * @zh 是否在滚动时关闭弹出框
64
+ * @en Whether to close the popover when scrolling
65
+ * @version 2.46.0
66
+ */
27
67
  scrollToClose: {
28
68
  type: Boolean,
29
69
  default: false
30
70
  },
71
+ /**
72
+ * @zh 是否交换时间
73
+ * @en Whether to exchange time
74
+ * @version 2.48.0
75
+ */
31
76
  exchangeTime: {
32
77
  type: Boolean,
33
78
  default: true
34
79
  },
80
+ /**
81
+ * @zh 视图的表现形式是从右开始向左结束
82
+ * @en View starts from the right and ends on the left
83
+ */
35
84
  rtl: {
36
85
  type: Boolean,
37
86
  default: false
38
87
  },
88
+ /**
89
+ * @zh 主题配置对象
90
+ * @en Runtime theme configuration object
91
+ */
39
92
  theme: { type: Object },
93
+ /**
94
+ * @zh 主题模式,可局部覆盖到当前 ConfigProvider 子树
95
+ * @en Theme mode applied to the current ConfigProvider subtree
96
+ */
40
97
  themeMode: { type: String }
41
98
  },
99
+ /**
100
+ * @zh 自定义空状态元素
101
+ * @en Custom empty element
102
+ * @slot empty
103
+ * @binding {string} component
104
+ * @version 2.28.0
105
+ */
106
+ /**
107
+ * @zh 自定义加载中元素
108
+ * @en Custom loading element
109
+ * @slot loading
110
+ * @version 2.28.0
111
+ */
42
112
  setup(props, { slots }) {
43
- const { prefixCls, locale, size, allowClear, updateAtScroll, scrollToClose, exchangeTime, rtl } = toRefs(props);
113
+ const { prefixCls, locale, size, allowClear, allowSearch, updateAtScroll, scrollToClose, exchangeTime, rtl } = toRefs(props);
44
114
  const config = reactive({
45
115
  slots,
46
116
  prefixCls,
47
117
  locale,
48
118
  size,
49
119
  allowClear,
120
+ allowSearch,
50
121
  updateAtScroll,
51
122
  scrollToClose,
52
123
  exchangeTime,
@@ -8,6 +8,7 @@ export interface ConfigProvider {
8
8
  locale?: SDLang;
9
9
  size?: Size;
10
10
  allowClear?: boolean;
11
+ allowSearch?: boolean;
11
12
  updateAtScroll?: boolean;
12
13
  scrollToClose?: boolean;
13
14
  exchangeTime?: boolean;
@@ -17,6 +17,10 @@ declare const ConfigProvider: {
17
17
  type: BooleanConstructor;
18
18
  default: boolean;
19
19
  };
20
+ allowSearch: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
20
24
  global: {
21
25
  type: BooleanConstructor;
22
26
  default: boolean;
@@ -49,6 +53,7 @@ declare const ConfigProvider: {
49
53
  scrollToClose: boolean;
50
54
  rtl: boolean;
51
55
  allowClear: boolean;
56
+ allowSearch: boolean;
52
57
  global: boolean;
53
58
  exchangeTime: boolean;
54
59
  }, true, {}, {}, {
@@ -120,6 +125,10 @@ declare const ConfigProvider: {
120
125
  type: BooleanConstructor;
121
126
  default: boolean;
122
127
  };
128
+ allowSearch: {
129
+ type: BooleanConstructor;
130
+ default: boolean;
131
+ };
123
132
  global: {
124
133
  type: BooleanConstructor;
125
134
  default: boolean;
@@ -152,6 +161,7 @@ declare const ConfigProvider: {
152
161
  scrollToClose: boolean;
153
162
  rtl: boolean;
154
163
  allowClear: boolean;
164
+ allowSearch: boolean;
155
165
  global: boolean;
156
166
  exchangeTime: boolean;
157
167
  }>;
@@ -173,6 +183,10 @@ declare const ConfigProvider: {
173
183
  type: BooleanConstructor;
174
184
  default: boolean;
175
185
  };
186
+ allowSearch: {
187
+ type: BooleanConstructor;
188
+ default: boolean;
189
+ };
176
190
  global: {
177
191
  type: BooleanConstructor;
178
192
  default: boolean;
@@ -205,6 +219,7 @@ declare const ConfigProvider: {
205
219
  scrollToClose: boolean;
206
220
  rtl: boolean;
207
221
  allowClear: boolean;
222
+ allowSearch: boolean;
208
223
  global: boolean;
209
224
  exchangeTime: boolean;
210
225
  }, {}, string, {}, {
@@ -1,5 +1,5 @@
1
1
  import { themePopupContainerInjectionKey } from "./context.js";
2
- import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.124.0/helpers/objectSpread2.js";
2
+ import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
3
3
  import { getPrefixCls } from "../_utils/global-config.js";
4
4
  import usePopupManager from "../_hooks/use-popup-manager.js";
5
5
  import { applyThemeCSSVariables, clearThemeCSSVariables, normalizeTheme } from "./theme.js";
@@ -1,4 +1,4 @@
1
- import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.124.0/helpers/objectSpread2.js";
1
+ import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
2
2
  //#region components/config-provider/theme.ts
3
3
  var DEFAULT_THEME_META = {
4
4
  schemaVersion: 1,
@@ -0,0 +1,5 @@
1
+ import copy_vue_vue_type_script_setup_true_lang_default from "./copy.vue_vue_type_script_setup_true_lang.js";
2
+ //#region components/copy/copy.vue
3
+ var copy_default = copy_vue_vue_type_script_setup_true_lang_default;
4
+ //#endregion
5
+ export { copy_default as default };
@@ -0,0 +1,15 @@
1
+ declare var __VLS_17: {}, __VLS_24: {};
2
+ type __VLS_Slots = {} & {
3
+ icon?: (props: typeof __VLS_17) => any;
4
+ } & {
5
+ default?: (props: typeof __VLS_24) => any;
6
+ };
7
+ declare const __VLS_base: import("vue").DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import("vue").PublicProps>;
8
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
11
+ type __VLS_WithSlots<T, S> = T & {
12
+ new (): {
13
+ $slots: S;
14
+ };
15
+ };
@@ -0,0 +1,95 @@
1
+ import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
2
+ import { getPrefixCls } from "../_utils/global-config.js";
3
+ import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/asyncToGenerator.js";
4
+ import Button from "../button/index.js";
5
+ import Tooltip from "../tooltip/index.js";
6
+ import IconCopy from "../icon/icon-copy/index.js";
7
+ import Link from "../link/index.js";
8
+ import Message from "../message/index.js";
9
+ import { computed, createBlock, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, resolveDynamicComponent, unref, useAttrs, withCtx } from "vue";
10
+ import copy from "copy-to-clipboard";
11
+ //#region components/copy/copy.vue?vue&type=script&setup=true&lang.ts
12
+ var copy_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent(_objectSpread2(_objectSpread2({}, {
13
+ name: "Copy",
14
+ inheritAttrs: false
15
+ }), {}, {
16
+ __name: "copy",
17
+ props: {
18
+ content: { default: "" },
19
+ tooltip: { default: "复制" },
20
+ tooltipProps: { default: void 0 },
21
+ clipboardProps: { default: void 0 },
22
+ textInherit: {
23
+ type: Boolean,
24
+ default: true
25
+ },
26
+ successMessage: { default: "复制成功" },
27
+ href: {},
28
+ status: {},
29
+ hoverable: { type: Boolean },
30
+ icon: { type: Boolean },
31
+ ellipsis: { type: Boolean },
32
+ ellipsisLineClamp: {},
33
+ ellipsisExpandTrigger: {},
34
+ ellipsisTooltip: { type: [Boolean, Object] },
35
+ iconTooltip: {},
36
+ loading: { type: Boolean },
37
+ disabled: { type: Boolean },
38
+ component: { default: "link" },
39
+ type: {},
40
+ shape: {},
41
+ size: {},
42
+ long: { type: Boolean },
43
+ htmlType: {},
44
+ autofocus: { type: Boolean }
45
+ },
46
+ emits: ["copy"],
47
+ setup(__props, { emit: __emit }) {
48
+ const props = __props;
49
+ const emit = __emit;
50
+ const attrs = useAttrs();
51
+ const prefixCls = getPrefixCls("copy");
52
+ const componentMap = {
53
+ link: Link,
54
+ button: Button
55
+ };
56
+ const renderComponent = computed(() => componentMap[props.component]);
57
+ const componentClass = computed(() => [prefixCls, { [`${prefixCls}-inherit`]: props.component === "link" && props.textInherit }]);
58
+ const isDisabled = computed(() => {
59
+ var _props$disabled;
60
+ const disabled = (_props$disabled = props.disabled) !== null && _props$disabled !== void 0 ? _props$disabled : attrs.disabled;
61
+ return disabled === "" || disabled === true || disabled === "true";
62
+ });
63
+ const mergedTooltipProps = computed(() => {
64
+ var _props$tooltipProps$c, _props$tooltipProps;
65
+ return _objectSpread2(_objectSpread2({}, props.tooltipProps), {}, { content: (_props$tooltipProps$c = (_props$tooltipProps = props.tooltipProps) === null || _props$tooltipProps === void 0 ? void 0 : _props$tooltipProps.content) !== null && _props$tooltipProps$c !== void 0 ? _props$tooltipProps$c : props.tooltip });
66
+ });
67
+ function handleCopy() {
68
+ return _handleCopy.apply(this, arguments);
69
+ }
70
+ function _handleCopy() {
71
+ _handleCopy = _asyncToGenerator(function* () {
72
+ if (isDisabled.value) return;
73
+ yield copy(props.content, props.clipboardProps);
74
+ Message.success(props.successMessage);
75
+ emit("copy", props.content);
76
+ });
77
+ return _handleCopy.apply(this, arguments);
78
+ }
79
+ return (_ctx, _cache) => {
80
+ return openBlock(), createBlock(unref(Tooltip), normalizeProps(guardReactiveProps(mergedTooltipProps.value)), {
81
+ default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(renderComponent.value), mergeProps(unref(attrs), {
82
+ class: componentClass.value,
83
+ onClick: handleCopy
84
+ }), {
85
+ icon: withCtx(() => [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(unref(IconCopy))])]),
86
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
87
+ _: 3
88
+ }, 16, ["class"]))]),
89
+ _: 3
90
+ }, 16);
91
+ };
92
+ }
93
+ }));
94
+ //#endregion
95
+ export { copy_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,15 @@
1
+ import type { App } from 'vue';
2
+ import type { SDOptions } from '../_utils/types';
3
+ import _Copy from './copy.vue';
4
+ declare const Copy: import("vue").DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import("vue").PublicProps> & (new () => {
5
+ $slots: {
6
+ icon?: (props: {}) => any;
7
+ } & {
8
+ default?: (props: {}) => any;
9
+ };
10
+ }) & {
11
+ install: (app: App, options?: SDOptions) => void;
12
+ };
13
+ export type CopyInstance = InstanceType<typeof _Copy>;
14
+ export type { CopyButtonProps, CopyComponentType, CopyLinkProps, CopyProps } from './types';
15
+ export default Copy;