yc-design-vue 1.8.6 → 1.8.7

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 (227) hide show
  1. package/es/Alert/index.d.ts +3 -3
  2. package/es/Alert/index.vue.d.ts +1 -1
  3. package/es/AutoComplete/index.d.ts +19 -19
  4. package/es/AutoComplete/index.vue.d.ts +33 -33
  5. package/es/Avatar/Avatar.vue.d.ts +2 -2
  6. package/es/Avatar/index.d.ts +5 -5
  7. package/es/Button/Button.vue.d.ts +3 -3
  8. package/es/Button/ButtonGroup.vue.d.ts +1 -1
  9. package/es/Button/index.d.ts +12 -12
  10. package/es/Calendar/Calendar.vue.js +2 -3
  11. package/es/Card/Card.vue.d.ts +1 -1
  12. package/es/Card/CardMeta.vue.d.ts +1 -1
  13. package/es/Card/index.d.ts +6 -6
  14. package/es/Cascader/Cascader.vue.d.ts +17 -17
  15. package/es/Cascader/index.d.ts +16 -16
  16. package/es/Checkbox/CheckboxGroup.vue.d.ts +1 -1
  17. package/es/Checkbox/index.d.ts +3 -3
  18. package/es/ColorPicker/ColorList.vue.js +3 -2
  19. package/es/ColorPicker/ColorPanel.vue.js +3 -2
  20. package/es/Divider/index.d.ts +3 -3
  21. package/es/Divider/index.vue.d.ts +1 -1
  22. package/es/Drawer/Drawer.vue.d.ts +4 -4
  23. package/es/Drawer/Drawer.vue.js +3 -2
  24. package/es/Drawer/DrawerService.vue.d.ts +2 -2
  25. package/es/Drawer/index.d.ts +11 -11
  26. package/es/Dropdown/DropdownButton.vue.d.ts +1 -1
  27. package/es/Dropdown/index.d.ts +3 -3
  28. package/es/Empty/index.vue.js +2 -1
  29. package/es/Image/Image.vue.d.ts +2 -2
  30. package/es/Image/Image.vue.js +2 -1
  31. package/es/Image/ImagePreviewToolbar.vue.js +9 -8
  32. package/es/Image/index.d.ts +6 -6
  33. package/es/Input/Input.vue.d.ts +3 -3
  34. package/es/Input/index.d.ts +9 -9
  35. package/es/InputNumber/InputNumber.vue.d.ts +18 -18
  36. package/es/InputNumber/index.d.ts +19 -19
  37. package/es/InputTag/index.d.ts +6 -6
  38. package/es/InputTag/index.vue.d.ts +2 -2
  39. package/es/Link/index.d.ts +3 -3
  40. package/es/Link/index.vue.d.ts +1 -1
  41. package/es/List/List.vue.d.ts +7 -7
  42. package/es/List/ListItemMeta.vue.d.ts +1 -1
  43. package/es/List/index.d.ts +9 -9
  44. package/es/Mention/index.d.ts +22 -22
  45. package/es/Mention/index.vue.d.ts +39 -39
  46. package/es/Message/Message.vue.d.ts +1 -1
  47. package/es/Message/index.d.ts +3 -3
  48. package/es/Modal/Modal.vue.d.ts +4 -4
  49. package/es/Modal/Modal.vue.js +3 -2
  50. package/es/Modal/ModalService.vue.d.ts +2 -2
  51. package/es/Modal/index.d.ts +11 -11
  52. package/es/Notification/Notification.vue.d.ts +1 -1
  53. package/es/Notification/index.d.ts +3 -3
  54. package/es/OverflowList/index.d.ts +3 -3
  55. package/es/OverflowList/index.vue.d.ts +1 -1
  56. package/es/Pagination/Pagination.vue.js +3 -2
  57. package/es/Pagination/hooks/useContext.d.ts +254 -3
  58. package/es/Pagination/hooks/useContext.js +1 -2
  59. package/es/Popconfirm/index.d.ts +19 -19
  60. package/es/Popconfirm/index.vue.d.ts +7 -7
  61. package/es/Popconfirm/index.vue.js +3 -2
  62. package/es/Progress/Progress.vue.d.ts +1 -1
  63. package/es/Progress/index.d.ts +3 -3
  64. package/es/Radio/Radio.vue.d.ts +1 -1
  65. package/es/Radio/RadioGroup.vue.d.ts +1 -1
  66. package/es/Radio/index.d.ts +6 -6
  67. package/es/Scrollbar/Scrollbar.vue.d.ts +1 -1
  68. package/es/Scrollbar/index.d.ts +3 -3
  69. package/es/Select/Select.vue.d.ts +13 -13
  70. package/es/Select/index.d.ts +14 -14
  71. package/es/Slider/Slider.vue.d.ts +3 -3
  72. package/es/Slider/index.d.ts +9 -9
  73. package/es/Space/index.d.ts +3 -3
  74. package/es/Space/index.vue.d.ts +1 -1
  75. package/es/Spin/index.d.ts +3 -3
  76. package/es/Spin/index.vue.d.ts +1 -1
  77. package/es/Split/index.d.ts +6 -6
  78. package/es/Split/index.vue.d.ts +2 -2
  79. package/es/Statistic/Countdown.vue.d.ts +2 -2
  80. package/es/Statistic/Statistic.vue.d.ts +2 -2
  81. package/es/Statistic/index.d.ts +12 -12
  82. package/es/Steps/Step.vue.d.ts +1 -1
  83. package/es/Steps/Steps.vue.d.ts +1 -1
  84. package/es/Steps/index.d.ts +6 -6
  85. package/es/Switch/index.d.ts +6 -6
  86. package/es/Switch/index.vue.d.ts +2 -2
  87. package/es/Tabs/Tabs.vue.d.ts +3 -3
  88. package/es/Tabs/index.d.ts +8 -8
  89. package/es/Tag/index.d.ts +3 -3
  90. package/es/Tag/index.vue.d.ts +1 -1
  91. package/es/Textarea/index.d.ts +6 -6
  92. package/es/Textarea/index.vue.d.ts +2 -2
  93. package/es/TimePicker/TimePicker.vue.d.ts +3 -3
  94. package/es/TimePicker/index.d.ts +9 -9
  95. package/es/Typography/TypographyBase.vue.d.ts +19 -19
  96. package/es/Typography/TypographyBase.vue.js +3 -2
  97. package/es/VerificationCode/index.d.ts +6 -6
  98. package/es/VerificationCode/index.vue.d.ts +2 -2
  99. package/es/_shared/icons/IconFullScreen.vue.js +17 -1
  100. package/es/_shared/icons/IconFullScreen.vue2.js +1 -17
  101. package/es/_shared/icons/IconOriginSize.vue.js +23 -1
  102. package/es/_shared/icons/IconOriginSize.vue2.js +1 -23
  103. package/es/_shared/icons/IconRotateLeft.vue.js +17 -1
  104. package/es/_shared/icons/IconRotateLeft.vue2.js +1 -17
  105. package/es/_shared/icons/IconRotateRight.vue.js +17 -1
  106. package/es/_shared/icons/IconRotateRight.vue2.js +1 -17
  107. package/es/_shared/icons/IconZoomIn.vue.js +17 -1
  108. package/es/_shared/icons/IconZoomIn.vue2.js +1 -17
  109. package/es/_shared/icons/IconZoomOut.vue.js +17 -1
  110. package/es/_shared/icons/IconZoomOut.vue2.js +1 -17
  111. package/es/_shared/locale/i18n.d.ts +256 -0
  112. package/es/_shared/locale/i18n.js +3 -1
  113. package/es/index.d.ts +27 -27
  114. package/lib/Alert/index.d.ts +3 -3
  115. package/lib/Alert/index.vue.d.ts +1 -1
  116. package/lib/AutoComplete/index.d.ts +19 -19
  117. package/lib/AutoComplete/index.vue.d.ts +33 -33
  118. package/lib/Avatar/Avatar.vue.d.ts +2 -2
  119. package/lib/Avatar/index.d.ts +5 -5
  120. package/lib/Button/Button.vue.d.ts +3 -3
  121. package/lib/Button/ButtonGroup.vue.d.ts +1 -1
  122. package/lib/Button/index.d.ts +12 -12
  123. package/lib/Calendar/Calendar.vue.js +1 -1
  124. package/lib/Card/Card.vue.d.ts +1 -1
  125. package/lib/Card/CardMeta.vue.d.ts +1 -1
  126. package/lib/Card/index.d.ts +6 -6
  127. package/lib/Cascader/Cascader.vue.d.ts +17 -17
  128. package/lib/Cascader/index.d.ts +16 -16
  129. package/lib/Checkbox/CheckboxGroup.vue.d.ts +1 -1
  130. package/lib/Checkbox/index.d.ts +3 -3
  131. package/lib/ColorPicker/ColorList.vue.js +1 -1
  132. package/lib/ColorPicker/ColorPanel.vue.js +1 -1
  133. package/lib/Divider/index.d.ts +3 -3
  134. package/lib/Divider/index.vue.d.ts +1 -1
  135. package/lib/Drawer/Drawer.vue.d.ts +4 -4
  136. package/lib/Drawer/Drawer.vue.js +1 -1
  137. package/lib/Drawer/DrawerService.vue.d.ts +2 -2
  138. package/lib/Drawer/index.d.ts +11 -11
  139. package/lib/Dropdown/DropdownButton.vue.d.ts +1 -1
  140. package/lib/Dropdown/index.d.ts +3 -3
  141. package/lib/Empty/index.vue.js +1 -1
  142. package/lib/Image/Image.vue.d.ts +2 -2
  143. package/lib/Image/Image.vue.js +1 -1
  144. package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
  145. package/lib/Image/index.d.ts +6 -6
  146. package/lib/Input/Input.vue.d.ts +3 -3
  147. package/lib/Input/index.d.ts +9 -9
  148. package/lib/InputNumber/InputNumber.vue.d.ts +18 -18
  149. package/lib/InputNumber/index.d.ts +19 -19
  150. package/lib/InputTag/index.d.ts +6 -6
  151. package/lib/InputTag/index.vue.d.ts +2 -2
  152. package/lib/Link/index.d.ts +3 -3
  153. package/lib/Link/index.vue.d.ts +1 -1
  154. package/lib/List/List.vue.d.ts +7 -7
  155. package/lib/List/ListItemMeta.vue.d.ts +1 -1
  156. package/lib/List/index.d.ts +9 -9
  157. package/lib/Mention/index.d.ts +22 -22
  158. package/lib/Mention/index.vue.d.ts +39 -39
  159. package/lib/Message/Message.vue.d.ts +1 -1
  160. package/lib/Message/index.d.ts +3 -3
  161. package/lib/Modal/Modal.vue.d.ts +4 -4
  162. package/lib/Modal/Modal.vue.js +1 -1
  163. package/lib/Modal/ModalService.vue.d.ts +2 -2
  164. package/lib/Modal/index.d.ts +11 -11
  165. package/lib/Notification/Notification.vue.d.ts +1 -1
  166. package/lib/Notification/index.d.ts +3 -3
  167. package/lib/OverflowList/index.d.ts +3 -3
  168. package/lib/OverflowList/index.vue.d.ts +1 -1
  169. package/lib/Pagination/Pagination.vue.js +1 -1
  170. package/lib/Pagination/hooks/useContext.d.ts +254 -3
  171. package/lib/Pagination/hooks/useContext.js +1 -1
  172. package/lib/Popconfirm/index.d.ts +19 -19
  173. package/lib/Popconfirm/index.vue.d.ts +7 -7
  174. package/lib/Popconfirm/index.vue.js +1 -1
  175. package/lib/Progress/Progress.vue.d.ts +1 -1
  176. package/lib/Progress/index.d.ts +3 -3
  177. package/lib/Radio/Radio.vue.d.ts +1 -1
  178. package/lib/Radio/RadioGroup.vue.d.ts +1 -1
  179. package/lib/Radio/index.d.ts +6 -6
  180. package/lib/Scrollbar/Scrollbar.vue.d.ts +1 -1
  181. package/lib/Scrollbar/index.d.ts +3 -3
  182. package/lib/Select/Select.vue.d.ts +13 -13
  183. package/lib/Select/index.d.ts +14 -14
  184. package/lib/Slider/Slider.vue.d.ts +3 -3
  185. package/lib/Slider/index.d.ts +9 -9
  186. package/lib/Space/index.d.ts +3 -3
  187. package/lib/Space/index.vue.d.ts +1 -1
  188. package/lib/Spin/index.d.ts +3 -3
  189. package/lib/Spin/index.vue.d.ts +1 -1
  190. package/lib/Split/index.d.ts +6 -6
  191. package/lib/Split/index.vue.d.ts +2 -2
  192. package/lib/Statistic/Countdown.vue.d.ts +2 -2
  193. package/lib/Statistic/Statistic.vue.d.ts +2 -2
  194. package/lib/Statistic/index.d.ts +12 -12
  195. package/lib/Steps/Step.vue.d.ts +1 -1
  196. package/lib/Steps/Steps.vue.d.ts +1 -1
  197. package/lib/Steps/index.d.ts +6 -6
  198. package/lib/Switch/index.d.ts +6 -6
  199. package/lib/Switch/index.vue.d.ts +2 -2
  200. package/lib/Tabs/Tabs.vue.d.ts +3 -3
  201. package/lib/Tabs/index.d.ts +8 -8
  202. package/lib/Tag/index.d.ts +3 -3
  203. package/lib/Tag/index.vue.d.ts +1 -1
  204. package/lib/Textarea/index.d.ts +6 -6
  205. package/lib/Textarea/index.vue.d.ts +2 -2
  206. package/lib/TimePicker/TimePicker.vue.d.ts +3 -3
  207. package/lib/TimePicker/index.d.ts +9 -9
  208. package/lib/Typography/TypographyBase.vue.d.ts +19 -19
  209. package/lib/Typography/TypographyBase.vue.js +1 -1
  210. package/lib/VerificationCode/index.d.ts +6 -6
  211. package/lib/VerificationCode/index.vue.d.ts +2 -2
  212. package/lib/_shared/icons/IconFullScreen.vue.js +1 -1
  213. package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
  214. package/lib/_shared/icons/IconOriginSize.vue.js +1 -1
  215. package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
  216. package/lib/_shared/icons/IconRotateLeft.vue.js +1 -1
  217. package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
  218. package/lib/_shared/icons/IconRotateRight.vue.js +1 -1
  219. package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
  220. package/lib/_shared/icons/IconZoomIn.vue.js +1 -1
  221. package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
  222. package/lib/_shared/icons/IconZoomOut.vue.js +1 -1
  223. package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
  224. package/lib/_shared/locale/i18n.d.ts +256 -0
  225. package/lib/_shared/locale/i18n.js +1 -1
  226. package/lib/index.d.ts +27 -27
  227. package/package.json +1 -1
@@ -8,8 +8,8 @@ export type CardGridInstance = InstanceType<typeof _CardGrid>;
8
8
  export * from './type';
9
9
  declare const Card: {
10
10
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').CardProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
11
- size: import('./type').CardSize;
12
11
  loading: boolean;
12
+ size: import('./type').CardSize;
13
13
  title: string;
14
14
  hoverable: boolean;
15
15
  bordered: boolean;
@@ -24,8 +24,8 @@ declare const Card: {
24
24
  M: {};
25
25
  Defaults: {};
26
26
  }, Readonly<import('./type').CardProps> & Readonly<{}>, {}, {}, {}, {}, {
27
- size: import('./type').CardSize;
28
27
  loading: boolean;
28
+ size: import('./type').CardSize;
29
29
  title: string;
30
30
  hoverable: boolean;
31
31
  bordered: boolean;
@@ -37,8 +37,8 @@ declare const Card: {
37
37
  __isTeleport?: never;
38
38
  __isSuspense?: never;
39
39
  } & import('vue').ComponentOptionsBase<Readonly<import('./type').CardProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
40
- size: import('./type').CardSize;
41
40
  loading: boolean;
41
+ size: import('./type').CardSize;
42
42
  title: string;
43
43
  hoverable: boolean;
44
44
  bordered: boolean;
@@ -50,8 +50,8 @@ declare const Card: {
50
50
  }) & {
51
51
  meta: {
52
52
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').CardMetaProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
53
- title: string;
54
53
  description: string;
54
+ title: string;
55
55
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
56
56
  P: {};
57
57
  B: {};
@@ -60,15 +60,15 @@ declare const Card: {
60
60
  M: {};
61
61
  Defaults: {};
62
62
  }, Readonly<import('./type').CardMetaProps> & Readonly<{}>, {}, {}, {}, {}, {
63
- title: string;
64
63
  description: string;
64
+ title: string;
65
65
  }>;
66
66
  __isFragment?: never;
67
67
  __isTeleport?: never;
68
68
  __isSuspense?: never;
69
69
  } & import('vue').ComponentOptionsBase<Readonly<import('./type').CardMetaProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
70
- title: string;
71
70
  description: string;
71
+ title: string;
72
72
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
73
73
  $slots: Readonly<import('./type').CardMetaSlots> & import('./type').CardMetaSlots;
74
74
  });
@@ -100,13 +100,13 @@ declare function __VLS_template(): {
100
100
  "visibility-change": (value: boolean) => any;
101
101
  pressEnter: (ev: KeyboardEvent) => any;
102
102
  }, string, {
103
- size: import('..').Size;
104
- disabled: boolean;
105
103
  error: boolean;
106
104
  placeholder: string;
105
+ maxLength: import('../Input').MaxLength;
106
+ size: import('..').Size;
107
+ disabled: boolean;
107
108
  modelValue: string;
108
109
  defaultValue: string;
109
- maxLength: import('../Input').MaxLength;
110
110
  showWordLimit: boolean;
111
111
  allowClear: boolean;
112
112
  readonly: boolean;
@@ -139,13 +139,13 @@ declare function __VLS_template(): {
139
139
  $nextTick: typeof import('vue').nextTick;
140
140
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
141
141
  } & Readonly<{
142
- size: import('..').Size;
143
- disabled: boolean;
144
142
  error: boolean;
145
143
  placeholder: string;
144
+ maxLength: import('../Input').MaxLength;
145
+ size: import('..').Size;
146
+ disabled: boolean;
146
147
  modelValue: string;
147
148
  defaultValue: string;
148
- maxLength: import('../Input').MaxLength;
149
149
  showWordLimit: boolean;
150
150
  allowClear: boolean;
151
151
  readonly: boolean;
@@ -168,7 +168,7 @@ declare function __VLS_template(): {
168
168
  "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
169
169
  "onVisibility-change"?: ((value: boolean) => any) | undefined;
170
170
  onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
171
- }>, "focus" | "blur" | "getInputRef" | ("size" | "disabled" | "error" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
171
+ }>, "focus" | "blur" | "getInputRef" | ("error" | "placeholder" | "maxLength" | "size" | "disabled" | "modelValue" | "defaultValue" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
172
172
  focus(): void;
173
173
  blur(): void;
174
174
  getInputRef(): HTMLInputElement;
@@ -202,15 +202,15 @@ declare const __VLS_component: import('vue').DefineComponent<CascaderProps, {},
202
202
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
203
203
  "onInput-value-change"?: ((value: string) => any) | undefined;
204
204
  }>, {
205
+ loading: boolean;
206
+ error: boolean;
207
+ placeholder: string;
205
208
  size: import('..').Size;
206
209
  popupVisible: boolean;
207
210
  defaultPopupVisible: boolean;
208
211
  disabled: boolean;
209
212
  popupContainer: import('..').PopupContainer;
210
- loading: boolean;
211
- error: boolean;
212
213
  multiple: boolean;
213
- placeholder: string;
214
214
  modelValue: import('./type').CascaderValue;
215
215
  defaultValue: import('./type').CascaderValue;
216
216
  allowClear: boolean;
@@ -309,13 +309,13 @@ declare const __VLS_component: import('vue').DefineComponent<CascaderProps, {},
309
309
  "visibility-change": (value: boolean) => any;
310
310
  pressEnter: (ev: KeyboardEvent) => any;
311
311
  }, string, {
312
- size: import('..').Size;
313
- disabled: boolean;
314
312
  error: boolean;
315
313
  placeholder: string;
314
+ maxLength: import('../Input').MaxLength;
315
+ size: import('..').Size;
316
+ disabled: boolean;
316
317
  modelValue: string;
317
318
  defaultValue: string;
318
- maxLength: import('../Input').MaxLength;
319
319
  showWordLimit: boolean;
320
320
  allowClear: boolean;
321
321
  readonly: boolean;
@@ -348,13 +348,13 @@ declare const __VLS_component: import('vue').DefineComponent<CascaderProps, {},
348
348
  $nextTick: typeof import('vue').nextTick;
349
349
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
350
350
  } & Readonly<{
351
- size: import('..').Size;
352
- disabled: boolean;
353
351
  error: boolean;
354
352
  placeholder: string;
353
+ maxLength: import('../Input').MaxLength;
354
+ size: import('..').Size;
355
+ disabled: boolean;
355
356
  modelValue: string;
356
357
  defaultValue: string;
357
- maxLength: import('../Input').MaxLength;
358
358
  showWordLimit: boolean;
359
359
  allowClear: boolean;
360
360
  readonly: boolean;
@@ -377,7 +377,7 @@ declare const __VLS_component: import('vue').DefineComponent<CascaderProps, {},
377
377
  "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
378
378
  "onVisibility-change"?: ((value: boolean) => any) | undefined;
379
379
  onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
380
- }>, "focus" | "blur" | "getInputRef" | ("size" | "disabled" | "error" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
380
+ }>, "focus" | "blur" | "getInputRef" | ("error" | "placeholder" | "maxLength" | "size" | "disabled" | "modelValue" | "defaultValue" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
381
381
  focus(): void;
382
382
  blur(): void;
383
383
  getInputRef(): HTMLInputElement;
@@ -26,15 +26,15 @@ declare const Cascader: {
26
26
  "update:inputValue": (value: string) => any;
27
27
  "input-value-change": (value: string) => any;
28
28
  }, import('vue').PublicProps, {
29
+ loading: boolean;
30
+ error: boolean;
31
+ placeholder: string;
29
32
  size: import('..').Size;
30
33
  popupVisible: boolean;
31
34
  defaultPopupVisible: boolean;
32
35
  disabled: boolean;
33
36
  popupContainer: import('..').PopupContainer;
34
- loading: boolean;
35
- error: boolean;
36
37
  multiple: boolean;
37
- placeholder: string;
38
38
  modelValue: import('./type').CascaderValue;
39
39
  defaultValue: import('./type').CascaderValue;
40
40
  allowClear: boolean;
@@ -133,13 +133,13 @@ declare const Cascader: {
133
133
  "visibility-change": (value: boolean) => any;
134
134
  pressEnter: (ev: KeyboardEvent) => any;
135
135
  }, string, {
136
- size: import('..').Size;
137
- disabled: boolean;
138
136
  error: boolean;
139
137
  placeholder: string;
138
+ maxLength: import('..').MaxLength;
139
+ size: import('..').Size;
140
+ disabled: boolean;
140
141
  modelValue: string;
141
142
  defaultValue: string;
142
- maxLength: import('..').MaxLength;
143
143
  showWordLimit: boolean;
144
144
  allowClear: boolean;
145
145
  readonly: boolean;
@@ -172,13 +172,13 @@ declare const Cascader: {
172
172
  $nextTick: typeof import('vue').nextTick;
173
173
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
174
174
  } & Readonly<{
175
- size: import('..').Size;
176
- disabled: boolean;
177
175
  error: boolean;
178
176
  placeholder: string;
177
+ maxLength: import('..').MaxLength;
178
+ size: import('..').Size;
179
+ disabled: boolean;
179
180
  modelValue: string;
180
181
  defaultValue: string;
181
- maxLength: import('..').MaxLength;
182
182
  showWordLimit: boolean;
183
183
  allowClear: boolean;
184
184
  readonly: boolean;
@@ -201,7 +201,7 @@ declare const Cascader: {
201
201
  "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
202
202
  "onVisibility-change"?: ((value: boolean) => any) | undefined;
203
203
  onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
204
- }>, "focus" | "blur" | "getInputRef" | ("size" | "disabled" | "error" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
204
+ }>, "focus" | "blur" | "getInputRef" | ("error" | "placeholder" | "maxLength" | "size" | "disabled" | "modelValue" | "defaultValue" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
205
205
  focus(): void;
206
206
  blur(): void;
207
207
  getInputRef(): HTMLInputElement;
@@ -227,15 +227,15 @@ declare const Cascader: {
227
227
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
228
228
  "onInput-value-change"?: ((value: string) => any) | undefined;
229
229
  }>, {}, {}, {}, {}, {
230
+ loading: boolean;
231
+ error: boolean;
232
+ placeholder: string;
230
233
  size: import('..').Size;
231
234
  popupVisible: boolean;
232
235
  defaultPopupVisible: boolean;
233
236
  disabled: boolean;
234
237
  popupContainer: import('..').PopupContainer;
235
- loading: boolean;
236
- error: boolean;
237
238
  multiple: boolean;
238
- placeholder: string;
239
239
  modelValue: import('./type').CascaderValue;
240
240
  defaultValue: import('./type').CascaderValue;
241
241
  allowClear: boolean;
@@ -284,15 +284,15 @@ declare const Cascader: {
284
284
  "update:inputValue": (value: string) => any;
285
285
  "input-value-change": (value: string) => any;
286
286
  }, string, {
287
+ loading: boolean;
288
+ error: boolean;
289
+ placeholder: string;
287
290
  size: import('..').Size;
288
291
  popupVisible: boolean;
289
292
  defaultPopupVisible: boolean;
290
293
  disabled: boolean;
291
294
  popupContainer: import('..').PopupContainer;
292
- loading: boolean;
293
- error: boolean;
294
295
  multiple: boolean;
295
- placeholder: string;
296
296
  modelValue: import('./type').CascaderValue;
297
297
  defaultValue: import('./type').CascaderValue;
298
298
  allowClear: boolean;
@@ -13,11 +13,11 @@ declare const __VLS_component: import('vue').DefineComponent<CheckboxGroupProps,
13
13
  onChange?: ((value: import('./type').CheckboxValue[]) => any) | undefined;
14
14
  "onUpdate:modelValue"?: ((value: import('./type').CheckboxValue[]) => any) | undefined;
15
15
  }>, {
16
+ max: number;
16
17
  disabled: boolean;
17
18
  modelValue: import('./type').CheckboxValue[];
18
19
  defaultValue: import('./type').CheckboxValue[];
19
20
  options: (import('./type').CheckboxOption | import('./type').CheckboxValue)[];
20
- max: number;
21
21
  direction: import('..').Direction;
22
22
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
23
23
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -60,11 +60,11 @@ declare const Checkbox: {
60
60
  change: (value: import('./type').CheckboxValue[]) => any;
61
61
  "update:modelValue": (value: import('./type').CheckboxValue[]) => any;
62
62
  }, import('vue').PublicProps, {
63
+ max: number;
63
64
  disabled: boolean;
64
65
  modelValue: import('./type').CheckboxValue[];
65
66
  defaultValue: import('./type').CheckboxValue[];
66
67
  options: (import('./type').CheckboxOption | import('./type').CheckboxValue)[];
67
- max: number;
68
68
  direction: import('..').Direction;
69
69
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
70
70
  P: {};
@@ -77,11 +77,11 @@ declare const Checkbox: {
77
77
  onChange?: ((value: import('./type').CheckboxValue[]) => any) | undefined;
78
78
  "onUpdate:modelValue"?: ((value: import('./type').CheckboxValue[]) => any) | undefined;
79
79
  }>, {}, {}, {}, {}, {
80
+ max: number;
80
81
  disabled: boolean;
81
82
  modelValue: import('./type').CheckboxValue[];
82
83
  defaultValue: import('./type').CheckboxValue[];
83
84
  options: (import('./type').CheckboxOption | import('./type').CheckboxValue)[];
84
- max: number;
85
85
  direction: import('..').Direction;
86
86
  }>;
87
87
  __isFragment?: never;
@@ -94,11 +94,11 @@ declare const Checkbox: {
94
94
  change: (value: import('./type').CheckboxValue[]) => any;
95
95
  "update:modelValue": (value: import('./type').CheckboxValue[]) => any;
96
96
  }, string, {
97
+ max: number;
97
98
  disabled: boolean;
98
99
  modelValue: import('./type').CheckboxValue[];
99
100
  defaultValue: import('./type').CheckboxValue[];
100
101
  options: (import('./type').CheckboxOption | import('./type').CheckboxValue)[];
101
- max: number;
102
102
  direction: import('..').Direction;
103
103
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
104
104
  $slots: Readonly<import('./type').CheckboxGroupSlots> & import('./type').CheckboxGroupSlots;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),o={class:"yc-color-picker-colors-section"},l={class:"yc-color-picker-colors-text"},c={key:0,class:"yc-color-picker-colors-empty"},r={class:"yc-color-picker-colors-list"},t=["onClick"],s=e.defineComponent({__name:"ColorList",props:{label:{},colors:{}},emits:["colorClick"],setup:s=>(s,i)=>(e.openBlock(),e.createElementBlock("div",o,[e.createElementVNode("div",l,e.toDisplayString(s.label),1),s.colors.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",c,e.toDisplayString(s.$t("colorPicker.empty")),1)),e.createElementVNode("div",r,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.colors,(o,l)=>(e.openBlock(),e.createElementBlock("div",{key:l,class:"yc-color-picker-color-block",style:e.normalizeStyle({backgroundColor:o}),onClick:e=>s.$emit("colorClick",o)},[e.createElementVNode("div",{class:"yc-color-picker-block",style:e.normalizeStyle({backgroundColor:o})},null,4)],12,t))),128))])]))});module.exports=s;
1
+ "use strict";const e=require("vue"),o=require("../_shared/locale/i18n.js"),l={class:"yc-color-picker-colors-section"},c={class:"yc-color-picker-colors-text"},r={key:0,class:"yc-color-picker-colors-empty"},t={class:"yc-color-picker-colors-list"},s=["onClick"],i=e.defineComponent({__name:"ColorList",props:{label:{},colors:{}},emits:["colorClick"],setup:i=>(i,n)=>(e.openBlock(),e.createElementBlock("div",l,[e.createElementVNode("div",c,e.toDisplayString(i.label),1),i.colors.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",r,e.toDisplayString(e.unref(o.t)("colorPicker.empty")),1)),e.createElementVNode("div",t,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.colors,(o,l)=>(e.openBlock(),e.createElementBlock("div",{key:l,class:"yc-color-picker-color-block",style:e.normalizeStyle({backgroundColor:o}),onClick:e=>i.$emit("colorClick",o)},[e.createElementVNode("div",{class:"yc-color-picker-block",style:e.normalizeStyle({backgroundColor:o})},null,4)],12,s))),128))])]))});module.exports=i;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),o=require("./hooks/useContext.js"),l=require("./ColorPalette.vue.js");;/* empty css */const r=require("./ColorInput.vue.js");;/* empty css */const a=require("./ColorList.vue.js");;/* empty css */const n=require("./ColorControl.vue.js");;/* empty css */const s={class:"yc-color-picker-panel-control"},u={class:"yc-color-picker-control-wrapper"},i={class:"yc-color-picker-control-bar-bg"},c={key:0,class:"yc-color-picker-panel-colors"},t=e.defineComponent({__name:"ColorPanel",setup(t){const{popupVisible:p,computedColor:d,baseColor:f,alpha:v,disabled:b,disabledAlpha:C,showHistory:h,showPreset:k,hideTrigger:m,presetColors:g,historyColors:y}=o().inject(),P=e.ref(),V=e.ref(),N=e.ref(),R=e=>{var o,l,r;b.value||(d.value=e,f.value=e,null==(o=P.value)||o.setPosition(e),null==(l=V.value)||l.setPosition(e),null==(r=N.value)||r.setPosition(e))},j=(e,o)=>{var l,r,a;"alpha"==o?null==(l=V.value)||l.setPosition(e):(null==(r=P.value)||r.setPosition(e),null==(a=N.value)||a.setPosition(e))};return(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-color-picker-panel",{"yc-color-picker-panel-disabled":e.unref(b)}])},[e.createVNode(l,{color:e.unref(d),"onUpdate:color":t[0]||(t[0]=o=>e.isRef(d)?d.value=o:null),"base-color":e.unref(f),"popup-visible":e.unref(p),"hide-trigger":e.unref(m),disabled:e.unref(b),ref_key:"paletteRef",ref:N},null,8,["color","base-color","popup-visible","hide-trigger","disabled"]),e.createElementVNode("div",s,[e.createElementVNode("div",u,[e.createElementVNode("div",null,[e.createVNode(n,{mode:"color",color:e.unref(d),"onUpdate:color":t[1]||(t[1]=o=>e.isRef(d)?d.value=o:null),"base-color":e.unref(f),"onUpdate:baseColor":t[2]||(t[2]=o=>e.isRef(f)?f.value=o:null),"popup-visible":e.unref(p),disabled:e.unref(b),"hide-trigger":e.unref(m),ref_key:"colorBarRef",ref:P,onChange:t[3]||(t[3]=e=>{var o;return null==(o=N.value)?void 0:o.setPosition(e)})},null,8,["color","base-color","popup-visible","disabled","hide-trigger"]),e.createElementVNode("div",i,[e.createVNode(n,{mode:"alpha",color:e.unref(d),"onUpdate:color":t[4]||(t[4]=o=>e.isRef(d)?d.value=o:null),alpha:e.unref(v),"onUpdate:alpha":t[5]||(t[5]=o=>e.isRef(v)?v.value=o:null),"base-color":e.unref(f),"popup-visible":e.unref(p),disabled:e.unref(b),"hide-trigger":e.unref(m),ref_key:"alphaBarRef",ref:V},null,8,["color","alpha","base-color","popup-visible","disabled","hide-trigger"])])]),e.createElementVNode("div",{class:"yc-color-picker-preview",style:e.normalizeStyle({backgroundColor:e.unref(d)})},null,4)]),e.createVNode(r,{color:e.unref(d),"onUpdate:color":t[6]||(t[6]=o=>e.isRef(d)?d.value=o:null),"base-color":e.unref(f),"onUpdate:baseColor":t[7]||(t[7]=o=>e.isRef(f)?f.value=o:null),alpha:e.unref(v),"onUpdate:alpha":t[8]||(t[8]=o=>e.isRef(v)?v.value=o:null),disabled:e.unref(b),"disabled-alpha":e.unref(C),onChange:j},null,8,["color","base-color","alpha","disabled","disabled-alpha"])]),e.unref(h)||e.unref(k)?(e.openBlock(),e.createElementBlock("div",c,[e.unref(h)?(e.openBlock(),e.createBlock(a,{key:0,label:o.$t("colorPicker.history"),colors:e.unref(y),onColorClick:R},null,8,["label","colors"])):e.createCommentVNode("",!0),e.unref(k)?(e.openBlock(),e.createBlock(a,{key:1,label:o.$t("colorPicker.preset"),colors:e.unref(g),onColorClick:R},null,8,["label","colors"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}});module.exports=t;
1
+ "use strict";const e=require("vue"),o=require("../_shared/locale/i18n.js"),l=require("./hooks/useContext.js"),r=require("./ColorPalette.vue.js");;/* empty css */const a=require("./ColorInput.vue.js");;/* empty css */const n=require("./ColorList.vue.js");;/* empty css */const u=require("./ColorControl.vue.js");;/* empty css */const s={class:"yc-color-picker-panel-control"},i={class:"yc-color-picker-control-wrapper"},c={class:"yc-color-picker-control-bar-bg"},t={key:0,class:"yc-color-picker-panel-colors"},p=e.defineComponent({__name:"ColorPanel",setup(p){const{popupVisible:d,computedColor:f,baseColor:v,alpha:b,disabled:C,disabledAlpha:h,showHistory:k,showPreset:m,hideTrigger:g,presetColors:y,historyColors:P}=l().inject(),V=e.ref(),N=e.ref(),j=e.ref(),q=e=>{var o,l,r;C.value||(f.value=e,v.value=e,null==(o=V.value)||o.setPosition(e),null==(l=N.value)||l.setPosition(e),null==(r=j.value)||r.setPosition(e))},R=(e,o)=>{var l,r,a;"alpha"==o?null==(l=N.value)||l.setPosition(e):(null==(r=V.value)||r.setPosition(e),null==(a=j.value)||a.setPosition(e))};return(l,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-color-picker-panel",{"yc-color-picker-panel-disabled":e.unref(C)}])},[e.createVNode(r,{color:e.unref(f),"onUpdate:color":p[0]||(p[0]=o=>e.isRef(f)?f.value=o:null),"base-color":e.unref(v),"popup-visible":e.unref(d),"hide-trigger":e.unref(g),disabled:e.unref(C),ref_key:"paletteRef",ref:j},null,8,["color","base-color","popup-visible","hide-trigger","disabled"]),e.createElementVNode("div",s,[e.createElementVNode("div",i,[e.createElementVNode("div",null,[e.createVNode(u,{mode:"color",color:e.unref(f),"onUpdate:color":p[1]||(p[1]=o=>e.isRef(f)?f.value=o:null),"base-color":e.unref(v),"onUpdate:baseColor":p[2]||(p[2]=o=>e.isRef(v)?v.value=o:null),"popup-visible":e.unref(d),disabled:e.unref(C),"hide-trigger":e.unref(g),ref_key:"colorBarRef",ref:V,onChange:p[3]||(p[3]=e=>{var o;return null==(o=j.value)?void 0:o.setPosition(e)})},null,8,["color","base-color","popup-visible","disabled","hide-trigger"]),e.createElementVNode("div",c,[e.createVNode(u,{mode:"alpha",color:e.unref(f),"onUpdate:color":p[4]||(p[4]=o=>e.isRef(f)?f.value=o:null),alpha:e.unref(b),"onUpdate:alpha":p[5]||(p[5]=o=>e.isRef(b)?b.value=o:null),"base-color":e.unref(v),"popup-visible":e.unref(d),disabled:e.unref(C),"hide-trigger":e.unref(g),ref_key:"alphaBarRef",ref:N},null,8,["color","alpha","base-color","popup-visible","disabled","hide-trigger"])])]),e.createElementVNode("div",{class:"yc-color-picker-preview",style:e.normalizeStyle({backgroundColor:e.unref(f)})},null,4)]),e.createVNode(a,{color:e.unref(f),"onUpdate:color":p[6]||(p[6]=o=>e.isRef(f)?f.value=o:null),"base-color":e.unref(v),"onUpdate:baseColor":p[7]||(p[7]=o=>e.isRef(v)?v.value=o:null),alpha:e.unref(b),"onUpdate:alpha":p[8]||(p[8]=o=>e.isRef(b)?b.value=o:null),disabled:e.unref(C),"disabled-alpha":e.unref(h),onChange:R},null,8,["color","base-color","alpha","disabled","disabled-alpha"])]),e.unref(k)||e.unref(m)?(e.openBlock(),e.createElementBlock("div",t,[e.unref(k)?(e.openBlock(),e.createBlock(n,{key:0,label:e.unref(o.t)("colorPicker.history"),colors:e.unref(P),onColorClick:q},null,8,["label","colors"])):e.createCommentVNode("",!0),e.unref(m)?(e.openBlock(),e.createBlock(n,{key:1,label:e.unref(o.t)("colorPicker.preset"),colors:e.unref(y),onColorClick:q},null,8,["label","colors"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}});module.exports=p;
@@ -4,8 +4,8 @@ export type DividerInstance = InstanceType<typeof _Divider>;
4
4
  export * from './type';
5
5
  declare const Divider: {
6
6
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').DividerProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
7
- size: number;
8
7
  type: import('./type').DividerType;
8
+ size: number;
9
9
  direction: import('..').Direction;
10
10
  margin: number | string;
11
11
  orientation: import('./type').Orientation;
@@ -17,8 +17,8 @@ declare const Divider: {
17
17
  M: {};
18
18
  Defaults: {};
19
19
  }, Readonly<import('./type').DividerProps> & Readonly<{}>, {}, {}, {}, {}, {
20
- size: number;
21
20
  type: import('./type').DividerType;
21
+ size: number;
22
22
  direction: import('..').Direction;
23
23
  margin: number | string;
24
24
  orientation: import('./type').Orientation;
@@ -27,8 +27,8 @@ declare const Divider: {
27
27
  __isTeleport?: never;
28
28
  __isSuspense?: never;
29
29
  } & import('vue').ComponentOptionsBase<Readonly<import('./type').DividerProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
30
- size: number;
31
30
  type: import('./type').DividerType;
31
+ size: number;
32
32
  direction: import('..').Direction;
33
33
  margin: number | string;
34
34
  orientation: import('./type').Orientation;
@@ -7,8 +7,8 @@ declare function __VLS_template(): {
7
7
  };
8
8
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
9
  declare const __VLS_component: import('vue').DefineComponent<DividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DividerProps> & Readonly<{}>, {
10
- size: number;
11
10
  type: import('./type').DividerType;
11
+ size: number;
12
12
  direction: import('..').Direction;
13
13
  margin: number | string;
14
14
  orientation: import('./type').Orientation;
@@ -9,21 +9,23 @@ declare function __VLS_template(): {
9
9
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
10
  declare const __VLS_component: import('vue').DefineComponent<DrawerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
11
  cancel: (event: MouseEvent | KeyboardEvent) => any;
12
+ ok: () => any;
12
13
  close: () => any;
13
14
  open: () => any;
14
15
  "update:visible": (value: boolean) => any;
15
- ok: () => any;
16
16
  "before-open": () => any;
17
17
  "before-close": () => any;
18
18
  }, string, import('vue').PublicProps, Readonly<DrawerProps> & Readonly<{
19
19
  onCancel?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
20
+ onOk?: (() => any) | undefined;
20
21
  onClose?: (() => any) | undefined;
21
22
  onOpen?: (() => any) | undefined;
22
23
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
23
- onOk?: (() => any) | undefined;
24
24
  "onBefore-open"?: (() => any) | undefined;
25
25
  "onBefore-close"?: (() => any) | undefined;
26
26
  }>, {
27
+ okText: string;
28
+ cancelText: string;
27
29
  unmountOnClose: boolean;
28
30
  popupContainer: import('..').PopupContainer;
29
31
  renderToBody: boolean;
@@ -38,8 +40,6 @@ declare const __VLS_component: import('vue').DefineComponent<DrawerProps, {}, {}
38
40
  closable: boolean;
39
41
  maskClosable: boolean;
40
42
  hideCancel: boolean;
41
- okText: string;
42
- cancelText: string;
43
43
  okLoading: boolean;
44
44
  okButtonProps: import('../Button').ButtonProps;
45
45
  cancelButtonProps: import('../Button').ButtonProps;
@@ -1 +1 @@
1
- "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js");require("../_shared/utils/time.js");const t=require("../_shared/utils/global-config.js"),l=require("../Modal/hooks/useModalClose.js"),a=require("../Button/index.js"),r=require("../_shared/components/IconButton.vue.js");,/* empty css */,/* empty css */;/* empty css */const n={key:0,class:"yc-drawer-header"},s={class:"yc-drawer-title text-ellipsis"},i={class:"yc-drawer-body"},d={key:0,class:"yc-drawer-footer"},c=e.defineComponent({name:"Drawer",inheritAttrs:!1,__name:"Drawer",props:{visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},placement:{default:"right"},title:{default:""},mask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},okText:{default:""},cancelText:{default:""},okLoading:{type:Boolean,default:!1},okButtonProps:{default:()=>({})},cancelButtonProps:{default:()=>({})},unmountOnClose:{type:Boolean,default:!1},width:{default:250},height:{default:250},popupContainer:{default:void 0},drawerStyle:{default:()=>({})},escToClose:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},header:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1},onBeforeCancel:{type:Function,default:()=>!0},onBeforeOk:{type:Function,default:()=>!0}},emits:["update:visible","ok","cancel","before-open","open","before-close","close"],setup(c,{emit:u}){const f=c,p=u,{visible:m,defaultVisible:y,width:B,height:k,placement:h,maskClosable:v,escToClose:C,drawerStyle:w,renderToBody:b,popupContainer:x}=e.toRefs(f),{onBeforeOk:g,onBeforeCancel:T}=f,{zIndex:V,popupContainer:N}=t.getGlobalConfig(f),S=e.computed(()=>({height:"left"==h.value||"right"==h.value?"":o.valueToPx(k.value),width:"left"==h.value||"right"==h.value?o.valueToPx(B.value):"",...w.value})),{outerVisible:_,innerVisible:$,asyncLoading:q,handleClose:j,handleAfterLeave:E}=l({visible:m,defaultVisible:y,escToClose:C,maskClosable:v,onBeforeCancel:T,onBeforeOk:g,emits:p});return(o,t)=>(e.openBlock(),e.createBlock(e.Teleport,{to:e.unref(N),disabled:!e.unref(b)},[!o.unmountOnClose||e.unref(_)?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-drawer-wrapper",`yc-drawer-placement-${e.unref(h)}`,o.$attrs.class,{"yc-drawer-position-absolute":e.unref(x)||!e.unref(b)}]),style:e.normalizeStyle({zIndex:e.unref(V),...o.$attrs.style??{}})},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[o.mask?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-drawer-mask",onClick:t[0]||(t[0]=o=>e.unref(j)("mask",o))},null,512)),[[e.vShow,e.unref($)]]):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:`slide-drawer-${e.unref(h)}`,onBeforeEnter:t[4]||(t[4]=e=>o.$emit("before-open")),onBeforeLeave:t[5]||(t[5]=e=>o.$emit("before-close")),onAfterEnter:t[6]||(t[6]=e=>o.$emit("open")),onAfterLeave:e.unref(E)},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:"yc-drawer-container",style:e.normalizeStyle(S.value)},[e.renderSlot(o.$slots,"header",{},()=>[o.header?(e.openBlock(),e.createElementBlock("div",n,[e.createElementVNode("div",s,[e.renderSlot(o.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)])]),o.closable?(e.openBlock(),e.createBlock(e.unref(r),{key:0,class:"yc-modal-close-button",onClick:t[1]||(t[1]=o=>e.unref(j)("closeBtn",o))})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",i,[e.renderSlot(o.$slots,"default")]),e.renderSlot(o.$slots,"footer",{},()=>[o.footer?(e.openBlock(),e.createElementBlock("div",d,[o.hideCancel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(a.default),e.mergeProps({key:0},o.cancelButtonProps,{onClick:t[2]||(t[2]=o=>e.unref(j)("cancelBtn",o))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.cancelText||o.$t("drawer.cancelText")),1)]),_:1},16)),e.createVNode(e.unref(a.default),e.mergeProps({type:"primary",loading:o.okLoading||e.unref(q)},o.okButtonProps,{onClick:t[3]||(t[3]=o=>e.unref(j)("confirmBtn",o))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.okText||o.$t("drawer.okText")),1)]),_:1},16,["loading"])])):e.createCommentVNode("",!0)])],4),[[e.vShow,e.unref($)]])]),_:3},8,["name","onAfterLeave"])],6)),[[e.vShow,e.unref(_)]]):e.createCommentVNode("",!0)],8,["to","disabled"]))}});module.exports=c;
1
+ "use strict";const e=require("vue"),o=require("../_shared/locale/i18n.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const t=require("../_shared/utils/dom.js");require("../_shared/utils/time.js");const l=require("../_shared/utils/global-config.js"),r=require("../Modal/hooks/useModalClose.js"),a=require("../Button/index.js"),n=require("../_shared/components/IconButton.vue.js");,/* empty css */,/* empty css */;/* empty css */const s={key:0,class:"yc-drawer-header"},i={class:"yc-drawer-title text-ellipsis"},d={class:"yc-drawer-body"},c={key:0,class:"yc-drawer-footer"},u=e.defineComponent({name:"Drawer",inheritAttrs:!1,__name:"Drawer",props:{visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},placement:{default:"right"},title:{default:""},mask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},okText:{default:""},cancelText:{default:""},okLoading:{type:Boolean,default:!1},okButtonProps:{default:()=>({})},cancelButtonProps:{default:()=>({})},unmountOnClose:{type:Boolean,default:!1},width:{default:250},height:{default:250},popupContainer:{default:void 0},drawerStyle:{default:()=>({})},escToClose:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},header:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1},onBeforeCancel:{type:Function,default:()=>!0},onBeforeOk:{type:Function,default:()=>!0}},emits:["update:visible","ok","cancel","before-open","open","before-close","close"],setup(u,{emit:f}){const p=u,m=f,{visible:y,defaultVisible:B,width:k,height:h,placement:v,maskClosable:C,escToClose:w,drawerStyle:b,renderToBody:x,popupContainer:g}=e.toRefs(p),{onBeforeOk:T,onBeforeCancel:V}=p,{zIndex:N,popupContainer:_}=l.getGlobalConfig(p),S=e.computed(()=>({height:"left"==v.value||"right"==v.value?"":t.valueToPx(h.value),width:"left"==v.value||"right"==v.value?t.valueToPx(k.value):"",...b.value})),{outerVisible:q,innerVisible:j,asyncLoading:$,handleClose:E,handleAfterLeave:D}=r({visible:y,defaultVisible:B,escToClose:w,maskClosable:C,onBeforeCancel:V,onBeforeOk:T,emits:m});return(t,l)=>(e.openBlock(),e.createBlock(e.Teleport,{to:e.unref(_),disabled:!e.unref(x)},[!t.unmountOnClose||e.unref(q)?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-drawer-wrapper",`yc-drawer-placement-${e.unref(v)}`,t.$attrs.class,{"yc-drawer-position-absolute":e.unref(g)||!e.unref(x)}]),style:e.normalizeStyle({zIndex:e.unref(N),...t.$attrs.style??{}})},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[t.mask?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-drawer-mask",onClick:l[0]||(l[0]=o=>e.unref(E)("mask",o))},null,512)),[[e.vShow,e.unref(j)]]):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:`slide-drawer-${e.unref(v)}`,onBeforeEnter:l[4]||(l[4]=e=>t.$emit("before-open")),onBeforeLeave:l[5]||(l[5]=e=>t.$emit("before-close")),onAfterEnter:l[6]||(l[6]=e=>t.$emit("open")),onAfterLeave:e.unref(D)},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:"yc-drawer-container",style:e.normalizeStyle(S.value)},[e.renderSlot(t.$slots,"header",{},()=>[t.header?(e.openBlock(),e.createElementBlock("div",s,[e.createElementVNode("div",i,[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])]),t.closable?(e.openBlock(),e.createBlock(e.unref(n),{key:0,class:"yc-modal-close-button",onClick:l[1]||(l[1]=o=>e.unref(E)("closeBtn",o))})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",d,[e.renderSlot(t.$slots,"default")]),e.renderSlot(t.$slots,"footer",{},()=>[t.footer?(e.openBlock(),e.createElementBlock("div",c,[t.hideCancel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(a.default),e.mergeProps({key:0},t.cancelButtonProps,{onClick:l[2]||(l[2]=o=>e.unref(E)("cancelBtn",o))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.cancelText||e.unref(o.t)("drawer.cancelText")),1)]),_:1},16)),e.createVNode(e.unref(a.default),e.mergeProps({type:"primary",loading:t.okLoading||e.unref($)},t.okButtonProps,{onClick:l[3]||(l[3]=o=>e.unref(E)("confirmBtn",o))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.okText||e.unref(o.t)("drawer.okText")),1)]),_:1},16,["loading"])])):e.createCommentVNode("",!0)])],4),[[e.vShow,e.unref(j)]])]),_:3},8,["name","onAfterLeave"])],6)),[[e.vShow,e.unref(q)]]):e.createCommentVNode("",!0)],8,["to","disabled"]))}});module.exports=u;
@@ -1,5 +1,7 @@
1
1
  import { DrawerServiceProps } from './type';
2
2
  declare const _default: import('vue').DefineComponent<DrawerServiceProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DrawerServiceProps> & Readonly<{}>, {
3
+ okText: string;
4
+ cancelText: string;
3
5
  unmountOnClose: boolean;
4
6
  renderToBody: boolean;
5
7
  width: number | string;
@@ -11,8 +13,6 @@ declare const _default: import('vue').DefineComponent<DrawerServiceProps, {}, {}
11
13
  closable: boolean;
12
14
  maskClosable: boolean;
13
15
  hideCancel: boolean;
14
- okText: string;
15
- cancelText: string;
16
16
  okLoading: boolean;
17
17
  okButtonProps: import('..').ButtonProps;
18
18
  cancelButtonProps: import('..').ButtonProps;
@@ -6,21 +6,23 @@ export * from './type';
6
6
  declare const Drawer: {
7
7
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').DrawerProps> & Readonly<{
8
8
  onCancel?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
9
+ onOk?: (() => any) | undefined;
9
10
  onClose?: (() => any) | undefined;
10
11
  onOpen?: (() => any) | undefined;
11
12
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
12
- onOk?: (() => any) | undefined;
13
13
  "onBefore-open"?: (() => any) | undefined;
14
14
  "onBefore-close"?: (() => any) | undefined;
15
15
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
16
  cancel: (event: MouseEvent | KeyboardEvent) => any;
17
+ ok: () => any;
17
18
  close: () => any;
18
19
  open: () => any;
19
20
  "update:visible": (value: boolean) => any;
20
- ok: () => any;
21
21
  "before-open": () => any;
22
22
  "before-close": () => any;
23
23
  }, import('vue').PublicProps, {
24
+ okText: string;
25
+ cancelText: string;
24
26
  unmountOnClose: boolean;
25
27
  popupContainer: import('..').PopupContainer;
26
28
  renderToBody: boolean;
@@ -35,8 +37,6 @@ declare const Drawer: {
35
37
  closable: boolean;
36
38
  maskClosable: boolean;
37
39
  hideCancel: boolean;
38
- okText: string;
39
- cancelText: string;
40
40
  okLoading: boolean;
41
41
  okButtonProps: import('..').ButtonProps;
42
42
  cancelButtonProps: import('..').ButtonProps;
@@ -54,13 +54,15 @@ declare const Drawer: {
54
54
  Defaults: {};
55
55
  }, Readonly<import('./type').DrawerProps> & Readonly<{
56
56
  onCancel?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
57
+ onOk?: (() => any) | undefined;
57
58
  onClose?: (() => any) | undefined;
58
59
  onOpen?: (() => any) | undefined;
59
60
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
60
- onOk?: (() => any) | undefined;
61
61
  "onBefore-open"?: (() => any) | undefined;
62
62
  "onBefore-close"?: (() => any) | undefined;
63
63
  }>, {}, {}, {}, {}, {
64
+ okText: string;
65
+ cancelText: string;
64
66
  unmountOnClose: boolean;
65
67
  popupContainer: import('..').PopupContainer;
66
68
  renderToBody: boolean;
@@ -75,8 +77,6 @@ declare const Drawer: {
75
77
  closable: boolean;
76
78
  maskClosable: boolean;
77
79
  hideCancel: boolean;
78
- okText: string;
79
- cancelText: string;
80
80
  okLoading: boolean;
81
81
  okButtonProps: import('..').ButtonProps;
82
82
  cancelButtonProps: import('..').ButtonProps;
@@ -91,21 +91,23 @@ declare const Drawer: {
91
91
  __isSuspense?: never;
92
92
  } & import('vue').ComponentOptionsBase<Readonly<import('./type').DrawerProps> & Readonly<{
93
93
  onCancel?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
94
+ onOk?: (() => any) | undefined;
94
95
  onClose?: (() => any) | undefined;
95
96
  onOpen?: (() => any) | undefined;
96
97
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
97
- onOk?: (() => any) | undefined;
98
98
  "onBefore-open"?: (() => any) | undefined;
99
99
  "onBefore-close"?: (() => any) | undefined;
100
100
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
101
101
  cancel: (event: MouseEvent | KeyboardEvent) => any;
102
+ ok: () => any;
102
103
  close: () => any;
103
104
  open: () => any;
104
105
  "update:visible": (value: boolean) => any;
105
- ok: () => any;
106
106
  "before-open": () => any;
107
107
  "before-close": () => any;
108
108
  }, string, {
109
+ okText: string;
110
+ cancelText: string;
109
111
  unmountOnClose: boolean;
110
112
  popupContainer: import('..').PopupContainer;
111
113
  renderToBody: boolean;
@@ -120,8 +122,6 @@ declare const Drawer: {
120
122
  closable: boolean;
121
123
  maskClosable: boolean;
122
124
  hideCancel: boolean;
123
- okText: string;
124
- cancelText: string;
125
125
  okLoading: boolean;
126
126
  okButtonProps: import('..').ButtonProps;
127
127
  cancelButtonProps: import('..').ButtonProps;
@@ -15,6 +15,7 @@ declare const __VLS_component: import('vue').DefineComponent<DropdownButtonProps
15
15
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
16
16
  onSelect?: ((value: DoptionValue) => any) | undefined;
17
17
  }>, {
18
+ type: import('../Button').ButtonType;
18
19
  size: import('..').Size;
19
20
  trigger: import('..').TriggerType;
20
21
  popupVisible: boolean;
@@ -22,7 +23,6 @@ declare const __VLS_component: import('vue').DefineComponent<DropdownButtonProps
22
23
  disabled: boolean;
23
24
  position: import('./type').DropdownPosition;
24
25
  popupContainer: import('..').PopupContainer;
25
- type: import('../Button').ButtonType;
26
26
  hideOnSelect: boolean;
27
27
  buttonProps: import('../Button').ButtonProps;
28
28
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
@@ -146,6 +146,7 @@ declare const Dropdown: {
146
146
  "popup-visible-change": (value: boolean) => any;
147
147
  select: (value: import('./type').DoptionValue) => any;
148
148
  }, import('vue').PublicProps, {
149
+ type: import('..').ButtonType;
149
150
  size: import('..').Size;
150
151
  trigger: import('..').TriggerType;
151
152
  popupVisible: boolean;
@@ -153,7 +154,6 @@ declare const Dropdown: {
153
154
  disabled: boolean;
154
155
  position: import('./type').DropdownPosition;
155
156
  popupContainer: import('..').PopupContainer;
156
- type: import('..').ButtonType;
157
157
  hideOnSelect: boolean;
158
158
  buttonProps: import('..').ButtonProps;
159
159
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
@@ -168,6 +168,7 @@ declare const Dropdown: {
168
168
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
169
169
  onSelect?: ((value: import('./type').DoptionValue) => any) | undefined;
170
170
  }>, {}, {}, {}, {}, {
171
+ type: import('..').ButtonType;
171
172
  size: import('..').Size;
172
173
  trigger: import('..').TriggerType;
173
174
  popupVisible: boolean;
@@ -175,7 +176,6 @@ declare const Dropdown: {
175
176
  disabled: boolean;
176
177
  position: import('./type').DropdownPosition;
177
178
  popupContainer: import('..').PopupContainer;
178
- type: import('..').ButtonType;
179
179
  hideOnSelect: boolean;
180
180
  buttonProps: import('..').ButtonProps;
181
181
  }>;
@@ -191,6 +191,7 @@ declare const Dropdown: {
191
191
  "popup-visible-change": (value: boolean) => any;
192
192
  select: (value: import('./type').DoptionValue) => any;
193
193
  }, string, {
194
+ type: import('..').ButtonType;
194
195
  size: import('..').Size;
195
196
  trigger: import('..').TriggerType;
196
197
  popupVisible: boolean;
@@ -198,7 +199,6 @@ declare const Dropdown: {
198
199
  disabled: boolean;
199
200
  position: import('./type').DropdownPosition;
200
201
  popupContainer: import('..').PopupContainer;
201
- type: import('..').ButtonType;
202
202
  hideOnSelect: boolean;
203
203
  buttonProps: import('..').ButtonProps;
204
204
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {