kui-vue 5.2.2 → 5.3.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 (279) hide show
  1. package/dist/index.js +2 -2
  2. package/es/index.js +3385 -363
  3. package/es/locale/de.js +7 -1
  4. package/es/locale/el.js +7 -1
  5. package/es/locale/en.js +7 -1
  6. package/es/locale/fr.js +7 -1
  7. package/es/locale/it.js +7 -1
  8. package/es/locale/ja.js +7 -1
  9. package/es/locale/ko.js +7 -1
  10. package/es/locale/ru.js +7 -1
  11. package/es/locale/th.js +7 -1
  12. package/es/locale/uk.js +7 -1
  13. package/es/locale/vi.js +7 -1
  14. package/es/locale/zh-CN.js +7 -1
  15. package/es/locale/zh-TW.js +7 -1
  16. package/lib/index.js +2 -2
  17. package/lib/locale/de.js +2 -2
  18. package/lib/locale/el.js +2 -2
  19. package/lib/locale/en.js +2 -2
  20. package/lib/locale/fr.js +2 -2
  21. package/lib/locale/it.js +2 -2
  22. package/lib/locale/ja.js +2 -2
  23. package/lib/locale/ko.js +2 -2
  24. package/lib/locale/ru.js +2 -2
  25. package/lib/locale/th.js +2 -2
  26. package/lib/locale/uk.js +2 -2
  27. package/lib/locale/vi.js +2 -2
  28. package/lib/locale/zh-CN.js +2 -2
  29. package/lib/locale/zh-TW.js +2 -2
  30. package/package.json +20 -19
  31. package/style/index.css +2 -2
  32. package/types/avatar/avatar-group.d.ts +1 -1
  33. package/types/badge/index.d.ts +4 -4
  34. package/types/color-picker/index.d.ts +1 -1
  35. package/types/components.d.ts +6 -2
  36. package/types/date-picker/index.d.ts +1 -1
  37. package/types/descriptions/descriptions-item.d.ts +1 -1
  38. package/types/descriptions/descriptions.d.ts +1 -1
  39. package/types/divider/index.d.ts +1 -1
  40. package/types/drawer/index.d.ts +1 -1
  41. package/types/dropdown/dropdown-button.d.ts +1 -1
  42. package/types/dropdown/dropdown.d.ts +1 -1
  43. package/types/empty/index.d.ts +1 -1
  44. package/types/flex/index.d.ts +1 -1
  45. package/types/global.d.ts +8 -4
  46. package/types/input/input-box.d.ts +1 -1
  47. package/types/input/input-group.d.ts +1 -1
  48. package/types/input/input.d.ts +3 -3
  49. package/types/input/textarea.d.ts +2 -2
  50. package/types/input-number/index.d.ts +1 -1
  51. package/types/layout/index.d.ts +2 -2
  52. package/types/loading/index.d.ts +1 -1
  53. package/types/locale/de.d.ts +6 -0
  54. package/types/locale/el.d.ts +6 -0
  55. package/types/locale/en.d.ts +6 -0
  56. package/types/locale/fr.d.ts +6 -0
  57. package/types/locale/it.d.ts +6 -0
  58. package/types/locale/ja.d.ts +6 -0
  59. package/types/locale/ko.d.ts +6 -0
  60. package/types/locale/ru.d.ts +6 -0
  61. package/types/locale/th.d.ts +6 -0
  62. package/types/locale/uk.d.ts +6 -0
  63. package/types/locale/vi.d.ts +6 -0
  64. package/types/locale/zh-CN.d.ts +6 -0
  65. package/types/locale/zh-TW.d.ts +6 -0
  66. package/types/menu/menu-group.d.ts +1 -1
  67. package/types/menu/menu-item.d.ts +1 -1
  68. package/types/menu/menu.d.ts +1 -1
  69. package/types/menu/sub-menu.d.ts +1 -1
  70. package/types/modal/modal.d.ts +27 -7
  71. package/types/page/index.d.ts +1 -1
  72. package/types/popconfirm/index.d.ts +1 -1
  73. package/types/poptip/index.d.ts +1 -1
  74. package/types/progress/index.d.ts +1 -1
  75. package/types/qrcode/index.d.ts +165 -0
  76. package/types/radio/radio-button.d.ts +1 -1
  77. package/types/radio/radio-group.d.ts +1 -1
  78. package/types/radio/radio.d.ts +1 -1
  79. package/types/rate/index.d.ts +1 -1
  80. package/types/rate/star.d.ts +1 -1
  81. package/types/row-col/col.d.ts +1 -1
  82. package/types/row-col/row.d.ts +1 -1
  83. package/types/select/option.d.ts +1 -1
  84. package/types/select/select.d.ts +1 -1
  85. package/types/slider/index.d.ts +1 -1
  86. package/types/space/index.d.ts +1 -1
  87. package/types/spin/index.d.ts +1 -1
  88. package/types/stat-card/stat-card.d.ts +1 -1
  89. package/types/stat-card/stat-number.d.ts +1 -1
  90. package/types/switch/index.d.ts +1 -1
  91. package/types/table/index.d.ts +2 -2
  92. package/types/tabs/tab-panel.d.ts +1 -1
  93. package/types/tabs/tabs.d.ts +1 -4
  94. package/types/tag/index.d.ts +1 -1
  95. package/types/time-line/timeline-item.d.ts +1 -1
  96. package/types/time-line/timeline.d.ts +1 -1
  97. package/types/tooltip/index.d.ts +1 -1
  98. package/types/tree/index.d.ts +1 -1
  99. package/types/tree-select/index.d.ts +1 -1
  100. package/types/upload/file-list.d.ts +1 -1
  101. package/types/upload/index.d.ts +1 -1
  102. package/types/upload/selector.d.ts +1 -1
  103. package/types/utils/share.d.ts +12 -0
  104. package/types/watermark/index.d.ts +197 -0
  105. package/vetur/attributes.json +149 -37
  106. package/vetur/tags.json +52 -18
  107. package/vetur/web-types.json +282 -68
  108. package/es/affix/index.d.ts +0 -49
  109. package/es/alert/index.d.ts +0 -61
  110. package/es/anchor/anchor-link.d.ts +0 -23
  111. package/es/anchor/anchor.d.ts +0 -67
  112. package/es/anchor/index.d.ts +0 -5
  113. package/es/avatar/avatar-group.d.ts +0 -39
  114. package/es/avatar/avatar.d.ts +0 -43
  115. package/es/avatar/index.d.ts +0 -5
  116. package/es/back-top/index.d.ts +0 -46
  117. package/es/badge/index.d.ts +0 -49
  118. package/es/base/transition.d.ts +0 -3
  119. package/es/breadcrumb/breadcrumb-item.d.ts +0 -15
  120. package/es/breadcrumb/breadcrumb.d.ts +0 -22
  121. package/es/breadcrumb/index.d.ts +0 -5
  122. package/es/button/button-group.d.ts +0 -21
  123. package/es/button/button.d.ts +0 -39
  124. package/es/button/index.d.ts +0 -5
  125. package/es/card/index.d.ts +0 -30
  126. package/es/carousel/carousel-item.d.ts +0 -2
  127. package/es/carousel/carousel.d.ts +0 -84
  128. package/es/carousel/index.d.ts +0 -4
  129. package/es/checkbox/checkbox-group.d.ts +0 -79
  130. package/es/checkbox/checkbox.d.ts +0 -105
  131. package/es/checkbox/index.d.ts +0 -6
  132. package/es/collapse/collapse-panel.d.ts +0 -15
  133. package/es/collapse/collapse.d.ts +0 -32
  134. package/es/collapse/index.d.ts +0 -6
  135. package/es/color-picker/alpha.d.ts +0 -15
  136. package/es/color-picker/hue.d.ts +0 -17
  137. package/es/color-picker/index.d.ts +0 -110
  138. package/es/color-picker/mode.d.ts +0 -25
  139. package/es/color-picker/paint.d.ts +0 -26
  140. package/es/color-picker/presets.d.ts +0 -20
  141. package/es/components.d.ts +0 -113
  142. package/es/config/context.d.ts +0 -10
  143. package/es/config/index.d.ts +0 -16
  144. package/es/const/types.d.ts +0 -19
  145. package/es/const/var.d.ts +0 -1
  146. package/es/date-picker/index.d.ts +0 -277
  147. package/es/descriptions/descriptions-item.d.ts +0 -35
  148. package/es/descriptions/descriptions.d.ts +0 -54
  149. package/es/descriptions/index.d.ts +0 -4
  150. package/es/directives/outsiteclick.d.ts +0 -2
  151. package/es/directives/resize.d.ts +0 -3
  152. package/es/directives/scroll.d.ts +0 -2
  153. package/es/directives/transfer.d.ts +0 -2
  154. package/es/divider/index.d.ts +0 -42
  155. package/es/drawer/index.d.ts +0 -177
  156. package/es/dropdown/dropdown-button.d.ts +0 -45
  157. package/es/dropdown/dropdown.d.ts +0 -72
  158. package/es/dropdown/index.d.ts +0 -4
  159. package/es/dropdown/trigger.d.ts +0 -11
  160. package/es/empty/index.d.ts +0 -9
  161. package/es/flex/index.d.ts +0 -45
  162. package/es/form/form-item.d.ts +0 -24
  163. package/es/form/form.d.ts +0 -92
  164. package/es/form/index.d.ts +0 -6
  165. package/es/form/types.d.ts +0 -14
  166. package/es/grid/grid-item.d.ts +0 -22
  167. package/es/grid/grid.d.ts +0 -39
  168. package/es/grid/index.d.ts +0 -5
  169. package/es/grid/useBreakpoint.d.ts +0 -3
  170. package/es/icon/demo/search.d.ts +0 -2
  171. package/es/icon/demo/tags.d.ts +0 -4
  172. package/es/icon/index.d.ts +0 -45
  173. package/es/image/group.d.ts +0 -11
  174. package/es/image/image.d.ts +0 -45
  175. package/es/image/index.d.ts +0 -5
  176. package/es/image/instance.d.ts +0 -2
  177. package/es/image/preview.d.ts +0 -36
  178. package/es/image/utils.d.ts +0 -6
  179. package/es/index.d.ts +0 -10
  180. package/es/input/index.d.ts +0 -8
  181. package/es/input/input-box.d.ts +0 -39
  182. package/es/input/input-group.d.ts +0 -58
  183. package/es/input/input.d.ts +0 -56
  184. package/es/input/textarea.d.ts +0 -25
  185. package/es/input-number/index.d.ts +0 -127
  186. package/es/layout/index.d.ts +0 -136
  187. package/es/loading/index.d.ts +0 -16
  188. package/es/locale/de.d.ts +0 -59
  189. package/es/locale/el.d.ts +0 -59
  190. package/es/locale/en.d.ts +0 -59
  191. package/es/locale/fr.d.ts +0 -59
  192. package/es/locale/it.d.ts +0 -59
  193. package/es/locale/ja.d.ts +0 -59
  194. package/es/locale/ko.d.ts +0 -59
  195. package/es/locale/ru.d.ts +0 -59
  196. package/es/locale/th.d.ts +0 -59
  197. package/es/locale/uk.d.ts +0 -59
  198. package/es/locale/vi.d.ts +0 -59
  199. package/es/locale/zh-CN.d.ts +0 -59
  200. package/es/locale/zh-TW.d.ts +0 -59
  201. package/es/menu/index.d.ts +0 -7
  202. package/es/menu/menu-divider.d.ts +0 -2
  203. package/es/menu/menu-group.d.ts +0 -20
  204. package/es/menu/menu-item.d.ts +0 -22
  205. package/es/menu/menu.d.ts +0 -92
  206. package/es/menu/recursive-menu.d.ts +0 -17
  207. package/es/menu/sub-menu.d.ts +0 -24
  208. package/es/message/index.d.ts +0 -23
  209. package/es/modal/index.d.ts +0 -26
  210. package/es/modal/modal.d.ts +0 -176
  211. package/es/modal/toast.d.ts +0 -32
  212. package/es/notice/container.d.ts +0 -6
  213. package/es/notice/content.d.ts +0 -54
  214. package/es/notice/index.d.ts +0 -23
  215. package/es/notice/instance.d.ts +0 -8
  216. package/es/page/index.d.ts +0 -115
  217. package/es/popconfirm/index.d.ts +0 -75
  218. package/es/poptip/index.d.ts +0 -66
  219. package/es/progress/index.d.ts +0 -125
  220. package/es/radio/index.d.ts +0 -7
  221. package/es/radio/radio-button.d.ts +0 -76
  222. package/es/radio/radio-group.d.ts +0 -77
  223. package/es/radio/radio.d.ts +0 -73
  224. package/es/radio/types.d.ts +0 -5
  225. package/es/rate/index.d.ts +0 -99
  226. package/es/rate/star.d.ts +0 -65
  227. package/es/row-col/col.d.ts +0 -17
  228. package/es/row-col/index.d.ts +0 -5
  229. package/es/row-col/row.d.ts +0 -43
  230. package/es/select/index.d.ts +0 -5
  231. package/es/select/option.d.ts +0 -23
  232. package/es/select/select.d.ts +0 -150
  233. package/es/skeleton/index.d.ts +0 -7
  234. package/es/skeleton/skeleton-avatar.d.ts +0 -58
  235. package/es/skeleton/skeleton-button.d.ts +0 -58
  236. package/es/skeleton/skeleton-image.d.ts +0 -58
  237. package/es/skeleton/skeleton-text.d.ts +0 -58
  238. package/es/skeleton/skeleton.d.ts +0 -61
  239. package/es/skeleton/types.d.ts +0 -29
  240. package/es/slider/index.d.ts +0 -112
  241. package/es/slider/thumb.d.ts +0 -58
  242. package/es/space/index.d.ts +0 -50
  243. package/es/spin/index.d.ts +0 -58
  244. package/es/splitter/index.d.ts +0 -4
  245. package/es/splitter/splitter-panel.d.ts +0 -35
  246. package/es/splitter/splitter.d.ts +0 -32
  247. package/es/stat-card/countup.d.ts +0 -56
  248. package/es/stat-card/index.d.ts +0 -5
  249. package/es/stat-card/rollup.d.ts +0 -32
  250. package/es/stat-card/stat-card.d.ts +0 -72
  251. package/es/stat-card/stat-number.d.ts +0 -100
  252. package/es/stat-card/utils/countup.d.ts +0 -127
  253. package/es/stat-card/utils/odometer.d.ts +0 -13
  254. package/es/switch/index.d.ts +0 -72
  255. package/es/table/index.d.ts +0 -185
  256. package/es/tabs/index.d.ts +0 -5
  257. package/es/tabs/tab-panel.d.ts +0 -22
  258. package/es/tabs/tabs.d.ts +0 -44
  259. package/es/tabs/types.d.ts +0 -16
  260. package/es/tag/index.d.ts +0 -57
  261. package/es/time-line/index.d.ts +0 -5
  262. package/es/time-line/timeline-item.d.ts +0 -20
  263. package/es/time-line/timeline.d.ts +0 -26
  264. package/es/tooltip/index.d.ts +0 -42
  265. package/es/tree/index.d.ts +0 -179
  266. package/es/tree/utils.d.ts +0 -32
  267. package/es/tree-select/index.d.ts +0 -224
  268. package/es/upload/file-list.d.ts +0 -59
  269. package/es/upload/index.d.ts +0 -190
  270. package/es/upload/selector.d.ts +0 -73
  271. package/es/utils/checked.d.ts +0 -2
  272. package/es/utils/color.d.ts +0 -1
  273. package/es/utils/element.d.ts +0 -4
  274. package/es/utils/mouse.d.ts +0 -1
  275. package/es/utils/number.d.ts +0 -6
  276. package/es/utils/placement.d.ts +0 -16
  277. package/es/utils/theme.d.ts +0 -5
  278. package/es/utils/vnode.d.ts +0 -5
  279. package/es/utils/vue.d.ts +0 -5
@@ -0,0 +1,165 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { BooleanType } from '../const/types';
3
+ export type QRCodeStatus = "active" | "loading" | "expired" | "scanned";
4
+ export type QRCodeErrorLevel = "L" | "M" | "Q" | "H";
5
+ declare const qrCodeProps: {
6
+ value: {
7
+ type: StringConstructor;
8
+ required: boolean;
9
+ };
10
+ size: {
11
+ type: NumberConstructor;
12
+ default: number;
13
+ };
14
+ colorDark: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ colorLight: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ bordered: {
23
+ type: BooleanType;
24
+ default: boolean;
25
+ };
26
+ status: {
27
+ type: PropType<QRCodeStatus>;
28
+ default: string;
29
+ };
30
+ logo: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ logoSize: {
35
+ type: NumberConstructor;
36
+ };
37
+ margin: {
38
+ type: NumberConstructor;
39
+ default: number;
40
+ };
41
+ logoRadius: {
42
+ type: NumberConstructor;
43
+ default: number;
44
+ };
45
+ logoBorder: {
46
+ type: BooleanType;
47
+ default: boolean;
48
+ };
49
+ errorLevel: {
50
+ type: PropType<QRCodeErrorLevel>;
51
+ default: string;
52
+ };
53
+ };
54
+ export type QRCodeProps = ExtractPropTypes<typeof qrCodeProps>;
55
+ declare const QRCode: import('vue').DefineComponent<ExtractPropTypes<{
56
+ value: {
57
+ type: StringConstructor;
58
+ required: boolean;
59
+ };
60
+ size: {
61
+ type: NumberConstructor;
62
+ default: number;
63
+ };
64
+ colorDark: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ };
68
+ colorLight: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
72
+ bordered: {
73
+ type: BooleanType;
74
+ default: boolean;
75
+ };
76
+ status: {
77
+ type: PropType<QRCodeStatus>;
78
+ default: string;
79
+ };
80
+ logo: {
81
+ type: StringConstructor;
82
+ default: string;
83
+ };
84
+ logoSize: {
85
+ type: NumberConstructor;
86
+ };
87
+ margin: {
88
+ type: NumberConstructor;
89
+ default: number;
90
+ };
91
+ logoRadius: {
92
+ type: NumberConstructor;
93
+ default: number;
94
+ };
95
+ logoBorder: {
96
+ type: BooleanType;
97
+ default: boolean;
98
+ };
99
+ errorLevel: {
100
+ type: PropType<QRCodeErrorLevel>;
101
+ default: string;
102
+ };
103
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "refresh"[], "refresh", import('vue').PublicProps, Readonly<ExtractPropTypes<{
104
+ value: {
105
+ type: StringConstructor;
106
+ required: boolean;
107
+ };
108
+ size: {
109
+ type: NumberConstructor;
110
+ default: number;
111
+ };
112
+ colorDark: {
113
+ type: StringConstructor;
114
+ default: string;
115
+ };
116
+ colorLight: {
117
+ type: StringConstructor;
118
+ default: string;
119
+ };
120
+ bordered: {
121
+ type: BooleanType;
122
+ default: boolean;
123
+ };
124
+ status: {
125
+ type: PropType<QRCodeStatus>;
126
+ default: string;
127
+ };
128
+ logo: {
129
+ type: StringConstructor;
130
+ default: string;
131
+ };
132
+ logoSize: {
133
+ type: NumberConstructor;
134
+ };
135
+ margin: {
136
+ type: NumberConstructor;
137
+ default: number;
138
+ };
139
+ logoRadius: {
140
+ type: NumberConstructor;
141
+ default: number;
142
+ };
143
+ logoBorder: {
144
+ type: BooleanType;
145
+ default: boolean;
146
+ };
147
+ errorLevel: {
148
+ type: PropType<QRCodeErrorLevel>;
149
+ default: string;
150
+ };
151
+ }>> & Readonly<{
152
+ onRefresh?: ((...args: any[]) => any) | undefined;
153
+ }>, {
154
+ margin: number;
155
+ size: number;
156
+ bordered: boolean | undefined;
157
+ status: QRCodeStatus;
158
+ colorDark: string;
159
+ colorLight: string;
160
+ logo: string;
161
+ logoRadius: number;
162
+ logoBorder: boolean | undefined;
163
+ errorLevel: QRCodeErrorLevel;
164
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
165
+ export default QRCode;
@@ -2,7 +2,7 @@ import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { BooleanType, ShapeType, SizeType } from '../const/types';
3
3
  import { IconType } from '../icon';
4
4
  import { ChangeEvent } from './types';
5
- export declare const radioButtonProps: {
5
+ declare const radioButtonProps: {
6
6
  modelValue: {
7
7
  type: BooleanConstructor[];
8
8
  default: boolean;
@@ -8,7 +8,7 @@ export interface RadioOption {
8
8
  icon?: IconType[];
9
9
  [key: string]: any;
10
10
  }
11
- export declare const radioGroupProps: {
11
+ declare const radioGroupProps: {
12
12
  modelValue: {
13
13
  type: (NumberConstructor | StringConstructor)[];
14
14
  default: string;
@@ -1,7 +1,7 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { BooleanType, SizeType, ThemeType } from '../const/types';
3
3
  import { ChangeEvent } from './types';
4
- export declare const radioProps: {
4
+ declare const radioProps: {
5
5
  modelValue: {
6
6
  type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
7
7
  default: boolean;
@@ -1,7 +1,7 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { BooleanType, SizeType } from '../const/types';
3
3
  import { IconType } from '../icon';
4
- export declare const rateProps: {
4
+ declare const rateProps: {
5
5
  modelValue: {
6
6
  type: NumberConstructor;
7
7
  default: number;
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { BooleanType } from '../const/types';
3
- export declare const starProps: {
3
+ declare const starProps: {
4
4
  character: PropType<string | ((index: number) => any)>;
5
5
  tooltips: StringConstructor;
6
6
  percent: NumberConstructor;
@@ -1,5 +1,5 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
- export declare const colProps: {
2
+ declare const colProps: {
3
3
  span: NumberConstructor;
4
4
  offset: NumberConstructor;
5
5
  flex: (NumberConstructor | StringConstructor)[];
@@ -1,5 +1,5 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
- export declare const rowProps: {
2
+ declare const rowProps: {
3
3
  gutter: PropType<number | [number, number]>;
4
4
  type: {
5
5
  type: StringConstructor;
@@ -4,7 +4,7 @@ export type OptionSelectEvent = {
4
4
  value: string | number;
5
5
  label: string | number;
6
6
  };
7
- export declare const optionProps: {
7
+ declare const optionProps: {
8
8
  value: {
9
9
  type: PropType<string | number>;
10
10
  required: boolean;
@@ -6,7 +6,7 @@ export interface SelectOption {
6
6
  value: string | number;
7
7
  disabled?: boolean;
8
8
  }
9
- export declare const selectProps: {
9
+ declare const selectProps: {
10
10
  placeholder: StringConstructor;
11
11
  size: {
12
12
  type: PropType<SizeType>;
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { BooleanType } from '../const/types';
3
- export declare const sliderProps: {
3
+ declare const sliderProps: {
4
4
  modelValue: {
5
5
  type: PropType<number[] | number>;
6
6
  default: number;
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { BooleanType, SizeType } from '../const/types';
3
- export declare const spaceProps: {
3
+ declare const spaceProps: {
4
4
  align: {
5
5
  type: PropType<"start" | "end" | "center" | "baseline">;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { SizeType, SpinModeType } from '../const/types.ts';
3
- export declare const spinProps: {
3
+ declare const spinProps: {
4
4
  modelValue: {
5
5
  type: BooleanConstructor;
6
6
  default: boolean;
@@ -11,7 +11,7 @@ export interface StatNumberItem {
11
11
  autoAnimate?: boolean;
12
12
  autoAnimateOnce?: boolean;
13
13
  }
14
- export declare const statCardProps: {
14
+ declare const statCardProps: {
15
15
  title: StringConstructor;
16
16
  precision: {
17
17
  type: NumberConstructor;
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { BooleanType } from '../const/types';
3
- export declare const statNumberProps: {
3
+ declare const statNumberProps: {
4
4
  modelValue: {
5
5
  type: NumberConstructor[];
6
6
  required: boolean;
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { BooleanType, SizeType, ValueType } from '../const/types';
3
- export declare const switchProps: {
3
+ declare const switchProps: {
4
4
  checked: {
5
5
  type: BooleanType;
6
6
  default: boolean;
@@ -6,12 +6,12 @@ export interface Column {
6
6
  width?: number;
7
7
  fixed?: "left" | "right";
8
8
  sorter?: boolean | ((state: SortState) => void);
9
- render?: (h: any, record: any, colIndex: number) => void;
9
+ render?: (h: any, record: any, colIndex: number, rowIndex: number, col: Column) => void;
10
10
  colSpan?: number | ((record: any, index: number) => number);
11
11
  rowSpan?: number | ((record: any, index: number) => number);
12
12
  children?: Column[];
13
13
  }
14
- export declare const tableProps: {
14
+ declare const tableProps: {
15
15
  data: {
16
16
  type: ArrayConstructor;
17
17
  default: () => never[];
@@ -1,7 +1,7 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { BooleanType } from '../const/types';
3
3
  import { IconType } from '../icon';
4
- export declare const tabPanelProps: {
4
+ declare const tabPanelProps: {
5
5
  title: StringConstructor;
6
6
  icon: PropType<IconType[]>;
7
7
  disabled: BooleanType;
@@ -1,8 +1,7 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { BooleanType } from '../const/types';
3
- export declare const tabsProps: {
3
+ declare const tabsProps: {
4
4
  modelValue: (NumberConstructor | StringConstructor)[];
5
- value: (NumberConstructor | StringConstructor)[];
6
5
  card: BooleanType;
7
6
  sample: BooleanType;
8
7
  centered: BooleanType;
@@ -17,7 +16,6 @@ export declare const tabsProps: {
17
16
  export type TabsProps = ExtractPropTypes<typeof tabsProps>;
18
17
  declare const Tabs: import('vue').DefineComponent<ExtractPropTypes<{
19
18
  modelValue: (NumberConstructor | StringConstructor)[];
20
- value: (NumberConstructor | StringConstructor)[];
21
19
  card: BooleanType;
22
20
  sample: BooleanType;
23
21
  centered: BooleanType;
@@ -30,7 +28,6 @@ declare const Tabs: import('vue').DefineComponent<ExtractPropTypes<{
30
28
  onRemove: PropType<(key: string) => void>;
31
29
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
32
30
  modelValue: (NumberConstructor | StringConstructor)[];
33
- value: (NumberConstructor | StringConstructor)[];
34
31
  card: BooleanType;
35
32
  sample: BooleanType;
36
33
  centered: BooleanType;
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { BooleanType, ColorType, ShapeType, SizeType, ThemeType } from '../const/types';
3
- export declare const tagProps: {
3
+ declare const tagProps: {
4
4
  closeable: BooleanType;
5
5
  color: ColorType;
6
6
  shape: PropType<ShapeType>;
@@ -1,5 +1,5 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
- export declare const timelineItemProps: {
2
+ declare const timelineItemProps: {
3
3
  color: StringConstructor;
4
4
  icon: PropType<any>;
5
5
  time: StringConstructor;
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  export type TimelineMode = "left" | "right" | "center" | "alternate";
3
- export declare const timelineProps: {
3
+ declare const timelineProps: {
4
4
  mode: {
5
5
  type: PropType<TimelineMode>;
6
6
  default: string;
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes, PropType, VNode } from 'vue';
2
2
  import { BooleanType, PlacementsType } from '../const/types';
3
- export declare const tooltipProps: {
3
+ declare const tooltipProps: {
4
4
  show: BooleanType;
5
5
  title: PropType<any>;
6
6
  color: StringConstructor;
@@ -6,7 +6,7 @@ export interface TreeExpandEvent {
6
6
  expanded: boolean;
7
7
  node: TreeNode;
8
8
  }
9
- export declare const treeProps: {
9
+ declare const treeProps: {
10
10
  data: PropType<TreeNode[]>;
11
11
  selectedKeys: PropType<string[]>;
12
12
  expandedKeys: PropType<string[]>;
@@ -4,7 +4,7 @@ import { IconType } from '../icon';
4
4
  import { TreeExpandEvent } from '../tree';
5
5
  import { TreeNode } from '../tree/utils';
6
6
  type TreeSelectValue = string | string[] | null | undefined;
7
- export declare const treeSelectProps: {
7
+ declare const treeSelectProps: {
8
8
  placeholder: StringConstructor;
9
9
  size: {
10
10
  type: PropType<SizeType>;
@@ -1,7 +1,7 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { BooleanType } from '../const/types';
3
3
  import { UploadFile } from './index';
4
- export declare const uploadFileListProps: {
4
+ declare const uploadFileListProps: {
5
5
  showUploadList: {
6
6
  type: BooleanType;
7
7
  default: boolean;
@@ -13,7 +13,7 @@ export interface UploadFile {
13
13
  errorText?: string;
14
14
  xhr?: XMLHttpRequest;
15
15
  }
16
- export declare const uploadProps: {
16
+ declare const uploadProps: {
17
17
  method: {
18
18
  type: StringConstructor;
19
19
  default: string;
@@ -1,7 +1,7 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { BooleanType } from '../const/types';
3
3
  import { UploadFile } from './index';
4
- export declare const selectorProps: {
4
+ declare const selectorProps: {
5
5
  disabled: BooleanType;
6
6
  name: {
7
7
  type: StringConstructor;
@@ -0,0 +1,12 @@
1
+ export declare const isClient: boolean;
2
+ export declare const isDef: <T = any>(val?: T) => val is T;
3
+ export declare const notNullish: <T = any>(val?: T | null | undefined) => val is T;
4
+ export declare const assert: (condition: boolean, ...infos: any[]) => void;
5
+ export declare const isObject: (val: any) => val is object;
6
+ export declare const now: () => number;
7
+ export declare const timestamp: () => number;
8
+ export declare const clamp: (n: number, min: number, max: number) => number;
9
+ export declare const noop: () => void;
10
+ export declare const rand: (min: number, max: number) => number;
11
+ export declare const hasOwn: <T extends object, K extends keyof T>(val: T, key: K) => key is K;
12
+ export declare function copyToClipboard(text: string): Promise<boolean>;
@@ -0,0 +1,197 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { BooleanType } from '../const/types';
3
+ export interface Font {
4
+ color?: string;
5
+ fontSize?: number;
6
+ fontWeight?: string | number;
7
+ fontFamily?: string;
8
+ fontStyle?: "normal" | "italic" | "oblique";
9
+ }
10
+ export interface WatermarkTextItem extends Font {
11
+ text: string;
12
+ }
13
+ export type WatermarkLayoutType = "stagger" | "grid";
14
+ declare const watermarkProps: {
15
+ content: {
16
+ type: PropType<string | string[] | WatermarkTextItem[]>;
17
+ default: string;
18
+ };
19
+ image: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ width: {
24
+ type: NumberConstructor;
25
+ default: number;
26
+ };
27
+ height: {
28
+ type: NumberConstructor;
29
+ default: number;
30
+ };
31
+ rotate: {
32
+ type: NumberConstructor;
33
+ default: number;
34
+ };
35
+ zIndex: {
36
+ type: NumberConstructor;
37
+ default: number;
38
+ };
39
+ fullscreen: {
40
+ type: BooleanType;
41
+ default: boolean;
42
+ };
43
+ antiTamper: {
44
+ type: BooleanType;
45
+ default: boolean;
46
+ };
47
+ font: {
48
+ type: PropType<Font>;
49
+ default: () => {
50
+ color: string;
51
+ fontSize: number;
52
+ fontWeight: string;
53
+ fontFamily: string;
54
+ fontStyle: string;
55
+ };
56
+ };
57
+ gap: {
58
+ type: PropType<number[]>;
59
+ default: () => number[];
60
+ };
61
+ offset: {
62
+ type: PropType<number[]>;
63
+ default: () => number[];
64
+ };
65
+ layout: {
66
+ type: PropType<WatermarkLayoutType>;
67
+ default: string;
68
+ };
69
+ };
70
+ export type WatermarkProps = ExtractPropTypes<typeof watermarkProps>;
71
+ declare const Watermark: import('vue').DefineComponent<ExtractPropTypes<{
72
+ content: {
73
+ type: PropType<string | string[] | WatermarkTextItem[]>;
74
+ default: string;
75
+ };
76
+ image: {
77
+ type: StringConstructor;
78
+ default: string;
79
+ };
80
+ width: {
81
+ type: NumberConstructor;
82
+ default: number;
83
+ };
84
+ height: {
85
+ type: NumberConstructor;
86
+ default: number;
87
+ };
88
+ rotate: {
89
+ type: NumberConstructor;
90
+ default: number;
91
+ };
92
+ zIndex: {
93
+ type: NumberConstructor;
94
+ default: number;
95
+ };
96
+ fullscreen: {
97
+ type: BooleanType;
98
+ default: boolean;
99
+ };
100
+ antiTamper: {
101
+ type: BooleanType;
102
+ default: boolean;
103
+ };
104
+ font: {
105
+ type: PropType<Font>;
106
+ default: () => {
107
+ color: string;
108
+ fontSize: number;
109
+ fontWeight: string;
110
+ fontFamily: string;
111
+ fontStyle: string;
112
+ };
113
+ };
114
+ gap: {
115
+ type: PropType<number[]>;
116
+ default: () => number[];
117
+ };
118
+ offset: {
119
+ type: PropType<number[]>;
120
+ default: () => number[];
121
+ };
122
+ layout: {
123
+ type: PropType<WatermarkLayoutType>;
124
+ default: string;
125
+ };
126
+ }>, () => import("vue/jsx-runtime").JSX.Element | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
127
+ [key: string]: any;
128
+ }>[] | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
129
+ content: {
130
+ type: PropType<string | string[] | WatermarkTextItem[]>;
131
+ default: string;
132
+ };
133
+ image: {
134
+ type: StringConstructor;
135
+ default: string;
136
+ };
137
+ width: {
138
+ type: NumberConstructor;
139
+ default: number;
140
+ };
141
+ height: {
142
+ type: NumberConstructor;
143
+ default: number;
144
+ };
145
+ rotate: {
146
+ type: NumberConstructor;
147
+ default: number;
148
+ };
149
+ zIndex: {
150
+ type: NumberConstructor;
151
+ default: number;
152
+ };
153
+ fullscreen: {
154
+ type: BooleanType;
155
+ default: boolean;
156
+ };
157
+ antiTamper: {
158
+ type: BooleanType;
159
+ default: boolean;
160
+ };
161
+ font: {
162
+ type: PropType<Font>;
163
+ default: () => {
164
+ color: string;
165
+ fontSize: number;
166
+ fontWeight: string;
167
+ fontFamily: string;
168
+ fontStyle: string;
169
+ };
170
+ };
171
+ gap: {
172
+ type: PropType<number[]>;
173
+ default: () => number[];
174
+ };
175
+ offset: {
176
+ type: PropType<number[]>;
177
+ default: () => number[];
178
+ };
179
+ layout: {
180
+ type: PropType<WatermarkLayoutType>;
181
+ default: string;
182
+ };
183
+ }>> & Readonly<{}>, {
184
+ content: string | string[] | WatermarkTextItem[];
185
+ height: number;
186
+ rotate: number;
187
+ width: number;
188
+ zIndex: number;
189
+ font: Font;
190
+ gap: number[];
191
+ offset: number[];
192
+ image: string;
193
+ layout: WatermarkLayoutType;
194
+ fullscreen: boolean | undefined;
195
+ antiTamper: boolean | undefined;
196
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
197
+ export default Watermark;