lew-ui 2.7.1 → 2.7.4

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 (156) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +1 -3
  3. package/dist/components/action-box/src/LewActionBox.vue.d.ts +2 -2
  4. package/dist/components/action-box/src/props.d.ts +1 -2
  5. package/dist/components/alert/src/LewAlert.vue.d.ts +11 -5
  6. package/dist/components/alert/src/props.d.ts +1 -2
  7. package/dist/components/avatar/src/LewAvatar.vue.d.ts +1 -1
  8. package/dist/components/avatar/src/props.d.ts +1 -2
  9. package/dist/components/back-top/src/LewBackTop.vue.d.ts +9 -3
  10. package/dist/components/back-top/src/props.d.ts +0 -1
  11. package/dist/components/badge/src/LewBadge.vue.d.ts +10 -4
  12. package/dist/components/badge/src/props.d.ts +0 -1
  13. package/dist/components/breadcrumb/src/LewBreadcrumb.vue.d.ts +1 -1
  14. package/dist/components/breadcrumb/src/props.d.ts +0 -1
  15. package/dist/components/button/src/LewButton.vue.d.ts +17 -6
  16. package/dist/components/button/src/props.d.ts +1 -2
  17. package/dist/components/cascader/src/LewCascader.vue.d.ts +440 -12
  18. package/dist/components/cascader/src/props.d.ts +13 -4
  19. package/dist/components/checkbox/src/LewCheckbox.vue.d.ts +11 -5
  20. package/dist/components/checkbox/src/LewCheckboxGroup.vue.d.ts +13 -12
  21. package/dist/components/checkbox/src/props.d.ts +3 -4
  22. package/dist/components/collapse/src/LewCollapse.vue.d.ts +21 -7
  23. package/dist/components/collapse/src/LewCollapseItem.vue.d.ts +28 -14
  24. package/dist/components/collapse/src/props.d.ts +0 -1
  25. package/dist/components/color-picker/src/LewColorPicker.vue.d.ts +13 -5
  26. package/dist/components/color-picker/src/props.d.ts +0 -1
  27. package/dist/components/date-picker/src/LewDate.vue.d.ts +11 -4
  28. package/dist/components/date-picker/src/LewDatePicker.vue.d.ts +254 -7
  29. package/dist/components/date-picker/src/date.d.ts +3 -3
  30. package/dist/components/date-picker/src/props.d.ts +3 -4
  31. package/dist/components/date-range-picker/src/LewDateRange.vue.d.ts +19 -8
  32. package/dist/components/date-range-picker/src/LewDateRangePicker.vue.d.ts +296 -8
  33. package/dist/components/date-range-picker/src/props.d.ts +1 -2
  34. package/dist/components/desc/src/LewDesc.vue.d.ts +48 -3
  35. package/dist/components/desc/src/LewDescItem.vue.d.ts +5 -4
  36. package/dist/components/desc/src/props.d.ts +3 -4
  37. package/dist/components/drawer/src/LewDrawer.vue.d.ts +25 -9
  38. package/dist/components/drawer/src/props.d.ts +0 -1
  39. package/dist/components/dropdown/src/LewDropdown.vue.d.ts +407 -7
  40. package/dist/components/dropdown/src/props.d.ts +1 -2
  41. package/dist/components/empty/src/LewEmpty.vue.d.ts +8 -8
  42. package/dist/components/empty/src/props.d.ts +0 -1
  43. package/dist/components/expand/src/LewExpand.vue.d.ts +13 -3
  44. package/dist/components/expand/src/props.d.ts +0 -1
  45. package/dist/components/flex/src/LewFlex.vue.d.ts +10 -4
  46. package/dist/components/flex/src/props.d.ts +0 -1
  47. package/dist/components/form/src/LewForm.vue.d.ts +60 -11
  48. package/dist/components/form/src/LewFormItem.vue.d.ts +20 -9
  49. package/dist/components/form/src/LewGetLabelWidth.vue.d.ts +5 -3
  50. package/dist/components/form/src/RequiredIcon.vue.d.ts +1 -1
  51. package/dist/components/form/src/props.d.ts +2 -3
  52. package/dist/components/image/src/LewImage.vue.d.ts +10 -4
  53. package/dist/components/image/src/props.d.ts +0 -1
  54. package/dist/components/index.d.ts +35 -35
  55. package/dist/components/input/src/LewInput.vue.d.ts +33 -16
  56. package/dist/components/input/src/props.d.ts +1 -2
  57. package/dist/components/input-number/src/LewInputNumber.vue.d.ts +18 -12
  58. package/dist/components/input-number/src/props.d.ts +1 -2
  59. package/dist/components/input-table/src/FormModal.vue.d.ts +220 -5
  60. package/dist/components/input-table/src/LewInputTable.vue.d.ts +563 -12
  61. package/dist/components/input-table/src/props.d.ts +3 -4
  62. package/dist/components/input-tag/src/LewInputTag.vue.d.ts +359 -5
  63. package/dist/components/input-tag/src/props.d.ts +0 -1
  64. package/dist/components/input-tree/src/LewInputTree.vue.d.ts +38 -0
  65. package/dist/components/mark/src/LewMark.vue.d.ts +19 -13
  66. package/dist/components/mark/src/props.d.ts +0 -1
  67. package/dist/components/menu/src/LewMenu.vue.d.ts +9 -4
  68. package/dist/components/menu/src/props.d.ts +3 -4
  69. package/dist/components/menu-tree/src/LewMenuTree.vue.d.ts +26 -9
  70. package/dist/components/menu-tree/src/LewMenuTreeItem.vue.d.ts +28 -22
  71. package/dist/components/menu-tree/src/props.d.ts +3 -4
  72. package/dist/components/modal/src/LewModal.vue.d.ts +27 -11
  73. package/dist/components/modal/src/props.d.ts +0 -1
  74. package/dist/components/pagination/src/LewPagination.vue.d.ts +30 -10
  75. package/dist/components/pagination/src/props.d.ts +1 -2
  76. package/dist/components/popok/src/LewPopok.vue.d.ts +853 -6
  77. package/dist/components/popok/src/props.d.ts +0 -1
  78. package/dist/components/popover/src/LewPopover.vue.d.ts +29 -14
  79. package/dist/components/popover/src/props.d.ts +0 -1
  80. package/dist/components/radio/src/LewRadio.vue.d.ts +3 -3
  81. package/dist/components/radio/src/LewRadioGroup.vue.d.ts +11 -6
  82. package/dist/components/radio/src/props.d.ts +1 -2
  83. package/dist/components/rate/src/LewRate.vue.d.ts +12 -4
  84. package/dist/components/rate/src/props.d.ts +1 -2
  85. package/dist/components/select/src/LewSelect.vue.d.ts +1038 -17
  86. package/dist/components/select/src/props.d.ts +21 -6
  87. package/dist/components/select/src/util.d.ts +3 -4
  88. package/dist/components/select-multiple/src/LewSelectMultiple.vue.d.ts +1428 -19
  89. package/dist/components/select-multiple/src/props.d.ts +22 -8
  90. package/dist/components/slider/src/LewSlider.vue.d.ts +15 -6
  91. package/dist/components/slider/src/props.d.ts +3 -4
  92. package/dist/components/slider-range/src/LewSliderRange.vue.d.ts +20 -6
  93. package/dist/components/slider-range/src/props.d.ts +3 -4
  94. package/dist/components/steps/src/LewSteps.vue.d.ts +14 -6
  95. package/dist/components/steps/src/props.d.ts +2 -3
  96. package/dist/components/switch/src/LewSwitch.vue.d.ts +9 -3
  97. package/dist/components/switch/src/props.d.ts +1 -2
  98. package/dist/components/table/src/LewTable.vue.d.ts +53 -25
  99. package/dist/components/table/src/props.d.ts +1 -2
  100. package/dist/components/tabs/src/LewTabs.vue.d.ts +15 -12
  101. package/dist/components/tabs/src/props.d.ts +2 -3
  102. package/dist/components/tag/src/LewTag.vue.d.ts +11 -5
  103. package/dist/components/tag/src/props.d.ts +1 -2
  104. package/dist/components/text-trim/src/LewTextTrim.vue.d.ts +18 -5
  105. package/dist/components/text-trim/src/props.d.ts +0 -1
  106. package/dist/components/text-trim/src/text-trim.d.ts +3 -3
  107. package/dist/components/textarea/src/LewTextarea.vue.d.ts +19 -9
  108. package/dist/components/textarea/src/props.d.ts +1 -2
  109. package/dist/components/title/src/LewTitle.vue.d.ts +9 -3
  110. package/dist/components/title/src/props.d.ts +0 -1
  111. package/dist/components/tree/src/LewTree.vue.d.ts +36 -17
  112. package/dist/components/tree/src/LewTreeItem.vue.d.ts +21 -15
  113. package/dist/components/tree/src/props.d.ts +3 -4
  114. package/dist/components/tree/src/transformTree.d.ts +7 -18
  115. package/dist/components/tree-select/src/LewTreeSelect.vue.d.ts +1055 -26
  116. package/dist/components/tree-select/src/props.d.ts +18 -8
  117. package/dist/components/upload/src/LewUpload.vue.d.ts +169 -8
  118. package/dist/components/upload/src/LewUploadByCard.vue.d.ts +9 -4
  119. package/dist/components/upload/src/LewUploadByList.vue.d.ts +9 -4
  120. package/dist/components/upload/src/props.d.ts +4 -5
  121. package/dist/constants/index.d.ts +0 -1
  122. package/dist/directives/backtop/src/index.d.ts +0 -1
  123. package/dist/directives/context-menu/index.d.ts +1 -1
  124. package/dist/directives/context-menu/src/LewContextMenu.vue.d.ts +2 -3
  125. package/dist/directives/context-menu/src/index.d.ts +28 -29
  126. package/dist/directives/hover-menu/src/index.d.ts +15 -2
  127. package/dist/directives/index.d.ts +2 -2
  128. package/dist/directives/loading/src/index.d.ts +0 -1
  129. package/dist/directives/tooltip/src/index.d.ts +0 -1
  130. package/dist/index.css +1 -0
  131. package/dist/index.d.ts +3 -3
  132. package/dist/{index.mjs → index.js} +23901 -23191
  133. package/dist/index.umd.cjs +40 -0
  134. package/dist/locals/de.d.ts +3 -0
  135. package/dist/locals/en.d.ts +3 -0
  136. package/dist/locals/es.d.ts +3 -0
  137. package/dist/locals/fr.d.ts +3 -0
  138. package/dist/locals/index.d.ts +9 -10
  139. package/dist/locals/it.d.ts +3 -0
  140. package/dist/locals/ja.d.ts +3 -0
  141. package/dist/locals/ko.d.ts +3 -0
  142. package/dist/locals/pt.d.ts +3 -0
  143. package/dist/locals/zh.d.ts +3 -0
  144. package/dist/methods/dialog/src/LewDialog.vue.d.ts +464 -6
  145. package/dist/methods/dialog/src/index.d.ts +4 -4
  146. package/dist/methods/dialog/src/props.d.ts +0 -1
  147. package/dist/methods/index.d.ts +1 -1
  148. package/dist/methods/message/src/index.d.ts +0 -1
  149. package/dist/methods/notification/src/components/NotificationContainer.vue.d.ts +5 -3
  150. package/dist/methods/notification/src/components/NotificationItem.vue.d.ts +6 -21
  151. package/dist/methods/notification/src/index.d.ts +9 -9
  152. package/dist/utils/index.d.ts +27 -115
  153. package/package.json +47 -69
  154. package/README.zh-CN.md +0 -48
  155. package/dist/index.umd.js +0 -46
  156. package/dist/style.css +0 -1
@@ -37,6 +37,9 @@ declare const _default: {
37
37
  noResult: string;
38
38
  searchPlaceholder: string;
39
39
  };
40
+ treeSelect: {
41
+ placeholder: string;
42
+ };
40
43
  textarea: {
41
44
  placeholder: string;
42
45
  };
@@ -37,6 +37,9 @@ declare const _default: {
37
37
  noResult: string;
38
38
  searchPlaceholder: string;
39
39
  };
40
+ treeSelect: {
41
+ placeholder: string;
42
+ };
40
43
  textarea: {
41
44
  placeholder: string;
42
45
  };
@@ -37,6 +37,9 @@ declare const _default: {
37
37
  noResult: string;
38
38
  searchPlaceholder: string;
39
39
  };
40
+ treeSelect: {
41
+ placeholder: string;
42
+ };
40
43
  textarea: {
41
44
  placeholder: string;
42
45
  };
@@ -37,6 +37,9 @@ declare const _default: {
37
37
  noResult: string;
38
38
  searchPlaceholder: string;
39
39
  };
40
+ treeSelect: {
41
+ placeholder: string;
42
+ };
40
43
  textarea: {
41
44
  placeholder: string;
42
45
  };
@@ -1,15 +1,14 @@
1
+ import { default as de } from './de';
1
2
  import { default as en } from './en';
2
- import { default as zh } from './zh';
3
- import { default as ja } from './ja';
4
- import { default as ko } from './ko';
3
+ import { default as es } from './es';
5
4
  import { default as fr } from './fr';
6
5
  import { default as it } from './it';
7
- import { default as es } from './es';
8
- import { default as de } from './de';
6
+ import { default as ja } from './ja';
7
+ import { default as ko } from './ko';
9
8
  import { default as pt } from './pt';
10
-
11
- export declare const setLocale: (locale: string) => void;
12
- export declare const getLocale: () => any;
13
- export declare const useI18n: () => any;
9
+ import { default as zh } from './zh';
10
+ export declare function setLocale(locale: string): void;
11
+ export declare function getLocale(): any;
12
+ export declare function useI18n(): any;
14
13
  export declare const locale: any;
15
- export { en, zh, de, pt, fr, it, es, ko, ja };
14
+ export { de, en, es, fr, it, ja, ko, pt, zh };
@@ -37,6 +37,9 @@ declare const _default: {
37
37
  noResult: string;
38
38
  searchPlaceholder: string;
39
39
  };
40
+ treeSelect: {
41
+ placeholder: string;
42
+ };
40
43
  textarea: {
41
44
  placeholder: string;
42
45
  };
@@ -37,6 +37,9 @@ declare const _default: {
37
37
  noResult: string;
38
38
  searchPlaceholder: string;
39
39
  };
40
+ treeSelect: {
41
+ placeholder: string;
42
+ };
40
43
  textarea: {
41
44
  placeholder: string;
42
45
  };
@@ -37,6 +37,9 @@ declare const _default: {
37
37
  noResult: string;
38
38
  searchPlaceholder: string;
39
39
  };
40
+ treeSelect: {
41
+ placeholder: string;
42
+ };
40
43
  textarea: {
41
44
  placeholder: string;
42
45
  };
@@ -37,6 +37,9 @@ declare const _default: {
37
37
  noResult: string;
38
38
  searchPlaceholder: string;
39
39
  };
40
+ treeSelect: {
41
+ placeholder: string;
42
+ };
40
43
  textarea: {
41
44
  placeholder: string;
42
45
  };
@@ -37,6 +37,9 @@ declare const _default: {
37
37
  noResult: string;
38
38
  searchPlaceholder: string;
39
39
  };
40
+ treeSelect: {
41
+ placeholder: string;
42
+ };
40
43
  textarea: {
41
44
  placeholder: string;
42
45
  };
@@ -1,7 +1,240 @@
1
+ import { LewColor } from '../../..';
2
+ import { nextTick } from 'vue';
1
3
  declare function __VLS_template(): {
2
- title?(_: {}): any;
3
- content?(_: {}): any;
4
+ attrs: Partial<{}>;
5
+ slots: {
6
+ title?(_: {}): any;
7
+ content?(_: {}): any;
8
+ };
9
+ refs: {
10
+ okRef1: ({
11
+ $: import('vue').ComponentInternalInstance;
12
+ $data: {};
13
+ $props: Partial<{
14
+ type: import('../../..').ButtonType;
15
+ color: LewColor;
16
+ size: import('../../..').ButtonSize;
17
+ loading: boolean;
18
+ disabled: boolean;
19
+ width: string | number;
20
+ text: string;
21
+ round: boolean;
22
+ singleIcon: boolean;
23
+ dashed: boolean;
24
+ request: Function;
25
+ }> & Omit<{
26
+ readonly type: import('../../..').ButtonType;
27
+ readonly color: LewColor;
28
+ readonly size: import('../../..').ButtonSize;
29
+ readonly loading: boolean;
30
+ readonly disabled: boolean;
31
+ readonly text: string;
32
+ readonly round: boolean;
33
+ readonly singleIcon: boolean;
34
+ readonly dashed: boolean;
35
+ readonly request: Function;
36
+ readonly width?: string | number | undefined;
37
+ readonly onClick?: ((...args: any[]) => any) | undefined;
38
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "color" | "size" | "loading" | "disabled" | "width" | "text" | "round" | "singleIcon" | "dashed" | "request">;
39
+ $attrs: {
40
+ [x: string]: unknown;
41
+ };
42
+ $refs: {
43
+ [x: string]: unknown;
44
+ } & {
45
+ buttonRef: HTMLButtonElement;
46
+ };
47
+ $slots: Readonly<{
48
+ [name: string]: import('vue').Slot<any> | undefined;
49
+ }>;
50
+ $root: ComponentPublicInstance | null;
51
+ $parent: ComponentPublicInstance | null;
52
+ $host: Element | null;
53
+ $emit: (event: "click", ...args: any[]) => void;
54
+ $el: HTMLButtonElement;
55
+ $options: import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
56
+ text: {
57
+ type: StringConstructor;
58
+ default: string;
59
+ description: string;
60
+ validator(value: string): boolean;
61
+ };
62
+ width: {
63
+ type: (StringConstructor | NumberConstructor)[];
64
+ default: undefined;
65
+ description: string;
66
+ };
67
+ type: {
68
+ type: PropType<import('../../..').ButtonType>;
69
+ default: string;
70
+ description: string;
71
+ validator(value: import('../../..').ButtonType): boolean;
72
+ };
73
+ size: {
74
+ type: PropType<import('../../..').ButtonSize>;
75
+ default: string;
76
+ description: string;
77
+ validator(value: import('../../..').ButtonSize): boolean;
78
+ };
79
+ singleIcon: {
80
+ type: BooleanConstructor;
81
+ default: boolean;
82
+ description: string;
83
+ };
84
+ color: {
85
+ type: PropType<LewColor>;
86
+ default: string;
87
+ description: string;
88
+ validator(value: LewColor): boolean;
89
+ };
90
+ round: {
91
+ type: BooleanConstructor;
92
+ default: boolean;
93
+ description: string;
94
+ };
95
+ dashed: {
96
+ type: BooleanConstructor;
97
+ default: boolean;
98
+ description: string;
99
+ };
100
+ loading: {
101
+ type: BooleanConstructor;
102
+ default: boolean;
103
+ description: string;
104
+ };
105
+ disabled: {
106
+ type: BooleanConstructor;
107
+ default: boolean;
108
+ description: string;
109
+ };
110
+ request: {
111
+ type: FunctionConstructor;
112
+ default: null;
113
+ description: string;
114
+ };
115
+ }>> & Readonly<{
116
+ onClick?: ((...args: any[]) => any) | undefined;
117
+ }>, {
118
+ focus: () => void;
119
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
120
+ click: (...args: any[]) => void;
121
+ }, string, {
122
+ type: import('../../..').ButtonType;
123
+ color: LewColor;
124
+ size: import('../../..').ButtonSize;
125
+ loading: boolean;
126
+ disabled: boolean;
127
+ width: string | number;
128
+ text: string;
129
+ round: boolean;
130
+ singleIcon: boolean;
131
+ dashed: boolean;
132
+ request: Function;
133
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
134
+ beforeCreate?: (() => void) | (() => void)[];
135
+ created?: (() => void) | (() => void)[];
136
+ beforeMount?: (() => void) | (() => void)[];
137
+ mounted?: (() => void) | (() => void)[];
138
+ beforeUpdate?: (() => void) | (() => void)[];
139
+ updated?: (() => void) | (() => void)[];
140
+ activated?: (() => void) | (() => void)[];
141
+ deactivated?: (() => void) | (() => void)[];
142
+ beforeDestroy?: (() => void) | (() => void)[];
143
+ beforeUnmount?: (() => void) | (() => void)[];
144
+ destroyed?: (() => void) | (() => void)[];
145
+ unmounted?: (() => void) | (() => void)[];
146
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
147
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
148
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
149
+ };
150
+ $forceUpdate: () => void;
151
+ $nextTick: typeof nextTick;
152
+ $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;
153
+ } & Readonly<{
154
+ type: import('../../..').ButtonType;
155
+ color: LewColor;
156
+ size: import('../../..').ButtonSize;
157
+ loading: boolean;
158
+ disabled: boolean;
159
+ width: string | number;
160
+ text: string;
161
+ round: boolean;
162
+ singleIcon: boolean;
163
+ dashed: boolean;
164
+ request: Function;
165
+ }> & Omit<Readonly<globalThis.ExtractPropTypes<{
166
+ text: {
167
+ type: StringConstructor;
168
+ default: string;
169
+ description: string;
170
+ validator(value: string): boolean;
171
+ };
172
+ width: {
173
+ type: (StringConstructor | NumberConstructor)[];
174
+ default: undefined;
175
+ description: string;
176
+ };
177
+ type: {
178
+ type: PropType<import('../../..').ButtonType>;
179
+ default: string;
180
+ description: string;
181
+ validator(value: import('../../..').ButtonType): boolean;
182
+ };
183
+ size: {
184
+ type: PropType<import('../../..').ButtonSize>;
185
+ default: string;
186
+ description: string;
187
+ validator(value: import('../../..').ButtonSize): boolean;
188
+ };
189
+ singleIcon: {
190
+ type: BooleanConstructor;
191
+ default: boolean;
192
+ description: string;
193
+ };
194
+ color: {
195
+ type: PropType<LewColor>;
196
+ default: string;
197
+ description: string;
198
+ validator(value: LewColor): boolean;
199
+ };
200
+ round: {
201
+ type: BooleanConstructor;
202
+ default: boolean;
203
+ description: string;
204
+ };
205
+ dashed: {
206
+ type: BooleanConstructor;
207
+ default: boolean;
208
+ description: string;
209
+ };
210
+ loading: {
211
+ type: BooleanConstructor;
212
+ default: boolean;
213
+ description: string;
214
+ };
215
+ disabled: {
216
+ type: BooleanConstructor;
217
+ default: boolean;
218
+ description: string;
219
+ };
220
+ request: {
221
+ type: FunctionConstructor;
222
+ default: null;
223
+ description: string;
224
+ };
225
+ }>> & Readonly<{
226
+ onClick?: ((...args: any[]) => any) | undefined;
227
+ }>, "focus" | ("type" | "color" | "size" | "loading" | "disabled" | "width" | "text" | "round" | "singleIcon" | "dashed" | "request")> & import('vue').ShallowUnwrapRef<{
228
+ focus: () => void;
229
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
230
+ $slots: {
231
+ default?(_: {}): any;
232
+ };
233
+ }) | null;
234
+ };
235
+ rootEl: any;
4
236
  };
237
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
5
238
  declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
6
239
  type: {
7
240
  type: StringConstructor;
@@ -93,14 +326,239 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
93
326
  }>> & Readonly<{
94
327
  onClose?: ((...args: any[]) => any) | undefined;
95
328
  }>, {
96
- cancel: Function;
97
329
  type: string;
330
+ cancel: Function;
98
331
  ok: Function;
99
- closeByEsc: boolean;
100
332
  closeOnClickOverlay: boolean;
333
+ closeByEsc: boolean;
101
334
  transformOrigin: string;
102
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
103
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
335
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
336
+ okRef1: ({
337
+ $: import('vue').ComponentInternalInstance;
338
+ $data: {};
339
+ $props: Partial<{
340
+ type: import('../../..').ButtonType;
341
+ color: LewColor;
342
+ size: import('../../..').ButtonSize;
343
+ loading: boolean;
344
+ disabled: boolean;
345
+ width: string | number;
346
+ text: string;
347
+ round: boolean;
348
+ singleIcon: boolean;
349
+ dashed: boolean;
350
+ request: Function;
351
+ }> & Omit<{
352
+ readonly type: import('../../..').ButtonType;
353
+ readonly color: LewColor;
354
+ readonly size: import('../../..').ButtonSize;
355
+ readonly loading: boolean;
356
+ readonly disabled: boolean;
357
+ readonly text: string;
358
+ readonly round: boolean;
359
+ readonly singleIcon: boolean;
360
+ readonly dashed: boolean;
361
+ readonly request: Function;
362
+ readonly width?: string | number | undefined;
363
+ readonly onClick?: ((...args: any[]) => any) | undefined;
364
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "color" | "size" | "loading" | "disabled" | "width" | "text" | "round" | "singleIcon" | "dashed" | "request">;
365
+ $attrs: {
366
+ [x: string]: unknown;
367
+ };
368
+ $refs: {
369
+ [x: string]: unknown;
370
+ } & {
371
+ buttonRef: HTMLButtonElement;
372
+ };
373
+ $slots: Readonly<{
374
+ [name: string]: import('vue').Slot<any> | undefined;
375
+ }>;
376
+ $root: ComponentPublicInstance | null;
377
+ $parent: ComponentPublicInstance | null;
378
+ $host: Element | null;
379
+ $emit: (event: "click", ...args: any[]) => void;
380
+ $el: HTMLButtonElement;
381
+ $options: import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
382
+ text: {
383
+ type: StringConstructor;
384
+ default: string;
385
+ description: string;
386
+ validator(value: string): boolean;
387
+ };
388
+ width: {
389
+ type: (StringConstructor | NumberConstructor)[];
390
+ default: undefined;
391
+ description: string;
392
+ };
393
+ type: {
394
+ type: PropType<import('../../..').ButtonType>;
395
+ default: string;
396
+ description: string;
397
+ validator(value: import('../../..').ButtonType): boolean;
398
+ };
399
+ size: {
400
+ type: PropType<import('../../..').ButtonSize>;
401
+ default: string;
402
+ description: string;
403
+ validator(value: import('../../..').ButtonSize): boolean;
404
+ };
405
+ singleIcon: {
406
+ type: BooleanConstructor;
407
+ default: boolean;
408
+ description: string;
409
+ };
410
+ color: {
411
+ type: PropType<LewColor>;
412
+ default: string;
413
+ description: string;
414
+ validator(value: LewColor): boolean;
415
+ };
416
+ round: {
417
+ type: BooleanConstructor;
418
+ default: boolean;
419
+ description: string;
420
+ };
421
+ dashed: {
422
+ type: BooleanConstructor;
423
+ default: boolean;
424
+ description: string;
425
+ };
426
+ loading: {
427
+ type: BooleanConstructor;
428
+ default: boolean;
429
+ description: string;
430
+ };
431
+ disabled: {
432
+ type: BooleanConstructor;
433
+ default: boolean;
434
+ description: string;
435
+ };
436
+ request: {
437
+ type: FunctionConstructor;
438
+ default: null;
439
+ description: string;
440
+ };
441
+ }>> & Readonly<{
442
+ onClick?: ((...args: any[]) => any) | undefined;
443
+ }>, {
444
+ focus: () => void;
445
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
446
+ click: (...args: any[]) => void;
447
+ }, string, {
448
+ type: import('../../..').ButtonType;
449
+ color: LewColor;
450
+ size: import('../../..').ButtonSize;
451
+ loading: boolean;
452
+ disabled: boolean;
453
+ width: string | number;
454
+ text: string;
455
+ round: boolean;
456
+ singleIcon: boolean;
457
+ dashed: boolean;
458
+ request: Function;
459
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
460
+ beforeCreate?: (() => void) | (() => void)[];
461
+ created?: (() => void) | (() => void)[];
462
+ beforeMount?: (() => void) | (() => void)[];
463
+ mounted?: (() => void) | (() => void)[];
464
+ beforeUpdate?: (() => void) | (() => void)[];
465
+ updated?: (() => void) | (() => void)[];
466
+ activated?: (() => void) | (() => void)[];
467
+ deactivated?: (() => void) | (() => void)[];
468
+ beforeDestroy?: (() => void) | (() => void)[];
469
+ beforeUnmount?: (() => void) | (() => void)[];
470
+ destroyed?: (() => void) | (() => void)[];
471
+ unmounted?: (() => void) | (() => void)[];
472
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
473
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
474
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
475
+ };
476
+ $forceUpdate: () => void;
477
+ $nextTick: typeof nextTick;
478
+ $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;
479
+ } & Readonly<{
480
+ type: import('../../..').ButtonType;
481
+ color: LewColor;
482
+ size: import('../../..').ButtonSize;
483
+ loading: boolean;
484
+ disabled: boolean;
485
+ width: string | number;
486
+ text: string;
487
+ round: boolean;
488
+ singleIcon: boolean;
489
+ dashed: boolean;
490
+ request: Function;
491
+ }> & Omit<Readonly<globalThis.ExtractPropTypes<{
492
+ text: {
493
+ type: StringConstructor;
494
+ default: string;
495
+ description: string;
496
+ validator(value: string): boolean;
497
+ };
498
+ width: {
499
+ type: (StringConstructor | NumberConstructor)[];
500
+ default: undefined;
501
+ description: string;
502
+ };
503
+ type: {
504
+ type: PropType<import('../../..').ButtonType>;
505
+ default: string;
506
+ description: string;
507
+ validator(value: import('../../..').ButtonType): boolean;
508
+ };
509
+ size: {
510
+ type: PropType<import('../../..').ButtonSize>;
511
+ default: string;
512
+ description: string;
513
+ validator(value: import('../../..').ButtonSize): boolean;
514
+ };
515
+ singleIcon: {
516
+ type: BooleanConstructor;
517
+ default: boolean;
518
+ description: string;
519
+ };
520
+ color: {
521
+ type: PropType<LewColor>;
522
+ default: string;
523
+ description: string;
524
+ validator(value: LewColor): boolean;
525
+ };
526
+ round: {
527
+ type: BooleanConstructor;
528
+ default: boolean;
529
+ description: string;
530
+ };
531
+ dashed: {
532
+ type: BooleanConstructor;
533
+ default: boolean;
534
+ description: string;
535
+ };
536
+ loading: {
537
+ type: BooleanConstructor;
538
+ default: boolean;
539
+ description: string;
540
+ };
541
+ disabled: {
542
+ type: BooleanConstructor;
543
+ default: boolean;
544
+ description: string;
545
+ };
546
+ request: {
547
+ type: FunctionConstructor;
548
+ default: null;
549
+ description: string;
550
+ };
551
+ }>> & Readonly<{
552
+ onClick?: ((...args: any[]) => any) | undefined;
553
+ }>, "focus" | ("type" | "color" | "size" | "loading" | "disabled" | "width" | "text" | "round" | "singleIcon" | "dashed" | "request")> & import('vue').ShallowUnwrapRef<{
554
+ focus: () => void;
555
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
556
+ $slots: {
557
+ default?(_: {}): any;
558
+ };
559
+ }) | null;
560
+ }, any>;
561
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
104
562
  export default _default;
105
563
  type __VLS_WithTemplateSlots<T, S> = T & {
106
564
  new (): {
@@ -1,4 +1,4 @@
1
- type Options = {
1
+ interface Options {
2
2
  title: string;
3
3
  content: string;
4
4
  ok?: () => boolean | Promise<boolean>;
@@ -8,17 +8,17 @@ type Options = {
8
8
  cancelText?: string;
9
9
  closeOnClickOverlay?: boolean;
10
10
  closeByEsc?: boolean;
11
- };
11
+ }
12
12
  type DialogType = 'warning' | 'error' | 'info' | 'normal' | 'success';
13
13
  export declare const LewDialog: {
14
- error: (options: Options) => void;
15
14
  info: (options: Options) => void;
15
+ error: (options: Options) => void;
16
16
  normal: (options: Options) => void;
17
17
  warning: (options: Options) => void;
18
18
  success: (options: Options) => void;
19
19
  name: string;
20
20
  };
21
- export type LewDialog = {
21
+ export type LewDialogType = {
22
22
  name: string;
23
23
  } & Record<DialogType, (options: Options) => void>;
24
24
  export * from './props';
@@ -1,5 +1,4 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
-
3
2
  export declare const dialogProps: {
4
3
  type: {
5
4
  type: StringConstructor;
@@ -1,3 +1,3 @@
1
- export * from './message';
2
1
  export * from './dialog';
2
+ export * from './message';
3
3
  export * from './notification';
@@ -1,3 +1,2 @@
1
-
2
1
  declare const LewMessage: any;
3
2
  export default LewMessage;
@@ -1,5 +1,7 @@
1
+ declare function add(type: string, title: string, content: string, duration: number, showProgress: boolean, width: number | string): string;
2
+ declare function handleClose(id: string): void;
1
3
  declare const _default: import('vue').DefineComponent<{}, {
2
- add: (type: string, title: string, content: string, duration: number, showProgress: boolean, width: number | string) => string;
3
- handleClose: (id: string) => void;
4
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
4
+ add: typeof add;
5
+ handleClose: typeof handleClose;
6
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
5
7
  export default _default;