@pixelium/web-vue 0.0.2 → 0.0.3-beta
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/coverage/base.css +224 -0
- package/coverage/block-navigation.js +87 -0
- package/coverage/coverage-final.json +106 -0
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +926 -0
- package/coverage/prettify.css +1 -0
- package/coverage/prettify.js +2 -0
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +210 -0
- package/dist/font.css +1 -1
- package/dist/index.d.ts +1593 -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 +7402 -5852
- package/dist/pixelium-vue.umd.cjs +2 -2
- 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.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.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.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 +143 -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.js +11 -15
- 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 -672
- 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/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 & {
|
|
@@ -678,6 +681,9 @@ export declare const setThemeColor: (theme: "primary" | "success" | "warning" |
|
|
|
678
681
|
light?: string[];
|
|
679
682
|
dark?: string[];
|
|
680
683
|
}) => void;
|
|
684
|
+
export declare const resetThemeColor: (theme: "primary" | "success" | "warning" | "danger" | "sakura" | "neutral") => void;
|
|
685
|
+
export declare const setPixelSize: (size: number) => void;
|
|
686
|
+
export declare const resetPixelSize: () => void;
|
|
681
687
|
export type Theme = "light" | "dark" | "unset";
|
|
682
688
|
export declare function useThemeMode(defaultTheme?: Theme): readonly [
|
|
683
689
|
import("vue").Ref<Theme, Theme>,
|
|
@@ -776,10 +782,10 @@ export type InputProps = {
|
|
|
776
782
|
*/
|
|
777
783
|
size?: "medium" | "large" | "small";
|
|
778
784
|
/**
|
|
779
|
-
* @property {'
|
|
780
|
-
* @version 0.0.
|
|
785
|
+
* @property {'rect' | 'round'} [shape='rect']
|
|
786
|
+
* @version 0.0.3
|
|
781
787
|
*/
|
|
782
|
-
shape?: "
|
|
788
|
+
shape?: "rect" | "round" | "default";
|
|
783
789
|
/**
|
|
784
790
|
* @property {NumberOrPercentage | NumberOrPercentage[]} [borderRadius]
|
|
785
791
|
* @version 0.0.2
|
|
@@ -821,9 +827,31 @@ export type InputProps = {
|
|
|
821
827
|
*/
|
|
822
828
|
nativeType?: "text" | "password" | "email" | "tel" | "url" | "search";
|
|
823
829
|
};
|
|
830
|
+
export type InputExpose = {
|
|
831
|
+
/**
|
|
832
|
+
* @property {() => void} focus
|
|
833
|
+
* @version 0.0.2
|
|
834
|
+
*/
|
|
835
|
+
focus: () => void;
|
|
836
|
+
/**
|
|
837
|
+
* @property {() => void} blur
|
|
838
|
+
* @version 0.0.2
|
|
839
|
+
*/
|
|
840
|
+
blur: () => void;
|
|
841
|
+
/**
|
|
842
|
+
* @property {() => void} clear
|
|
843
|
+
* @version 0.0.2
|
|
844
|
+
*/
|
|
845
|
+
clear: () => void;
|
|
846
|
+
/**
|
|
847
|
+
* @property {() => void} select
|
|
848
|
+
* @version 0.0.2
|
|
849
|
+
*/
|
|
850
|
+
select: () => void;
|
|
851
|
+
};
|
|
824
852
|
declare var __VLS_1$11: {}, __VLS_27: {
|
|
825
|
-
value:
|
|
826
|
-
count:
|
|
853
|
+
value: string | import("parsnip-kit").Nullish;
|
|
854
|
+
count: number;
|
|
827
855
|
maxLength: number | undefined;
|
|
828
856
|
}, __VLS_34: {};
|
|
829
857
|
type __VLS_Slots$13 = {} & {
|
|
@@ -833,32 +861,25 @@ type __VLS_Slots$13 = {} & {
|
|
|
833
861
|
} & {
|
|
834
862
|
suffix?: (props: typeof __VLS_34) => any;
|
|
835
863
|
};
|
|
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;
|
|
864
|
+
declare const __VLS_component$13: import("vue").DefineComponent<InputProps, InputExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
844
865
|
clear: (value: string) => any;
|
|
866
|
+
change: (value: string, e?: Event | undefined) => any;
|
|
845
867
|
blur: (e: FocusEvent) => any;
|
|
868
|
+
input: (value: string, e: Event) => any;
|
|
846
869
|
focus: (e: FocusEvent) => any;
|
|
847
870
|
"update:modelValue": (value: string) => any;
|
|
848
871
|
}, 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
872
|
onClear?: ((value: string) => any) | undefined;
|
|
873
|
+
onChange?: ((value: string, e?: Event | undefined) => any) | undefined;
|
|
852
874
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
875
|
+
onInput?: ((value: string, e: Event) => any) | undefined;
|
|
853
876
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
854
877
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
855
878
|
}>, {
|
|
856
|
-
shape: "default" | "round";
|
|
857
|
-
size: "medium" | "large" | "small";
|
|
858
879
|
disabled: boolean;
|
|
880
|
+
readonly: boolean;
|
|
859
881
|
loading: boolean;
|
|
860
882
|
password: boolean;
|
|
861
|
-
readonly: boolean;
|
|
862
883
|
clearable: boolean;
|
|
863
884
|
showCount: boolean;
|
|
864
885
|
status: "success" | "warning" | "error" | "normal";
|
|
@@ -951,10 +972,10 @@ export type InputNumberProps = {
|
|
|
951
972
|
*/
|
|
952
973
|
size?: "medium" | "large" | "small";
|
|
953
974
|
/**
|
|
954
|
-
* @property {'
|
|
955
|
-
* @version 0.0.
|
|
975
|
+
* @property {'rect' | 'round'} [shape='rect']
|
|
976
|
+
* @version 0.0.3
|
|
956
977
|
*/
|
|
957
|
-
shape?: "
|
|
978
|
+
shape?: "rect" | "round" | "default";
|
|
958
979
|
/**
|
|
959
980
|
* @property {NumberOrPercentage | NumberOrPercentage[]} [borderRadius]
|
|
960
981
|
* @version 0.0.2
|
|
@@ -976,37 +997,52 @@ export type InputNumberProps = {
|
|
|
976
997
|
*/
|
|
977
998
|
autofocus?: boolean;
|
|
978
999
|
};
|
|
979
|
-
|
|
1000
|
+
export type InputNumberExpose = {
|
|
1001
|
+
/**
|
|
1002
|
+
* @property {() => void} focus
|
|
1003
|
+
* @version 0.0.2
|
|
1004
|
+
*/
|
|
1005
|
+
focus: () => void;
|
|
1006
|
+
/**
|
|
1007
|
+
* @property {() => void} blur
|
|
1008
|
+
* @version 0.0.2
|
|
1009
|
+
*/
|
|
1010
|
+
blur: () => void;
|
|
1011
|
+
/**
|
|
1012
|
+
* @property {() => void} clear
|
|
1013
|
+
* @version 0.0.2
|
|
1014
|
+
*/
|
|
1015
|
+
clear: () => void;
|
|
1016
|
+
/**
|
|
1017
|
+
* @property {() => void} select
|
|
1018
|
+
* @version 0.0.2
|
|
1019
|
+
*/
|
|
1020
|
+
select: () => void;
|
|
1021
|
+
};
|
|
1022
|
+
declare var __VLS_1$12: {}, __VLS_60: {};
|
|
980
1023
|
type __VLS_Slots$14 = {} & {
|
|
981
1024
|
prefix?: (props: typeof __VLS_1$12) => any;
|
|
982
1025
|
} & {
|
|
983
|
-
suffix?: (props: typeof
|
|
1026
|
+
suffix?: (props: typeof __VLS_60) => any;
|
|
984
1027
|
};
|
|
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;
|
|
1028
|
+
declare const __VLS_component$14: import("vue").DefineComponent<InputNumberProps, InputNumberExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
993
1029
|
clear: (value: number) => any;
|
|
1030
|
+
change: (value: number, e?: Event | undefined) => any;
|
|
994
1031
|
blur: (e: FocusEvent) => any;
|
|
1032
|
+
input: (value: number, e: Event) => any;
|
|
995
1033
|
focus: (e: FocusEvent) => any;
|
|
996
1034
|
"update:modelValue": (value: number) => any;
|
|
997
1035
|
}, 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
1036
|
onClear?: ((value: number) => any) | undefined;
|
|
1037
|
+
onChange?: ((value: number, e?: Event | undefined) => any) | undefined;
|
|
1001
1038
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
1039
|
+
onInput?: ((value: number, e: Event) => any) | undefined;
|
|
1002
1040
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
1003
1041
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
1004
1042
|
}>, {
|
|
1005
|
-
shape: "default" | "round";
|
|
1006
|
-
size: "medium" | "large" | "small";
|
|
1007
1043
|
disabled: boolean;
|
|
1008
|
-
loading: boolean;
|
|
1009
1044
|
readonly: boolean;
|
|
1045
|
+
loading: boolean;
|
|
1010
1046
|
clearable: boolean;
|
|
1011
1047
|
status: "success" | "warning" | "error" | "normal";
|
|
1012
1048
|
max: number;
|
|
@@ -1118,6 +1154,28 @@ export type TextareaProps = {
|
|
|
1118
1154
|
*/
|
|
1119
1155
|
autofocus?: boolean;
|
|
1120
1156
|
};
|
|
1157
|
+
export type TextareaExpose = {
|
|
1158
|
+
/**
|
|
1159
|
+
* @property {() => void} focus
|
|
1160
|
+
* @version 0.0.2
|
|
1161
|
+
*/
|
|
1162
|
+
focus: () => void;
|
|
1163
|
+
/**
|
|
1164
|
+
* @property {() => void} blur
|
|
1165
|
+
* @version 0.0.2
|
|
1166
|
+
*/
|
|
1167
|
+
blur: () => void;
|
|
1168
|
+
/**
|
|
1169
|
+
* @property {() => void} clear
|
|
1170
|
+
* @version 0.0.2
|
|
1171
|
+
*/
|
|
1172
|
+
clear: () => void;
|
|
1173
|
+
/**
|
|
1174
|
+
* @property {() => void} select
|
|
1175
|
+
* @version 0.0.2
|
|
1176
|
+
*/
|
|
1177
|
+
select: () => void;
|
|
1178
|
+
};
|
|
1121
1179
|
declare var __VLS_9: {
|
|
1122
1180
|
value: string | Nullish;
|
|
1123
1181
|
count: number;
|
|
@@ -1126,31 +1184,25 @@ declare var __VLS_9: {
|
|
|
1126
1184
|
type __VLS_Slots$15 = {} & {
|
|
1127
1185
|
count?: (props: typeof __VLS_9) => any;
|
|
1128
1186
|
};
|
|
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;
|
|
1187
|
+
declare const __VLS_component$15: import("vue").DefineComponent<TextareaProps, TextareaExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1137
1188
|
clear: (value: string) => any;
|
|
1189
|
+
change: (value: string, e?: Event | undefined) => any;
|
|
1138
1190
|
blur: (e: FocusEvent) => any;
|
|
1191
|
+
input: (value: string, e: Event) => any;
|
|
1139
1192
|
focus: (e: FocusEvent) => any;
|
|
1140
1193
|
"update:modelValue": (value: string) => any;
|
|
1141
1194
|
}, 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
1195
|
onClear?: ((value: string) => any) | undefined;
|
|
1196
|
+
onChange?: ((value: string, e?: Event | undefined) => any) | undefined;
|
|
1145
1197
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
1198
|
+
onInput?: ((value: string, e: Event) => any) | undefined;
|
|
1146
1199
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
1147
1200
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1148
1201
|
}>, {
|
|
1149
|
-
size: "medium" | "large" | "small";
|
|
1150
1202
|
disabled: boolean;
|
|
1151
|
-
loading: boolean;
|
|
1152
|
-
resize: boolean;
|
|
1153
1203
|
readonly: boolean;
|
|
1204
|
+
resize: boolean;
|
|
1205
|
+
loading: boolean;
|
|
1154
1206
|
clearable: boolean;
|
|
1155
1207
|
showCount: boolean;
|
|
1156
1208
|
status: "success" | "warning" | "error" | "normal";
|
|
@@ -1171,10 +1223,10 @@ export type TagProps = {
|
|
|
1171
1223
|
*/
|
|
1172
1224
|
borderRadius?: NumberOrPercentage | NumberOrPercentage[];
|
|
1173
1225
|
/**
|
|
1174
|
-
* @property {'
|
|
1175
|
-
* @version 0.0.
|
|
1226
|
+
* @property {'rect' | 'round'} [shape='rect']
|
|
1227
|
+
* @version 0.0.3
|
|
1176
1228
|
*/
|
|
1177
|
-
shape?: "
|
|
1229
|
+
shape?: "rect" | "round" | "default";
|
|
1178
1230
|
/**
|
|
1179
1231
|
* @property {'medium' | 'large' | 'small'} [size='medium']
|
|
1180
1232
|
* @version 0.0.2
|
|
@@ -1206,6 +1258,16 @@ export type TagProps = {
|
|
|
1206
1258
|
*/
|
|
1207
1259
|
closable?: boolean;
|
|
1208
1260
|
};
|
|
1261
|
+
export type TagEvents = {
|
|
1262
|
+
/**
|
|
1263
|
+
* @event close
|
|
1264
|
+
* @version 0.0.2
|
|
1265
|
+
* @param {MouseEvent} e
|
|
1266
|
+
*/
|
|
1267
|
+
close: [
|
|
1268
|
+
e: MouseEvent
|
|
1269
|
+
];
|
|
1270
|
+
};
|
|
1209
1271
|
declare var __VLS_1$13: {};
|
|
1210
1272
|
type __VLS_Slots$16 = {} & {
|
|
1211
1273
|
default?: (props: typeof __VLS_1$13) => any;
|
|
@@ -1215,11 +1277,11 @@ declare const __VLS_component$16: import("vue").DefineComponent<TagProps, {}, {}
|
|
|
1215
1277
|
}, string, import("vue").PublicProps, Readonly<TagProps> & Readonly<{
|
|
1216
1278
|
onClose?: ((e: MouseEvent) => any) | undefined;
|
|
1217
1279
|
}>, {
|
|
1218
|
-
shape: "default" | "round";
|
|
1219
1280
|
size: "medium" | "large" | "small";
|
|
1220
|
-
disabled: boolean;
|
|
1221
1281
|
variant: "primary" | "plain" | "outline";
|
|
1222
1282
|
theme: "primary" | "sakura" | "success" | "warning" | "danger" | "info";
|
|
1283
|
+
disabled: boolean;
|
|
1284
|
+
shape: "rect" | "round" | "default";
|
|
1223
1285
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1224
1286
|
declare const _default$19: __VLS_WithSlots$16<typeof __VLS_component$16, __VLS_Slots$16>;
|
|
1225
1287
|
type __VLS_WithSlots$16<T, S> = T & {
|
|
@@ -1234,10 +1296,10 @@ export type InputGroupProps = {
|
|
|
1234
1296
|
*/
|
|
1235
1297
|
borderRadius?: NumberOrPercentage | NumberOrPercentage[];
|
|
1236
1298
|
/**
|
|
1237
|
-
* @property {'
|
|
1238
|
-
* @version 0.0.
|
|
1299
|
+
* @property {'rect' | 'round'} [shape='rect']
|
|
1300
|
+
* @version 0.0.3
|
|
1239
1301
|
*/
|
|
1240
|
-
shape?: "
|
|
1302
|
+
shape?: "rect" | "round" | "default";
|
|
1241
1303
|
/**
|
|
1242
1304
|
* @property {'medium' | 'large' | 'small'} [size='medium']
|
|
1243
1305
|
* @version 0.0.2
|
|
@@ -1248,15 +1310,20 @@ export type InputGroupProps = {
|
|
|
1248
1310
|
* @version 0.0.2
|
|
1249
1311
|
*/
|
|
1250
1312
|
disabled?: boolean;
|
|
1313
|
+
/**
|
|
1314
|
+
* @property {boolean} [readonly=false]
|
|
1315
|
+
* @version 0.0.3
|
|
1316
|
+
*/
|
|
1317
|
+
readonly?: boolean;
|
|
1251
1318
|
};
|
|
1252
1319
|
declare var __VLS_1$14: {};
|
|
1253
1320
|
type __VLS_Slots$17 = {} & {
|
|
1254
1321
|
default?: (props: typeof __VLS_1$14) => any;
|
|
1255
1322
|
};
|
|
1256
1323
|
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
1324
|
disabled: boolean;
|
|
1325
|
+
readonly: boolean;
|
|
1326
|
+
shape: "rect" | "round" | "default";
|
|
1260
1327
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1261
1328
|
declare const _default$20: __VLS_WithSlots$17<typeof __VLS_component$17, __VLS_Slots$17>;
|
|
1262
1329
|
type __VLS_WithSlots$17<T, S> = T & {
|
|
@@ -1276,10 +1343,10 @@ export type InputGroupLabelProps = {
|
|
|
1276
1343
|
*/
|
|
1277
1344
|
borderRadius?: NumberOrPercentage | NumberOrPercentage[];
|
|
1278
1345
|
/**
|
|
1279
|
-
* @property {'
|
|
1280
|
-
* @version 0.0.
|
|
1346
|
+
* @property {'rect' | 'round'} [shape='rect']
|
|
1347
|
+
* @version 0.0.3
|
|
1281
1348
|
*/
|
|
1282
|
-
shape?: "
|
|
1349
|
+
shape?: "rect" | "round" | "default";
|
|
1283
1350
|
/**
|
|
1284
1351
|
* @property {'medium' | 'large' | 'small'} [size='medium']
|
|
1285
1352
|
* @version 0.0.2
|
|
@@ -1290,16 +1357,111 @@ declare var __VLS_1$15: {};
|
|
|
1290
1357
|
type __VLS_Slots$18 = {} & {
|
|
1291
1358
|
default?: (props: typeof __VLS_1$15) => any;
|
|
1292
1359
|
};
|
|
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>;
|
|
1360
|
+
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
1361
|
declare const _default$21: __VLS_WithSlots$18<typeof __VLS_component$18, __VLS_Slots$18>;
|
|
1298
1362
|
type __VLS_WithSlots$18<T, S> = T & {
|
|
1299
1363
|
new (): {
|
|
1300
1364
|
$slots: S;
|
|
1301
1365
|
};
|
|
1302
1366
|
};
|
|
1367
|
+
export type PopoverProps = {
|
|
1368
|
+
/**
|
|
1369
|
+
* @property {string} [content]
|
|
1370
|
+
* @version 0.0.2
|
|
1371
|
+
*/
|
|
1372
|
+
content?: string;
|
|
1373
|
+
/**
|
|
1374
|
+
* @property {boolean | null} [visible]
|
|
1375
|
+
* @version 0.0.2
|
|
1376
|
+
*/
|
|
1377
|
+
visible?: boolean | null;
|
|
1378
|
+
/**
|
|
1379
|
+
* @property {boolean | null} [defaultVisible]
|
|
1380
|
+
* @version 0.0.2
|
|
1381
|
+
*/
|
|
1382
|
+
defaultVisible?: boolean | null;
|
|
1383
|
+
/**
|
|
1384
|
+
* @property {'top' | 'right' | 'bottom' | 'left' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end'} [placement='top']
|
|
1385
|
+
* @version 0.0.2
|
|
1386
|
+
*/
|
|
1387
|
+
placement?: "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
1388
|
+
/**
|
|
1389
|
+
* @property {'hover' | 'click'} [trigger='hover']
|
|
1390
|
+
* @version 0.0.2
|
|
1391
|
+
*/
|
|
1392
|
+
trigger?: "hover" | "click";
|
|
1393
|
+
/**
|
|
1394
|
+
* @property {number} [offset=8]
|
|
1395
|
+
* @version 0.0.2
|
|
1396
|
+
*/
|
|
1397
|
+
offset?: number;
|
|
1398
|
+
/**
|
|
1399
|
+
* @property {'dark' | 'light'} [variant='light']
|
|
1400
|
+
* @version 0.0.2
|
|
1401
|
+
*/
|
|
1402
|
+
variant?: "dark" | "light";
|
|
1403
|
+
/**
|
|
1404
|
+
* @property {boolean} [arrow=true]
|
|
1405
|
+
* @version 0.0.2
|
|
1406
|
+
*/
|
|
1407
|
+
arrow?: boolean;
|
|
1408
|
+
/**
|
|
1409
|
+
* @property {boolean} [disabled=false]
|
|
1410
|
+
* @version 0.0.2
|
|
1411
|
+
*/
|
|
1412
|
+
disabled?: boolean;
|
|
1413
|
+
/**
|
|
1414
|
+
* @property {number} [zIndex]
|
|
1415
|
+
* @version 0.0.2
|
|
1416
|
+
*/
|
|
1417
|
+
zIndex?: number;
|
|
1418
|
+
/**
|
|
1419
|
+
* @property { HTMLElement | string} [root='body']
|
|
1420
|
+
* @version 0.0.2
|
|
1421
|
+
*/
|
|
1422
|
+
root?: HTMLElement | string;
|
|
1423
|
+
/**
|
|
1424
|
+
* @property {boolean} [widthEqual=false]
|
|
1425
|
+
* @version 0.0.2
|
|
1426
|
+
*/
|
|
1427
|
+
widthEqual?: boolean;
|
|
1428
|
+
/**
|
|
1429
|
+
* @property {CSSProperties} [contentStyle]
|
|
1430
|
+
* @version 0.0.2
|
|
1431
|
+
*/
|
|
1432
|
+
contentStyle?: CSSProperties;
|
|
1433
|
+
/**
|
|
1434
|
+
* @property {boolean} [destroyOnHide=false]
|
|
1435
|
+
* @version 0.0.3
|
|
1436
|
+
*/
|
|
1437
|
+
destroyOnHide?: boolean;
|
|
1438
|
+
};
|
|
1439
|
+
export type PopoverEvents = {
|
|
1440
|
+
/**
|
|
1441
|
+
* @event update:visible
|
|
1442
|
+
* @param {boolean} value
|
|
1443
|
+
* @version 0.0.2
|
|
1444
|
+
*/
|
|
1445
|
+
"update:visible": [
|
|
1446
|
+
value: boolean
|
|
1447
|
+
];
|
|
1448
|
+
/**
|
|
1449
|
+
* @event close
|
|
1450
|
+
* @param {MouseEvent} e
|
|
1451
|
+
* @version 0.0.2
|
|
1452
|
+
*/
|
|
1453
|
+
close: [
|
|
1454
|
+
e: MouseEvent | TouchEvent
|
|
1455
|
+
];
|
|
1456
|
+
/**
|
|
1457
|
+
* @event open
|
|
1458
|
+
* @param {MouseEvent} e
|
|
1459
|
+
* @version 0.0.2
|
|
1460
|
+
*/
|
|
1461
|
+
open: [
|
|
1462
|
+
e: MouseEvent
|
|
1463
|
+
];
|
|
1464
|
+
};
|
|
1303
1465
|
export type InputTagProps = {
|
|
1304
1466
|
/**
|
|
1305
1467
|
* @property {string[] | null} [modelValue]
|
|
@@ -1352,10 +1514,10 @@ export type InputTagProps = {
|
|
|
1352
1514
|
*/
|
|
1353
1515
|
size?: "medium" | "large" | "small";
|
|
1354
1516
|
/**
|
|
1355
|
-
* @property {'
|
|
1356
|
-
* @version 0.0.
|
|
1517
|
+
* @property {'rect' | 'round'} [shape='rect']
|
|
1518
|
+
* @version 0.0.3
|
|
1357
1519
|
*/
|
|
1358
|
-
shape?: "
|
|
1520
|
+
shape?: "rect" | "round" | "default";
|
|
1359
1521
|
/**
|
|
1360
1522
|
* @property {NumberOrPercentage | NumberOrPercentage[]} [borderRadius]
|
|
1361
1523
|
* @version 0.0.2
|
|
@@ -1381,6 +1543,21 @@ export type InputTagProps = {
|
|
|
1381
1543
|
* @version 0.0.2
|
|
1382
1544
|
*/
|
|
1383
1545
|
collapseTagsPopover?: boolean;
|
|
1546
|
+
/**
|
|
1547
|
+
* @property {Omit<TagProps, 'size' | 'disabled' | 'closable'> & EmitEvent<TagEvents>} [tagProps]
|
|
1548
|
+
* @version 0.0.3
|
|
1549
|
+
*/
|
|
1550
|
+
tagProps?: Omit<TagProps, "size" | "disabled" | "closable"> & EmitEvent<TagEvents>;
|
|
1551
|
+
/**
|
|
1552
|
+
* @property {'success' | 'warning' | 'error' | 'normal'} [status='normal']
|
|
1553
|
+
* @version 0.0.2
|
|
1554
|
+
*/
|
|
1555
|
+
status?: "success" | "warning" | "error" | "normal";
|
|
1556
|
+
/**
|
|
1557
|
+
* @property {boolean} [autofocus=false]
|
|
1558
|
+
* @version 0.0.2
|
|
1559
|
+
*/
|
|
1560
|
+
autofocus?: boolean;
|
|
1384
1561
|
/**
|
|
1385
1562
|
* @property {'primary' | 'sakura' | 'success' | 'warning' | 'danger' | 'info'} [tagTheme='info']
|
|
1386
1563
|
* @version 0.0.2
|
|
@@ -1397,15 +1574,27 @@ export type InputTagProps = {
|
|
|
1397
1574
|
*/
|
|
1398
1575
|
tagColor?: TagProps["color"];
|
|
1399
1576
|
/**
|
|
1400
|
-
* @property {
|
|
1577
|
+
* @property {Omit<PopoverProps, 'visible' | 'content'> & EmitEvent<PopoverEvents>} [popoverProps]
|
|
1578
|
+
* @version 0.0.3
|
|
1579
|
+
*/
|
|
1580
|
+
popoverProps?: Omit<PopoverProps, "visible" | "content"> & EmitEvent<PopoverEvents>;
|
|
1581
|
+
};
|
|
1582
|
+
export type InputTagExpose = {
|
|
1583
|
+
/**
|
|
1584
|
+
* @property {() => void} focus
|
|
1401
1585
|
* @version 0.0.2
|
|
1402
1586
|
*/
|
|
1403
|
-
|
|
1587
|
+
focus: () => void;
|
|
1404
1588
|
/**
|
|
1405
|
-
* @property {
|
|
1589
|
+
* @property {() => void} blur
|
|
1406
1590
|
* @version 0.0.2
|
|
1407
1591
|
*/
|
|
1408
|
-
|
|
1592
|
+
blur: () => void;
|
|
1593
|
+
/**
|
|
1594
|
+
* @property {() => void} clear
|
|
1595
|
+
* @version 0.0.2
|
|
1596
|
+
*/
|
|
1597
|
+
clear: () => void;
|
|
1409
1598
|
};
|
|
1410
1599
|
declare var __VLS_1$16: {}, __VLS_10: {
|
|
1411
1600
|
tag: string;
|
|
@@ -1433,15 +1622,11 @@ type __VLS_Slots$19 = {} & {
|
|
|
1433
1622
|
} & {
|
|
1434
1623
|
suffix?: (props: typeof __VLS_51) => any;
|
|
1435
1624
|
};
|
|
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;
|
|
1625
|
+
declare const __VLS_component$19: import("vue").DefineComponent<InputTagProps, InputTagExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1443
1626
|
clear: (value: string[]) => any;
|
|
1627
|
+
change: (value: string[]) => any;
|
|
1444
1628
|
blur: (e: FocusEvent) => any;
|
|
1629
|
+
input: (value: string, e: Event) => any;
|
|
1445
1630
|
focus: (e: FocusEvent) => any;
|
|
1446
1631
|
"update:modelValue": (value: string[]) => any;
|
|
1447
1632
|
tagAdd: (value: string, e: KeyboardEvent) => any;
|
|
@@ -1449,10 +1634,10 @@ declare const __VLS_component$19: import("vue").DefineComponent<InputTagProps, {
|
|
|
1449
1634
|
"update:inputValue": (value: string) => any;
|
|
1450
1635
|
inputChange: (value: string, e?: Event | undefined) => any;
|
|
1451
1636
|
}, string, import("vue").PublicProps, Readonly<InputTagProps> & Readonly<{
|
|
1452
|
-
onInput?: ((value: string, e: Event) => any) | undefined;
|
|
1453
|
-
onChange?: ((value: string[]) => any) | undefined;
|
|
1454
1637
|
onClear?: ((value: string[]) => any) | undefined;
|
|
1638
|
+
onChange?: ((value: string[]) => any) | undefined;
|
|
1455
1639
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
1640
|
+
onInput?: ((value: string, e: Event) => any) | undefined;
|
|
1456
1641
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
1457
1642
|
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
1458
1643
|
onTagAdd?: ((value: string, e: KeyboardEvent) => any) | undefined;
|
|
@@ -1460,11 +1645,9 @@ declare const __VLS_component$19: import("vue").DefineComponent<InputTagProps, {
|
|
|
1460
1645
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
|
1461
1646
|
onInputChange?: ((value: string, e?: Event | undefined) => any) | undefined;
|
|
1462
1647
|
}>, {
|
|
1463
|
-
shape: "default" | "round";
|
|
1464
|
-
size: "medium" | "large" | "small";
|
|
1465
1648
|
disabled: boolean;
|
|
1466
|
-
loading: boolean;
|
|
1467
1649
|
readonly: boolean;
|
|
1650
|
+
loading: boolean;
|
|
1468
1651
|
clearable: boolean;
|
|
1469
1652
|
status: "success" | "warning" | "error" | "normal";
|
|
1470
1653
|
collapseTags: boolean;
|
|
@@ -1525,7 +1708,7 @@ export type TooltipProps = {
|
|
|
1525
1708
|
*/
|
|
1526
1709
|
disabled?: boolean;
|
|
1527
1710
|
/**
|
|
1528
|
-
* @property {number} [
|
|
1711
|
+
* @property {number} [zIndex]
|
|
1529
1712
|
* @version 0.0.2
|
|
1530
1713
|
*/
|
|
1531
1714
|
zIndex?: number;
|
|
@@ -1534,91 +1717,37 @@ export type TooltipProps = {
|
|
|
1534
1717
|
* @version 0.0.2
|
|
1535
1718
|
*/
|
|
1536
1719
|
root?: HTMLElement | string;
|
|
1720
|
+
/**
|
|
1721
|
+
* @property {boolean} [destroyOnHide=false]
|
|
1722
|
+
* @version 0.0.3
|
|
1723
|
+
*/
|
|
1724
|
+
destroyOnHide?: boolean;
|
|
1537
1725
|
};
|
|
1538
|
-
|
|
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
|
-
/**
|
|
1603
|
-
* @property {number} [disabled]
|
|
1604
|
-
* @version 0.0.2
|
|
1605
|
-
*/
|
|
1606
|
-
zIndex?: number;
|
|
1726
|
+
export type TooltipEvents = {
|
|
1607
1727
|
/**
|
|
1608
|
-
* @
|
|
1728
|
+
* @event update:visible
|
|
1729
|
+
* @param {boolean} value
|
|
1609
1730
|
* @version 0.0.2
|
|
1610
1731
|
*/
|
|
1611
|
-
|
|
1732
|
+
"update:visible": [
|
|
1733
|
+
value: boolean
|
|
1734
|
+
];
|
|
1612
1735
|
/**
|
|
1613
|
-
* @
|
|
1736
|
+
* @event close
|
|
1737
|
+
* @param {MouseEvent} e
|
|
1614
1738
|
* @version 0.0.2
|
|
1615
1739
|
*/
|
|
1616
|
-
|
|
1740
|
+
close: [
|
|
1741
|
+
e: MouseEvent | TouchEvent
|
|
1742
|
+
];
|
|
1617
1743
|
/**
|
|
1618
|
-
* @
|
|
1744
|
+
* @event open
|
|
1745
|
+
* @param {MouseEvent} e
|
|
1619
1746
|
* @version 0.0.2
|
|
1620
1747
|
*/
|
|
1621
|
-
|
|
1748
|
+
open: [
|
|
1749
|
+
e: MouseEvent
|
|
1750
|
+
];
|
|
1622
1751
|
};
|
|
1623
1752
|
export type PopupContentProps = {
|
|
1624
1753
|
content?: string;
|
|
@@ -1634,9 +1763,10 @@ export type PopupContentProps = {
|
|
|
1634
1763
|
borderRadius?: number;
|
|
1635
1764
|
widthEqual?: boolean;
|
|
1636
1765
|
contentStyle?: CSSProperties;
|
|
1766
|
+
destroyOnHide?: boolean;
|
|
1637
1767
|
};
|
|
1638
|
-
declare const _default$
|
|
1639
|
-
triggerContent:
|
|
1768
|
+
declare const _default$23: import("vue").DefineComponent<TooltipProps, {
|
|
1769
|
+
readonly triggerContent: ({
|
|
1640
1770
|
$: import("vue").ComponentInternalInstance;
|
|
1641
1771
|
$data: {};
|
|
1642
1772
|
$props: {
|
|
@@ -1648,11 +1778,12 @@ declare const _default$24: import("vue").DefineComponent<PopoverProps, {
|
|
|
1648
1778
|
readonly variant?: "dark" | "light" | undefined;
|
|
1649
1779
|
readonly arrow?: boolean | undefined;
|
|
1650
1780
|
readonly zIndex?: number | undefined;
|
|
1651
|
-
readonly target?: (HTMLElement | VNode | null) | undefined;
|
|
1781
|
+
readonly target?: (HTMLElement | import("vue").VNode | null) | undefined;
|
|
1652
1782
|
readonly root?: (HTMLElement | string) | undefined;
|
|
1653
1783
|
readonly borderRadius?: number | undefined;
|
|
1654
1784
|
readonly widthEqual?: boolean | undefined;
|
|
1655
1785
|
readonly contentStyle?: import("vue").CSSProperties | undefined;
|
|
1786
|
+
readonly destroyOnHide?: boolean | undefined;
|
|
1656
1787
|
readonly onContentMouseenter?: ((e: MouseEvent) => any) | undefined;
|
|
1657
1788
|
readonly onContentMouseleave?: ((e: MouseEvent) => any) | undefined;
|
|
1658
1789
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -1687,6 +1818,7 @@ declare const _default$24: import("vue").DefineComponent<PopoverProps, {
|
|
|
1687
1818
|
visible: boolean | null;
|
|
1688
1819
|
arrow: boolean;
|
|
1689
1820
|
widthEqual: boolean;
|
|
1821
|
+
destroyOnHide: boolean;
|
|
1690
1822
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
1691
1823
|
beforeCreate?: (() => void) | (() => void)[];
|
|
1692
1824
|
created?: (() => void) | (() => void)[];
|
|
@@ -1705,7 +1837,7 @@ declare const _default$24: import("vue").DefineComponent<PopoverProps, {
|
|
|
1705
1837
|
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1706
1838
|
};
|
|
1707
1839
|
$forceUpdate: () => void;
|
|
1708
|
-
$nextTick: typeof nextTick;
|
|
1840
|
+
$nextTick: typeof import("vue").nextTick;
|
|
1709
1841
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [
|
|
1710
1842
|
R,
|
|
1711
1843
|
R,
|
|
@@ -1723,17 +1855,40 @@ declare const _default$24: import("vue").DefineComponent<PopoverProps, {
|
|
|
1723
1855
|
visible: boolean | null;
|
|
1724
1856
|
arrow: boolean;
|
|
1725
1857
|
widthEqual: boolean;
|
|
1858
|
+
destroyOnHide: boolean;
|
|
1726
1859
|
}> & Omit<Readonly<PopupContentProps> & Readonly<{
|
|
1727
1860
|
onContentMouseenter?: ((e: MouseEvent) => any) | undefined;
|
|
1728
1861
|
onContentMouseleave?: ((e: MouseEvent) => any) | undefined;
|
|
1729
|
-
}>, "content" | ("variant" | "placement" | "root" | "offset" | "visible" | "arrow" | "widthEqual"
|
|
1862
|
+
}>, "content" | "updateRenderState" | ("variant" | "placement" | "root" | "offset" | "visible" | "arrow" | "widthEqual" | "destroyOnHide")> & import("vue").ShallowUnwrapRef<{
|
|
1730
1863
|
updateRenderState: () => void;
|
|
1731
1864
|
content: import("vue").ShallowRef<HTMLDivElement | null, HTMLDivElement | null>;
|
|
1732
1865
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
1733
1866
|
$slots: {
|
|
1734
1867
|
content?: (props: {}) => any;
|
|
1735
1868
|
};
|
|
1736
|
-
}) | undefined
|
|
1869
|
+
}) | undefined;
|
|
1870
|
+
updateRenderState(): void;
|
|
1871
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1872
|
+
close: (e: MouseEvent | TouchEvent) => any;
|
|
1873
|
+
open: (e: MouseEvent) => any;
|
|
1874
|
+
"update:visible": (value: boolean) => any;
|
|
1875
|
+
}, string, import("vue").PublicProps, Readonly<TooltipProps> & Readonly<{
|
|
1876
|
+
onClose?: ((e: MouseEvent | TouchEvent) => any) | undefined;
|
|
1877
|
+
onOpen?: ((e: MouseEvent) => any) | undefined;
|
|
1878
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
1879
|
+
}>, {
|
|
1880
|
+
variant: "dark" | "light";
|
|
1881
|
+
placement: "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
1882
|
+
root: HTMLElement | string;
|
|
1883
|
+
offset: number;
|
|
1884
|
+
visible: boolean | null;
|
|
1885
|
+
defaultVisible: boolean | null;
|
|
1886
|
+
trigger: "hover" | "click";
|
|
1887
|
+
arrow: boolean;
|
|
1888
|
+
destroyOnHide: boolean;
|
|
1889
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1890
|
+
declare const _default$24: import("vue").DefineComponent<PopoverProps, {
|
|
1891
|
+
readonly triggerContent: ({
|
|
1737
1892
|
$: import("vue").ComponentInternalInstance;
|
|
1738
1893
|
$data: {};
|
|
1739
1894
|
$props: {
|
|
@@ -1745,11 +1900,12 @@ declare const _default$24: import("vue").DefineComponent<PopoverProps, {
|
|
|
1745
1900
|
readonly variant?: "dark" | "light" | undefined;
|
|
1746
1901
|
readonly arrow?: boolean | undefined;
|
|
1747
1902
|
readonly zIndex?: number | undefined;
|
|
1748
|
-
readonly target?: (HTMLElement | VNode | null) | undefined;
|
|
1903
|
+
readonly target?: (HTMLElement | import("vue").VNode | null) | undefined;
|
|
1749
1904
|
readonly root?: (HTMLElement | string) | undefined;
|
|
1750
1905
|
readonly borderRadius?: number | undefined;
|
|
1751
1906
|
readonly widthEqual?: boolean | undefined;
|
|
1752
1907
|
readonly contentStyle?: import("vue").CSSProperties | undefined;
|
|
1908
|
+
readonly destroyOnHide?: boolean | undefined;
|
|
1753
1909
|
readonly onContentMouseenter?: ((e: MouseEvent) => any) | undefined;
|
|
1754
1910
|
readonly onContentMouseleave?: ((e: MouseEvent) => any) | undefined;
|
|
1755
1911
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -1784,6 +1940,7 @@ declare const _default$24: import("vue").DefineComponent<PopoverProps, {
|
|
|
1784
1940
|
visible: boolean | null;
|
|
1785
1941
|
arrow: boolean;
|
|
1786
1942
|
widthEqual: boolean;
|
|
1943
|
+
destroyOnHide: boolean;
|
|
1787
1944
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
1788
1945
|
beforeCreate?: (() => void) | (() => void)[];
|
|
1789
1946
|
created?: (() => void) | (() => void)[];
|
|
@@ -1802,7 +1959,7 @@ declare const _default$24: import("vue").DefineComponent<PopoverProps, {
|
|
|
1802
1959
|
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1803
1960
|
};
|
|
1804
1961
|
$forceUpdate: () => void;
|
|
1805
|
-
$nextTick: typeof nextTick;
|
|
1962
|
+
$nextTick: typeof import("vue").nextTick;
|
|
1806
1963
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [
|
|
1807
1964
|
R,
|
|
1808
1965
|
R,
|
|
@@ -1820,24 +1977,25 @@ declare const _default$24: import("vue").DefineComponent<PopoverProps, {
|
|
|
1820
1977
|
visible: boolean | null;
|
|
1821
1978
|
arrow: boolean;
|
|
1822
1979
|
widthEqual: boolean;
|
|
1980
|
+
destroyOnHide: boolean;
|
|
1823
1981
|
}> & Omit<Readonly<PopupContentProps> & Readonly<{
|
|
1824
1982
|
onContentMouseenter?: ((e: MouseEvent) => any) | undefined;
|
|
1825
1983
|
onContentMouseleave?: ((e: MouseEvent) => any) | undefined;
|
|
1826
|
-
}>, "content" | ("variant" | "placement" | "root" | "offset" | "visible" | "arrow" | "widthEqual"
|
|
1984
|
+
}>, "content" | "updateRenderState" | ("variant" | "placement" | "root" | "offset" | "visible" | "arrow" | "widthEqual" | "destroyOnHide")> & import("vue").ShallowUnwrapRef<{
|
|
1827
1985
|
updateRenderState: () => void;
|
|
1828
1986
|
content: import("vue").ShallowRef<HTMLDivElement | null, HTMLDivElement | null>;
|
|
1829
1987
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
1830
1988
|
$slots: {
|
|
1831
1989
|
content?: (props: {}) => any;
|
|
1832
1990
|
};
|
|
1833
|
-
}) | undefined
|
|
1834
|
-
updateRenderState
|
|
1991
|
+
}) | undefined;
|
|
1992
|
+
updateRenderState(): void;
|
|
1835
1993
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1836
|
-
close: (e: MouseEvent) => any;
|
|
1994
|
+
close: (e: MouseEvent | TouchEvent) => any;
|
|
1837
1995
|
open: (e: MouseEvent) => any;
|
|
1838
1996
|
"update:visible": (value: boolean) => any;
|
|
1839
1997
|
}, string, import("vue").PublicProps, Readonly<PopoverProps> & Readonly<{
|
|
1840
|
-
onClose?: ((e: MouseEvent) => any) | undefined;
|
|
1998
|
+
onClose?: ((e: MouseEvent | TouchEvent) => any) | undefined;
|
|
1841
1999
|
onOpen?: ((e: MouseEvent) => any) | undefined;
|
|
1842
2000
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
1843
2001
|
}>, {
|
|
@@ -1847,9 +2005,10 @@ declare const _default$24: import("vue").DefineComponent<PopoverProps, {
|
|
|
1847
2005
|
offset: number;
|
|
1848
2006
|
visible: boolean | null;
|
|
1849
2007
|
defaultVisible: boolean | null;
|
|
2008
|
+
trigger: "hover" | "click";
|
|
1850
2009
|
arrow: boolean;
|
|
1851
2010
|
widthEqual: boolean;
|
|
1852
|
-
|
|
2011
|
+
destroyOnHide: boolean;
|
|
1853
2012
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1854
2013
|
export type EmptyProps = {
|
|
1855
2014
|
/**
|
|
@@ -1873,13 +2032,43 @@ type __VLS_WithSlots$20<T, S> = T & {
|
|
|
1873
2032
|
$slots: S;
|
|
1874
2033
|
};
|
|
1875
2034
|
};
|
|
1876
|
-
export
|
|
1877
|
-
|
|
2035
|
+
export type VirtualListProps = {
|
|
2036
|
+
/**
|
|
2037
|
+
* @property {{ render: ValidContent; key?: string | number | symbol }[]} [list]
|
|
2038
|
+
* @version 0.0.3
|
|
2039
|
+
*/
|
|
2040
|
+
list?: {
|
|
2041
|
+
render: ValidContent;
|
|
2042
|
+
key?: string | number | symbol;
|
|
2043
|
+
}[];
|
|
2044
|
+
/**
|
|
2045
|
+
* @property {boolean} [fixedHeight=false]
|
|
2046
|
+
* @version 0.0.3
|
|
2047
|
+
*/
|
|
2048
|
+
fixedHeight?: boolean;
|
|
2049
|
+
/**
|
|
2050
|
+
* @property {number} [estimatedHeight=28]
|
|
2051
|
+
* @version 0.0.3
|
|
2052
|
+
*/
|
|
2053
|
+
estimatedHeight?: number;
|
|
2054
|
+
/**
|
|
2055
|
+
* @property {number} [buffer=10]
|
|
2056
|
+
* @version 0.0.3
|
|
2057
|
+
*/
|
|
2058
|
+
buffer?: number;
|
|
2059
|
+
};
|
|
2060
|
+
export interface OptionListOption<T = any> extends Option$1<T> {
|
|
1878
2061
|
disabled?: boolean;
|
|
2062
|
+
key?: string | number | symbol;
|
|
1879
2063
|
}
|
|
1880
|
-
export interface
|
|
2064
|
+
export interface OptionListGroupOption extends GroupOption {
|
|
1881
2065
|
label: string;
|
|
1882
2066
|
key: string | number | symbol;
|
|
2067
|
+
children: (OptionListOption | string)[];
|
|
2068
|
+
}
|
|
2069
|
+
export interface AutoCompleteOption extends OptionListOption<string> {
|
|
2070
|
+
}
|
|
2071
|
+
export interface AutoCompleteGroupOption extends OptionListGroupOption {
|
|
1883
2072
|
children: (AutoCompleteOption | string)[];
|
|
1884
2073
|
}
|
|
1885
2074
|
export type AutoCompleteProps = {
|
|
@@ -1923,6 +2112,16 @@ export type AutoCompleteProps = {
|
|
|
1923
2112
|
* @version 0.0.2
|
|
1924
2113
|
*/
|
|
1925
2114
|
loading?: boolean;
|
|
2115
|
+
/**
|
|
2116
|
+
* @property {'medium' | 'large' | 'small'} [size='medium']
|
|
2117
|
+
* @version 0.0.2
|
|
2118
|
+
*/
|
|
2119
|
+
size?: "medium" | "large" | "small";
|
|
2120
|
+
/**
|
|
2121
|
+
* @property {'rect' | 'round'} [shape='rect']
|
|
2122
|
+
* @version 0.0.3
|
|
2123
|
+
*/
|
|
2124
|
+
shape?: "rect" | "round" | "default";
|
|
1926
2125
|
/**
|
|
1927
2126
|
* @property {boolean} [showPopoverEmpty=false]
|
|
1928
2127
|
* @version 0.0.2
|
|
@@ -1944,15 +2143,15 @@ export type AutoCompleteProps = {
|
|
|
1944
2143
|
*/
|
|
1945
2144
|
append?: boolean;
|
|
1946
2145
|
/**
|
|
1947
|
-
* @property {
|
|
1948
|
-
* @version 0.0.
|
|
2146
|
+
* @property {boolean} [virtualScroll=false]
|
|
2147
|
+
* @version 0.0.3
|
|
1949
2148
|
*/
|
|
1950
|
-
|
|
2149
|
+
virtualScroll?: boolean;
|
|
1951
2150
|
/**
|
|
1952
|
-
* @property {'
|
|
1953
|
-
* @version 0.0.
|
|
2151
|
+
* @property {Omit<VirtualListProps, 'list' | 'fixedHeight'>} [virtualListProps]
|
|
2152
|
+
* @version 0.0.3
|
|
1954
2153
|
*/
|
|
1955
|
-
|
|
2154
|
+
virtualListProps?: Omit<VirtualListProps, "list" | "fixedHeight">;
|
|
1956
2155
|
/**
|
|
1957
2156
|
* @property {NumberOrPercentage | NumberOrPercentage[]} [borderRadius]
|
|
1958
2157
|
* @version 0.0.2
|
|
@@ -1968,39 +2167,63 @@ export type AutoCompleteProps = {
|
|
|
1968
2167
|
* @version 0.0.2
|
|
1969
2168
|
*/
|
|
1970
2169
|
autofocus?: boolean;
|
|
2170
|
+
/**
|
|
2171
|
+
* @property {boolean} [optionsDestroyOnHide=false]
|
|
2172
|
+
* @version 0.0.3
|
|
2173
|
+
*/
|
|
2174
|
+
optionsDestroyOnHide?: boolean;
|
|
1971
2175
|
};
|
|
1972
|
-
|
|
2176
|
+
export type AutoCompleteExpose = {
|
|
2177
|
+
/**
|
|
2178
|
+
* @property {() => void} focus
|
|
2179
|
+
* @version 0.0.2
|
|
2180
|
+
*/
|
|
1973
2181
|
focus: () => void;
|
|
2182
|
+
/**
|
|
2183
|
+
* @property {() => void} blur
|
|
2184
|
+
* @version 0.0.2
|
|
2185
|
+
*/
|
|
1974
2186
|
blur: () => void;
|
|
1975
|
-
|
|
2187
|
+
/**
|
|
2188
|
+
* @property {() => void} clear
|
|
2189
|
+
* @version 0.0.2
|
|
2190
|
+
*/
|
|
2191
|
+
clear: () => void;
|
|
2192
|
+
/**
|
|
2193
|
+
* @property {() => void} select
|
|
2194
|
+
* @version 0.0.2
|
|
2195
|
+
*/
|
|
1976
2196
|
select: () => void;
|
|
2197
|
+
};
|
|
2198
|
+
declare const _default$26: import("vue").DefineComponent<AutoCompleteProps, AutoCompleteExpose & {
|
|
2199
|
+
getElementRendered: () => HTMLDivElement | null;
|
|
1977
2200
|
}, {}, {}, {}, 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
2201
|
clear: (value: string) => any;
|
|
2202
|
+
change: (value: string, e?: Event | undefined) => any;
|
|
1982
2203
|
blur: (e: FocusEvent) => any;
|
|
2204
|
+
input: (value: string, e: Event) => any;
|
|
1983
2205
|
focus: (e: FocusEvent) => any;
|
|
2206
|
+
select: (value: string, option: string | AutoCompleteOption, e: MouseEvent) => any;
|
|
1984
2207
|
"update:modelValue": (value: string) => any;
|
|
1985
2208
|
}, 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
2209
|
onClear?: ((value: string) => any) | undefined;
|
|
2210
|
+
onChange?: ((value: string, e?: Event | undefined) => any) | undefined;
|
|
1990
2211
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
2212
|
+
onInput?: ((value: string, e: Event) => any) | undefined;
|
|
1991
2213
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
2214
|
+
onSelect?: ((value: string, option: string | AutoCompleteOption, e: MouseEvent) => any) | undefined;
|
|
1992
2215
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1993
2216
|
}>, {
|
|
1994
|
-
shape: "default" | "round";
|
|
1995
|
-
size: "medium" | "large" | "small";
|
|
1996
2217
|
disabled: boolean;
|
|
1997
|
-
loading: boolean;
|
|
1998
2218
|
readonly: boolean;
|
|
2219
|
+
loading: boolean;
|
|
1999
2220
|
clearable: boolean;
|
|
2000
2221
|
status: "success" | "warning" | "error" | "normal";
|
|
2001
2222
|
options: (string | AutoCompleteOption | AutoCompleteGroupOption)[];
|
|
2223
|
+
virtualScroll: boolean;
|
|
2002
2224
|
showPopoverEmpty: boolean;
|
|
2003
2225
|
append: boolean;
|
|
2226
|
+
optionsDestroyOnHide: boolean;
|
|
2004
2227
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2005
2228
|
export type MaskProps = {
|
|
2006
2229
|
/**
|
|
@@ -2046,6 +2269,16 @@ export type SpinProps = {
|
|
|
2046
2269
|
* @version 0.0.2
|
|
2047
2270
|
*/
|
|
2048
2271
|
size?: "medium" | "large" | "small" | number;
|
|
2272
|
+
/**
|
|
2273
|
+
* @property {Omit<MaskProps, 'zIndex'>} [maskProps]
|
|
2274
|
+
* @version 0.0.3
|
|
2275
|
+
*/
|
|
2276
|
+
maskProps?: Omit<MaskProps, "zIndex">;
|
|
2277
|
+
/**
|
|
2278
|
+
* @property {number} [zIndex=20]
|
|
2279
|
+
* @version 0.0.2
|
|
2280
|
+
*/
|
|
2281
|
+
zIndex?: number;
|
|
2049
2282
|
/**
|
|
2050
2283
|
* @property {string} [maskColor]
|
|
2051
2284
|
* @version 0.0.2
|
|
@@ -2066,11 +2299,6 @@ export type SpinProps = {
|
|
|
2066
2299
|
* @version 0.0.2
|
|
2067
2300
|
*/
|
|
2068
2301
|
maskGrid?: boolean;
|
|
2069
|
-
/**
|
|
2070
|
-
* @property {number} [zIndex=20]
|
|
2071
|
-
* @version 0.0.2
|
|
2072
|
-
*/
|
|
2073
|
-
zIndex?: number;
|
|
2074
2302
|
};
|
|
2075
2303
|
declare var __VLS_1$18: {}, __VLS_7: {}, __VLS_14: {};
|
|
2076
2304
|
type __VLS_Slots$21 = {} & {
|
|
@@ -2094,13 +2322,9 @@ type __VLS_WithSlots$21<T, S> = T & {
|
|
|
2094
2322
|
$slots: S;
|
|
2095
2323
|
};
|
|
2096
2324
|
};
|
|
2097
|
-
export interface SelectOption extends
|
|
2098
|
-
value: any;
|
|
2099
|
-
disabled?: boolean;
|
|
2325
|
+
export interface SelectOption extends OptionListOption<any> {
|
|
2100
2326
|
}
|
|
2101
|
-
export interface SelectGroupOption extends
|
|
2102
|
-
label: string;
|
|
2103
|
-
key: string | number | symbol;
|
|
2327
|
+
export interface SelectGroupOption extends OptionListGroupOption {
|
|
2104
2328
|
children: (SelectOption | string)[];
|
|
2105
2329
|
}
|
|
2106
2330
|
export type SelectProps = {
|
|
@@ -2185,7 +2409,7 @@ export type SelectProps = {
|
|
|
2185
2409
|
*/
|
|
2186
2410
|
collapseTags?: boolean;
|
|
2187
2411
|
/**
|
|
2188
|
-
* @property {number} [
|
|
2412
|
+
* @property {number} [maxDisplayTags]
|
|
2189
2413
|
* @version 0.0.2
|
|
2190
2414
|
*/
|
|
2191
2415
|
maxDisplayTags?: number;
|
|
@@ -2194,6 +2418,41 @@ export type SelectProps = {
|
|
|
2194
2418
|
* @version 0.0.2
|
|
2195
2419
|
*/
|
|
2196
2420
|
collapseTagsPopover?: boolean;
|
|
2421
|
+
/**
|
|
2422
|
+
* @property {boolean} [virtualScroll=false]
|
|
2423
|
+
* @version 0.0.3
|
|
2424
|
+
*/
|
|
2425
|
+
virtualScroll?: boolean;
|
|
2426
|
+
/**
|
|
2427
|
+
* @property {Omit<VirtualListProps, 'list' | 'fixedHeight'>} [virtualListProps]
|
|
2428
|
+
* @version 0.0.3
|
|
2429
|
+
*/
|
|
2430
|
+
virtualListProps?: Omit<VirtualListProps, "list" | "fixedHeight">;
|
|
2431
|
+
/**
|
|
2432
|
+
* @property {Omit<TagProps, 'size' | 'disabled' | 'closable'> & EmitEvent<TagEvents>} [tagProps]
|
|
2433
|
+
* @version 0.0.3
|
|
2434
|
+
*/
|
|
2435
|
+
tagProps?: Omit<TagProps, "size" | "disabled" | "closable"> & EmitEvent<TagEvents>;
|
|
2436
|
+
/**
|
|
2437
|
+
* @property {'medium' | 'large' | 'small'} [size='medium']
|
|
2438
|
+
* @version 0.0.2
|
|
2439
|
+
*/
|
|
2440
|
+
size?: "medium" | "large" | "small";
|
|
2441
|
+
/**
|
|
2442
|
+
* @property {'rect' | 'round'} [shape='rect']
|
|
2443
|
+
* @version 0.0.3
|
|
2444
|
+
*/
|
|
2445
|
+
shape?: "rect" | "round" | "default";
|
|
2446
|
+
/**
|
|
2447
|
+
* @property {NumberOrPercentage | NumberOrPercentage[]} [borderRadius]
|
|
2448
|
+
* @version 0.0.2
|
|
2449
|
+
*/
|
|
2450
|
+
borderRadius?: NumberOrPercentage | NumberOrPercentage[];
|
|
2451
|
+
/**
|
|
2452
|
+
* @property {'success' | 'warning' | 'error' | 'normal'} [status='normal']
|
|
2453
|
+
* @version 0.0.2
|
|
2454
|
+
*/
|
|
2455
|
+
status?: "success" | "warning" | "error" | "normal";
|
|
2197
2456
|
/**
|
|
2198
2457
|
* @property {'primary' | 'sakura' | 'success' | 'warning' | 'danger' | 'info'} [tagTheme='info']
|
|
2199
2458
|
* @version 0.0.2
|
|
@@ -2210,58 +2469,61 @@ export type SelectProps = {
|
|
|
2210
2469
|
*/
|
|
2211
2470
|
tagColor?: TagProps["color"];
|
|
2212
2471
|
/**
|
|
2213
|
-
* @property {'
|
|
2214
|
-
* @version 0.0.
|
|
2472
|
+
* @property {Omit<PopoverProps, 'visible' | 'content'> & EmitEvent<PopoverEvents>} [popoverProps]
|
|
2473
|
+
* @version 0.0.3
|
|
2215
2474
|
*/
|
|
2216
|
-
|
|
2475
|
+
popoverProps?: Omit<PopoverProps, "visible" | "content"> & EmitEvent<PopoverEvents>;
|
|
2476
|
+
/**
|
|
2477
|
+
* @property {boolean} [optionsDestroyOnHide=false]
|
|
2478
|
+
* @version 0.0.3
|
|
2479
|
+
*/
|
|
2480
|
+
optionsDestroyOnHide?: boolean;
|
|
2481
|
+
};
|
|
2482
|
+
export type SelectExpose = {
|
|
2217
2483
|
/**
|
|
2218
|
-
* @property {
|
|
2484
|
+
* @property {() => void} focus
|
|
2219
2485
|
* @version 0.0.2
|
|
2220
2486
|
*/
|
|
2221
|
-
|
|
2487
|
+
focus: () => void;
|
|
2222
2488
|
/**
|
|
2223
|
-
* @property {
|
|
2489
|
+
* @property {() => void} blur
|
|
2224
2490
|
* @version 0.0.2
|
|
2225
2491
|
*/
|
|
2226
|
-
|
|
2492
|
+
blur: () => void;
|
|
2227
2493
|
/**
|
|
2228
|
-
* @property {
|
|
2494
|
+
* @property {() => void} clear
|
|
2229
2495
|
* @version 0.0.2
|
|
2230
2496
|
*/
|
|
2231
|
-
|
|
2497
|
+
clear: () => void;
|
|
2232
2498
|
};
|
|
2233
|
-
declare const _default$29: import("vue").DefineComponent<SelectProps, {
|
|
2234
|
-
|
|
2235
|
-
blur: () => Promise<void>;
|
|
2236
|
-
clear: () => Promise<void>;
|
|
2499
|
+
declare const _default$29: import("vue").DefineComponent<SelectProps, SelectExpose & {
|
|
2500
|
+
getElementRendered: () => HTMLDivElement | null;
|
|
2237
2501
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2502
|
+
clear: (value: any) => any;
|
|
2503
|
+
change: (value: any) => any;
|
|
2504
|
+
blur: (event: FocusEvent) => any;
|
|
2238
2505
|
input: (value: string, e: Event) => any;
|
|
2506
|
+
focus: (event: FocusEvent) => any;
|
|
2239
2507
|
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
2508
|
"update:modelValue": (value: any) => any;
|
|
2245
2509
|
tagClose: (value: any, e: MouseEvent) => any;
|
|
2246
2510
|
"update:inputValue": (value: string) => any;
|
|
2247
2511
|
inputChange: (value: string, e?: Event | undefined) => any;
|
|
2248
2512
|
}, string, import("vue").PublicProps, Readonly<SelectProps> & Readonly<{
|
|
2513
|
+
onClear?: ((value: any) => any) | undefined;
|
|
2514
|
+
onChange?: ((value: any) => any) | undefined;
|
|
2515
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
2249
2516
|
onInput?: ((value: string, e: Event) => any) | undefined;
|
|
2517
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
2250
2518
|
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
2519
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
2256
2520
|
onTagClose?: ((value: any, e: MouseEvent) => any) | undefined;
|
|
2257
2521
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
|
2258
2522
|
onInputChange?: ((value: string, e?: Event | undefined) => any) | undefined;
|
|
2259
2523
|
}>, {
|
|
2260
|
-
shape: "default" | "round";
|
|
2261
|
-
size: "medium" | "large" | "small";
|
|
2262
2524
|
disabled: boolean;
|
|
2263
|
-
loading: boolean;
|
|
2264
2525
|
readonly: boolean;
|
|
2526
|
+
loading: boolean;
|
|
2265
2527
|
clearable: boolean;
|
|
2266
2528
|
status: "success" | "warning" | "error" | "normal";
|
|
2267
2529
|
options: (string | SelectOption | SelectGroupOption)[];
|
|
@@ -2270,14 +2532,1085 @@ declare const _default$29: import("vue").DefineComponent<SelectProps, {
|
|
|
2270
2532
|
collapseTagsPopover: boolean;
|
|
2271
2533
|
tagTheme: "primary" | "sakura" | "success" | "warning" | "danger" | "info";
|
|
2272
2534
|
tagVariant: "primary" | "plain" | "outline";
|
|
2535
|
+
virtualScroll: boolean;
|
|
2536
|
+
optionsDestroyOnHide: boolean;
|
|
2273
2537
|
filterable: boolean;
|
|
2274
2538
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2539
|
+
declare const _default$30: import("vue").DefineComponent<VirtualListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<VirtualListProps> & Readonly<{}>, {
|
|
2540
|
+
list: {
|
|
2541
|
+
render: ValidContent;
|
|
2542
|
+
key?: string | number | symbol;
|
|
2543
|
+
}[];
|
|
2544
|
+
fixedHeight: boolean;
|
|
2545
|
+
estimatedHeight: number;
|
|
2546
|
+
buffer: number;
|
|
2547
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2548
|
+
export type ImageProps = {
|
|
2549
|
+
/**
|
|
2550
|
+
* @property {string} [src]
|
|
2551
|
+
* @version 0.0.3
|
|
2552
|
+
*/
|
|
2553
|
+
src?: string;
|
|
2554
|
+
/**
|
|
2555
|
+
* @property {string} [srcset]
|
|
2556
|
+
* @version 0.0.3
|
|
2557
|
+
*/
|
|
2558
|
+
srcset?: string;
|
|
2559
|
+
/**
|
|
2560
|
+
* @property {string} [alt]
|
|
2561
|
+
* @version 0.0.3
|
|
2562
|
+
*/
|
|
2563
|
+
alt?: string;
|
|
2564
|
+
/**
|
|
2565
|
+
* @property {'fill' | 'contain' | 'cover' | 'none' | 'scale-down'} [objectFit='fill']
|
|
2566
|
+
* @version 0.0.3
|
|
2567
|
+
*/
|
|
2568
|
+
objectFit?: "fill" | "contain" | "cover" | "none" | "scale-down";
|
|
2569
|
+
/**
|
|
2570
|
+
* @property {'eager' | 'lazy'} [loading='eager']
|
|
2571
|
+
* @version 0.0.3
|
|
2572
|
+
*/
|
|
2573
|
+
loading?: "eager" | "lazy";
|
|
2574
|
+
/**
|
|
2575
|
+
* @property {boolean} [lazy=false]
|
|
2576
|
+
* @version 0.0.3
|
|
2577
|
+
*/
|
|
2578
|
+
lazy?: boolean;
|
|
2579
|
+
/**
|
|
2580
|
+
* @property {HTMLElement | string} [root]
|
|
2581
|
+
* @version 0.0.3
|
|
2582
|
+
*/
|
|
2583
|
+
root?: HTMLElement | string;
|
|
2584
|
+
/**
|
|
2585
|
+
* @property {number | [number, number]} [rootMargin=[100, 200]]
|
|
2586
|
+
* @version 0.0.3
|
|
2587
|
+
*/
|
|
2588
|
+
rootMargin?: number | [
|
|
2589
|
+
number,
|
|
2590
|
+
number
|
|
2591
|
+
];
|
|
2592
|
+
/**
|
|
2593
|
+
* @property {boolean} [previewable=false]
|
|
2594
|
+
* @version 0.0.3
|
|
2595
|
+
*/
|
|
2596
|
+
previewable?: boolean;
|
|
2597
|
+
/**
|
|
2598
|
+
* @property {Omit<MaskProps, 'zIndex'>} [maskProps]
|
|
2599
|
+
* @version 0.0.3
|
|
2600
|
+
*/
|
|
2601
|
+
maskProps?: Omit<MaskProps, "zIndex">;
|
|
2602
|
+
/**
|
|
2603
|
+
* @property {{ zIndex: number, root: HTMLElement | string }} [popupWrapperProps]
|
|
2604
|
+
* @version 0.0.3
|
|
2605
|
+
*/
|
|
2606
|
+
popupWrapperProps?: {
|
|
2607
|
+
zIndex: number;
|
|
2608
|
+
root: HTMLElement | string;
|
|
2609
|
+
};
|
|
2610
|
+
/**
|
|
2611
|
+
* @property {{ maxWidth?: number, maxHeight?: number, margin?: number}} [popupWrapperProps={ margin: 32, maxWidth: Infinity, maxHeight: Infinity }]
|
|
2612
|
+
* @version 0.0.3
|
|
2613
|
+
*/
|
|
2614
|
+
zoomOptions?: {
|
|
2615
|
+
maxWidth?: number;
|
|
2616
|
+
maxHeight?: number;
|
|
2617
|
+
margin?: number;
|
|
2618
|
+
};
|
|
2619
|
+
/**
|
|
2620
|
+
* @property {string} [referrerpolicy='no-referrer']
|
|
2621
|
+
* @version 0.0.3
|
|
2622
|
+
*/
|
|
2623
|
+
referrerpolicy?: string;
|
|
2624
|
+
/**
|
|
2625
|
+
* @property {'anonymous' | 'use-credentials' | ''} [crossorigin='']
|
|
2626
|
+
* @version 0.0.3
|
|
2627
|
+
*/
|
|
2628
|
+
crossorigin?: "anonymous" | "use-credentials" | "";
|
|
2629
|
+
};
|
|
2630
|
+
declare var __VLS_1$19: {}, __VLS_3: {};
|
|
2631
|
+
type __VLS_Slots$22 = {} & {
|
|
2632
|
+
placeholder?: (props: typeof __VLS_1$19) => any;
|
|
2633
|
+
} & {
|
|
2634
|
+
error?: (props: typeof __VLS_3) => any;
|
|
2635
|
+
};
|
|
2636
|
+
declare const __VLS_component$22: import("vue").DefineComponent<ImageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2637
|
+
error: (img: HTMLImageElement, error: string | Event) => any;
|
|
2638
|
+
close: (event: MouseEvent) => any;
|
|
2639
|
+
load: (img: HTMLImageElement, event: Event) => any;
|
|
2640
|
+
loading: (img: HTMLImageElement) => any;
|
|
2641
|
+
preview: (event: MouseEvent) => any;
|
|
2642
|
+
}, string, import("vue").PublicProps, Readonly<ImageProps> & Readonly<{
|
|
2643
|
+
onError?: ((img: HTMLImageElement, error: string | Event) => any) | undefined;
|
|
2644
|
+
onClose?: ((event: MouseEvent) => any) | undefined;
|
|
2645
|
+
onLoad?: ((img: HTMLImageElement, event: Event) => any) | undefined;
|
|
2646
|
+
onLoading?: ((img: HTMLImageElement) => any) | undefined;
|
|
2647
|
+
onPreview?: ((event: MouseEvent) => any) | undefined;
|
|
2648
|
+
}>, {
|
|
2649
|
+
loading: "eager" | "lazy";
|
|
2650
|
+
objectFit: "fill" | "contain" | "cover" | "none" | "scale-down";
|
|
2651
|
+
lazy: boolean;
|
|
2652
|
+
rootMargin: number | [
|
|
2653
|
+
number,
|
|
2654
|
+
number
|
|
2655
|
+
];
|
|
2656
|
+
previewable: boolean;
|
|
2657
|
+
referrerpolicy: string;
|
|
2658
|
+
crossorigin: "anonymous" | "use-credentials" | "";
|
|
2659
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2660
|
+
declare const _default$31: __VLS_WithSlots$22<typeof __VLS_component$22, __VLS_Slots$22>;
|
|
2661
|
+
type __VLS_WithSlots$22<T, S> = T & {
|
|
2662
|
+
new (): {
|
|
2663
|
+
$slots: S;
|
|
2664
|
+
};
|
|
2665
|
+
};
|
|
2666
|
+
export type AvatarProps = {
|
|
2667
|
+
/**
|
|
2668
|
+
* @property {'circle' | 'square''} [shape='circle']
|
|
2669
|
+
* @version 0.0.3
|
|
2670
|
+
*/
|
|
2671
|
+
shape?: "circle" | "square";
|
|
2672
|
+
/**
|
|
2673
|
+
* @property {'medium' | 'large' | 'small' | number} [size='medium']
|
|
2674
|
+
* @version 0.0.3
|
|
2675
|
+
*/
|
|
2676
|
+
size?: "medium" | "large" | "small" | number;
|
|
2677
|
+
/**
|
|
2678
|
+
* @property {boolean} [bordered=false]
|
|
2679
|
+
* @version 0.0.3
|
|
2680
|
+
*/
|
|
2681
|
+
bordered?: boolean;
|
|
2682
|
+
/**
|
|
2683
|
+
* @property {string} [backgroundColor]
|
|
2684
|
+
* @version 0.0.3
|
|
2685
|
+
*/
|
|
2686
|
+
backgroundColor?: string;
|
|
2687
|
+
/**
|
|
2688
|
+
* @property {string} [borderColor]
|
|
2689
|
+
* @version 0.0.3
|
|
2690
|
+
*/
|
|
2691
|
+
borderColor?: string;
|
|
2692
|
+
};
|
|
2693
|
+
declare var __VLS_1$20: {};
|
|
2694
|
+
type __VLS_Slots$23 = {} & {
|
|
2695
|
+
default?: (props: typeof __VLS_1$20) => any;
|
|
2696
|
+
};
|
|
2697
|
+
declare const __VLS_component$23: import("vue").DefineComponent<AvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
|
|
2698
|
+
bordered: boolean;
|
|
2699
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2700
|
+
declare const _default$32: __VLS_WithSlots$23<typeof __VLS_component$23, __VLS_Slots$23>;
|
|
2701
|
+
type __VLS_WithSlots$23<T, S> = T & {
|
|
2702
|
+
new (): {
|
|
2703
|
+
$slots: S;
|
|
2704
|
+
};
|
|
2705
|
+
};
|
|
2706
|
+
export type RuleLevel = "error" | "warning" | "success" | "normal";
|
|
2707
|
+
export type FieldType = "number" | "string" | "boolean" | "array" | "dict" | "function" | "date";
|
|
2708
|
+
export type RuleTrigger = "blur" | "change" | "input";
|
|
2709
|
+
export type FormProps = {
|
|
2710
|
+
/**
|
|
2711
|
+
* @property {Record<number | string, any>} [model]
|
|
2712
|
+
* @version 0.0.3
|
|
2713
|
+
*/
|
|
2714
|
+
model?: Record<number | string, any>;
|
|
2715
|
+
/**
|
|
2716
|
+
* @property {FormInstance} [form]
|
|
2717
|
+
* @version 0.0.3
|
|
2718
|
+
*/
|
|
2719
|
+
form?: UseFormReturn;
|
|
2720
|
+
/**
|
|
2721
|
+
* @property {Record<string, RuleItem | RuleItem[]>} [rules]
|
|
2722
|
+
* @version 0.0.3
|
|
2723
|
+
*/
|
|
2724
|
+
rules?: Record<string, RuleItem | RuleItem[]>;
|
|
2725
|
+
/**
|
|
2726
|
+
* @property {boolean} [disabled=false]
|
|
2727
|
+
* @version 0.0.3
|
|
2728
|
+
*/
|
|
2729
|
+
disabled?: boolean;
|
|
2730
|
+
/**
|
|
2731
|
+
* @property {boolean} [readonly=false]
|
|
2732
|
+
* @version 0.0.3
|
|
2733
|
+
*/
|
|
2734
|
+
readonly?: boolean;
|
|
2735
|
+
/**
|
|
2736
|
+
* @property {'small' | 'medium' | 'large'} [size='medium']
|
|
2737
|
+
* @version 0.0.3
|
|
2738
|
+
*/
|
|
2739
|
+
size?: "small" | "medium" | "large";
|
|
2740
|
+
/**
|
|
2741
|
+
* @property {'left' | 'right' | 'top'} [labelAlign='right']
|
|
2742
|
+
* @version 0.0.3
|
|
2743
|
+
*/
|
|
2744
|
+
labelAlign?: "left" | "right" | "top";
|
|
2745
|
+
/**
|
|
2746
|
+
* @property {boolean} [showAsterisk]
|
|
2747
|
+
* @version 0.0.3
|
|
2748
|
+
*/
|
|
2749
|
+
showAsterisk?: boolean;
|
|
2750
|
+
/**
|
|
2751
|
+
* @property {'left' | 'right' | 'end'} [asteriskPlacement='left']
|
|
2752
|
+
* @version 0.0.3
|
|
2753
|
+
*/
|
|
2754
|
+
asteriskPlacement?: "left" | "right" | "end";
|
|
2755
|
+
/**
|
|
2756
|
+
* @property {boolean} [labelAutoWidth=false]
|
|
2757
|
+
* @version 0.0.3
|
|
2758
|
+
*/
|
|
2759
|
+
labelAutoWidth?: boolean;
|
|
2760
|
+
/**
|
|
2761
|
+
* @property {RowProps} [rowProps]
|
|
2762
|
+
* @version 0.0.3
|
|
2763
|
+
*/
|
|
2764
|
+
rowProps?: RowProps;
|
|
2765
|
+
/**
|
|
2766
|
+
* @property {ColProps} [labelProps]
|
|
2767
|
+
* @version 0.0.3
|
|
2768
|
+
*/
|
|
2769
|
+
labelProps?: ColProps;
|
|
2770
|
+
/**
|
|
2771
|
+
* @property {ColProps} [contentProps]
|
|
2772
|
+
* @version 0.0.3
|
|
2773
|
+
*/
|
|
2774
|
+
contentProps?: ColProps;
|
|
2775
|
+
};
|
|
2776
|
+
export interface UseFormReturn<T extends Record<string | number, any> = Record<string | number, any>> {
|
|
2777
|
+
/**
|
|
2778
|
+
* @property {Ref<Record<string | number, any>>} model
|
|
2779
|
+
* @version 0.0.3
|
|
2780
|
+
*/
|
|
2781
|
+
model: Ref<T>;
|
|
2782
|
+
/**
|
|
2783
|
+
* @property {(field?: string | string[]) => FormValidateResult} validate
|
|
2784
|
+
* @version 0.0.3
|
|
2785
|
+
*/
|
|
2786
|
+
validate: (field?: string | string[]) => FormValidateResult;
|
|
2787
|
+
/**
|
|
2788
|
+
* @property {(field?: string | string[]) => void} reset
|
|
2789
|
+
* @version 0.0.3
|
|
2790
|
+
*/
|
|
2791
|
+
reset: (field?: string | string[]) => void;
|
|
2792
|
+
/**
|
|
2793
|
+
* @property {(field?: string | string[]) => void} clearValidation
|
|
2794
|
+
* @version 0.0.3
|
|
2795
|
+
*/
|
|
2796
|
+
clearValidation: (field?: string | string[]) => void;
|
|
2797
|
+
/**
|
|
2798
|
+
* @ignore
|
|
2799
|
+
*/
|
|
2800
|
+
register: (registerOptions: UseFormRegisterOptions) => void;
|
|
2801
|
+
}
|
|
2802
|
+
export type FormValidateResult = Promise<{
|
|
2803
|
+
isValid: boolean;
|
|
2804
|
+
results: Record<string, PromiseSettledResult<{
|
|
2805
|
+
message: string;
|
|
2806
|
+
level: RuleLevel;
|
|
2807
|
+
}>>;
|
|
2808
|
+
}>;
|
|
2809
|
+
export type FormExpose = {
|
|
2810
|
+
/**
|
|
2811
|
+
* @property {(field?: string | string[]) => FormValidateResult} validate
|
|
2812
|
+
* @version 0.0.3
|
|
2813
|
+
*/
|
|
2814
|
+
validate: (field?: string | string[]) => FormValidateResult;
|
|
2815
|
+
/**
|
|
2816
|
+
* @property {(field?: string | string[]) => void} reset
|
|
2817
|
+
* @version 0.0.3
|
|
2818
|
+
*/
|
|
2819
|
+
reset: (field?: string | string[]) => void;
|
|
2820
|
+
/**
|
|
2821
|
+
* @property {(field?: string | string[]) => void} clearValidation
|
|
2822
|
+
* @version 0.0.3
|
|
2823
|
+
*/
|
|
2824
|
+
clearValidation: (field?: string | string[]) => void;
|
|
2825
|
+
};
|
|
2826
|
+
export type RuleItem = {
|
|
2827
|
+
/**
|
|
2828
|
+
* @property {boolean} [required=false]
|
|
2829
|
+
* @version 0.0.3
|
|
2830
|
+
*/
|
|
2831
|
+
required?: boolean;
|
|
2832
|
+
/**
|
|
2833
|
+
* @property {string} [message]
|
|
2834
|
+
* @version 0.0.3
|
|
2835
|
+
*/
|
|
2836
|
+
message?: string;
|
|
2837
|
+
/**
|
|
2838
|
+
* @property {RuleTrigger | RuleTrigger[]} [trigger=['change', 'blur']]
|
|
2839
|
+
* @version 0.0.3
|
|
2840
|
+
*/
|
|
2841
|
+
trigger?: RuleTrigger | RuleTrigger[];
|
|
2842
|
+
/**
|
|
2843
|
+
* @property {FieldType | FieldType[]} [type]
|
|
2844
|
+
* @version 0.0.3
|
|
2845
|
+
*/
|
|
2846
|
+
type?: FieldType | FieldType[];
|
|
2847
|
+
/**
|
|
2848
|
+
* @property {number} [max]
|
|
2849
|
+
* @version 0.0.3
|
|
2850
|
+
*/
|
|
2851
|
+
max?: number;
|
|
2852
|
+
/**
|
|
2853
|
+
* @property {number} [min]
|
|
2854
|
+
* @version 0.0.3
|
|
2855
|
+
*/
|
|
2856
|
+
min?: number;
|
|
2857
|
+
/**
|
|
2858
|
+
* @property {number} [maxLength]
|
|
2859
|
+
* @version 0.0.3
|
|
2860
|
+
*/
|
|
2861
|
+
maxLength?: number;
|
|
2862
|
+
/**
|
|
2863
|
+
* @property {number} [minLength]
|
|
2864
|
+
* @version 0.0.3
|
|
2865
|
+
*/
|
|
2866
|
+
minLength?: number;
|
|
2867
|
+
/**
|
|
2868
|
+
* @property {boolean} [email=false]
|
|
2869
|
+
* @version 0.0.3
|
|
2870
|
+
*/
|
|
2871
|
+
email?: boolean;
|
|
2872
|
+
/**
|
|
2873
|
+
* @property {boolean} [url=false]
|
|
2874
|
+
* @version 0.0.3
|
|
2875
|
+
*/
|
|
2876
|
+
url?: boolean;
|
|
2877
|
+
/**
|
|
2878
|
+
* @property {boolean} [numberString=false]
|
|
2879
|
+
* @version 0.0.3
|
|
2880
|
+
*/
|
|
2881
|
+
numberString?: boolean;
|
|
2882
|
+
/**
|
|
2883
|
+
* @property {RuleLevel} [level='error']
|
|
2884
|
+
* @version 0.0.3
|
|
2885
|
+
*/
|
|
2886
|
+
level?: RuleLevel;
|
|
2887
|
+
/**
|
|
2888
|
+
* @property {(value: any, model: Record<number | string, any>) => string | void | Promise<void | string>} [validator]
|
|
2889
|
+
* @version 0.0.3
|
|
2890
|
+
*/
|
|
2891
|
+
validator?: (value: any, model: Record<number | string, any>) => string | void | Promise<void | string>;
|
|
2892
|
+
};
|
|
2893
|
+
export type UseFormRegisterOptions = {
|
|
2894
|
+
validate: (field?: string | string[]) => FormValidateResult;
|
|
2895
|
+
clearValidation: (field?: string | string[]) => void;
|
|
2896
|
+
};
|
|
2897
|
+
declare var __VLS_1$21: {};
|
|
2898
|
+
type __VLS_Slots$24 = {} & {
|
|
2899
|
+
default?: (props: typeof __VLS_1$21) => any;
|
|
2900
|
+
};
|
|
2901
|
+
declare const __VLS_component$24: import("vue").DefineComponent<FormProps, FormExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2902
|
+
submit: (form: Record<string | number, any>, event: Event) => any;
|
|
2903
|
+
reset: (form: Record<string | number, any>, event: Event) => any;
|
|
2904
|
+
}, string, import("vue").PublicProps, Readonly<FormProps> & Readonly<{
|
|
2905
|
+
onSubmit?: ((form: Record<string | number, any>, event: Event) => any) | undefined;
|
|
2906
|
+
onReset?: ((form: Record<string | number, any>, event: Event) => any) | undefined;
|
|
2907
|
+
}>, {
|
|
2908
|
+
size: "small" | "medium" | "large";
|
|
2909
|
+
disabled: boolean;
|
|
2910
|
+
readonly: boolean;
|
|
2911
|
+
labelAlign: "left" | "right" | "top";
|
|
2912
|
+
showAsterisk: boolean;
|
|
2913
|
+
asteriskPlacement: "left" | "right" | "end";
|
|
2914
|
+
labelAutoWidth: boolean;
|
|
2915
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2916
|
+
declare const _default$33: __VLS_WithSlots$24<typeof __VLS_component$24, __VLS_Slots$24>;
|
|
2917
|
+
type __VLS_WithSlots$24<T, S> = T & {
|
|
2918
|
+
new (): {
|
|
2919
|
+
$slots: S;
|
|
2920
|
+
};
|
|
2921
|
+
};
|
|
2922
|
+
export type FormItemProps = {
|
|
2923
|
+
/**
|
|
2924
|
+
* @property {string} [field]
|
|
2925
|
+
* @version 0.0.3
|
|
2926
|
+
*/
|
|
2927
|
+
field?: string;
|
|
2928
|
+
/**
|
|
2929
|
+
* @property {string} [label]
|
|
2930
|
+
* @version 0.0.3
|
|
2931
|
+
*/
|
|
2932
|
+
label?: string;
|
|
2933
|
+
/**
|
|
2934
|
+
* @property {RuleItem | RuleItem[]} [rule]
|
|
2935
|
+
* @version 0.0.3
|
|
2936
|
+
*/
|
|
2937
|
+
rule?: RuleItem | RuleItem[];
|
|
2938
|
+
/**
|
|
2939
|
+
* @property {boolean} [disabled]
|
|
2940
|
+
* @version 0.0.3
|
|
2941
|
+
*/
|
|
2942
|
+
disabled?: boolean;
|
|
2943
|
+
/**
|
|
2944
|
+
* @property {boolean} [readonly]
|
|
2945
|
+
* @version 0.0.3
|
|
2946
|
+
*/
|
|
2947
|
+
readonly?: boolean;
|
|
2948
|
+
/**
|
|
2949
|
+
* @property {'left' | 'right' | 'top'} [labelAlign]
|
|
2950
|
+
* @version 0.0.3
|
|
2951
|
+
*/
|
|
2952
|
+
labelAlign?: "left" | "right" | "top";
|
|
2953
|
+
/**
|
|
2954
|
+
* @property {boolean} [showAsterisk]
|
|
2955
|
+
* @version 0.0.3
|
|
2956
|
+
*/
|
|
2957
|
+
showAsterisk?: boolean;
|
|
2958
|
+
/**
|
|
2959
|
+
* @property {'left' | 'right' | 'end'} [asteriskPlacement]
|
|
2960
|
+
* @version 0.0.3
|
|
2961
|
+
*/
|
|
2962
|
+
asteriskPlacement?: "left" | "right" | "end";
|
|
2963
|
+
/**
|
|
2964
|
+
* @property {RowProps} [rowProps]
|
|
2965
|
+
* @version 0.0.3
|
|
2966
|
+
*/
|
|
2967
|
+
rowProps?: RowProps;
|
|
2968
|
+
/**
|
|
2969
|
+
* @property {ColProps} [labelProps]
|
|
2970
|
+
* @version 0.0.3
|
|
2971
|
+
*/
|
|
2972
|
+
labelProps?: ColProps;
|
|
2973
|
+
/**
|
|
2974
|
+
* @property {ColProps} [contentProps]
|
|
2975
|
+
* @version 0.0.3
|
|
2976
|
+
*/
|
|
2977
|
+
contentProps?: ColProps;
|
|
2978
|
+
};
|
|
2979
|
+
declare var __VLS_10$1: {}, __VLS_16$1: {}, __VLS_18: {
|
|
2980
|
+
message: string;
|
|
2981
|
+
level: RuleLevel;
|
|
2982
|
+
}, __VLS_20: {};
|
|
2983
|
+
type __VLS_Slots$25 = {} & {
|
|
2984
|
+
label?: (props: typeof __VLS_10$1) => any;
|
|
2985
|
+
} & {
|
|
2986
|
+
default?: (props: typeof __VLS_16$1) => any;
|
|
2987
|
+
} & {
|
|
2988
|
+
tip?: (props: typeof __VLS_18) => any;
|
|
2989
|
+
} & {
|
|
2990
|
+
extra?: (props: typeof __VLS_20) => any;
|
|
2991
|
+
};
|
|
2992
|
+
declare const __VLS_component$25: import("vue").DefineComponent<FormItemProps, {
|
|
2993
|
+
validate: (trigger?: RuleTrigger) => Promise<{
|
|
2994
|
+
message: string;
|
|
2995
|
+
level: RuleLevel;
|
|
2996
|
+
}>;
|
|
2997
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FormItemProps> & Readonly<{}>, {
|
|
2998
|
+
disabled: boolean;
|
|
2999
|
+
readonly: boolean;
|
|
3000
|
+
labelAlign: "left" | "right" | "top";
|
|
3001
|
+
showAsterisk: boolean;
|
|
3002
|
+
asteriskPlacement: "left" | "right" | "end";
|
|
3003
|
+
rowProps: RowProps;
|
|
3004
|
+
labelProps: ColProps;
|
|
3005
|
+
contentProps: ColProps;
|
|
3006
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3007
|
+
declare const _default$34: __VLS_WithSlots$25<typeof __VLS_component$25, __VLS_Slots$25>;
|
|
3008
|
+
type __VLS_WithSlots$25<T, S> = T & {
|
|
3009
|
+
new (): {
|
|
3010
|
+
$slots: S;
|
|
3011
|
+
};
|
|
3012
|
+
};
|
|
3013
|
+
export interface PixelateOptions {
|
|
3014
|
+
palette?: string[];
|
|
3015
|
+
background?: string;
|
|
3016
|
+
}
|
|
3017
|
+
export declare function pixelateImage(imageSource: HTMLImageElement | string, pixelSize: number, options?: PixelateOptions, onProgress?: (progress: number) => void): Promise<ImageData | null>;
|
|
3018
|
+
export declare function imageDataToDataURL(imageData: ImageData): string;
|
|
3019
|
+
export type SwitchProps = {
|
|
3020
|
+
/**
|
|
3021
|
+
* @property {boolean | null} [modelValue=undefined]
|
|
3022
|
+
* @version 0.0.3
|
|
3023
|
+
*/
|
|
3024
|
+
modelValue?: boolean | null;
|
|
3025
|
+
/**
|
|
3026
|
+
* @property {boolean | null} [defaultValue=undefined]
|
|
3027
|
+
* @version 0.0.3
|
|
3028
|
+
*/
|
|
3029
|
+
defaultValue?: boolean | null;
|
|
3030
|
+
/**
|
|
3031
|
+
* @property {'round' | 'rect'} [shape='round']
|
|
3032
|
+
* @version 0.0.3
|
|
3033
|
+
*/
|
|
3034
|
+
shape?: "round" | "rect" | "default";
|
|
3035
|
+
/**
|
|
3036
|
+
* @property {'small' | 'medium' | 'large'} [size='medium']
|
|
3037
|
+
* @version 0.0.3
|
|
3038
|
+
*/
|
|
3039
|
+
size?: "small" | "medium" | "large";
|
|
3040
|
+
/**
|
|
3041
|
+
* @property {boolean} [readonly=false]
|
|
3042
|
+
* @version 0.0.3
|
|
3043
|
+
*/
|
|
3044
|
+
readonly?: boolean;
|
|
3045
|
+
/**
|
|
3046
|
+
* @property {boolean} [disabled=false]
|
|
3047
|
+
* @version 0.0.3
|
|
3048
|
+
*/
|
|
3049
|
+
disabled?: boolean;
|
|
3050
|
+
/**
|
|
3051
|
+
* @property {boolean} [loading=false]
|
|
3052
|
+
* @version 0.0.3
|
|
3053
|
+
*/
|
|
3054
|
+
loading?: boolean;
|
|
3055
|
+
/**
|
|
3056
|
+
* @property {string} [activeTip]
|
|
3057
|
+
* @version 0.0.3
|
|
3058
|
+
*/
|
|
3059
|
+
activeTip?: string;
|
|
3060
|
+
/**
|
|
3061
|
+
* @property {string} [inactiveTip]
|
|
3062
|
+
* @version 0.0.3
|
|
3063
|
+
*/
|
|
3064
|
+
inactiveTip?: string;
|
|
3065
|
+
/**
|
|
3066
|
+
* @property {string} [activeLabel]
|
|
3067
|
+
* @version 0.0.3
|
|
3068
|
+
*/
|
|
3069
|
+
activeLabel?: string;
|
|
3070
|
+
/**
|
|
3071
|
+
* @property {string} [inactiveLabel]
|
|
3072
|
+
* @version 0.0.3
|
|
3073
|
+
*/
|
|
3074
|
+
inactiveLabel?: string;
|
|
3075
|
+
/**
|
|
3076
|
+
* @property {string} [activeColor]
|
|
3077
|
+
* @version 0.0.3
|
|
3078
|
+
*/
|
|
3079
|
+
activeColor?: string;
|
|
3080
|
+
/**
|
|
3081
|
+
* @property {string} [inactiveColor]
|
|
3082
|
+
* @version 0.0.3
|
|
3083
|
+
*/
|
|
3084
|
+
inactiveColor?: string;
|
|
3085
|
+
};
|
|
3086
|
+
declare var __VLS_1$22: {}, __VLS_3$1: {}, __VLS_5: {}, __VLS_12: {}, __VLS_14$1: {}, __VLS_16$2: {};
|
|
3087
|
+
type __VLS_Slots$26 = {} & {
|
|
3088
|
+
"inactive-label"?: (props: typeof __VLS_1$22) => any;
|
|
3089
|
+
} & {
|
|
3090
|
+
"active-tip"?: (props: typeof __VLS_3$1) => any;
|
|
3091
|
+
} & {
|
|
3092
|
+
"inactive-tip"?: (props: typeof __VLS_5) => any;
|
|
3093
|
+
} & {
|
|
3094
|
+
"active-icon"?: (props: typeof __VLS_12) => any;
|
|
3095
|
+
} & {
|
|
3096
|
+
"inactive-icon"?: (props: typeof __VLS_14$1) => any;
|
|
3097
|
+
} & {
|
|
3098
|
+
"active-label"?: (props: typeof __VLS_16$2) => any;
|
|
3099
|
+
};
|
|
3100
|
+
declare const __VLS_component$26: import("vue").DefineComponent<SwitchProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3101
|
+
change: (value: boolean, event: Event) => any;
|
|
3102
|
+
blur: (event: FocusEvent) => any;
|
|
3103
|
+
input: (value: boolean, event: InputEvent) => any;
|
|
3104
|
+
focus: (event: FocusEvent) => any;
|
|
3105
|
+
"update:modelValue": (value: boolean) => any;
|
|
3106
|
+
}, string, import("vue").PublicProps, Readonly<SwitchProps> & Readonly<{
|
|
3107
|
+
onChange?: ((value: boolean, event: Event) => any) | undefined;
|
|
3108
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
3109
|
+
onInput?: ((value: boolean, event: InputEvent) => any) | undefined;
|
|
3110
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
3111
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
3112
|
+
}>, {
|
|
3113
|
+
disabled: boolean;
|
|
3114
|
+
readonly: boolean;
|
|
3115
|
+
shape: "round" | "rect" | "default";
|
|
3116
|
+
loading: boolean;
|
|
3117
|
+
modelValue: boolean | null;
|
|
3118
|
+
defaultValue: boolean | null;
|
|
3119
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3120
|
+
declare const _default$35: __VLS_WithSlots$26<typeof __VLS_component$26, __VLS_Slots$26>;
|
|
3121
|
+
type __VLS_WithSlots$26<T, S> = T & {
|
|
3122
|
+
new (): {
|
|
3123
|
+
$slots: S;
|
|
3124
|
+
};
|
|
3125
|
+
};
|
|
3126
|
+
export type SliderProps = {
|
|
3127
|
+
/**
|
|
3128
|
+
* @property {number | [number, number] | null} [modelValue]
|
|
3129
|
+
* @version 0.0.3
|
|
3130
|
+
*/
|
|
3131
|
+
modelValue?: number | [
|
|
3132
|
+
number,
|
|
3133
|
+
number
|
|
3134
|
+
] | null;
|
|
3135
|
+
/**
|
|
3136
|
+
* @property {number | [number, number] | null} [defaultValue]
|
|
3137
|
+
* @version 0.0.3
|
|
3138
|
+
*/
|
|
3139
|
+
defaultValue?: number | [
|
|
3140
|
+
number,
|
|
3141
|
+
number
|
|
3142
|
+
] | null;
|
|
3143
|
+
/**
|
|
3144
|
+
* @property {number} [min=0]
|
|
3145
|
+
* @version 0.0.3
|
|
3146
|
+
*/
|
|
3147
|
+
min?: number;
|
|
3148
|
+
/**
|
|
3149
|
+
* @property {number} [max=100]
|
|
3150
|
+
* @version 0.0.3
|
|
3151
|
+
*/
|
|
3152
|
+
max?: number;
|
|
3153
|
+
/**
|
|
3154
|
+
* @property {boolean} [range=false]
|
|
3155
|
+
* @version 0.0.3
|
|
3156
|
+
*/
|
|
3157
|
+
range?: boolean;
|
|
3158
|
+
/**
|
|
3159
|
+
* @property {boolean} [disabled=false]
|
|
3160
|
+
* @version 0.0.3
|
|
3161
|
+
*/
|
|
3162
|
+
disabled?: boolean;
|
|
3163
|
+
/**
|
|
3164
|
+
* @property {boolean} [readonly=false]
|
|
3165
|
+
* @version 0.0.3
|
|
3166
|
+
*/
|
|
3167
|
+
readonly?: boolean;
|
|
3168
|
+
/**
|
|
3169
|
+
* @property {number | 'mark'} [step=1]
|
|
3170
|
+
* @version 0.0.3
|
|
3171
|
+
*/
|
|
3172
|
+
step?: number | "mark";
|
|
3173
|
+
/**
|
|
3174
|
+
* @property {(number | { value: number; label?: string })[]} [marks]
|
|
3175
|
+
* @version 0.0.3
|
|
3176
|
+
*/
|
|
3177
|
+
marks?: (number | {
|
|
3178
|
+
value: number;
|
|
3179
|
+
label?: string;
|
|
3180
|
+
})[];
|
|
3181
|
+
/**
|
|
3182
|
+
* @property {'horizontal' | 'vertical'} [direction='horizontal']
|
|
3183
|
+
* @version 0.0.3
|
|
3184
|
+
*/
|
|
3185
|
+
direction?: "horizontal" | "vertical";
|
|
3186
|
+
/**
|
|
3187
|
+
* @property {boolean} [reverse=false]
|
|
3188
|
+
* @version 0.0.3
|
|
3189
|
+
*/
|
|
3190
|
+
reverse?: boolean;
|
|
3191
|
+
/**
|
|
3192
|
+
* @property {number | null} [precision=8]
|
|
3193
|
+
* @version 0.0.3
|
|
3194
|
+
*/
|
|
3195
|
+
precision?: number | null;
|
|
3196
|
+
/**
|
|
3197
|
+
* @property {boolean} [tooltip=true]
|
|
3198
|
+
* @version 0.0.3
|
|
3199
|
+
*/
|
|
3200
|
+
tooltip?: boolean;
|
|
3201
|
+
/**
|
|
3202
|
+
* @property {Omit<TooltipProps, 'visible' | 'content'> & EmitEvent<TooltipEvents>} [tooltipProps]
|
|
3203
|
+
* @version 0.0.3
|
|
3204
|
+
*/
|
|
3205
|
+
tooltipProps?: Omit<TooltipProps, "visible" | "content"> & EmitEvent<TooltipEvents>;
|
|
3206
|
+
/**
|
|
3207
|
+
* @property {Omit<TooltipProps, 'visible' | 'content'> & EmitEvent<TooltipEvents>} [tooltipStartProps]
|
|
3208
|
+
* @version 0.0.3
|
|
3209
|
+
*/
|
|
3210
|
+
tooltipStartProps?: Omit<TooltipProps, "visible" | "content"> & EmitEvent<TooltipEvents>;
|
|
3211
|
+
/**
|
|
3212
|
+
* @property {Omit<TooltipProps, 'visible' | 'content'> & EmitEvent<TooltipEvents>} [tooltipEndProps]
|
|
3213
|
+
* @version 0.0.3
|
|
3214
|
+
*/
|
|
3215
|
+
tooltipEndProps?: Omit<TooltipProps, "visible" | "content"> & EmitEvent<TooltipEvents>;
|
|
3216
|
+
};
|
|
3217
|
+
declare var __VLS_1$23: {
|
|
3218
|
+
value: number;
|
|
3219
|
+
label: string | undefined;
|
|
3220
|
+
}, __VLS_7$1: {}, __VLS_10$2: {
|
|
3221
|
+
value: number | null | undefined;
|
|
3222
|
+
}, __VLS_12$1: {}, __VLS_18$1: {}, __VLS_21: {
|
|
3223
|
+
value: number | null | undefined;
|
|
3224
|
+
}, __VLS_23: {}, __VLS_29: {}, __VLS_32: {
|
|
3225
|
+
value: number | null | undefined;
|
|
3226
|
+
}, __VLS_34$1: {};
|
|
3227
|
+
type __VLS_Slots$27 = {} & {
|
|
3228
|
+
mark?: (props: typeof __VLS_1$23) => any;
|
|
3229
|
+
} & {
|
|
3230
|
+
thumb?: (props: typeof __VLS_7$1) => any;
|
|
3231
|
+
} & {
|
|
3232
|
+
"tooltip-content"?: (props: typeof __VLS_10$2) => any;
|
|
3233
|
+
} & {
|
|
3234
|
+
thumb?: (props: typeof __VLS_12$1) => any;
|
|
3235
|
+
} & {
|
|
3236
|
+
"thumb-start"?: (props: typeof __VLS_18$1) => any;
|
|
3237
|
+
} & {
|
|
3238
|
+
"tooltip-content"?: (props: typeof __VLS_21) => any;
|
|
3239
|
+
} & {
|
|
3240
|
+
"thumb-start"?: (props: typeof __VLS_23) => any;
|
|
3241
|
+
} & {
|
|
3242
|
+
"thumb-end"?: (props: typeof __VLS_29) => any;
|
|
3243
|
+
} & {
|
|
3244
|
+
"tooltip-content"?: (props: typeof __VLS_32) => any;
|
|
3245
|
+
} & {
|
|
3246
|
+
"thumb-end"?: (props: typeof __VLS_34$1) => any;
|
|
3247
|
+
};
|
|
3248
|
+
declare const __VLS_component$27: import("vue").DefineComponent<SliderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3249
|
+
change: (value: number | [
|
|
3250
|
+
number,
|
|
3251
|
+
number
|
|
3252
|
+
]) => any;
|
|
3253
|
+
blur: (event: FocusEvent) => any;
|
|
3254
|
+
focus: (event: FocusEvent) => any;
|
|
3255
|
+
"update:modelValue": (value: number | [
|
|
3256
|
+
number,
|
|
3257
|
+
number
|
|
3258
|
+
]) => any;
|
|
3259
|
+
dragStart: (event: MouseEvent | TouchEvent) => any;
|
|
3260
|
+
dragEnd: (event: MouseEvent | TouchEvent) => any;
|
|
3261
|
+
markSelect: (value: number, event: MouseEvent) => any;
|
|
3262
|
+
}, string, import("vue").PublicProps, Readonly<SliderProps> & Readonly<{
|
|
3263
|
+
onChange?: ((value: number | [
|
|
3264
|
+
number,
|
|
3265
|
+
number
|
|
3266
|
+
]) => any) | undefined;
|
|
3267
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
3268
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
3269
|
+
"onUpdate:modelValue"?: ((value: number | [
|
|
3270
|
+
number,
|
|
3271
|
+
number
|
|
3272
|
+
]) => any) | undefined;
|
|
3273
|
+
onDragStart?: ((event: MouseEvent | TouchEvent) => any) | undefined;
|
|
3274
|
+
onDragEnd?: ((event: MouseEvent | TouchEvent) => any) | undefined;
|
|
3275
|
+
onMarkSelect?: ((value: number, event: MouseEvent) => any) | undefined;
|
|
3276
|
+
}>, {
|
|
3277
|
+
reverse: boolean;
|
|
3278
|
+
disabled: boolean;
|
|
3279
|
+
direction: "horizontal" | "vertical";
|
|
3280
|
+
range: boolean;
|
|
3281
|
+
max: number;
|
|
3282
|
+
min: number;
|
|
3283
|
+
step: number | "mark";
|
|
3284
|
+
precision: number | null;
|
|
3285
|
+
tooltip: boolean;
|
|
3286
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3287
|
+
declare const _default$36: __VLS_WithSlots$27<typeof __VLS_component$27, __VLS_Slots$27>;
|
|
3288
|
+
type __VLS_WithSlots$27<T, S> = T & {
|
|
3289
|
+
new (): {
|
|
3290
|
+
$slots: S;
|
|
3291
|
+
};
|
|
3292
|
+
};
|
|
3293
|
+
export type RadioProps = {
|
|
3294
|
+
/**
|
|
3295
|
+
* @property {boolean | null} [modelValue]
|
|
3296
|
+
* @version 0.0.3
|
|
3297
|
+
*/
|
|
3298
|
+
modelValue?: boolean | null;
|
|
3299
|
+
/**
|
|
3300
|
+
* @property {boolean | null} [defaultValue]
|
|
3301
|
+
* @version 0.0.3
|
|
3302
|
+
*/
|
|
3303
|
+
defaultValue?: boolean | null;
|
|
3304
|
+
/**
|
|
3305
|
+
* @property {'normal' | 'retro'} [variant='normal']
|
|
3306
|
+
* @version 0.0.3
|
|
3307
|
+
*/
|
|
3308
|
+
variant?: "normal" | "retro";
|
|
3309
|
+
/**
|
|
3310
|
+
* @property {boolean} [disabled=false]
|
|
3311
|
+
* @version 0.0.3
|
|
3312
|
+
*/
|
|
3313
|
+
disabled?: boolean;
|
|
3314
|
+
/**
|
|
3315
|
+
* @property {boolean} [readonly=false]
|
|
3316
|
+
* @version 0.0.3
|
|
3317
|
+
*/
|
|
3318
|
+
readonly?: boolean;
|
|
3319
|
+
/**
|
|
3320
|
+
* @property {string} [label]
|
|
3321
|
+
* @version 0.0.3
|
|
3322
|
+
*/
|
|
3323
|
+
label?: string;
|
|
3324
|
+
/**
|
|
3325
|
+
* @property {any} [value]
|
|
3326
|
+
* @version 0.0.3
|
|
3327
|
+
*/
|
|
3328
|
+
value?: any;
|
|
3329
|
+
/**
|
|
3330
|
+
* @property {'medium' | 'large' | 'small'} [size='medium']
|
|
3331
|
+
* @version 0.0.3
|
|
3332
|
+
*/
|
|
3333
|
+
size?: "medium" | "large" | "small";
|
|
3334
|
+
};
|
|
3335
|
+
declare var __VLS_1$24: {};
|
|
3336
|
+
type __VLS_Slots$28 = {} & {
|
|
3337
|
+
default?: (props: typeof __VLS_1$24) => any;
|
|
3338
|
+
};
|
|
3339
|
+
declare const __VLS_component$28: import("vue").DefineComponent<RadioProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3340
|
+
change: (value: boolean, event: Event) => any;
|
|
3341
|
+
blur: (event: FocusEvent) => any;
|
|
3342
|
+
input: (value: boolean, event: InputEvent) => any;
|
|
3343
|
+
focus: (event: FocusEvent) => any;
|
|
3344
|
+
"update:modelValue": (value: boolean) => any;
|
|
3345
|
+
}, string, import("vue").PublicProps, Readonly<RadioProps> & Readonly<{
|
|
3346
|
+
onChange?: ((value: boolean, event: Event) => any) | undefined;
|
|
3347
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
3348
|
+
onInput?: ((value: boolean, event: InputEvent) => any) | undefined;
|
|
3349
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
3350
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
3351
|
+
}>, {
|
|
3352
|
+
disabled: boolean;
|
|
3353
|
+
readonly: boolean;
|
|
3354
|
+
modelValue: boolean | null;
|
|
3355
|
+
defaultValue: boolean | null;
|
|
3356
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3357
|
+
declare const _default$37: __VLS_WithSlots$28<typeof __VLS_component$28, __VLS_Slots$28>;
|
|
3358
|
+
type __VLS_WithSlots$28<T, S> = T & {
|
|
3359
|
+
new (): {
|
|
3360
|
+
$slots: S;
|
|
3361
|
+
};
|
|
3362
|
+
};
|
|
3363
|
+
export interface RadioGroupOption<T = any> extends Option$1<T> {
|
|
3364
|
+
disabled?: boolean;
|
|
3365
|
+
key?: string | number | symbol;
|
|
3366
|
+
}
|
|
3367
|
+
export type RadioGroupProps = {
|
|
3368
|
+
/**
|
|
3369
|
+
* @property {any} [modelValue]
|
|
3370
|
+
* @version 0.0.3
|
|
3371
|
+
*/
|
|
3372
|
+
modelValue?: any;
|
|
3373
|
+
/**
|
|
3374
|
+
* @property {any} [defaultValue]
|
|
3375
|
+
* @version 0.0.3
|
|
3376
|
+
*/
|
|
3377
|
+
defaultValue?: any;
|
|
3378
|
+
/**
|
|
3379
|
+
* @property {'normal' | 'retro'} [variant]
|
|
3380
|
+
* @version 0.0.3
|
|
3381
|
+
*/
|
|
3382
|
+
variant?: "normal" | "retro";
|
|
3383
|
+
/**
|
|
3384
|
+
* @property {boolean} [disabled=false]
|
|
3385
|
+
* @version 0.0.3
|
|
3386
|
+
*/
|
|
3387
|
+
disabled?: boolean;
|
|
3388
|
+
/**
|
|
3389
|
+
* @property {boolean} [readonly=false]
|
|
3390
|
+
* @version 0.0.3
|
|
3391
|
+
*/
|
|
3392
|
+
readonly?: boolean;
|
|
3393
|
+
/**
|
|
3394
|
+
* @property {'horizontal' | 'vertical'} [direction='horizontal']
|
|
3395
|
+
* @version 0.0.3
|
|
3396
|
+
*/
|
|
3397
|
+
direction?: "horizontal" | "vertical";
|
|
3398
|
+
/**
|
|
3399
|
+
* @property {(RadioGroupOption | string)[]} [options]
|
|
3400
|
+
* @version 0.0.3
|
|
3401
|
+
*/
|
|
3402
|
+
options?: (RadioGroupOption | string)[];
|
|
3403
|
+
/**
|
|
3404
|
+
* @property {'medium' | 'large' | 'small'} [size]
|
|
3405
|
+
* @version 0.0.3
|
|
3406
|
+
*/
|
|
3407
|
+
size?: "medium" | "large" | "small";
|
|
3408
|
+
};
|
|
3409
|
+
declare var __VLS_1$25: {};
|
|
3410
|
+
type __VLS_Slots$29 = {} & {
|
|
3411
|
+
default?: (props: typeof __VLS_1$25) => any;
|
|
3412
|
+
};
|
|
3413
|
+
declare const __VLS_component$29: import("vue").DefineComponent<RadioGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3414
|
+
change: (value: any) => any;
|
|
3415
|
+
"update:modelValue": (value: any) => any;
|
|
3416
|
+
}, string, import("vue").PublicProps, Readonly<RadioGroupProps> & Readonly<{
|
|
3417
|
+
onChange?: ((value: any) => any) | undefined;
|
|
3418
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
3419
|
+
}>, {
|
|
3420
|
+
disabled: boolean;
|
|
3421
|
+
readonly: boolean;
|
|
3422
|
+
direction: "horizontal" | "vertical";
|
|
3423
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3424
|
+
declare const _default$38: __VLS_WithSlots$29<typeof __VLS_component$29, __VLS_Slots$29>;
|
|
3425
|
+
type __VLS_WithSlots$29<T, S> = T & {
|
|
3426
|
+
new (): {
|
|
3427
|
+
$slots: S;
|
|
3428
|
+
};
|
|
3429
|
+
};
|
|
3430
|
+
export type CheckboxProps = {
|
|
3431
|
+
/**
|
|
3432
|
+
* @property {boolean | null} [modelValue]
|
|
3433
|
+
* @version 0.0.3
|
|
3434
|
+
*/
|
|
3435
|
+
modelValue?: boolean | null;
|
|
3436
|
+
/**
|
|
3437
|
+
* @property {boolean | null} [defaultValue]
|
|
3438
|
+
* @version 0.0.3
|
|
3439
|
+
*/
|
|
3440
|
+
defaultValue?: boolean | null;
|
|
3441
|
+
/**
|
|
3442
|
+
* @property {boolean} [indeterminate=false]
|
|
3443
|
+
* @version 0.0.3
|
|
3444
|
+
*/
|
|
3445
|
+
indeterminate?: boolean;
|
|
3446
|
+
/**
|
|
3447
|
+
* @property {boolean} [disabled=false]
|
|
3448
|
+
* @version 0.0.3
|
|
3449
|
+
*/
|
|
3450
|
+
disabled?: boolean;
|
|
3451
|
+
/**
|
|
3452
|
+
* @property {boolean} [readonly=false]
|
|
3453
|
+
* @version 0.0.3
|
|
3454
|
+
*/
|
|
3455
|
+
readonly?: boolean;
|
|
3456
|
+
/**
|
|
3457
|
+
* @property {'normal' | 'retro'} [variant='normal']
|
|
3458
|
+
* @version 0.0.3
|
|
3459
|
+
*/
|
|
3460
|
+
variant?: "normal" | "retro";
|
|
3461
|
+
/**
|
|
3462
|
+
* @property {string} [label]
|
|
3463
|
+
* @version 0.0.3
|
|
3464
|
+
*/
|
|
3465
|
+
label?: string;
|
|
3466
|
+
/**
|
|
3467
|
+
* @property {any} [value]
|
|
3468
|
+
* @version 0.0.3
|
|
3469
|
+
*/
|
|
3470
|
+
value?: any;
|
|
3471
|
+
/**
|
|
3472
|
+
* @property {'medium' | 'large' | 'small'} [size='medium']
|
|
3473
|
+
* @version 0.0.3
|
|
3474
|
+
*/
|
|
3475
|
+
size?: "medium" | "large" | "small";
|
|
3476
|
+
};
|
|
3477
|
+
declare var __VLS_6$2: {};
|
|
3478
|
+
type __VLS_Slots$30 = {} & {
|
|
3479
|
+
default?: (props: typeof __VLS_6$2) => any;
|
|
3480
|
+
};
|
|
3481
|
+
declare const __VLS_component$30: import("vue").DefineComponent<CheckboxProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3482
|
+
change: (value: boolean, event: Event) => any;
|
|
3483
|
+
blur: (event: FocusEvent) => any;
|
|
3484
|
+
input: (value: boolean, event: InputEvent) => any;
|
|
3485
|
+
focus: (event: FocusEvent) => any;
|
|
3486
|
+
"update:modelValue": (value: boolean) => any;
|
|
3487
|
+
}, string, import("vue").PublicProps, Readonly<CheckboxProps> & Readonly<{
|
|
3488
|
+
onChange?: ((value: boolean, event: Event) => any) | undefined;
|
|
3489
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
3490
|
+
onInput?: ((value: boolean, event: InputEvent) => any) | undefined;
|
|
3491
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
3492
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
3493
|
+
}>, {
|
|
3494
|
+
disabled: boolean;
|
|
3495
|
+
readonly: boolean;
|
|
3496
|
+
modelValue: boolean | null;
|
|
3497
|
+
defaultValue: boolean | null;
|
|
3498
|
+
indeterminate: boolean;
|
|
3499
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3500
|
+
declare const _default$39: __VLS_WithSlots$30<typeof __VLS_component$30, __VLS_Slots$30>;
|
|
3501
|
+
type __VLS_WithSlots$30<T, S> = T & {
|
|
3502
|
+
new (): {
|
|
3503
|
+
$slots: S;
|
|
3504
|
+
};
|
|
3505
|
+
};
|
|
3506
|
+
export interface CheckboxGroupOption<T = any> extends Option$1<T> {
|
|
3507
|
+
disabled?: boolean;
|
|
3508
|
+
key?: string | number | symbol;
|
|
3509
|
+
}
|
|
3510
|
+
export type CheckboxGroupProps = {
|
|
3511
|
+
/**
|
|
3512
|
+
* @property {any[] | null} [modelValue]
|
|
3513
|
+
* @version 0.0.3
|
|
3514
|
+
*/
|
|
3515
|
+
modelValue?: any[] | null;
|
|
3516
|
+
/**
|
|
3517
|
+
* @property {any[] | null} [defaultValue]
|
|
3518
|
+
* @version 0.0.3
|
|
3519
|
+
*/
|
|
3520
|
+
defaultValue?: any[] | null;
|
|
3521
|
+
/**
|
|
3522
|
+
* @property {boolean} [disabled=false]
|
|
3523
|
+
* @version 0.0.3
|
|
3524
|
+
*/
|
|
3525
|
+
disabled?: boolean;
|
|
3526
|
+
/**
|
|
3527
|
+
* @property {boolean} [readonly=false]
|
|
3528
|
+
* @version 0.0.3
|
|
3529
|
+
*/
|
|
3530
|
+
readonly?: boolean;
|
|
3531
|
+
/**
|
|
3532
|
+
* @property {'normal' | 'retro'} [variant]
|
|
3533
|
+
* @version 0.0.3
|
|
3534
|
+
*/
|
|
3535
|
+
variant?: "normal" | "retro";
|
|
3536
|
+
/**
|
|
3537
|
+
* @property {'horizontal' | 'vertical'} [direction='horizontal']
|
|
3538
|
+
* @version 0.0.3
|
|
3539
|
+
*/
|
|
3540
|
+
direction?: "horizontal" | "vertical";
|
|
3541
|
+
/**
|
|
3542
|
+
* @property {(CheckboxGroupOption | string)[]} [options]
|
|
3543
|
+
* @version 0.0.3
|
|
3544
|
+
*/
|
|
3545
|
+
options?: (CheckboxGroupOption | string)[];
|
|
3546
|
+
/**
|
|
3547
|
+
* @property {'medium' | 'large' | 'small'} [size='medium']
|
|
3548
|
+
* @version 0.0.3
|
|
3549
|
+
*/
|
|
3550
|
+
size?: "medium" | "large" | "small";
|
|
3551
|
+
};
|
|
3552
|
+
declare var __VLS_1$26: {};
|
|
3553
|
+
type __VLS_Slots$31 = {} & {
|
|
3554
|
+
default?: (props: typeof __VLS_1$26) => any;
|
|
3555
|
+
};
|
|
3556
|
+
declare const __VLS_component$31: import("vue").DefineComponent<CheckboxGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3557
|
+
change: (value: any[]) => any;
|
|
3558
|
+
"update:modelValue": (value: any[]) => any;
|
|
3559
|
+
}, string, import("vue").PublicProps, Readonly<CheckboxGroupProps> & Readonly<{
|
|
3560
|
+
onChange?: ((value: any[]) => any) | undefined;
|
|
3561
|
+
"onUpdate:modelValue"?: ((value: any[]) => any) | undefined;
|
|
3562
|
+
}>, {
|
|
3563
|
+
disabled: boolean;
|
|
3564
|
+
readonly: boolean;
|
|
3565
|
+
direction: "horizontal" | "vertical";
|
|
3566
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3567
|
+
declare const _default$40: __VLS_WithSlots$31<typeof __VLS_component$31, __VLS_Slots$31>;
|
|
3568
|
+
type __VLS_WithSlots$31<T, S> = T & {
|
|
3569
|
+
new (): {
|
|
3570
|
+
$slots: S;
|
|
3571
|
+
};
|
|
3572
|
+
};
|
|
3573
|
+
export type TextOutlineProps = {
|
|
3574
|
+
/**
|
|
3575
|
+
* @property {string} [color]
|
|
3576
|
+
* @version 0.0.3
|
|
3577
|
+
*/
|
|
3578
|
+
color?: string;
|
|
3579
|
+
/**
|
|
3580
|
+
* @property {number | string} [outlineWidth=1]
|
|
3581
|
+
* @version 0.0.3
|
|
3582
|
+
*/
|
|
3583
|
+
outlineWidth?: number | string;
|
|
3584
|
+
/**
|
|
3585
|
+
* @property {boolean} [autoPadding=true]
|
|
3586
|
+
* @version 0.0.3
|
|
3587
|
+
*/
|
|
3588
|
+
autoPadding?: boolean;
|
|
3589
|
+
};
|
|
3590
|
+
declare var __VLS_1$27: {};
|
|
3591
|
+
type __VLS_Slots$32 = {} & {
|
|
3592
|
+
default?: (props: typeof __VLS_1$27) => any;
|
|
3593
|
+
};
|
|
3594
|
+
declare const __VLS_component$32: import("vue").DefineComponent<TextOutlineProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TextOutlineProps> & Readonly<{}>, {
|
|
3595
|
+
color: string;
|
|
3596
|
+
outlineWidth: number | string;
|
|
3597
|
+
autoPadding: boolean;
|
|
3598
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3599
|
+
declare const _default$41: __VLS_WithSlots$32<typeof __VLS_component$32, __VLS_Slots$32>;
|
|
3600
|
+
type __VLS_WithSlots$32<T, S> = T & {
|
|
3601
|
+
new (): {
|
|
3602
|
+
$slots: S;
|
|
3603
|
+
};
|
|
3604
|
+
};
|
|
3605
|
+
export declare function useForm<T extends Record<string | number, any> = Record<string | number, any>>(options?: {
|
|
3606
|
+
initialValues?: T;
|
|
3607
|
+
}): UseFormReturn<T>;
|
|
2275
3608
|
export declare const install: (app: App, options?: {
|
|
2276
3609
|
prefix: string;
|
|
2277
3610
|
attachToApp?: boolean;
|
|
2278
3611
|
attachToWindow?: boolean;
|
|
2279
3612
|
}) => void;
|
|
2280
|
-
declare const _default$
|
|
3613
|
+
declare const _default$42: {
|
|
2281
3614
|
install: (app: App, options?: {
|
|
2282
3615
|
prefix: string;
|
|
2283
3616
|
attachToApp?: boolean;
|
|
@@ -2311,8 +3644,20 @@ export {
|
|
|
2311
3644
|
_default$28 as Spin,
|
|
2312
3645
|
_default$29 as Select,
|
|
2313
3646
|
_default$3 as MessageBox,
|
|
2314
|
-
_default$30 as
|
|
3647
|
+
_default$30 as VirtualList,
|
|
3648
|
+
_default$31 as Image,
|
|
3649
|
+
_default$32 as Avatar,
|
|
3650
|
+
_default$33 as Form,
|
|
3651
|
+
_default$34 as FormItem,
|
|
3652
|
+
_default$35 as Switch,
|
|
3653
|
+
_default$36 as Slider,
|
|
3654
|
+
_default$37 as Radio,
|
|
3655
|
+
_default$38 as RadioGroup,
|
|
3656
|
+
_default$39 as Checkbox,
|
|
2315
3657
|
_default$4 as Row,
|
|
3658
|
+
_default$40 as CheckboxGroup,
|
|
3659
|
+
_default$41 as TextOutline,
|
|
3660
|
+
_default$42 as default,
|
|
2316
3661
|
_default$5 as Col,
|
|
2317
3662
|
_default$6 as Divider,
|
|
2318
3663
|
_default$7 as Space,
|