bkui-vue 0.0.1-beta.423 → 0.0.1-beta.425

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.
@@ -107,20 +107,20 @@ declare const BkInput: {
107
107
  default: boolean;
108
108
  };
109
109
  }>> & {
110
- onPaste?: (_value: any, _evt?: Event | KeyboardEvent) => any;
110
+ onPaste?: (_value: any, _evt?: KeyboardEvent) => any;
111
111
  onCompositionend?: (evt: CompositionEvent) => any;
112
112
  onCompositionstart?: (evt: CompositionEvent) => any;
113
113
  onCompositionupdate?: (evt: CompositionEvent) => any;
114
114
  onFocus?: (evt: FocusEvent) => any;
115
115
  onBlur?: (evt: FocusEvent) => any;
116
- onChange?: (_value: any, _evt?: Event | KeyboardEvent) => any;
117
- onInput?: (_value: any, _evt?: Event | KeyboardEvent) => any;
118
- onKeydown?: (_value: any, _evt?: Event | KeyboardEvent) => any;
119
- onKeypress?: (_value: any, _evt?: Event | KeyboardEvent) => any;
120
- onKeyup?: (_value: any, _evt?: Event | KeyboardEvent) => any;
116
+ onChange?: (_value: any, _evt?: KeyboardEvent) => any;
117
+ onInput?: (_value: any, _evt?: KeyboardEvent) => any;
118
+ onKeydown?: (_value: any, _evt?: KeyboardEvent) => any;
119
+ onKeypress?: (_value: any, _evt?: KeyboardEvent) => any;
120
+ onKeyup?: (_value: any, _evt?: KeyboardEvent) => any;
121
121
  onClear?: () => any;
122
- "onUpdate:modelValue"?: (_value: any, _evt?: Event | KeyboardEvent) => any;
123
- onEnter?: (_value: any, _evt?: Event | KeyboardEvent) => any;
122
+ "onUpdate:modelValue"?: (_value: any, _evt?: KeyboardEvent) => any;
123
+ onEnter?: (_value: any, _evt?: KeyboardEvent) => any;
124
124
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "behavior" | "disabled" | "step" | "placeholder" | "prefix" | "max" | "min" | "maxlength" | "clearable" | "readonly" | "prefixIcon" | "suffixIcon" | "suffix" | "showWordLimit" | "showControl" | "showClearOnlyHover" | "precision" | "rows" | "selectReadonly" | "withValidate">;
125
125
  $attrs: {
126
126
  [x: string]: unknown;
@@ -133,7 +133,7 @@ declare const BkInput: {
133
133
  }>;
134
134
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
135
135
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
136
- $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);
136
+ $emit: ((event: import("./input").EVENTS.UPDATE, _value: any, _evt?: 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?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.CLEAR) => void) & ((event: import("./input").EVENTS.INPUT, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYPRESS, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYDOWN, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYUP, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.ENTER, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.PASTE, _value: any, _evt?: 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);
137
137
  $el: any;
138
138
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
139
139
  type: import("vue-types").VueTypeValidableDef<string> & {
@@ -218,32 +218,32 @@ declare const BkInput: {
218
218
  default: boolean;
219
219
  };
220
220
  }>> & {
221
- onPaste?: (_value: any, _evt?: Event | KeyboardEvent) => any;
221
+ onPaste?: (_value: any, _evt?: KeyboardEvent) => any;
222
222
  onCompositionend?: (evt: CompositionEvent) => any;
223
223
  onCompositionstart?: (evt: CompositionEvent) => any;
224
224
  onCompositionupdate?: (evt: CompositionEvent) => any;
225
225
  onFocus?: (evt: FocusEvent) => any;
226
226
  onBlur?: (evt: FocusEvent) => any;
227
- onChange?: (_value: any, _evt?: Event | KeyboardEvent) => any;
228
- onInput?: (_value: any, _evt?: Event | KeyboardEvent) => any;
229
- onKeydown?: (_value: any, _evt?: Event | KeyboardEvent) => any;
230
- onKeypress?: (_value: any, _evt?: Event | KeyboardEvent) => any;
231
- onKeyup?: (_value: any, _evt?: Event | KeyboardEvent) => any;
227
+ onChange?: (_value: any, _evt?: KeyboardEvent) => any;
228
+ onInput?: (_value: any, _evt?: KeyboardEvent) => any;
229
+ onKeydown?: (_value: any, _evt?: KeyboardEvent) => any;
230
+ onKeypress?: (_value: any, _evt?: KeyboardEvent) => any;
231
+ onKeyup?: (_value: any, _evt?: KeyboardEvent) => any;
232
232
  onClear?: () => any;
233
- "onUpdate:modelValue"?: (_value: any, _evt?: Event | KeyboardEvent) => any;
234
- onEnter?: (_value: any, _evt?: Event | KeyboardEvent) => any;
233
+ "onUpdate:modelValue"?: (_value: any, _evt?: KeyboardEvent) => any;
234
+ onEnter?: (_value: any, _evt?: KeyboardEvent) => any;
235
235
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
236
- "update:modelValue": (_value: any, _evt?: Event | KeyboardEvent) => boolean;
236
+ "update:modelValue": (_value: any, _evt?: KeyboardEvent) => any;
237
237
  focus: (evt: FocusEvent) => FocusEvent;
238
238
  blur: (evt: FocusEvent) => FocusEvent;
239
- change: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
239
+ change: (_value: any, _evt?: KeyboardEvent) => any;
240
240
  clear: () => boolean;
241
- input: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
242
- keypress: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
243
- keydown: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
244
- keyup: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
245
- enter: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
246
- paste: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
241
+ input: (_value: any, _evt?: KeyboardEvent) => any;
242
+ keypress: (_value: any, _evt?: KeyboardEvent) => any;
243
+ keydown: (_value: any, _evt?: KeyboardEvent) => any;
244
+ keyup: (_value: any, _evt?: KeyboardEvent) => any;
245
+ enter: (_value: any, _evt?: KeyboardEvent) => any;
246
+ paste: (_value: any, _evt?: KeyboardEvent) => any;
247
247
  compositionstart: (evt: CompositionEvent) => CompositionEvent;
248
248
  compositionupdate: (evt: CompositionEvent) => CompositionEvent;
249
249
  compositionend: (evt: CompositionEvent) => CompositionEvent;
@@ -372,20 +372,20 @@ declare const BkInput: {
372
372
  default: boolean;
373
373
  };
374
374
  }>> & {
375
- onPaste?: (_value: any, _evt?: Event | KeyboardEvent) => any;
375
+ onPaste?: (_value: any, _evt?: KeyboardEvent) => any;
376
376
  onCompositionend?: (evt: CompositionEvent) => any;
377
377
  onCompositionstart?: (evt: CompositionEvent) => any;
378
378
  onCompositionupdate?: (evt: CompositionEvent) => any;
379
379
  onFocus?: (evt: FocusEvent) => any;
380
380
  onBlur?: (evt: FocusEvent) => any;
381
- onChange?: (_value: any, _evt?: Event | KeyboardEvent) => any;
382
- onInput?: (_value: any, _evt?: Event | KeyboardEvent) => any;
383
- onKeydown?: (_value: any, _evt?: Event | KeyboardEvent) => any;
384
- onKeypress?: (_value: any, _evt?: Event | KeyboardEvent) => any;
385
- onKeyup?: (_value: any, _evt?: Event | KeyboardEvent) => any;
381
+ onChange?: (_value: any, _evt?: KeyboardEvent) => any;
382
+ onInput?: (_value: any, _evt?: KeyboardEvent) => any;
383
+ onKeydown?: (_value: any, _evt?: KeyboardEvent) => any;
384
+ onKeypress?: (_value: any, _evt?: KeyboardEvent) => any;
385
+ onKeyup?: (_value: any, _evt?: KeyboardEvent) => any;
386
386
  onClear?: () => any;
387
- "onUpdate:modelValue"?: (_value: any, _evt?: Event | KeyboardEvent) => any;
388
- onEnter?: (_value: any, _evt?: Event | KeyboardEvent) => any;
387
+ "onUpdate:modelValue"?: (_value: any, _evt?: KeyboardEvent) => any;
388
+ onEnter?: (_value: any, _evt?: KeyboardEvent) => any;
389
389
  } & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
390
390
  __isFragment?: never;
391
391
  __isTeleport?: never;
@@ -473,32 +473,32 @@ declare const BkInput: {
473
473
  default: boolean;
474
474
  };
475
475
  }>> & {
476
- onPaste?: (_value: any, _evt?: Event | KeyboardEvent) => any;
476
+ onPaste?: (_value: any, _evt?: KeyboardEvent) => any;
477
477
  onCompositionend?: (evt: CompositionEvent) => any;
478
478
  onCompositionstart?: (evt: CompositionEvent) => any;
479
479
  onCompositionupdate?: (evt: CompositionEvent) => any;
480
480
  onFocus?: (evt: FocusEvent) => any;
481
481
  onBlur?: (evt: FocusEvent) => any;
482
- onChange?: (_value: any, _evt?: Event | KeyboardEvent) => any;
483
- onInput?: (_value: any, _evt?: Event | KeyboardEvent) => any;
484
- onKeydown?: (_value: any, _evt?: Event | KeyboardEvent) => any;
485
- onKeypress?: (_value: any, _evt?: Event | KeyboardEvent) => any;
486
- onKeyup?: (_value: any, _evt?: Event | KeyboardEvent) => any;
482
+ onChange?: (_value: any, _evt?: KeyboardEvent) => any;
483
+ onInput?: (_value: any, _evt?: KeyboardEvent) => any;
484
+ onKeydown?: (_value: any, _evt?: KeyboardEvent) => any;
485
+ onKeypress?: (_value: any, _evt?: KeyboardEvent) => any;
486
+ onKeyup?: (_value: any, _evt?: KeyboardEvent) => any;
487
487
  onClear?: () => any;
488
- "onUpdate:modelValue"?: (_value: any, _evt?: Event | KeyboardEvent) => any;
489
- onEnter?: (_value: any, _evt?: Event | KeyboardEvent) => any;
488
+ "onUpdate:modelValue"?: (_value: any, _evt?: KeyboardEvent) => any;
489
+ onEnter?: (_value: any, _evt?: KeyboardEvent) => any;
490
490
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
491
- "update:modelValue": (_value: any, _evt?: Event | KeyboardEvent) => boolean;
491
+ "update:modelValue": (_value: any, _evt?: KeyboardEvent) => any;
492
492
  focus: (evt: FocusEvent) => FocusEvent;
493
493
  blur: (evt: FocusEvent) => FocusEvent;
494
- change: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
494
+ change: (_value: any, _evt?: KeyboardEvent) => any;
495
495
  clear: () => boolean;
496
- input: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
497
- keypress: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
498
- keydown: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
499
- keyup: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
500
- enter: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
501
- paste: (_value: any, _evt?: Event | KeyboardEvent) => boolean;
496
+ input: (_value: any, _evt?: KeyboardEvent) => any;
497
+ keypress: (_value: any, _evt?: KeyboardEvent) => any;
498
+ keydown: (_value: any, _evt?: KeyboardEvent) => any;
499
+ keyup: (_value: any, _evt?: KeyboardEvent) => any;
500
+ enter: (_value: any, _evt?: KeyboardEvent) => any;
501
+ paste: (_value: any, _evt?: KeyboardEvent) => any;
502
502
  compositionstart: (evt: CompositionEvent) => CompositionEvent;
503
503
  compositionupdate: (evt: CompositionEvent) => CompositionEvent;
504
504
  compositionend: (evt: CompositionEvent) => CompositionEvent;
@@ -98,7 +98,7 @@ export declare const enum EVENTS {
98
98
  COMPOSITIONUPDATE = "compositionupdate",
99
99
  COMPOSITIONEND = "compositionend"
100
100
  }
101
- declare function EventFunction(_value: any, _evt?: KeyboardEvent | Event): boolean;
101
+ declare function EventFunction(_value: any, _evt?: KeyboardEvent): any;
102
102
  declare function CompositionEventFunction(evt: CompositionEvent): CompositionEvent;
103
103
  export declare const inputEmitEventsType: {
104
104
  "update:modelValue": typeof EventFunction;
@@ -297,20 +297,20 @@ declare const _default: import("vue").DefineComponent<{
297
297
  default: boolean;
298
298
  };
299
299
  }>> & {
300
- onPaste?: (_value: any, _evt?: Event | KeyboardEvent) => any;
300
+ onPaste?: (_value: any, _evt?: KeyboardEvent) => any;
301
301
  onCompositionend?: (evt: CompositionEvent) => any;
302
302
  onCompositionstart?: (evt: CompositionEvent) => any;
303
303
  onCompositionupdate?: (evt: CompositionEvent) => any;
304
304
  onFocus?: (evt: FocusEvent) => any;
305
305
  onBlur?: (evt: FocusEvent) => any;
306
- onChange?: (_value: any, _evt?: Event | KeyboardEvent) => any;
307
- onInput?: (_value: any, _evt?: Event | KeyboardEvent) => any;
308
- onKeydown?: (_value: any, _evt?: Event | KeyboardEvent) => any;
309
- onKeypress?: (_value: any, _evt?: Event | KeyboardEvent) => any;
310
- onKeyup?: (_value: any, _evt?: Event | KeyboardEvent) => any;
306
+ onChange?: (_value: any, _evt?: KeyboardEvent) => any;
307
+ onInput?: (_value: any, _evt?: KeyboardEvent) => any;
308
+ onKeydown?: (_value: any, _evt?: KeyboardEvent) => any;
309
+ onKeypress?: (_value: any, _evt?: KeyboardEvent) => any;
310
+ onKeyup?: (_value: any, _evt?: KeyboardEvent) => any;
311
311
  onClear?: () => any;
312
- "onUpdate:modelValue"?: (_value: any, _evt?: Event | KeyboardEvent) => any;
313
- onEnter?: (_value: any, _evt?: Event | KeyboardEvent) => any;
312
+ "onUpdate:modelValue"?: (_value: any, _evt?: KeyboardEvent) => any;
313
+ onEnter?: (_value: any, _evt?: KeyboardEvent) => any;
314
314
  }, {
315
315
  type: string;
316
316
  behavior: "simplicity" | "normal";
@@ -1 +1 @@
1
- !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],o);else{var t="object"==typeof exports?o(require("../shared"),require("vue")):o(e["../shared"],e.vue);for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(self,((e,o)=>(()=>{"use strict";var t={4212:o=>{o.exports=e},748:e=>{e.exports=o}},n={};function i(e){var o=n[e];if(void 0!==o)return o.exports;var r=n[e]={exports:{}};return t[e](r,r.exports,i),r.exports}i.d=(e,o)=>{for(var t in o)i.o(o,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},i.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{i.r(r),i.d(r,{BkLoading:()=>v,BkLoadingMode:()=>e,BkLoadingSize:()=>o,default:()=>f,setDefaultIndicator:()=>d});var e,o,t,n=i(4212),l=i(748);function a(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function d(e){t="function"==typeof e?e:function(){return(0,l.createVNode)(e,null,null)}}!function(e){e.Default="default",e.Spin="spin"}(e||(e={})),function(e){e.Normal="",e.Mini="mini",e.Small="small",e.Large="large"}(o||(o={}));var u={indicator:{type:Function},loading:n.PropTypes.bool.def(!0),inline:n.PropTypes.bool.def(!0),theme:{type:String},title:n.PropTypes.string.def(""),size:{type:String,default:o.Normal},mode:{type:String,default:"default"},opacity:n.PropTypes.number.def(.9),color:n.PropTypes.string.def("white"),zIndex:n.PropTypes.number.def(1),isDirective:n.PropTypes.bool.def(!1)};const c=(0,l.defineComponent)({name:"Loading",props:u,setup:function(o,i){var r=(0,l.createVNode)("div",{class:"bk-normal-indicator"},[[1,2,3,4].map((function(e){return(0,l.createVNode)("span",{class:"dot dot-".concat(e)},null)}))]),d=(0,l.createVNode)("div",{class:"bk-spin-indicator"},[[1,2,3,4,5,6,7,8].map((function(e){return(0,l.createVNode)("span",{class:"oval oval-".concat(e)},null)}))]),u=(0,l.computed)((function(){return{zIndex:o.zIndex}})),c=(0,l.computed)((function(){return Object.assign({opacity:o.opacity,backgroundColor:o.color},u.value)})),s=(0,l.computed)((function(){return(0,n.classes)({"bk-loading-wrapper":o.loading,"bk-nested-loading":!!i.slots.default,"bk-directive-loading":o.isDirective})})),p=(0,l.computed)((function(){var e;return(0,n.classes)((a(e={},"bk-loading-size-".concat(o.size),!!o.size),a(e,"bk-loading-".concat(o.theme),!!o.theme),e),"bk-loading-indicator")})),v=(0,l.computed)((function(){return!!o.title})),f=(0,l.computed)((function(){var n=o.mode===e.Spin;return"function"==typeof o.indicator?(0,l.createVNode)(o.indicator,null,null):"function"==typeof t?(0,l.createVNode)(t,null,null):n?d:r}));return function(){var e,t;return(0,l.createVNode)("div",{class:s.value},[null===(t=(e=i.slots).default)||void 0===t?void 0:t.call(e),o.loading&&[(i.slots.default||o.isDirective)&&(0,l.createVNode)("div",{class:"bk-loading-mask",style:c.value},null),(0,l.createVNode)("div",{class:p.value,style:u.value},[f.value,v.value&&(0,l.createVNode)("div",{class:"bk-loading-title"},[o.title])])]])}}});var s=Symbol("vBkLoading"),p={mounted:function(e,o){o.value&&function(e,o){var t,n,i,r,a,d=function(e){var t,n;return null!==(n=null===(t=o.value)||void 0===t?void 0:t[e])&&void 0!==n?n:void 0},u=(0,l.reactive)({indicator:d("indicator"),loading:null!==(t=d("loading"))&&void 0!==t&&t,inline:null!==(n=d("inline"))&&void 0!==n&&n,theme:d("theme"),title:null!==(i=d("title"))&&void 0!==i?i:"",size:null!==(r=d("size"))&&void 0!==r?r:"",mode:d("mode"),opacity:d("opacity"),color:null!==(a=d("color"))&&void 0!==a?a:"white",zIndex:d("zIndex"),isDirective:!0}),p=document.createElement("div");Object.assign(p.style,{position:"absolute",left:0,right:0,top:0,bottom:0}),Object.assign(e.style,{position:"relative"});var v=(0,l.createApp)({render:function(){return(0,l.h)(c,u)}});e[s]={options:u,instance:v,vm:v.mount(p)},e.appendChild(p)}(e,o)},updated:function(e,o){var t,n,i=e[s],r=o.value;t=r,n=i.options,Object.keys(t).forEach((function(e){t[e]!==n[e]&&(n[e]=t[e])}))},unmounted:function(e){var o,t,n,i=e[s];null==e||e.removeChild(null===(t=null===(o=null==i?void 0:i.vm)||void 0===o?void 0:o.$el)||void 0===t?void 0:t.parentNode),null===(n=null==i?void 0:i.instance)||void 0===n||n.unmount(),e[s]=null}},v=(0,n.withInstallProps)(c,{setDefaultIndicator:d,BkLoadingMode:e,BkLoadingSize:o},!0,{name:"loading",directive:p});const f=v})(),r})()));
1
+ !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],o);else{var t="object"==typeof exports?o(require("../shared"),require("vue")):o(e["../shared"],e.vue);for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(self,((e,o)=>(()=>{"use strict";var t={4212:o=>{o.exports=e},748:e=>{e.exports=o}},n={};function i(e){var o=n[e];if(void 0!==o)return o.exports;var l=n[e]={exports:{}};return t[e](l,l.exports,i),l.exports}i.d=(e,o)=>{for(var t in o)i.o(o,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},i.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{i.r(l),i.d(l,{BkLoading:()=>v,BkLoadingMode:()=>e,BkLoadingSize:()=>o,default:()=>f,setDefaultIndicator:()=>d});var e,o,t,n=i(4212),r=i(748);function a(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function d(e){t="function"==typeof e?e:function(){return(0,r.createVNode)(e,null,null)}}!function(e){e.Default="default",e.Spin="spin"}(e||(e={})),function(e){e.Normal="",e.Mini="mini",e.Small="small",e.Large="large"}(o||(o={}));var u={indicator:{type:Function},loading:n.PropTypes.bool.def(!0),inline:n.PropTypes.bool.def(!0),theme:{type:String},title:n.PropTypes.string.def(""),size:{type:String,default:o.Normal},mode:{type:String,default:"default"},opacity:n.PropTypes.number.def(.9),color:n.PropTypes.string.def("white"),zIndex:n.PropTypes.number.def(1),isDirective:n.PropTypes.bool.def(!1)};const c=(0,r.defineComponent)({name:"Loading",props:u,setup:function(o,i){var l=(0,r.createVNode)("div",{class:"bk-normal-indicator"},[[1,2,3,4].map((function(e){return(0,r.createVNode)("span",{class:"dot dot-".concat(e)},null)}))]),d=(0,r.createVNode)("div",{class:"bk-spin-indicator"},[[1,2,3,4,5,6,7,8].map((function(e){return(0,r.createVNode)("span",{class:"oval oval-".concat(e)},null)}))]),u=(0,r.computed)((function(){return{zIndex:o.zIndex}})),c=(0,r.computed)((function(){return Object.assign({opacity:o.opacity,backgroundColor:o.color},u.value)})),s=(0,r.computed)((function(){return(0,n.classes)({"bk-loading-wrapper":o.loading,"bk-nested-loading":!!i.slots.default,"bk-directive-loading":o.isDirective})})),p=(0,r.computed)((function(){var e;return(0,n.classes)((a(e={},"bk-loading-size-".concat(o.size),!!o.size),a(e,"bk-loading-".concat(o.theme),!!o.theme),e),"bk-loading-indicator")})),v=(0,r.computed)((function(){return!!o.title})),f=(0,r.computed)((function(){var n=o.mode===e.Spin;return"function"==typeof o.indicator?(0,r.createVNode)(o.indicator,null,null):"function"==typeof t?(0,r.createVNode)(t,null,null):n?d:l}));return function(){var e,t;return(0,r.createVNode)("div",{class:s.value},[null===(t=(e=i.slots).default)||void 0===t?void 0:t.call(e),o.loading&&[(i.slots.default||o.isDirective)&&(0,r.createVNode)("div",{class:"bk-loading-mask",style:c.value},null),(0,r.createVNode)("div",{class:p.value,style:u.value},[f.value,v.value&&(0,r.createVNode)("div",{class:"bk-loading-title"},[o.title])])]])}}});var s=Symbol("vBkLoading"),p={mounted:function(e,o){o.value&&function(e,o){var t,n,i,l,a,d=function(e){var t,n;return null!==(n=null===(t=o.value)||void 0===t?void 0:t[e])&&void 0!==n?n:void 0},u=(0,r.reactive)({indicator:d("indicator"),loading:null!==(t=d("loading"))&&void 0!==t&&t,inline:null!==(n=d("inline"))&&void 0!==n&&n,theme:d("theme"),title:null!==(i=d("title"))&&void 0!==i?i:"",size:null!==(l=d("size"))&&void 0!==l?l:"",mode:d("mode"),opacity:d("opacity"),color:null!==(a=d("color"))&&void 0!==a?a:"white",zIndex:d("zIndex"),isDirective:!0}),p=document.createElement("div");Object.assign(p.style,{position:"absolute",left:0,right:0,top:0,bottom:0}),Object.assign(e.style,{position:"relative"});var v=(0,r.createApp)({render:function(){return(0,r.h)(c,u)}});e[s]={options:u,instance:v,vm:v.mount(p)},e.appendChild(p)}(e,o)},updated:function(e,o){var t,n,i,l,r,a=e[s],d=o.value;l=d,r=a.options,Object.keys(l).forEach((function(e){l[e]!==r[e]&&(r[e]=l[e])})),(null===(i=null===(n=null===(t=null==a?void 0:a.vm)||void 0===t?void 0:t.$el)||void 0===n?void 0:n.parentNode)||void 0===i?void 0:i.style)&&(a.vm.$el.parentNode.style.display=d.loading?"":"none")},unmounted:function(e){var o,t,n,i=e[s];null==e||e.removeChild(null===(t=null===(o=null==i?void 0:i.vm)||void 0===o?void 0:o.$el)||void 0===t?void 0:t.parentNode),null===(n=null==i?void 0:i.instance)||void 0===n||n.unmount(),e[s]=null}},v=(0,n.withInstallProps)(c,{setDefaultIndicator:d,BkLoadingMode:e,BkLoadingSize:o},!0,{name:"loading",directive:p});const f=v})(),l})()));
@@ -12,6 +12,7 @@ declare const BkTable: {
12
12
  border: string | ("col" | "none" | "horizontal" | "row" | "outer")[];
13
13
  minHeight: string | number;
14
14
  columns: import("./props").Column[];
15
+ cellClass: any;
15
16
  headHeight: number;
16
17
  rowKey: any;
17
18
  scrollLoading: boolean | {
@@ -36,7 +37,6 @@ declare const BkTable: {
36
37
  rowClass: any;
37
38
  rowStyle: any;
38
39
  cellStyle: any;
39
- cellClass: any;
40
40
  reserveExpand: boolean;
41
41
  selectionKey: string;
42
42
  isSelectedFn: (...args: any[]) => any;
@@ -201,7 +201,7 @@ declare const BkTable: {
201
201
  onSelectionChange?: (...args: any[]) => any;
202
202
  onCellClick?: (...args: any[]) => any;
203
203
  onCellDblclick?: (...args: any[]) => any;
204
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "pagination" | "data" | "height" | "maxHeight" | "border" | "minHeight" | "columns" | "headHeight" | "rowKey" | "scrollLoading" | "showOverflowTooltip" | "columnPick" | "rowHeight" | "showHead" | "virtualEnabled" | "paginationHeihgt" | "remotePagination" | "emptyText" | "settings" | "rowClass" | "rowStyle" | "cellStyle" | "cellClass" | "reserveExpand" | "selectionKey" | "isSelectedFn" | "asyncData" | "rowHover" | "defaultSort" | "isRowSelectEnable" | "observerResize">;
204
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "pagination" | "data" | "height" | "maxHeight" | "border" | "minHeight" | "columns" | "cellClass" | "headHeight" | "rowKey" | "scrollLoading" | "showOverflowTooltip" | "columnPick" | "rowHeight" | "showHead" | "virtualEnabled" | "paginationHeihgt" | "remotePagination" | "emptyText" | "settings" | "rowClass" | "rowStyle" | "cellStyle" | "reserveExpand" | "selectionKey" | "isSelectedFn" | "asyncData" | "rowHover" | "defaultSort" | "isRowSelectEnable" | "observerResize">;
205
205
  $attrs: {
206
206
  [x: string]: unknown;
207
207
  };
@@ -398,6 +398,7 @@ declare const BkTable: {
398
398
  border: string | ("col" | "none" | "horizontal" | "row" | "outer")[];
399
399
  minHeight: string | number;
400
400
  columns: import("./props").Column[];
401
+ cellClass: any;
401
402
  headHeight: number;
402
403
  rowKey: any;
403
404
  scrollLoading: boolean | {
@@ -422,7 +423,6 @@ declare const BkTable: {
422
423
  rowClass: any;
423
424
  rowStyle: any;
424
425
  cellStyle: any;
425
- cellClass: any;
426
426
  reserveExpand: boolean;
427
427
  selectionKey: string;
428
428
  isSelectedFn: (...args: any[]) => any;
@@ -794,6 +794,7 @@ declare const BkTable: {
794
794
  border: string | ("col" | "none" | "horizontal" | "row" | "outer")[];
795
795
  minHeight: string | number;
796
796
  columns: import("./props").Column[];
797
+ cellClass: any;
797
798
  headHeight: number;
798
799
  rowKey: any;
799
800
  scrollLoading: boolean | {
@@ -818,7 +819,6 @@ declare const BkTable: {
818
819
  rowClass: any;
819
820
  rowStyle: any;
820
821
  cellStyle: any;
821
- cellClass: any;
822
822
  reserveExpand: boolean;
823
823
  selectionKey: string;
824
824
  isSelectedFn: (...args: any[]) => any;
@@ -320,6 +320,7 @@ declare const _default: import("vue").DefineComponent<{
320
320
  border: string | ("col" | "none" | "horizontal" | "row" | "outer")[];
321
321
  minHeight: string | number;
322
322
  columns: import("./props").Column[];
323
+ cellClass: any;
323
324
  headHeight: number;
324
325
  rowKey: any;
325
326
  scrollLoading: boolean | {
@@ -344,7 +345,6 @@ declare const _default: import("vue").DefineComponent<{
344
345
  rowClass: any;
345
346
  rowStyle: any;
346
347
  cellStyle: any;
347
- cellClass: any;
348
348
  reserveExpand: boolean;
349
349
  selectionKey: string;
350
350
  isSelectedFn: (...args: any[]) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "0.0.1-beta.423",
3
+ "version": "0.0.1-beta.425",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*",