@squirrel-cloud/ui-vue 0.4.1 → 0.4.3
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/dialog/dialog.d.ts +34 -0
- package/dist/components/dialog/index.d.ts +2 -0
- package/dist/components/editor/editor-blur.d.ts +10 -0
- package/dist/components/editor/editor-bold.d.ts +16 -0
- package/dist/components/editor/editor-italic.d.ts +16 -0
- package/dist/components/editor/editor-ol.d.ts +10 -0
- package/dist/components/editor/editor-strikethrough.d.ts +10 -0
- package/dist/components/editor/editor-ul.d.ts +10 -0
- package/dist/components/editor/editor-underline.d.ts +16 -0
- package/dist/components/editor/editor.d.ts +150 -6
- package/dist/components/image/image-viewer.d.ts +2 -0
- package/dist/components/image-crop/image-crop.d.ts +11 -0
- package/dist/components/image-crop/index.d.ts +2 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/mask/index.d.ts +2 -0
- package/dist/components/mask/mask.d.ts +28 -0
- package/dist/components/upload/index.d.ts +2 -0
- package/dist/components/upload/upload.d.ts +26 -0
- package/dist/props/alert/alert.d.ts +4 -4
- package/dist/props/dialog/dialog.d.ts +35 -0
- package/dist/props/dialog/index.d.ts +1 -0
- package/dist/props/editor/editor-control.d.ts +25 -0
- package/dist/props/editor/index.d.ts +1 -0
- package/dist/props/image/image-viewer.d.ts +2 -1
- package/dist/props/image-crop/image-crop.d.ts +13 -0
- package/dist/props/image-crop/index.d.ts +1 -0
- package/dist/props/index.d.ts +4 -0
- package/dist/props/mask/index.d.ts +1 -0
- package/dist/props/mask/mask.d.ts +18 -0
- package/dist/props/upload/index.d.ts +1 -0
- package/dist/props/upload/upload.d.ts +33 -0
- package/dist/squirrel-cloud-ui-vue.js +4717 -4018
- package/dist/squirrel-cloud-ui-vue.umd.cjs +34 -34
- package/dist/style.css +1 -1
- package/license +220 -220
- package/package.json +2 -2
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DialogProps } from '../../props';
|
|
2
|
+
type __VLS_Props = DialogProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
'visible'?: boolean;
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
header?(_: {}): any;
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
footer?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
rootEl: any;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
"update:visible": (value: boolean) => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
20
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
okText: string;
|
|
23
|
+
cancelText: string;
|
|
24
|
+
footer: boolean;
|
|
25
|
+
keyboard: boolean;
|
|
26
|
+
maskCloseable: boolean;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EditorControlProps } from '../../props';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<EditorControlProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
updateText: (list: string[], startOffset: number, endOffset: number) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<EditorControlProps> & Readonly<{
|
|
5
|
+
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
rows: string[];
|
|
8
|
+
selectInfo: Record<string, number>;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EditorControlProps } from '../../props';
|
|
2
|
+
/**
|
|
3
|
+
* 设置加粗
|
|
4
|
+
*/
|
|
5
|
+
declare function setBold(): void;
|
|
6
|
+
declare const _default: import('vue').DefineComponent<EditorControlProps, {
|
|
7
|
+
setBold: typeof setBold;
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
updateText: (list: string[], startOffset: number, endOffset: number) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<EditorControlProps> & Readonly<{
|
|
11
|
+
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
rows: string[];
|
|
14
|
+
selectInfo: Record<string, number>;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EditorControlProps } from '../../props';
|
|
2
|
+
/**
|
|
3
|
+
* 设置斜体
|
|
4
|
+
*/
|
|
5
|
+
declare function setItalic(): void;
|
|
6
|
+
declare const _default: import('vue').DefineComponent<EditorControlProps, {
|
|
7
|
+
setItalic: typeof setItalic;
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
updateText: (list: string[], startOffset: number, endOffset: number) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<EditorControlProps> & Readonly<{
|
|
11
|
+
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
rows: string[];
|
|
14
|
+
selectInfo: Record<string, number>;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EditorControlProps } from '../../props';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<EditorControlProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
updateText: (list: string[], startOffset: number, endOffset: number) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<EditorControlProps> & Readonly<{
|
|
5
|
+
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
rows: string[];
|
|
8
|
+
selectInfo: Record<string, number>;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EditorControlProps } from '../../props';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<EditorControlProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
updateText: (list: string[], startOffset: number, endOffset: number) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<EditorControlProps> & Readonly<{
|
|
5
|
+
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
rows: string[];
|
|
8
|
+
selectInfo: Record<string, number>;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EditorControlProps } from '../../props';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<EditorControlProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
updateText: (list: string[], startOffset: number, endOffset: number) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<EditorControlProps> & Readonly<{
|
|
5
|
+
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
rows: string[];
|
|
8
|
+
selectInfo: Record<string, number>;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EditorControlProps } from '../../props';
|
|
2
|
+
/**
|
|
3
|
+
* 设置下划线
|
|
4
|
+
*/
|
|
5
|
+
declare function setUnderline(): void;
|
|
6
|
+
declare const _default: import('vue').DefineComponent<EditorControlProps, {
|
|
7
|
+
setUnderline: typeof setUnderline;
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
updateText: (list: string[], startOffset: number, endOffset: number) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<EditorControlProps> & Readonly<{
|
|
11
|
+
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
rows: string[];
|
|
14
|
+
selectInfo: Record<string, number>;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
export default _default;
|
|
@@ -10,6 +10,78 @@ declare function __VLS_template(): {
|
|
|
10
10
|
control?(_: {}): any;
|
|
11
11
|
};
|
|
12
12
|
refs: {
|
|
13
|
+
boldRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
14
|
+
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
setBold: () => void;
|
|
17
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
updateText: (list: string[], startOffset: number, endOffset: number) => any;
|
|
19
|
+
}, import('vue').PublicProps, {
|
|
20
|
+
rows: string[];
|
|
21
|
+
selectInfo: Record<string, number>;
|
|
22
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
23
|
+
P: {};
|
|
24
|
+
B: {};
|
|
25
|
+
D: {};
|
|
26
|
+
C: {};
|
|
27
|
+
M: {};
|
|
28
|
+
Defaults: {};
|
|
29
|
+
}, Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
30
|
+
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
31
|
+
}>, {
|
|
32
|
+
setBold: () => void;
|
|
33
|
+
}, {}, {}, {}, {
|
|
34
|
+
rows: string[];
|
|
35
|
+
selectInfo: Record<string, number>;
|
|
36
|
+
}> | null;
|
|
37
|
+
italicRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
38
|
+
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
39
|
+
}>, {
|
|
40
|
+
setItalic: () => void;
|
|
41
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
42
|
+
updateText: (list: string[], startOffset: number, endOffset: number) => any;
|
|
43
|
+
}, import('vue').PublicProps, {
|
|
44
|
+
rows: string[];
|
|
45
|
+
selectInfo: Record<string, number>;
|
|
46
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
47
|
+
P: {};
|
|
48
|
+
B: {};
|
|
49
|
+
D: {};
|
|
50
|
+
C: {};
|
|
51
|
+
M: {};
|
|
52
|
+
Defaults: {};
|
|
53
|
+
}, Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
54
|
+
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
55
|
+
}>, {
|
|
56
|
+
setItalic: () => void;
|
|
57
|
+
}, {}, {}, {}, {
|
|
58
|
+
rows: string[];
|
|
59
|
+
selectInfo: Record<string, number>;
|
|
60
|
+
}> | null;
|
|
61
|
+
underlineRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
62
|
+
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
63
|
+
}>, {
|
|
64
|
+
setUnderline: () => void;
|
|
65
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
66
|
+
updateText: (list: string[], startOffset: number, endOffset: number) => any;
|
|
67
|
+
}, import('vue').PublicProps, {
|
|
68
|
+
rows: string[];
|
|
69
|
+
selectInfo: Record<string, number>;
|
|
70
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
71
|
+
P: {};
|
|
72
|
+
B: {};
|
|
73
|
+
D: {};
|
|
74
|
+
C: {};
|
|
75
|
+
M: {};
|
|
76
|
+
Defaults: {};
|
|
77
|
+
}, Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
78
|
+
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
79
|
+
}>, {
|
|
80
|
+
setUnderline: () => void;
|
|
81
|
+
}, {}, {}, {}, {
|
|
82
|
+
rows: string[];
|
|
83
|
+
selectInfo: Record<string, number>;
|
|
84
|
+
}> | null;
|
|
13
85
|
inputRef: ({
|
|
14
86
|
$: import('vue').ComponentInternalInstance;
|
|
15
87
|
$data: {};
|
|
@@ -80,9 +152,9 @@ declare function __VLS_template(): {
|
|
|
80
152
|
round: boolean;
|
|
81
153
|
disabled: boolean;
|
|
82
154
|
resize: import('../../../typings').TextareaResizeType;
|
|
155
|
+
rows: number | string;
|
|
83
156
|
readonly: boolean;
|
|
84
157
|
autocomplete: string;
|
|
85
|
-
rows: number | string;
|
|
86
158
|
cols: number | string;
|
|
87
159
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
88
160
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -109,9 +181,9 @@ declare function __VLS_template(): {
|
|
|
109
181
|
round: boolean;
|
|
110
182
|
disabled: boolean;
|
|
111
183
|
resize: import('../../../typings').TextareaResizeType;
|
|
184
|
+
rows: number | string;
|
|
112
185
|
readonly: boolean;
|
|
113
186
|
autocomplete: string;
|
|
114
|
-
rows: number | string;
|
|
115
187
|
cols: number | string;
|
|
116
188
|
}> & Omit<Readonly<{
|
|
117
189
|
value?: string;
|
|
@@ -121,7 +193,7 @@ declare function __VLS_template(): {
|
|
|
121
193
|
onChange?: ((e: Event) => any) | undefined;
|
|
122
194
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
123
195
|
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
124
|
-
}>, "blur" | "focus" | ("type" | "round" | "disabled" | "resize" | "
|
|
196
|
+
}>, "blur" | "focus" | ("type" | "round" | "disabled" | "resize" | "rows" | "readonly" | "autocomplete" | "cols")> & import('vue').ShallowUnwrapRef<{
|
|
125
197
|
focus: () => void;
|
|
126
198
|
blur: () => void;
|
|
127
199
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
@@ -139,6 +211,78 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
139
211
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
140
212
|
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
141
213
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
214
|
+
boldRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
215
|
+
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
216
|
+
}>, {
|
|
217
|
+
setBold: () => void;
|
|
218
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
219
|
+
updateText: (list: string[], startOffset: number, endOffset: number) => any;
|
|
220
|
+
}, import('vue').PublicProps, {
|
|
221
|
+
rows: string[];
|
|
222
|
+
selectInfo: Record<string, number>;
|
|
223
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
224
|
+
P: {};
|
|
225
|
+
B: {};
|
|
226
|
+
D: {};
|
|
227
|
+
C: {};
|
|
228
|
+
M: {};
|
|
229
|
+
Defaults: {};
|
|
230
|
+
}, Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
231
|
+
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
232
|
+
}>, {
|
|
233
|
+
setBold: () => void;
|
|
234
|
+
}, {}, {}, {}, {
|
|
235
|
+
rows: string[];
|
|
236
|
+
selectInfo: Record<string, number>;
|
|
237
|
+
}> | null;
|
|
238
|
+
italicRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
239
|
+
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
240
|
+
}>, {
|
|
241
|
+
setItalic: () => void;
|
|
242
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
243
|
+
updateText: (list: string[], startOffset: number, endOffset: number) => any;
|
|
244
|
+
}, import('vue').PublicProps, {
|
|
245
|
+
rows: string[];
|
|
246
|
+
selectInfo: Record<string, number>;
|
|
247
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
248
|
+
P: {};
|
|
249
|
+
B: {};
|
|
250
|
+
D: {};
|
|
251
|
+
C: {};
|
|
252
|
+
M: {};
|
|
253
|
+
Defaults: {};
|
|
254
|
+
}, Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
255
|
+
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
256
|
+
}>, {
|
|
257
|
+
setItalic: () => void;
|
|
258
|
+
}, {}, {}, {}, {
|
|
259
|
+
rows: string[];
|
|
260
|
+
selectInfo: Record<string, number>;
|
|
261
|
+
}> | null;
|
|
262
|
+
underlineRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
263
|
+
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
264
|
+
}>, {
|
|
265
|
+
setUnderline: () => void;
|
|
266
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
267
|
+
updateText: (list: string[], startOffset: number, endOffset: number) => any;
|
|
268
|
+
}, import('vue').PublicProps, {
|
|
269
|
+
rows: string[];
|
|
270
|
+
selectInfo: Record<string, number>;
|
|
271
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
272
|
+
P: {};
|
|
273
|
+
B: {};
|
|
274
|
+
D: {};
|
|
275
|
+
C: {};
|
|
276
|
+
M: {};
|
|
277
|
+
Defaults: {};
|
|
278
|
+
}, Readonly<import('../../props').EditorControlProps> & Readonly<{
|
|
279
|
+
onUpdateText?: ((list: string[], startOffset: number, endOffset: number) => any) | undefined;
|
|
280
|
+
}>, {
|
|
281
|
+
setUnderline: () => void;
|
|
282
|
+
}, {}, {}, {}, {
|
|
283
|
+
rows: string[];
|
|
284
|
+
selectInfo: Record<string, number>;
|
|
285
|
+
}> | null;
|
|
142
286
|
inputRef: ({
|
|
143
287
|
$: import('vue').ComponentInternalInstance;
|
|
144
288
|
$data: {};
|
|
@@ -209,9 +353,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
209
353
|
round: boolean;
|
|
210
354
|
disabled: boolean;
|
|
211
355
|
resize: import('../../../typings').TextareaResizeType;
|
|
356
|
+
rows: number | string;
|
|
212
357
|
readonly: boolean;
|
|
213
358
|
autocomplete: string;
|
|
214
|
-
rows: number | string;
|
|
215
359
|
cols: number | string;
|
|
216
360
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
217
361
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -238,9 +382,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
238
382
|
round: boolean;
|
|
239
383
|
disabled: boolean;
|
|
240
384
|
resize: import('../../../typings').TextareaResizeType;
|
|
385
|
+
rows: number | string;
|
|
241
386
|
readonly: boolean;
|
|
242
387
|
autocomplete: string;
|
|
243
|
-
rows: number | string;
|
|
244
388
|
cols: number | string;
|
|
245
389
|
}> & Omit<Readonly<{
|
|
246
390
|
value?: string;
|
|
@@ -250,7 +394,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
250
394
|
onChange?: ((e: Event) => any) | undefined;
|
|
251
395
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
252
396
|
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
253
|
-
}>, "blur" | "focus" | ("type" | "round" | "disabled" | "resize" | "
|
|
397
|
+
}>, "blur" | "focus" | ("type" | "round" | "disabled" | "resize" | "rows" | "readonly" | "autocomplete" | "cols")> & import('vue').ShallowUnwrapRef<{
|
|
254
398
|
focus: () => void;
|
|
255
399
|
blur: () => void;
|
|
256
400
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
@@ -8,6 +8,8 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
8
8
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
9
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
|
+
keyboard: boolean;
|
|
12
|
+
maskCloseable: boolean;
|
|
11
13
|
toolbar: boolean;
|
|
12
14
|
minScale: number;
|
|
13
15
|
maxScale: number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ImageCropProps } from '../../props';
|
|
2
|
+
declare function cropImage(): string | undefined;
|
|
3
|
+
declare const _default: import('vue').DefineComponent<ImageCropProps, {
|
|
4
|
+
cropImage: typeof cropImage;
|
|
5
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ImageCropProps> & Readonly<{}>, {
|
|
6
|
+
aspectRatio: number;
|
|
7
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
8
|
+
cropperRef: HTMLDivElement;
|
|
9
|
+
imgRef: HTMLImageElement;
|
|
10
|
+
}, HTMLDivElement>;
|
|
11
|
+
export default _default;
|
|
@@ -7,10 +7,12 @@ export * from './blur';
|
|
|
7
7
|
export * from './button';
|
|
8
8
|
export * from './card';
|
|
9
9
|
export * from './checkbox';
|
|
10
|
+
export * from './dialog';
|
|
10
11
|
export * from './divider';
|
|
11
12
|
export * from './editor';
|
|
12
13
|
export * from './form';
|
|
13
14
|
export * from './image';
|
|
15
|
+
export * from './image-crop';
|
|
14
16
|
export * from './input';
|
|
15
17
|
export * from './message';
|
|
16
18
|
export * from './pagination';
|
|
@@ -23,3 +25,4 @@ export * from './tag';
|
|
|
23
25
|
export * from './text';
|
|
24
26
|
export * from './timeline';
|
|
25
27
|
export * from './tooltip';
|
|
28
|
+
export * from './upload';
|
|
@@ -43,9 +43,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
43
43
|
round: boolean;
|
|
44
44
|
disabled: boolean;
|
|
45
45
|
resize: import('../..').TextareaResizeType;
|
|
46
|
+
rows: number | string;
|
|
46
47
|
readonly: boolean;
|
|
47
48
|
autocomplete: string;
|
|
48
|
-
rows: number | string;
|
|
49
49
|
cols: number | string;
|
|
50
50
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
51
51
|
inputRef: HTMLTextAreaElement;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { MaskProps } from '../../props';
|
|
2
|
+
type __VLS_Props = MaskProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
'visible'?: boolean;
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: any;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
"update:visible": (value: boolean) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
keyboard: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UploadProps } from '../../props';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {
|
|
8
|
+
inputRef: HTMLInputElement;
|
|
9
|
+
};
|
|
10
|
+
rootEl: HTMLDivElement;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<UploadProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
change: (list: File[]) => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<UploadProps> & Readonly<{
|
|
16
|
+
onChange?: ((list: File[]) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
18
|
+
inputRef: HTMLInputElement;
|
|
19
|
+
}, HTMLDivElement>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
2
|
import { ComponentType } from '../../typings';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* 警告属性
|
|
5
5
|
*/
|
|
6
6
|
export interface AlertProps {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* 警告类型
|
|
9
9
|
*/
|
|
10
10
|
type?: ComponentType;
|
|
11
11
|
/**
|
|
@@ -13,11 +13,11 @@ export interface AlertProps {
|
|
|
13
13
|
*/
|
|
14
14
|
showIcon?: boolean;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* 警告图标
|
|
17
17
|
*/
|
|
18
18
|
icon?: Component;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* 警告内容
|
|
21
21
|
*/
|
|
22
22
|
text: string;
|
|
23
23
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ComponentType, Promiseable } from '../../typings';
|
|
2
|
+
import { MaskProps } from '..';
|
|
3
|
+
/**
|
|
4
|
+
* 弹出框属性
|
|
5
|
+
*/
|
|
6
|
+
export interface DialogProps extends MaskProps {
|
|
7
|
+
/**
|
|
8
|
+
* 按钮类型
|
|
9
|
+
*/
|
|
10
|
+
type?: ComponentType;
|
|
11
|
+
/**
|
|
12
|
+
* 弹出框标题
|
|
13
|
+
*/
|
|
14
|
+
title?: string;
|
|
15
|
+
/**
|
|
16
|
+
* 确认按钮文本
|
|
17
|
+
*/
|
|
18
|
+
okText?: string;
|
|
19
|
+
/**
|
|
20
|
+
* 取消按钮文本
|
|
21
|
+
*/
|
|
22
|
+
cancelText?: string;
|
|
23
|
+
/**
|
|
24
|
+
* 是否显示底栏
|
|
25
|
+
*/
|
|
26
|
+
footer?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* 是否可关闭
|
|
29
|
+
*/
|
|
30
|
+
closeable?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* 确认回调
|
|
33
|
+
*/
|
|
34
|
+
onOk?: () => Promiseable<boolean>;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dialog';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 编辑器控制器属性
|
|
3
|
+
*/
|
|
4
|
+
export interface EditorControlProps {
|
|
5
|
+
/**
|
|
6
|
+
* 是否禁用
|
|
7
|
+
*/
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* 编辑器行集合
|
|
11
|
+
*/
|
|
12
|
+
rows?: string[];
|
|
13
|
+
/**
|
|
14
|
+
* 编辑器选中值
|
|
15
|
+
*/
|
|
16
|
+
selectedVal?: string;
|
|
17
|
+
/**
|
|
18
|
+
* 编辑器选中行
|
|
19
|
+
*/
|
|
20
|
+
selectedRow?: number;
|
|
21
|
+
/**
|
|
22
|
+
* 编辑器选区
|
|
23
|
+
*/
|
|
24
|
+
selectInfo?: Record<string, number>;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './image-crop';
|
package/dist/props/index.d.ts
CHANGED
|
@@ -5,11 +5,14 @@ export * from './badge';
|
|
|
5
5
|
export * from './button';
|
|
6
6
|
export * from './card';
|
|
7
7
|
export * from './checkbox';
|
|
8
|
+
export * from './dialog';
|
|
8
9
|
export * from './divider';
|
|
9
10
|
export * from './editor';
|
|
10
11
|
export * from './form';
|
|
11
12
|
export * from './image';
|
|
13
|
+
export * from './image-crop';
|
|
12
14
|
export * from './input';
|
|
15
|
+
export * from './mask';
|
|
13
16
|
export * from './message';
|
|
14
17
|
export * from './pagination';
|
|
15
18
|
export * from './popover';
|
|
@@ -21,3 +24,4 @@ export * from './tag';
|
|
|
21
24
|
export * from './text';
|
|
22
25
|
export * from './timeline';
|
|
23
26
|
export * from './tooltip';
|
|
27
|
+
export * from './upload';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './mask';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Promiseable } from '../../typings';
|
|
2
|
+
/**
|
|
3
|
+
* 遮罩属性
|
|
4
|
+
*/
|
|
5
|
+
export interface MaskProps {
|
|
6
|
+
/**
|
|
7
|
+
* 按下ESC时是否关闭
|
|
8
|
+
*/
|
|
9
|
+
keyboard?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* 点击遮罩时是否关闭
|
|
12
|
+
*/
|
|
13
|
+
maskCloseable?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* 关闭回调
|
|
16
|
+
*/
|
|
17
|
+
onClose?: () => Promiseable<boolean>;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './upload';
|