@pixelium/web-vue 0.0.2-fix → 0.0.3-alpha
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/README.md +42 -0
- package/README.zh.md +6 -3
- package/dist/font.css +1 -1
- package/dist/index.d.ts +1602 -248
- package/dist/normalize.css +2 -0
- package/dist/pixelium-vue-icon-hn.cjs +1 -1
- package/dist/pixelium-vue-icon-hn.css +2 -1
- package/dist/pixelium-vue-icon-hn.js +8533 -8154
- package/dist/pixelium-vue-icon-hn.umd.cjs +1 -1
- package/dist/pixelium-vue-icon-pa.cjs +1 -1
- package/dist/pixelium-vue-icon-pa.css +2 -1
- package/dist/pixelium-vue-icon-pa.js +10625 -10143
- package/dist/pixelium-vue-icon-pa.umd.cjs +1 -1
- package/dist/pixelium-vue.cjs +2 -2
- package/dist/pixelium-vue.css +2 -1
- package/dist/pixelium-vue.js +7407 -5854
- package/dist/pixelium-vue.umd.cjs +2 -2
- package/es/aside/index.css +1 -0
- package/es/aside/index.js +46 -151
- package/es/auto-complete/draw.d.ts +1 -1
- package/es/auto-complete/draw.js +26 -51
- package/es/auto-complete/index.css +92 -32
- package/es/auto-complete/index.d.ts +12 -15
- package/es/auto-complete/index.js +338 -400
- package/es/auto-complete/type.d.ts +25 -13
- package/es/avatar/css.js +2 -0
- package/es/avatar/draw.d.ts +2 -0
- package/es/avatar/draw.js +11 -0
- package/es/avatar/index.css +49 -0
- package/es/avatar/index.d.ts +15 -0
- package/es/avatar/index.js +110 -0
- package/es/avatar/type.d.ts +34 -0
- package/es/button/draw.d.ts +4 -4
- package/es/button/draw.js +213 -297
- package/es/button/index.css +40 -30
- package/es/button/index.d.ts +0 -4
- package/es/button/index.js +230 -256
- package/es/button/type.d.ts +3 -3
- package/es/button-group/index.css +0 -3
- package/es/button-group/index.d.ts +1 -2
- package/es/button-group/index.js +59 -31
- package/es/button-group/type.d.ts +21 -4
- package/es/checkbox/css.js +2 -0
- package/es/checkbox/draw.d.ts +4 -0
- package/es/checkbox/draw.js +46 -0
- package/es/checkbox/index.css +85 -0
- package/es/checkbox/index.d.ts +31 -0
- package/es/checkbox/index.js +206 -0
- package/es/checkbox/type.d.ts +88 -0
- package/es/checkbox-group/css.js +2 -0
- package/es/checkbox-group/index.css +20 -0
- package/es/checkbox-group/index.d.ts +23 -0
- package/es/checkbox-group/index.js +84 -0
- package/es/checkbox-group/type.d.ts +78 -0
- package/es/col/index.d.ts +2 -2
- package/es/col/index.js +43 -58
- package/es/container/index.css +1 -0
- package/es/container/index.js +18 -31
- package/es/divider/index.js +39 -53
- package/es/empty/index.css +4 -4
- package/es/empty/index.js +16 -71
- package/es/entry.js +102 -0
- package/es/footer/index.css +1 -0
- package/es/footer/index.js +31 -40
- package/es/form/css.js +1 -0
- package/es/form/index.d.ts +27 -0
- package/es/form/index.js +125 -0
- package/es/form/type.d.ts +238 -0
- package/es/form/use-form.d.ts +4 -0
- package/es/form/use-form.js +48 -0
- package/es/form-item/css.js +2 -0
- package/es/form-item/index.css +77 -0
- package/es/form-item/index.d.ts +37 -0
- package/es/form-item/index.js +318 -0
- package/es/form-item/type.d.ts +96 -0
- package/es/grid/index.js +56 -75
- package/es/grid-item/css.js +0 -1
- package/es/grid-item/index.d.ts +1 -1
- package/es/grid-item/index.js +85 -121
- package/es/header/index.css +1 -0
- package/es/header/index.js +31 -40
- package/es/icon/index.js +44 -55
- package/es/icons/css-hn.js +0 -1
- package/es/icons/css-pa.js +0 -1
- package/es/icons/icon-hn.js +10337 -15986
- package/es/icons/icon-pa.js +12573 -17447
- package/es/image/css.js +2 -0
- package/es/image/index.css +69 -0
- package/es/image/index.d.ts +35 -0
- package/es/image/index.js +199 -0
- package/es/image/type.d.ts +126 -0
- package/es/index.css +1 -515
- package/es/index.d.ts +22 -2
- package/es/index.js +144 -123
- package/es/input/draw.d.ts +1 -1
- package/es/input/draw.js +26 -51
- package/es/input/index.css +85 -33
- package/es/input/index.d.ts +9 -16
- package/es/input/index.js +319 -423
- package/es/input/type.d.ts +3 -3
- package/es/input-group/index.css +0 -1
- package/es/input-group/index.d.ts +2 -2
- package/es/input-group/index.js +66 -37
- package/es/input-group/type.d.ts +16 -4
- package/es/input-group-label/draw.d.ts +1 -1
- package/es/input-group-label/draw.js +26 -51
- package/es/input-group-label/index.css +33 -22
- package/es/input-group-label/index.d.ts +1 -4
- package/es/input-group-label/index.js +104 -127
- package/es/input-group-label/type.d.ts +3 -3
- package/es/input-number/draw.d.ts +1 -1
- package/es/input-number/draw.js +26 -51
- package/es/input-number/index.css +90 -35
- package/es/input-number/index.d.ts +9 -16
- package/es/input-number/index.js +428 -536
- package/es/input-number/type.d.ts +3 -3
- package/es/input-tag/draw.d.ts +1 -1
- package/es/input-tag/draw.js +26 -48
- package/es/input-tag/index.css +100 -33
- package/es/input-tag/index.d.ts +7 -13
- package/es/input-tag/index.js +442 -467
- package/es/input-tag/type.d.ts +24 -13
- package/es/link/index.js +75 -106
- package/es/main/index.css +4 -0
- package/es/main/index.d.ts +4 -1
- package/es/main/index.js +15 -15
- package/es/main/type.d.ts +7 -0
- package/es/mask/index.js +94 -115
- package/es/message/index.css +1 -1
- package/es/message/index.js +168 -346
- package/es/message-box/css.js +1 -1
- package/es/message-box/index.js +98 -114
- package/es/message-box/message-box-wrapped.js +33 -46
- package/es/message-box/message-box.js +79 -111
- package/es/option-list/index.css +13 -13
- package/es/option-list/index.d.ts +4 -31
- package/es/option-list/index.js +99 -167
- package/es/option-list/type.d.ts +5 -1
- package/es/pixelate/pixel.d.ts +5 -0
- package/es/pixelate/pixel.js +70 -0
- package/es/pixelate/pixelate.worker.d.ts +1 -0
- package/es/popover/index.d.ts +13 -99
- package/es/popover/index.js +75 -238
- package/es/popover/type.d.ts +7 -2
- package/es/popup/css.js +1 -0
- package/es/popup/index.d.ts +210 -0
- package/es/popup/index.js +203 -0
- package/es/popup/type.d.ts +105 -0
- package/es/popup-content/draw.d.ts +2 -2
- package/es/popup-content/draw.js +98 -143
- package/es/popup-content/index.css +11 -11
- package/es/popup-content/index.d.ts +1 -0
- package/es/popup-content/index.js +253 -1576
- package/es/popup-content/type.d.ts +1 -0
- package/es/popup-trigger/index.d.ts +8 -2
- package/es/popup-trigger/index.js +122 -95
- package/es/popup-trigger/type.d.ts +4 -1
- package/es/popup-wrapper/css.js +2 -0
- package/es/popup-wrapper/index.css +14 -0
- package/es/popup-wrapper/index.d.ts +18 -0
- package/es/popup-wrapper/index.js +67 -0
- package/es/popup-wrapper/type.d.ts +9 -0
- package/es/radio/css.js +1 -0
- package/es/radio/draw.d.ts +4 -0
- package/es/radio/draw.js +47 -0
- package/es/radio/index.d.ts +30 -0
- package/es/radio/index.js +190 -0
- package/es/radio/style.css +73 -0
- package/es/radio/type.d.ts +76 -0
- package/es/radio-group/css.js +2 -0
- package/es/radio-group/index.css +20 -0
- package/es/radio-group/index.d.ts +23 -0
- package/es/radio-group/index.js +77 -0
- package/es/radio-group/type.d.ts +77 -0
- package/es/row/index.js +56 -70
- package/es/select/draw.d.ts +1 -1
- package/es/select/draw.js +26 -51
- package/es/select/index.css +118 -36
- package/es/select/index.d.ts +14 -16
- package/es/select/index.js +625 -675
- package/es/select/type.d.ts +60 -25
- package/es/share/const/event-bus-key.js +1 -6
- package/es/share/const/index.d.ts +4 -0
- package/es/share/const/index.js +22 -24
- package/es/share/const/provide-key.d.ts +5 -0
- package/es/share/const/provide-key.js +6 -5
- package/es/share/const/style.d.ts +6 -0
- package/es/share/const/style.js +7 -0
- package/es/share/hook/use-cancelable-delay.d.ts +1 -0
- package/es/share/hook/use-cancelable-delay.js +42 -0
- package/es/share/hook/use-click-outside-listener.d.ts +1 -1
- package/es/share/hook/use-click-outside-listener.js +28 -41
- package/es/share/hook/use-composition.js +17 -15
- package/es/share/hook/use-controlled-mode.d.ts +3 -3
- package/es/share/hook/use-controlled-mode.js +20 -23
- package/es/share/hook/use-dark-mode.js +51 -65
- package/es/share/hook/use-index-of-children.d.ts +2 -1
- package/es/share/hook/use-index-of-children.js +47 -45
- package/es/share/hook/use-lazy-load.d.ts +10 -0
- package/es/share/hook/use-lazy-load.js +133 -0
- package/es/share/hook/use-props-detect.d.ts +2 -0
- package/es/share/hook/use-resize-observer.d.ts +1 -2
- package/es/share/hook/use-resize-observer.js +28 -20
- package/es/share/hook/use-screen-width.js +27 -36
- package/es/share/hook/use-smooth-transition.d.ts +2 -0
- package/es/share/hook/use-smooth-transition.js +65 -0
- package/es/share/hook/use-textarea-height.js +86 -92
- package/es/share/hook/use-theme-mode.js +41 -42
- package/es/share/hook/use-transition-end.d.ts +2 -0
- package/es/share/hook/use-transition-end.js +12 -0
- package/es/share/hook/use-watch-global-css-var.js +12 -16
- package/es/share/hook/use-window-resize-listener.d.ts +1 -0
- package/es/share/hook/use-window-resize-listener.js +15 -0
- package/es/share/hook/use-z-index.js +30 -27
- package/es/share/style/index.css +5 -0
- package/es/share/type/index.d.ts +18 -3
- package/es/share/util/color.d.ts +5 -3
- package/es/share/util/color.js +156 -149
- package/es/share/util/common.d.ts +7 -2
- package/es/share/util/common.js +127 -65
- package/es/share/util/console.d.ts +3 -3
- package/es/share/util/console.js +10 -7
- package/es/share/util/dom.d.ts +19 -0
- package/es/share/util/dom.js +88 -0
- package/es/share/util/env.d.ts +1 -0
- package/es/share/util/env.js +5 -4
- package/es/share/util/event-bus.js +3 -20
- package/es/share/util/lru-cache.js +29 -33
- package/es/share/util/pixel.d.ts +4 -0
- package/es/share/util/plot.d.ts +8 -3
- package/es/share/util/plot.js +457 -229
- package/es/share/util/reactivity.d.ts +8 -0
- package/es/share/util/reactivity.js +23 -0
- package/es/share/util/render.js +31 -41
- package/es/share/util/theme.d.ts +3 -0
- package/es/share/util/theme.js +77 -57
- package/es/slider/css.js +2 -0
- package/es/slider/draw.d.ts +25 -0
- package/es/slider/draw.js +113 -0
- package/es/slider/index.css +119 -0
- package/es/slider/index.d.ts +66 -0
- package/es/slider/index.js +503 -0
- package/es/slider/type.d.ts +162 -0
- package/es/slider/util.d.ts +37 -0
- package/es/slider/util.js +130 -0
- package/es/space/index.css +24 -29
- package/es/space/index.js +73 -97
- package/es/spin/index.css +18 -17
- package/es/spin/index.js +72 -102
- package/es/spin/type.d.ts +11 -5
- package/es/switch/css.js +2 -0
- package/es/switch/draw.d.ts +2 -0
- package/es/switch/draw.js +18 -0
- package/es/switch/index.css +121 -0
- package/es/switch/index.d.ts +42 -0
- package/es/switch/index.js +259 -0
- package/es/switch/type.d.ts +133 -0
- package/es/tag/draw.d.ts +2 -2
- package/es/tag/draw.js +80 -127
- package/es/tag/index.css +38 -22
- package/es/tag/index.d.ts +2 -2
- package/es/tag/index.js +121 -190
- package/es/tag/type.d.ts +3 -3
- package/es/text-outline/css.js +2 -0
- package/es/text-outline/index.css +4 -0
- package/es/text-outline/index.d.ts +17 -0
- package/es/text-outline/index.js +33 -0
- package/es/text-outline/type.d.ts +23 -0
- package/es/textarea/draw.js +9 -11
- package/es/textarea/index.css +37 -23
- package/es/textarea/index.d.ts +8 -14
- package/es/textarea/index.js +274 -262
- package/es/tooltip/index.d.ts +100 -4
- package/es/tooltip/index.js +70 -226
- package/es/tooltip/type.d.ts +7 -2
- package/es/vendor.js +504 -0
- package/es/virtual-list/css.js +2 -0
- package/es/virtual-list/index.css +25 -0
- package/es/virtual-list/index.d.ts +11 -0
- package/es/virtual-list/index.js +313 -0
- package/es/virtual-list/type.d.ts +26 -0
- package/package.json +10 -16
- package/es/grid-item/index.css +0 -0
- /package/es/message-box/{message-box.css → index.css} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
3
|
import { Nullish } from 'parsnip-kit';
|
|
4
|
-
import { App, CSSProperties,
|
|
4
|
+
import { App, CSSProperties, Ref, VNode } from 'vue';
|
|
5
5
|
import { JSX } from 'vue/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
declare enum SCREEN_SIZE_TYPE {
|
|
@@ -14,8 +14,8 @@ declare enum SCREEN_SIZE_TYPE {
|
|
|
14
14
|
}
|
|
15
15
|
declare const GROUP_OPTION_TYPE = "group";
|
|
16
16
|
export type NumberOrPercentage = number | `${number}%`;
|
|
17
|
-
export type ValidContent = string | (() => VNode | string | JSX.Element);
|
|
18
|
-
export type ValidVNodeContent = () => VNode | JSX.Element;
|
|
17
|
+
export type ValidContent = string | ((...args: any[]) => VNode | string | JSX.Element);
|
|
18
|
+
export type ValidVNodeContent = (...args: any[]) => VNode | JSX.Element;
|
|
19
19
|
export type ValueWithDeviceWidth<T> = Record<SCREEN_SIZE_TYPE, T>;
|
|
20
20
|
interface Option$1<T = any> {
|
|
21
21
|
value: T;
|
|
@@ -25,6 +25,9 @@ export interface GroupOption<T = any> {
|
|
|
25
25
|
children: (Option$1<T> | string)[];
|
|
26
26
|
type: typeof GROUP_OPTION_TYPE;
|
|
27
27
|
}
|
|
28
|
+
export type EmitEvent<T extends Record<string, any>> = {
|
|
29
|
+
[K in keyof T as `on${Capitalize<K & string>}`]?: (...args: T[K]) => void;
|
|
30
|
+
};
|
|
28
31
|
export type ButtonProps = {
|
|
29
32
|
/**
|
|
30
33
|
* @property {NumberOrPercentage | NumberOrPercentage[]} [borderRadius]
|
|
@@ -32,10 +35,10 @@ export type ButtonProps = {
|
|
|
32
35
|
*/
|
|
33
36
|
borderRadius?: NumberOrPercentage | NumberOrPercentage[];
|
|
34
37
|
/**
|
|
35
|
-
* @property {'
|
|
36
|
-
* @version 0.0.
|
|
38
|
+
* @property {'rect' | 'round' | 'circle' | 'square'} [shape='rect']
|
|
39
|
+
* @version 0.0.3
|
|
37
40
|
*/
|
|
38
|
-
shape?: "
|
|
41
|
+
shape?: "rect" | "round" | "circle" | "square" | "default";
|
|
39
42
|
/**
|
|
40
43
|
* @property {'medium' | 'large' | 'small'} [size='medium']
|
|
41
44
|
* @version 0.0.0-beta
|
|
@@ -89,12 +92,8 @@ export type __VLS_Slots = {} & {
|
|
|
89
92
|
default?: (props: typeof __VLS_8) => any;
|
|
90
93
|
};
|
|
91
94
|
declare const __VLS_component: import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
|
|
92
|
-
shape: "default" | "round" | "circle" | "square";
|
|
93
|
-
size: "medium" | "large" | "small";
|
|
94
95
|
disabled: boolean;
|
|
95
96
|
loading: boolean;
|
|
96
|
-
variant: "primary" | "plain" | "text" | "outline";
|
|
97
|
-
theme: "primary" | "sakura" | "success" | "warning" | "danger" | "info";
|
|
98
97
|
block: boolean;
|
|
99
98
|
nativeType: "button" | "submit" | "reset";
|
|
100
99
|
autofocus: boolean;
|
|
@@ -112,13 +111,13 @@ export type ButtonGroupProps = {
|
|
|
112
111
|
*/
|
|
113
112
|
borderRadius?: NumberOrPercentage | NumberOrPercentage[];
|
|
114
113
|
/**
|
|
115
|
-
* @property {'
|
|
114
|
+
* @property {'rect' | 'round'} [shape='rect']
|
|
116
115
|
* @version 0.0.0-beta
|
|
117
116
|
*/
|
|
118
|
-
shape?: "
|
|
117
|
+
shape?: "rect" | "round" | "default";
|
|
119
118
|
/**
|
|
120
119
|
* @property {'medium' | 'large' | 'small'} [size='medium']
|
|
121
|
-
* @version 0.0.
|
|
120
|
+
* @version 0.0.3
|
|
122
121
|
*/
|
|
123
122
|
size?: "medium" | "large" | "small";
|
|
124
123
|
/**
|
|
@@ -136,15 +135,19 @@ export type ButtonGroupProps = {
|
|
|
136
135
|
* @version 0.0.0-beta
|
|
137
136
|
*/
|
|
138
137
|
variant?: "primary" | "plain" | "text" | "outline";
|
|
138
|
+
/**
|
|
139
|
+
* @property {'primary' | 'sakura' | 'success' | 'warning' | 'danger' | 'info'} [theme]
|
|
140
|
+
* @version 0.0.0-beta
|
|
141
|
+
*/
|
|
142
|
+
theme?: "primary" | "sakura" | "success" | "warning" | "danger" | "info";
|
|
139
143
|
};
|
|
140
144
|
declare var __VLS_1: {};
|
|
141
145
|
type __VLS_Slots$1 = {} & {
|
|
142
146
|
default?: (props: typeof __VLS_1) => any;
|
|
143
147
|
};
|
|
144
148
|
declare const __VLS_component$1: import("vue").DefineComponent<ButtonGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
|
|
145
|
-
shape: "default" | "round";
|
|
146
|
-
size: "medium" | "large" | "small";
|
|
147
149
|
disabled: boolean;
|
|
150
|
+
shape: "rect" | "round" | "default";
|
|
148
151
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
149
152
|
declare const _default$1: __VLS_WithSlots$1<typeof __VLS_component$1, __VLS_Slots$1>;
|
|
150
153
|
type __VLS_WithSlots$1<T, S> = T & {
|
|
@@ -566,11 +569,20 @@ type __VLS_WithSlots$7<T, S> = T & {
|
|
|
566
569
|
$slots: S;
|
|
567
570
|
};
|
|
568
571
|
};
|
|
572
|
+
export type MainProps = {
|
|
573
|
+
/**
|
|
574
|
+
* @property {boolean} [soft=false]
|
|
575
|
+
* @version 0.0.3
|
|
576
|
+
*/
|
|
577
|
+
soft?: boolean;
|
|
578
|
+
};
|
|
569
579
|
declare var __VLS_1$6: {};
|
|
570
580
|
type __VLS_Slots$8 = {} & {
|
|
571
581
|
default?: (props: typeof __VLS_1$6) => any;
|
|
572
582
|
};
|
|
573
|
-
declare const __VLS_component$8: import("vue").DefineComponent<
|
|
583
|
+
declare const __VLS_component$8: import("vue").DefineComponent<MainProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MainProps> & Readonly<{}>, {
|
|
584
|
+
soft: boolean;
|
|
585
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
574
586
|
declare const _default$11: __VLS_WithSlots$8<typeof __VLS_component$8, __VLS_Slots$8>;
|
|
575
587
|
type __VLS_WithSlots$8<T, S> = T & {
|
|
576
588
|
new (): {
|
|
@@ -678,6 +690,9 @@ export declare const setThemeColor: (theme: "primary" | "success" | "warning" |
|
|
|
678
690
|
light?: string[];
|
|
679
691
|
dark?: string[];
|
|
680
692
|
}) => void;
|
|
693
|
+
export declare const resetThemeColor: (theme: "primary" | "success" | "warning" | "danger" | "sakura" | "neutral") => void;
|
|
694
|
+
export declare const setPixelSize: (size: number) => void;
|
|
695
|
+
export declare const resetPixelSize: () => void;
|
|
681
696
|
export type Theme = "light" | "dark" | "unset";
|
|
682
697
|
export declare function useThemeMode(defaultTheme?: Theme): readonly [
|
|
683
698
|
import("vue").Ref<Theme, Theme>,
|
|
@@ -776,10 +791,10 @@ export type InputProps = {
|
|
|
776
791
|
*/
|
|
777
792
|
size?: "medium" | "large" | "small";
|
|
778
793
|
/**
|
|
779
|
-
* @property {'
|
|
780
|
-
* @version 0.0.
|
|
794
|
+
* @property {'rect' | 'round'} [shape='rect']
|
|
795
|
+
* @version 0.0.3
|
|
781
796
|
*/
|
|
782
|
-
shape?: "
|
|
797
|
+
shape?: "rect" | "round" | "default";
|
|
783
798
|
/**
|
|
784
799
|
* @property {NumberOrPercentage | NumberOrPercentage[]} [borderRadius]
|
|
785
800
|
* @version 0.0.2
|
|
@@ -821,9 +836,31 @@ export type InputProps = {
|
|
|
821
836
|
*/
|
|
822
837
|
nativeType?: "text" | "password" | "email" | "tel" | "url" | "search";
|
|
823
838
|
};
|
|
839
|
+
export type InputExpose = {
|
|
840
|
+
/**
|
|
841
|
+
* @property {() => void} focus
|
|
842
|
+
* @version 0.0.2
|
|
843
|
+
*/
|
|
844
|
+
focus: () => void;
|
|
845
|
+
/**
|
|
846
|
+
* @property {() => void} blur
|
|
847
|
+
* @version 0.0.2
|
|
848
|
+
*/
|
|
849
|
+
blur: () => void;
|
|
850
|
+
/**
|
|
851
|
+
* @property {() => void} clear
|
|
852
|
+
* @version 0.0.2
|
|
853
|
+
*/
|
|
854
|
+
clear: () => void;
|
|
855
|
+
/**
|
|
856
|
+
* @property {() => void} select
|
|
857
|
+
* @version 0.0.2
|
|
858
|
+
*/
|
|
859
|
+
select: () => void;
|
|
860
|
+
};
|
|
824
861
|
declare var __VLS_1$11: {}, __VLS_27: {
|
|
825
|
-
value:
|
|
826
|
-
count:
|
|
862
|
+
value: string | import("parsnip-kit").Nullish;
|
|
863
|
+
count: number;
|
|
827
864
|
maxLength: number | undefined;
|
|
828
865
|
}, __VLS_34: {};
|
|
829
866
|
type __VLS_Slots$13 = {} & {
|
|
@@ -833,32 +870,25 @@ type __VLS_Slots$13 = {} & {
|
|
|
833
870
|
} & {
|
|
834
871
|
suffix?: (props: typeof __VLS_34) => any;
|
|
835
872
|
};
|
|
836
|
-
declare const __VLS_component$13: import("vue").DefineComponent<InputProps, {
|
|
837
|
-
focus: () => void;
|
|
838
|
-
blur: () => void;
|
|
839
|
-
clear: () => Promise<void>;
|
|
840
|
-
select: () => void;
|
|
841
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
842
|
-
input: (value: string, e: Event) => any;
|
|
843
|
-
change: (value: string, e?: Event | undefined) => any;
|
|
873
|
+
declare const __VLS_component$13: import("vue").DefineComponent<InputProps, InputExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
844
874
|
clear: (value: string) => any;
|
|
875
|
+
change: (value: string, e?: Event | undefined) => any;
|
|
845
876
|
blur: (e: FocusEvent) => any;
|
|
877
|
+
input: (value: string, e: Event) => any;
|
|
846
878
|
focus: (e: FocusEvent) => any;
|
|
847
879
|
"update:modelValue": (value: string) => any;
|
|
848
880
|
}, string, import("vue").PublicProps, Readonly<InputProps> & Readonly<{
|
|
849
|
-
onInput?: ((value: string, e: Event) => any) | undefined;
|
|
850
|
-
onChange?: ((value: string, e?: Event | undefined) => any) | undefined;
|
|
851
881
|
onClear?: ((value: string) => any) | undefined;
|
|
882
|
+
onChange?: ((value: string, e?: Event | undefined) => any) | undefined;
|
|
852
883
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
884
|
+
onInput?: ((value: string, e: Event) => any) | undefined;
|
|
853
885
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
854
886
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
855
887
|
}>, {
|
|
856
|
-
shape: "default" | "round";
|
|
857
|
-
size: "medium" | "large" | "small";
|
|
858
888
|
disabled: boolean;
|
|
889
|
+
readonly: boolean;
|
|
859
890
|
loading: boolean;
|
|
860
891
|
password: boolean;
|
|
861
|
-
readonly: boolean;
|
|
862
892
|
clearable: boolean;
|
|
863
893
|
showCount: boolean;
|
|
864
894
|
status: "success" | "warning" | "error" | "normal";
|
|
@@ -951,10 +981,10 @@ export type InputNumberProps = {
|
|
|
951
981
|
*/
|
|
952
982
|
size?: "medium" | "large" | "small";
|
|
953
983
|
/**
|
|
954
|
-
* @property {'
|
|
955
|
-
* @version 0.0.
|
|
984
|
+
* @property {'rect' | 'round'} [shape='rect']
|
|
985
|
+
* @version 0.0.3
|
|
956
986
|
*/
|
|
957
|
-
shape?: "
|
|
987
|
+
shape?: "rect" | "round" | "default";
|
|
958
988
|
/**
|
|
959
989
|
* @property {NumberOrPercentage | NumberOrPercentage[]} [borderRadius]
|
|
960
990
|
* @version 0.0.2
|
|
@@ -976,37 +1006,52 @@ export type InputNumberProps = {
|
|
|
976
1006
|
*/
|
|
977
1007
|
autofocus?: boolean;
|
|
978
1008
|
};
|
|
979
|
-
|
|
1009
|
+
export type InputNumberExpose = {
|
|
1010
|
+
/**
|
|
1011
|
+
* @property {() => void} focus
|
|
1012
|
+
* @version 0.0.2
|
|
1013
|
+
*/
|
|
1014
|
+
focus: () => void;
|
|
1015
|
+
/**
|
|
1016
|
+
* @property {() => void} blur
|
|
1017
|
+
* @version 0.0.2
|
|
1018
|
+
*/
|
|
1019
|
+
blur: () => void;
|
|
1020
|
+
/**
|
|
1021
|
+
* @property {() => void} clear
|
|
1022
|
+
* @version 0.0.2
|
|
1023
|
+
*/
|
|
1024
|
+
clear: () => void;
|
|
1025
|
+
/**
|
|
1026
|
+
* @property {() => void} select
|
|
1027
|
+
* @version 0.0.2
|
|
1028
|
+
*/
|
|
1029
|
+
select: () => void;
|
|
1030
|
+
};
|
|
1031
|
+
declare var __VLS_1$12: {}, __VLS_60: {};
|
|
980
1032
|
type __VLS_Slots$14 = {} & {
|
|
981
1033
|
prefix?: (props: typeof __VLS_1$12) => any;
|
|
982
1034
|
} & {
|
|
983
|
-
suffix?: (props: typeof
|
|
1035
|
+
suffix?: (props: typeof __VLS_60) => any;
|
|
984
1036
|
};
|
|
985
|
-
declare const __VLS_component$14: import("vue").DefineComponent<InputNumberProps, {
|
|
986
|
-
focus: () => void;
|
|
987
|
-
blur: () => void;
|
|
988
|
-
clear: () => Promise<void>;
|
|
989
|
-
select: () => void;
|
|
990
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
991
|
-
input: (value: number, e: Event) => any;
|
|
992
|
-
change: (value: number, e?: Event | undefined) => any;
|
|
1037
|
+
declare const __VLS_component$14: import("vue").DefineComponent<InputNumberProps, InputNumberExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
993
1038
|
clear: (value: number) => any;
|
|
1039
|
+
change: (value: number, e?: Event | undefined) => any;
|
|
994
1040
|
blur: (e: FocusEvent) => any;
|
|
1041
|
+
input: (value: number, e: Event) => any;
|
|
995
1042
|
focus: (e: FocusEvent) => any;
|
|
996
1043
|
"update:modelValue": (value: number) => any;
|
|
997
1044
|
}, string, import("vue").PublicProps, Readonly<InputNumberProps> & Readonly<{
|
|
998
|
-
onInput?: ((value: number, e: Event) => any) | undefined;
|
|
999
|
-
onChange?: ((value: number, e?: Event | undefined) => any) | undefined;
|
|
1000
1045
|
onClear?: ((value: number) => any) | undefined;
|
|
1046
|
+
onChange?: ((value: number, e?: Event | undefined) => any) | undefined;
|
|
1001
1047
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
1048
|
+
onInput?: ((value: number, e: Event) => any) | undefined;
|
|
1002
1049
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
1003
1050
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
1004
1051
|
}>, {
|
|
1005
|
-
shape: "default" | "round";
|
|
1006
|
-
size: "medium" | "large" | "small";
|
|
1007
1052
|
disabled: boolean;
|
|
1008
|
-
loading: boolean;
|
|
1009
1053
|
readonly: boolean;
|
|
1054
|
+
loading: boolean;
|
|
1010
1055
|
clearable: boolean;
|
|
1011
1056
|
status: "success" | "warning" | "error" | "normal";
|
|
1012
1057
|
max: number;
|
|
@@ -1118,6 +1163,28 @@ export type TextareaProps = {
|
|
|
1118
1163
|
*/
|
|
1119
1164
|
autofocus?: boolean;
|
|
1120
1165
|
};
|
|
1166
|
+
export type TextareaExpose = {
|
|
1167
|
+
/**
|
|
1168
|
+
* @property {() => void} focus
|
|
1169
|
+
* @version 0.0.2
|
|
1170
|
+
*/
|
|
1171
|
+
focus: () => void;
|
|
1172
|
+
/**
|
|
1173
|
+
* @property {() => void} blur
|
|
1174
|
+
* @version 0.0.2
|
|
1175
|
+
*/
|
|
1176
|
+
blur: () => void;
|
|
1177
|
+
/**
|
|
1178
|
+
* @property {() => void} clear
|
|
1179
|
+
* @version 0.0.2
|
|
1180
|
+
*/
|
|
1181
|
+
clear: () => void;
|
|
1182
|
+
/**
|
|
1183
|
+
* @property {() => void} select
|
|
1184
|
+
* @version 0.0.2
|
|
1185
|
+
*/
|
|
1186
|
+
select: () => void;
|
|
1187
|
+
};
|
|
1121
1188
|
declare var __VLS_9: {
|
|
1122
1189
|
value: string | Nullish;
|
|
1123
1190
|
count: number;
|
|
@@ -1126,31 +1193,25 @@ declare var __VLS_9: {
|
|
|
1126
1193
|
type __VLS_Slots$15 = {} & {
|
|
1127
1194
|
count?: (props: typeof __VLS_9) => any;
|
|
1128
1195
|
};
|
|
1129
|
-
declare const __VLS_component$15: import("vue").DefineComponent<TextareaProps, {
|
|
1130
|
-
focus: () => void;
|
|
1131
|
-
blur: () => void;
|
|
1132
|
-
clear: () => Promise<void>;
|
|
1133
|
-
select: () => void;
|
|
1134
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1135
|
-
input: (value: string, e: Event) => any;
|
|
1136
|
-
change: (value: string, e?: Event | undefined) => any;
|
|
1196
|
+
declare const __VLS_component$15: import("vue").DefineComponent<TextareaProps, TextareaExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1137
1197
|
clear: (value: string) => any;
|
|
1198
|
+
change: (value: string, e?: Event | undefined) => any;
|
|
1138
1199
|
blur: (e: FocusEvent) => any;
|
|
1200
|
+
input: (value: string, e: Event) => any;
|
|
1139
1201
|
focus: (e: FocusEvent) => any;
|
|
1140
1202
|
"update:modelValue": (value: string) => any;
|
|
1141
1203
|
}, string, import("vue").PublicProps, Readonly<TextareaProps> & Readonly<{
|
|
1142
|
-
onInput?: ((value: string, e: Event) => any) | undefined;
|
|
1143
|
-
onChange?: ((value: string, e?: Event | undefined) => any) | undefined;
|
|
1144
1204
|
onClear?: ((value: string) => any) | undefined;
|
|
1205
|
+
onChange?: ((value: string, e?: Event | undefined) => any) | undefined;
|
|
1145
1206
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
1207
|
+
onInput?: ((value: string, e: Event) => any) | undefined;
|
|
1146
1208
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
1147
1209
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1148
1210
|
}>, {
|
|
1149
|
-
size: "medium" | "large" | "small";
|
|
1150
1211
|
disabled: boolean;
|
|
1151
|
-
loading: boolean;
|
|
1152
|
-
resize: boolean;
|
|
1153
1212
|
readonly: boolean;
|
|
1213
|
+
resize: boolean;
|
|
1214
|
+
loading: boolean;
|
|
1154
1215
|
clearable: boolean;
|
|
1155
1216
|
showCount: boolean;
|
|
1156
1217
|
status: "success" | "warning" | "error" | "normal";
|
|
@@ -1171,10 +1232,10 @@ export type TagProps = {
|
|
|
1171
1232
|
*/
|
|
1172
1233
|
borderRadius?: NumberOrPercentage | NumberOrPercentage[];
|
|
1173
1234
|
/**
|
|
1174
|
-
* @property {'
|
|
1175
|
-
* @version 0.0.
|
|
1235
|
+
* @property {'rect' | 'round'} [shape='rect']
|
|
1236
|
+
* @version 0.0.3
|
|
1176
1237
|
*/
|
|
1177
|
-
shape?: "
|
|
1238
|
+
shape?: "rect" | "round" | "default";
|
|
1178
1239
|
/**
|
|
1179
1240
|
* @property {'medium' | 'large' | 'small'} [size='medium']
|
|
1180
1241
|
* @version 0.0.2
|
|
@@ -1206,6 +1267,16 @@ export type TagProps = {
|
|
|
1206
1267
|
*/
|
|
1207
1268
|
closable?: boolean;
|
|
1208
1269
|
};
|
|
1270
|
+
export type TagEvents = {
|
|
1271
|
+
/**
|
|
1272
|
+
* @event close
|
|
1273
|
+
* @version 0.0.2
|
|
1274
|
+
* @param {MouseEvent} e
|
|
1275
|
+
*/
|
|
1276
|
+
close: [
|
|
1277
|
+
e: MouseEvent
|
|
1278
|
+
];
|
|
1279
|
+
};
|
|
1209
1280
|
declare var __VLS_1$13: {};
|
|
1210
1281
|
type __VLS_Slots$16 = {} & {
|
|
1211
1282
|
default?: (props: typeof __VLS_1$13) => any;
|
|
@@ -1215,11 +1286,11 @@ declare const __VLS_component$16: import("vue").DefineComponent<TagProps, {}, {}
|
|
|
1215
1286
|
}, string, import("vue").PublicProps, Readonly<TagProps> & Readonly<{
|
|
1216
1287
|
onClose?: ((e: MouseEvent) => any) | undefined;
|
|
1217
1288
|
}>, {
|
|
1218
|
-
shape: "default" | "round";
|
|
1219
1289
|
size: "medium" | "large" | "small";
|
|
1220
|
-
disabled: boolean;
|
|
1221
1290
|
variant: "primary" | "plain" | "outline";
|
|
1222
1291
|
theme: "primary" | "sakura" | "success" | "warning" | "danger" | "info";
|
|
1292
|
+
disabled: boolean;
|
|
1293
|
+
shape: "rect" | "round" | "default";
|
|
1223
1294
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1224
1295
|
declare const _default$19: __VLS_WithSlots$16<typeof __VLS_component$16, __VLS_Slots$16>;
|
|
1225
1296
|
type __VLS_WithSlots$16<T, S> = T & {
|
|
@@ -1234,10 +1305,10 @@ export type InputGroupProps = {
|
|
|
1234
1305
|
*/
|
|
1235
1306
|
borderRadius?: NumberOrPercentage | NumberOrPercentage[];
|
|
1236
1307
|
/**
|
|
1237
|
-
* @property {'
|
|
1238
|
-
* @version 0.0.
|
|
1308
|
+
* @property {'rect' | 'round'} [shape='rect']
|
|
1309
|
+
* @version 0.0.3
|
|
1239
1310
|
*/
|
|
1240
|
-
shape?: "
|
|
1311
|
+
shape?: "rect" | "round" | "default";
|
|
1241
1312
|
/**
|
|
1242
1313
|
* @property {'medium' | 'large' | 'small'} [size='medium']
|
|
1243
1314
|
* @version 0.0.2
|
|
@@ -1248,15 +1319,20 @@ export type InputGroupProps = {
|
|
|
1248
1319
|
* @version 0.0.2
|
|
1249
1320
|
*/
|
|
1250
1321
|
disabled?: boolean;
|
|
1322
|
+
/**
|
|
1323
|
+
* @property {boolean} [readonly=false]
|
|
1324
|
+
* @version 0.0.3
|
|
1325
|
+
*/
|
|
1326
|
+
readonly?: boolean;
|
|
1251
1327
|
};
|
|
1252
1328
|
declare var __VLS_1$14: {};
|
|
1253
1329
|
type __VLS_Slots$17 = {} & {
|
|
1254
1330
|
default?: (props: typeof __VLS_1$14) => any;
|
|
1255
1331
|
};
|
|
1256
1332
|
declare const __VLS_component$17: import("vue").DefineComponent<InputGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<InputGroupProps> & Readonly<{}>, {
|
|
1257
|
-
shape: "default" | "round";
|
|
1258
|
-
size: "medium" | "large" | "small";
|
|
1259
1333
|
disabled: boolean;
|
|
1334
|
+
readonly: boolean;
|
|
1335
|
+
shape: "rect" | "round" | "default";
|
|
1260
1336
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1261
1337
|
declare const _default$20: __VLS_WithSlots$17<typeof __VLS_component$17, __VLS_Slots$17>;
|
|
1262
1338
|
type __VLS_WithSlots$17<T, S> = T & {
|
|
@@ -1276,10 +1352,10 @@ export type InputGroupLabelProps = {
|
|
|
1276
1352
|
*/
|
|
1277
1353
|
borderRadius?: NumberOrPercentage | NumberOrPercentage[];
|
|
1278
1354
|
/**
|
|
1279
|
-
* @property {'
|
|
1280
|
-
* @version 0.0.
|
|
1355
|
+
* @property {'rect' | 'round'} [shape='rect']
|
|
1356
|
+
* @version 0.0.3
|
|
1281
1357
|
*/
|
|
1282
|
-
shape?: "
|
|
1358
|
+
shape?: "rect" | "round" | "default";
|
|
1283
1359
|
/**
|
|
1284
1360
|
* @property {'medium' | 'large' | 'small'} [size='medium']
|
|
1285
1361
|
* @version 0.0.2
|
|
@@ -1290,16 +1366,111 @@ declare var __VLS_1$15: {};
|
|
|
1290
1366
|
type __VLS_Slots$18 = {} & {
|
|
1291
1367
|
default?: (props: typeof __VLS_1$15) => any;
|
|
1292
1368
|
};
|
|
1293
|
-
declare const __VLS_component$18: import("vue").DefineComponent<InputGroupLabelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<InputGroupLabelProps> & Readonly<{}>, {
|
|
1294
|
-
shape: "default" | "round";
|
|
1295
|
-
size: "medium" | "large" | "small";
|
|
1296
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1369
|
+
declare const __VLS_component$18: import("vue").DefineComponent<InputGroupLabelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<InputGroupLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1297
1370
|
declare const _default$21: __VLS_WithSlots$18<typeof __VLS_component$18, __VLS_Slots$18>;
|
|
1298
1371
|
type __VLS_WithSlots$18<T, S> = T & {
|
|
1299
1372
|
new (): {
|
|
1300
1373
|
$slots: S;
|
|
1301
1374
|
};
|
|
1302
1375
|
};
|
|
1376
|
+
export type PopoverProps = {
|
|
1377
|
+
/**
|
|
1378
|
+
* @property {string} [content]
|
|
1379
|
+
* @version 0.0.2
|
|
1380
|
+
*/
|
|
1381
|
+
content?: string;
|
|
1382
|
+
/**
|
|
1383
|
+
* @property {boolean | null} [visible]
|
|
1384
|
+
* @version 0.0.2
|
|
1385
|
+
*/
|
|
1386
|
+
visible?: boolean | null;
|
|
1387
|
+
/**
|
|
1388
|
+
* @property {boolean | null} [defaultVisible]
|
|
1389
|
+
* @version 0.0.2
|
|
1390
|
+
*/
|
|
1391
|
+
defaultVisible?: boolean | null;
|
|
1392
|
+
/**
|
|
1393
|
+
* @property {'top' | 'right' | 'bottom' | 'left' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end'} [placement='top']
|
|
1394
|
+
* @version 0.0.2
|
|
1395
|
+
*/
|
|
1396
|
+
placement?: "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
1397
|
+
/**
|
|
1398
|
+
* @property {'hover' | 'click'} [trigger='hover']
|
|
1399
|
+
* @version 0.0.2
|
|
1400
|
+
*/
|
|
1401
|
+
trigger?: "hover" | "click";
|
|
1402
|
+
/**
|
|
1403
|
+
* @property {number} [offset=8]
|
|
1404
|
+
* @version 0.0.2
|
|
1405
|
+
*/
|
|
1406
|
+
offset?: number;
|
|
1407
|
+
/**
|
|
1408
|
+
* @property {'dark' | 'light'} [variant='light']
|
|
1409
|
+
* @version 0.0.2
|
|
1410
|
+
*/
|
|
1411
|
+
variant?: "dark" | "light";
|
|
1412
|
+
/**
|
|
1413
|
+
* @property {boolean} [arrow=true]
|
|
1414
|
+
* @version 0.0.2
|
|
1415
|
+
*/
|
|
1416
|
+
arrow?: boolean;
|
|
1417
|
+
/**
|
|
1418
|
+
* @property {boolean} [disabled=false]
|
|
1419
|
+
* @version 0.0.2
|
|
1420
|
+
*/
|
|
1421
|
+
disabled?: boolean;
|
|
1422
|
+
/**
|
|
1423
|
+
* @property {number} [zIndex]
|
|
1424
|
+
* @version 0.0.2
|
|
1425
|
+
*/
|
|
1426
|
+
zIndex?: number;
|
|
1427
|
+
/**
|
|
1428
|
+
* @property { HTMLElement | string} [root='body']
|
|
1429
|
+
* @version 0.0.2
|
|
1430
|
+
*/
|
|
1431
|
+
root?: HTMLElement | string;
|
|
1432
|
+
/**
|
|
1433
|
+
* @property {boolean} [widthEqual=false]
|
|
1434
|
+
* @version 0.0.2
|
|
1435
|
+
*/
|
|
1436
|
+
widthEqual?: boolean;
|
|
1437
|
+
/**
|
|
1438
|
+
* @property {CSSProperties} [contentStyle]
|
|
1439
|
+
* @version 0.0.2
|
|
1440
|
+
*/
|
|
1441
|
+
contentStyle?: CSSProperties;
|
|
1442
|
+
/**
|
|
1443
|
+
* @property {boolean} [destroyOnHide=false]
|
|
1444
|
+
* @version 0.0.3
|
|
1445
|
+
*/
|
|
1446
|
+
destroyOnHide?: boolean;
|
|
1447
|
+
};
|
|
1448
|
+
export type PopoverEvents = {
|
|
1449
|
+
/**
|
|
1450
|
+
* @event update:visible
|
|
1451
|
+
* @param {boolean} value
|
|
1452
|
+
* @version 0.0.2
|
|
1453
|
+
*/
|
|
1454
|
+
"update:visible": [
|
|
1455
|
+
value: boolean
|
|
1456
|
+
];
|
|
1457
|
+
/**
|
|
1458
|
+
* @event close
|
|
1459
|
+
* @param {MouseEvent} e
|
|
1460
|
+
* @version 0.0.2
|
|
1461
|
+
*/
|
|
1462
|
+
close: [
|
|
1463
|
+
e: MouseEvent | TouchEvent
|
|
1464
|
+
];
|
|
1465
|
+
/**
|
|
1466
|
+
* @event open
|
|
1467
|
+
* @param {MouseEvent} e
|
|
1468
|
+
* @version 0.0.2
|
|
1469
|
+
*/
|
|
1470
|
+
open: [
|
|
1471
|
+
e: MouseEvent
|
|
1472
|
+
];
|
|
1473
|
+
};
|
|
1303
1474
|
export type InputTagProps = {
|
|
1304
1475
|
/**
|
|
1305
1476
|
* @property {string[] | null} [modelValue]
|
|
@@ -1352,10 +1523,10 @@ export type InputTagProps = {
|
|
|
1352
1523
|
*/
|
|
1353
1524
|
size?: "medium" | "large" | "small";
|
|
1354
1525
|
/**
|
|
1355
|
-
* @property {'
|
|
1356
|
-
* @version 0.0.
|
|
1526
|
+
* @property {'rect' | 'round'} [shape='rect']
|
|
1527
|
+
* @version 0.0.3
|
|
1357
1528
|
*/
|
|
1358
|
-
shape?: "
|
|
1529
|
+
shape?: "rect" | "round" | "default";
|
|
1359
1530
|
/**
|
|
1360
1531
|
* @property {NumberOrPercentage | NumberOrPercentage[]} [borderRadius]
|
|
1361
1532
|
* @version 0.0.2
|
|
@@ -1381,6 +1552,21 @@ export type InputTagProps = {
|
|
|
1381
1552
|
* @version 0.0.2
|
|
1382
1553
|
*/
|
|
1383
1554
|
collapseTagsPopover?: boolean;
|
|
1555
|
+
/**
|
|
1556
|
+
* @property {Omit<TagProps, 'size' | 'disabled' | 'closable'> & EmitEvent<TagEvents>} [tagProps]
|
|
1557
|
+
* @version 0.0.3
|
|
1558
|
+
*/
|
|
1559
|
+
tagProps?: Omit<TagProps, "size" | "disabled" | "closable"> & EmitEvent<TagEvents>;
|
|
1560
|
+
/**
|
|
1561
|
+
* @property {'success' | 'warning' | 'error' | 'normal'} [status='normal']
|
|
1562
|
+
* @version 0.0.2
|
|
1563
|
+
*/
|
|
1564
|
+
status?: "success" | "warning" | "error" | "normal";
|
|
1565
|
+
/**
|
|
1566
|
+
* @property {boolean} [autofocus=false]
|
|
1567
|
+
* @version 0.0.2
|
|
1568
|
+
*/
|
|
1569
|
+
autofocus?: boolean;
|
|
1384
1570
|
/**
|
|
1385
1571
|
* @property {'primary' | 'sakura' | 'success' | 'warning' | 'danger' | 'info'} [tagTheme='info']
|
|
1386
1572
|
* @version 0.0.2
|
|
@@ -1397,15 +1583,27 @@ export type InputTagProps = {
|
|
|
1397
1583
|
*/
|
|
1398
1584
|
tagColor?: TagProps["color"];
|
|
1399
1585
|
/**
|
|
1400
|
-
* @property {
|
|
1586
|
+
* @property {Omit<PopoverProps, 'visible' | 'content'> & EmitEvent<PopoverEvents>} [popoverProps]
|
|
1587
|
+
* @version 0.0.3
|
|
1588
|
+
*/
|
|
1589
|
+
popoverProps?: Omit<PopoverProps, "visible" | "content"> & EmitEvent<PopoverEvents>;
|
|
1590
|
+
};
|
|
1591
|
+
export type InputTagExpose = {
|
|
1592
|
+
/**
|
|
1593
|
+
* @property {() => void} focus
|
|
1401
1594
|
* @version 0.0.2
|
|
1402
1595
|
*/
|
|
1403
|
-
|
|
1596
|
+
focus: () => void;
|
|
1404
1597
|
/**
|
|
1405
|
-
* @property {
|
|
1598
|
+
* @property {() => void} blur
|
|
1406
1599
|
* @version 0.0.2
|
|
1407
1600
|
*/
|
|
1408
|
-
|
|
1601
|
+
blur: () => void;
|
|
1602
|
+
/**
|
|
1603
|
+
* @property {() => void} clear
|
|
1604
|
+
* @version 0.0.2
|
|
1605
|
+
*/
|
|
1606
|
+
clear: () => void;
|
|
1409
1607
|
};
|
|
1410
1608
|
declare var __VLS_1$16: {}, __VLS_10: {
|
|
1411
1609
|
tag: string;
|
|
@@ -1433,15 +1631,11 @@ type __VLS_Slots$19 = {} & {
|
|
|
1433
1631
|
} & {
|
|
1434
1632
|
suffix?: (props: typeof __VLS_51) => any;
|
|
1435
1633
|
};
|
|
1436
|
-
declare const __VLS_component$19: import("vue").DefineComponent<InputTagProps, {
|
|
1437
|
-
focus: () => void;
|
|
1438
|
-
blur: () => void;
|
|
1439
|
-
clear: () => Promise<void>;
|
|
1440
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1441
|
-
input: (value: string, e: Event) => any;
|
|
1442
|
-
change: (value: string[]) => any;
|
|
1634
|
+
declare const __VLS_component$19: import("vue").DefineComponent<InputTagProps, InputTagExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1443
1635
|
clear: (value: string[]) => any;
|
|
1636
|
+
change: (value: string[]) => any;
|
|
1444
1637
|
blur: (e: FocusEvent) => any;
|
|
1638
|
+
input: (value: string, e: Event) => any;
|
|
1445
1639
|
focus: (e: FocusEvent) => any;
|
|
1446
1640
|
"update:modelValue": (value: string[]) => any;
|
|
1447
1641
|
tagAdd: (value: string, e: KeyboardEvent) => any;
|
|
@@ -1449,10 +1643,10 @@ declare const __VLS_component$19: import("vue").DefineComponent<InputTagProps, {
|
|
|
1449
1643
|
"update:inputValue": (value: string) => any;
|
|
1450
1644
|
inputChange: (value: string, e?: Event | undefined) => any;
|
|
1451
1645
|
}, string, import("vue").PublicProps, Readonly<InputTagProps> & Readonly<{
|
|
1452
|
-
onInput?: ((value: string, e: Event) => any) | undefined;
|
|
1453
|
-
onChange?: ((value: string[]) => any) | undefined;
|
|
1454
1646
|
onClear?: ((value: string[]) => any) | undefined;
|
|
1647
|
+
onChange?: ((value: string[]) => any) | undefined;
|
|
1455
1648
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
1649
|
+
onInput?: ((value: string, e: Event) => any) | undefined;
|
|
1456
1650
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
1457
1651
|
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
1458
1652
|
onTagAdd?: ((value: string, e: KeyboardEvent) => any) | undefined;
|
|
@@ -1460,11 +1654,9 @@ declare const __VLS_component$19: import("vue").DefineComponent<InputTagProps, {
|
|
|
1460
1654
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
|
1461
1655
|
onInputChange?: ((value: string, e?: Event | undefined) => any) | undefined;
|
|
1462
1656
|
}>, {
|
|
1463
|
-
shape: "default" | "round";
|
|
1464
|
-
size: "medium" | "large" | "small";
|
|
1465
1657
|
disabled: boolean;
|
|
1466
|
-
loading: boolean;
|
|
1467
1658
|
readonly: boolean;
|
|
1659
|
+
loading: boolean;
|
|
1468
1660
|
clearable: boolean;
|
|
1469
1661
|
status: "success" | "warning" | "error" | "normal";
|
|
1470
1662
|
collapseTags: boolean;
|
|
@@ -1525,7 +1717,7 @@ export type TooltipProps = {
|
|
|
1525
1717
|
*/
|
|
1526
1718
|
disabled?: boolean;
|
|
1527
1719
|
/**
|
|
1528
|
-
* @property {number} [
|
|
1720
|
+
* @property {number} [zIndex]
|
|
1529
1721
|
* @version 0.0.2
|
|
1530
1722
|
*/
|
|
1531
1723
|
zIndex?: number;
|
|
@@ -1534,91 +1726,37 @@ export type TooltipProps = {
|
|
|
1534
1726
|
* @version 0.0.2
|
|
1535
1727
|
*/
|
|
1536
1728
|
root?: HTMLElement | string;
|
|
1537
|
-
};
|
|
1538
|
-
declare const _default$23: import("vue").DefineComponent<TooltipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1539
|
-
close: (e: MouseEvent) => any;
|
|
1540
|
-
open: (e: MouseEvent) => any;
|
|
1541
|
-
"update:visible": (value: boolean) => any;
|
|
1542
|
-
}, string, import("vue").PublicProps, Readonly<TooltipProps> & Readonly<{
|
|
1543
|
-
onClose?: ((e: MouseEvent) => any) | undefined;
|
|
1544
|
-
onOpen?: ((e: MouseEvent) => any) | undefined;
|
|
1545
|
-
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
1546
|
-
}>, {
|
|
1547
|
-
variant: "dark" | "light";
|
|
1548
|
-
placement: "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
1549
|
-
root: HTMLElement | string;
|
|
1550
|
-
offset: number;
|
|
1551
|
-
visible: boolean | null;
|
|
1552
|
-
defaultVisible: boolean | null;
|
|
1553
|
-
arrow: boolean;
|
|
1554
|
-
trigger: "hover" | "click";
|
|
1555
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1556
|
-
export type PopoverProps = {
|
|
1557
|
-
/**
|
|
1558
|
-
* @property {string} [content]
|
|
1559
|
-
* @version 0.0.2
|
|
1560
|
-
*/
|
|
1561
|
-
content?: string;
|
|
1562
|
-
/**
|
|
1563
|
-
* @property {boolean | null} [visible]
|
|
1564
|
-
* @version 0.0.2
|
|
1565
|
-
*/
|
|
1566
|
-
visible?: boolean | null;
|
|
1567
|
-
/**
|
|
1568
|
-
* @property {boolean | null} [defaultVisible]
|
|
1569
|
-
* @version 0.0.2
|
|
1570
|
-
*/
|
|
1571
|
-
defaultVisible?: boolean | null;
|
|
1572
|
-
/**
|
|
1573
|
-
* @property {'top' | 'right' | 'bottom' | 'left' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end'} [placement='top']
|
|
1574
|
-
* @version 0.0.2
|
|
1575
|
-
*/
|
|
1576
|
-
placement?: "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
1577
|
-
/**
|
|
1578
|
-
* @property {'hover' | 'click'} [trigger='hover']
|
|
1579
|
-
* @version 0.0.2
|
|
1580
|
-
*/
|
|
1581
|
-
trigger?: "hover" | "click";
|
|
1582
|
-
/**
|
|
1583
|
-
* @property {number} [offset=8]
|
|
1584
|
-
* @version 0.0.2
|
|
1585
|
-
*/
|
|
1586
|
-
offset?: number;
|
|
1587
|
-
/**
|
|
1588
|
-
* @property {'dark' | 'light'} [variant='light']
|
|
1589
|
-
* @version 0.0.2
|
|
1590
|
-
*/
|
|
1591
|
-
variant?: "dark" | "light";
|
|
1592
|
-
/**
|
|
1593
|
-
* @property {boolean} [arrow=true]
|
|
1594
|
-
* @version 0.0.2
|
|
1595
|
-
*/
|
|
1596
|
-
arrow?: boolean;
|
|
1597
|
-
/**
|
|
1598
|
-
* @property {boolean} [disabled=false]
|
|
1599
|
-
* @version 0.0.2
|
|
1600
|
-
*/
|
|
1601
|
-
disabled?: boolean;
|
|
1602
1729
|
/**
|
|
1603
|
-
* @property {
|
|
1604
|
-
* @version 0.0.
|
|
1730
|
+
* @property {boolean} [destroyOnHide=false]
|
|
1731
|
+
* @version 0.0.3
|
|
1605
1732
|
*/
|
|
1606
|
-
|
|
1733
|
+
destroyOnHide?: boolean;
|
|
1734
|
+
};
|
|
1735
|
+
export type TooltipEvents = {
|
|
1607
1736
|
/**
|
|
1608
|
-
* @
|
|
1737
|
+
* @event update:visible
|
|
1738
|
+
* @param {boolean} value
|
|
1609
1739
|
* @version 0.0.2
|
|
1610
1740
|
*/
|
|
1611
|
-
|
|
1741
|
+
"update:visible": [
|
|
1742
|
+
value: boolean
|
|
1743
|
+
];
|
|
1612
1744
|
/**
|
|
1613
|
-
* @
|
|
1745
|
+
* @event close
|
|
1746
|
+
* @param {MouseEvent} e
|
|
1614
1747
|
* @version 0.0.2
|
|
1615
1748
|
*/
|
|
1616
|
-
|
|
1749
|
+
close: [
|
|
1750
|
+
e: MouseEvent | TouchEvent
|
|
1751
|
+
];
|
|
1617
1752
|
/**
|
|
1618
|
-
* @
|
|
1753
|
+
* @event open
|
|
1754
|
+
* @param {MouseEvent} e
|
|
1619
1755
|
* @version 0.0.2
|
|
1620
1756
|
*/
|
|
1621
|
-
|
|
1757
|
+
open: [
|
|
1758
|
+
e: MouseEvent
|
|
1759
|
+
];
|
|
1622
1760
|
};
|
|
1623
1761
|
export type PopupContentProps = {
|
|
1624
1762
|
content?: string;
|
|
@@ -1634,9 +1772,10 @@ export type PopupContentProps = {
|
|
|
1634
1772
|
borderRadius?: number;
|
|
1635
1773
|
widthEqual?: boolean;
|
|
1636
1774
|
contentStyle?: CSSProperties;
|
|
1775
|
+
destroyOnHide?: boolean;
|
|
1637
1776
|
};
|
|
1638
|
-
declare const _default$
|
|
1639
|
-
triggerContent:
|
|
1777
|
+
declare const _default$23: import("vue").DefineComponent<TooltipProps, {
|
|
1778
|
+
readonly triggerContent: ({
|
|
1640
1779
|
$: import("vue").ComponentInternalInstance;
|
|
1641
1780
|
$data: {};
|
|
1642
1781
|
$props: {
|
|
@@ -1648,11 +1787,12 @@ declare const _default$24: import("vue").DefineComponent<PopoverProps, {
|
|
|
1648
1787
|
readonly variant?: "dark" | "light" | undefined;
|
|
1649
1788
|
readonly arrow?: boolean | undefined;
|
|
1650
1789
|
readonly zIndex?: number | undefined;
|
|
1651
|
-
readonly target?: (HTMLElement | VNode | null) | undefined;
|
|
1790
|
+
readonly target?: (HTMLElement | import("vue").VNode | null) | undefined;
|
|
1652
1791
|
readonly root?: (HTMLElement | string) | undefined;
|
|
1653
1792
|
readonly borderRadius?: number | undefined;
|
|
1654
1793
|
readonly widthEqual?: boolean | undefined;
|
|
1655
1794
|
readonly contentStyle?: import("vue").CSSProperties | undefined;
|
|
1795
|
+
readonly destroyOnHide?: boolean | undefined;
|
|
1656
1796
|
readonly onContentMouseenter?: ((e: MouseEvent) => any) | undefined;
|
|
1657
1797
|
readonly onContentMouseleave?: ((e: MouseEvent) => any) | undefined;
|
|
1658
1798
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -1687,6 +1827,7 @@ declare const _default$24: import("vue").DefineComponent<PopoverProps, {
|
|
|
1687
1827
|
visible: boolean | null;
|
|
1688
1828
|
arrow: boolean;
|
|
1689
1829
|
widthEqual: boolean;
|
|
1830
|
+
destroyOnHide: boolean;
|
|
1690
1831
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
1691
1832
|
beforeCreate?: (() => void) | (() => void)[];
|
|
1692
1833
|
created?: (() => void) | (() => void)[];
|
|
@@ -1705,7 +1846,7 @@ declare const _default$24: import("vue").DefineComponent<PopoverProps, {
|
|
|
1705
1846
|
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1706
1847
|
};
|
|
1707
1848
|
$forceUpdate: () => void;
|
|
1708
|
-
$nextTick: typeof nextTick;
|
|
1849
|
+
$nextTick: typeof import("vue").nextTick;
|
|
1709
1850
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [
|
|
1710
1851
|
R,
|
|
1711
1852
|
R,
|
|
@@ -1723,17 +1864,40 @@ declare const _default$24: import("vue").DefineComponent<PopoverProps, {
|
|
|
1723
1864
|
visible: boolean | null;
|
|
1724
1865
|
arrow: boolean;
|
|
1725
1866
|
widthEqual: boolean;
|
|
1867
|
+
destroyOnHide: boolean;
|
|
1726
1868
|
}> & Omit<Readonly<PopupContentProps> & Readonly<{
|
|
1727
1869
|
onContentMouseenter?: ((e: MouseEvent) => any) | undefined;
|
|
1728
1870
|
onContentMouseleave?: ((e: MouseEvent) => any) | undefined;
|
|
1729
|
-
}>, "content" | ("variant" | "placement" | "root" | "offset" | "visible" | "arrow" | "widthEqual"
|
|
1871
|
+
}>, "content" | "updateRenderState" | ("variant" | "placement" | "root" | "offset" | "visible" | "arrow" | "widthEqual" | "destroyOnHide")> & import("vue").ShallowUnwrapRef<{
|
|
1730
1872
|
updateRenderState: () => void;
|
|
1731
1873
|
content: import("vue").ShallowRef<HTMLDivElement | null, HTMLDivElement | null>;
|
|
1732
1874
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
1733
1875
|
$slots: {
|
|
1734
1876
|
content?: (props: {}) => any;
|
|
1735
1877
|
};
|
|
1736
|
-
}) | undefined
|
|
1878
|
+
}) | undefined;
|
|
1879
|
+
updateRenderState(): void;
|
|
1880
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1881
|
+
close: (e: MouseEvent | TouchEvent) => any;
|
|
1882
|
+
open: (e: MouseEvent) => any;
|
|
1883
|
+
"update:visible": (value: boolean) => any;
|
|
1884
|
+
}, string, import("vue").PublicProps, Readonly<TooltipProps> & Readonly<{
|
|
1885
|
+
onClose?: ((e: MouseEvent | TouchEvent) => any) | undefined;
|
|
1886
|
+
onOpen?: ((e: MouseEvent) => any) | undefined;
|
|
1887
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
1888
|
+
}>, {
|
|
1889
|
+
variant: "dark" | "light";
|
|
1890
|
+
placement: "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
1891
|
+
root: HTMLElement | string;
|
|
1892
|
+
offset: number;
|
|
1893
|
+
visible: boolean | null;
|
|
1894
|
+
defaultVisible: boolean | null;
|
|
1895
|
+
trigger: "hover" | "click";
|
|
1896
|
+
arrow: boolean;
|
|
1897
|
+
destroyOnHide: boolean;
|
|
1898
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1899
|
+
declare const _default$24: import("vue").DefineComponent<PopoverProps, {
|
|
1900
|
+
readonly triggerContent: ({
|
|
1737
1901
|
$: import("vue").ComponentInternalInstance;
|
|
1738
1902
|
$data: {};
|
|
1739
1903
|
$props: {
|
|
@@ -1745,11 +1909,12 @@ declare const _default$24: import("vue").DefineComponent<PopoverProps, {
|
|
|
1745
1909
|
readonly variant?: "dark" | "light" | undefined;
|
|
1746
1910
|
readonly arrow?: boolean | undefined;
|
|
1747
1911
|
readonly zIndex?: number | undefined;
|
|
1748
|
-
readonly target?: (HTMLElement | VNode | null) | undefined;
|
|
1912
|
+
readonly target?: (HTMLElement | import("vue").VNode | null) | undefined;
|
|
1749
1913
|
readonly root?: (HTMLElement | string) | undefined;
|
|
1750
1914
|
readonly borderRadius?: number | undefined;
|
|
1751
1915
|
readonly widthEqual?: boolean | undefined;
|
|
1752
1916
|
readonly contentStyle?: import("vue").CSSProperties | undefined;
|
|
1917
|
+
readonly destroyOnHide?: boolean | undefined;
|
|
1753
1918
|
readonly onContentMouseenter?: ((e: MouseEvent) => any) | undefined;
|
|
1754
1919
|
readonly onContentMouseleave?: ((e: MouseEvent) => any) | undefined;
|
|
1755
1920
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -1784,6 +1949,7 @@ declare const _default$24: import("vue").DefineComponent<PopoverProps, {
|
|
|
1784
1949
|
visible: boolean | null;
|
|
1785
1950
|
arrow: boolean;
|
|
1786
1951
|
widthEqual: boolean;
|
|
1952
|
+
destroyOnHide: boolean;
|
|
1787
1953
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
1788
1954
|
beforeCreate?: (() => void) | (() => void)[];
|
|
1789
1955
|
created?: (() => void) | (() => void)[];
|
|
@@ -1802,7 +1968,7 @@ declare const _default$24: import("vue").DefineComponent<PopoverProps, {
|
|
|
1802
1968
|
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1803
1969
|
};
|
|
1804
1970
|
$forceUpdate: () => void;
|
|
1805
|
-
$nextTick: typeof nextTick;
|
|
1971
|
+
$nextTick: typeof import("vue").nextTick;
|
|
1806
1972
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [
|
|
1807
1973
|
R,
|
|
1808
1974
|
R,
|
|
@@ -1820,24 +1986,25 @@ declare const _default$24: import("vue").DefineComponent<PopoverProps, {
|
|
|
1820
1986
|
visible: boolean | null;
|
|
1821
1987
|
arrow: boolean;
|
|
1822
1988
|
widthEqual: boolean;
|
|
1989
|
+
destroyOnHide: boolean;
|
|
1823
1990
|
}> & Omit<Readonly<PopupContentProps> & Readonly<{
|
|
1824
1991
|
onContentMouseenter?: ((e: MouseEvent) => any) | undefined;
|
|
1825
1992
|
onContentMouseleave?: ((e: MouseEvent) => any) | undefined;
|
|
1826
|
-
}>, "content" | ("variant" | "placement" | "root" | "offset" | "visible" | "arrow" | "widthEqual"
|
|
1993
|
+
}>, "content" | "updateRenderState" | ("variant" | "placement" | "root" | "offset" | "visible" | "arrow" | "widthEqual" | "destroyOnHide")> & import("vue").ShallowUnwrapRef<{
|
|
1827
1994
|
updateRenderState: () => void;
|
|
1828
1995
|
content: import("vue").ShallowRef<HTMLDivElement | null, HTMLDivElement | null>;
|
|
1829
1996
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
1830
1997
|
$slots: {
|
|
1831
1998
|
content?: (props: {}) => any;
|
|
1832
1999
|
};
|
|
1833
|
-
}) | undefined
|
|
1834
|
-
updateRenderState
|
|
2000
|
+
}) | undefined;
|
|
2001
|
+
updateRenderState(): void;
|
|
1835
2002
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1836
|
-
close: (e: MouseEvent) => any;
|
|
2003
|
+
close: (e: MouseEvent | TouchEvent) => any;
|
|
1837
2004
|
open: (e: MouseEvent) => any;
|
|
1838
2005
|
"update:visible": (value: boolean) => any;
|
|
1839
2006
|
}, string, import("vue").PublicProps, Readonly<PopoverProps> & Readonly<{
|
|
1840
|
-
onClose?: ((e: MouseEvent) => any) | undefined;
|
|
2007
|
+
onClose?: ((e: MouseEvent | TouchEvent) => any) | undefined;
|
|
1841
2008
|
onOpen?: ((e: MouseEvent) => any) | undefined;
|
|
1842
2009
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
1843
2010
|
}>, {
|
|
@@ -1847,9 +2014,10 @@ declare const _default$24: import("vue").DefineComponent<PopoverProps, {
|
|
|
1847
2014
|
offset: number;
|
|
1848
2015
|
visible: boolean | null;
|
|
1849
2016
|
defaultVisible: boolean | null;
|
|
2017
|
+
trigger: "hover" | "click";
|
|
1850
2018
|
arrow: boolean;
|
|
1851
2019
|
widthEqual: boolean;
|
|
1852
|
-
|
|
2020
|
+
destroyOnHide: boolean;
|
|
1853
2021
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1854
2022
|
export type EmptyProps = {
|
|
1855
2023
|
/**
|
|
@@ -1873,13 +2041,43 @@ type __VLS_WithSlots$20<T, S> = T & {
|
|
|
1873
2041
|
$slots: S;
|
|
1874
2042
|
};
|
|
1875
2043
|
};
|
|
1876
|
-
export
|
|
1877
|
-
|
|
2044
|
+
export type VirtualListProps = {
|
|
2045
|
+
/**
|
|
2046
|
+
* @property {{ render: ValidContent; key?: string | number | symbol }[]} [list]
|
|
2047
|
+
* @version 0.0.3
|
|
2048
|
+
*/
|
|
2049
|
+
list?: {
|
|
2050
|
+
render: ValidContent;
|
|
2051
|
+
key?: string | number | symbol;
|
|
2052
|
+
}[];
|
|
2053
|
+
/**
|
|
2054
|
+
* @property {boolean} [fixedHeight=false]
|
|
2055
|
+
* @version 0.0.3
|
|
2056
|
+
*/
|
|
2057
|
+
fixedHeight?: boolean;
|
|
2058
|
+
/**
|
|
2059
|
+
* @property {number} [estimatedHeight=28]
|
|
2060
|
+
* @version 0.0.3
|
|
2061
|
+
*/
|
|
2062
|
+
estimatedHeight?: number;
|
|
2063
|
+
/**
|
|
2064
|
+
* @property {number} [buffer=10]
|
|
2065
|
+
* @version 0.0.3
|
|
2066
|
+
*/
|
|
2067
|
+
buffer?: number;
|
|
2068
|
+
};
|
|
2069
|
+
export interface OptionListOption<T = any> extends Option$1<T> {
|
|
1878
2070
|
disabled?: boolean;
|
|
2071
|
+
key?: string | number | symbol;
|
|
1879
2072
|
}
|
|
1880
|
-
export interface
|
|
2073
|
+
export interface OptionListGroupOption extends GroupOption {
|
|
1881
2074
|
label: string;
|
|
1882
2075
|
key: string | number | symbol;
|
|
2076
|
+
children: (OptionListOption | string)[];
|
|
2077
|
+
}
|
|
2078
|
+
export interface AutoCompleteOption extends OptionListOption<string> {
|
|
2079
|
+
}
|
|
2080
|
+
export interface AutoCompleteGroupOption extends OptionListGroupOption {
|
|
1883
2081
|
children: (AutoCompleteOption | string)[];
|
|
1884
2082
|
}
|
|
1885
2083
|
export type AutoCompleteProps = {
|
|
@@ -1923,6 +2121,16 @@ export type AutoCompleteProps = {
|
|
|
1923
2121
|
* @version 0.0.2
|
|
1924
2122
|
*/
|
|
1925
2123
|
loading?: boolean;
|
|
2124
|
+
/**
|
|
2125
|
+
* @property {'medium' | 'large' | 'small'} [size='medium']
|
|
2126
|
+
* @version 0.0.2
|
|
2127
|
+
*/
|
|
2128
|
+
size?: "medium" | "large" | "small";
|
|
2129
|
+
/**
|
|
2130
|
+
* @property {'rect' | 'round'} [shape='rect']
|
|
2131
|
+
* @version 0.0.3
|
|
2132
|
+
*/
|
|
2133
|
+
shape?: "rect" | "round" | "default";
|
|
1926
2134
|
/**
|
|
1927
2135
|
* @property {boolean} [showPopoverEmpty=false]
|
|
1928
2136
|
* @version 0.0.2
|
|
@@ -1944,15 +2152,15 @@ export type AutoCompleteProps = {
|
|
|
1944
2152
|
*/
|
|
1945
2153
|
append?: boolean;
|
|
1946
2154
|
/**
|
|
1947
|
-
* @property {
|
|
1948
|
-
* @version 0.0.
|
|
2155
|
+
* @property {boolean} [virtualScroll=false]
|
|
2156
|
+
* @version 0.0.3
|
|
1949
2157
|
*/
|
|
1950
|
-
|
|
2158
|
+
virtualScroll?: boolean;
|
|
1951
2159
|
/**
|
|
1952
|
-
* @property {'
|
|
1953
|
-
* @version 0.0.
|
|
2160
|
+
* @property {Omit<VirtualListProps, 'list' | 'fixedHeight'>} [virtualListProps]
|
|
2161
|
+
* @version 0.0.3
|
|
1954
2162
|
*/
|
|
1955
|
-
|
|
2163
|
+
virtualListProps?: Omit<VirtualListProps, "list" | "fixedHeight">;
|
|
1956
2164
|
/**
|
|
1957
2165
|
* @property {NumberOrPercentage | NumberOrPercentage[]} [borderRadius]
|
|
1958
2166
|
* @version 0.0.2
|
|
@@ -1968,39 +2176,63 @@ export type AutoCompleteProps = {
|
|
|
1968
2176
|
* @version 0.0.2
|
|
1969
2177
|
*/
|
|
1970
2178
|
autofocus?: boolean;
|
|
2179
|
+
/**
|
|
2180
|
+
* @property {boolean} [optionsDestroyOnHide=false]
|
|
2181
|
+
* @version 0.0.3
|
|
2182
|
+
*/
|
|
2183
|
+
optionsDestroyOnHide?: boolean;
|
|
1971
2184
|
};
|
|
1972
|
-
|
|
2185
|
+
export type AutoCompleteExpose = {
|
|
2186
|
+
/**
|
|
2187
|
+
* @property {() => void} focus
|
|
2188
|
+
* @version 0.0.2
|
|
2189
|
+
*/
|
|
1973
2190
|
focus: () => void;
|
|
2191
|
+
/**
|
|
2192
|
+
* @property {() => void} blur
|
|
2193
|
+
* @version 0.0.2
|
|
2194
|
+
*/
|
|
1974
2195
|
blur: () => void;
|
|
1975
|
-
|
|
2196
|
+
/**
|
|
2197
|
+
* @property {() => void} clear
|
|
2198
|
+
* @version 0.0.2
|
|
2199
|
+
*/
|
|
2200
|
+
clear: () => void;
|
|
2201
|
+
/**
|
|
2202
|
+
* @property {() => void} select
|
|
2203
|
+
* @version 0.0.2
|
|
2204
|
+
*/
|
|
1976
2205
|
select: () => void;
|
|
2206
|
+
};
|
|
2207
|
+
declare const _default$26: import("vue").DefineComponent<AutoCompleteProps, AutoCompleteExpose & {
|
|
2208
|
+
getElementRendered: () => HTMLDivElement | null;
|
|
1977
2209
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1978
|
-
input: (value: string, e: Event) => any;
|
|
1979
|
-
select: (value: string, option: string | AutoCompleteOption, e: MouseEvent) => any;
|
|
1980
|
-
change: (value: string, e?: Event | undefined) => any;
|
|
1981
2210
|
clear: (value: string) => any;
|
|
2211
|
+
change: (value: string, e?: Event | undefined) => any;
|
|
1982
2212
|
blur: (e: FocusEvent) => any;
|
|
2213
|
+
input: (value: string, e: Event) => any;
|
|
1983
2214
|
focus: (e: FocusEvent) => any;
|
|
2215
|
+
select: (value: string, option: string | AutoCompleteOption, e: MouseEvent) => any;
|
|
1984
2216
|
"update:modelValue": (value: string) => any;
|
|
1985
2217
|
}, string, import("vue").PublicProps, Readonly<AutoCompleteProps> & Readonly<{
|
|
1986
|
-
onInput?: ((value: string, e: Event) => any) | undefined;
|
|
1987
|
-
onSelect?: ((value: string, option: string | AutoCompleteOption, e: MouseEvent) => any) | undefined;
|
|
1988
|
-
onChange?: ((value: string, e?: Event | undefined) => any) | undefined;
|
|
1989
2218
|
onClear?: ((value: string) => any) | undefined;
|
|
2219
|
+
onChange?: ((value: string, e?: Event | undefined) => any) | undefined;
|
|
1990
2220
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
2221
|
+
onInput?: ((value: string, e: Event) => any) | undefined;
|
|
1991
2222
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
2223
|
+
onSelect?: ((value: string, option: string | AutoCompleteOption, e: MouseEvent) => any) | undefined;
|
|
1992
2224
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1993
2225
|
}>, {
|
|
1994
|
-
shape: "default" | "round";
|
|
1995
|
-
size: "medium" | "large" | "small";
|
|
1996
2226
|
disabled: boolean;
|
|
1997
|
-
loading: boolean;
|
|
1998
2227
|
readonly: boolean;
|
|
2228
|
+
loading: boolean;
|
|
1999
2229
|
clearable: boolean;
|
|
2000
2230
|
status: "success" | "warning" | "error" | "normal";
|
|
2001
2231
|
options: (string | AutoCompleteOption | AutoCompleteGroupOption)[];
|
|
2232
|
+
virtualScroll: boolean;
|
|
2002
2233
|
showPopoverEmpty: boolean;
|
|
2003
2234
|
append: boolean;
|
|
2235
|
+
optionsDestroyOnHide: boolean;
|
|
2004
2236
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2005
2237
|
export type MaskProps = {
|
|
2006
2238
|
/**
|
|
@@ -2046,6 +2278,16 @@ export type SpinProps = {
|
|
|
2046
2278
|
* @version 0.0.2
|
|
2047
2279
|
*/
|
|
2048
2280
|
size?: "medium" | "large" | "small" | number;
|
|
2281
|
+
/**
|
|
2282
|
+
* @property {Omit<MaskProps, 'zIndex'>} [maskProps]
|
|
2283
|
+
* @version 0.0.3
|
|
2284
|
+
*/
|
|
2285
|
+
maskProps?: Omit<MaskProps, "zIndex">;
|
|
2286
|
+
/**
|
|
2287
|
+
* @property {number} [zIndex=20]
|
|
2288
|
+
* @version 0.0.2
|
|
2289
|
+
*/
|
|
2290
|
+
zIndex?: number;
|
|
2049
2291
|
/**
|
|
2050
2292
|
* @property {string} [maskColor]
|
|
2051
2293
|
* @version 0.0.2
|
|
@@ -2066,11 +2308,6 @@ export type SpinProps = {
|
|
|
2066
2308
|
* @version 0.0.2
|
|
2067
2309
|
*/
|
|
2068
2310
|
maskGrid?: boolean;
|
|
2069
|
-
/**
|
|
2070
|
-
* @property {number} [zIndex=20]
|
|
2071
|
-
* @version 0.0.2
|
|
2072
|
-
*/
|
|
2073
|
-
zIndex?: number;
|
|
2074
2311
|
};
|
|
2075
2312
|
declare var __VLS_1$18: {}, __VLS_7: {}, __VLS_14: {};
|
|
2076
2313
|
type __VLS_Slots$21 = {} & {
|
|
@@ -2094,13 +2331,9 @@ type __VLS_WithSlots$21<T, S> = T & {
|
|
|
2094
2331
|
$slots: S;
|
|
2095
2332
|
};
|
|
2096
2333
|
};
|
|
2097
|
-
export interface SelectOption extends
|
|
2098
|
-
value: any;
|
|
2099
|
-
disabled?: boolean;
|
|
2334
|
+
export interface SelectOption extends OptionListOption<any> {
|
|
2100
2335
|
}
|
|
2101
|
-
export interface SelectGroupOption extends
|
|
2102
|
-
label: string;
|
|
2103
|
-
key: string | number | symbol;
|
|
2336
|
+
export interface SelectGroupOption extends OptionListGroupOption {
|
|
2104
2337
|
children: (SelectOption | string)[];
|
|
2105
2338
|
}
|
|
2106
2339
|
export type SelectProps = {
|
|
@@ -2185,7 +2418,7 @@ export type SelectProps = {
|
|
|
2185
2418
|
*/
|
|
2186
2419
|
collapseTags?: boolean;
|
|
2187
2420
|
/**
|
|
2188
|
-
* @property {number} [
|
|
2421
|
+
* @property {number} [maxDisplayTags]
|
|
2189
2422
|
* @version 0.0.2
|
|
2190
2423
|
*/
|
|
2191
2424
|
maxDisplayTags?: number;
|
|
@@ -2194,6 +2427,41 @@ export type SelectProps = {
|
|
|
2194
2427
|
* @version 0.0.2
|
|
2195
2428
|
*/
|
|
2196
2429
|
collapseTagsPopover?: boolean;
|
|
2430
|
+
/**
|
|
2431
|
+
* @property {boolean} [virtualScroll=false]
|
|
2432
|
+
* @version 0.0.3
|
|
2433
|
+
*/
|
|
2434
|
+
virtualScroll?: boolean;
|
|
2435
|
+
/**
|
|
2436
|
+
* @property {Omit<VirtualListProps, 'list' | 'fixedHeight'>} [virtualListProps]
|
|
2437
|
+
* @version 0.0.3
|
|
2438
|
+
*/
|
|
2439
|
+
virtualListProps?: Omit<VirtualListProps, "list" | "fixedHeight">;
|
|
2440
|
+
/**
|
|
2441
|
+
* @property {Omit<TagProps, 'size' | 'disabled' | 'closable'> & EmitEvent<TagEvents>} [tagProps]
|
|
2442
|
+
* @version 0.0.3
|
|
2443
|
+
*/
|
|
2444
|
+
tagProps?: Omit<TagProps, "size" | "disabled" | "closable"> & EmitEvent<TagEvents>;
|
|
2445
|
+
/**
|
|
2446
|
+
* @property {'medium' | 'large' | 'small'} [size='medium']
|
|
2447
|
+
* @version 0.0.2
|
|
2448
|
+
*/
|
|
2449
|
+
size?: "medium" | "large" | "small";
|
|
2450
|
+
/**
|
|
2451
|
+
* @property {'rect' | 'round'} [shape='rect']
|
|
2452
|
+
* @version 0.0.3
|
|
2453
|
+
*/
|
|
2454
|
+
shape?: "rect" | "round" | "default";
|
|
2455
|
+
/**
|
|
2456
|
+
* @property {NumberOrPercentage | NumberOrPercentage[]} [borderRadius]
|
|
2457
|
+
* @version 0.0.2
|
|
2458
|
+
*/
|
|
2459
|
+
borderRadius?: NumberOrPercentage | NumberOrPercentage[];
|
|
2460
|
+
/**
|
|
2461
|
+
* @property {'success' | 'warning' | 'error' | 'normal'} [status='normal']
|
|
2462
|
+
* @version 0.0.2
|
|
2463
|
+
*/
|
|
2464
|
+
status?: "success" | "warning" | "error" | "normal";
|
|
2197
2465
|
/**
|
|
2198
2466
|
* @property {'primary' | 'sakura' | 'success' | 'warning' | 'danger' | 'info'} [tagTheme='info']
|
|
2199
2467
|
* @version 0.0.2
|
|
@@ -2210,58 +2478,61 @@ export type SelectProps = {
|
|
|
2210
2478
|
*/
|
|
2211
2479
|
tagColor?: TagProps["color"];
|
|
2212
2480
|
/**
|
|
2213
|
-
* @property {'
|
|
2214
|
-
* @version 0.0.
|
|
2481
|
+
* @property {Omit<PopoverProps, 'visible' | 'content'> & EmitEvent<PopoverEvents>} [popoverProps]
|
|
2482
|
+
* @version 0.0.3
|
|
2215
2483
|
*/
|
|
2216
|
-
|
|
2484
|
+
popoverProps?: Omit<PopoverProps, "visible" | "content"> & EmitEvent<PopoverEvents>;
|
|
2485
|
+
/**
|
|
2486
|
+
* @property {boolean} [optionsDestroyOnHide=false]
|
|
2487
|
+
* @version 0.0.3
|
|
2488
|
+
*/
|
|
2489
|
+
optionsDestroyOnHide?: boolean;
|
|
2490
|
+
};
|
|
2491
|
+
export type SelectExpose = {
|
|
2217
2492
|
/**
|
|
2218
|
-
* @property {
|
|
2493
|
+
* @property {() => void} focus
|
|
2219
2494
|
* @version 0.0.2
|
|
2220
2495
|
*/
|
|
2221
|
-
|
|
2496
|
+
focus: () => void;
|
|
2222
2497
|
/**
|
|
2223
|
-
* @property {
|
|
2498
|
+
* @property {() => void} blur
|
|
2224
2499
|
* @version 0.0.2
|
|
2225
2500
|
*/
|
|
2226
|
-
|
|
2501
|
+
blur: () => void;
|
|
2227
2502
|
/**
|
|
2228
|
-
* @property {
|
|
2503
|
+
* @property {() => void} clear
|
|
2229
2504
|
* @version 0.0.2
|
|
2230
2505
|
*/
|
|
2231
|
-
|
|
2506
|
+
clear: () => void;
|
|
2232
2507
|
};
|
|
2233
|
-
declare const _default$29: import("vue").DefineComponent<SelectProps, {
|
|
2234
|
-
|
|
2235
|
-
blur: () => Promise<void>;
|
|
2236
|
-
clear: () => Promise<void>;
|
|
2508
|
+
declare const _default$29: import("vue").DefineComponent<SelectProps, SelectExpose & {
|
|
2509
|
+
getElementRendered: () => HTMLDivElement | null;
|
|
2237
2510
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2511
|
+
clear: (value: any) => any;
|
|
2512
|
+
change: (value: any) => any;
|
|
2513
|
+
blur: (event: FocusEvent) => any;
|
|
2238
2514
|
input: (value: string, e: Event) => any;
|
|
2515
|
+
focus: (event: FocusEvent) => any;
|
|
2239
2516
|
select: (value: any, option: string | SelectOption, e: MouseEvent) => any;
|
|
2240
|
-
change: (value: any) => any;
|
|
2241
|
-
clear: (value: any) => any;
|
|
2242
|
-
blur: () => any;
|
|
2243
|
-
focus: () => any;
|
|
2244
2517
|
"update:modelValue": (value: any) => any;
|
|
2245
2518
|
tagClose: (value: any, e: MouseEvent) => any;
|
|
2246
2519
|
"update:inputValue": (value: string) => any;
|
|
2247
2520
|
inputChange: (value: string, e?: Event | undefined) => any;
|
|
2248
2521
|
}, string, import("vue").PublicProps, Readonly<SelectProps> & Readonly<{
|
|
2522
|
+
onClear?: ((value: any) => any) | undefined;
|
|
2523
|
+
onChange?: ((value: any) => any) | undefined;
|
|
2524
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
2249
2525
|
onInput?: ((value: string, e: Event) => any) | undefined;
|
|
2526
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
2250
2527
|
onSelect?: ((value: any, option: string | SelectOption, e: MouseEvent) => any) | undefined;
|
|
2251
|
-
onChange?: ((value: any) => any) | undefined;
|
|
2252
|
-
onClear?: ((value: any) => any) | undefined;
|
|
2253
|
-
onBlur?: (() => any) | undefined;
|
|
2254
|
-
onFocus?: (() => any) | undefined;
|
|
2255
2528
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
2256
2529
|
onTagClose?: ((value: any, e: MouseEvent) => any) | undefined;
|
|
2257
2530
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
|
2258
2531
|
onInputChange?: ((value: string, e?: Event | undefined) => any) | undefined;
|
|
2259
2532
|
}>, {
|
|
2260
|
-
shape: "default" | "round";
|
|
2261
|
-
size: "medium" | "large" | "small";
|
|
2262
2533
|
disabled: boolean;
|
|
2263
|
-
loading: boolean;
|
|
2264
2534
|
readonly: boolean;
|
|
2535
|
+
loading: boolean;
|
|
2265
2536
|
clearable: boolean;
|
|
2266
2537
|
status: "success" | "warning" | "error" | "normal";
|
|
2267
2538
|
options: (string | SelectOption | SelectGroupOption)[];
|
|
@@ -2270,14 +2541,1085 @@ declare const _default$29: import("vue").DefineComponent<SelectProps, {
|
|
|
2270
2541
|
collapseTagsPopover: boolean;
|
|
2271
2542
|
tagTheme: "primary" | "sakura" | "success" | "warning" | "danger" | "info";
|
|
2272
2543
|
tagVariant: "primary" | "plain" | "outline";
|
|
2544
|
+
virtualScroll: boolean;
|
|
2545
|
+
optionsDestroyOnHide: boolean;
|
|
2273
2546
|
filterable: boolean;
|
|
2274
2547
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2548
|
+
declare const _default$30: import("vue").DefineComponent<VirtualListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<VirtualListProps> & Readonly<{}>, {
|
|
2549
|
+
list: {
|
|
2550
|
+
render: ValidContent;
|
|
2551
|
+
key?: string | number | symbol;
|
|
2552
|
+
}[];
|
|
2553
|
+
fixedHeight: boolean;
|
|
2554
|
+
estimatedHeight: number;
|
|
2555
|
+
buffer: number;
|
|
2556
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2557
|
+
export type ImageProps = {
|
|
2558
|
+
/**
|
|
2559
|
+
* @property {string} [src]
|
|
2560
|
+
* @version 0.0.3
|
|
2561
|
+
*/
|
|
2562
|
+
src?: string;
|
|
2563
|
+
/**
|
|
2564
|
+
* @property {string} [srcset]
|
|
2565
|
+
* @version 0.0.3
|
|
2566
|
+
*/
|
|
2567
|
+
srcset?: string;
|
|
2568
|
+
/**
|
|
2569
|
+
* @property {string} [alt]
|
|
2570
|
+
* @version 0.0.3
|
|
2571
|
+
*/
|
|
2572
|
+
alt?: string;
|
|
2573
|
+
/**
|
|
2574
|
+
* @property {'fill' | 'contain' | 'cover' | 'none' | 'scale-down'} [objectFit='fill']
|
|
2575
|
+
* @version 0.0.3
|
|
2576
|
+
*/
|
|
2577
|
+
objectFit?: "fill" | "contain" | "cover" | "none" | "scale-down";
|
|
2578
|
+
/**
|
|
2579
|
+
* @property {'eager' | 'lazy'} [loading='eager']
|
|
2580
|
+
* @version 0.0.3
|
|
2581
|
+
*/
|
|
2582
|
+
loading?: "eager" | "lazy";
|
|
2583
|
+
/**
|
|
2584
|
+
* @property {boolean} [lazy=false]
|
|
2585
|
+
* @version 0.0.3
|
|
2586
|
+
*/
|
|
2587
|
+
lazy?: boolean;
|
|
2588
|
+
/**
|
|
2589
|
+
* @property {HTMLElement | string} [root]
|
|
2590
|
+
* @version 0.0.3
|
|
2591
|
+
*/
|
|
2592
|
+
root?: HTMLElement | string;
|
|
2593
|
+
/**
|
|
2594
|
+
* @property {number | [number, number]} [rootMargin=[100, 200]]
|
|
2595
|
+
* @version 0.0.3
|
|
2596
|
+
*/
|
|
2597
|
+
rootMargin?: number | [
|
|
2598
|
+
number,
|
|
2599
|
+
number
|
|
2600
|
+
];
|
|
2601
|
+
/**
|
|
2602
|
+
* @property {boolean} [previewable=false]
|
|
2603
|
+
* @version 0.0.3
|
|
2604
|
+
*/
|
|
2605
|
+
previewable?: boolean;
|
|
2606
|
+
/**
|
|
2607
|
+
* @property {Omit<MaskProps, 'zIndex'>} [maskProps]
|
|
2608
|
+
* @version 0.0.3
|
|
2609
|
+
*/
|
|
2610
|
+
maskProps?: Omit<MaskProps, "zIndex">;
|
|
2611
|
+
/**
|
|
2612
|
+
* @property {{ zIndex: number, root: HTMLElement | string }} [popupWrapperProps]
|
|
2613
|
+
* @version 0.0.3
|
|
2614
|
+
*/
|
|
2615
|
+
popupWrapperProps?: {
|
|
2616
|
+
zIndex: number;
|
|
2617
|
+
root: HTMLElement | string;
|
|
2618
|
+
};
|
|
2619
|
+
/**
|
|
2620
|
+
* @property {{ maxWidth?: number, maxHeight?: number, margin?: number}} [popupWrapperProps={ margin: 32, maxWidth: Infinity, maxHeight: Infinity }]
|
|
2621
|
+
* @version 0.0.3
|
|
2622
|
+
*/
|
|
2623
|
+
zoomOptions?: {
|
|
2624
|
+
maxWidth?: number;
|
|
2625
|
+
maxHeight?: number;
|
|
2626
|
+
margin?: number;
|
|
2627
|
+
};
|
|
2628
|
+
/**
|
|
2629
|
+
* @property {string} [referrerpolicy='no-referrer']
|
|
2630
|
+
* @version 0.0.3
|
|
2631
|
+
*/
|
|
2632
|
+
referrerpolicy?: string;
|
|
2633
|
+
/**
|
|
2634
|
+
* @property {'anonymous' | 'use-credentials' | ''} [crossorigin='']
|
|
2635
|
+
* @version 0.0.3
|
|
2636
|
+
*/
|
|
2637
|
+
crossorigin?: "anonymous" | "use-credentials" | "";
|
|
2638
|
+
};
|
|
2639
|
+
declare var __VLS_1$19: {}, __VLS_3: {};
|
|
2640
|
+
type __VLS_Slots$22 = {} & {
|
|
2641
|
+
placeholder?: (props: typeof __VLS_1$19) => any;
|
|
2642
|
+
} & {
|
|
2643
|
+
error?: (props: typeof __VLS_3) => any;
|
|
2644
|
+
};
|
|
2645
|
+
declare const __VLS_component$22: import("vue").DefineComponent<ImageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2646
|
+
error: (img: HTMLImageElement, error: string | Event) => any;
|
|
2647
|
+
close: (event: MouseEvent) => any;
|
|
2648
|
+
load: (img: HTMLImageElement, event: Event) => any;
|
|
2649
|
+
loading: (img: HTMLImageElement) => any;
|
|
2650
|
+
preview: (event: MouseEvent) => any;
|
|
2651
|
+
}, string, import("vue").PublicProps, Readonly<ImageProps> & Readonly<{
|
|
2652
|
+
onError?: ((img: HTMLImageElement, error: string | Event) => any) | undefined;
|
|
2653
|
+
onClose?: ((event: MouseEvent) => any) | undefined;
|
|
2654
|
+
onLoad?: ((img: HTMLImageElement, event: Event) => any) | undefined;
|
|
2655
|
+
onLoading?: ((img: HTMLImageElement) => any) | undefined;
|
|
2656
|
+
onPreview?: ((event: MouseEvent) => any) | undefined;
|
|
2657
|
+
}>, {
|
|
2658
|
+
loading: "eager" | "lazy";
|
|
2659
|
+
objectFit: "fill" | "contain" | "cover" | "none" | "scale-down";
|
|
2660
|
+
lazy: boolean;
|
|
2661
|
+
rootMargin: number | [
|
|
2662
|
+
number,
|
|
2663
|
+
number
|
|
2664
|
+
];
|
|
2665
|
+
previewable: boolean;
|
|
2666
|
+
referrerpolicy: string;
|
|
2667
|
+
crossorigin: "anonymous" | "use-credentials" | "";
|
|
2668
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2669
|
+
declare const _default$31: __VLS_WithSlots$22<typeof __VLS_component$22, __VLS_Slots$22>;
|
|
2670
|
+
type __VLS_WithSlots$22<T, S> = T & {
|
|
2671
|
+
new (): {
|
|
2672
|
+
$slots: S;
|
|
2673
|
+
};
|
|
2674
|
+
};
|
|
2675
|
+
export type AvatarProps = {
|
|
2676
|
+
/**
|
|
2677
|
+
* @property {'circle' | 'square''} [shape='circle']
|
|
2678
|
+
* @version 0.0.3
|
|
2679
|
+
*/
|
|
2680
|
+
shape?: "circle" | "square";
|
|
2681
|
+
/**
|
|
2682
|
+
* @property {'medium' | 'large' | 'small' | number} [size='medium']
|
|
2683
|
+
* @version 0.0.3
|
|
2684
|
+
*/
|
|
2685
|
+
size?: "medium" | "large" | "small" | number;
|
|
2686
|
+
/**
|
|
2687
|
+
* @property {boolean} [bordered=false]
|
|
2688
|
+
* @version 0.0.3
|
|
2689
|
+
*/
|
|
2690
|
+
bordered?: boolean;
|
|
2691
|
+
/**
|
|
2692
|
+
* @property {string} [backgroundColor]
|
|
2693
|
+
* @version 0.0.3
|
|
2694
|
+
*/
|
|
2695
|
+
backgroundColor?: string;
|
|
2696
|
+
/**
|
|
2697
|
+
* @property {string} [borderColor]
|
|
2698
|
+
* @version 0.0.3
|
|
2699
|
+
*/
|
|
2700
|
+
borderColor?: string;
|
|
2701
|
+
};
|
|
2702
|
+
declare var __VLS_1$20: {};
|
|
2703
|
+
type __VLS_Slots$23 = {} & {
|
|
2704
|
+
default?: (props: typeof __VLS_1$20) => any;
|
|
2705
|
+
};
|
|
2706
|
+
declare const __VLS_component$23: import("vue").DefineComponent<AvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
|
|
2707
|
+
bordered: boolean;
|
|
2708
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2709
|
+
declare const _default$32: __VLS_WithSlots$23<typeof __VLS_component$23, __VLS_Slots$23>;
|
|
2710
|
+
type __VLS_WithSlots$23<T, S> = T & {
|
|
2711
|
+
new (): {
|
|
2712
|
+
$slots: S;
|
|
2713
|
+
};
|
|
2714
|
+
};
|
|
2715
|
+
export type RuleLevel = "error" | "warning" | "success" | "normal";
|
|
2716
|
+
export type FieldType = "number" | "string" | "boolean" | "array" | "dict" | "function" | "date";
|
|
2717
|
+
export type RuleTrigger = "blur" | "change" | "input";
|
|
2718
|
+
export type FormProps = {
|
|
2719
|
+
/**
|
|
2720
|
+
* @property {Record<number | string, any>} [model]
|
|
2721
|
+
* @version 0.0.3
|
|
2722
|
+
*/
|
|
2723
|
+
model?: Record<number | string, any>;
|
|
2724
|
+
/**
|
|
2725
|
+
* @property {FormInstance} [form]
|
|
2726
|
+
* @version 0.0.3
|
|
2727
|
+
*/
|
|
2728
|
+
form?: UseFormReturn;
|
|
2729
|
+
/**
|
|
2730
|
+
* @property {Record<string, RuleItem | RuleItem[]>} [rules]
|
|
2731
|
+
* @version 0.0.3
|
|
2732
|
+
*/
|
|
2733
|
+
rules?: Record<string, RuleItem | RuleItem[]>;
|
|
2734
|
+
/**
|
|
2735
|
+
* @property {boolean} [disabled=false]
|
|
2736
|
+
* @version 0.0.3
|
|
2737
|
+
*/
|
|
2738
|
+
disabled?: boolean;
|
|
2739
|
+
/**
|
|
2740
|
+
* @property {boolean} [readonly=false]
|
|
2741
|
+
* @version 0.0.3
|
|
2742
|
+
*/
|
|
2743
|
+
readonly?: boolean;
|
|
2744
|
+
/**
|
|
2745
|
+
* @property {'small' | 'medium' | 'large'} [size='medium']
|
|
2746
|
+
* @version 0.0.3
|
|
2747
|
+
*/
|
|
2748
|
+
size?: "small" | "medium" | "large";
|
|
2749
|
+
/**
|
|
2750
|
+
* @property {'left' | 'right' | 'top'} [labelAlign='right']
|
|
2751
|
+
* @version 0.0.3
|
|
2752
|
+
*/
|
|
2753
|
+
labelAlign?: "left" | "right" | "top";
|
|
2754
|
+
/**
|
|
2755
|
+
* @property {boolean} [showAsterisk]
|
|
2756
|
+
* @version 0.0.3
|
|
2757
|
+
*/
|
|
2758
|
+
showAsterisk?: boolean;
|
|
2759
|
+
/**
|
|
2760
|
+
* @property {'left' | 'right' | 'end'} [asteriskPlacement='left']
|
|
2761
|
+
* @version 0.0.3
|
|
2762
|
+
*/
|
|
2763
|
+
asteriskPlacement?: "left" | "right" | "end";
|
|
2764
|
+
/**
|
|
2765
|
+
* @property {boolean} [labelAutoWidth=false]
|
|
2766
|
+
* @version 0.0.3
|
|
2767
|
+
*/
|
|
2768
|
+
labelAutoWidth?: boolean;
|
|
2769
|
+
/**
|
|
2770
|
+
* @property {RowProps} [rowProps]
|
|
2771
|
+
* @version 0.0.3
|
|
2772
|
+
*/
|
|
2773
|
+
rowProps?: RowProps;
|
|
2774
|
+
/**
|
|
2775
|
+
* @property {ColProps} [labelProps]
|
|
2776
|
+
* @version 0.0.3
|
|
2777
|
+
*/
|
|
2778
|
+
labelProps?: ColProps;
|
|
2779
|
+
/**
|
|
2780
|
+
* @property {ColProps} [contentProps]
|
|
2781
|
+
* @version 0.0.3
|
|
2782
|
+
*/
|
|
2783
|
+
contentProps?: ColProps;
|
|
2784
|
+
};
|
|
2785
|
+
export interface UseFormReturn<T extends Record<string | number, any> = Record<string | number, any>> {
|
|
2786
|
+
/**
|
|
2787
|
+
* @property {Ref<Record<string | number, any>>} model
|
|
2788
|
+
* @version 0.0.3
|
|
2789
|
+
*/
|
|
2790
|
+
model: Ref<T>;
|
|
2791
|
+
/**
|
|
2792
|
+
* @property {(field?: string | string[]) => FormValidateResult} validate
|
|
2793
|
+
* @version 0.0.3
|
|
2794
|
+
*/
|
|
2795
|
+
validate: (field?: string | string[]) => FormValidateResult;
|
|
2796
|
+
/**
|
|
2797
|
+
* @property {(field?: string | string[]) => void} reset
|
|
2798
|
+
* @version 0.0.3
|
|
2799
|
+
*/
|
|
2800
|
+
reset: (field?: string | string[]) => void;
|
|
2801
|
+
/**
|
|
2802
|
+
* @property {(field?: string | string[]) => void} clearValidation
|
|
2803
|
+
* @version 0.0.3
|
|
2804
|
+
*/
|
|
2805
|
+
clearValidation: (field?: string | string[]) => void;
|
|
2806
|
+
/**
|
|
2807
|
+
* @ignore
|
|
2808
|
+
*/
|
|
2809
|
+
register: (registerOptions: UseFormRegisterOptions) => void;
|
|
2810
|
+
}
|
|
2811
|
+
export type FormValidateResult = Promise<{
|
|
2812
|
+
isValid: boolean;
|
|
2813
|
+
results: Record<string, PromiseSettledResult<{
|
|
2814
|
+
message: string;
|
|
2815
|
+
level: RuleLevel;
|
|
2816
|
+
}>>;
|
|
2817
|
+
}>;
|
|
2818
|
+
export type FormExpose = {
|
|
2819
|
+
/**
|
|
2820
|
+
* @property {(field?: string | string[]) => FormValidateResult} validate
|
|
2821
|
+
* @version 0.0.3
|
|
2822
|
+
*/
|
|
2823
|
+
validate: (field?: string | string[]) => FormValidateResult;
|
|
2824
|
+
/**
|
|
2825
|
+
* @property {(field?: string | string[]) => void} reset
|
|
2826
|
+
* @version 0.0.3
|
|
2827
|
+
*/
|
|
2828
|
+
reset: (field?: string | string[]) => void;
|
|
2829
|
+
/**
|
|
2830
|
+
* @property {(field?: string | string[]) => void} clearValidation
|
|
2831
|
+
* @version 0.0.3
|
|
2832
|
+
*/
|
|
2833
|
+
clearValidation: (field?: string | string[]) => void;
|
|
2834
|
+
};
|
|
2835
|
+
export type RuleItem = {
|
|
2836
|
+
/**
|
|
2837
|
+
* @property {boolean} [required=false]
|
|
2838
|
+
* @version 0.0.3
|
|
2839
|
+
*/
|
|
2840
|
+
required?: boolean;
|
|
2841
|
+
/**
|
|
2842
|
+
* @property {string} [message]
|
|
2843
|
+
* @version 0.0.3
|
|
2844
|
+
*/
|
|
2845
|
+
message?: string;
|
|
2846
|
+
/**
|
|
2847
|
+
* @property {RuleTrigger | RuleTrigger[]} [trigger=['change', 'blur']]
|
|
2848
|
+
* @version 0.0.3
|
|
2849
|
+
*/
|
|
2850
|
+
trigger?: RuleTrigger | RuleTrigger[];
|
|
2851
|
+
/**
|
|
2852
|
+
* @property {FieldType | FieldType[]} [type]
|
|
2853
|
+
* @version 0.0.3
|
|
2854
|
+
*/
|
|
2855
|
+
type?: FieldType | FieldType[];
|
|
2856
|
+
/**
|
|
2857
|
+
* @property {number} [max]
|
|
2858
|
+
* @version 0.0.3
|
|
2859
|
+
*/
|
|
2860
|
+
max?: number;
|
|
2861
|
+
/**
|
|
2862
|
+
* @property {number} [min]
|
|
2863
|
+
* @version 0.0.3
|
|
2864
|
+
*/
|
|
2865
|
+
min?: number;
|
|
2866
|
+
/**
|
|
2867
|
+
* @property {number} [maxLength]
|
|
2868
|
+
* @version 0.0.3
|
|
2869
|
+
*/
|
|
2870
|
+
maxLength?: number;
|
|
2871
|
+
/**
|
|
2872
|
+
* @property {number} [minLength]
|
|
2873
|
+
* @version 0.0.3
|
|
2874
|
+
*/
|
|
2875
|
+
minLength?: number;
|
|
2876
|
+
/**
|
|
2877
|
+
* @property {boolean} [email=false]
|
|
2878
|
+
* @version 0.0.3
|
|
2879
|
+
*/
|
|
2880
|
+
email?: boolean;
|
|
2881
|
+
/**
|
|
2882
|
+
* @property {boolean} [url=false]
|
|
2883
|
+
* @version 0.0.3
|
|
2884
|
+
*/
|
|
2885
|
+
url?: boolean;
|
|
2886
|
+
/**
|
|
2887
|
+
* @property {boolean} [numberString=false]
|
|
2888
|
+
* @version 0.0.3
|
|
2889
|
+
*/
|
|
2890
|
+
numberString?: boolean;
|
|
2891
|
+
/**
|
|
2892
|
+
* @property {RuleLevel} [level='error']
|
|
2893
|
+
* @version 0.0.3
|
|
2894
|
+
*/
|
|
2895
|
+
level?: RuleLevel;
|
|
2896
|
+
/**
|
|
2897
|
+
* @property {(value: any, model: Record<number | string, any>) => string | void | Promise<void | string>} [validator]
|
|
2898
|
+
* @version 0.0.3
|
|
2899
|
+
*/
|
|
2900
|
+
validator?: (value: any, model: Record<number | string, any>) => string | void | Promise<void | string>;
|
|
2901
|
+
};
|
|
2902
|
+
export type UseFormRegisterOptions = {
|
|
2903
|
+
validate: (field?: string | string[]) => FormValidateResult;
|
|
2904
|
+
clearValidation: (field?: string | string[]) => void;
|
|
2905
|
+
};
|
|
2906
|
+
declare var __VLS_1$21: {};
|
|
2907
|
+
type __VLS_Slots$24 = {} & {
|
|
2908
|
+
default?: (props: typeof __VLS_1$21) => any;
|
|
2909
|
+
};
|
|
2910
|
+
declare const __VLS_component$24: import("vue").DefineComponent<FormProps, FormExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2911
|
+
submit: (form: Record<string | number, any>, event: Event) => any;
|
|
2912
|
+
reset: (form: Record<string | number, any>, event: Event) => any;
|
|
2913
|
+
}, string, import("vue").PublicProps, Readonly<FormProps> & Readonly<{
|
|
2914
|
+
onSubmit?: ((form: Record<string | number, any>, event: Event) => any) | undefined;
|
|
2915
|
+
onReset?: ((form: Record<string | number, any>, event: Event) => any) | undefined;
|
|
2916
|
+
}>, {
|
|
2917
|
+
size: "small" | "medium" | "large";
|
|
2918
|
+
disabled: boolean;
|
|
2919
|
+
readonly: boolean;
|
|
2920
|
+
labelAlign: "left" | "right" | "top";
|
|
2921
|
+
showAsterisk: boolean;
|
|
2922
|
+
asteriskPlacement: "left" | "right" | "end";
|
|
2923
|
+
labelAutoWidth: boolean;
|
|
2924
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2925
|
+
declare const _default$33: __VLS_WithSlots$24<typeof __VLS_component$24, __VLS_Slots$24>;
|
|
2926
|
+
type __VLS_WithSlots$24<T, S> = T & {
|
|
2927
|
+
new (): {
|
|
2928
|
+
$slots: S;
|
|
2929
|
+
};
|
|
2930
|
+
};
|
|
2931
|
+
export type FormItemProps = {
|
|
2932
|
+
/**
|
|
2933
|
+
* @property {string} [field]
|
|
2934
|
+
* @version 0.0.3
|
|
2935
|
+
*/
|
|
2936
|
+
field?: string;
|
|
2937
|
+
/**
|
|
2938
|
+
* @property {string} [label]
|
|
2939
|
+
* @version 0.0.3
|
|
2940
|
+
*/
|
|
2941
|
+
label?: string;
|
|
2942
|
+
/**
|
|
2943
|
+
* @property {RuleItem | RuleItem[]} [rule]
|
|
2944
|
+
* @version 0.0.3
|
|
2945
|
+
*/
|
|
2946
|
+
rule?: RuleItem | RuleItem[];
|
|
2947
|
+
/**
|
|
2948
|
+
* @property {boolean} [disabled]
|
|
2949
|
+
* @version 0.0.3
|
|
2950
|
+
*/
|
|
2951
|
+
disabled?: boolean;
|
|
2952
|
+
/**
|
|
2953
|
+
* @property {boolean} [readonly]
|
|
2954
|
+
* @version 0.0.3
|
|
2955
|
+
*/
|
|
2956
|
+
readonly?: boolean;
|
|
2957
|
+
/**
|
|
2958
|
+
* @property {'left' | 'right' | 'top'} [labelAlign]
|
|
2959
|
+
* @version 0.0.3
|
|
2960
|
+
*/
|
|
2961
|
+
labelAlign?: "left" | "right" | "top";
|
|
2962
|
+
/**
|
|
2963
|
+
* @property {boolean} [showAsterisk]
|
|
2964
|
+
* @version 0.0.3
|
|
2965
|
+
*/
|
|
2966
|
+
showAsterisk?: boolean;
|
|
2967
|
+
/**
|
|
2968
|
+
* @property {'left' | 'right' | 'end'} [asteriskPlacement]
|
|
2969
|
+
* @version 0.0.3
|
|
2970
|
+
*/
|
|
2971
|
+
asteriskPlacement?: "left" | "right" | "end";
|
|
2972
|
+
/**
|
|
2973
|
+
* @property {RowProps} [rowProps]
|
|
2974
|
+
* @version 0.0.3
|
|
2975
|
+
*/
|
|
2976
|
+
rowProps?: RowProps;
|
|
2977
|
+
/**
|
|
2978
|
+
* @property {ColProps} [labelProps]
|
|
2979
|
+
* @version 0.0.3
|
|
2980
|
+
*/
|
|
2981
|
+
labelProps?: ColProps;
|
|
2982
|
+
/**
|
|
2983
|
+
* @property {ColProps} [contentProps]
|
|
2984
|
+
* @version 0.0.3
|
|
2985
|
+
*/
|
|
2986
|
+
contentProps?: ColProps;
|
|
2987
|
+
};
|
|
2988
|
+
declare var __VLS_10$1: {}, __VLS_16$1: {}, __VLS_18: {
|
|
2989
|
+
message: string;
|
|
2990
|
+
level: RuleLevel;
|
|
2991
|
+
}, __VLS_20: {};
|
|
2992
|
+
type __VLS_Slots$25 = {} & {
|
|
2993
|
+
label?: (props: typeof __VLS_10$1) => any;
|
|
2994
|
+
} & {
|
|
2995
|
+
default?: (props: typeof __VLS_16$1) => any;
|
|
2996
|
+
} & {
|
|
2997
|
+
tip?: (props: typeof __VLS_18) => any;
|
|
2998
|
+
} & {
|
|
2999
|
+
extra?: (props: typeof __VLS_20) => any;
|
|
3000
|
+
};
|
|
3001
|
+
declare const __VLS_component$25: import("vue").DefineComponent<FormItemProps, {
|
|
3002
|
+
validate: (trigger?: RuleTrigger) => Promise<{
|
|
3003
|
+
message: string;
|
|
3004
|
+
level: RuleLevel;
|
|
3005
|
+
}>;
|
|
3006
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FormItemProps> & Readonly<{}>, {
|
|
3007
|
+
disabled: boolean;
|
|
3008
|
+
readonly: boolean;
|
|
3009
|
+
labelAlign: "left" | "right" | "top";
|
|
3010
|
+
showAsterisk: boolean;
|
|
3011
|
+
asteriskPlacement: "left" | "right" | "end";
|
|
3012
|
+
rowProps: RowProps;
|
|
3013
|
+
labelProps: ColProps;
|
|
3014
|
+
contentProps: ColProps;
|
|
3015
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3016
|
+
declare const _default$34: __VLS_WithSlots$25<typeof __VLS_component$25, __VLS_Slots$25>;
|
|
3017
|
+
type __VLS_WithSlots$25<T, S> = T & {
|
|
3018
|
+
new (): {
|
|
3019
|
+
$slots: S;
|
|
3020
|
+
};
|
|
3021
|
+
};
|
|
3022
|
+
export interface PixelateOptions {
|
|
3023
|
+
palette?: string[];
|
|
3024
|
+
background?: string;
|
|
3025
|
+
}
|
|
3026
|
+
export declare function pixelateImage(imageSource: HTMLImageElement | string, pixelSize: number, options?: PixelateOptions, onProgress?: (progress: number) => void): Promise<ImageData | null>;
|
|
3027
|
+
export declare function imageDataToDataURL(imageData: ImageData): string;
|
|
3028
|
+
export type SwitchProps = {
|
|
3029
|
+
/**
|
|
3030
|
+
* @property {boolean | null} [modelValue=undefined]
|
|
3031
|
+
* @version 0.0.3
|
|
3032
|
+
*/
|
|
3033
|
+
modelValue?: boolean | null;
|
|
3034
|
+
/**
|
|
3035
|
+
* @property {boolean | null} [defaultValue=undefined]
|
|
3036
|
+
* @version 0.0.3
|
|
3037
|
+
*/
|
|
3038
|
+
defaultValue?: boolean | null;
|
|
3039
|
+
/**
|
|
3040
|
+
* @property {'round' | 'rect'} [shape='round']
|
|
3041
|
+
* @version 0.0.3
|
|
3042
|
+
*/
|
|
3043
|
+
shape?: "round" | "rect" | "default";
|
|
3044
|
+
/**
|
|
3045
|
+
* @property {'small' | 'medium' | 'large'} [size='medium']
|
|
3046
|
+
* @version 0.0.3
|
|
3047
|
+
*/
|
|
3048
|
+
size?: "small" | "medium" | "large";
|
|
3049
|
+
/**
|
|
3050
|
+
* @property {boolean} [readonly=false]
|
|
3051
|
+
* @version 0.0.3
|
|
3052
|
+
*/
|
|
3053
|
+
readonly?: boolean;
|
|
3054
|
+
/**
|
|
3055
|
+
* @property {boolean} [disabled=false]
|
|
3056
|
+
* @version 0.0.3
|
|
3057
|
+
*/
|
|
3058
|
+
disabled?: boolean;
|
|
3059
|
+
/**
|
|
3060
|
+
* @property {boolean} [loading=false]
|
|
3061
|
+
* @version 0.0.3
|
|
3062
|
+
*/
|
|
3063
|
+
loading?: boolean;
|
|
3064
|
+
/**
|
|
3065
|
+
* @property {string} [activeTip]
|
|
3066
|
+
* @version 0.0.3
|
|
3067
|
+
*/
|
|
3068
|
+
activeTip?: string;
|
|
3069
|
+
/**
|
|
3070
|
+
* @property {string} [inactiveTip]
|
|
3071
|
+
* @version 0.0.3
|
|
3072
|
+
*/
|
|
3073
|
+
inactiveTip?: string;
|
|
3074
|
+
/**
|
|
3075
|
+
* @property {string} [activeLabel]
|
|
3076
|
+
* @version 0.0.3
|
|
3077
|
+
*/
|
|
3078
|
+
activeLabel?: string;
|
|
3079
|
+
/**
|
|
3080
|
+
* @property {string} [inactiveLabel]
|
|
3081
|
+
* @version 0.0.3
|
|
3082
|
+
*/
|
|
3083
|
+
inactiveLabel?: string;
|
|
3084
|
+
/**
|
|
3085
|
+
* @property {string} [activeColor]
|
|
3086
|
+
* @version 0.0.3
|
|
3087
|
+
*/
|
|
3088
|
+
activeColor?: string;
|
|
3089
|
+
/**
|
|
3090
|
+
* @property {string} [inactiveColor]
|
|
3091
|
+
* @version 0.0.3
|
|
3092
|
+
*/
|
|
3093
|
+
inactiveColor?: string;
|
|
3094
|
+
};
|
|
3095
|
+
declare var __VLS_1$22: {}, __VLS_3$1: {}, __VLS_5: {}, __VLS_12: {}, __VLS_14$1: {}, __VLS_16$2: {};
|
|
3096
|
+
type __VLS_Slots$26 = {} & {
|
|
3097
|
+
"inactive-label"?: (props: typeof __VLS_1$22) => any;
|
|
3098
|
+
} & {
|
|
3099
|
+
"active-tip"?: (props: typeof __VLS_3$1) => any;
|
|
3100
|
+
} & {
|
|
3101
|
+
"inactive-tip"?: (props: typeof __VLS_5) => any;
|
|
3102
|
+
} & {
|
|
3103
|
+
"active-icon"?: (props: typeof __VLS_12) => any;
|
|
3104
|
+
} & {
|
|
3105
|
+
"inactive-icon"?: (props: typeof __VLS_14$1) => any;
|
|
3106
|
+
} & {
|
|
3107
|
+
"active-label"?: (props: typeof __VLS_16$2) => any;
|
|
3108
|
+
};
|
|
3109
|
+
declare const __VLS_component$26: import("vue").DefineComponent<SwitchProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3110
|
+
change: (value: boolean, event: Event) => any;
|
|
3111
|
+
blur: (event: FocusEvent) => any;
|
|
3112
|
+
input: (value: boolean, event: InputEvent) => any;
|
|
3113
|
+
focus: (event: FocusEvent) => any;
|
|
3114
|
+
"update:modelValue": (value: boolean) => any;
|
|
3115
|
+
}, string, import("vue").PublicProps, Readonly<SwitchProps> & Readonly<{
|
|
3116
|
+
onChange?: ((value: boolean, event: Event) => any) | undefined;
|
|
3117
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
3118
|
+
onInput?: ((value: boolean, event: InputEvent) => any) | undefined;
|
|
3119
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
3120
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
3121
|
+
}>, {
|
|
3122
|
+
disabled: boolean;
|
|
3123
|
+
readonly: boolean;
|
|
3124
|
+
shape: "round" | "rect" | "default";
|
|
3125
|
+
loading: boolean;
|
|
3126
|
+
modelValue: boolean | null;
|
|
3127
|
+
defaultValue: boolean | null;
|
|
3128
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3129
|
+
declare const _default$35: __VLS_WithSlots$26<typeof __VLS_component$26, __VLS_Slots$26>;
|
|
3130
|
+
type __VLS_WithSlots$26<T, S> = T & {
|
|
3131
|
+
new (): {
|
|
3132
|
+
$slots: S;
|
|
3133
|
+
};
|
|
3134
|
+
};
|
|
3135
|
+
export type SliderProps = {
|
|
3136
|
+
/**
|
|
3137
|
+
* @property {number | [number, number] | null} [modelValue]
|
|
3138
|
+
* @version 0.0.3
|
|
3139
|
+
*/
|
|
3140
|
+
modelValue?: number | [
|
|
3141
|
+
number,
|
|
3142
|
+
number
|
|
3143
|
+
] | null;
|
|
3144
|
+
/**
|
|
3145
|
+
* @property {number | [number, number] | null} [defaultValue]
|
|
3146
|
+
* @version 0.0.3
|
|
3147
|
+
*/
|
|
3148
|
+
defaultValue?: number | [
|
|
3149
|
+
number,
|
|
3150
|
+
number
|
|
3151
|
+
] | null;
|
|
3152
|
+
/**
|
|
3153
|
+
* @property {number} [min=0]
|
|
3154
|
+
* @version 0.0.3
|
|
3155
|
+
*/
|
|
3156
|
+
min?: number;
|
|
3157
|
+
/**
|
|
3158
|
+
* @property {number} [max=100]
|
|
3159
|
+
* @version 0.0.3
|
|
3160
|
+
*/
|
|
3161
|
+
max?: number;
|
|
3162
|
+
/**
|
|
3163
|
+
* @property {boolean} [range=false]
|
|
3164
|
+
* @version 0.0.3
|
|
3165
|
+
*/
|
|
3166
|
+
range?: boolean;
|
|
3167
|
+
/**
|
|
3168
|
+
* @property {boolean} [disabled=false]
|
|
3169
|
+
* @version 0.0.3
|
|
3170
|
+
*/
|
|
3171
|
+
disabled?: boolean;
|
|
3172
|
+
/**
|
|
3173
|
+
* @property {boolean} [readonly=false]
|
|
3174
|
+
* @version 0.0.3
|
|
3175
|
+
*/
|
|
3176
|
+
readonly?: boolean;
|
|
3177
|
+
/**
|
|
3178
|
+
* @property {number | 'mark'} [step=1]
|
|
3179
|
+
* @version 0.0.3
|
|
3180
|
+
*/
|
|
3181
|
+
step?: number | "mark";
|
|
3182
|
+
/**
|
|
3183
|
+
* @property {(number | { value: number; label?: string })[]} [marks]
|
|
3184
|
+
* @version 0.0.3
|
|
3185
|
+
*/
|
|
3186
|
+
marks?: (number | {
|
|
3187
|
+
value: number;
|
|
3188
|
+
label?: string;
|
|
3189
|
+
})[];
|
|
3190
|
+
/**
|
|
3191
|
+
* @property {'horizontal' | 'vertical'} [direction='horizontal']
|
|
3192
|
+
* @version 0.0.3
|
|
3193
|
+
*/
|
|
3194
|
+
direction?: "horizontal" | "vertical";
|
|
3195
|
+
/**
|
|
3196
|
+
* @property {boolean} [reverse=false]
|
|
3197
|
+
* @version 0.0.3
|
|
3198
|
+
*/
|
|
3199
|
+
reverse?: boolean;
|
|
3200
|
+
/**
|
|
3201
|
+
* @property {number | null} [precision=8]
|
|
3202
|
+
* @version 0.0.3
|
|
3203
|
+
*/
|
|
3204
|
+
precision?: number | null;
|
|
3205
|
+
/**
|
|
3206
|
+
* @property {boolean} [tooltip=true]
|
|
3207
|
+
* @version 0.0.3
|
|
3208
|
+
*/
|
|
3209
|
+
tooltip?: boolean;
|
|
3210
|
+
/**
|
|
3211
|
+
* @property {Omit<TooltipProps, 'visible' | 'content'> & EmitEvent<TooltipEvents>} [tooltipProps]
|
|
3212
|
+
* @version 0.0.3
|
|
3213
|
+
*/
|
|
3214
|
+
tooltipProps?: Omit<TooltipProps, "visible" | "content"> & EmitEvent<TooltipEvents>;
|
|
3215
|
+
/**
|
|
3216
|
+
* @property {Omit<TooltipProps, 'visible' | 'content'> & EmitEvent<TooltipEvents>} [tooltipStartProps]
|
|
3217
|
+
* @version 0.0.3
|
|
3218
|
+
*/
|
|
3219
|
+
tooltipStartProps?: Omit<TooltipProps, "visible" | "content"> & EmitEvent<TooltipEvents>;
|
|
3220
|
+
/**
|
|
3221
|
+
* @property {Omit<TooltipProps, 'visible' | 'content'> & EmitEvent<TooltipEvents>} [tooltipEndProps]
|
|
3222
|
+
* @version 0.0.3
|
|
3223
|
+
*/
|
|
3224
|
+
tooltipEndProps?: Omit<TooltipProps, "visible" | "content"> & EmitEvent<TooltipEvents>;
|
|
3225
|
+
};
|
|
3226
|
+
declare var __VLS_1$23: {
|
|
3227
|
+
value: number;
|
|
3228
|
+
label: string | undefined;
|
|
3229
|
+
}, __VLS_7$1: {}, __VLS_10$2: {
|
|
3230
|
+
value: number | null | undefined;
|
|
3231
|
+
}, __VLS_12$1: {}, __VLS_18$1: {}, __VLS_21: {
|
|
3232
|
+
value: number | null | undefined;
|
|
3233
|
+
}, __VLS_23: {}, __VLS_29: {}, __VLS_32: {
|
|
3234
|
+
value: number | null | undefined;
|
|
3235
|
+
}, __VLS_34$1: {};
|
|
3236
|
+
type __VLS_Slots$27 = {} & {
|
|
3237
|
+
mark?: (props: typeof __VLS_1$23) => any;
|
|
3238
|
+
} & {
|
|
3239
|
+
thumb?: (props: typeof __VLS_7$1) => any;
|
|
3240
|
+
} & {
|
|
3241
|
+
"tooltip-content"?: (props: typeof __VLS_10$2) => any;
|
|
3242
|
+
} & {
|
|
3243
|
+
thumb?: (props: typeof __VLS_12$1) => any;
|
|
3244
|
+
} & {
|
|
3245
|
+
"thumb-start"?: (props: typeof __VLS_18$1) => any;
|
|
3246
|
+
} & {
|
|
3247
|
+
"tooltip-content"?: (props: typeof __VLS_21) => any;
|
|
3248
|
+
} & {
|
|
3249
|
+
"thumb-start"?: (props: typeof __VLS_23) => any;
|
|
3250
|
+
} & {
|
|
3251
|
+
"thumb-end"?: (props: typeof __VLS_29) => any;
|
|
3252
|
+
} & {
|
|
3253
|
+
"tooltip-content"?: (props: typeof __VLS_32) => any;
|
|
3254
|
+
} & {
|
|
3255
|
+
"thumb-end"?: (props: typeof __VLS_34$1) => any;
|
|
3256
|
+
};
|
|
3257
|
+
declare const __VLS_component$27: import("vue").DefineComponent<SliderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3258
|
+
change: (value: number | [
|
|
3259
|
+
number,
|
|
3260
|
+
number
|
|
3261
|
+
]) => any;
|
|
3262
|
+
blur: (event: FocusEvent) => any;
|
|
3263
|
+
focus: (event: FocusEvent) => any;
|
|
3264
|
+
"update:modelValue": (value: number | [
|
|
3265
|
+
number,
|
|
3266
|
+
number
|
|
3267
|
+
]) => any;
|
|
3268
|
+
dragStart: (event: MouseEvent | TouchEvent) => any;
|
|
3269
|
+
dragEnd: (event: MouseEvent | TouchEvent) => any;
|
|
3270
|
+
markSelect: (value: number, event: MouseEvent) => any;
|
|
3271
|
+
}, string, import("vue").PublicProps, Readonly<SliderProps> & Readonly<{
|
|
3272
|
+
onChange?: ((value: number | [
|
|
3273
|
+
number,
|
|
3274
|
+
number
|
|
3275
|
+
]) => any) | undefined;
|
|
3276
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
3277
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
3278
|
+
"onUpdate:modelValue"?: ((value: number | [
|
|
3279
|
+
number,
|
|
3280
|
+
number
|
|
3281
|
+
]) => any) | undefined;
|
|
3282
|
+
onDragStart?: ((event: MouseEvent | TouchEvent) => any) | undefined;
|
|
3283
|
+
onDragEnd?: ((event: MouseEvent | TouchEvent) => any) | undefined;
|
|
3284
|
+
onMarkSelect?: ((value: number, event: MouseEvent) => any) | undefined;
|
|
3285
|
+
}>, {
|
|
3286
|
+
reverse: boolean;
|
|
3287
|
+
disabled: boolean;
|
|
3288
|
+
direction: "horizontal" | "vertical";
|
|
3289
|
+
range: boolean;
|
|
3290
|
+
max: number;
|
|
3291
|
+
min: number;
|
|
3292
|
+
step: number | "mark";
|
|
3293
|
+
precision: number | null;
|
|
3294
|
+
tooltip: boolean;
|
|
3295
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3296
|
+
declare const _default$36: __VLS_WithSlots$27<typeof __VLS_component$27, __VLS_Slots$27>;
|
|
3297
|
+
type __VLS_WithSlots$27<T, S> = T & {
|
|
3298
|
+
new (): {
|
|
3299
|
+
$slots: S;
|
|
3300
|
+
};
|
|
3301
|
+
};
|
|
3302
|
+
export type RadioProps = {
|
|
3303
|
+
/**
|
|
3304
|
+
* @property {boolean | null} [modelValue]
|
|
3305
|
+
* @version 0.0.3
|
|
3306
|
+
*/
|
|
3307
|
+
modelValue?: boolean | null;
|
|
3308
|
+
/**
|
|
3309
|
+
* @property {boolean | null} [defaultValue]
|
|
3310
|
+
* @version 0.0.3
|
|
3311
|
+
*/
|
|
3312
|
+
defaultValue?: boolean | null;
|
|
3313
|
+
/**
|
|
3314
|
+
* @property {'normal' | 'retro'} [variant='normal']
|
|
3315
|
+
* @version 0.0.3
|
|
3316
|
+
*/
|
|
3317
|
+
variant?: "normal" | "retro";
|
|
3318
|
+
/**
|
|
3319
|
+
* @property {boolean} [disabled=false]
|
|
3320
|
+
* @version 0.0.3
|
|
3321
|
+
*/
|
|
3322
|
+
disabled?: boolean;
|
|
3323
|
+
/**
|
|
3324
|
+
* @property {boolean} [readonly=false]
|
|
3325
|
+
* @version 0.0.3
|
|
3326
|
+
*/
|
|
3327
|
+
readonly?: boolean;
|
|
3328
|
+
/**
|
|
3329
|
+
* @property {string} [label]
|
|
3330
|
+
* @version 0.0.3
|
|
3331
|
+
*/
|
|
3332
|
+
label?: string;
|
|
3333
|
+
/**
|
|
3334
|
+
* @property {any} [value]
|
|
3335
|
+
* @version 0.0.3
|
|
3336
|
+
*/
|
|
3337
|
+
value?: any;
|
|
3338
|
+
/**
|
|
3339
|
+
* @property {'medium' | 'large' | 'small'} [size='medium']
|
|
3340
|
+
* @version 0.0.3
|
|
3341
|
+
*/
|
|
3342
|
+
size?: "medium" | "large" | "small";
|
|
3343
|
+
};
|
|
3344
|
+
declare var __VLS_1$24: {};
|
|
3345
|
+
type __VLS_Slots$28 = {} & {
|
|
3346
|
+
default?: (props: typeof __VLS_1$24) => any;
|
|
3347
|
+
};
|
|
3348
|
+
declare const __VLS_component$28: import("vue").DefineComponent<RadioProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3349
|
+
change: (value: boolean, event: Event) => any;
|
|
3350
|
+
blur: (event: FocusEvent) => any;
|
|
3351
|
+
input: (value: boolean, event: InputEvent) => any;
|
|
3352
|
+
focus: (event: FocusEvent) => any;
|
|
3353
|
+
"update:modelValue": (value: boolean) => any;
|
|
3354
|
+
}, string, import("vue").PublicProps, Readonly<RadioProps> & Readonly<{
|
|
3355
|
+
onChange?: ((value: boolean, event: Event) => any) | undefined;
|
|
3356
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
3357
|
+
onInput?: ((value: boolean, event: InputEvent) => any) | undefined;
|
|
3358
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
3359
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
3360
|
+
}>, {
|
|
3361
|
+
disabled: boolean;
|
|
3362
|
+
readonly: boolean;
|
|
3363
|
+
modelValue: boolean | null;
|
|
3364
|
+
defaultValue: boolean | null;
|
|
3365
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3366
|
+
declare const _default$37: __VLS_WithSlots$28<typeof __VLS_component$28, __VLS_Slots$28>;
|
|
3367
|
+
type __VLS_WithSlots$28<T, S> = T & {
|
|
3368
|
+
new (): {
|
|
3369
|
+
$slots: S;
|
|
3370
|
+
};
|
|
3371
|
+
};
|
|
3372
|
+
export interface RadioGroupOption<T = any> extends Option$1<T> {
|
|
3373
|
+
disabled?: boolean;
|
|
3374
|
+
key?: string | number | symbol;
|
|
3375
|
+
}
|
|
3376
|
+
export type RadioGroupProps = {
|
|
3377
|
+
/**
|
|
3378
|
+
* @property {any} [modelValue]
|
|
3379
|
+
* @version 0.0.3
|
|
3380
|
+
*/
|
|
3381
|
+
modelValue?: any;
|
|
3382
|
+
/**
|
|
3383
|
+
* @property {any} [defaultValue]
|
|
3384
|
+
* @version 0.0.3
|
|
3385
|
+
*/
|
|
3386
|
+
defaultValue?: any;
|
|
3387
|
+
/**
|
|
3388
|
+
* @property {'normal' | 'retro'} [variant]
|
|
3389
|
+
* @version 0.0.3
|
|
3390
|
+
*/
|
|
3391
|
+
variant?: "normal" | "retro";
|
|
3392
|
+
/**
|
|
3393
|
+
* @property {boolean} [disabled=false]
|
|
3394
|
+
* @version 0.0.3
|
|
3395
|
+
*/
|
|
3396
|
+
disabled?: boolean;
|
|
3397
|
+
/**
|
|
3398
|
+
* @property {boolean} [readonly=false]
|
|
3399
|
+
* @version 0.0.3
|
|
3400
|
+
*/
|
|
3401
|
+
readonly?: boolean;
|
|
3402
|
+
/**
|
|
3403
|
+
* @property {'horizontal' | 'vertical'} [direction='horizontal']
|
|
3404
|
+
* @version 0.0.3
|
|
3405
|
+
*/
|
|
3406
|
+
direction?: "horizontal" | "vertical";
|
|
3407
|
+
/**
|
|
3408
|
+
* @property {(RadioGroupOption | string)[]} [options]
|
|
3409
|
+
* @version 0.0.3
|
|
3410
|
+
*/
|
|
3411
|
+
options?: (RadioGroupOption | string)[];
|
|
3412
|
+
/**
|
|
3413
|
+
* @property {'medium' | 'large' | 'small'} [size]
|
|
3414
|
+
* @version 0.0.3
|
|
3415
|
+
*/
|
|
3416
|
+
size?: "medium" | "large" | "small";
|
|
3417
|
+
};
|
|
3418
|
+
declare var __VLS_1$25: {};
|
|
3419
|
+
type __VLS_Slots$29 = {} & {
|
|
3420
|
+
default?: (props: typeof __VLS_1$25) => any;
|
|
3421
|
+
};
|
|
3422
|
+
declare const __VLS_component$29: import("vue").DefineComponent<RadioGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3423
|
+
change: (value: any) => any;
|
|
3424
|
+
"update:modelValue": (value: any) => any;
|
|
3425
|
+
}, string, import("vue").PublicProps, Readonly<RadioGroupProps> & Readonly<{
|
|
3426
|
+
onChange?: ((value: any) => any) | undefined;
|
|
3427
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
3428
|
+
}>, {
|
|
3429
|
+
disabled: boolean;
|
|
3430
|
+
readonly: boolean;
|
|
3431
|
+
direction: "horizontal" | "vertical";
|
|
3432
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3433
|
+
declare const _default$38: __VLS_WithSlots$29<typeof __VLS_component$29, __VLS_Slots$29>;
|
|
3434
|
+
type __VLS_WithSlots$29<T, S> = T & {
|
|
3435
|
+
new (): {
|
|
3436
|
+
$slots: S;
|
|
3437
|
+
};
|
|
3438
|
+
};
|
|
3439
|
+
export type CheckboxProps = {
|
|
3440
|
+
/**
|
|
3441
|
+
* @property {boolean | null} [modelValue]
|
|
3442
|
+
* @version 0.0.3
|
|
3443
|
+
*/
|
|
3444
|
+
modelValue?: boolean | null;
|
|
3445
|
+
/**
|
|
3446
|
+
* @property {boolean | null} [defaultValue]
|
|
3447
|
+
* @version 0.0.3
|
|
3448
|
+
*/
|
|
3449
|
+
defaultValue?: boolean | null;
|
|
3450
|
+
/**
|
|
3451
|
+
* @property {boolean} [indeterminate=false]
|
|
3452
|
+
* @version 0.0.3
|
|
3453
|
+
*/
|
|
3454
|
+
indeterminate?: boolean;
|
|
3455
|
+
/**
|
|
3456
|
+
* @property {boolean} [disabled=false]
|
|
3457
|
+
* @version 0.0.3
|
|
3458
|
+
*/
|
|
3459
|
+
disabled?: boolean;
|
|
3460
|
+
/**
|
|
3461
|
+
* @property {boolean} [readonly=false]
|
|
3462
|
+
* @version 0.0.3
|
|
3463
|
+
*/
|
|
3464
|
+
readonly?: boolean;
|
|
3465
|
+
/**
|
|
3466
|
+
* @property {'normal' | 'retro'} [variant='normal']
|
|
3467
|
+
* @version 0.0.3
|
|
3468
|
+
*/
|
|
3469
|
+
variant?: "normal" | "retro";
|
|
3470
|
+
/**
|
|
3471
|
+
* @property {string} [label]
|
|
3472
|
+
* @version 0.0.3
|
|
3473
|
+
*/
|
|
3474
|
+
label?: string;
|
|
3475
|
+
/**
|
|
3476
|
+
* @property {any} [value]
|
|
3477
|
+
* @version 0.0.3
|
|
3478
|
+
*/
|
|
3479
|
+
value?: any;
|
|
3480
|
+
/**
|
|
3481
|
+
* @property {'medium' | 'large' | 'small'} [size='medium']
|
|
3482
|
+
* @version 0.0.3
|
|
3483
|
+
*/
|
|
3484
|
+
size?: "medium" | "large" | "small";
|
|
3485
|
+
};
|
|
3486
|
+
declare var __VLS_6$2: {};
|
|
3487
|
+
type __VLS_Slots$30 = {} & {
|
|
3488
|
+
default?: (props: typeof __VLS_6$2) => any;
|
|
3489
|
+
};
|
|
3490
|
+
declare const __VLS_component$30: import("vue").DefineComponent<CheckboxProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3491
|
+
change: (value: boolean, event: Event) => any;
|
|
3492
|
+
blur: (event: FocusEvent) => any;
|
|
3493
|
+
input: (value: boolean, event: InputEvent) => any;
|
|
3494
|
+
focus: (event: FocusEvent) => any;
|
|
3495
|
+
"update:modelValue": (value: boolean) => any;
|
|
3496
|
+
}, string, import("vue").PublicProps, Readonly<CheckboxProps> & Readonly<{
|
|
3497
|
+
onChange?: ((value: boolean, event: Event) => any) | undefined;
|
|
3498
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
3499
|
+
onInput?: ((value: boolean, event: InputEvent) => any) | undefined;
|
|
3500
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
3501
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
3502
|
+
}>, {
|
|
3503
|
+
disabled: boolean;
|
|
3504
|
+
readonly: boolean;
|
|
3505
|
+
modelValue: boolean | null;
|
|
3506
|
+
defaultValue: boolean | null;
|
|
3507
|
+
indeterminate: boolean;
|
|
3508
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3509
|
+
declare const _default$39: __VLS_WithSlots$30<typeof __VLS_component$30, __VLS_Slots$30>;
|
|
3510
|
+
type __VLS_WithSlots$30<T, S> = T & {
|
|
3511
|
+
new (): {
|
|
3512
|
+
$slots: S;
|
|
3513
|
+
};
|
|
3514
|
+
};
|
|
3515
|
+
export interface CheckboxGroupOption<T = any> extends Option$1<T> {
|
|
3516
|
+
disabled?: boolean;
|
|
3517
|
+
key?: string | number | symbol;
|
|
3518
|
+
}
|
|
3519
|
+
export type CheckboxGroupProps = {
|
|
3520
|
+
/**
|
|
3521
|
+
* @property {any[] | null} [modelValue]
|
|
3522
|
+
* @version 0.0.3
|
|
3523
|
+
*/
|
|
3524
|
+
modelValue?: any[] | null;
|
|
3525
|
+
/**
|
|
3526
|
+
* @property {any[] | null} [defaultValue]
|
|
3527
|
+
* @version 0.0.3
|
|
3528
|
+
*/
|
|
3529
|
+
defaultValue?: any[] | null;
|
|
3530
|
+
/**
|
|
3531
|
+
* @property {boolean} [disabled=false]
|
|
3532
|
+
* @version 0.0.3
|
|
3533
|
+
*/
|
|
3534
|
+
disabled?: boolean;
|
|
3535
|
+
/**
|
|
3536
|
+
* @property {boolean} [readonly=false]
|
|
3537
|
+
* @version 0.0.3
|
|
3538
|
+
*/
|
|
3539
|
+
readonly?: boolean;
|
|
3540
|
+
/**
|
|
3541
|
+
* @property {'normal' | 'retro'} [variant]
|
|
3542
|
+
* @version 0.0.3
|
|
3543
|
+
*/
|
|
3544
|
+
variant?: "normal" | "retro";
|
|
3545
|
+
/**
|
|
3546
|
+
* @property {'horizontal' | 'vertical'} [direction='horizontal']
|
|
3547
|
+
* @version 0.0.3
|
|
3548
|
+
*/
|
|
3549
|
+
direction?: "horizontal" | "vertical";
|
|
3550
|
+
/**
|
|
3551
|
+
* @property {(CheckboxGroupOption | string)[]} [options]
|
|
3552
|
+
* @version 0.0.3
|
|
3553
|
+
*/
|
|
3554
|
+
options?: (CheckboxGroupOption | string)[];
|
|
3555
|
+
/**
|
|
3556
|
+
* @property {'medium' | 'large' | 'small'} [size='medium']
|
|
3557
|
+
* @version 0.0.3
|
|
3558
|
+
*/
|
|
3559
|
+
size?: "medium" | "large" | "small";
|
|
3560
|
+
};
|
|
3561
|
+
declare var __VLS_1$26: {};
|
|
3562
|
+
type __VLS_Slots$31 = {} & {
|
|
3563
|
+
default?: (props: typeof __VLS_1$26) => any;
|
|
3564
|
+
};
|
|
3565
|
+
declare const __VLS_component$31: import("vue").DefineComponent<CheckboxGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3566
|
+
change: (value: any[]) => any;
|
|
3567
|
+
"update:modelValue": (value: any[]) => any;
|
|
3568
|
+
}, string, import("vue").PublicProps, Readonly<CheckboxGroupProps> & Readonly<{
|
|
3569
|
+
onChange?: ((value: any[]) => any) | undefined;
|
|
3570
|
+
"onUpdate:modelValue"?: ((value: any[]) => any) | undefined;
|
|
3571
|
+
}>, {
|
|
3572
|
+
disabled: boolean;
|
|
3573
|
+
readonly: boolean;
|
|
3574
|
+
direction: "horizontal" | "vertical";
|
|
3575
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3576
|
+
declare const _default$40: __VLS_WithSlots$31<typeof __VLS_component$31, __VLS_Slots$31>;
|
|
3577
|
+
type __VLS_WithSlots$31<T, S> = T & {
|
|
3578
|
+
new (): {
|
|
3579
|
+
$slots: S;
|
|
3580
|
+
};
|
|
3581
|
+
};
|
|
3582
|
+
export type TextOutlineProps = {
|
|
3583
|
+
/**
|
|
3584
|
+
* @property {string} [color]
|
|
3585
|
+
* @version 0.0.3
|
|
3586
|
+
*/
|
|
3587
|
+
color?: string;
|
|
3588
|
+
/**
|
|
3589
|
+
* @property {number | string} [outlineWidth=1]
|
|
3590
|
+
* @version 0.0.3
|
|
3591
|
+
*/
|
|
3592
|
+
outlineWidth?: number | string;
|
|
3593
|
+
/**
|
|
3594
|
+
* @property {boolean} [autoPadding=true]
|
|
3595
|
+
* @version 0.0.3
|
|
3596
|
+
*/
|
|
3597
|
+
autoPadding?: boolean;
|
|
3598
|
+
};
|
|
3599
|
+
declare var __VLS_1$27: {};
|
|
3600
|
+
type __VLS_Slots$32 = {} & {
|
|
3601
|
+
default?: (props: typeof __VLS_1$27) => any;
|
|
3602
|
+
};
|
|
3603
|
+
declare const __VLS_component$32: import("vue").DefineComponent<TextOutlineProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TextOutlineProps> & Readonly<{}>, {
|
|
3604
|
+
color: string;
|
|
3605
|
+
outlineWidth: number | string;
|
|
3606
|
+
autoPadding: boolean;
|
|
3607
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3608
|
+
declare const _default$41: __VLS_WithSlots$32<typeof __VLS_component$32, __VLS_Slots$32>;
|
|
3609
|
+
type __VLS_WithSlots$32<T, S> = T & {
|
|
3610
|
+
new (): {
|
|
3611
|
+
$slots: S;
|
|
3612
|
+
};
|
|
3613
|
+
};
|
|
3614
|
+
export declare function useForm<T extends Record<string | number, any> = Record<string | number, any>>(options?: {
|
|
3615
|
+
initialValues?: T;
|
|
3616
|
+
}): UseFormReturn<T>;
|
|
2275
3617
|
export declare const install: (app: App, options?: {
|
|
2276
3618
|
prefix: string;
|
|
2277
3619
|
attachToApp?: boolean;
|
|
2278
3620
|
attachToWindow?: boolean;
|
|
2279
3621
|
}) => void;
|
|
2280
|
-
declare const _default$
|
|
3622
|
+
declare const _default$42: {
|
|
2281
3623
|
install: (app: App, options?: {
|
|
2282
3624
|
prefix: string;
|
|
2283
3625
|
attachToApp?: boolean;
|
|
@@ -2311,8 +3653,20 @@ export {
|
|
|
2311
3653
|
_default$28 as Spin,
|
|
2312
3654
|
_default$29 as Select,
|
|
2313
3655
|
_default$3 as MessageBox,
|
|
2314
|
-
_default$30 as
|
|
3656
|
+
_default$30 as VirtualList,
|
|
3657
|
+
_default$31 as Image,
|
|
3658
|
+
_default$32 as Avatar,
|
|
3659
|
+
_default$33 as Form,
|
|
3660
|
+
_default$34 as FormItem,
|
|
3661
|
+
_default$35 as Switch,
|
|
3662
|
+
_default$36 as Slider,
|
|
3663
|
+
_default$37 as Radio,
|
|
3664
|
+
_default$38 as RadioGroup,
|
|
3665
|
+
_default$39 as Checkbox,
|
|
2315
3666
|
_default$4 as Row,
|
|
3667
|
+
_default$40 as CheckboxGroup,
|
|
3668
|
+
_default$41 as TextOutline,
|
|
3669
|
+
_default$42 as default,
|
|
2316
3670
|
_default$5 as Col,
|
|
2317
3671
|
_default$6 as Divider,
|
|
2318
3672
|
_default$7 as Space,
|