yahee-components 0.0.100 → 0.0.102
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/es/_virtual/_commonjs-dynamic-modules.js +6 -0
- package/es/_virtual/jszip.min.js +7 -0
- package/es/_virtual/jszip.min2.js +4 -0
- package/es/drop-down-condition/drop-down-condition.vue.js +34 -33
- package/es/file-download-wrapper/file-download-wrapper.vue.js +265 -0
- package/es/file-download-wrapper/file-download-wrapper.vue2.js +4 -0
- package/es/file-download-wrapper/index.js +7 -0
- package/es/file-download-wrapper/key.js +17 -0
- package/es/file-download-wrapper/props.js +12 -0
- package/es/file-download-wrapper/style/index.css +66 -0
- package/es/height-collapse/height-collapse.vue.js +53 -0
- package/es/height-collapse/height-collapse.vue2.js +4 -0
- package/es/height-collapse/index.js +7 -0
- package/es/height-collapse/props.js +11 -0
- package/es/height-collapse/style/index.css +32 -0
- package/es/index.js +56 -50
- package/es/installs.js +22 -20
- package/es/node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.js +2320 -0
- package/es/style.css +99 -4
- package/lib/file-download-wrapper/style/index.css +66 -0
- package/lib/height-collapse/style/index.css +32 -0
- package/lib/style.css +99 -4
- package/package.json +4 -3
- package/types/src/annex-upload/annex-upload.vue.d.ts +8 -8
- package/types/src/annex-upload/index.d.ts +4 -4
- package/types/src/components.d.ts +2 -1
- package/types/src/drop-down-condition/drop-down-condition.vue.d.ts +2 -2
- package/types/src/drop-down-condition/index.d.ts +2 -2
- package/types/src/drop-down-condition/props.d.ts +1 -1
- package/types/src/file-download-wrapper/file-download-wrapper.d.ts +11 -0
- package/types/src/file-download-wrapper/file-download-wrapper.vue.d.ts +4 -0
- package/types/src/file-download-wrapper/index.d.ts +8 -0
- package/types/src/file-download-wrapper/key.d.ts +20 -0
- package/types/src/file-download-wrapper/props.d.ts +21 -0
- package/types/src/filter-container/filter-container.d.ts +2 -0
- package/types/src/filter-container/props.d.ts +0 -2
- package/types/src/filter-wrapper/index.d.ts +2 -1
- package/types/src/height-collapse/height-collapse.vue.d.ts +32 -0
- package/types/src/height-collapse/index.d.ts +50 -0
- package/types/src/height-collapse/props.d.ts +11 -0
- package/types/src/help-tag/help-tag.vue.d.ts +5 -5
- package/types/src/help-tag/index.d.ts +5 -5
- package/types/src/help-tag/props.d.ts +5 -5
- package/types/src/installs.d.ts +65 -526
- package/types/src/operation-log/index.d.ts +2 -2
- package/types/src/operation-log/operation-log.vue.d.ts +2 -2
- package/types/src/operation-log/props.d.ts +1 -1
- package/types/src/scale-screen/props.d.ts +2 -2
- package/es/input/index.js +0 -7
- package/es/input/input.vue.js +0 -40
- package/es/input/input.vue2.js +0 -4
- package/es/input/style/index.css +0 -3
- package/lib/input/style/index.css +0 -3
- package/types/src/input/index.d.ts +0 -515
- package/types/src/input/input.d.ts +0 -18
- package/types/src/input/input.vue.d.ts +0 -513
- package/types/src/shared/hello.d.ts +0 -1
- package/types/src/shared/index.d.ts +0 -2
- package/types/src/shared/typeCheck.d.ts +0 -2
- package/types/src/shared/types/InferVueDefaults.d.ts +0 -7
- package/types/src/shared/types/index.d.ts +0 -1
|
@@ -85,7 +85,7 @@ export declare const YaheeOperationLog: SFCWithInstall<DefineComponent<Operation
|
|
|
85
85
|
scrollLeft: number;
|
|
86
86
|
}) => any) | undefined;
|
|
87
87
|
"onEnd-reached"?: ((direction: ScrollbarDirection) => any) | undefined;
|
|
88
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "
|
|
88
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "tag" | "tabindex" | "always" | "height" | "maxHeight" | "native" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "noresize" | "minSize">;
|
|
89
89
|
$attrs: {
|
|
90
90
|
[x: string]: unknown;
|
|
91
91
|
};
|
|
@@ -361,7 +361,7 @@ export declare const YaheeOperationLog: SFCWithInstall<DefineComponent<Operation
|
|
|
361
361
|
scrollLeft: number;
|
|
362
362
|
}) => any) | undefined;
|
|
363
363
|
"onEnd-reached"?: ((direction: ScrollbarDirection) => any) | undefined;
|
|
364
|
-
}, "
|
|
364
|
+
}, "tag" | "tabindex" | "always" | "height" | "maxHeight" | "native" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "noresize" | "minSize" | "wrapRef" | "update" | "scrollTo" | "setScrollTop" | "setScrollLeft" | "handleScroll"> & ShallowUnwrapRef<{
|
|
365
365
|
wrapRef: Ref<HTMLDivElement | undefined>;
|
|
366
366
|
update: () => void;
|
|
367
367
|
scrollTo: {
|
|
@@ -84,7 +84,7 @@ declare const _default: DefineComponent<OperationLogProps, {}, {}, {}, {}, Compo
|
|
|
84
84
|
scrollLeft: number;
|
|
85
85
|
}) => any) | undefined;
|
|
86
86
|
"onEnd-reached"?: ((direction: ScrollbarDirection) => any) | undefined;
|
|
87
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "
|
|
87
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "tag" | "tabindex" | "always" | "height" | "maxHeight" | "native" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "noresize" | "minSize">;
|
|
88
88
|
$attrs: {
|
|
89
89
|
[x: string]: unknown;
|
|
90
90
|
};
|
|
@@ -360,7 +360,7 @@ declare const _default: DefineComponent<OperationLogProps, {}, {}, {}, {}, Compo
|
|
|
360
360
|
scrollLeft: number;
|
|
361
361
|
}) => any) | undefined;
|
|
362
362
|
"onEnd-reached"?: ((direction: ScrollbarDirection) => any) | undefined;
|
|
363
|
-
}, "
|
|
363
|
+
}, "tag" | "tabindex" | "always" | "height" | "maxHeight" | "native" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "noresize" | "minSize" | "wrapRef" | "update" | "scrollTo" | "setScrollTop" | "setScrollLeft" | "handleScroll"> & ShallowUnwrapRef<{
|
|
364
364
|
wrapRef: Ref<HTMLDivElement | undefined>;
|
|
365
365
|
update: () => void;
|
|
366
366
|
scrollTo: {
|
|
@@ -31,12 +31,12 @@ export interface ScaleScreenProps {
|
|
|
31
31
|
* box包裹样式
|
|
32
32
|
* @default {}
|
|
33
33
|
*/
|
|
34
|
-
boxStyle:
|
|
34
|
+
boxStyle: object;
|
|
35
35
|
/**
|
|
36
36
|
* wrapper内层包裹样式
|
|
37
37
|
* @default {}
|
|
38
38
|
*/
|
|
39
|
-
wrapperStyle:
|
|
39
|
+
wrapperStyle: object;
|
|
40
40
|
}
|
|
41
41
|
export declare function defaultScaleScreenProps(): {
|
|
42
42
|
width: number;
|
package/es/input/index.js
DELETED
package/es/input/input.vue.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, computed as r, ref as f, createElementBlock as c, openBlock as V, createVNode as _, unref as b } from "vue";
|
|
2
|
-
import { ElInput as v } from "element-plus";
|
|
3
|
-
import "element-plus/theme-chalk/src/base.scss";
|
|
4
|
-
import "element-plus/theme-chalk/src/input.scss";
|
|
5
|
-
const x = { class: "yahee-input" }, E = /* @__PURE__ */ i({
|
|
6
|
-
name: "YaheeInput",
|
|
7
|
-
__name: "input",
|
|
8
|
-
props: {
|
|
9
|
-
modelValue: { default: "" },
|
|
10
|
-
disabled: { type: Boolean, default: !1 }
|
|
11
|
-
},
|
|
12
|
-
emits: ["update:modelValue"],
|
|
13
|
-
setup(u, { expose: n, emit: d }) {
|
|
14
|
-
const p = d, t = u, o = r({
|
|
15
|
-
get: () => t.modelValue,
|
|
16
|
-
set: (e) => {
|
|
17
|
-
p("update:modelValue", e);
|
|
18
|
-
}
|
|
19
|
-
}), l = f();
|
|
20
|
-
function s() {
|
|
21
|
-
var e;
|
|
22
|
-
(e = l.value) == null || e.focus();
|
|
23
|
-
}
|
|
24
|
-
return n({
|
|
25
|
-
focus: s
|
|
26
|
-
}), (e, a) => (V(), c("div", x, [
|
|
27
|
-
_(b(v), {
|
|
28
|
-
ref_key: "inputRef",
|
|
29
|
-
ref: l,
|
|
30
|
-
modelValue: o.value,
|
|
31
|
-
"onUpdate:modelValue": a[0] || (a[0] = (m) => o.value = m),
|
|
32
|
-
type: "text",
|
|
33
|
-
disabled: t.disabled
|
|
34
|
-
}, null, 8, ["modelValue", "disabled"])
|
|
35
|
-
]));
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
export {
|
|
39
|
-
E as default
|
|
40
|
-
};
|
package/es/input/input.vue2.js
DELETED
package/es/input/style/index.css
DELETED
|
@@ -1,515 +0,0 @@
|
|
|
1
|
-
import { SFCWithInstall } from '../utils/typescript';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, StyleValue, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ShallowRef, ComputedRef, Ref, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
3
|
-
import { InputProps } from './input';
|
|
4
|
-
import { InputAutoSize } from 'element-plus';
|
|
5
|
-
import { OnCleanup } from '@vue/reactivity';
|
|
6
|
-
export declare const YaheeInput: SFCWithInstall<DefineComponent<InputProps, {
|
|
7
|
-
focus: () => void;
|
|
8
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
9
|
-
"update:modelValue": (value: string) => any;
|
|
10
|
-
}, string, PublicProps, Readonly< InputProps> & Readonly<{
|
|
11
|
-
"onUpdate:modelValue"?: (value: string) => any;
|
|
12
|
-
}>, {
|
|
13
|
-
modelValue: string;
|
|
14
|
-
disabled: boolean;
|
|
15
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
16
|
-
inputRef: {
|
|
17
|
-
$: ComponentInternalInstance;
|
|
18
|
-
$data: {};
|
|
19
|
-
$props: Partial<{
|
|
20
|
-
readonly disabled: boolean;
|
|
21
|
-
readonly id: string;
|
|
22
|
-
readonly type: string;
|
|
23
|
-
readonly modelValue: string | number;
|
|
24
|
-
readonly tabindex: string | number;
|
|
25
|
-
readonly readonly: boolean;
|
|
26
|
-
readonly autosize: InputAutoSize;
|
|
27
|
-
readonly autocomplete: string;
|
|
28
|
-
readonly containerRole: string;
|
|
29
|
-
readonly validateEvent: boolean;
|
|
30
|
-
readonly inputStyle: StyleValue;
|
|
31
|
-
readonly rows: number;
|
|
32
|
-
readonly clearable: boolean;
|
|
33
|
-
readonly showPassword: boolean;
|
|
34
|
-
readonly showWordLimit: boolean;
|
|
35
|
-
readonly autofocus: boolean;
|
|
36
|
-
}> & Omit<{
|
|
37
|
-
readonly modelValue: string | number;
|
|
38
|
-
readonly disabled: boolean;
|
|
39
|
-
readonly type: string;
|
|
40
|
-
readonly autosize: false;
|
|
41
|
-
readonly autocomplete: string;
|
|
42
|
-
readonly readonly: boolean;
|
|
43
|
-
readonly clearable: boolean;
|
|
44
|
-
readonly showPassword: boolean;
|
|
45
|
-
readonly showWordLimit: boolean;
|
|
46
|
-
readonly tabindex: string | number;
|
|
47
|
-
readonly validateEvent: boolean;
|
|
48
|
-
readonly inputStyle: StyleValue;
|
|
49
|
-
readonly autofocus: boolean;
|
|
50
|
-
readonly rows: number;
|
|
51
|
-
readonly resize?: "none" | "both" | "horizontal" | "vertical";
|
|
52
|
-
readonly ariaLabel?: string;
|
|
53
|
-
readonly id?: string;
|
|
54
|
-
readonly size?: "" | "default" | "small" | "large";
|
|
55
|
-
readonly maxlength?: string | number;
|
|
56
|
-
readonly minlength?: string | number;
|
|
57
|
-
readonly formatter?: Function;
|
|
58
|
-
readonly parser?: Function;
|
|
59
|
-
readonly placeholder?: string;
|
|
60
|
-
readonly form?: string;
|
|
61
|
-
readonly suffixIcon?: unknown;
|
|
62
|
-
readonly prefixIcon?: unknown;
|
|
63
|
-
readonly containerRole?: string;
|
|
64
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
65
|
-
onChange?: ((value: string) => any) | undefined;
|
|
66
|
-
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
67
|
-
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
68
|
-
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
69
|
-
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
70
|
-
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
71
|
-
onInput?: ((value: string) => any) | undefined;
|
|
72
|
-
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
73
|
-
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
74
|
-
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
75
|
-
onClear?: (() => any) | undefined;
|
|
76
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "modelValue" | "disabled" | "type" | "id" | "autosize" | "autocomplete" | "readonly" | "clearable" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "autofocus" | "rows">;
|
|
77
|
-
$attrs: {
|
|
78
|
-
[x: string]: unknown;
|
|
79
|
-
};
|
|
80
|
-
$refs: {
|
|
81
|
-
[x: string]: unknown;
|
|
82
|
-
};
|
|
83
|
-
$slots: Readonly<{
|
|
84
|
-
[name: string]: Slot<any>;
|
|
85
|
-
}>;
|
|
86
|
-
$root: ComponentPublicInstance | null;
|
|
87
|
-
$parent: ComponentPublicInstance | null;
|
|
88
|
-
$host: Element | null;
|
|
89
|
-
$emit: ((event: "blur", evt: FocusEvent) => void) & ((event: "change", value: string) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "input", value: string) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "clear") => void);
|
|
90
|
-
$el: any;
|
|
91
|
-
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
92
|
-
readonly ariaLabel: StringConstructor;
|
|
93
|
-
readonly id: {
|
|
94
|
-
readonly type: PropType<string>;
|
|
95
|
-
readonly required: false;
|
|
96
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
97
|
-
__epPropKey: true;
|
|
98
|
-
} & {
|
|
99
|
-
readonly default: undefined;
|
|
100
|
-
};
|
|
101
|
-
readonly size: {
|
|
102
|
-
readonly type: PropType<"" | "default" | "small" | "large">;
|
|
103
|
-
readonly required: false;
|
|
104
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
105
|
-
__epPropKey: true;
|
|
106
|
-
};
|
|
107
|
-
readonly disabled: BooleanConstructor;
|
|
108
|
-
readonly modelValue: {
|
|
109
|
-
readonly type: PropType<string | number>;
|
|
110
|
-
readonly required: false;
|
|
111
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
112
|
-
__epPropKey: true;
|
|
113
|
-
} & {
|
|
114
|
-
readonly default: "";
|
|
115
|
-
};
|
|
116
|
-
readonly maxlength: {
|
|
117
|
-
readonly type: PropType<string | number>;
|
|
118
|
-
readonly required: false;
|
|
119
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
120
|
-
__epPropKey: true;
|
|
121
|
-
};
|
|
122
|
-
readonly minlength: {
|
|
123
|
-
readonly type: PropType<string | number>;
|
|
124
|
-
readonly required: false;
|
|
125
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
126
|
-
__epPropKey: true;
|
|
127
|
-
};
|
|
128
|
-
readonly type: {
|
|
129
|
-
readonly type: PropType<string>;
|
|
130
|
-
readonly required: false;
|
|
131
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
132
|
-
__epPropKey: true;
|
|
133
|
-
} & {
|
|
134
|
-
readonly default: "text";
|
|
135
|
-
};
|
|
136
|
-
readonly resize: {
|
|
137
|
-
readonly type: PropType<"none" | "both" | "horizontal" | "vertical">;
|
|
138
|
-
readonly required: false;
|
|
139
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
140
|
-
__epPropKey: true;
|
|
141
|
-
};
|
|
142
|
-
readonly autosize: {
|
|
143
|
-
readonly type: PropType<unknown>;
|
|
144
|
-
readonly required: false;
|
|
145
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
146
|
-
__epPropKey: true;
|
|
147
|
-
} & {
|
|
148
|
-
readonly default: false;
|
|
149
|
-
};
|
|
150
|
-
readonly autocomplete: {
|
|
151
|
-
readonly type: PropType<string>;
|
|
152
|
-
readonly required: false;
|
|
153
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
154
|
-
__epPropKey: true;
|
|
155
|
-
} & {
|
|
156
|
-
readonly default: "off";
|
|
157
|
-
};
|
|
158
|
-
readonly formatter: {
|
|
159
|
-
readonly type: PropType<Function>;
|
|
160
|
-
readonly required: false;
|
|
161
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
162
|
-
__epPropKey: true;
|
|
163
|
-
};
|
|
164
|
-
readonly parser: {
|
|
165
|
-
readonly type: PropType<Function>;
|
|
166
|
-
readonly required: false;
|
|
167
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
168
|
-
__epPropKey: true;
|
|
169
|
-
};
|
|
170
|
-
readonly placeholder: {
|
|
171
|
-
readonly type: PropType<string>;
|
|
172
|
-
readonly required: false;
|
|
173
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
174
|
-
__epPropKey: true;
|
|
175
|
-
};
|
|
176
|
-
readonly form: {
|
|
177
|
-
readonly type: PropType<string>;
|
|
178
|
-
readonly required: false;
|
|
179
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
180
|
-
__epPropKey: true;
|
|
181
|
-
};
|
|
182
|
-
readonly readonly: BooleanConstructor;
|
|
183
|
-
readonly clearable: BooleanConstructor;
|
|
184
|
-
readonly showPassword: BooleanConstructor;
|
|
185
|
-
readonly showWordLimit: BooleanConstructor;
|
|
186
|
-
readonly suffixIcon: {
|
|
187
|
-
readonly type: PropType<unknown>;
|
|
188
|
-
readonly required: false;
|
|
189
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
190
|
-
__epPropKey: true;
|
|
191
|
-
};
|
|
192
|
-
readonly prefixIcon: {
|
|
193
|
-
readonly type: PropType<unknown>;
|
|
194
|
-
readonly required: false;
|
|
195
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
196
|
-
__epPropKey: true;
|
|
197
|
-
};
|
|
198
|
-
readonly containerRole: {
|
|
199
|
-
readonly type: PropType<string>;
|
|
200
|
-
readonly required: false;
|
|
201
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
202
|
-
__epPropKey: true;
|
|
203
|
-
} & {
|
|
204
|
-
readonly default: undefined;
|
|
205
|
-
};
|
|
206
|
-
readonly tabindex: {
|
|
207
|
-
readonly type: PropType<string | number>;
|
|
208
|
-
readonly required: false;
|
|
209
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
210
|
-
__epPropKey: true;
|
|
211
|
-
} & {
|
|
212
|
-
readonly default: 0;
|
|
213
|
-
};
|
|
214
|
-
readonly validateEvent: {
|
|
215
|
-
readonly type: PropType<boolean>;
|
|
216
|
-
readonly required: false;
|
|
217
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
218
|
-
__epPropKey: true;
|
|
219
|
-
} & {
|
|
220
|
-
readonly default: true;
|
|
221
|
-
};
|
|
222
|
-
readonly inputStyle: {
|
|
223
|
-
readonly type: PropType<StyleValue>;
|
|
224
|
-
readonly required: false;
|
|
225
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
226
|
-
__epPropKey: true;
|
|
227
|
-
} & {
|
|
228
|
-
readonly default: () => {};
|
|
229
|
-
};
|
|
230
|
-
readonly autofocus: BooleanConstructor;
|
|
231
|
-
readonly rows: {
|
|
232
|
-
readonly type: PropType<number>;
|
|
233
|
-
readonly required: false;
|
|
234
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
235
|
-
__epPropKey: true;
|
|
236
|
-
} & {
|
|
237
|
-
readonly default: 2;
|
|
238
|
-
};
|
|
239
|
-
}>> & {
|
|
240
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
241
|
-
onChange?: ((value: string) => any) | undefined;
|
|
242
|
-
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
243
|
-
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
244
|
-
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
245
|
-
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
246
|
-
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
247
|
-
onInput?: ((value: string) => any) | undefined;
|
|
248
|
-
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
249
|
-
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
250
|
-
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
251
|
-
onClear?: (() => any) | undefined;
|
|
252
|
-
}, {
|
|
253
|
-
input: ShallowRef<HTMLInputElement | undefined>;
|
|
254
|
-
textarea: ShallowRef<HTMLTextAreaElement | undefined>;
|
|
255
|
-
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
256
|
-
textareaStyle: ComputedRef<StyleValue>;
|
|
257
|
-
autosize: Ref<InputAutoSize>;
|
|
258
|
-
isComposing: Ref<boolean>;
|
|
259
|
-
focus: () => void | undefined;
|
|
260
|
-
blur: () => void | undefined;
|
|
261
|
-
select: () => void;
|
|
262
|
-
clear: () => void;
|
|
263
|
-
resizeTextarea: () => void;
|
|
264
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
265
|
-
input: (value: string) => void;
|
|
266
|
-
clear: () => void;
|
|
267
|
-
"update:modelValue": (value: string) => void;
|
|
268
|
-
change: (value: string) => void;
|
|
269
|
-
blur: (evt: FocusEvent) => void;
|
|
270
|
-
compositionend: (evt: CompositionEvent) => void;
|
|
271
|
-
compositionstart: (evt: CompositionEvent) => void;
|
|
272
|
-
compositionupdate: (evt: CompositionEvent) => void;
|
|
273
|
-
focus: (evt: FocusEvent) => void;
|
|
274
|
-
keydown: (evt: Event | KeyboardEvent) => void;
|
|
275
|
-
mouseenter: (evt: MouseEvent) => void;
|
|
276
|
-
mouseleave: (evt: MouseEvent) => void;
|
|
277
|
-
}, string, {
|
|
278
|
-
readonly disabled: boolean;
|
|
279
|
-
readonly id: string;
|
|
280
|
-
readonly type: string;
|
|
281
|
-
readonly modelValue: string | number;
|
|
282
|
-
readonly tabindex: string | number;
|
|
283
|
-
readonly readonly: boolean;
|
|
284
|
-
readonly autosize: InputAutoSize;
|
|
285
|
-
readonly autocomplete: string;
|
|
286
|
-
readonly containerRole: string;
|
|
287
|
-
readonly validateEvent: boolean;
|
|
288
|
-
readonly inputStyle: StyleValue;
|
|
289
|
-
readonly rows: number;
|
|
290
|
-
readonly clearable: boolean;
|
|
291
|
-
readonly showPassword: boolean;
|
|
292
|
-
readonly showWordLimit: boolean;
|
|
293
|
-
readonly autofocus: boolean;
|
|
294
|
-
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
295
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
296
|
-
created?: (() => void) | (() => void)[];
|
|
297
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
298
|
-
mounted?: (() => void) | (() => void)[];
|
|
299
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
300
|
-
updated?: (() => void) | (() => void)[];
|
|
301
|
-
activated?: (() => void) | (() => void)[];
|
|
302
|
-
deactivated?: (() => void) | (() => void)[];
|
|
303
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
304
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
305
|
-
destroyed?: (() => void) | (() => void)[];
|
|
306
|
-
unmounted?: (() => void) | (() => void)[];
|
|
307
|
-
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
308
|
-
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
309
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
310
|
-
};
|
|
311
|
-
$forceUpdate: () => void;
|
|
312
|
-
$nextTick: nextTick;
|
|
313
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
314
|
-
} & Readonly<{
|
|
315
|
-
readonly disabled: boolean;
|
|
316
|
-
readonly id: string;
|
|
317
|
-
readonly type: string;
|
|
318
|
-
readonly modelValue: string | number;
|
|
319
|
-
readonly tabindex: string | number;
|
|
320
|
-
readonly readonly: boolean;
|
|
321
|
-
readonly autosize: InputAutoSize;
|
|
322
|
-
readonly autocomplete: string;
|
|
323
|
-
readonly containerRole: string;
|
|
324
|
-
readonly validateEvent: boolean;
|
|
325
|
-
readonly inputStyle: StyleValue;
|
|
326
|
-
readonly rows: number;
|
|
327
|
-
readonly clearable: boolean;
|
|
328
|
-
readonly showPassword: boolean;
|
|
329
|
-
readonly showWordLimit: boolean;
|
|
330
|
-
readonly autofocus: boolean;
|
|
331
|
-
}> & Omit<Readonly< ExtractPropTypes<{
|
|
332
|
-
readonly ariaLabel: StringConstructor;
|
|
333
|
-
readonly id: {
|
|
334
|
-
readonly type: PropType<string>;
|
|
335
|
-
readonly required: false;
|
|
336
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
337
|
-
__epPropKey: true;
|
|
338
|
-
} & {
|
|
339
|
-
readonly default: undefined;
|
|
340
|
-
};
|
|
341
|
-
readonly size: {
|
|
342
|
-
readonly type: PropType<"" | "default" | "small" | "large">;
|
|
343
|
-
readonly required: false;
|
|
344
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
345
|
-
__epPropKey: true;
|
|
346
|
-
};
|
|
347
|
-
readonly disabled: BooleanConstructor;
|
|
348
|
-
readonly modelValue: {
|
|
349
|
-
readonly type: PropType<string | number>;
|
|
350
|
-
readonly required: false;
|
|
351
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
352
|
-
__epPropKey: true;
|
|
353
|
-
} & {
|
|
354
|
-
readonly default: "";
|
|
355
|
-
};
|
|
356
|
-
readonly maxlength: {
|
|
357
|
-
readonly type: PropType<string | number>;
|
|
358
|
-
readonly required: false;
|
|
359
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
360
|
-
__epPropKey: true;
|
|
361
|
-
};
|
|
362
|
-
readonly minlength: {
|
|
363
|
-
readonly type: PropType<string | number>;
|
|
364
|
-
readonly required: false;
|
|
365
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
366
|
-
__epPropKey: true;
|
|
367
|
-
};
|
|
368
|
-
readonly type: {
|
|
369
|
-
readonly type: PropType<string>;
|
|
370
|
-
readonly required: false;
|
|
371
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
372
|
-
__epPropKey: true;
|
|
373
|
-
} & {
|
|
374
|
-
readonly default: "text";
|
|
375
|
-
};
|
|
376
|
-
readonly resize: {
|
|
377
|
-
readonly type: PropType<"none" | "both" | "horizontal" | "vertical">;
|
|
378
|
-
readonly required: false;
|
|
379
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
380
|
-
__epPropKey: true;
|
|
381
|
-
};
|
|
382
|
-
readonly autosize: {
|
|
383
|
-
readonly type: PropType<unknown>;
|
|
384
|
-
readonly required: false;
|
|
385
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
386
|
-
__epPropKey: true;
|
|
387
|
-
} & {
|
|
388
|
-
readonly default: false;
|
|
389
|
-
};
|
|
390
|
-
readonly autocomplete: {
|
|
391
|
-
readonly type: PropType<string>;
|
|
392
|
-
readonly required: false;
|
|
393
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
394
|
-
__epPropKey: true;
|
|
395
|
-
} & {
|
|
396
|
-
readonly default: "off";
|
|
397
|
-
};
|
|
398
|
-
readonly formatter: {
|
|
399
|
-
readonly type: PropType<Function>;
|
|
400
|
-
readonly required: false;
|
|
401
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
402
|
-
__epPropKey: true;
|
|
403
|
-
};
|
|
404
|
-
readonly parser: {
|
|
405
|
-
readonly type: PropType<Function>;
|
|
406
|
-
readonly required: false;
|
|
407
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
408
|
-
__epPropKey: true;
|
|
409
|
-
};
|
|
410
|
-
readonly placeholder: {
|
|
411
|
-
readonly type: PropType<string>;
|
|
412
|
-
readonly required: false;
|
|
413
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
414
|
-
__epPropKey: true;
|
|
415
|
-
};
|
|
416
|
-
readonly form: {
|
|
417
|
-
readonly type: PropType<string>;
|
|
418
|
-
readonly required: false;
|
|
419
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
420
|
-
__epPropKey: true;
|
|
421
|
-
};
|
|
422
|
-
readonly readonly: BooleanConstructor;
|
|
423
|
-
readonly clearable: BooleanConstructor;
|
|
424
|
-
readonly showPassword: BooleanConstructor;
|
|
425
|
-
readonly showWordLimit: BooleanConstructor;
|
|
426
|
-
readonly suffixIcon: {
|
|
427
|
-
readonly type: PropType<unknown>;
|
|
428
|
-
readonly required: false;
|
|
429
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
430
|
-
__epPropKey: true;
|
|
431
|
-
};
|
|
432
|
-
readonly prefixIcon: {
|
|
433
|
-
readonly type: PropType<unknown>;
|
|
434
|
-
readonly required: false;
|
|
435
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
436
|
-
__epPropKey: true;
|
|
437
|
-
};
|
|
438
|
-
readonly containerRole: {
|
|
439
|
-
readonly type: PropType<string>;
|
|
440
|
-
readonly required: false;
|
|
441
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
442
|
-
__epPropKey: true;
|
|
443
|
-
} & {
|
|
444
|
-
readonly default: undefined;
|
|
445
|
-
};
|
|
446
|
-
readonly tabindex: {
|
|
447
|
-
readonly type: PropType<string | number>;
|
|
448
|
-
readonly required: false;
|
|
449
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
450
|
-
__epPropKey: true;
|
|
451
|
-
} & {
|
|
452
|
-
readonly default: 0;
|
|
453
|
-
};
|
|
454
|
-
readonly validateEvent: {
|
|
455
|
-
readonly type: PropType<boolean>;
|
|
456
|
-
readonly required: false;
|
|
457
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
458
|
-
__epPropKey: true;
|
|
459
|
-
} & {
|
|
460
|
-
readonly default: true;
|
|
461
|
-
};
|
|
462
|
-
readonly inputStyle: {
|
|
463
|
-
readonly type: PropType<StyleValue>;
|
|
464
|
-
readonly required: false;
|
|
465
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
466
|
-
__epPropKey: true;
|
|
467
|
-
} & {
|
|
468
|
-
readonly default: () => {};
|
|
469
|
-
};
|
|
470
|
-
readonly autofocus: BooleanConstructor;
|
|
471
|
-
readonly rows: {
|
|
472
|
-
readonly type: PropType<number>;
|
|
473
|
-
readonly required: false;
|
|
474
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
475
|
-
__epPropKey: true;
|
|
476
|
-
} & {
|
|
477
|
-
readonly default: 2;
|
|
478
|
-
};
|
|
479
|
-
}>> & {
|
|
480
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
481
|
-
onChange?: ((value: string) => any) | undefined;
|
|
482
|
-
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
483
|
-
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
484
|
-
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
485
|
-
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
486
|
-
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
487
|
-
onInput?: ((value: string) => any) | undefined;
|
|
488
|
-
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
489
|
-
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
490
|
-
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
491
|
-
onClear?: (() => any) | undefined;
|
|
492
|
-
}, "blur" | "focus" | "input" | "select" | "modelValue" | "disabled" | "type" | "id" | "autosize" | "autocomplete" | "readonly" | "clearable" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "autofocus" | "rows" | "clear" | "textarea" | "ref" | "textareaStyle" | "isComposing" | "resizeTextarea"> & ShallowUnwrapRef<{
|
|
493
|
-
input: ShallowRef<HTMLInputElement | undefined>;
|
|
494
|
-
textarea: ShallowRef<HTMLTextAreaElement | undefined>;
|
|
495
|
-
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
496
|
-
textareaStyle: ComputedRef<StyleValue>;
|
|
497
|
-
autosize: Ref<InputAutoSize>;
|
|
498
|
-
isComposing: Ref<boolean>;
|
|
499
|
-
focus: () => void | undefined;
|
|
500
|
-
blur: () => void | undefined;
|
|
501
|
-
select: () => void;
|
|
502
|
-
clear: () => void;
|
|
503
|
-
resizeTextarea: () => void;
|
|
504
|
-
}> & {} & ComponentCustomProperties & {} & {
|
|
505
|
-
$slots: {
|
|
506
|
-
prepend?(_: {}): any;
|
|
507
|
-
prefix?(_: {}): any;
|
|
508
|
-
suffix?(_: {}): any;
|
|
509
|
-
append?(_: {}): any;
|
|
510
|
-
};
|
|
511
|
-
};
|
|
512
|
-
}, HTMLDivElement>> & Record<string, any>;
|
|
513
|
-
export default YaheeInput;
|
|
514
|
-
export * from './input.vue';
|
|
515
|
-
export * from './input';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { default as Input } from './input.vue';
|
|
2
|
-
/**
|
|
3
|
-
* 定义props类型
|
|
4
|
-
*/
|
|
5
|
-
export interface InputProps {
|
|
6
|
-
modelValue: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* 定义emit类型
|
|
11
|
-
*/
|
|
12
|
-
export type InputEmits = {
|
|
13
|
-
'update:modelValue': [value: string];
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* 定义instance类型
|
|
17
|
-
*/
|
|
18
|
-
export type InputInstance = InstanceType<typeof Input>;
|