lew-ui 2.7.93 → 2.8.2
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.
- package/dist/_components/CloseButton.vue.d.ts +1 -1
- package/dist/_components/CloseIcon.vue.d.ts +1 -1
- package/dist/_components/CommonIcon.vue.d.ts +1 -1
- package/dist/_components/CommonInput.vue.d.ts +3 -81
- package/dist/auto-imports.d.ts +5 -0
- package/dist/components/data/pagination/src/LewPagination.vue.d.ts +13 -2
- package/dist/components/data/pagination/src/props.d.ts +5 -0
- package/dist/components/data/tree/src/LewTreeItem.vue.d.ts +1 -1
- package/dist/components/feedback/drawer/src/LewDrawer.vue.d.ts +9 -36
- package/dist/components/feedback/drawer/src/props.d.ts +5 -18
- package/dist/components/feedback/index.d.ts +0 -1
- package/dist/components/feedback/modal/src/LewModal.vue.d.ts +9 -52
- package/dist/components/feedback/modal/src/props.d.ts +5 -26
- package/dist/components/feedback/popok/src/LewPopok.vue.d.ts +10 -444
- package/dist/components/feedback/popok/src/props.d.ts +5 -20
- package/dist/components/form/cascader/src/LewCascader.vue.d.ts +1 -1
- package/dist/components/form/color-picker/src/LewColorPicker.vue.d.ts +1 -1
- package/dist/components/form/date-picker/src/LewDatePicker.vue.d.ts +1 -1
- package/dist/components/form/date-range-picker/src/LewDateRangePicker.vue.d.ts +1 -1
- package/dist/components/form/form/src/LewForm.vue.d.ts +1 -1
- package/dist/components/form/form/src/LewFormItem.vue.d.ts +1 -1
- package/dist/components/form/index.d.ts +0 -1
- package/dist/components/form/input/src/LewInput.vue.d.ts +1 -76
- package/dist/components/form/input/src/props.d.ts +2 -36
- package/dist/components/form/input-number/src/LewInputNumber.vue.d.ts +1 -1
- package/dist/components/form/input-tag/src/LewInputTag.vue.d.ts +3 -81
- package/dist/components/form/select/src/LewSelect.vue.d.ts +9 -167
- package/dist/components/form/slider/src/LewSlider.vue.d.ts +1 -1
- package/dist/components/form/slider-range/src/LewSliderRange.vue.d.ts +1 -1
- package/dist/components/form/tabs/src/LewTabs.vue.d.ts +1 -1
- package/dist/components/form/textarea/src/LewTextarea.vue.d.ts +2 -2
- package/dist/components/form/tree-select/src/LewTreeSelect.vue.d.ts +11 -167
- package/dist/components/form/upload/src/LewUpload.vue.d.ts +6 -6
- package/dist/components/general/button/index.d.ts +4 -3
- package/dist/components/general/button/src/LewButton.vue.d.ts +5 -5
- package/dist/components/general/button/src/props.d.ts +3 -1
- package/dist/components/general/flex/src/LewFlex.vue.d.ts +1 -1
- package/dist/components/general/image/src/LewImage.vue.d.ts +1 -1
- package/dist/components/general/index.d.ts +0 -2
- package/dist/components/general/tag/src/LewTag.vue.d.ts +3 -3
- package/dist/components/navigation/index.d.ts +0 -3
- package/dist/directives/index.d.ts +0 -1
- package/dist/global.d.ts +0 -1
- package/dist/index.css +1 -1
- package/dist/index.js +11441 -12348
- package/dist/locals/de.d.ts +17 -13
- package/dist/locals/en.d.ts +17 -13
- package/dist/locals/es.d.ts +17 -13
- package/dist/locals/fr.d.ts +17 -13
- package/dist/locals/it.d.ts +17 -13
- package/dist/locals/ja.d.ts +17 -13
- package/dist/locals/ko.d.ts +17 -13
- package/dist/locals/pt.d.ts +17 -13
- package/dist/locals/zh.d.ts +17 -13
- package/dist/methods/dialog/src/LewDialog.vue.d.ts +10 -244
- package/dist/methods/dialog/src/props.d.ts +5 -20
- package/dist/methods/message/src/MessageContainer.vue.d.ts +9 -0
- package/dist/methods/message/src/MessageItem.vue.d.ts +6 -0
- package/dist/methods/message/src/index.d.ts +1 -0
- package/dist/types/components.d.ts +11 -21
- package/dist/types/directives.d.ts +0 -4
- package/dist/types/methods.d.ts +3 -4
- package/dist/utils/index.d.ts +4 -0
- package/dist/validators/typeValues.d.ts +1 -6
- package/package.json +2 -3
- package/dist/components/feedback/empty/index.d.ts +0 -2
- package/dist/components/feedback/empty/src/LewEmpty.vue.d.ts +0 -87
- package/dist/components/feedback/empty/src/props.d.ts +0 -37
- package/dist/components/form/input-table/index.d.ts +0 -3
- package/dist/components/form/input-table/src/FormModal.vue.d.ts +0 -271
- package/dist/components/form/input-table/src/LewInputTable.vue.d.ts +0 -794
- package/dist/components/form/input-table/src/emits.d.ts +0 -3
- package/dist/components/form/input-table/src/props.d.ts +0 -116
- package/dist/components/general/mark/index.d.ts +0 -2
- package/dist/components/general/mark/src/LewMark.vue.d.ts +0 -59
- package/dist/components/general/mark/src/props.d.ts +0 -24
- package/dist/components/general/title/index.d.ts +0 -3
- package/dist/components/general/title/src/LewTitle.vue.d.ts +0 -64
- package/dist/components/general/title/src/emits.d.ts +0 -3
- package/dist/components/general/title/src/props.d.ts +0 -25
- package/dist/components/navigation/back-top/index.d.ts +0 -7
- package/dist/components/navigation/back-top/src/LewBackTop.vue.d.ts +0 -61
- package/dist/components/navigation/back-top/src/emits.d.ts +0 -2
- package/dist/components/navigation/back-top/src/props.d.ts +0 -23
- package/dist/components/navigation/breadcrumb/index.d.ts +0 -7
- package/dist/components/navigation/breadcrumb/src/LewBreadcrumb.vue.d.ts +0 -35
- package/dist/components/navigation/breadcrumb/src/emits.d.ts +0 -5
- package/dist/components/navigation/breadcrumb/src/props.d.ts +0 -17
- package/dist/components/navigation/steps/index.d.ts +0 -8
- package/dist/components/navigation/steps/src/LewSteps.vue.d.ts +0 -75
- package/dist/components/navigation/steps/src/emits.d.ts +0 -4
- package/dist/components/navigation/steps/src/model.d.ts +0 -7
- package/dist/components/navigation/steps/src/props.d.ts +0 -33
- package/dist/directives/backtop/index.d.ts +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LewDialogPopokFooterButtonItem } from '../../../types';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
3
3
|
icon: {
|
|
4
4
|
type: null;
|
|
@@ -23,25 +23,10 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
23
23
|
default: boolean;
|
|
24
24
|
validator: (value: any) => boolean;
|
|
25
25
|
};
|
|
26
|
-
|
|
27
|
-
type:
|
|
28
|
-
|
|
29
|
-
validator: (value: any) => boolean;
|
|
30
|
-
};
|
|
31
|
-
cancelText: {
|
|
32
|
-
type: StringConstructor;
|
|
33
|
-
defaultLocale: boolean;
|
|
34
|
-
validator: (value: any) => boolean;
|
|
35
|
-
};
|
|
36
|
-
ok: {
|
|
37
|
-
type: PropType<() => Promise<boolean>>;
|
|
38
|
-
default: () => Promise<boolean>;
|
|
39
|
-
validator: (value: any) => boolean;
|
|
40
|
-
};
|
|
41
|
-
cancel: {
|
|
42
|
-
type: PropType<() => Promise<boolean>>;
|
|
43
|
-
default: () => Promise<boolean>;
|
|
44
|
-
validator: (value: any) => boolean;
|
|
26
|
+
footerButtons: {
|
|
27
|
+
type: PropType<LewDialogPopokFooterButtonItem[]>;
|
|
28
|
+
description: string;
|
|
29
|
+
validator: (value: any[] | undefined) => boolean;
|
|
45
30
|
};
|
|
46
31
|
closeOnClickOverlay: {
|
|
47
32
|
type: BooleanConstructor;
|
|
@@ -85,25 +70,10 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
85
70
|
default: boolean;
|
|
86
71
|
validator: (value: any) => boolean;
|
|
87
72
|
};
|
|
88
|
-
|
|
89
|
-
type:
|
|
90
|
-
|
|
91
|
-
validator: (value: any) => boolean;
|
|
92
|
-
};
|
|
93
|
-
cancelText: {
|
|
94
|
-
type: StringConstructor;
|
|
95
|
-
defaultLocale: boolean;
|
|
96
|
-
validator: (value: any) => boolean;
|
|
97
|
-
};
|
|
98
|
-
ok: {
|
|
99
|
-
type: PropType<() => Promise<boolean>>;
|
|
100
|
-
default: () => Promise<boolean>;
|
|
101
|
-
validator: (value: any) => boolean;
|
|
102
|
-
};
|
|
103
|
-
cancel: {
|
|
104
|
-
type: PropType<() => Promise<boolean>>;
|
|
105
|
-
default: () => Promise<boolean>;
|
|
106
|
-
validator: (value: any) => boolean;
|
|
73
|
+
footerButtons: {
|
|
74
|
+
type: PropType<LewDialogPopokFooterButtonItem[]>;
|
|
75
|
+
description: string;
|
|
76
|
+
validator: (value: any[] | undefined) => boolean;
|
|
107
77
|
};
|
|
108
78
|
closeOnClickOverlay: {
|
|
109
79
|
type: BooleanConstructor;
|
|
@@ -125,213 +95,9 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
125
95
|
onClose?: (() => any) | undefined;
|
|
126
96
|
}>, {
|
|
127
97
|
type: import('../../..').LewDialogType;
|
|
128
|
-
cancel: () => Promise<boolean>;
|
|
129
98
|
transformOrigin: string;
|
|
130
|
-
ok: () => Promise<boolean>;
|
|
131
99
|
closeByEsc: boolean;
|
|
132
100
|
closeOnClickOverlay: boolean;
|
|
133
101
|
hideIcon: boolean;
|
|
134
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
135
|
-
okRef: ({
|
|
136
|
-
$: import('vue').ComponentInternalInstance;
|
|
137
|
-
$data: {};
|
|
138
|
-
$props: Partial<{
|
|
139
|
-
loading: boolean;
|
|
140
|
-
type: import('../../..').LewButtonType;
|
|
141
|
-
color: LewColor;
|
|
142
|
-
size: import('../../..').LewButtonSize;
|
|
143
|
-
round: boolean;
|
|
144
|
-
disabled: boolean;
|
|
145
|
-
singleIcon: boolean;
|
|
146
|
-
dashed: boolean;
|
|
147
|
-
}> & Omit<{
|
|
148
|
-
readonly loading: boolean;
|
|
149
|
-
readonly type: import('../../..').LewButtonType;
|
|
150
|
-
readonly color: LewColor;
|
|
151
|
-
readonly size: import('../../..').LewButtonSize;
|
|
152
|
-
readonly round: boolean;
|
|
153
|
-
readonly disabled: boolean;
|
|
154
|
-
readonly singleIcon: boolean;
|
|
155
|
-
readonly dashed: boolean;
|
|
156
|
-
readonly text?: string | undefined;
|
|
157
|
-
readonly request?: (() => Promise<void>) | undefined;
|
|
158
|
-
readonly width?: import("csstype").Property.Width<0 | (string & {})> | undefined;
|
|
159
|
-
readonly onClick?: ((e: MouseEvent) => any) | undefined;
|
|
160
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "loading" | "type" | "color" | "size" | "round" | "disabled" | "singleIcon" | "dashed">;
|
|
161
|
-
$attrs: {
|
|
162
|
-
[x: string]: unknown;
|
|
163
|
-
};
|
|
164
|
-
$refs: {
|
|
165
|
-
[x: string]: unknown;
|
|
166
|
-
};
|
|
167
|
-
$slots: Readonly<{
|
|
168
|
-
[name: string]: globalThis.Slot | undefined;
|
|
169
|
-
}>;
|
|
170
|
-
$root: ComponentPublicInstance | null;
|
|
171
|
-
$parent: ComponentPublicInstance | null;
|
|
172
|
-
$host: Element | null;
|
|
173
|
-
$emit: (event: "click", e: MouseEvent) => void;
|
|
174
|
-
$el: HTMLButtonElement;
|
|
175
|
-
$options: import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
176
|
-
text: {
|
|
177
|
-
type: StringConstructor;
|
|
178
|
-
validator: (value: any) => boolean;
|
|
179
|
-
};
|
|
180
|
-
width: {
|
|
181
|
-
type: PropType<import("csstype").Property.Width>;
|
|
182
|
-
validator: (value: string | number | undefined) => boolean;
|
|
183
|
-
};
|
|
184
|
-
type: {
|
|
185
|
-
type: PropType<import('../../..').LewButtonType>;
|
|
186
|
-
typeValues: string[];
|
|
187
|
-
default: string;
|
|
188
|
-
validator: (value: any) => boolean;
|
|
189
|
-
};
|
|
190
|
-
size: {
|
|
191
|
-
type: PropType<import('../../..').LewButtonSize>;
|
|
192
|
-
typeValues: string[];
|
|
193
|
-
default: string;
|
|
194
|
-
validator: (value: any) => boolean;
|
|
195
|
-
};
|
|
196
|
-
singleIcon: {
|
|
197
|
-
type: BooleanConstructor;
|
|
198
|
-
default: boolean;
|
|
199
|
-
validator: (value: any) => boolean;
|
|
200
|
-
};
|
|
201
|
-
color: {
|
|
202
|
-
type: PropType<LewColor>;
|
|
203
|
-
default: string;
|
|
204
|
-
typeValues: LewColor[];
|
|
205
|
-
validator: (value: any) => boolean;
|
|
206
|
-
};
|
|
207
|
-
round: {
|
|
208
|
-
type: BooleanConstructor;
|
|
209
|
-
default: boolean;
|
|
210
|
-
validator: (value: any) => boolean;
|
|
211
|
-
};
|
|
212
|
-
dashed: {
|
|
213
|
-
type: BooleanConstructor;
|
|
214
|
-
default: boolean;
|
|
215
|
-
validator: (value: any) => boolean;
|
|
216
|
-
};
|
|
217
|
-
loading: {
|
|
218
|
-
type: BooleanConstructor;
|
|
219
|
-
default: boolean;
|
|
220
|
-
validator: (value: any) => boolean;
|
|
221
|
-
};
|
|
222
|
-
disabled: {
|
|
223
|
-
type: BooleanConstructor;
|
|
224
|
-
default: boolean;
|
|
225
|
-
validator: (value: any) => boolean;
|
|
226
|
-
};
|
|
227
|
-
request: {
|
|
228
|
-
type: PropType<() => Promise<void>>;
|
|
229
|
-
validator: (value: any) => boolean;
|
|
230
|
-
};
|
|
231
|
-
}>> & Readonly<{
|
|
232
|
-
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
233
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
234
|
-
click: (e: MouseEvent) => void;
|
|
235
|
-
}, string, {
|
|
236
|
-
loading: boolean;
|
|
237
|
-
type: import('../../..').LewButtonType;
|
|
238
|
-
color: LewColor;
|
|
239
|
-
size: import('../../..').LewButtonSize;
|
|
240
|
-
round: boolean;
|
|
241
|
-
disabled: boolean;
|
|
242
|
-
singleIcon: boolean;
|
|
243
|
-
dashed: boolean;
|
|
244
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
245
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
246
|
-
created?: (() => void) | (() => void)[];
|
|
247
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
248
|
-
mounted?: (() => void) | (() => void)[];
|
|
249
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
250
|
-
updated?: (() => void) | (() => void)[];
|
|
251
|
-
activated?: (() => void) | (() => void)[];
|
|
252
|
-
deactivated?: (() => void) | (() => void)[];
|
|
253
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
254
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
255
|
-
destroyed?: (() => void) | (() => void)[];
|
|
256
|
-
unmounted?: (() => void) | (() => void)[];
|
|
257
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
258
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
259
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
260
|
-
};
|
|
261
|
-
$forceUpdate: () => void;
|
|
262
|
-
$nextTick: typeof import('vue').nextTick;
|
|
263
|
-
$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;
|
|
264
|
-
} & Readonly<{
|
|
265
|
-
loading: boolean;
|
|
266
|
-
type: import('../../..').LewButtonType;
|
|
267
|
-
color: LewColor;
|
|
268
|
-
size: import('../../..').LewButtonSize;
|
|
269
|
-
round: boolean;
|
|
270
|
-
disabled: boolean;
|
|
271
|
-
singleIcon: boolean;
|
|
272
|
-
dashed: boolean;
|
|
273
|
-
}> & Omit<Readonly<globalThis.ExtractPropTypes<{
|
|
274
|
-
text: {
|
|
275
|
-
type: StringConstructor;
|
|
276
|
-
validator: (value: any) => boolean;
|
|
277
|
-
};
|
|
278
|
-
width: {
|
|
279
|
-
type: PropType<import("csstype").Property.Width>;
|
|
280
|
-
validator: (value: string | number | undefined) => boolean;
|
|
281
|
-
};
|
|
282
|
-
type: {
|
|
283
|
-
type: PropType<import('../../..').LewButtonType>;
|
|
284
|
-
typeValues: string[];
|
|
285
|
-
default: string;
|
|
286
|
-
validator: (value: any) => boolean;
|
|
287
|
-
};
|
|
288
|
-
size: {
|
|
289
|
-
type: PropType<import('../../..').LewButtonSize>;
|
|
290
|
-
typeValues: string[];
|
|
291
|
-
default: string;
|
|
292
|
-
validator: (value: any) => boolean;
|
|
293
|
-
};
|
|
294
|
-
singleIcon: {
|
|
295
|
-
type: BooleanConstructor;
|
|
296
|
-
default: boolean;
|
|
297
|
-
validator: (value: any) => boolean;
|
|
298
|
-
};
|
|
299
|
-
color: {
|
|
300
|
-
type: PropType<LewColor>;
|
|
301
|
-
default: string;
|
|
302
|
-
typeValues: LewColor[];
|
|
303
|
-
validator: (value: any) => boolean;
|
|
304
|
-
};
|
|
305
|
-
round: {
|
|
306
|
-
type: BooleanConstructor;
|
|
307
|
-
default: boolean;
|
|
308
|
-
validator: (value: any) => boolean;
|
|
309
|
-
};
|
|
310
|
-
dashed: {
|
|
311
|
-
type: BooleanConstructor;
|
|
312
|
-
default: boolean;
|
|
313
|
-
validator: (value: any) => boolean;
|
|
314
|
-
};
|
|
315
|
-
loading: {
|
|
316
|
-
type: BooleanConstructor;
|
|
317
|
-
default: boolean;
|
|
318
|
-
validator: (value: any) => boolean;
|
|
319
|
-
};
|
|
320
|
-
disabled: {
|
|
321
|
-
type: BooleanConstructor;
|
|
322
|
-
default: boolean;
|
|
323
|
-
validator: (value: any) => boolean;
|
|
324
|
-
};
|
|
325
|
-
request: {
|
|
326
|
-
type: PropType<() => Promise<void>>;
|
|
327
|
-
validator: (value: any) => boolean;
|
|
328
|
-
};
|
|
329
|
-
}>> & Readonly<{
|
|
330
|
-
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
331
|
-
}>, "loading" | "type" | "color" | "size" | "round" | "disabled" | "singleIcon" | "dashed"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
332
|
-
$slots: {
|
|
333
|
-
default?(_: {}): any;
|
|
334
|
-
};
|
|
335
|
-
}) | null;
|
|
336
|
-
}, any>;
|
|
102
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
337
103
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LewDialogType } from '
|
|
1
|
+
import { LewDialogPopokFooterButtonItem, LewDialogType } from '../../../types';
|
|
2
2
|
import { ExtractPublicPropTypes, PropType } from 'vue';
|
|
3
3
|
export declare const dialogProps: {
|
|
4
4
|
icon: {
|
|
@@ -24,25 +24,10 @@ export declare const dialogProps: {
|
|
|
24
24
|
default: boolean;
|
|
25
25
|
validator: (value: any) => boolean;
|
|
26
26
|
};
|
|
27
|
-
|
|
28
|
-
type:
|
|
29
|
-
|
|
30
|
-
validator: (value: any) => boolean;
|
|
31
|
-
};
|
|
32
|
-
cancelText: {
|
|
33
|
-
type: StringConstructor;
|
|
34
|
-
defaultLocale: boolean;
|
|
35
|
-
validator: (value: any) => boolean;
|
|
36
|
-
};
|
|
37
|
-
ok: {
|
|
38
|
-
type: PropType<() => Promise<boolean>>;
|
|
39
|
-
default: () => Promise<boolean>;
|
|
40
|
-
validator: (value: any) => boolean;
|
|
41
|
-
};
|
|
42
|
-
cancel: {
|
|
43
|
-
type: PropType<() => Promise<boolean>>;
|
|
44
|
-
default: () => Promise<boolean>;
|
|
45
|
-
validator: (value: any) => boolean;
|
|
27
|
+
footerButtons: {
|
|
28
|
+
type: PropType<LewDialogPopokFooterButtonItem[]>;
|
|
29
|
+
description: string;
|
|
30
|
+
validator: (value: any[] | undefined) => boolean;
|
|
46
31
|
};
|
|
47
32
|
closeOnClickOverlay: {
|
|
48
33
|
type: BooleanConstructor;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare function add(type: string, content: string, duration: number, customId?: string): string;
|
|
2
|
+
declare function remove(id: string): void;
|
|
3
|
+
declare function closeByCustomId(customId: string): void;
|
|
4
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
5
|
+
add: typeof add;
|
|
6
|
+
remove: typeof remove;
|
|
7
|
+
closeByCustomId: typeof closeByCustomId;
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
type: string;
|
|
3
|
+
content: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Property } from 'csstype';
|
|
2
|
-
import { LewTagProps } from '..';
|
|
2
|
+
import { LewButtonProps, LewTagProps } from '..';
|
|
3
3
|
import { LewComponentSource, LewDirection, LewSize } from './base';
|
|
4
4
|
export type LewButtonType = 'fill' | 'light' | 'ghost' | 'text';
|
|
5
5
|
export type LewButtonSize = 'mini' | 'small' | 'medium' | 'large';
|
|
@@ -10,34 +10,30 @@ export type LewAvatarShape = 'circle' | 'square' | 'sharp';
|
|
|
10
10
|
export type LewImageObjectFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
11
11
|
export type LewImageObjectPosition = 'center' | 'top' | 'bottom' | 'left' | 'right' | 'top left' | 'top right' | 'bottom left' | 'bottom right';
|
|
12
12
|
export type LewInputType = 'text' | 'password';
|
|
13
|
-
export type LewInputPrefixesType = 'icon' | 'select' | 'text';
|
|
14
|
-
export type LewInputSuffixType = 'icon' | 'select' | 'text';
|
|
15
13
|
export type LewTextareaResize = 'none' | 'both' | 'horizontal' | 'vertical';
|
|
16
14
|
export type LewTabsType = 'block' | 'line';
|
|
17
|
-
export type LewBreadcrumbSeparator = 'shoulder' | 'sprit';
|
|
18
15
|
export type LewUploadStatus = 'success' | 'fail' | 'uploading' | 'complete' | 'wrong_type' | 'wrong_size' | 'pending';
|
|
19
16
|
export type LewFormItemAs = 'input' | 'textarea' | 'input-tag' | 'checkbox-group' | 'radio-group' | 'checkbox' | 'select' | 'date-picker' | 'date-range-picker' | 'tabs' | 'cascader' | 'switch' | 'button' | 'upload' | 'input-number' | 'slider' | 'slider-range' | 'color-picker' | 'rate' | 'tree-select';
|
|
20
17
|
export type LewSelectMultipleValueLayout = 'tag' | 'text';
|
|
21
|
-
export type LewStepsStatus = 'pending' | 'loading' | 'done' | 'error' | 'warning';
|
|
22
18
|
export type LewTagClose = () => Promise<boolean>;
|
|
23
|
-
export type LewEmptyType = '404' | 'address' | 'article' | 'goods' | 'likes' | 'car' | 'comment' | 'network' | 'order' | 'search';
|
|
24
19
|
export type LewPopokType = 'error' | 'warning' | 'success' | 'info' | 'normal';
|
|
25
20
|
export type LewDrawerPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
21
|
+
/**
|
|
22
|
+
* 弹层底部按钮:每项 `props` 透传 LewButton(含 `request` 异步等)。
|
|
23
|
+
* Modal / Drawer:关闭逻辑请在 `request` 内自行处理(默认单按钮已带关闭)。
|
|
24
|
+
* Dialog / Popok:`props.request` 执行后默认关闭;若返回 `false` 则保持打开。
|
|
25
|
+
*/
|
|
26
|
+
export interface LewModalFooterButtonItem {
|
|
27
|
+
props?: Partial<LewButtonProps>;
|
|
28
|
+
}
|
|
29
|
+
/** Dialog / Popok 与 Modal 共用同一底部按钮项类型 */
|
|
30
|
+
export type LewDialogPopokFooterButtonItem = LewModalFooterButtonItem;
|
|
26
31
|
export interface LewActionBoxOption {
|
|
27
32
|
label: LewComponentSource;
|
|
28
33
|
icon?: LewComponentSource;
|
|
29
34
|
customRender?: LewComponentSource;
|
|
30
35
|
onClick?: (event?: MouseEvent) => void;
|
|
31
36
|
}
|
|
32
|
-
export interface LewBreadcrumbOption {
|
|
33
|
-
label: string;
|
|
34
|
-
value?: string;
|
|
35
|
-
active?: boolean;
|
|
36
|
-
}
|
|
37
|
-
export interface LewStepsOption {
|
|
38
|
-
title: LewComponentSource;
|
|
39
|
-
description?: LewComponentSource;
|
|
40
|
-
}
|
|
41
37
|
export interface LewTabsOption {
|
|
42
38
|
label: string;
|
|
43
39
|
value: string;
|
|
@@ -74,12 +70,6 @@ export interface LewContextMenusOption {
|
|
|
74
70
|
onClick?: (item: LewContextMenusOption, options: LewContextMenusOption[], instance: any) => void;
|
|
75
71
|
[key: string]: any;
|
|
76
72
|
}
|
|
77
|
-
export interface LewInputTableColumn {
|
|
78
|
-
title: string;
|
|
79
|
-
width?: number;
|
|
80
|
-
field: string;
|
|
81
|
-
as: string;
|
|
82
|
-
}
|
|
83
73
|
export interface LewTableColumn {
|
|
84
74
|
title: string;
|
|
85
75
|
field: string;
|
|
@@ -12,9 +12,6 @@ export interface LewLoadingDirectiveBinding {
|
|
|
12
12
|
iconSize?: number;
|
|
13
13
|
visible?: boolean;
|
|
14
14
|
}
|
|
15
|
-
export interface LewBackTopDirectiveBinding {
|
|
16
|
-
target?: string;
|
|
17
|
-
}
|
|
18
15
|
export interface LewContextMenuDirectiveBinding {
|
|
19
16
|
options?: LewContextMenusOption[];
|
|
20
17
|
disabled?: boolean;
|
|
@@ -23,6 +20,5 @@ export interface LewContextMenuDirectiveBinding {
|
|
|
23
20
|
export interface LewDirectiveBindings {
|
|
24
21
|
'tooltip': LewTooltipDirectiveBinding;
|
|
25
22
|
'loading': LewLoadingDirectiveBinding;
|
|
26
|
-
'backtop': LewBackTopDirectiveBinding;
|
|
27
23
|
'context-menu': LewContextMenuDirectiveBinding;
|
|
28
24
|
}
|
package/dist/types/methods.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { LewComponentSource } from '..';
|
|
2
|
+
import { LewDialogPopokFooterButtonItem } from './components';
|
|
2
3
|
export interface LewDialogOptions {
|
|
3
4
|
type?: LewDialogType;
|
|
4
5
|
icon?: LewComponentSource;
|
|
5
6
|
title?: LewComponentSource;
|
|
6
7
|
content?: LewComponentSource;
|
|
7
8
|
hideIcon?: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
okText?: string;
|
|
11
|
-
cancelText?: string;
|
|
9
|
+
/** 自定义底部按钮列表;每项 `props` 透传 LewButton(`request` 处理异步)。Dialog 中 `request` 返回 `false` 可阻止关闭。不传则默认单个「确认」按钮。 */
|
|
10
|
+
footerButtons?: LewDialogPopokFooterButtonItem[];
|
|
12
11
|
closeOnClickOverlay?: boolean;
|
|
13
12
|
closeByEsc?: boolean;
|
|
14
13
|
}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -6,6 +6,10 @@ export declare const iconColorType: Record<string, string>;
|
|
|
6
6
|
export declare function getColorType(type: string): string;
|
|
7
7
|
export declare function object2class(prefix: string, props: object): string;
|
|
8
8
|
export declare function numFormat(num: number): string;
|
|
9
|
+
/**
|
|
10
|
+
* 按当前语言环境格式化整数(千分位等),不含小数
|
|
11
|
+
*/
|
|
12
|
+
export declare function formatIntegerLocale(num: number, libLocale: string): string;
|
|
9
13
|
export declare function any2px(value: number | string | undefined): string;
|
|
10
14
|
export declare function getUniqueId(): string;
|
|
11
15
|
export declare function formatFormByMap(formMap: any): {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LewColor, LewDialogType, LewDirection, LewDrawerPosition, LewFormItemAs, LewImageObjectFit, LewImageObjectPosition, LewInputType, LewPlacement, LewPopokType, LewSelectMultipleValueLayout, LewSize, LewStatusColor, LewTabsType, LewTagType, LewTextareaResize, LewThemeColor, LewTrigger, LewXAlignment, LewYAlignment } from '../types';
|
|
2
2
|
export declare const validPopokTypeList: LewPopokType[];
|
|
3
3
|
export declare const validColorList: LewColor[];
|
|
4
4
|
export declare const validThemeColorList: LewThemeColor[];
|
|
@@ -13,14 +13,9 @@ export declare const validYAlignmentList: LewYAlignment[];
|
|
|
13
13
|
export declare const validObjectFitList: LewImageObjectFit[];
|
|
14
14
|
export declare const validObjectPositionList: LewImageObjectPosition[];
|
|
15
15
|
export declare const validTagTypeList: LewTagType[];
|
|
16
|
-
export declare const validBreadcrumbSeparatorList: LewBreadcrumbSeparator[];
|
|
17
16
|
export declare const validSelectMultipleValueLayout: LewSelectMultipleValueLayout[];
|
|
18
|
-
export declare const validStepsStatusList: LewStepsStatus[];
|
|
19
17
|
export declare const validFormItemAsList: LewFormItemAs[];
|
|
20
18
|
export declare const validInputTypeList: LewInputType[];
|
|
21
|
-
export declare const validInputPrefixesTypeList: LewInputPrefixesType[];
|
|
22
|
-
export declare const validInputSuffixTypeList: LewInputSuffixType[];
|
|
23
19
|
export declare const validTabsTypeList: LewTabsType[];
|
|
24
20
|
export declare const validDrawerPositionList: LewDrawerPosition[];
|
|
25
21
|
export declare const validDialogTypeList: LewDialogType[];
|
|
26
|
-
export declare const validEmptyTypeList: LewEmptyType[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lew-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.8.2",
|
|
5
5
|
"description": "A Component Library for Vue3.js.",
|
|
6
6
|
"author": "lewkamtao",
|
|
7
7
|
"license": "MIT",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"dev": "vite",
|
|
36
|
-
"build:docs": "pnpm lint:fix && pnpm lint:css:fix && node scripts/extract-types.js &&
|
|
36
|
+
"build:docs": "pnpm lint:fix && pnpm lint:css:fix && node scripts/extract-types.js && vue-tsc --noEmit && vite build -c vite.config.docs.ts",
|
|
37
37
|
"build:lib": "node ./bump-version.js && vue-tsc --noEmit && vite build -c vite.config.lib.ts",
|
|
38
38
|
"analyze": "ANALYZE=true vite build -c vite.config.lib.ts",
|
|
39
39
|
"format": "pnpm lint:fix && pnpm lint:css:fix && node scripts/extract-types.js",
|
|
@@ -80,7 +80,6 @@
|
|
|
80
80
|
"eslint": "^9.31.0",
|
|
81
81
|
"eslint-plugin-format": "^1.0.1",
|
|
82
82
|
"eslint-plugin-unused-imports": "^4.3.0",
|
|
83
|
-
"markdown-it": "^14.1.0",
|
|
84
83
|
"rollup-plugin-visualizer": "^6.0.3",
|
|
85
84
|
"sass": "^1.89.2",
|
|
86
85
|
"stylelint": "16.2.1",
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
attrs: Partial<{}>;
|
|
3
|
-
slots: {
|
|
4
|
-
default?(_: {}): any;
|
|
5
|
-
};
|
|
6
|
-
refs: {};
|
|
7
|
-
rootEl: HTMLDivElement;
|
|
8
|
-
};
|
|
9
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
11
|
-
type: {
|
|
12
|
-
type: PropType<import('../../../..').LewEmptyType>;
|
|
13
|
-
default: string;
|
|
14
|
-
typeValues: import('../../../..').LewEmptyType[];
|
|
15
|
-
validator: (value: any) => boolean;
|
|
16
|
-
};
|
|
17
|
-
title: {
|
|
18
|
-
type: StringConstructor;
|
|
19
|
-
defaultLocale: boolean;
|
|
20
|
-
validator: (value: any) => boolean;
|
|
21
|
-
};
|
|
22
|
-
width: {
|
|
23
|
-
type: PropType<import("csstype").Property.Width>;
|
|
24
|
-
default: string;
|
|
25
|
-
validator: (value: string | number | undefined) => boolean;
|
|
26
|
-
};
|
|
27
|
-
height: {
|
|
28
|
-
type: PropType<import("csstype").Property.Height>;
|
|
29
|
-
default: string;
|
|
30
|
-
validator: (value: string | number | undefined) => boolean;
|
|
31
|
-
};
|
|
32
|
-
fontSize: {
|
|
33
|
-
type: PropType<import("csstype").Property.FontSize>;
|
|
34
|
-
default: string;
|
|
35
|
-
validator: (value: string | number | undefined) => boolean;
|
|
36
|
-
};
|
|
37
|
-
padding: {
|
|
38
|
-
type: PropType<import("csstype").Property.Padding>;
|
|
39
|
-
default: string;
|
|
40
|
-
validator: (value: string | number | undefined) => boolean;
|
|
41
|
-
};
|
|
42
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
43
|
-
type: {
|
|
44
|
-
type: PropType<import('../../../..').LewEmptyType>;
|
|
45
|
-
default: string;
|
|
46
|
-
typeValues: import('../../../..').LewEmptyType[];
|
|
47
|
-
validator: (value: any) => boolean;
|
|
48
|
-
};
|
|
49
|
-
title: {
|
|
50
|
-
type: StringConstructor;
|
|
51
|
-
defaultLocale: boolean;
|
|
52
|
-
validator: (value: any) => boolean;
|
|
53
|
-
};
|
|
54
|
-
width: {
|
|
55
|
-
type: PropType<import("csstype").Property.Width>;
|
|
56
|
-
default: string;
|
|
57
|
-
validator: (value: string | number | undefined) => boolean;
|
|
58
|
-
};
|
|
59
|
-
height: {
|
|
60
|
-
type: PropType<import("csstype").Property.Height>;
|
|
61
|
-
default: string;
|
|
62
|
-
validator: (value: string | number | undefined) => boolean;
|
|
63
|
-
};
|
|
64
|
-
fontSize: {
|
|
65
|
-
type: PropType<import("csstype").Property.FontSize>;
|
|
66
|
-
default: string;
|
|
67
|
-
validator: (value: string | number | undefined) => boolean;
|
|
68
|
-
};
|
|
69
|
-
padding: {
|
|
70
|
-
type: PropType<import("csstype").Property.Padding>;
|
|
71
|
-
default: string;
|
|
72
|
-
validator: (value: string | number | undefined) => boolean;
|
|
73
|
-
};
|
|
74
|
-
}>> & Readonly<{}>, {
|
|
75
|
-
type: import('../../../..').LewEmptyType;
|
|
76
|
-
width: import("csstype").Property.Width<0 | (string & {})>;
|
|
77
|
-
height: import("csstype").Property.Height<0 | (string & {})>;
|
|
78
|
-
fontSize: import("csstype").Property.FontSize<0 | (string & {})>;
|
|
79
|
-
padding: import("csstype").Property.Padding<0 | (string & {})>;
|
|
80
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
81
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
82
|
-
export default _default;
|
|
83
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
84
|
-
new (): {
|
|
85
|
-
$slots: S;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Property } from 'csstype';
|
|
2
|
-
import { LewEmptyType } from '../../../..';
|
|
3
|
-
import { ExtractPublicPropTypes, PropType } from 'vue';
|
|
4
|
-
export declare const emptyProps: {
|
|
5
|
-
type: {
|
|
6
|
-
type: PropType<LewEmptyType>;
|
|
7
|
-
default: string;
|
|
8
|
-
typeValues: LewEmptyType[];
|
|
9
|
-
validator: (value: any) => boolean;
|
|
10
|
-
};
|
|
11
|
-
title: {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
defaultLocale: boolean;
|
|
14
|
-
validator: (value: any) => boolean;
|
|
15
|
-
};
|
|
16
|
-
width: {
|
|
17
|
-
type: PropType<Property.Width>;
|
|
18
|
-
default: string;
|
|
19
|
-
validator: (value: string | number | undefined) => boolean;
|
|
20
|
-
};
|
|
21
|
-
height: {
|
|
22
|
-
type: PropType<Property.Height>;
|
|
23
|
-
default: string;
|
|
24
|
-
validator: (value: string | number | undefined) => boolean;
|
|
25
|
-
};
|
|
26
|
-
fontSize: {
|
|
27
|
-
type: PropType<Property.FontSize>;
|
|
28
|
-
default: string;
|
|
29
|
-
validator: (value: string | number | undefined) => boolean;
|
|
30
|
-
};
|
|
31
|
-
padding: {
|
|
32
|
-
type: PropType<Property.Padding>;
|
|
33
|
-
default: string;
|
|
34
|
-
validator: (value: string | number | undefined) => boolean;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
export type LewEmptyProps = ExtractPublicPropTypes<typeof emptyProps>;
|