bkui-vue 0.0.1-beta.133 → 0.0.1-beta.136
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 +34 -34
- package/dist/index.esm.js +114 -92
- package/dist/index.umd.js +34 -34
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/index.d.ts +4 -4
- package/lib/dialog/dialog.css +13 -9
- package/lib/dialog/dialog.less +16 -9
- package/lib/dialog/dialog.variable.css +13 -9
- package/lib/dialog/index.js +1 -1
- package/lib/directives/index.js +1 -1
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +4 -4
- package/lib/input/index.d.ts +54 -113
- package/lib/input/index.js +1 -1
- package/lib/input/input.d.ts +13 -23
- package/lib/popover/index.d.ts +4 -4
- package/lib/popover/popover.d.ts +1 -1
- package/lib/popover2/index.d.ts +4 -4
- package/lib/popover2/popover2.d.ts +1 -1
- package/lib/table/index.js +1 -1
- package/lib/table/table.css +15 -12
- package/lib/table/table.less +18 -18
- package/lib/table/table.variable.css +15 -12
- package/lib/tag-input/index.d.ts +4 -4
- package/lib/tag-input/tag-input.d.ts +1 -1
- package/package.json +1 -1
package/lib/input/index.d.ts
CHANGED
@@ -21,7 +21,6 @@ declare const BkInput: {
|
|
21
21
|
showControl: boolean;
|
22
22
|
showClearOnlyHover: boolean;
|
23
23
|
precision: number;
|
24
|
-
modelValue: string | number;
|
25
24
|
rows: number;
|
26
25
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
27
26
|
type: import("vue-types").VueTypeValidableDef<string> & {
|
@@ -90,29 +89,27 @@ declare const BkInput: {
|
|
90
89
|
} & {
|
91
90
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
92
91
|
};
|
93
|
-
modelValue: import("vue-types").VueTypeDef<string | number
|
94
|
-
default: string | number;
|
95
|
-
};
|
92
|
+
modelValue: import("vue-types").VueTypeDef<string | number>;
|
96
93
|
size: import("vue-types").VueTypeDef<string>;
|
97
94
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
98
95
|
default: number;
|
99
96
|
};
|
100
97
|
}>> & {
|
101
|
-
onPaste?: (
|
98
|
+
onPaste?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
102
99
|
onCompositionend?: (evt: CompositionEvent) => any;
|
103
100
|
onCompositionstart?: (evt: CompositionEvent) => any;
|
104
101
|
onCompositionupdate?: (evt: CompositionEvent) => any;
|
105
102
|
onFocus?: (evt: FocusEvent) => any;
|
106
103
|
onBlur?: (evt: FocusEvent) => any;
|
107
|
-
onChange?: (
|
108
|
-
onInput?: (
|
109
|
-
onKeydown?: (
|
110
|
-
onKeypress?: (
|
111
|
-
onKeyup?: (
|
112
|
-
onEnter?: (
|
113
|
-
"onUpdate:modelValue"?: (
|
104
|
+
onChange?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
105
|
+
onInput?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
106
|
+
onKeydown?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
107
|
+
onKeypress?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
108
|
+
onKeyup?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
109
|
+
onEnter?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
110
|
+
"onUpdate:modelValue"?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
114
111
|
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" | "
|
112
|
+
} & 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" | "rows">;
|
116
113
|
$attrs: {
|
117
114
|
[x: string]: unknown;
|
118
115
|
};
|
@@ -124,7 +121,7 @@ declare const BkInput: {
|
|
124
121
|
}>;
|
125
122
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
126
123
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
127
|
-
$emit: ((event: import("./input").EVENTS.UPDATE,
|
124
|
+
$emit: ((event: import("./input").EVENTS.UPDATE, _value: any, _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: any, _evt?: Event | KeyboardEvent) => void) & ((event: import("./input").EVENTS.CLEAR) => void) & ((event: import("./input").EVENTS.INPUT, _value: any, _evt?: Event | KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYPRESS, _value: any, _evt?: Event | KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYDOWN, _value: any, _evt?: Event | KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYUP, _value: any, _evt?: Event | KeyboardEvent) => void) & ((event: import("./input").EVENTS.ENTER, _value: any, _evt?: Event | KeyboardEvent) => void) & ((event: import("./input").EVENTS.PASTE, _value: any, _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
125
|
$el: any;
|
129
126
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
130
127
|
type: import("vue-types").VueTypeValidableDef<string> & {
|
@@ -193,64 +190,38 @@ declare const BkInput: {
|
|
193
190
|
} & {
|
194
191
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
195
192
|
};
|
196
|
-
modelValue: import("vue-types").VueTypeDef<string | number
|
197
|
-
default: string | number;
|
198
|
-
};
|
193
|
+
modelValue: import("vue-types").VueTypeDef<string | number>;
|
199
194
|
size: import("vue-types").VueTypeDef<string>;
|
200
195
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
201
196
|
default: number;
|
202
197
|
};
|
203
198
|
}>> & {
|
204
|
-
onPaste?: (
|
199
|
+
onPaste?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
205
200
|
onCompositionend?: (evt: CompositionEvent) => any;
|
206
201
|
onCompositionstart?: (evt: CompositionEvent) => any;
|
207
202
|
onCompositionupdate?: (evt: CompositionEvent) => any;
|
208
203
|
onFocus?: (evt: FocusEvent) => any;
|
209
204
|
onBlur?: (evt: FocusEvent) => any;
|
210
|
-
onChange?: (
|
211
|
-
onInput?: (
|
212
|
-
onKeydown?: (
|
213
|
-
onKeypress?: (
|
214
|
-
onKeyup?: (
|
215
|
-
onEnter?: (
|
216
|
-
"onUpdate:modelValue"?: (
|
205
|
+
onChange?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
206
|
+
onInput?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
207
|
+
onKeydown?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
208
|
+
onKeypress?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
209
|
+
onKeyup?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
210
|
+
onEnter?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
211
|
+
"onUpdate:modelValue"?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
217
212
|
onClear?: () => any;
|
218
213
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
219
|
-
"update:modelValue": (
|
220
|
-
value: string | number;
|
221
|
-
evt: Event | KeyboardEvent;
|
222
|
-
};
|
214
|
+
"update:modelValue": (_value: any, _evt?: Event | KeyboardEvent) => boolean;
|
223
215
|
focus: (evt: FocusEvent) => FocusEvent;
|
224
216
|
blur: (evt: FocusEvent) => FocusEvent;
|
225
|
-
change: (
|
226
|
-
value: string | number;
|
227
|
-
evt: Event | KeyboardEvent;
|
228
|
-
};
|
217
|
+
change: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
|
229
218
|
clear: () => boolean;
|
230
|
-
input: (
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
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
|
-
};
|
219
|
+
input: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
|
220
|
+
keypress: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
|
221
|
+
keydown: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
|
222
|
+
keyup: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
|
223
|
+
enter: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
|
224
|
+
paste: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
|
254
225
|
compositionstart: (evt: CompositionEvent) => CompositionEvent;
|
255
226
|
compositionupdate: (evt: CompositionEvent) => CompositionEvent;
|
256
227
|
compositionend: (evt: CompositionEvent) => CompositionEvent;
|
@@ -273,7 +244,6 @@ declare const BkInput: {
|
|
273
244
|
showControl: boolean;
|
274
245
|
showClearOnlyHover: boolean;
|
275
246
|
precision: number;
|
276
|
-
modelValue: string | number;
|
277
247
|
rows: number;
|
278
248
|
}> & {
|
279
249
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -362,27 +332,25 @@ declare const BkInput: {
|
|
362
332
|
} & {
|
363
333
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
364
334
|
};
|
365
|
-
modelValue: import("vue-types").VueTypeDef<string | number
|
366
|
-
default: string | number;
|
367
|
-
};
|
335
|
+
modelValue: import("vue-types").VueTypeDef<string | number>;
|
368
336
|
size: import("vue-types").VueTypeDef<string>;
|
369
337
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
370
338
|
default: number;
|
371
339
|
};
|
372
340
|
}>> & {
|
373
|
-
onPaste?: (
|
341
|
+
onPaste?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
374
342
|
onCompositionend?: (evt: CompositionEvent) => any;
|
375
343
|
onCompositionstart?: (evt: CompositionEvent) => any;
|
376
344
|
onCompositionupdate?: (evt: CompositionEvent) => any;
|
377
345
|
onFocus?: (evt: FocusEvent) => any;
|
378
346
|
onBlur?: (evt: FocusEvent) => any;
|
379
|
-
onChange?: (
|
380
|
-
onInput?: (
|
381
|
-
onKeydown?: (
|
382
|
-
onKeypress?: (
|
383
|
-
onKeyup?: (
|
384
|
-
onEnter?: (
|
385
|
-
"onUpdate:modelValue"?: (
|
347
|
+
onChange?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
348
|
+
onInput?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
349
|
+
onKeydown?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
350
|
+
onKeypress?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
351
|
+
onKeyup?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
352
|
+
onEnter?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
353
|
+
"onUpdate:modelValue"?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
386
354
|
onClear?: () => any;
|
387
355
|
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
|
388
356
|
__isFragment?: never;
|
@@ -455,64 +423,38 @@ declare const BkInput: {
|
|
455
423
|
} & {
|
456
424
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
457
425
|
};
|
458
|
-
modelValue: import("vue-types").VueTypeDef<string | number
|
459
|
-
default: string | number;
|
460
|
-
};
|
426
|
+
modelValue: import("vue-types").VueTypeDef<string | number>;
|
461
427
|
size: import("vue-types").VueTypeDef<string>;
|
462
428
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
463
429
|
default: number;
|
464
430
|
};
|
465
431
|
}>> & {
|
466
|
-
onPaste?: (
|
432
|
+
onPaste?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
467
433
|
onCompositionend?: (evt: CompositionEvent) => any;
|
468
434
|
onCompositionstart?: (evt: CompositionEvent) => any;
|
469
435
|
onCompositionupdate?: (evt: CompositionEvent) => any;
|
470
436
|
onFocus?: (evt: FocusEvent) => any;
|
471
437
|
onBlur?: (evt: FocusEvent) => any;
|
472
|
-
onChange?: (
|
473
|
-
onInput?: (
|
474
|
-
onKeydown?: (
|
475
|
-
onKeypress?: (
|
476
|
-
onKeyup?: (
|
477
|
-
onEnter?: (
|
478
|
-
"onUpdate:modelValue"?: (
|
438
|
+
onChange?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
439
|
+
onInput?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
440
|
+
onKeydown?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
441
|
+
onKeypress?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
442
|
+
onKeyup?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
443
|
+
onEnter?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
444
|
+
"onUpdate:modelValue"?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
479
445
|
onClear?: () => any;
|
480
446
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
481
|
-
"update:modelValue": (
|
482
|
-
value: string | number;
|
483
|
-
evt: Event | KeyboardEvent;
|
484
|
-
};
|
447
|
+
"update:modelValue": (_value: any, _evt?: Event | KeyboardEvent) => boolean;
|
485
448
|
focus: (evt: FocusEvent) => FocusEvent;
|
486
449
|
blur: (evt: FocusEvent) => FocusEvent;
|
487
|
-
change: (
|
488
|
-
value: string | number;
|
489
|
-
evt: Event | KeyboardEvent;
|
490
|
-
};
|
450
|
+
change: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
|
491
451
|
clear: () => boolean;
|
492
|
-
input: (
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
evt: Event | KeyboardEvent;
|
499
|
-
};
|
500
|
-
keydown: (value: string | number, evt?: Event | KeyboardEvent) => {
|
501
|
-
value: string | number;
|
502
|
-
evt: Event | KeyboardEvent;
|
503
|
-
};
|
504
|
-
keyup: (value: string | number, evt?: Event | KeyboardEvent) => {
|
505
|
-
value: string | number;
|
506
|
-
evt: Event | KeyboardEvent;
|
507
|
-
};
|
508
|
-
enter: (value: string | number, evt?: Event | KeyboardEvent) => {
|
509
|
-
value: string | number;
|
510
|
-
evt: Event | KeyboardEvent;
|
511
|
-
};
|
512
|
-
paste: (value: string | number, evt?: Event | KeyboardEvent) => {
|
513
|
-
value: string | number;
|
514
|
-
evt: Event | KeyboardEvent;
|
515
|
-
};
|
452
|
+
input: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
|
453
|
+
keypress: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
|
454
|
+
keydown: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
|
455
|
+
keyup: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
|
456
|
+
enter: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
|
457
|
+
paste: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
|
516
458
|
compositionstart: (evt: CompositionEvent) => CompositionEvent;
|
517
459
|
compositionupdate: (evt: CompositionEvent) => CompositionEvent;
|
518
460
|
compositionend: (evt: CompositionEvent) => CompositionEvent;
|
@@ -535,7 +477,6 @@ declare const BkInput: {
|
|
535
477
|
showControl: boolean;
|
536
478
|
showClearOnlyHover: boolean;
|
537
479
|
precision: number;
|
538
|
-
modelValue: string | number;
|
539
480
|
rows: number;
|
540
481
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
541
482
|
export default BkInput;
|
package/lib/input/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon")):t(e["../shared"],e.vue,e["../icon"]);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,((e,t,r)=>(()=>{"use strict";var o={6870:e=>{e.exports=r},4212:t=>{t.exports=e},748:e=>{e.exports=t}},n={};function a(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return o[e](r,r.exports,a),r.exports}a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),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 t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,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]),size:e.PropTypes.size(),rows:e.PropTypes.number};function c(e,t){return!0}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=(r(n={},i.UPDATE,c),r(n,i.FOCUS,(function(e){return e})),r(n,i.BLUR,(function(e){return e})),r(n,i.CHANGE,c),r(n,i.CLEAR,(function(){return!0})),r(n,i.INPUT,c),r(n,i.KEYPRESS,c),r(n,i.KEYDOWN,c),r(n,i.KEYUP,c),r(n,i.ENTER,c),r(n,i.PASTE,c),r(n,i.COMPOSITIONSTART,p),r(n,i.COMPOSITIONUPDATE,p),r(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,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}(f,["class","style"]);console.log(y,333,a.attrs);var b=(0,o.ref)(),P=(0,o.computed)((function(){var t;return(0,e.classes)((r(t={},"".concat(d.value,"--").concat(n.size),!!n.size),r(t,"is-focused",s.value),r(t,"is-readonly",n.readonly),r(t,"is-disabled",n.disabled),r(t,"is-simplicity","simplicity"===n.behavior),r(t,"".concat(v),!!v),t),d.value)})),T={search:function(){return(0,o.createVNode)(u.Search,null,null)},password:function(){return(0,o.createVNode)(u.Eye,{onClick:q},null)}},g=F("suffix-icon"),x=(0,o.computed)((function(){var e=T[n.type];return O.value?(0,o.createVNode)(u.Unvisible,{onClick:q,class:g},null):e?(0,o.createVNode)(e,{class:g},null):null})),h=(0,o.computed)((function(){return"number"===n.type})),N=(0,o.computed)((function(){return Math.floor(n.maxlength)})),O=(0,o.ref)(!1),E=(0,o.computed)((function(){return(0,e.classes)(r({"show-clear-only-hover":n.showClearOnlyHover},"".concat(d.value,"--clear-icon"),!0),g)})),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 t=h.value?n.min:"";a.emit(i.UPDATE,t),a.emit(i.CHANGE,t),a.emit(i.CLEAR),null===(e=null==l?void 0:l.validate)||void 0===e||e.call(l,"change")}}a.expose({focus:function(){b.value.focus()},clear:I});var A,V,w=[i.KEYUP,i.KEYDOWN,i.KEYPRESS,i.PASTE,i.CHANGE,i.INPUT].map((function(e){return function(t){var r;t.stopPropagation(),e!==i.KEYDOWN||"Enter"!==t.code&&"Enter"!==t.key&&13!==t.keyCode||a.emit(i.ENTER,t.target.value,t),c.value&&[i.INPUT,i.CHANGE].some((function(t){return e===t}))||(e===i.INPUT&&a.emit(i.UPDATE,h.value?+t.target.value:t.target.value),a.emit(e,t.target.value,t),e===i.INPUT&&(null===(r=null==l?void 0:l.validate)||void 0===r||r.call(l,"change")))}})),U=(V=6,function(e){if(Array.isArray(e))return e}(A=w)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,a=[],l=!0,i=!1;try{for(r=r.call(e);!(l=(o=r.next()).done)&&(a.push(o.value),!t||a.length!==t);l=!0);}catch(e){i=!0,n=e}finally{try{l||null==r.return||r.return()}finally{if(i)throw n}}return a}}(A,V)||function(e,r){if(e){if("string"==typeof e)return t(e,r);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)?t(e,r):void 0}}(A,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.")}()),j=U[0],D=U[1],k=U[2],R=U[3],K=U[4],M=U[5];function Y(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=parseInt(String(e),10),o=Number.isInteger(n.precision)?n.precision:0,a=parseFloat(n.modelValue.toString()),l=Number.isInteger(r)?r:1,i=a+(t?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 H(){if(!n.disabled){var e=Y(n.step);a.emit(i.UPDATE,e)}}function L(){if(!n.disabled){var e=Y(n.step,!1);a.emit(i.UPDATE,e)}}function F(e){return"".concat(d.value,"--").concat(e)}function q(){O.value=!O.value}var G=(0,o.computed)((function(){var e=void 0===n.modelValue||null===n.modelValue?{}:{value:n.modelValue};return Object.assign(Object.assign({},e),{maxlength:n.maxlength,placeholder:n.placeholder,readonly:n.readonly,disabled:n.disabled})})),W={onInput:M,onFocus:function(e){s.value=!0,a.emit(i.FOCUS,e)},onBlur:function(e){var t;if(s.value=!1,a.emit(i.BLUR,e),h.value&&(e.target.value>n.max||e.target.value<n.min)){var r=e.target.value>n.max?n.max:n.min;a.emit(i.UPDATE,r),a.emit(i.CHANGE,r)}null===(t=null==l?void 0:l.validate)||void 0===t||t.call(l,"blur")},onPaste:R,onChange:K,onKeypress:k,onKeydown:D,onKeyup:j,onCompositionstart:function(){c.value=!0},onCompositionend:function(e){c.value=!1,M(e)}};return function(){var e,t,r,l,i,s;return(0,o.createVNode)("div",{class:P.value,style:m},[null!==(r=null===(t=null===(e=a.slots)||void 0===e?void 0:e.prefix)||void 0===t?void 0:t.call(e))&&void 0!==r?r:n.prefix&&(0,o.createVNode)("div",{class:F("prefix-area")},[(0,o.createVNode)("span",{class:F("prefix-area--text")},[n.prefix])]),p.value?(0,o.createVNode)("textarea",(0,o.mergeProps)({ref:b,spellcheck:!1},y,W,G.value,{rows:n.rows}),null):(0,o.createVNode)("input",(0,o.mergeProps)({spellcheck:!1},y,{ref:b,class:"".concat(d.value,"--text"),type:O.value&&"password"===n.type?"text":n.type,step:n.step,max:n.max,min:n.min},W,G.value),null),!p.value&&n.clearable&&!!n.modelValue&&(0,o.createVNode)(u.Close,{onClick:I,class:E.value},null),x.value,"number"==typeof n.maxlength&&(n.showWordLimit||p.value)&&(0,o.createVNode)("p",{class:F("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:F("number-control")},[(0,o.createVNode)(u.DownSmall,{class:S.value,onClick:H},null),(0,o.createVNode)(u.DownSmall,{class:C.value,onClick:L},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:F("suffix-area")},[(0,o.createVNode)("span",{class:F("suffix-area--text")},[n.suffix])])])}}}),v=(0,e.withInstall)(f)})(),l})()));
|
package/lib/input/input.d.ts
CHANGED
@@ -66,15 +66,13 @@ export declare const inputType: {
|
|
66
66
|
} & {
|
67
67
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
68
68
|
};
|
69
|
-
modelValue: import("vue-types").VueTypeDef<string | number
|
70
|
-
default: string | number;
|
71
|
-
};
|
69
|
+
modelValue: import("vue-types").VueTypeDef<string | number>;
|
72
70
|
size: import("vue-types").VueTypeDef<string>;
|
73
71
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
74
72
|
default: number;
|
75
73
|
};
|
76
74
|
};
|
77
|
-
export declare enum EVENTS {
|
75
|
+
export declare const enum EVENTS {
|
78
76
|
UPDATE = "update:modelValue",
|
79
77
|
FOCUS = "focus",
|
80
78
|
BLUR = "blur",
|
@@ -90,10 +88,7 @@ export declare enum EVENTS {
|
|
90
88
|
COMPOSITIONUPDATE = "compositionupdate",
|
91
89
|
COMPOSITIONEND = "compositionend"
|
92
90
|
}
|
93
|
-
declare function EventFunction(
|
94
|
-
value: string | number;
|
95
|
-
evt: Event | KeyboardEvent;
|
96
|
-
};
|
91
|
+
declare function EventFunction(_value: any, _evt?: KeyboardEvent | Event): boolean;
|
97
92
|
declare function CompositionEventFunction(evt: CompositionEvent): CompositionEvent;
|
98
93
|
export declare const inputEmitEventsType: {
|
99
94
|
"update:modelValue": typeof EventFunction;
|
@@ -179,9 +174,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
179
174
|
} & {
|
180
175
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
181
176
|
};
|
182
|
-
modelValue: import("vue-types").VueTypeDef<string | number
|
183
|
-
default: string | number;
|
184
|
-
};
|
177
|
+
modelValue: import("vue-types").VueTypeDef<string | number>;
|
185
178
|
size: import("vue-types").VueTypeDef<string>;
|
186
179
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
187
180
|
default: number;
|
@@ -268,27 +261,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
268
261
|
} & {
|
269
262
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
270
263
|
};
|
271
|
-
modelValue: import("vue-types").VueTypeDef<string | number
|
272
|
-
default: string | number;
|
273
|
-
};
|
264
|
+
modelValue: import("vue-types").VueTypeDef<string | number>;
|
274
265
|
size: import("vue-types").VueTypeDef<string>;
|
275
266
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
276
267
|
default: number;
|
277
268
|
};
|
278
269
|
}>> & {
|
279
|
-
onPaste?: (
|
270
|
+
onPaste?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
280
271
|
onCompositionend?: (evt: CompositionEvent) => any;
|
281
272
|
onCompositionstart?: (evt: CompositionEvent) => any;
|
282
273
|
onCompositionupdate?: (evt: CompositionEvent) => any;
|
283
274
|
onFocus?: (evt: FocusEvent) => any;
|
284
275
|
onBlur?: (evt: FocusEvent) => any;
|
285
|
-
onChange?: (
|
286
|
-
onInput?: (
|
287
|
-
onKeydown?: (
|
288
|
-
onKeypress?: (
|
289
|
-
onKeyup?: (
|
290
|
-
onEnter?: (
|
291
|
-
"onUpdate:modelValue"?: (
|
276
|
+
onChange?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
277
|
+
onInput?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
278
|
+
onKeydown?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
279
|
+
onKeypress?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
280
|
+
onKeyup?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
281
|
+
onEnter?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
282
|
+
"onUpdate:modelValue"?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
292
283
|
onClear?: () => any;
|
293
284
|
}, {
|
294
285
|
type: string;
|
@@ -309,7 +300,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
309
300
|
showControl: boolean;
|
310
301
|
showClearOnlyHover: boolean;
|
311
302
|
precision: number;
|
312
|
-
modelValue: string | number;
|
313
303
|
rows: number;
|
314
304
|
}>;
|
315
305
|
export default _default;
|
package/lib/popover/index.d.ts
CHANGED
@@ -7,8 +7,8 @@ declare const BkPopover: {
|
|
7
7
|
modifiers: unknown[];
|
8
8
|
zIndex: number;
|
9
9
|
content: string | number;
|
10
|
-
trigger: string;
|
11
10
|
disabled: boolean;
|
11
|
+
trigger: string;
|
12
12
|
arrow: boolean;
|
13
13
|
theme: string;
|
14
14
|
width: string | number;
|
@@ -92,7 +92,7 @@ declare const BkPopover: {
|
|
92
92
|
stopBehaviors: import("vue-types").VueTypeDef<string | string[]> & {
|
93
93
|
default: string | (() => string[]);
|
94
94
|
};
|
95
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placement" | "modifiers" | "zIndex" | "content" | "
|
95
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placement" | "modifiers" | "zIndex" | "content" | "disabled" | "trigger" | "arrow" | "theme" | "width" | "height" | "always" | "transition" | "stopBehaviors" | "isShow" | "handleFirstUpdate" | "fixOnBoundary">;
|
96
96
|
$attrs: {
|
97
97
|
[x: string]: unknown;
|
98
98
|
};
|
@@ -184,8 +184,8 @@ declare const BkPopover: {
|
|
184
184
|
modifiers: unknown[];
|
185
185
|
zIndex: number;
|
186
186
|
content: string | number;
|
187
|
-
trigger: string;
|
188
187
|
disabled: boolean;
|
188
|
+
trigger: string;
|
189
189
|
arrow: boolean;
|
190
190
|
theme: string;
|
191
191
|
width: string | number;
|
@@ -371,8 +371,8 @@ declare const BkPopover: {
|
|
371
371
|
modifiers: unknown[];
|
372
372
|
zIndex: number;
|
373
373
|
content: string | number;
|
374
|
-
trigger: string;
|
375
374
|
disabled: boolean;
|
375
|
+
trigger: string;
|
376
376
|
arrow: boolean;
|
377
377
|
theme: string;
|
378
378
|
width: string | number;
|
package/lib/popover/popover.d.ts
CHANGED
@@ -149,8 +149,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
149
149
|
modifiers: unknown[];
|
150
150
|
zIndex: number;
|
151
151
|
content: string | number;
|
152
|
-
trigger: string;
|
153
152
|
disabled: boolean;
|
153
|
+
trigger: string;
|
154
154
|
arrow: boolean;
|
155
155
|
theme: string;
|
156
156
|
width: string | number;
|
package/lib/popover2/index.d.ts
CHANGED
@@ -7,8 +7,8 @@ declare const BkPopover2: {
|
|
7
7
|
offset: number;
|
8
8
|
zIndex: number;
|
9
9
|
content: string | number;
|
10
|
-
trigger: string;
|
11
10
|
disabled: boolean;
|
11
|
+
trigger: string;
|
12
12
|
arrow: boolean;
|
13
13
|
theme: string;
|
14
14
|
width: string | number;
|
@@ -110,7 +110,7 @@ declare const BkPopover2: {
|
|
110
110
|
onShow?: (...args: any[]) => any;
|
111
111
|
onHide?: (...args: any[]) => any;
|
112
112
|
onClickoutside?: (...args: any[]) => any;
|
113
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placement" | "offset" | "zIndex" | "content" | "
|
113
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placement" | "offset" | "zIndex" | "content" | "disabled" | "trigger" | "arrow" | "theme" | "width" | "height" | "always" | "padding" | "isShow" | "boundary" | "disableTeleport" | "autoPlacement" | "autoVisibility" | "disableOutsideClick">;
|
114
114
|
$attrs: {
|
115
115
|
[x: string]: unknown;
|
116
116
|
};
|
@@ -232,8 +232,8 @@ declare const BkPopover2: {
|
|
232
232
|
offset: number;
|
233
233
|
zIndex: number;
|
234
234
|
content: string | number;
|
235
|
-
trigger: string;
|
236
235
|
disabled: boolean;
|
236
|
+
trigger: string;
|
237
237
|
arrow: boolean;
|
238
238
|
theme: string;
|
239
239
|
width: string | number;
|
@@ -477,8 +477,8 @@ declare const BkPopover2: {
|
|
477
477
|
offset: number;
|
478
478
|
zIndex: number;
|
479
479
|
content: string | number;
|
480
|
-
trigger: string;
|
481
480
|
disabled: boolean;
|
481
|
+
trigger: string;
|
482
482
|
arrow: boolean;
|
483
483
|
theme: string;
|
484
484
|
width: string | number;
|
@@ -191,8 +191,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
191
191
|
offset: number;
|
192
192
|
zIndex: number;
|
193
193
|
content: string | number;
|
194
|
-
trigger: string;
|
195
194
|
disabled: boolean;
|
195
|
+
trigger: string;
|
196
196
|
arrow: boolean;
|
197
197
|
theme: string;
|
198
198
|
width: string | number;
|