bkui-vue 0.0.1-beta.66 → 0.0.1-beta.69
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 +30 -30
- package/dist/index.esm.js +915 -240
- package/dist/index.umd.js +29 -29
- package/dist/style.css +1 -1
- package/lib/button/button.css +29 -17
- package/lib/button/button.less +11 -8
- package/lib/button/button.variable.css +29 -17
- package/lib/button/index.js +1 -1
- package/lib/code-diff/index.js +1 -2
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -1
- package/lib/date-picker/date-picker.d.ts +1 -1
- package/lib/date-picker/index.d.ts +4 -4
- package/lib/dropdown/index.js +1 -1
- package/lib/form/form-item.d.ts +11 -1
- package/lib/form/form.css +8 -0
- package/lib/form/form.less +8 -1
- package/lib/form/form.variable.css +8 -0
- package/lib/form/index.d.ts +8 -1
- package/lib/form/index.js +1 -1
- package/lib/form/type.d.ts +3 -2
- package/lib/icon/exclamation-circle-shape.d.ts +4 -0
- package/lib/icon/{folder.js → exclamation-circle-shape.js} +1 -1
- package/lib/icon/funnel.js +1 -0
- package/lib/icon/index.d.ts +3 -2
- package/lib/icon/index.js +1 -1
- package/lib/input/index.d.ts +137 -47
- package/lib/input/index.js +1 -1
- package/lib/input/input.d.ts +67 -12
- package/lib/loading/loading.css +3 -2
- package/lib/loading/loading.less +3 -2
- package/lib/loading/loading.variable.css +3 -2
- package/lib/select/index.d.ts +4 -4
- package/lib/select/select.d.ts +1 -1
- package/lib/shared/index.d.ts +1 -0
- package/lib/shared/index.js +1 -1
- package/lib/shared/token.d.ts +2 -0
- package/lib/shared/vue-types.d.ts +4 -0
- package/lib/slider/index.js +1 -1
- package/lib/tree/constant.d.ts +9 -4
- package/lib/tree/index.d.ts +23 -15
- package/lib/tree/index.js +1 -1
- package/lib/tree/tree.d.ts +8 -5
- package/package.json +1 -1
- package/lib/code-diff/index.js.LICENSE.txt +0 -37
package/lib/input/index.d.ts
CHANGED
@@ -98,17 +98,20 @@ declare const BkInput: {
|
|
98
98
|
default: number;
|
99
99
|
};
|
100
100
|
}>> & {
|
101
|
-
onChange?: (
|
102
|
-
onPaste?: (
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
101
|
+
onChange?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
102
|
+
onPaste?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
103
|
+
onCompositionend?: (evt: CompositionEvent) => any;
|
104
|
+
onCompositionstart?: (evt: CompositionEvent) => any;
|
105
|
+
onCompositionupdate?: (evt: CompositionEvent) => any;
|
106
|
+
onFocus?: (evt: FocusEvent) => any;
|
107
|
+
onBlur?: (evt: FocusEvent) => 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;
|
112
115
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "prefix" | "type" | "placeholder" | "step" | "disabled" | "clearable" | "readonly" | "prefixIcon" | "suffixIcon" | "suffix" | "max" | "min" | "maxlength" | "behavior" | "showWordLimit" | "showControl" | "showClearOnlyHover" | "precision" | "modelValue" | "rows">;
|
113
116
|
$attrs: {
|
114
117
|
[x: string]: unknown;
|
@@ -121,7 +124,7 @@ declare const BkInput: {
|
|
121
124
|
}>;
|
122
125
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
123
126
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
124
|
-
$emit: (event: "input" | "
|
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);
|
125
128
|
$el: any;
|
126
129
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
127
130
|
type: import("vue-types").VueTypeValidableDef<string> & {
|
@@ -198,18 +201,60 @@ declare const BkInput: {
|
|
198
201
|
default: number;
|
199
202
|
};
|
200
203
|
}>> & {
|
201
|
-
onChange?: (
|
202
|
-
onPaste?: (
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
204
|
+
onChange?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
205
|
+
onPaste?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
206
|
+
onCompositionend?: (evt: CompositionEvent) => any;
|
207
|
+
onCompositionstart?: (evt: CompositionEvent) => any;
|
208
|
+
onCompositionupdate?: (evt: CompositionEvent) => any;
|
209
|
+
onFocus?: (evt: FocusEvent) => any;
|
210
|
+
onBlur?: (evt: FocusEvent) => 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, {
|
213
258
|
prefix: string;
|
214
259
|
type: string;
|
215
260
|
placeholder: string;
|
@@ -325,17 +370,20 @@ declare const BkInput: {
|
|
325
370
|
default: number;
|
326
371
|
};
|
327
372
|
}>> & {
|
328
|
-
onChange?: (
|
329
|
-
onPaste?: (
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
373
|
+
onChange?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
374
|
+
onPaste?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
375
|
+
onCompositionend?: (evt: CompositionEvent) => any;
|
376
|
+
onCompositionstart?: (evt: CompositionEvent) => any;
|
377
|
+
onCompositionupdate?: (evt: CompositionEvent) => any;
|
378
|
+
onFocus?: (evt: FocusEvent) => any;
|
379
|
+
onBlur?: (evt: FocusEvent) => 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;
|
339
387
|
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
|
340
388
|
__isFragment?: never;
|
341
389
|
__isTeleport?: never;
|
@@ -415,18 +463,60 @@ declare const BkInput: {
|
|
415
463
|
default: number;
|
416
464
|
};
|
417
465
|
}>> & {
|
418
|
-
onChange?: (
|
419
|
-
onPaste?: (
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
466
|
+
onChange?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
467
|
+
onPaste?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
468
|
+
onCompositionend?: (evt: CompositionEvent) => any;
|
469
|
+
onCompositionstart?: (evt: CompositionEvent) => any;
|
470
|
+
onCompositionupdate?: (evt: CompositionEvent) => any;
|
471
|
+
onFocus?: (evt: FocusEvent) => any;
|
472
|
+
onBlur?: (evt: FocusEvent) => 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;
|
480
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
481
|
+
"update:modelValue": (value: string | number, evt?: Event | KeyboardEvent) => {
|
482
|
+
value: string | number;
|
483
|
+
evt: Event | KeyboardEvent;
|
484
|
+
};
|
485
|
+
focus: (evt: FocusEvent) => FocusEvent;
|
486
|
+
blur: (evt: FocusEvent) => FocusEvent;
|
487
|
+
change: (value: string | number, evt?: Event | KeyboardEvent) => {
|
488
|
+
value: string | number;
|
489
|
+
evt: Event | KeyboardEvent;
|
490
|
+
};
|
491
|
+
clear: () => boolean;
|
492
|
+
input: (value: string | number, evt?: Event | KeyboardEvent) => {
|
493
|
+
value: string | number;
|
494
|
+
evt: Event | KeyboardEvent;
|
495
|
+
};
|
496
|
+
keypress: (value: string | number, evt?: Event | KeyboardEvent) => {
|
497
|
+
value: string | number;
|
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
|
+
};
|
516
|
+
compositionstart: (evt: CompositionEvent) => CompositionEvent;
|
517
|
+
compositionupdate: (evt: CompositionEvent) => CompositionEvent;
|
518
|
+
compositionend: (evt: CompositionEvent) => CompositionEvent;
|
519
|
+
}, string, {
|
430
520
|
prefix: string;
|
431
521
|
type: string;
|
432
522
|
placeholder: string;
|
package/lib/input/index.js
CHANGED
@@ -1 +1 @@
|
|
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:()=>
|
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:()=>y});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 f=(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 d=(0,o.defineComponent)({name:"Input",inheritAttrs:!1,props:s,emits:f,setup:function(n,a){var l=(0,o.ref)(!1),s=(0,o.ref)(!1),c=(0,o.computed)((function(){return"textarea"===n.type})),p=(0,o.computed)((function(){return c.value?"bk-textarea":"bk-input"})),f=a.attrs,d=f.class,y=f.style,m=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"]),v=(0,o.ref)(),b=(0,o.computed)((function(){var r;return(0,e.classes)((t(r={},"".concat(p.value,"--").concat(n.size),!!n.size),t(r,"is-focused",l.value),t(r,"is-readonly",n.readonly),t(r,"is-disabled",n.disabled),t(r,"is-simplicity","simplicity"===n.behavior),t(r,"".concat(d),!!d),r),p.value)})),P={search:function(){return(0,o.createVNode)(u.Search,null,null)},password:function(){return(0,o.createVNode)(u.Eye,{onClick:F},null)}},T=q("suffix-icon"),x=(0,o.computed)((function(){var e=P[n.type];return N.value?(0,o.createVNode)(u.Unvisible,{onClick:F,class:T},null):e?(0,o.createVNode)(e,{class:T},null):null})),g=(0,o.computed)((function(){return"number"===n.type})),h=(0,o.computed)((function(){return Math.floor(n.maxlength)})),N=(0,o.ref)(!1),O=(0,o.computed)((function(){return(0,e.classes)({"show-clear-only-hover":n.showClearOnlyHover},T)}));function E(){a.emit(i.UPDATE,""),a.emit(i.CHANGE,""),a.emit(i.CLEAR)}function S(e){l.value=!0,a.emit(i.FOCUS,e)}function C(e){l.value=!1,a.emit(i.BLUR,e)}a.expose({focus:function(){v.value.focus()},clear:E});var I,A,w=(I=[i.KEYUP,i.KEYDOWN,i.KEYPRESS,i.PASTE,i.CHANGE,i.INPUT].map((function(e){return function(r){"Enter"!==r.code&&"Enter"!==r.key&&13!==r.keyCode||a.emit(i.ENTER,r.target.value,r),s.value&&[i.INPUT,i.CHANGE].some((function(r){return e===r}))||(e===i.INPUT&&a.emit(i.UPDATE,g.value?+r.target.value:r.target.value),a.emit(e,r.target.value,r))}})),A=6,function(e){if(Array.isArray(e))return e}(I)||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}}(I,A)||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}}(I,A)||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.")}()),U=w[0],V=w[1],j=w[2],D=w[3],R=w[4],k=w[5];function K(){s.value=!0}function M(e){s.value=!1,k(e)}function Y(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 L(){var e=Y(n.step);a.emit(i.UPDATE,e)}function H(){var e=Y(n.step,!1);a.emit(i.UPDATE,e)}function q(e){return"".concat(p.value,"--").concat(e)}function F(){N.value=!N.value}var G=(0,o.computed)((function(){return{value:n.modelValue,maxlength:n.maxlength,placeholder:n.placeholder,readonly:n.readonly,disabled:n.disabled,onInput:k,onFocus:S,onBlur:C,onPaste:D,onChange:R,onKeypress:j,onKeydown:V,onKeyup:U,onCompositionstart:K,onCompositionend:M}}));return function(){var e,r,t,l,i,s;return(0,o.createVNode)("div",{class:b.value,style:y},[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:q("prefix-area")},[(0,o.createVNode)("span",{class:q("prefix-area--text")},[n.prefix])]),c.value?(0,o.createVNode)("textarea",(0,o.mergeProps)({ref:v},m,G.value,{rows:n.rows}),null):(0,o.createVNode)("input",(0,o.mergeProps)(m,{ref:v,class:"".concat(p.value,"--text"),type:N.value&&"password"===n.type?"text":n.type,step:n.step,max:n.max,min:n.min},G.value),null),!c.value&&n.clearable&&!!n.modelValue&&(0,o.createVNode)(u.Close,{onClick:E,class:O.value},null),x.value,"number"==typeof n.maxlength&&(n.showWordLimit||c.value)&&(0,o.createVNode)("p",{class:q("max-length")},[n.modelValue.toString().length,(0,o.createTextVNode)("/"),(0,o.createVNode)("span",null,[h.value])]),g.value&&n.showControl&&(0,o.createVNode)("div",{class:q("number-control")},[(0,o.createVNode)(u.DownSmall,{onClick:L},null),(0,o.createVNode)(u.DownSmall,{onClick:H},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:q("suffix-area")},[(0,o.createVNode)("span",{class:q("suffix-area--text")},[n.suffix])])])}}}),y=(0,e.withInstall)(d)})(),l})()));
|
package/lib/input/input.d.ts
CHANGED
@@ -74,6 +74,43 @@ export declare const inputType: {
|
|
74
74
|
default: number;
|
75
75
|
};
|
76
76
|
};
|
77
|
+
export declare enum EVENTS {
|
78
|
+
UPDATE = "update:modelValue",
|
79
|
+
FOCUS = "focus",
|
80
|
+
BLUR = "blur",
|
81
|
+
CHANGE = "change",
|
82
|
+
CLEAR = "clear",
|
83
|
+
INPUT = "input",
|
84
|
+
KEYPRESS = "keypress",
|
85
|
+
KEYDOWN = "keydown",
|
86
|
+
KEYUP = "keyup",
|
87
|
+
ENTER = "enter",
|
88
|
+
PASTE = "paste",
|
89
|
+
COMPOSITIONSTART = "compositionstart",
|
90
|
+
COMPOSITIONUPDATE = "compositionupdate",
|
91
|
+
COMPOSITIONEND = "compositionend"
|
92
|
+
}
|
93
|
+
declare function EventFunction(value: string | number, evt?: KeyboardEvent | Event): {
|
94
|
+
value: string | number;
|
95
|
+
evt: Event | KeyboardEvent;
|
96
|
+
};
|
97
|
+
declare function CompositionEventFunction(evt: CompositionEvent): CompositionEvent;
|
98
|
+
export declare const inputEmitEventsType: {
|
99
|
+
"update:modelValue": typeof EventFunction;
|
100
|
+
focus: (evt: FocusEvent) => FocusEvent;
|
101
|
+
blur: (evt: FocusEvent) => FocusEvent;
|
102
|
+
change: typeof EventFunction;
|
103
|
+
clear: () => boolean;
|
104
|
+
input: typeof EventFunction;
|
105
|
+
keypress: typeof EventFunction;
|
106
|
+
keydown: typeof EventFunction;
|
107
|
+
keyup: typeof EventFunction;
|
108
|
+
enter: typeof EventFunction;
|
109
|
+
paste: typeof EventFunction;
|
110
|
+
compositionstart: typeof CompositionEventFunction;
|
111
|
+
compositionupdate: typeof CompositionEventFunction;
|
112
|
+
compositionend: typeof CompositionEventFunction;
|
113
|
+
};
|
77
114
|
export declare type InputType = ExtractPropTypes<typeof inputType>;
|
78
115
|
declare const _default: import("vue").DefineComponent<{
|
79
116
|
type: import("vue-types").VueTypeValidableDef<string> & {
|
@@ -149,7 +186,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
149
186
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
150
187
|
default: number;
|
151
188
|
};
|
152
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
189
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
190
|
+
"update:modelValue": typeof EventFunction;
|
191
|
+
focus: (evt: FocusEvent) => FocusEvent;
|
192
|
+
blur: (evt: FocusEvent) => FocusEvent;
|
193
|
+
change: typeof EventFunction;
|
194
|
+
clear: () => boolean;
|
195
|
+
input: typeof EventFunction;
|
196
|
+
keypress: typeof EventFunction;
|
197
|
+
keydown: typeof EventFunction;
|
198
|
+
keyup: typeof EventFunction;
|
199
|
+
enter: typeof EventFunction;
|
200
|
+
paste: typeof EventFunction;
|
201
|
+
compositionstart: typeof CompositionEventFunction;
|
202
|
+
compositionupdate: typeof CompositionEventFunction;
|
203
|
+
compositionend: typeof CompositionEventFunction;
|
204
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
153
205
|
type: import("vue-types").VueTypeValidableDef<string> & {
|
154
206
|
default: string;
|
155
207
|
} & {
|
@@ -224,17 +276,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
224
276
|
default: number;
|
225
277
|
};
|
226
278
|
}>> & {
|
227
|
-
onChange?: (
|
228
|
-
onPaste?: (
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
279
|
+
onChange?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
280
|
+
onPaste?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
281
|
+
onCompositionend?: (evt: CompositionEvent) => any;
|
282
|
+
onCompositionstart?: (evt: CompositionEvent) => any;
|
283
|
+
onCompositionupdate?: (evt: CompositionEvent) => any;
|
284
|
+
onFocus?: (evt: FocusEvent) => any;
|
285
|
+
onBlur?: (evt: FocusEvent) => any;
|
286
|
+
onInput?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
287
|
+
onKeydown?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
288
|
+
onKeypress?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
289
|
+
onKeyup?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
290
|
+
onEnter?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
291
|
+
"onUpdate:modelValue"?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
292
|
+
onClear?: () => any;
|
238
293
|
}, {
|
239
294
|
prefix: string;
|
240
295
|
type: string;
|
package/lib/loading/loading.css
CHANGED
@@ -37,6 +37,8 @@
|
|
37
37
|
}
|
38
38
|
.bk-loading-wrapper.bk-nested-loading {
|
39
39
|
position: relative;
|
40
|
+
width: 100%;
|
41
|
+
height: 100%;
|
40
42
|
}
|
41
43
|
.bk-loading-wrapper.bk-nested-loading.is-block {
|
42
44
|
display: block;
|
@@ -45,7 +47,7 @@
|
|
45
47
|
position: absolute;
|
46
48
|
top: 50%;
|
47
49
|
left: 50%;
|
48
|
-
z-index:
|
50
|
+
z-index: 11;
|
49
51
|
text-align: center;
|
50
52
|
transform: translate(-50%, -50%);
|
51
53
|
}
|
@@ -77,7 +79,6 @@
|
|
77
79
|
position: absolute;
|
78
80
|
width: 100%;
|
79
81
|
height: 100%;
|
80
|
-
opacity: 0.5;
|
81
82
|
}
|
82
83
|
.bk-loading-wrapper .bk-loading-mask::after {
|
83
84
|
position: absolute;
|
package/lib/loading/loading.less
CHANGED
@@ -63,6 +63,8 @@
|
|
63
63
|
|
64
64
|
&.@{bk-prefix}-nested-loading {
|
65
65
|
position: relative;
|
66
|
+
width: 100%;
|
67
|
+
height: 100%;
|
66
68
|
|
67
69
|
&.is-block {
|
68
70
|
display: block;
|
@@ -72,7 +74,7 @@
|
|
72
74
|
position: absolute;
|
73
75
|
top: 50%;
|
74
76
|
left: 50%;
|
75
|
-
z-index:
|
77
|
+
z-index: 11;
|
76
78
|
text-align: center;
|
77
79
|
transform: translate(-50%, -50%);
|
78
80
|
}
|
@@ -108,7 +110,6 @@
|
|
108
110
|
position: absolute;
|
109
111
|
width: 100%;
|
110
112
|
height: 100%;
|
111
|
-
opacity: .5;
|
112
113
|
|
113
114
|
&::after {
|
114
115
|
position: absolute;
|
@@ -136,6 +136,8 @@
|
|
136
136
|
}
|
137
137
|
.bk-loading-wrapper.bk-nested-loading {
|
138
138
|
position: relative;
|
139
|
+
width: 100%;
|
140
|
+
height: 100%;
|
139
141
|
}
|
140
142
|
.bk-loading-wrapper.bk-nested-loading.is-block {
|
141
143
|
display: block;
|
@@ -144,7 +146,7 @@
|
|
144
146
|
position: absolute;
|
145
147
|
top: 50%;
|
146
148
|
left: 50%;
|
147
|
-
z-index:
|
149
|
+
z-index: 11;
|
148
150
|
text-align: center;
|
149
151
|
transform: translate(-50%, -50%);
|
150
152
|
}
|
@@ -176,7 +178,6 @@
|
|
176
178
|
position: absolute;
|
177
179
|
width: 100%;
|
178
180
|
height: 100%;
|
179
|
-
opacity: 0.5;
|
180
181
|
}
|
181
182
|
.bk-loading-wrapper .bk-loading-mask::after {
|
182
183
|
position: absolute;
|
package/lib/select/index.d.ts
CHANGED
@@ -125,8 +125,8 @@ declare const BkSelect: {
|
|
125
125
|
};
|
126
126
|
}>> & {
|
127
127
|
onChange?: (...args: any[]) => any;
|
128
|
-
onClear?: (...args: any[]) => any;
|
129
128
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
129
|
+
onClear?: (...args: any[]) => any;
|
130
130
|
onToggle?: (...args: any[]) => any;
|
131
131
|
"onScroll-end"?: (...args: any[]) => any;
|
132
132
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placeholder" | "size" | "multiple" | "disabled" | "loading" | "clearable" | "behavior" | "showOnInit" | "popoverMinWidth" | "filterable" | "remoteMethod" | "scrollHeight" | "showSelectAll" | "multipleMode" | "tagTheme" | "collapseTags" | "noDataText" | "noMatchText" | "loadingText" | "selectAllText" | "scrollLoading">;
|
@@ -242,8 +242,8 @@ declare const BkSelect: {
|
|
242
242
|
};
|
243
243
|
}>> & {
|
244
244
|
onChange?: (...args: any[]) => any;
|
245
|
-
onClear?: (...args: any[]) => any;
|
246
245
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
246
|
+
onClear?: (...args: any[]) => any;
|
247
247
|
onToggle?: (...args: any[]) => any;
|
248
248
|
"onScroll-end"?: (...args: any[]) => any;
|
249
249
|
}, {
|
@@ -645,8 +645,8 @@ declare const BkSelect: {
|
|
645
645
|
};
|
646
646
|
}>> & {
|
647
647
|
onChange?: (...args: any[]) => any;
|
648
|
-
onClear?: (...args: any[]) => any;
|
649
648
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
649
|
+
onClear?: (...args: any[]) => any;
|
650
650
|
onToggle?: (...args: any[]) => any;
|
651
651
|
"onScroll-end"?: (...args: any[]) => any;
|
652
652
|
} & import("vue").ShallowUnwrapRef<{
|
@@ -1010,8 +1010,8 @@ declare const BkSelect: {
|
|
1010
1010
|
};
|
1011
1011
|
}>> & {
|
1012
1012
|
onChange?: (...args: any[]) => any;
|
1013
|
-
onClear?: (...args: any[]) => any;
|
1014
1013
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
1014
|
+
onClear?: (...args: any[]) => any;
|
1015
1015
|
onToggle?: (...args: any[]) => any;
|
1016
1016
|
"onScroll-end"?: (...args: any[]) => any;
|
1017
1017
|
}, {
|
package/lib/select/select.d.ts
CHANGED
@@ -378,8 +378,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
378
378
|
};
|
379
379
|
}>> & {
|
380
380
|
onChange?: (...args: any[]) => any;
|
381
|
-
onClear?: (...args: any[]) => any;
|
382
381
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
382
|
+
onClear?: (...args: any[]) => any;
|
383
383
|
onToggle?: (...args: any[]) => any;
|
384
384
|
"onScroll-end"?: (...args: any[]) => any;
|
385
385
|
}, {
|
package/lib/shared/index.d.ts
CHANGED
@@ -32,6 +32,7 @@ export * from './helper';
|
|
32
32
|
export * from './vue-types';
|
33
33
|
export * from './scrollbar-width';
|
34
34
|
export * from './utils';
|
35
|
+
export * from './token';
|
35
36
|
export declare function classes(dynamicCls: object, constCls?: string): string;
|
36
37
|
export declare const EMPTY_OBJ: any;
|
37
38
|
export declare const noop: () => void;
|