bkui-vue 0.0.1-beta.128 → 0.0.1-beta.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +145 -31
- package/dist/index.esm.js +3573 -471
- package/dist/index.umd.js +145 -31
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +2 -2
- package/lib/affix/index.d.ts +118 -22
- package/lib/alert/alert.variable.css +2 -2
- package/lib/alert/index.d.ts +146 -28
- package/lib/animate-number/index.d.ts +84 -14
- package/lib/backtop/backtop.variable.css +2 -2
- package/lib/backtop/index.d.ts +135 -29
- package/lib/badge/badge.variable.css +2 -2
- package/lib/badge/index.d.ts +211 -46
- package/lib/breadcrumb/breadcrumb.css +43 -0
- package/lib/breadcrumb/breadcrumb.variable.css +45 -2
- package/lib/button/button.css +4 -0
- package/lib/button/button.less +13 -7
- package/lib/button/button.variable.css +6 -2
- package/lib/card/card.css +43 -0
- package/lib/card/card.variable.css +45 -2
- package/lib/card/index.d.ts +223 -50
- package/lib/cascader/cascader.variable.css +2 -2
- package/lib/checkbox/checkbox.css +4 -2
- package/lib/checkbox/checkbox.less +4 -2
- package/lib/checkbox/checkbox.variable.css +6 -4
- package/lib/code-diff/code-diff.variable.css +2 -2
- package/lib/code-diff/index.d.ts +123 -23
- package/lib/collapse/collapse.variable.css +2 -2
- package/lib/collapse/index.d.ts +147 -28
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -1
- package/lib/container/container.css +43 -0
- package/lib/container/container.variable.css +45 -2
- package/lib/date-picker/date-picker.variable.css +2 -2
- package/lib/date-picker/index.d.ts +566 -124
- package/lib/dialog/index.d.ts +557 -140
- package/lib/divider/divider.variable.css +2 -2
- package/lib/divider/index.d.ts +117 -23
- package/lib/dropdown/dropdown.variable.css +2 -2
- package/lib/exception/exception.variable.css +2 -2
- package/lib/exception/index.d.ts +83 -13
- package/lib/fixed-navbar/fixed-navbar.variable.css +2 -2
- package/lib/fixed-navbar/index.d.ts +121 -22
- package/lib/form/form.variable.css +2 -2
- package/lib/input/index.d.ts +408 -92
- package/lib/input/index.js +1 -1
- package/lib/input/input.css +56 -5
- package/lib/input/input.less +12 -2
- package/lib/input/input.variable.css +55 -4
- package/lib/link/index.d.ts +134 -28
- package/lib/link/link.variable.css +2 -2
- package/lib/loading/loading.css +43 -2
- package/lib/loading/loading.less +2 -2
- package/lib/loading/loading.variable.css +45 -4
- package/lib/menu/menu.css +43 -0
- package/lib/menu/menu.variable.css +45 -2
- package/lib/menu/submenu.variable.css +2 -2
- package/lib/message/message.variable.css +2 -2
- package/lib/navigation/index.d.ts +244 -51
- package/lib/navigation/navigation.variable.css +2 -2
- package/lib/notify/notify.variable.css +2 -2
- package/lib/pagination/index.d.ts +305 -68
- package/lib/pagination/pagination.variable.css +2 -2
- package/lib/popover/index.d.ts +298 -76
- package/lib/popover/popover.variable.css +2 -2
- package/lib/popover2/index.d.ts +378 -92
- package/lib/popover2/index.js +1 -1
- package/lib/popover2/popover2.variable.css +2 -2
- package/lib/popover2/use-platform.d.ts +30 -0
- package/lib/process/index.d.ts +166 -35
- package/lib/process/process.variable.css +2 -2
- package/lib/progress/index.d.ts +306 -76
- package/lib/progress/progress.css +43 -0
- package/lib/progress/progress.variable.css +45 -2
- package/lib/radio/index.d.ts +2 -2
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +3 -4
- package/lib/radio/radio.css +4 -5
- package/lib/radio/radio.less +4 -5
- package/lib/radio/radio.variable.css +6 -7
- package/lib/rate/index.d.ts +96 -15
- package/lib/resize-layout/index.d.ts +261 -52
- package/lib/resize-layout/resize-layout.variable.css +2 -2
- package/lib/select/select.css +26 -24
- package/lib/select/select.less +132 -122
- package/lib/select/select.variable.css +28 -26
- package/lib/shared/index.d.ts +3 -3
- package/lib/sideslider/index.d.ts +369 -91
- package/lib/sideslider/sideslider.variable.css +2 -2
- package/lib/slider/index.d.ts +319 -78
- package/lib/slider/slider.variable.css +2 -2
- package/lib/steps/index.d.ts +198 -43
- package/lib/steps/steps.variable.css +2 -2
- package/lib/styles/mixins/mixins.css +43 -0
- package/lib/styles/mixins/mixins.less +1 -0
- package/lib/styles/mixins/mixins.variable.css +43 -0
- package/lib/styles/mixins/scroll.variable.css +2 -2
- package/lib/styles/themes/themes.less +2 -2
- package/lib/swiper/index.d.ts +146 -30
- package/lib/switcher/index.d.ts +223 -50
- package/lib/switcher/switcher.css +43 -0
- package/lib/switcher/switcher.variable.css +45 -2
- package/lib/tab/tab.variable.css +2 -2
- package/lib/table/const.d.ts +5 -0
- package/lib/table/index.d.ts +419 -101
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.variable.css +2 -2
- package/lib/table/plugins/head-sort.variable.css +2 -2
- package/lib/table/plugins/settings.css +23 -4
- package/lib/table/plugins/settings.less +25 -4
- package/lib/table/plugins/settings.variable.css +25 -6
- package/lib/table/props.d.ts +1 -0
- package/lib/table/table.css +668 -5
- package/lib/table/table.less +7 -1
- package/lib/table/table.variable.css +670 -7
- package/lib/table/use-common.d.ts +16 -1
- package/lib/table/utils.d.ts +1 -1
- package/lib/tag/index.d.ts +183 -38
- package/lib/tag/tag.variable.css +2 -2
- package/lib/tag-input/index.d.ts +666 -145
- package/lib/tag-input/tag-input.variable.css +2 -2
- package/lib/timeline/index.d.ts +109 -19
- package/lib/timeline/timeline.variable.css +2 -2
- package/lib/transfer/index.d.ts +264 -59
- package/lib/transfer/transfer.variable.css +2 -2
- package/lib/tree/index.d.ts +401 -103
- package/lib/tree/index.js +1 -1
- package/lib/tree/tree.css +107 -0
- package/lib/tree/tree.less +2 -0
- package/lib/tree/tree.variable.css +109 -2
- package/lib/tree/use-node-action.d.ts +1 -1
- package/lib/tree/use-node-attribute.d.ts +1 -0
- package/lib/upload/upload.css +43 -0
- package/lib/upload/upload.variable.css +45 -2
- package/lib/virtual-render/index.d.ts +433 -109
- package/lib/virtual-render/virtual-render.variable.css +2 -2
- package/package.json +1 -1
- package/lib/table/plugins/head-filter.css +0 -68
package/lib/input/index.d.ts
CHANGED
@@ -1,4 +1,394 @@
|
|
1
|
-
declare const BkInput:
|
1
|
+
declare const BkInput: {
|
2
|
+
new (...args: any[]): {
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
4
|
+
$data: {};
|
5
|
+
$props: Partial<{
|
6
|
+
type: string;
|
7
|
+
disabled: boolean;
|
8
|
+
placeholder: string;
|
9
|
+
prefix: string;
|
10
|
+
step: number;
|
11
|
+
min: number;
|
12
|
+
max: number;
|
13
|
+
maxlength: number;
|
14
|
+
clearable: boolean;
|
15
|
+
readonly: boolean;
|
16
|
+
prefixIcon: string;
|
17
|
+
suffixIcon: string;
|
18
|
+
suffix: string;
|
19
|
+
behavior: string;
|
20
|
+
showWordLimit: boolean;
|
21
|
+
showControl: boolean;
|
22
|
+
showClearOnlyHover: boolean;
|
23
|
+
precision: number;
|
24
|
+
modelValue: string | number;
|
25
|
+
rows: number;
|
26
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
27
|
+
type: import("vue-types").VueTypeValidableDef<string> & {
|
28
|
+
default: string;
|
29
|
+
} & {
|
30
|
+
default: string;
|
31
|
+
};
|
32
|
+
clearable: import("vue-types").VueTypeValidableDef<boolean> & {
|
33
|
+
default: boolean;
|
34
|
+
};
|
35
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
36
|
+
default: boolean;
|
37
|
+
};
|
38
|
+
readonly: import("vue-types").VueTypeValidableDef<boolean> & {
|
39
|
+
default: boolean;
|
40
|
+
};
|
41
|
+
placeholder: import("vue-types").VueTypeValidableDef<string> & {
|
42
|
+
default: string;
|
43
|
+
} & {
|
44
|
+
default: string;
|
45
|
+
};
|
46
|
+
prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
47
|
+
default: string;
|
48
|
+
};
|
49
|
+
suffixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
50
|
+
default: string;
|
51
|
+
};
|
52
|
+
suffix: import("vue-types").VueTypeValidableDef<string> & {
|
53
|
+
default: string;
|
54
|
+
};
|
55
|
+
prefix: import("vue-types").VueTypeValidableDef<string> & {
|
56
|
+
default: string;
|
57
|
+
};
|
58
|
+
step: import("vue-types").VueTypeDef<number> & {
|
59
|
+
default: number;
|
60
|
+
};
|
61
|
+
max: import("vue-types").VueTypeDef<number> & {
|
62
|
+
default: number;
|
63
|
+
};
|
64
|
+
min: import("vue-types").VueTypeDef<number> & {
|
65
|
+
default: number;
|
66
|
+
};
|
67
|
+
maxlength: import("vue-types").VueTypeDef<number> & {
|
68
|
+
default: number;
|
69
|
+
};
|
70
|
+
behavior: import("vue-types").VueTypeDef<string> & {
|
71
|
+
default: string;
|
72
|
+
};
|
73
|
+
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
74
|
+
default: boolean;
|
75
|
+
};
|
76
|
+
showControl: import("vue-types").VueTypeValidableDef<boolean> & {
|
77
|
+
default: boolean;
|
78
|
+
} & {
|
79
|
+
default: boolean;
|
80
|
+
};
|
81
|
+
showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
82
|
+
default: boolean;
|
83
|
+
} & {
|
84
|
+
default: boolean;
|
85
|
+
};
|
86
|
+
precision: import("vue-types").VueTypeValidableDef<number> & {
|
87
|
+
default: number;
|
88
|
+
} & {
|
89
|
+
default: number;
|
90
|
+
} & {
|
91
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
92
|
+
};
|
93
|
+
modelValue: import("vue-types").VueTypeDef<string | number> & {
|
94
|
+
default: string | number;
|
95
|
+
};
|
96
|
+
size: import("vue-types").VueTypeDef<string>;
|
97
|
+
rows: import("vue-types").VueTypeValidableDef<number> & {
|
98
|
+
default: number;
|
99
|
+
};
|
100
|
+
}>> & {
|
101
|
+
onPaste?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
102
|
+
onCompositionend?: (evt: CompositionEvent) => any;
|
103
|
+
onCompositionstart?: (evt: CompositionEvent) => any;
|
104
|
+
onCompositionupdate?: (evt: CompositionEvent) => any;
|
105
|
+
onFocus?: (evt: FocusEvent) => any;
|
106
|
+
onBlur?: (evt: FocusEvent) => any;
|
107
|
+
onChange?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
108
|
+
onInput?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
109
|
+
onKeydown?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
110
|
+
onKeypress?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
111
|
+
onKeyup?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
112
|
+
onEnter?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
113
|
+
"onUpdate:modelValue"?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
114
|
+
onClear?: () => any;
|
115
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "disabled" | "placeholder" | "prefix" | "step" | "min" | "max" | "maxlength" | "clearable" | "readonly" | "prefixIcon" | "suffixIcon" | "suffix" | "behavior" | "showWordLimit" | "showControl" | "showClearOnlyHover" | "precision" | "modelValue" | "rows">;
|
116
|
+
$attrs: {
|
117
|
+
[x: string]: unknown;
|
118
|
+
};
|
119
|
+
$refs: {
|
120
|
+
[x: string]: unknown;
|
121
|
+
};
|
122
|
+
$slots: Readonly<{
|
123
|
+
[name: string]: import("vue").Slot;
|
124
|
+
}>;
|
125
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
126
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
127
|
+
$emit: ((event: import("./input").EVENTS.UPDATE, value: string | number, evt?: Event | KeyboardEvent) => void) & ((event: import("./input").EVENTS.FOCUS, evt: FocusEvent) => void) & ((event: import("./input").EVENTS.BLUR, evt: FocusEvent) => void) & ((event: import("./input").EVENTS.CHANGE, value: string | number, evt?: Event | KeyboardEvent) => void) & ((event: import("./input").EVENTS.CLEAR) => void) & ((event: import("./input").EVENTS.INPUT, value: string | number, evt?: Event | KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYPRESS, value: string | number, evt?: Event | KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYDOWN, value: string | number, evt?: Event | KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYUP, value: string | number, evt?: Event | KeyboardEvent) => void) & ((event: import("./input").EVENTS.ENTER, value: string | number, evt?: Event | KeyboardEvent) => void) & ((event: import("./input").EVENTS.PASTE, value: string | number, evt?: Event | KeyboardEvent) => void) & ((event: import("./input").EVENTS.COMPOSITIONSTART, evt: CompositionEvent) => void) & ((event: import("./input").EVENTS.COMPOSITIONUPDATE, evt: CompositionEvent) => void) & ((event: import("./input").EVENTS.COMPOSITIONEND, evt: CompositionEvent) => void);
|
128
|
+
$el: any;
|
129
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
130
|
+
type: import("vue-types").VueTypeValidableDef<string> & {
|
131
|
+
default: string;
|
132
|
+
} & {
|
133
|
+
default: string;
|
134
|
+
};
|
135
|
+
clearable: import("vue-types").VueTypeValidableDef<boolean> & {
|
136
|
+
default: boolean;
|
137
|
+
};
|
138
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
139
|
+
default: boolean;
|
140
|
+
};
|
141
|
+
readonly: import("vue-types").VueTypeValidableDef<boolean> & {
|
142
|
+
default: boolean;
|
143
|
+
};
|
144
|
+
placeholder: import("vue-types").VueTypeValidableDef<string> & {
|
145
|
+
default: string;
|
146
|
+
} & {
|
147
|
+
default: string;
|
148
|
+
};
|
149
|
+
prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
150
|
+
default: string;
|
151
|
+
};
|
152
|
+
suffixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
153
|
+
default: string;
|
154
|
+
};
|
155
|
+
suffix: import("vue-types").VueTypeValidableDef<string> & {
|
156
|
+
default: string;
|
157
|
+
};
|
158
|
+
prefix: import("vue-types").VueTypeValidableDef<string> & {
|
159
|
+
default: string;
|
160
|
+
};
|
161
|
+
step: import("vue-types").VueTypeDef<number> & {
|
162
|
+
default: number;
|
163
|
+
};
|
164
|
+
max: import("vue-types").VueTypeDef<number> & {
|
165
|
+
default: number;
|
166
|
+
};
|
167
|
+
min: import("vue-types").VueTypeDef<number> & {
|
168
|
+
default: number;
|
169
|
+
};
|
170
|
+
maxlength: import("vue-types").VueTypeDef<number> & {
|
171
|
+
default: number;
|
172
|
+
};
|
173
|
+
behavior: import("vue-types").VueTypeDef<string> & {
|
174
|
+
default: string;
|
175
|
+
};
|
176
|
+
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
177
|
+
default: boolean;
|
178
|
+
};
|
179
|
+
showControl: import("vue-types").VueTypeValidableDef<boolean> & {
|
180
|
+
default: boolean;
|
181
|
+
} & {
|
182
|
+
default: boolean;
|
183
|
+
};
|
184
|
+
showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
185
|
+
default: boolean;
|
186
|
+
} & {
|
187
|
+
default: boolean;
|
188
|
+
};
|
189
|
+
precision: import("vue-types").VueTypeValidableDef<number> & {
|
190
|
+
default: number;
|
191
|
+
} & {
|
192
|
+
default: number;
|
193
|
+
} & {
|
194
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
195
|
+
};
|
196
|
+
modelValue: import("vue-types").VueTypeDef<string | number> & {
|
197
|
+
default: string | number;
|
198
|
+
};
|
199
|
+
size: import("vue-types").VueTypeDef<string>;
|
200
|
+
rows: import("vue-types").VueTypeValidableDef<number> & {
|
201
|
+
default: number;
|
202
|
+
};
|
203
|
+
}>> & {
|
204
|
+
onPaste?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
205
|
+
onCompositionend?: (evt: CompositionEvent) => any;
|
206
|
+
onCompositionstart?: (evt: CompositionEvent) => any;
|
207
|
+
onCompositionupdate?: (evt: CompositionEvent) => any;
|
208
|
+
onFocus?: (evt: FocusEvent) => any;
|
209
|
+
onBlur?: (evt: FocusEvent) => any;
|
210
|
+
onChange?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
211
|
+
onInput?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
212
|
+
onKeydown?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
213
|
+
onKeypress?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
214
|
+
onKeyup?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
215
|
+
onEnter?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
216
|
+
"onUpdate:modelValue"?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
217
|
+
onClear?: () => any;
|
218
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
219
|
+
"update:modelValue": (value: string | number, evt?: Event | KeyboardEvent) => {
|
220
|
+
value: string | number;
|
221
|
+
evt: Event | KeyboardEvent;
|
222
|
+
};
|
223
|
+
focus: (evt: FocusEvent) => FocusEvent;
|
224
|
+
blur: (evt: FocusEvent) => FocusEvent;
|
225
|
+
change: (value: string | number, evt?: Event | KeyboardEvent) => {
|
226
|
+
value: string | number;
|
227
|
+
evt: Event | KeyboardEvent;
|
228
|
+
};
|
229
|
+
clear: () => boolean;
|
230
|
+
input: (value: string | number, evt?: Event | KeyboardEvent) => {
|
231
|
+
value: string | number;
|
232
|
+
evt: Event | KeyboardEvent;
|
233
|
+
};
|
234
|
+
keypress: (value: string | number, evt?: Event | KeyboardEvent) => {
|
235
|
+
value: string | number;
|
236
|
+
evt: Event | KeyboardEvent;
|
237
|
+
};
|
238
|
+
keydown: (value: string | number, evt?: Event | KeyboardEvent) => {
|
239
|
+
value: string | number;
|
240
|
+
evt: Event | KeyboardEvent;
|
241
|
+
};
|
242
|
+
keyup: (value: string | number, evt?: Event | KeyboardEvent) => {
|
243
|
+
value: string | number;
|
244
|
+
evt: Event | KeyboardEvent;
|
245
|
+
};
|
246
|
+
enter: (value: string | number, evt?: Event | KeyboardEvent) => {
|
247
|
+
value: string | number;
|
248
|
+
evt: Event | KeyboardEvent;
|
249
|
+
};
|
250
|
+
paste: (value: string | number, evt?: Event | KeyboardEvent) => {
|
251
|
+
value: string | number;
|
252
|
+
evt: Event | KeyboardEvent;
|
253
|
+
};
|
254
|
+
compositionstart: (evt: CompositionEvent) => CompositionEvent;
|
255
|
+
compositionupdate: (evt: CompositionEvent) => CompositionEvent;
|
256
|
+
compositionend: (evt: CompositionEvent) => CompositionEvent;
|
257
|
+
}, string, {
|
258
|
+
type: string;
|
259
|
+
disabled: boolean;
|
260
|
+
placeholder: string;
|
261
|
+
prefix: string;
|
262
|
+
step: number;
|
263
|
+
min: number;
|
264
|
+
max: number;
|
265
|
+
maxlength: number;
|
266
|
+
clearable: boolean;
|
267
|
+
readonly: boolean;
|
268
|
+
prefixIcon: string;
|
269
|
+
suffixIcon: string;
|
270
|
+
suffix: string;
|
271
|
+
behavior: string;
|
272
|
+
showWordLimit: boolean;
|
273
|
+
showControl: boolean;
|
274
|
+
showClearOnlyHover: boolean;
|
275
|
+
precision: number;
|
276
|
+
modelValue: string | number;
|
277
|
+
rows: number;
|
278
|
+
}> & {
|
279
|
+
beforeCreate?: (() => void) | (() => void)[];
|
280
|
+
created?: (() => void) | (() => void)[];
|
281
|
+
beforeMount?: (() => void) | (() => void)[];
|
282
|
+
mounted?: (() => void) | (() => void)[];
|
283
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
284
|
+
updated?: (() => void) | (() => void)[];
|
285
|
+
activated?: (() => void) | (() => void)[];
|
286
|
+
deactivated?: (() => void) | (() => void)[];
|
287
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
288
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
289
|
+
destroyed?: (() => void) | (() => void)[];
|
290
|
+
unmounted?: (() => void) | (() => void)[];
|
291
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
292
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
293
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
|
294
|
+
};
|
295
|
+
$forceUpdate: () => void;
|
296
|
+
$nextTick: typeof import("vue").nextTick;
|
297
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
298
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
299
|
+
type: import("vue-types").VueTypeValidableDef<string> & {
|
300
|
+
default: string;
|
301
|
+
} & {
|
302
|
+
default: string;
|
303
|
+
};
|
304
|
+
clearable: import("vue-types").VueTypeValidableDef<boolean> & {
|
305
|
+
default: boolean;
|
306
|
+
};
|
307
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
308
|
+
default: boolean;
|
309
|
+
};
|
310
|
+
readonly: import("vue-types").VueTypeValidableDef<boolean> & {
|
311
|
+
default: boolean;
|
312
|
+
};
|
313
|
+
placeholder: import("vue-types").VueTypeValidableDef<string> & {
|
314
|
+
default: string;
|
315
|
+
} & {
|
316
|
+
default: string;
|
317
|
+
};
|
318
|
+
prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
319
|
+
default: string;
|
320
|
+
};
|
321
|
+
suffixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
322
|
+
default: string;
|
323
|
+
};
|
324
|
+
suffix: import("vue-types").VueTypeValidableDef<string> & {
|
325
|
+
default: string;
|
326
|
+
};
|
327
|
+
prefix: import("vue-types").VueTypeValidableDef<string> & {
|
328
|
+
default: string;
|
329
|
+
};
|
330
|
+
step: import("vue-types").VueTypeDef<number> & {
|
331
|
+
default: number;
|
332
|
+
};
|
333
|
+
max: import("vue-types").VueTypeDef<number> & {
|
334
|
+
default: number;
|
335
|
+
};
|
336
|
+
min: import("vue-types").VueTypeDef<number> & {
|
337
|
+
default: number;
|
338
|
+
};
|
339
|
+
maxlength: import("vue-types").VueTypeDef<number> & {
|
340
|
+
default: number;
|
341
|
+
};
|
342
|
+
behavior: import("vue-types").VueTypeDef<string> & {
|
343
|
+
default: string;
|
344
|
+
};
|
345
|
+
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
346
|
+
default: boolean;
|
347
|
+
};
|
348
|
+
showControl: import("vue-types").VueTypeValidableDef<boolean> & {
|
349
|
+
default: boolean;
|
350
|
+
} & {
|
351
|
+
default: boolean;
|
352
|
+
};
|
353
|
+
showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
354
|
+
default: boolean;
|
355
|
+
} & {
|
356
|
+
default: boolean;
|
357
|
+
};
|
358
|
+
precision: import("vue-types").VueTypeValidableDef<number> & {
|
359
|
+
default: number;
|
360
|
+
} & {
|
361
|
+
default: number;
|
362
|
+
} & {
|
363
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
364
|
+
};
|
365
|
+
modelValue: import("vue-types").VueTypeDef<string | number> & {
|
366
|
+
default: string | number;
|
367
|
+
};
|
368
|
+
size: import("vue-types").VueTypeDef<string>;
|
369
|
+
rows: import("vue-types").VueTypeValidableDef<number> & {
|
370
|
+
default: number;
|
371
|
+
};
|
372
|
+
}>> & {
|
373
|
+
onPaste?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
374
|
+
onCompositionend?: (evt: CompositionEvent) => any;
|
375
|
+
onCompositionstart?: (evt: CompositionEvent) => any;
|
376
|
+
onCompositionupdate?: (evt: CompositionEvent) => any;
|
377
|
+
onFocus?: (evt: FocusEvent) => any;
|
378
|
+
onBlur?: (evt: FocusEvent) => any;
|
379
|
+
onChange?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
380
|
+
onInput?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
381
|
+
onKeydown?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
382
|
+
onKeypress?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
383
|
+
onKeyup?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
384
|
+
onEnter?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
385
|
+
"onUpdate:modelValue"?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
386
|
+
onClear?: () => any;
|
387
|
+
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
|
388
|
+
__isFragment?: never;
|
389
|
+
__isTeleport?: never;
|
390
|
+
__isSuspense?: never;
|
391
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
2
392
|
type: import("vue-types").VueTypeValidableDef<string> & {
|
3
393
|
default: string;
|
4
394
|
} & {
|
@@ -72,6 +462,21 @@ declare const BkInput: import("vue").DefineComponent<{
|
|
72
462
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
73
463
|
default: number;
|
74
464
|
};
|
465
|
+
}>> & {
|
466
|
+
onPaste?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
467
|
+
onCompositionend?: (evt: CompositionEvent) => any;
|
468
|
+
onCompositionstart?: (evt: CompositionEvent) => any;
|
469
|
+
onCompositionupdate?: (evt: CompositionEvent) => any;
|
470
|
+
onFocus?: (evt: FocusEvent) => any;
|
471
|
+
onBlur?: (evt: FocusEvent) => any;
|
472
|
+
onChange?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
473
|
+
onInput?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
474
|
+
onKeydown?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
475
|
+
onKeypress?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
476
|
+
onKeyup?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
477
|
+
onEnter?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
478
|
+
"onUpdate:modelValue"?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
479
|
+
onClear?: () => any;
|
75
480
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
76
481
|
"update:modelValue": (value: string | number, evt?: Event | KeyboardEvent) => {
|
77
482
|
value: string | number;
|
@@ -111,96 +516,7 @@ declare const BkInput: import("vue").DefineComponent<{
|
|
111
516
|
compositionstart: (evt: CompositionEvent) => CompositionEvent;
|
112
517
|
compositionupdate: (evt: CompositionEvent) => CompositionEvent;
|
113
518
|
compositionend: (evt: CompositionEvent) => CompositionEvent;
|
114
|
-
}, string,
|
115
|
-
type: import("vue-types").VueTypeValidableDef<string> & {
|
116
|
-
default: string;
|
117
|
-
} & {
|
118
|
-
default: string;
|
119
|
-
};
|
120
|
-
clearable: import("vue-types").VueTypeValidableDef<boolean> & {
|
121
|
-
default: boolean;
|
122
|
-
};
|
123
|
-
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
124
|
-
default: boolean;
|
125
|
-
};
|
126
|
-
readonly: import("vue-types").VueTypeValidableDef<boolean> & {
|
127
|
-
default: boolean;
|
128
|
-
};
|
129
|
-
placeholder: import("vue-types").VueTypeValidableDef<string> & {
|
130
|
-
default: string;
|
131
|
-
} & {
|
132
|
-
default: string;
|
133
|
-
};
|
134
|
-
prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
135
|
-
default: string;
|
136
|
-
};
|
137
|
-
suffixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
138
|
-
default: string;
|
139
|
-
};
|
140
|
-
suffix: import("vue-types").VueTypeValidableDef<string> & {
|
141
|
-
default: string;
|
142
|
-
};
|
143
|
-
prefix: import("vue-types").VueTypeValidableDef<string> & {
|
144
|
-
default: string;
|
145
|
-
};
|
146
|
-
step: import("vue-types").VueTypeDef<number> & {
|
147
|
-
default: number;
|
148
|
-
};
|
149
|
-
max: import("vue-types").VueTypeDef<number> & {
|
150
|
-
default: number;
|
151
|
-
};
|
152
|
-
min: import("vue-types").VueTypeDef<number> & {
|
153
|
-
default: number;
|
154
|
-
};
|
155
|
-
maxlength: import("vue-types").VueTypeDef<number> & {
|
156
|
-
default: number;
|
157
|
-
};
|
158
|
-
behavior: import("vue-types").VueTypeDef<string> & {
|
159
|
-
default: string;
|
160
|
-
};
|
161
|
-
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
162
|
-
default: boolean;
|
163
|
-
};
|
164
|
-
showControl: import("vue-types").VueTypeValidableDef<boolean> & {
|
165
|
-
default: boolean;
|
166
|
-
} & {
|
167
|
-
default: boolean;
|
168
|
-
};
|
169
|
-
showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
170
|
-
default: boolean;
|
171
|
-
} & {
|
172
|
-
default: boolean;
|
173
|
-
};
|
174
|
-
precision: import("vue-types").VueTypeValidableDef<number> & {
|
175
|
-
default: number;
|
176
|
-
} & {
|
177
|
-
default: number;
|
178
|
-
} & {
|
179
|
-
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
180
|
-
};
|
181
|
-
modelValue: import("vue-types").VueTypeDef<string | number> & {
|
182
|
-
default: string | number;
|
183
|
-
};
|
184
|
-
size: import("vue-types").VueTypeDef<string>;
|
185
|
-
rows: import("vue-types").VueTypeValidableDef<number> & {
|
186
|
-
default: number;
|
187
|
-
};
|
188
|
-
}>> & {
|
189
|
-
onPaste?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
190
|
-
onCompositionend?: (evt: CompositionEvent) => any;
|
191
|
-
onCompositionstart?: (evt: CompositionEvent) => any;
|
192
|
-
onCompositionupdate?: (evt: CompositionEvent) => any;
|
193
|
-
onFocus?: (evt: FocusEvent) => any;
|
194
|
-
onBlur?: (evt: FocusEvent) => any;
|
195
|
-
onChange?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
196
|
-
onInput?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
197
|
-
onKeydown?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
198
|
-
onKeypress?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
199
|
-
onKeyup?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
200
|
-
onEnter?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
201
|
-
"onUpdate:modelValue"?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
202
|
-
onClear?: () => any;
|
203
|
-
}, {
|
519
|
+
}, string, {
|
204
520
|
type: string;
|
205
521
|
disabled: boolean;
|
206
522
|
placeholder: string;
|
@@ -221,5 +537,5 @@ declare const BkInput: import("vue").DefineComponent<{
|
|
221
537
|
precision: number;
|
222
538
|
modelValue: string | number;
|
223
539
|
rows: number;
|
224
|
-
}
|
540
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
225
541
|
export default BkInput;
|
package/lib/input/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,
|
1
|
+
!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("../shared"),require("vue"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon"],r);else{var t="object"==typeof exports?r(require("../shared"),require("vue"),require("../icon")):r(e["../shared"],e.vue,e["../icon"]);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(self,((e,r,t)=>(()=>{"use strict";var o={6870:e=>{e.exports=t},4212:r=>{r.exports=e},748:e=>{e.exports=r}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var t=n[e]={exports:{}};return o[e](t,t.exports,a),t.exports}a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{a.r(l),a.d(l,{default:()=>v});var e=a(4212);function r(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}function t(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var o=a(748);Object.create,Object.create;var n,i,u=a(6870),s={type:e.PropTypes.string.def("text"),clearable:e.PropTypes.bool,disabled:e.PropTypes.bool,readonly:e.PropTypes.bool,placeholder:e.PropTypes.string.def("Enter"),prefixIcon:e.PropTypes.string,suffixIcon:e.PropTypes.string,suffix:e.PropTypes.string,prefix:e.PropTypes.string,step:e.PropTypes.integer,max:e.PropTypes.integer,min:e.PropTypes.integer,maxlength:e.PropTypes.integer,behavior:e.PropTypes.commonType(["simplicity","normal"]).def("normal"),showWordLimit:e.PropTypes.bool,showControl:e.PropTypes.bool.def(!0),showClearOnlyHover:e.PropTypes.bool.def(!1),precision:e.PropTypes.number.def(0).validate((function(e){return e>=0&&e<20})),modelValue:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def(""),size:e.PropTypes.size(),rows:e.PropTypes.number};function c(e,r){return{value:e,evt:r}}function p(e){return e}!function(e){e.UPDATE="update:modelValue",e.FOCUS="focus",e.BLUR="blur",e.CHANGE="change",e.CLEAR="clear",e.INPUT="input",e.KEYPRESS="keypress",e.KEYDOWN="keydown",e.KEYUP="keyup",e.ENTER="enter",e.PASTE="paste",e.COMPOSITIONSTART="compositionstart",e.COMPOSITIONUPDATE="compositionupdate",e.COMPOSITIONEND="compositionend"}(i||(i={}));var d=(t(n={},i.UPDATE,c),t(n,i.FOCUS,(function(e){return e})),t(n,i.BLUR,(function(e){return e})),t(n,i.CHANGE,c),t(n,i.CLEAR,(function(){return!0})),t(n,i.INPUT,c),t(n,i.KEYPRESS,c),t(n,i.KEYDOWN,c),t(n,i.KEYUP,c),t(n,i.ENTER,c),t(n,i.PASTE,c),t(n,i.COMPOSITIONSTART,p),t(n,i.COMPOSITIONUPDATE,p),t(n,i.COMPOSITIONEND,p),n);const f=(0,o.defineComponent)({name:"Input",inheritAttrs:!1,props:s,emits:d,setup:function(n,a){var l=(0,e.useFormItem)(),s=(0,o.ref)(!1),c=(0,o.ref)(!1),p=(0,o.computed)((function(){return"textarea"===n.type})),d=(0,o.computed)((function(){return p.value?"bk-textarea":"bk-input"})),f=a.attrs,v=f.class,m=f.style,y=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)r.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]])}return t}(f,["class","style"]),b=(0,o.ref)(),P=(0,o.computed)((function(){var r;return(0,e.classes)((t(r={},"".concat(d.value,"--").concat(n.size),!!n.size),t(r,"is-focused",s.value),t(r,"is-readonly",n.readonly),t(r,"is-disabled",n.disabled),t(r,"is-simplicity","simplicity"===n.behavior),t(r,"".concat(v),!!v),r),d.value)})),T={search:function(){return(0,o.createVNode)(u.Search,null,null)},password:function(){return(0,o.createVNode)(u.Eye,{onClick:B},null)}},x=z("suffix-icon"),g=(0,o.computed)((function(){var e=T[n.type];return E.value?(0,o.createVNode)(u.Unvisible,{onClick:B,class:x},null):e?(0,o.createVNode)(e,{class:x},null):null})),h=(0,o.computed)((function(){return"number"===n.type})),N=(0,o.computed)((function(){return Math.floor(n.maxlength)})),E=(0,o.ref)(!1),O=(0,o.computed)((function(){return(0,e.classes)(t({"show-clear-only-hover":n.showClearOnlyHover},"".concat(d.value,"--clear-icon"),!0),x)})),S=(0,o.computed)((function(){return(0,e.classes)({"is-disabled":n.disabled||n.modelValue>=n.max})})),C=(0,o.computed)((function(){return(0,e.classes)({"is-disabled":n.disabled||n.modelValue<=n.min})}));function I(){var e;if(!n.disabled){var r=h.value?n.min:"";a.emit(i.UPDATE,r),a.emit(i.CHANGE,r),a.emit(i.CLEAR),null===(e=null==l?void 0:l.validate)||void 0===e||e.call(l,"change")}}function A(e){s.value=!0,a.emit(i.FOCUS,e)}function w(e){var r;if(s.value=!1,a.emit(i.BLUR,e),h.value&&(e.target.value>n.max||e.target.value<n.min)){var t=e.target.value>n.max?n.max:n.min;a.emit(i.UPDATE,t),a.emit(i.CHANGE,t)}null===(r=null==l?void 0:l.validate)||void 0===r||r.call(l,"blur")}a.expose({focus:function(){b.value.focus()},clear:I});var U,V,j=[i.KEYUP,i.KEYDOWN,i.KEYPRESS,i.PASTE,i.CHANGE,i.INPUT].map((function(e){return function(r){var t;e!==i.KEYDOWN||"Enter"!==r.code&&"Enter"!==r.key&&13!==r.keyCode||a.emit(i.ENTER,r.target.value,r),c.value&&[i.INPUT,i.CHANGE].some((function(r){return e===r}))||(e===i.INPUT&&a.emit(i.UPDATE,h.value?+r.target.value:r.target.value),a.emit(e,r.target.value,r),e===i.INPUT&&(null===(t=null==l?void 0:l.validate)||void 0===t||t.call(l,"change")))}})),D=(V=6,function(e){if(Array.isArray(e))return e}(U=j)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,n,a=[],l=!0,i=!1;try{for(t=t.call(e);!(l=(o=t.next()).done)&&(a.push(o.value),!r||a.length!==r);l=!0);}catch(e){i=!0,n=e}finally{try{l||null==t.return||t.return()}finally{if(i)throw n}}return a}}(U,V)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(e,t):void 0}}(U,V)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),k=D[0],R=D[1],K=D[2],M=D[3],Y=D[4],H=D[5];function L(){c.value=!0}function F(e){c.value=!1,H(e)}function q(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=parseInt(String(e),10),o=Number.isInteger(n.precision)?n.precision:0,a=parseFloat(n.modelValue.toString()),l=Number.isInteger(t)?t:1,i=a+(r?l:-1*l);return Number.isInteger(n.max)&&(i=Math.min(i,n.max)),Number.isInteger(n.min)&&(i=Math.max(i,n.min)),+i.toFixed(o)}function G(){if(!n.disabled){var e=q(n.step);a.emit(i.UPDATE,e)}}function W(){if(!n.disabled){var e=q(n.step,!1);a.emit(i.UPDATE,e)}}function z(e){return"".concat(d.value,"--").concat(e)}function B(){E.value=!E.value}var _=(0,o.computed)((function(){return{value:n.modelValue,maxlength:n.maxlength,placeholder:n.placeholder,readonly:n.readonly,disabled:n.disabled,onInput:H,onFocus:A,onBlur:w,onPaste:M,onChange:Y,onKeypress:K,onKeydown:R,onKeyup:k,onCompositionstart:L,onCompositionend:F}}));return function(){var e,r,t,l,i,s;return(0,o.createVNode)("div",{class:P.value,style:m},[null!==(t=null===(r=null===(e=a.slots)||void 0===e?void 0:e.prefix)||void 0===r?void 0:r.call(e))&&void 0!==t?t:n.prefix&&(0,o.createVNode)("div",{class:z("prefix-area")},[(0,o.createVNode)("span",{class:z("prefix-area--text")},[n.prefix])]),p.value?(0,o.createVNode)("textarea",(0,o.mergeProps)({ref:b,spellcheck:!1},y,_.value,{rows:n.rows}),null):(0,o.createVNode)("input",(0,o.mergeProps)({spellcheck:!1},y,{ref:b,class:"".concat(d.value,"--text"),type:E.value&&"password"===n.type?"text":n.type,step:n.step,max:n.max,min:n.min},_.value),null),!p.value&&n.clearable&&!!n.modelValue&&(0,o.createVNode)(u.Close,{onClick:I,class:O.value},null),g.value,"number"==typeof n.maxlength&&(n.showWordLimit||p.value)&&(0,o.createVNode)("p",{class:z("max-length")},[n.modelValue.toString().length,(0,o.createTextVNode)("/"),(0,o.createVNode)("span",null,[N.value])]),h.value&&n.showControl&&(0,o.createVNode)("div",{class:z("number-control")},[(0,o.createVNode)(u.DownSmall,{class:S.value,onClick:G},null),(0,o.createVNode)(u.DownSmall,{class:C.value,onClick:W},null)]),null!==(s=null===(i=null===(l=a.slots)||void 0===l?void 0:l.suffix)||void 0===i?void 0:i.call(l))&&void 0!==s?s:n.suffix&&(0,o.createVNode)("div",{class:z("suffix-area")},[(0,o.createVNode)("span",{class:z("suffix-area--text")},[n.suffix])])])}}}),v=(0,e.withInstall)(f)})(),l})()));
|