@squirrel-cloud/ui-vue 0.3.16 → 0.4.1
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/badge/badge.d.ts +22 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/editor/editor.d.ts +269 -0
- package/dist/components/editor/index.d.ts +2 -0
- package/dist/components/form/form.d.ts +1 -1
- package/dist/components/image/image-viewer.d.ts +1 -2
- package/dist/components/index.d.ts +3 -0
- package/dist/components/popover/popover.d.ts +0 -1
- package/dist/components/segmented/index.d.ts +4 -0
- package/dist/components/segmented/injection-keys.d.ts +6 -0
- package/dist/components/segmented/segmented-item.d.ts +22 -0
- package/dist/components/segmented/segmented.d.ts +29 -0
- package/dist/props/badge/badge.d.ts +34 -0
- package/dist/props/badge/index.d.ts +1 -0
- package/dist/props/button/button-group.d.ts +1 -1
- package/dist/props/checkbox/checkbox-group.d.ts +2 -2
- package/dist/props/checkbox/checkbox.d.ts +5 -1
- package/dist/props/editor/editor.d.ts +34 -0
- package/dist/props/editor/index.d.ts +1 -0
- package/dist/props/index.d.ts +3 -0
- package/dist/props/radio/radio-group.d.ts +2 -2
- package/dist/props/radio/radio.d.ts +5 -1
- package/dist/props/segmented/index.d.ts +2 -0
- package/dist/props/segmented/segmented-item.d.ts +22 -0
- package/dist/props/segmented/segmented.d.ts +30 -0
- package/dist/squirrel-cloud-ui-vue.js +2889 -2400
- package/dist/squirrel-cloud-ui-vue.umd.cjs +32 -24
- package/dist/style.css +1 -1
- package/dist/typings/Form.d.ts +1 -1
- package/dist/typings/SegmentedItem.d.ts +21 -0
- package/dist/typings/contexts/SegmentedContext.d.ts +36 -0
- package/dist/typings/contexts/index.d.ts +1 -0
- package/dist/typings/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BadgeProps } from '../../props';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: any;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<BadgeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
|
|
12
|
+
type: import('../..').ComponentType;
|
|
13
|
+
max: number;
|
|
14
|
+
count: number;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import { nextTick } from 'vue';
|
|
2
|
+
import { EditorProps } from '../../props';
|
|
3
|
+
type __VLS_Props = EditorProps;
|
|
4
|
+
type __VLS_PublicProps = {
|
|
5
|
+
'value'?: string;
|
|
6
|
+
} & __VLS_Props;
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: {
|
|
10
|
+
control?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {
|
|
13
|
+
inputRef: ({
|
|
14
|
+
$: import('vue').ComponentInternalInstance;
|
|
15
|
+
$data: {};
|
|
16
|
+
$props: {
|
|
17
|
+
readonly value?: string | undefined;
|
|
18
|
+
readonly status?: import('../../../typings').ComponentTypeWarn | undefined;
|
|
19
|
+
readonly round?: boolean | undefined;
|
|
20
|
+
readonly prefixIcon?: import('vue').Component | undefined;
|
|
21
|
+
readonly suffixIcon?: import('vue').Component | undefined;
|
|
22
|
+
readonly disabled?: boolean | undefined;
|
|
23
|
+
readonly readonly?: boolean | undefined;
|
|
24
|
+
readonly clearable?: boolean | undefined;
|
|
25
|
+
readonly placeholder?: string | undefined;
|
|
26
|
+
readonly maxlength?: number | string | undefined;
|
|
27
|
+
readonly minlength?: number | string | undefined;
|
|
28
|
+
readonly autocomplete?: string | undefined;
|
|
29
|
+
readonly name?: string | undefined;
|
|
30
|
+
readonly form?: string | undefined;
|
|
31
|
+
readonly loading?: boolean | undefined;
|
|
32
|
+
readonly inputmode?: import('../../../typings').InputMode | undefined;
|
|
33
|
+
readonly autofocus?: boolean | undefined;
|
|
34
|
+
readonly type?: import('../../../typings').InputType | undefined;
|
|
35
|
+
readonly size?: import('../../../typings').ComponentSize | undefined;
|
|
36
|
+
readonly resize?: import('../../../typings').TextareaResizeType | undefined;
|
|
37
|
+
readonly rows?: number | string | undefined;
|
|
38
|
+
readonly cols?: number | string | undefined;
|
|
39
|
+
readonly onInput?: ((e: Event) => any) | undefined;
|
|
40
|
+
readonly onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
41
|
+
readonly onChange?: ((e: Event) => any) | undefined;
|
|
42
|
+
readonly onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
43
|
+
readonly "onUpdate:value"?: ((value: string) => any) | undefined;
|
|
44
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
45
|
+
$attrs: {
|
|
46
|
+
[x: string]: unknown;
|
|
47
|
+
};
|
|
48
|
+
$refs: {
|
|
49
|
+
[x: string]: unknown;
|
|
50
|
+
} & {
|
|
51
|
+
inputRef: HTMLTextAreaElement;
|
|
52
|
+
};
|
|
53
|
+
$slots: Readonly<{
|
|
54
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
55
|
+
}>;
|
|
56
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
57
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
58
|
+
$host: Element | null;
|
|
59
|
+
$emit: ((event: "input", e: Event) => void) & ((event: "blur", e: FocusEvent) => void) & ((event: "change", e: Event) => void) & ((event: "focus", e: FocusEvent) => void) & ((event: "update:value", value: string) => void);
|
|
60
|
+
$el: HTMLDivElement;
|
|
61
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
62
|
+
value?: string;
|
|
63
|
+
} & import('../../props').InputProps> & Readonly<{
|
|
64
|
+
onInput?: ((e: Event) => any) | undefined;
|
|
65
|
+
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
66
|
+
onChange?: ((e: Event) => any) | undefined;
|
|
67
|
+
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
68
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
69
|
+
}>, {
|
|
70
|
+
focus: () => void;
|
|
71
|
+
blur: () => void;
|
|
72
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
73
|
+
input: (e: Event) => any;
|
|
74
|
+
blur: (e: FocusEvent) => any;
|
|
75
|
+
change: (e: Event) => any;
|
|
76
|
+
focus: (e: FocusEvent) => any;
|
|
77
|
+
"update:value": (value: string) => any;
|
|
78
|
+
}, string, {
|
|
79
|
+
type: import('../../../typings').InputType;
|
|
80
|
+
round: boolean;
|
|
81
|
+
disabled: boolean;
|
|
82
|
+
resize: import('../../../typings').TextareaResizeType;
|
|
83
|
+
readonly: boolean;
|
|
84
|
+
autocomplete: string;
|
|
85
|
+
rows: number | string;
|
|
86
|
+
cols: number | string;
|
|
87
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
88
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
89
|
+
created?: (() => void) | (() => void)[];
|
|
90
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
91
|
+
mounted?: (() => void) | (() => void)[];
|
|
92
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
93
|
+
updated?: (() => void) | (() => void)[];
|
|
94
|
+
activated?: (() => void) | (() => void)[];
|
|
95
|
+
deactivated?: (() => void) | (() => void)[];
|
|
96
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
97
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
98
|
+
destroyed?: (() => void) | (() => void)[];
|
|
99
|
+
unmounted?: (() => void) | (() => void)[];
|
|
100
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
101
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
102
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
103
|
+
};
|
|
104
|
+
$forceUpdate: () => void;
|
|
105
|
+
$nextTick: typeof nextTick;
|
|
106
|
+
$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;
|
|
107
|
+
} & Readonly<{
|
|
108
|
+
type: import('../../../typings').InputType;
|
|
109
|
+
round: boolean;
|
|
110
|
+
disabled: boolean;
|
|
111
|
+
resize: import('../../../typings').TextareaResizeType;
|
|
112
|
+
readonly: boolean;
|
|
113
|
+
autocomplete: string;
|
|
114
|
+
rows: number | string;
|
|
115
|
+
cols: number | string;
|
|
116
|
+
}> & Omit<Readonly<{
|
|
117
|
+
value?: string;
|
|
118
|
+
} & import('../../props').InputProps> & Readonly<{
|
|
119
|
+
onInput?: ((e: Event) => any) | undefined;
|
|
120
|
+
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
121
|
+
onChange?: ((e: Event) => any) | undefined;
|
|
122
|
+
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
123
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
124
|
+
}>, "blur" | "focus" | ("type" | "round" | "disabled" | "resize" | "readonly" | "autocomplete" | "rows" | "cols")> & import('vue').ShallowUnwrapRef<{
|
|
125
|
+
focus: () => void;
|
|
126
|
+
blur: () => void;
|
|
127
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
128
|
+
$slots: {
|
|
129
|
+
prefix?(_: {}): any;
|
|
130
|
+
suffix?(_: {}): any;
|
|
131
|
+
};
|
|
132
|
+
}) | null;
|
|
133
|
+
};
|
|
134
|
+
rootEl: HTMLDivElement;
|
|
135
|
+
};
|
|
136
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
137
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
138
|
+
"update:value": (value: string) => any;
|
|
139
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
140
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
141
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
142
|
+
inputRef: ({
|
|
143
|
+
$: import('vue').ComponentInternalInstance;
|
|
144
|
+
$data: {};
|
|
145
|
+
$props: {
|
|
146
|
+
readonly value?: string | undefined;
|
|
147
|
+
readonly status?: import('../../../typings').ComponentTypeWarn | undefined;
|
|
148
|
+
readonly round?: boolean | undefined;
|
|
149
|
+
readonly prefixIcon?: import('vue').Component | undefined;
|
|
150
|
+
readonly suffixIcon?: import('vue').Component | undefined;
|
|
151
|
+
readonly disabled?: boolean | undefined;
|
|
152
|
+
readonly readonly?: boolean | undefined;
|
|
153
|
+
readonly clearable?: boolean | undefined;
|
|
154
|
+
readonly placeholder?: string | undefined;
|
|
155
|
+
readonly maxlength?: number | string | undefined;
|
|
156
|
+
readonly minlength?: number | string | undefined;
|
|
157
|
+
readonly autocomplete?: string | undefined;
|
|
158
|
+
readonly name?: string | undefined;
|
|
159
|
+
readonly form?: string | undefined;
|
|
160
|
+
readonly loading?: boolean | undefined;
|
|
161
|
+
readonly inputmode?: import('../../../typings').InputMode | undefined;
|
|
162
|
+
readonly autofocus?: boolean | undefined;
|
|
163
|
+
readonly type?: import('../../../typings').InputType | undefined;
|
|
164
|
+
readonly size?: import('../../../typings').ComponentSize | undefined;
|
|
165
|
+
readonly resize?: import('../../../typings').TextareaResizeType | undefined;
|
|
166
|
+
readonly rows?: number | string | undefined;
|
|
167
|
+
readonly cols?: number | string | undefined;
|
|
168
|
+
readonly onInput?: ((e: Event) => any) | undefined;
|
|
169
|
+
readonly onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
170
|
+
readonly onChange?: ((e: Event) => any) | undefined;
|
|
171
|
+
readonly onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
172
|
+
readonly "onUpdate:value"?: ((value: string) => any) | undefined;
|
|
173
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
174
|
+
$attrs: {
|
|
175
|
+
[x: string]: unknown;
|
|
176
|
+
};
|
|
177
|
+
$refs: {
|
|
178
|
+
[x: string]: unknown;
|
|
179
|
+
} & {
|
|
180
|
+
inputRef: HTMLTextAreaElement;
|
|
181
|
+
};
|
|
182
|
+
$slots: Readonly<{
|
|
183
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
184
|
+
}>;
|
|
185
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
186
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
187
|
+
$host: Element | null;
|
|
188
|
+
$emit: ((event: "input", e: Event) => void) & ((event: "blur", e: FocusEvent) => void) & ((event: "change", e: Event) => void) & ((event: "focus", e: FocusEvent) => void) & ((event: "update:value", value: string) => void);
|
|
189
|
+
$el: HTMLDivElement;
|
|
190
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
191
|
+
value?: string;
|
|
192
|
+
} & import('../../props').InputProps> & Readonly<{
|
|
193
|
+
onInput?: ((e: Event) => any) | undefined;
|
|
194
|
+
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
195
|
+
onChange?: ((e: Event) => any) | undefined;
|
|
196
|
+
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
197
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
198
|
+
}>, {
|
|
199
|
+
focus: () => void;
|
|
200
|
+
blur: () => void;
|
|
201
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
202
|
+
input: (e: Event) => any;
|
|
203
|
+
blur: (e: FocusEvent) => any;
|
|
204
|
+
change: (e: Event) => any;
|
|
205
|
+
focus: (e: FocusEvent) => any;
|
|
206
|
+
"update:value": (value: string) => any;
|
|
207
|
+
}, string, {
|
|
208
|
+
type: import('../../../typings').InputType;
|
|
209
|
+
round: boolean;
|
|
210
|
+
disabled: boolean;
|
|
211
|
+
resize: import('../../../typings').TextareaResizeType;
|
|
212
|
+
readonly: boolean;
|
|
213
|
+
autocomplete: string;
|
|
214
|
+
rows: number | string;
|
|
215
|
+
cols: number | string;
|
|
216
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
217
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
218
|
+
created?: (() => void) | (() => void)[];
|
|
219
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
220
|
+
mounted?: (() => void) | (() => void)[];
|
|
221
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
222
|
+
updated?: (() => void) | (() => void)[];
|
|
223
|
+
activated?: (() => void) | (() => void)[];
|
|
224
|
+
deactivated?: (() => void) | (() => void)[];
|
|
225
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
226
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
227
|
+
destroyed?: (() => void) | (() => void)[];
|
|
228
|
+
unmounted?: (() => void) | (() => void)[];
|
|
229
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
230
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
231
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
232
|
+
};
|
|
233
|
+
$forceUpdate: () => void;
|
|
234
|
+
$nextTick: typeof nextTick;
|
|
235
|
+
$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;
|
|
236
|
+
} & Readonly<{
|
|
237
|
+
type: import('../../../typings').InputType;
|
|
238
|
+
round: boolean;
|
|
239
|
+
disabled: boolean;
|
|
240
|
+
resize: import('../../../typings').TextareaResizeType;
|
|
241
|
+
readonly: boolean;
|
|
242
|
+
autocomplete: string;
|
|
243
|
+
rows: number | string;
|
|
244
|
+
cols: number | string;
|
|
245
|
+
}> & Omit<Readonly<{
|
|
246
|
+
value?: string;
|
|
247
|
+
} & import('../../props').InputProps> & Readonly<{
|
|
248
|
+
onInput?: ((e: Event) => any) | undefined;
|
|
249
|
+
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
250
|
+
onChange?: ((e: Event) => any) | undefined;
|
|
251
|
+
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
252
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
253
|
+
}>, "blur" | "focus" | ("type" | "round" | "disabled" | "resize" | "readonly" | "autocomplete" | "rows" | "cols")> & import('vue').ShallowUnwrapRef<{
|
|
254
|
+
focus: () => void;
|
|
255
|
+
blur: () => void;
|
|
256
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
257
|
+
$slots: {
|
|
258
|
+
prefix?(_: {}): any;
|
|
259
|
+
suffix?(_: {}): any;
|
|
260
|
+
};
|
|
261
|
+
}) | null;
|
|
262
|
+
}, HTMLDivElement>;
|
|
263
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
264
|
+
export default _default;
|
|
265
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
266
|
+
new (): {
|
|
267
|
+
$slots: S;
|
|
268
|
+
};
|
|
269
|
+
};
|
|
@@ -28,9 +28,9 @@ declare const __VLS_component: import('vue').DefineComponent<FormProps, {
|
|
|
28
28
|
size: import('../../../typings').ComponentSize;
|
|
29
29
|
round: boolean;
|
|
30
30
|
disabled: boolean;
|
|
31
|
+
readonly: boolean;
|
|
31
32
|
layout: import('../../../typings').FormLayout;
|
|
32
33
|
invalidStatus: import('../../../typings').ComponentTypeWarn;
|
|
33
|
-
readonly: boolean;
|
|
34
34
|
hasFeedback: boolean;
|
|
35
35
|
requiredMark: import('../../../typings').RequiredMarkType;
|
|
36
36
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLFormElement>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ImageViewerProps } from '../../props';
|
|
2
2
|
type __VLS_Props = ImageViewerProps;
|
|
3
|
-
declare const visible: import('vue').ModelRef<boolean, string, boolean, boolean>;
|
|
4
3
|
type __VLS_PublicProps = {
|
|
5
|
-
'visible'?:
|
|
4
|
+
'visible'?: boolean;
|
|
6
5
|
} & __VLS_Props;
|
|
7
6
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
7
|
"update:visible": (value: boolean) => any;
|
|
@@ -2,11 +2,13 @@ export * from './alert';
|
|
|
2
2
|
export * from './article';
|
|
3
3
|
export * from './avatar';
|
|
4
4
|
export * from './backtop';
|
|
5
|
+
export * from './badge';
|
|
5
6
|
export * from './blur';
|
|
6
7
|
export * from './button';
|
|
7
8
|
export * from './card';
|
|
8
9
|
export * from './checkbox';
|
|
9
10
|
export * from './divider';
|
|
11
|
+
export * from './editor';
|
|
10
12
|
export * from './form';
|
|
11
13
|
export * from './image';
|
|
12
14
|
export * from './input';
|
|
@@ -15,6 +17,7 @@ export * from './pagination';
|
|
|
15
17
|
export * from './popover';
|
|
16
18
|
export * from './progress';
|
|
17
19
|
export * from './radio';
|
|
20
|
+
export * from './segmented';
|
|
18
21
|
export * from './switch';
|
|
19
22
|
export * from './tag';
|
|
20
23
|
export * from './text';
|
|
@@ -35,7 +35,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
35
35
|
transition: string;
|
|
36
36
|
placement: import('../..').PopoverPlacement;
|
|
37
37
|
teleported: boolean;
|
|
38
|
-
offset: number;
|
|
39
38
|
trigger: import('../..').PopoverTrigger;
|
|
40
39
|
showAfter: number;
|
|
41
40
|
hideAfter: number;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SegmentedItemProps } from '../../props';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {
|
|
8
|
+
itemRef: HTMLLabelElement;
|
|
9
|
+
};
|
|
10
|
+
rootEl: HTMLLabelElement;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<SegmentedItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SegmentedItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
14
|
+
itemRef: HTMLLabelElement;
|
|
15
|
+
}, HTMLLabelElement>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { SegmentedProps } from '../../props';
|
|
2
|
+
import { SegmentedItem } from '../../../typings';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: HTMLDivElement;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<SegmentedProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
change: (value: any) => any;
|
|
14
|
+
"update:value": (value: any) => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<SegmentedProps> & Readonly<{
|
|
16
|
+
onChange?: ((value: any) => any) | undefined;
|
|
17
|
+
"onUpdate:value"?: ((value: any) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
size: import('../../../typings').ComponentSize;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
items: string[] | SegmentedItem[];
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComponentType } from '../../typings';
|
|
2
|
+
/**
|
|
3
|
+
* 徽标属性
|
|
4
|
+
*/
|
|
5
|
+
export interface BadgeProps {
|
|
6
|
+
/**
|
|
7
|
+
* 徽标类型
|
|
8
|
+
*/
|
|
9
|
+
type?: ComponentType;
|
|
10
|
+
/**
|
|
11
|
+
* 徽标颜色
|
|
12
|
+
*/
|
|
13
|
+
color?: string;
|
|
14
|
+
/**
|
|
15
|
+
* 为0时是否展示
|
|
16
|
+
*/
|
|
17
|
+
showZero?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 显示最大数字
|
|
20
|
+
*/
|
|
21
|
+
max?: number;
|
|
22
|
+
/**
|
|
23
|
+
* 展示的数字
|
|
24
|
+
*/
|
|
25
|
+
count?: number;
|
|
26
|
+
/**
|
|
27
|
+
* 徽标文本内容
|
|
28
|
+
*/
|
|
29
|
+
text?: string;
|
|
30
|
+
/**
|
|
31
|
+
* 是否仅圆点
|
|
32
|
+
*/
|
|
33
|
+
dot?: boolean;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './badge';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComponentSize } from '../../typings';
|
|
2
|
+
/**
|
|
3
|
+
* 编辑器属性
|
|
4
|
+
*/
|
|
5
|
+
export interface EditorProps {
|
|
6
|
+
/**
|
|
7
|
+
* 是否圆角编辑器
|
|
8
|
+
*/
|
|
9
|
+
round?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* 是否禁用
|
|
12
|
+
*/
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* 占位文本
|
|
16
|
+
*/
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
/**
|
|
19
|
+
* 最大长度
|
|
20
|
+
*/
|
|
21
|
+
maxlength?: number | string;
|
|
22
|
+
/**
|
|
23
|
+
* 最小长度
|
|
24
|
+
*/
|
|
25
|
+
minlength?: number | string;
|
|
26
|
+
/**
|
|
27
|
+
* 编辑器大小
|
|
28
|
+
*/
|
|
29
|
+
size?: ComponentSize;
|
|
30
|
+
/**
|
|
31
|
+
* 预览内容前处理
|
|
32
|
+
*/
|
|
33
|
+
beforePreview?: (input: string) => string;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './editor';
|
package/dist/props/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export * from './alert';
|
|
2
2
|
export * from './avatar';
|
|
3
3
|
export * from './backtop';
|
|
4
|
+
export * from './badge';
|
|
4
5
|
export * from './button';
|
|
5
6
|
export * from './card';
|
|
6
7
|
export * from './checkbox';
|
|
7
8
|
export * from './divider';
|
|
9
|
+
export * from './editor';
|
|
8
10
|
export * from './form';
|
|
9
11
|
export * from './image';
|
|
10
12
|
export * from './input';
|
|
@@ -13,6 +15,7 @@ export * from './pagination';
|
|
|
13
15
|
export * from './popover';
|
|
14
16
|
export * from './progress';
|
|
15
17
|
export * from './radio';
|
|
18
|
+
export * from './segmented';
|
|
16
19
|
export * from './switch';
|
|
17
20
|
export * from './tag';
|
|
18
21
|
export * from './text';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* 分段控制器项属性
|
|
4
|
+
*/
|
|
5
|
+
export interface SegmentedItemProps {
|
|
6
|
+
/**
|
|
7
|
+
* 图标
|
|
8
|
+
*/
|
|
9
|
+
icon?: Component;
|
|
10
|
+
/**
|
|
11
|
+
* 文本内容
|
|
12
|
+
*/
|
|
13
|
+
text?: string;
|
|
14
|
+
/**
|
|
15
|
+
* 是否禁用
|
|
16
|
+
*/
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 分段控制器项值
|
|
20
|
+
*/
|
|
21
|
+
value: string | number;
|
|
22
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ComponentSize, SegmentedItem } from '../../typings';
|
|
2
|
+
/**
|
|
3
|
+
* 分段控制器属性
|
|
4
|
+
*/
|
|
5
|
+
export interface SegmentedProps {
|
|
6
|
+
/**
|
|
7
|
+
* 名称
|
|
8
|
+
*/
|
|
9
|
+
name?: string;
|
|
10
|
+
/**
|
|
11
|
+
* 分段控制器大小
|
|
12
|
+
*/
|
|
13
|
+
size?: ComponentSize;
|
|
14
|
+
/**
|
|
15
|
+
* 是否禁用
|
|
16
|
+
*/
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 是否圆角分段控制器
|
|
20
|
+
*/
|
|
21
|
+
round?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* 分段控制器项列表
|
|
24
|
+
*/
|
|
25
|
+
items?: string[] | SegmentedItem[];
|
|
26
|
+
/**
|
|
27
|
+
* 选中项
|
|
28
|
+
*/
|
|
29
|
+
value?: string | number;
|
|
30
|
+
}
|