@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
@@ -1,594 +1,74 @@
1
1
  import type { App } from 'vue';
2
2
  import type { SDOptions } from '../_utils/types';
3
+ import type { LinkProps } from './interface';
3
4
  import _Link from './link.vue';
4
5
  declare const Link: {
5
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
6
- href: StringConstructor;
7
- status: {
8
- type: import("vue").PropType<import("..").Status>;
9
- default: string;
10
- };
11
- hoverable: {
12
- type: BooleanConstructor;
13
- default: boolean;
14
- };
15
- icon: BooleanConstructor;
16
- loading: BooleanConstructor;
17
- disabled: BooleanConstructor;
18
- }>> & Readonly<{
19
- onClick?: ((_ev: MouseEvent) => any) | undefined;
20
- }>, {
21
- cls: import("vue").ComputedRef<(string | {
22
- [x: string]: boolean;
23
- })[]>;
24
- prefixCls: string;
25
- showIcon: import("vue").ComputedRef<boolean>;
26
- handleClick: (ev: MouseEvent) => void;
27
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
- click: (_ev: MouseEvent) => true;
6
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<LinkProps> & Readonly<{
7
+ onClick?: ((ev: MouseEvent) => any) | undefined;
8
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ click: (ev: MouseEvent) => any;
29
10
  }, import("vue").PublicProps, {
30
- status: "normal" | "success" | "warning" | "danger";
11
+ status: import("..").Status;
31
12
  disabled: boolean;
32
13
  loading: boolean;
33
14
  icon: boolean;
34
- hoverable: boolean;
35
- }, true, {}, {}, {
36
- IconLink: {
37
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
38
- size: {
39
- type: (StringConstructor | NumberConstructor)[];
40
- };
41
- strokeWidth: {
42
- type: NumberConstructor;
43
- default: number;
44
- };
45
- strokeLinecap: {
46
- type: StringConstructor;
47
- default: string;
48
- validator: (value: any) => boolean;
49
- };
50
- strokeLinejoin: {
51
- type: StringConstructor;
52
- default: string;
53
- validator: (value: any) => boolean;
54
- };
55
- rotate: NumberConstructor;
56
- spin: BooleanConstructor;
57
- }>> & Readonly<{
58
- onClick?: ((ev: MouseEvent) => any) | undefined;
59
- }>, {
60
- cls: import("vue").ComputedRef<(string | {
61
- [x: string]: boolean;
62
- })[]>;
63
- innerStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
64
- svgAttrs: import("vue").ComputedRef<Record<string, string | number>>;
65
- onClick: (ev: MouseEvent) => void;
66
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
67
- click: (ev: MouseEvent) => true;
68
- }, import("vue").PublicProps, {
69
- spin: boolean;
70
- strokeWidth: number;
71
- strokeLinecap: string;
72
- strokeLinejoin: string;
73
- }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
74
- P: {};
75
- B: {};
76
- D: {};
77
- C: {};
78
- M: {};
79
- Defaults: {};
80
- }, Readonly<import("vue").ExtractPropTypes<{
81
- size: {
82
- type: (StringConstructor | NumberConstructor)[];
83
- };
84
- strokeWidth: {
85
- type: NumberConstructor;
86
- default: number;
87
- };
88
- strokeLinecap: {
89
- type: StringConstructor;
90
- default: string;
91
- validator: (value: any) => boolean;
92
- };
93
- strokeLinejoin: {
94
- type: StringConstructor;
95
- default: string;
96
- validator: (value: any) => boolean;
97
- };
98
- rotate: NumberConstructor;
99
- spin: BooleanConstructor;
100
- }>> & Readonly<{
101
- onClick?: ((ev: MouseEvent) => any) | undefined;
102
- }>, {
103
- cls: import("vue").ComputedRef<(string | {
104
- [x: string]: boolean;
105
- })[]>;
106
- innerStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
107
- svgAttrs: import("vue").ComputedRef<Record<string, string | number>>;
108
- onClick: (ev: MouseEvent) => void;
109
- }, {}, {}, {}, {
110
- spin: boolean;
111
- strokeWidth: number;
112
- strokeLinecap: string;
113
- strokeLinejoin: string;
114
- }>;
115
- __isFragment?: never;
116
- __isTeleport?: never;
117
- __isSuspense?: never;
118
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
119
- size: {
120
- type: (StringConstructor | NumberConstructor)[];
121
- };
122
- strokeWidth: {
123
- type: NumberConstructor;
124
- default: number;
125
- };
126
- strokeLinecap: {
127
- type: StringConstructor;
128
- default: string;
129
- validator: (value: any) => boolean;
130
- };
131
- strokeLinejoin: {
132
- type: StringConstructor;
133
- default: string;
134
- validator: (value: any) => boolean;
135
- };
136
- rotate: NumberConstructor;
137
- spin: BooleanConstructor;
138
- }>> & Readonly<{
139
- onClick?: ((ev: MouseEvent) => any) | undefined;
140
- }>, {
141
- cls: import("vue").ComputedRef<(string | {
142
- [x: string]: boolean;
143
- })[]>;
144
- innerStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
145
- svgAttrs: import("vue").ComputedRef<Record<string, string | number>>;
146
- onClick: (ev: MouseEvent) => void;
147
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
148
- click: (ev: MouseEvent) => true;
149
- }, string, {
150
- spin: boolean;
151
- strokeWidth: number;
152
- strokeLinecap: string;
153
- strokeLinejoin: string;
154
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
155
- install: (app: App, options?: import("../_utils/types").SDIconOptions) => void;
156
- };
157
- IconLoading: {
158
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
159
- size: {
160
- type: (StringConstructor | NumberConstructor)[];
161
- };
162
- strokeWidth: {
163
- type: NumberConstructor;
164
- default: number;
165
- };
166
- strokeLinecap: {
167
- type: StringConstructor;
168
- default: string;
169
- validator: (value: any) => boolean;
170
- };
171
- strokeLinejoin: {
172
- type: StringConstructor;
173
- default: string;
174
- validator: (value: any) => boolean;
175
- };
176
- rotate: NumberConstructor;
177
- spin: BooleanConstructor;
178
- }>> & Readonly<{
179
- onClick?: ((ev: MouseEvent) => any) | undefined;
180
- }>, {
181
- cls: import("vue").ComputedRef<(string | {
182
- [x: string]: boolean;
183
- })[]>;
184
- innerStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
185
- svgAttrs: import("vue").ComputedRef<Record<string, string | number>>;
186
- onClick: (ev: MouseEvent) => void;
187
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
188
- click: (ev: MouseEvent) => true;
189
- }, import("vue").PublicProps, {
190
- spin: boolean;
191
- strokeWidth: number;
192
- strokeLinecap: string;
193
- strokeLinejoin: string;
194
- }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
195
- P: {};
196
- B: {};
197
- D: {};
198
- C: {};
199
- M: {};
200
- Defaults: {};
201
- }, Readonly<import("vue").ExtractPropTypes<{
202
- size: {
203
- type: (StringConstructor | NumberConstructor)[];
204
- };
205
- strokeWidth: {
206
- type: NumberConstructor;
207
- default: number;
208
- };
209
- strokeLinecap: {
210
- type: StringConstructor;
211
- default: string;
212
- validator: (value: any) => boolean;
213
- };
214
- strokeLinejoin: {
215
- type: StringConstructor;
216
- default: string;
217
- validator: (value: any) => boolean;
218
- };
219
- rotate: NumberConstructor;
220
- spin: BooleanConstructor;
221
- }>> & Readonly<{
222
- onClick?: ((ev: MouseEvent) => any) | undefined;
223
- }>, {
224
- cls: import("vue").ComputedRef<(string | {
225
- [x: string]: boolean;
226
- })[]>;
227
- innerStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
228
- svgAttrs: import("vue").ComputedRef<Record<string, string | number>>;
229
- onClick: (ev: MouseEvent) => void;
230
- }, {}, {}, {}, {
231
- spin: boolean;
232
- strokeWidth: number;
233
- strokeLinecap: string;
234
- strokeLinejoin: string;
235
- }>;
236
- __isFragment?: never;
237
- __isTeleport?: never;
238
- __isSuspense?: never;
239
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
240
- size: {
241
- type: (StringConstructor | NumberConstructor)[];
242
- };
243
- strokeWidth: {
244
- type: NumberConstructor;
245
- default: number;
246
- };
247
- strokeLinecap: {
248
- type: StringConstructor;
249
- default: string;
250
- validator: (value: any) => boolean;
251
- };
252
- strokeLinejoin: {
253
- type: StringConstructor;
254
- default: string;
255
- validator: (value: any) => boolean;
256
- };
257
- rotate: NumberConstructor;
258
- spin: BooleanConstructor;
259
- }>> & Readonly<{
260
- onClick?: ((ev: MouseEvent) => any) | undefined;
261
- }>, {
262
- cls: import("vue").ComputedRef<(string | {
263
- [x: string]: boolean;
264
- })[]>;
265
- innerStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
266
- svgAttrs: import("vue").ComputedRef<Record<string, string | number>>;
267
- onClick: (ev: MouseEvent) => void;
268
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
269
- click: (ev: MouseEvent) => true;
270
- }, string, {
271
- spin: boolean;
272
- strokeWidth: number;
273
- strokeLinecap: string;
274
- strokeLinejoin: string;
275
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
276
- install: (app: App, options?: import("../_utils/types").SDIconOptions) => void;
277
- };
278
- } & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
15
+ ellipsis: boolean;
16
+ ellipsisLineClamp: number | string;
17
+ ellipsisExpandTrigger: "click";
18
+ ellipsisTooltip: boolean | import("..").EllipsisTooltipProps;
19
+ iconTooltip: string;
20
+ }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
279
21
  P: {};
280
22
  B: {};
281
23
  D: {};
282
24
  C: {};
283
25
  M: {};
284
26
  Defaults: {};
285
- }, Readonly<import("vue").ExtractPropTypes<{
286
- href: StringConstructor;
287
- status: {
288
- type: import("vue").PropType<import("..").Status>;
289
- default: string;
290
- };
291
- hoverable: {
292
- type: BooleanConstructor;
293
- default: boolean;
294
- };
295
- icon: BooleanConstructor;
296
- loading: BooleanConstructor;
297
- disabled: BooleanConstructor;
298
- }>> & Readonly<{
299
- onClick?: ((_ev: MouseEvent) => any) | undefined;
300
- }>, {
301
- cls: import("vue").ComputedRef<(string | {
302
- [x: string]: boolean;
303
- })[]>;
304
- prefixCls: string;
305
- showIcon: import("vue").ComputedRef<boolean>;
306
- handleClick: (ev: MouseEvent) => void;
307
- }, {}, {}, {}, {
308
- status: "normal" | "success" | "warning" | "danger";
27
+ }, Readonly<LinkProps> & Readonly<{
28
+ onClick?: ((ev: MouseEvent) => any) | undefined;
29
+ }>, {}, {}, {}, {}, {
30
+ status: import("..").Status;
309
31
  disabled: boolean;
310
32
  loading: boolean;
311
33
  icon: boolean;
312
- hoverable: boolean;
34
+ ellipsis: boolean;
35
+ ellipsisLineClamp: number | string;
36
+ ellipsisExpandTrigger: "click";
37
+ ellipsisTooltip: boolean | import("..").EllipsisTooltipProps;
38
+ iconTooltip: string;
313
39
  }>;
314
40
  __isFragment?: never;
315
41
  __isTeleport?: never;
316
42
  __isSuspense?: never;
317
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
318
- href: StringConstructor;
319
- status: {
320
- type: import("vue").PropType<import("..").Status>;
321
- default: string;
322
- };
323
- hoverable: {
324
- type: BooleanConstructor;
325
- default: boolean;
326
- };
327
- icon: BooleanConstructor;
328
- loading: BooleanConstructor;
329
- disabled: BooleanConstructor;
330
- }>> & Readonly<{
331
- onClick?: ((_ev: MouseEvent) => any) | undefined;
332
- }>, {
333
- cls: import("vue").ComputedRef<(string | {
334
- [x: string]: boolean;
335
- })[]>;
336
- prefixCls: string;
337
- showIcon: import("vue").ComputedRef<boolean>;
338
- handleClick: (ev: MouseEvent) => void;
339
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
340
- click: (_ev: MouseEvent) => true;
43
+ } & import("vue").ComponentOptionsBase<Readonly<LinkProps> & Readonly<{
44
+ onClick?: ((ev: MouseEvent) => any) | undefined;
45
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
46
+ click: (ev: MouseEvent) => any;
341
47
  }, string, {
342
- status: "normal" | "success" | "warning" | "danger";
48
+ status: import("..").Status;
343
49
  disabled: boolean;
344
50
  loading: boolean;
345
51
  icon: boolean;
346
- hoverable: boolean;
347
- }, {}, string, {}, {
348
- IconLink: {
349
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
350
- size: {
351
- type: (StringConstructor | NumberConstructor)[];
352
- };
353
- strokeWidth: {
354
- type: NumberConstructor;
355
- default: number;
356
- };
357
- strokeLinecap: {
358
- type: StringConstructor;
359
- default: string;
360
- validator: (value: any) => boolean;
361
- };
362
- strokeLinejoin: {
363
- type: StringConstructor;
364
- default: string;
365
- validator: (value: any) => boolean;
366
- };
367
- rotate: NumberConstructor;
368
- spin: BooleanConstructor;
369
- }>> & Readonly<{
370
- onClick?: ((ev: MouseEvent) => any) | undefined;
371
- }>, {
372
- cls: import("vue").ComputedRef<(string | {
373
- [x: string]: boolean;
374
- })[]>;
375
- innerStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
376
- svgAttrs: import("vue").ComputedRef<Record<string, string | number>>;
377
- onClick: (ev: MouseEvent) => void;
378
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
379
- click: (ev: MouseEvent) => true;
380
- }, import("vue").PublicProps, {
381
- spin: boolean;
382
- strokeWidth: number;
383
- strokeLinecap: string;
384
- strokeLinejoin: string;
385
- }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
386
- P: {};
387
- B: {};
388
- D: {};
389
- C: {};
390
- M: {};
391
- Defaults: {};
392
- }, Readonly<import("vue").ExtractPropTypes<{
393
- size: {
394
- type: (StringConstructor | NumberConstructor)[];
395
- };
396
- strokeWidth: {
397
- type: NumberConstructor;
398
- default: number;
399
- };
400
- strokeLinecap: {
401
- type: StringConstructor;
402
- default: string;
403
- validator: (value: any) => boolean;
404
- };
405
- strokeLinejoin: {
406
- type: StringConstructor;
407
- default: string;
408
- validator: (value: any) => boolean;
409
- };
410
- rotate: NumberConstructor;
411
- spin: BooleanConstructor;
412
- }>> & Readonly<{
413
- onClick?: ((ev: MouseEvent) => any) | undefined;
414
- }>, {
415
- cls: import("vue").ComputedRef<(string | {
416
- [x: string]: boolean;
417
- })[]>;
418
- innerStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
419
- svgAttrs: import("vue").ComputedRef<Record<string, string | number>>;
420
- onClick: (ev: MouseEvent) => void;
421
- }, {}, {}, {}, {
422
- spin: boolean;
423
- strokeWidth: number;
424
- strokeLinecap: string;
425
- strokeLinejoin: string;
426
- }>;
427
- __isFragment?: never;
428
- __isTeleport?: never;
429
- __isSuspense?: never;
430
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
431
- size: {
432
- type: (StringConstructor | NumberConstructor)[];
433
- };
434
- strokeWidth: {
435
- type: NumberConstructor;
436
- default: number;
437
- };
438
- strokeLinecap: {
439
- type: StringConstructor;
440
- default: string;
441
- validator: (value: any) => boolean;
442
- };
443
- strokeLinejoin: {
444
- type: StringConstructor;
445
- default: string;
446
- validator: (value: any) => boolean;
447
- };
448
- rotate: NumberConstructor;
449
- spin: BooleanConstructor;
450
- }>> & Readonly<{
451
- onClick?: ((ev: MouseEvent) => any) | undefined;
452
- }>, {
453
- cls: import("vue").ComputedRef<(string | {
454
- [x: string]: boolean;
455
- })[]>;
456
- innerStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
457
- svgAttrs: import("vue").ComputedRef<Record<string, string | number>>;
458
- onClick: (ev: MouseEvent) => void;
459
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
460
- click: (ev: MouseEvent) => true;
461
- }, string, {
462
- spin: boolean;
463
- strokeWidth: number;
464
- strokeLinecap: string;
465
- strokeLinejoin: string;
466
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
467
- install: (app: App, options?: import("../_utils/types").SDIconOptions) => void;
468
- };
469
- IconLoading: {
470
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
471
- size: {
472
- type: (StringConstructor | NumberConstructor)[];
473
- };
474
- strokeWidth: {
475
- type: NumberConstructor;
476
- default: number;
477
- };
478
- strokeLinecap: {
479
- type: StringConstructor;
480
- default: string;
481
- validator: (value: any) => boolean;
482
- };
483
- strokeLinejoin: {
484
- type: StringConstructor;
485
- default: string;
486
- validator: (value: any) => boolean;
487
- };
488
- rotate: NumberConstructor;
489
- spin: BooleanConstructor;
490
- }>> & Readonly<{
491
- onClick?: ((ev: MouseEvent) => any) | undefined;
492
- }>, {
493
- cls: import("vue").ComputedRef<(string | {
494
- [x: string]: boolean;
495
- })[]>;
496
- innerStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
497
- svgAttrs: import("vue").ComputedRef<Record<string, string | number>>;
498
- onClick: (ev: MouseEvent) => void;
499
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
500
- click: (ev: MouseEvent) => true;
501
- }, import("vue").PublicProps, {
502
- spin: boolean;
503
- strokeWidth: number;
504
- strokeLinecap: string;
505
- strokeLinejoin: string;
506
- }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
507
- P: {};
508
- B: {};
509
- D: {};
510
- C: {};
511
- M: {};
512
- Defaults: {};
513
- }, Readonly<import("vue").ExtractPropTypes<{
514
- size: {
515
- type: (StringConstructor | NumberConstructor)[];
516
- };
517
- strokeWidth: {
518
- type: NumberConstructor;
519
- default: number;
520
- };
521
- strokeLinecap: {
522
- type: StringConstructor;
523
- default: string;
524
- validator: (value: any) => boolean;
525
- };
526
- strokeLinejoin: {
527
- type: StringConstructor;
528
- default: string;
529
- validator: (value: any) => boolean;
530
- };
531
- rotate: NumberConstructor;
532
- spin: BooleanConstructor;
533
- }>> & Readonly<{
534
- onClick?: ((ev: MouseEvent) => any) | undefined;
535
- }>, {
536
- cls: import("vue").ComputedRef<(string | {
537
- [x: string]: boolean;
538
- })[]>;
539
- innerStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
540
- svgAttrs: import("vue").ComputedRef<Record<string, string | number>>;
541
- onClick: (ev: MouseEvent) => void;
542
- }, {}, {}, {}, {
543
- spin: boolean;
544
- strokeWidth: number;
545
- strokeLinecap: string;
546
- strokeLinejoin: string;
547
- }>;
548
- __isFragment?: never;
549
- __isTeleport?: never;
550
- __isSuspense?: never;
551
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
552
- size: {
553
- type: (StringConstructor | NumberConstructor)[];
554
- };
555
- strokeWidth: {
556
- type: NumberConstructor;
557
- default: number;
558
- };
559
- strokeLinecap: {
560
- type: StringConstructor;
561
- default: string;
562
- validator: (value: any) => boolean;
563
- };
564
- strokeLinejoin: {
565
- type: StringConstructor;
566
- default: string;
567
- validator: (value: any) => boolean;
568
- };
569
- rotate: NumberConstructor;
570
- spin: BooleanConstructor;
571
- }>> & Readonly<{
572
- onClick?: ((ev: MouseEvent) => any) | undefined;
573
- }>, {
574
- cls: import("vue").ComputedRef<(string | {
575
- [x: string]: boolean;
576
- })[]>;
577
- innerStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
578
- svgAttrs: import("vue").ComputedRef<Record<string, string | number>>;
579
- onClick: (ev: MouseEvent) => void;
580
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
581
- click: (ev: MouseEvent) => true;
582
- }, string, {
583
- spin: boolean;
584
- strokeWidth: number;
585
- strokeLinecap: string;
586
- strokeLinejoin: string;
587
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
588
- install: (app: App, options?: import("../_utils/types").SDIconOptions) => void;
52
+ ellipsis: boolean;
53
+ ellipsisLineClamp: number | string;
54
+ ellipsisExpandTrigger: "click";
55
+ ellipsisTooltip: boolean | import("..").EllipsisTooltipProps;
56
+ iconTooltip: string;
57
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
58
+ $slots: {
59
+ icon?: (props: {}) => any;
60
+ } & {
61
+ icon?: (props: {}) => any;
62
+ } & {
63
+ default?: (props: {}) => any;
64
+ } & {
65
+ tooltip?: (props: {}) => any;
66
+ } & {
67
+ default?: (props: {}) => any;
589
68
  };
590
- } & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
69
+ }) & {
591
70
  install: (app: App, options?: SDOptions) => void;
592
71
  };
593
72
  export type LinkInstance = InstanceType<typeof _Link>;
73
+ export type { LinkProps };
594
74
  export default Link;
@@ -0,0 +1,15 @@
1
+ import type { Status } from '../_utils/constant';
2
+ import type { EllipsisTooltipProps } from '../ellipsis';
3
+ export interface LinkProps {
4
+ href?: string;
5
+ status?: Status;
6
+ hoverable?: boolean;
7
+ icon?: boolean;
8
+ ellipsis?: boolean;
9
+ ellipsisLineClamp?: number | string;
10
+ ellipsisExpandTrigger?: 'click';
11
+ ellipsisTooltip?: boolean | EllipsisTooltipProps;
12
+ iconTooltip?: string;
13
+ loading?: boolean;
14
+ disabled?: boolean;
15
+ }
package/es/link/link.js CHANGED
@@ -1,20 +1,5 @@
1
- import _plugin_vue_export_helper_default from "../_virtual/_plugin-vue_export-helper.js";
2
- import link_vue_vue_type_script_lang_default from "./link.vue_vue_type_script_lang.js";
3
- import { createBlock, createCommentVNode, createElementBlock, createVNode, normalizeClass, openBlock, renderSlot, resolveComponent } from "vue";
1
+ import link_vue_vue_type_script_setup_true_lang_default from "./link.vue_vue_type_script_setup_true_lang.js";
4
2
  //#region components/link/link.vue
5
- var _hoisted_1 = ["href"];
6
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
7
- const _component_icon_loading = resolveComponent("icon-loading");
8
- const _component_icon_link = resolveComponent("icon-link");
9
- return openBlock(), createElementBlock("a", {
10
- href: _ctx.disabled ? void 0 : _ctx.href,
11
- class: normalizeClass(_ctx.cls),
12
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
13
- }, [_ctx.loading || _ctx.showIcon ? (openBlock(), createElementBlock("span", {
14
- key: 0,
15
- class: normalizeClass(`${_ctx.prefixCls}-icon`)
16
- }, [_ctx.loading ? (openBlock(), createBlock(_component_icon_loading, { key: 0 })) : renderSlot(_ctx.$slots, "icon", { key: 1 }, () => [createVNode(_component_icon_link)])], 2)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default")], 10, _hoisted_1);
17
- }
18
- var link_default = /* @__PURE__ */ _plugin_vue_export_helper_default(link_vue_vue_type_script_lang_default, [["render", _sfc_render]]);
3
+ var link_default = link_vue_vue_type_script_setup_true_lang_default;
19
4
  //#endregion
20
5
  export { link_default as default };