bkui-vue 0.0.1-beta.49 → 0.0.1-beta.51

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.
Files changed (76) hide show
  1. package/dist/index.cjs.js +25 -25
  2. package/dist/index.esm.js +448 -419
  3. package/dist/index.umd.js +26 -26
  4. package/dist/style.css +1 -1
  5. package/lib/alert/alert.d.ts +1 -1
  6. package/lib/alert/index.d.ts +4 -4
  7. package/lib/animate-number/animate-number.d.ts +1 -1
  8. package/lib/animate-number/index.d.ts +4 -4
  9. package/lib/backtop/backtop.d.ts +1 -1
  10. package/lib/backtop/index.d.ts +4 -4
  11. package/lib/badge/badge.d.ts +2 -2
  12. package/lib/badge/index.d.ts +7 -7
  13. package/lib/breadcrumb/breadcrumb.d.ts +1 -1
  14. package/lib/breadcrumb/index.d.ts +4 -4
  15. package/lib/button/button.d.ts +2 -2
  16. package/lib/button/index.d.ts +7 -7
  17. package/lib/components.js +1 -0
  18. package/lib/date-picker/date-picker.d.ts +6 -6
  19. package/lib/date-picker/index.d.ts +17 -17
  20. package/lib/date-picker/props.d.ts +1 -1
  21. package/lib/dialog/dialog.css +8 -8
  22. package/lib/dialog/dialog.d.ts +1 -1
  23. package/lib/dialog/dialog.variable.css +8 -8
  24. package/lib/dialog/index.d.ts +4 -4
  25. package/lib/dropdown/dropdown.d.ts +1 -1
  26. package/lib/dropdown/index.d.ts +4 -4
  27. package/lib/icon/help.js +1 -1
  28. package/lib/icon/index.js +1 -1
  29. package/lib/index.d.ts +0 -1
  30. package/lib/index.js +1 -0
  31. package/lib/input/index.d.ts +11 -3
  32. package/lib/input/index.js +1 -1
  33. package/lib/input/input.css +6 -2
  34. package/lib/input/input.d.ts +7 -1
  35. package/lib/input/input.less +6 -2
  36. package/lib/input/input.variable.css +6 -2
  37. package/lib/link/index.d.ts +7 -7
  38. package/lib/link/link.d.ts +2 -2
  39. package/lib/loading/index.d.ts +8 -0
  40. package/lib/loading/index.js +1 -1
  41. package/lib/loading/loading.d.ts +6 -0
  42. package/lib/modal/index.d.ts +4 -4
  43. package/lib/modal/modal.css +8 -8
  44. package/lib/modal/modal.d.ts +1 -1
  45. package/lib/modal/modal.less +25 -23
  46. package/lib/modal/modal.variable.css +8 -8
  47. package/lib/popover/index.d.ts +4 -4
  48. package/lib/popover/popover.d.ts +1 -1
  49. package/lib/preset.js +1 -0
  50. package/lib/resize-layout/index.d.ts +4 -4
  51. package/lib/resize-layout/resize-layout.d.ts +1 -1
  52. package/lib/select/index.d.ts +34 -4
  53. package/lib/select/index.js +1 -1
  54. package/lib/select/select.css +5 -0
  55. package/lib/select/select.d.ts +14 -1
  56. package/lib/select/select.less +6 -0
  57. package/lib/select/select.variable.css +5 -0
  58. package/lib/sideslider/index.d.ts +4 -4
  59. package/lib/sideslider/sideslider.d.ts +1 -1
  60. package/lib/slider/slider.d.ts +1 -1
  61. package/lib/switcher/index.d.ts +4 -4
  62. package/lib/switcher/switcher.d.ts +1 -1
  63. package/lib/tab/index.d.ts +8 -8
  64. package/lib/tab/tab-nav.d.ts +1 -1
  65. package/lib/tab/tab-panel.d.ts +1 -1
  66. package/lib/tab/tab.d.ts +2 -2
  67. package/lib/table/index.d.ts +4 -4
  68. package/lib/table/index.js +1 -1
  69. package/lib/table/table.css +8 -1
  70. package/lib/table/table.d.ts +3 -4
  71. package/lib/table/table.less +13 -1
  72. package/lib/table/table.variable.css +8 -1
  73. package/lib/table/use-common.d.ts +17 -0
  74. package/lib/table/utils.d.ts +0 -8
  75. package/package.json +8 -4
  76. package/lib/icon/help-fill.js +0 -1
@@ -25,6 +25,7 @@ declare const BkSelect: {
25
25
  noMatchText: string;
26
26
  loadingText: string;
27
27
  selectAllText: string;
28
+ scrollLoading: boolean;
28
29
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
29
30
  modelValue: import("vue-types").VueTypeValidableDef<any>;
30
31
  multiple: import("vue-types").VueTypeValidableDef<boolean> & {
@@ -117,12 +118,18 @@ declare const BkSelect: {
117
118
  } & {
118
119
  default: string;
119
120
  };
121
+ scrollLoading: import("vue-types").VueTypeValidableDef<boolean> & {
122
+ default: boolean;
123
+ } & {
124
+ default: boolean;
125
+ };
120
126
  }>> & {
121
127
  onChange?: (...args: any[]) => any;
122
128
  "onUpdate:modelValue"?: (...args: any[]) => any;
123
129
  onClear?: (...args: any[]) => any;
124
130
  onToggle?: (...args: any[]) => any;
125
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placeholder" | "size" | "multiple" | "disabled" | "loading" | "showOnInit" | "clearable" | "behavior" | "popoverMinWidth" | "filterable" | "remoteMethod" | "scrollHeight" | "showSelectAll" | "multipleMode" | "tagTheme" | "collapseTags" | "noDataText" | "noMatchText" | "loadingText" | "selectAllText">;
131
+ "onScroll-end"?: (...args: any[]) => any;
132
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placeholder" | "size" | "multiple" | "disabled" | "loading" | "showOnInit" | "clearable" | "behavior" | "popoverMinWidth" | "filterable" | "remoteMethod" | "scrollHeight" | "showSelectAll" | "multipleMode" | "tagTheme" | "collapseTags" | "noDataText" | "noMatchText" | "loadingText" | "selectAllText" | "scrollLoading">;
126
133
  $attrs: {
127
134
  [x: string]: unknown;
128
135
  };
@@ -134,7 +141,7 @@ declare const BkSelect: {
134
141
  }>;
135
142
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
136
143
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
137
- $emit: (event: "change" | "toggle" | "clear" | "update:modelValue", ...args: any[]) => void;
144
+ $emit: (event: "clear" | "change" | "toggle" | "update:modelValue" | "scroll-end", ...args: any[]) => void;
138
145
  $el: any;
139
146
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
140
147
  modelValue: import("vue-types").VueTypeValidableDef<any>;
@@ -228,11 +235,17 @@ declare const BkSelect: {
228
235
  } & {
229
236
  default: string;
230
237
  };
238
+ scrollLoading: import("vue-types").VueTypeValidableDef<boolean> & {
239
+ default: boolean;
240
+ } & {
241
+ default: boolean;
242
+ };
231
243
  }>> & {
232
244
  onChange?: (...args: any[]) => any;
233
245
  "onUpdate:modelValue"?: (...args: any[]) => any;
234
246
  onClear?: (...args: any[]) => any;
235
247
  onToggle?: (...args: any[]) => any;
248
+ "onScroll-end"?: (...args: any[]) => any;
236
249
  }, {
237
250
  options: import("vue").Ref<Set<{
238
251
  $: import("vue").ComponentInternalInstance;
@@ -412,6 +425,7 @@ declare const BkSelect: {
412
425
  visible: import("vue").Ref<boolean>;
413
426
  }> & {} & {} & import("vue").ComponentCustomProperties) => void;
414
427
  handleClickOutside: () => void;
428
+ handleScroll: (e: any) => void;
415
429
  currentPlaceholder: import("vue").Ref<string>;
416
430
  selectedOptions: import("vue").Ref<Set<{
417
431
  $: import("vue").ComponentInternalInstance;
@@ -490,7 +504,7 @@ declare const BkSelect: {
490
504
  visible: import("vue").Ref<boolean>;
491
505
  }> & {} & {} & import("vue").ComponentCustomProperties>>;
492
506
  currentSelectedLabel: import("vue").Ref<string>;
493
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "toggle" | "clear" | "update:modelValue")[], string, {
507
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "change" | "toggle" | "update:modelValue" | "scroll-end")[], string, {
494
508
  placeholder: string;
495
509
  size: string;
496
510
  multiple: boolean;
@@ -511,6 +525,7 @@ declare const BkSelect: {
511
525
  noMatchText: string;
512
526
  loadingText: string;
513
527
  selectAllText: string;
528
+ scrollLoading: boolean;
514
529
  }> & {
515
530
  beforeCreate?: (() => void) | (() => void)[];
516
531
  created?: (() => void) | (() => void)[];
@@ -623,11 +638,17 @@ declare const BkSelect: {
623
638
  } & {
624
639
  default: string;
625
640
  };
641
+ scrollLoading: import("vue-types").VueTypeValidableDef<boolean> & {
642
+ default: boolean;
643
+ } & {
644
+ default: boolean;
645
+ };
626
646
  }>> & {
627
647
  onChange?: (...args: any[]) => any;
628
648
  "onUpdate:modelValue"?: (...args: any[]) => any;
629
649
  onClear?: (...args: any[]) => any;
630
650
  onToggle?: (...args: any[]) => any;
651
+ "onScroll-end"?: (...args: any[]) => any;
631
652
  } & import("vue").ShallowUnwrapRef<{
632
653
  options: import("vue").Ref<Set<{
633
654
  $: import("vue").ComponentInternalInstance;
@@ -807,6 +828,7 @@ declare const BkSelect: {
807
828
  visible: import("vue").Ref<boolean>;
808
829
  }> & {} & {} & import("vue").ComponentCustomProperties) => void;
809
830
  handleClickOutside: () => void;
831
+ handleScroll: (e: any) => void;
810
832
  currentPlaceholder: import("vue").Ref<string>;
811
833
  selectedOptions: import("vue").Ref<Set<{
812
834
  $: import("vue").ComponentInternalInstance;
@@ -981,11 +1003,17 @@ declare const BkSelect: {
981
1003
  } & {
982
1004
  default: string;
983
1005
  };
1006
+ scrollLoading: import("vue-types").VueTypeValidableDef<boolean> & {
1007
+ default: boolean;
1008
+ } & {
1009
+ default: boolean;
1010
+ };
984
1011
  }>> & {
985
1012
  onChange?: (...args: any[]) => any;
986
1013
  "onUpdate:modelValue"?: (...args: any[]) => any;
987
1014
  onClear?: (...args: any[]) => any;
988
1015
  onToggle?: (...args: any[]) => any;
1016
+ "onScroll-end"?: (...args: any[]) => any;
989
1017
  }, {
990
1018
  options: import("vue").Ref<Set<{
991
1019
  $: import("vue").ComponentInternalInstance;
@@ -1165,6 +1193,7 @@ declare const BkSelect: {
1165
1193
  visible: import("vue").Ref<boolean>;
1166
1194
  }> & {} & {} & import("vue").ComponentCustomProperties) => void;
1167
1195
  handleClickOutside: () => void;
1196
+ handleScroll: (e: any) => void;
1168
1197
  currentPlaceholder: import("vue").Ref<string>;
1169
1198
  selectedOptions: import("vue").Ref<Set<{
1170
1199
  $: import("vue").ComponentInternalInstance;
@@ -1243,7 +1272,7 @@ declare const BkSelect: {
1243
1272
  visible: import("vue").Ref<boolean>;
1244
1273
  }> & {} & {} & import("vue").ComponentCustomProperties>>;
1245
1274
  currentSelectedLabel: import("vue").Ref<string>;
1246
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "toggle" | "clear" | "update:modelValue")[], "change" | "toggle" | "clear" | "update:modelValue", {
1275
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "change" | "toggle" | "update:modelValue" | "scroll-end")[], "clear" | "change" | "toggle" | "update:modelValue" | "scroll-end", {
1247
1276
  placeholder: string;
1248
1277
  size: string;
1249
1278
  multiple: boolean;
@@ -1264,6 +1293,7 @@ declare const BkSelect: {
1264
1293
  noMatchText: string;
1265
1294
  loadingText: string;
1266
1295
  selectAllText: string;
1296
+ scrollLoading: boolean;
1267
1297
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & Readonly<{
1268
1298
  Option: import("vue").DefineComponent<{
1269
1299
  value: import("vue-types").VueTypeDef<string | number | boolean>;
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../icon"),require("../directives"),require("../loading"),require("../popover"),require("../tag"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon","../directives","../loading","../popover","../tag"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon"),require("../directives"),require("../loading"),require("../popover"),require("../tag")):t(e["../shared"],e.vue,e["../icon"],e["../directives"],e["../loading"],e["../popover"],e["../tag"]);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,((e,t,r,o,n,i,l)=>(()=>{var a={7162:(e,t,r)=>{e.exports=r(5047)},5047:e=>{var t=function(e){"use strict";var t,r=Object.prototype,o=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",l=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var n=t&&t.prototype instanceof g?t:g,i=Object.create(n.prototype),l=new j(o||[]);return i._invoke=function(e,t,r){var o=p;return function(n,i){if(o===f)throw new Error("Generator is already running");if(o===h){if("throw"===n)throw i;return C()}for(r.method=n,r.arg=i;;){var l=r.delegate;if(l){var a=S(l,r);if(a){if(a===v)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var s=c(e,t,r);if("normal"===s.type){if(o=r.done?h:d,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=h,r.method="throw",r.arg=s.arg)}}}(e,r,l),i}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",d="suspendedYield",f="executing",h="completed",v={};function g(){}function y(){}function b(){}var m={};s(m,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(N([])));x&&x!==r&&o.call(x,i)&&(m=x);var O=b.prototype=g.prototype=Object.create(m);function P(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function r(n,i,l,a){var s=c(e[n],e,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==typeof p&&o.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,l,a)}),(function(e){r("throw",e,l,a)})):t.resolve(p).then((function(e){u.value=e,l(u)}),(function(e){return r("throw",e,l,a)}))}a(s.arg)}var n;this._invoke=function(e,o){function i(){return new t((function(t,n){r(e,o,t,n)}))}return n=n?n.then(i,i):i()}}function S(e,r){var o=e.iterator[r.method];if(o===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var n=c(o,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,v;var i=n.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function N(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,l=function r(){for(;++n<e.length;)if(o.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return l.next=l}}return{next:C}}function C(){return{value:t,done:!0}}return y.prototype=b,s(O,"constructor",b),s(b,"constructor",y),y.displayName=s(b,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,a,"GeneratorFunction")),e.prototype=Object.create(O),e},e.awrap=function(e){return{__await:e}},P(T.prototype),s(T.prototype,l,(function(){return this})),e.AsyncIterator=T,e.async=function(t,r,o,n,i){void 0===i&&(i=Promise);var l=new T(u(t,r,o,n),i);return e.isGeneratorFunction(r)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},P(O),s(O,a,"Generator"),s(O,i,(function(){return this})),s(O,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var o=t.pop();if(o in e)return r.value=o,r.done=!1,r}return r.done=!0,r}},e.values=N,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(o,n){return a.type="throw",a.arg=e,r.next=o,n&&(r.method="next",r.arg=t),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var l=this.tryEntries[i],a=l.completion;if("root"===l.tryLoc)return n("end");if(l.tryLoc<=this.prev){var s=o.call(l,"catchLoc"),u=o.call(l,"finallyLoc");if(s&&u){if(this.prev<l.catchLoc)return n(l.catchLoc,!0);if(this.prev<l.finallyLoc)return n(l.finallyLoc)}else if(s){if(this.prev<l.catchLoc)return n(l.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return n(l.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var l=i?i.completion:{};return l.type=e,l.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(l)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;L(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,o){return this.delegate={iterator:N(e),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},4061:e=>{"use strict";e.exports=o},6870:e=>{"use strict";e.exports=r},4870:e=>{"use strict";e.exports=n},5537:e=>{"use strict";e.exports=i},4212:t=>{"use strict";t.exports=e},7739:e=>{"use strict";e.exports=l},748:e=>{"use strict";e.exports=t}},s={};function u(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={exports:{}};return a[e](r,r.exports,u),r.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{"use strict";u.r(c),u.d(c,{BkOption:()=>p,BkOptionGroup:()=>v,BkSelect:()=>S,default:()=>k});var e=u(4212),t=u(748),r=u(7162),o=u.n(r);Object.create,Object.create;var n=Symbol("BkSelect"),i=Symbol("BkOptionGroup");function l(e){return{register:function(t){if(t)return e.value.add(t)},unregister:function(t){return e.value.delete(t)}}}function a(e){var r=this,n=function(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=e;return(0,t.customRef)((function(e,t){return{get:function(){return e(),n},set:function(e){clearTimeout(r),r=setTimeout((function(){n=e,t()}),o)}}}))}(""),i=(0,t.ref)(!1);return(0,t.watch)(n,(function(){return t=r,l=void 0,a=void 0,s=o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i.value=!0,t.next=3,e(n.value);case 3:i.value=!1;case 4:case"end":return t.stop()}}),t)})),new(a||(a=Promise))((function(e,r){function o(e){try{i(s.next(e))}catch(e){r(e)}}function n(e){try{i(s.throw(e))}catch(e){r(e)}}function i(t){var r;t.done?e(t.value):(r=t.value,r instanceof a?r:new a((function(e){e(r)}))).then(o,n)}i((s=s.apply(t,l||[])).next())}));var t,l,a,s})),{searchKey:n,searchLoading:i}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?String(e).trim().toLowerCase():e}const p=(0,t.defineComponent)({name:"Option",props:{value:e.PropTypes.oneOfType([String,Number,Boolean]),label:e.PropTypes.oneOfType([String,Number]),disabled:e.PropTypes.bool.def(!1)},setup:function(e){var r=(0,t.getCurrentInstance)().proxy,o=(0,t.reactive)({visible:!0}),l=(0,t.toRefs)(e).disabled,a=(0,t.inject)(n,null),s=(0,t.inject)(i,null),u=(0,t.computed)((function(){return a.selectedOptions.has(r)})),c=(0,t.computed)((function(){return null==a?void 0:a.props.multiple}));return(0,t.onBeforeMount)((function(){null==a||a.register(r),null==s||s.register(r)})),(0,t.onBeforeUnmount)((function(){null==a||a.unregister(r),null==s||s.unregister(r)})),Object.assign(Object.assign({},(0,t.toRefs)(o)),{selected:u,multiple:c,handleOptionClick:function(){l.value||null==a||a.handleOptionSelected(r)}})},render:function(){var r,o,n,i=(0,e.classes)({"is-selected":this.selected,"is-disabled":this.disabled,"is-multiple":this.multiple,"is-hover":!1,"bk-select-option":!0});return(0,t.withDirectives)((0,t.createVNode)("li",{class:i,onClick:this.handleOptionClick},[null!==(n=null===(o=(r=this.$slots).default)||void 0===o?void 0:o.call(r))&&void 0!==n?n:(0,t.createVNode)("span",null,[this.label])]),[[t.vShow,this.visible]])}});function d(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 f(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var h=u(6870);const v=(0,t.defineComponent)({name:"Group",props:{label:e.PropTypes.string.def(""),disabled:e.PropTypes.bool.def(!1),collapsible:e.PropTypes.bool.def(!1),collapse:e.PropTypes.bool.def(!1)},setup:function(e,r){var o=r.emit,a=(0,t.getCurrentInstance)().proxy,s=(0,t.inject)(n,null),u=(0,t.reactive)({groupCollapse:e.collapse,visible:!0}),c=(0,t.ref)(new Set),p=l(c),d=p.register,h=p.unregister,v=(0,t.computed)((function(){return"".concat(e.label," (").concat(f(c.value.values()).filter((function(e){return e.visible})).length,")")}));return(0,t.provide)(i,(0,t.reactive)(Object.assign(Object.assign({},(0,t.toRefs)(e)),{register:d,unregister:h,groupCollapse:(0,t.toRef)(u,"groupCollapse")}))),(0,t.onBeforeMount)((function(){null==s||s.registerGroup(a)})),(0,t.onBeforeUnmount)((function(){null==s||s.unregisterGroup(a)})),Object.assign(Object.assign({},(0,t.toRefs)(u)),{groupLabel:v,handleToggleCollapse:function(){e.collapsible&&!e.disabled&&(u.groupCollapse=!u.groupCollapse,o("update:collapse",u.groupCollapse))}})},render:function(){var r,o,n=(0,e.classes)({"bk-option-group":!0,collapsible:this.collapsible,disabled:this.disabled}),i=(0,e.classes)({"bk-option-group-label":!0,collapsible:this.collapsible}),l=(0,e.classes)({"default-group-label-icon":!0,collapse:this.groupCollapse});return(0,t.withDirectives)((0,t.createVNode)("ul",{class:n},[(0,t.createVNode)("li",{class:i,onClick:this.handleToggleCollapse},[this.$slots.label?this.$slots.label():(0,t.createVNode)("span",{class:"default-group-label"},[this.collapsible&&(0,t.createVNode)(h.AngleUpFill,{class:l},null),(0,t.createVNode)("span",{class:"default-group-label-title"},[this.groupLabel])])]),(0,t.withDirectives)((0,t.createVNode)("ul",{class:"bk-option-group-content"},[null===(o=(r=this.$slots).default)||void 0===o?void 0:o.call(r)]),[[t.vShow,!this.groupCollapse]])]),[[t.vShow,this.visible]])}});function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=u(4061),b=u(4870),m=u.n(b),w=u(5537),x=u.n(w),O=u(7739),P=u.n(O);const T=(0,t.defineComponent)({name:"Select",directives:{clickoutside:y.clickoutside},props:{modelValue:e.PropTypes.any,multiple:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),size:e.PropTypes.size().def("default"),clearable:e.PropTypes.bool.def(!0),loading:e.PropTypes.bool.def(!1),filterable:e.PropTypes.bool.def(!1),remoteMethod:e.PropTypes.func,scrollHeight:e.PropTypes.number.def(216),showSelectAll:e.PropTypes.bool.def(!1),popoverMinWidth:e.PropTypes.number.def(0),showOnInit:e.PropTypes.bool.def(!1),multipleMode:e.PropTypes.oneOf(["default","tag"]).def("default"),tagTheme:e.PropTypes.theme(["success","info","warning","danger"]).def(""),behavior:e.PropTypes.oneOf(["normal","simplicity"]).def("normal"),collapseTags:e.PropTypes.bool.def(!1),noDataText:e.PropTypes.string.def("无数据"),noMatchText:e.PropTypes.string.def("无匹配数据"),loadingText:e.PropTypes.string.def("加载中..."),placeholder:e.PropTypes.string.def("请选择"),selectAllText:e.PropTypes.string.def("全部")},emits:["update:modelValue","change","toggle","clear"],setup:function(e,r){var o=r.emit,i=(0,t.toRefs)(e),u=i.modelValue,c=i.disabled,p=i.filterable,d=i.placeholder,h=i.multiple,v=i.remoteMethod,g=i.loading,y=i.loadingText,b=i.noDataText,m=i.noMatchText,w=i.popoverMinWidth,x=i.showOnInit,O=(0,t.reactive)({currentPlaceholder:d.value,selectedOptions:new Set,currentSelectedLabel:""}),P=(0,t.ref)(),T=(0,t.ref)(),S=(0,t.ref)(new Set),k=(0,t.ref)(new Set),L=(0,t.computed)((function(){return c.value||g.value})),j=(0,t.computed)((function(){return f(O.selectedOptions.values()).map((function(e){return e.label}))})),N=(0,t.computed)((function(){return f(S.value.values()).filter((function(e){return!e.disabled})).every((function(e){return O.selectedOptions.has(e)}))})),C=(0,t.computed)((function(){return!!k.value.size})),V=(0,t.computed)((function(){return!S.value.size})),E=(0,t.computed)((function(){var e=f(S.value.values());return e.length&&e.every((function(e){return!e.visible}))})),F=(0,t.computed)((function(){return"function"==typeof v.value})),M=(0,t.computed)((function(){return!(ie.value||V.value||E.value)})),A=(0,t.computed)((function(){return ie.value?y.value:V.value?b.value:E.value?m.value:""})),_=l(S),G=_.register,I=_.unregister,R=l(k),H=R.register,q=R.unregister,B=function(){var e=(0,t.ref)(!1);return{isHover:e,setHover:function(){e.value=!0},cancelHover:function(){e.value=!1}}}(),D=B.isHover,U=B.setHover,$=B.cancelHover,W=function(){var e=(0,t.ref)(!1);return{isFocus:e,handleFocus:function(){e.value=!0},handleBlur:function(){e.value=!1}}}(),z=W.isFocus,K=W.handleFocus,Y=W.handleBlur,J=function(e){var r=e.popoverMinWidth,o=(0,t.ref)("auto"),n=(0,t.ref)(!1);return{isPopoverShow:n,popperWidth:o,togglePopover:function(){n.value=!n.value},onPopoverFirstUpdate:function(e){var t=e.elements.reference;o.value=Math.max(t.offsetWidth,r)},hidePopover:function(){n.value=!1},showPopover:function(){n.value=!0}}}({popoverMinWidth:w.value}),Q=J.popperWidth,X=J.isPopoverShow,Z=J.onPopoverFirstUpdate,ee=J.hidePopover,te=J.showPopover,re=J.togglePopover,oe=a(F.value?v.value:function(e){S.value.forEach((function(t){var r;t.visible=null===(r=s(String(t.label)))||void 0===r?void 0:r.includes(s(e))}))}),ne=oe.searchKey,ie=oe.searchLoading,le=function(){var e=j.value.join(",");p.value&&X.value?(O.currentPlaceholder=e||d.value,O.currentSelectedLabel=""):(O.currentPlaceholder=d.value,O.currentSelectedLabel=e,ne.value="")};(0,t.watch)(X,(function(){le()}));var ae=function(e){e!==u.value&&(o("change",e),o("update:modelValue",e))},se=function(){P.value.focus(),T.value.update(),!ne.value&&le()},ue=function(e){!L.value&&e&&(h.value?(O.selectedOptions.has(e)?O.selectedOptions.delete(e):O.selectedOptions.add(e),ae(f(O.selectedOptions.values()).map((function(e){return e.value})))):(O.selectedOptions.clear(),O.selectedOptions.add(e),ae(e.value),ee()),se())};return(0,t.provide)(n,(0,t.reactive)({props:e,selectedOptions:(0,t.unref)(O.selectedOptions),register:G,unregister:I,registerGroup:H,unregisterGroup:q,handleOptionSelected:ue})),(0,t.onMounted)((function(){var e=Array.isArray(u.value)?u.value:[u.value];S.value.forEach((function(t){e.includes(t.value)&&O.selectedOptions.add(t)})),le(),setTimeout((function(){x.value&&te()}))})),Object.assign(Object.assign({},(0,t.toRefs)(O)),{options:S,isDisabled:L,selectedLabel:j,isPopoverShow:X,isHover:D,popperWidth:Q,popoverRef:T,inputRef:P,searchLoading:ie,isOptionsEmpty:V,isSearchEmpty:E,isFocus:z,isShowSelectContent:M,curContentText:A,isGroup:C,searchKey:ne,setHover:U,cancelHover:$,handleFocus:K,handleInput:function(e){ne.value=e.target.value},handleTogglePopover:function(){L.value||(re(),o("toggle",X.value))},handleClear:function(e){e.stopPropagation(),O.selectedOptions.clear(),ee(),le(),ae(h.value?[]:""),o("clear",h.value?[]:"")},onPopoverFirstUpdate:Z,hidePopover:ee,showPopover:te,handleToggleAll:function(){N.value?O.selectedOptions.clear():S.value.forEach((function(e){e.disabled||O.selectedOptions.has(e)||O.selectedOptions.add(e)})),se(),ae(f(O.selectedOptions.values()).map((function(e){return e.value})))},handleOptionSelected:ue,handleClickOutside:function(){ee(),Y()}})},render:function(){var r,o=this,n=(0,e.classes)((g(r={"bk-select":!0,"popover-show":this.isPopoverShow,"is-disabled":this.isDisabled,"is-focus":this.isFocus,"is-filterable":this.filterable},this.size,!0),g(r,this.behavior,!0),r));return(0,t.withDirectives)((0,t.createVNode)("div",{class:n},[(0,t.createVNode)(x(),{ref:"popoverRef",theme:"light",trigger:"manual",width:this.popperWidth,arrow:!1,placement:"bottom",isShow:this.isPopoverShow,modifiers:[{name:"offset",options:{offset:[0,4]}}],handleFirstUpdate:this.onPopoverFirstUpdate},{default:function(){return(0,t.createVNode)("div",{class:"bk-select-trigger",onClick:o.handleTogglePopover,onMouseenter:o.setHover,onMouseleave:o.cancelHover},[o.$slots.prefixIcon?(0,t.createVNode)("span",{class:"bk-select-prefix"},[null===(r=(e=o.$slots).prefixIcon)||void 0===r?void 0:r.call(e)]):null,"tag"===o.multipleMode?(0,t.createVNode)("div",{class:"bk-select-tag"},[f(o.selectedOptions.values()).map((function(e){return(0,t.createVNode)(P(),{closable:!0,style:{marginTop:"3px"},theme:o.tagTheme,onClose:function(){return o.handleOptionSelected(e)}},{default:function(){return[e.label]}})})),(0,t.withDirectives)((0,t.createVNode)("input",{class:"bk-select-tag-input",ref:"inputRef",type:"text",placeholder:o.selectedOptions.size?"":o.placeholder,readonly:!o.filterable||!o.isPopoverShow,"onUpdate:modelValue":function(e){return o.searchKey=e},onFocus:o.handleFocus},null),[[t.vModelText,o.searchKey]])]):(0,t.withDirectives)((0,t.createVNode)("input",{ref:"inputRef",type:"text",class:"bk-select-input",style:{paddingLeft:o.$slots.prefixIcon?"20px":"10px"},"onUpdate:modelValue":function(e){return o.currentSelectedLabel=e},placeholder:o.currentPlaceholder,readonly:!o.filterable||!o.isPopoverShow,onFocus:o.handleFocus,onInput:o.handleInput},null),[[t.vModelText,o.currentSelectedLabel]]),o.loading?(0,t.createVNode)(m(),{class:"spinner",mode:"spin",size:"mini"},null):o.clearable&&o.isHover?(0,t.createVNode)(h.Close,{class:"clear-icon",onClick:o.handleClear},null):(0,t.createVNode)(h.AngleUp,{class:"angle-up"},null)]);var e,r},content:function(){return(0,t.createVNode)("div",null,[!o.isShowSelectContent&&(0,t.createVNode)("div",{class:"bk-select-empty"},[o.searchLoading&&(0,t.createVNode)(m(),{class:"mr5",mode:"spin",size:"mini"},null),o.curContentText]),(0,t.createVNode)("div",{class:"bk-select-content"},[(0,t.createVNode)("div",{class:"bk-select-dropdown",style:{maxHeight:"".concat(o.scrollHeight,"px")}},[(0,t.withDirectives)((0,t.createVNode)("ul",{class:"bk-select-options"},[o.multiple&&o.showSelectAll&&!o.searchKey&&(0,t.createVNode)("li",{class:"bk-select-option",onClick:o.handleToggleAll},[o.selectAllText]),null===(r=(e=o.$slots).default)||void 0===r?void 0:r.call(e)]),[[t.vShow,o.isShowSelectContent]])]),o.$slots.extension&&(0,t.createVNode)("div",{class:"bk-select-extension"},[o.$slots.extension()])])]);var e,r}})]),[[(0,t.resolveDirective)("clickoutside"),this.handleClickOutside]])}});var S=(0,e.withInstallProps)(T,{Option:p,Group:v});const k=S})(),c})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../icon"),require("../directives"),require("../loading"),require("../popover"),require("../tag"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon","../directives","../loading","../popover","../tag"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon"),require("../directives"),require("../loading"),require("../popover"),require("../tag")):t(e["../shared"],e.vue,e["../icon"],e["../directives"],e["../loading"],e["../popover"],e["../tag"]);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,((e,t,r,o,n,i,l)=>(()=>{var a={7162:(e,t,r)=>{e.exports=r(5047)},5047:e=>{var t=function(e){"use strict";var t,r=Object.prototype,o=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",l=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,o){var n=t&&t.prototype instanceof g?t:g,i=Object.create(n.prototype),l=new N(o||[]);return i._invoke=function(e,t,r){var o=p;return function(n,i){if(o===f)throw new Error("Generator is already running");if(o===h){if("throw"===n)throw i;return C()}for(r.method=n,r.arg=i;;){var l=r.delegate;if(l){var a=S(l,r);if(a){if(a===v)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var s=u(e,t,r);if("normal"===s.type){if(o=r.done?h:d,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=h,r.method="throw",r.arg=s.arg)}}}(e,r,l),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var p="suspendedStart",d="suspendedYield",f="executing",h="completed",v={};function g(){}function y(){}function b(){}var m={};s(m,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==r&&o.call(x,i)&&(m=x);var O=b.prototype=g.prototype=Object.create(m);function P(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function r(n,i,l,a){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,p=c.value;return p&&"object"==typeof p&&o.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,l,a)}),(function(e){r("throw",e,l,a)})):t.resolve(p).then((function(e){c.value=e,l(c)}),(function(e){return r("throw",e,l,a)}))}a(s.arg)}var n;this._invoke=function(e,o){function i(){return new t((function(t,n){r(e,o,t,n)}))}return n=n?n.then(i,i):i()}}function S(e,r){var o=e.iterator[r.method];if(o===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var n=u(o,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,v;var i=n.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function j(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,l=function r(){for(;++n<e.length;)if(o.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return l.next=l}}return{next:C}}function C(){return{value:t,done:!0}}return y.prototype=b,s(O,"constructor",b),s(b,"constructor",y),y.displayName=s(b,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,a,"GeneratorFunction")),e.prototype=Object.create(O),e},e.awrap=function(e){return{__await:e}},P(T.prototype),s(T.prototype,l,(function(){return this})),e.AsyncIterator=T,e.async=function(t,r,o,n,i){void 0===i&&(i=Promise);var l=new T(c(t,r,o,n),i);return e.isGeneratorFunction(r)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},P(O),s(O,a,"Generator"),s(O,i,(function(){return this})),s(O,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var o=t.pop();if(o in e)return r.value=o,r.done=!1,r}return r.done=!0,r}},e.values=j,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(o,n){return a.type="throw",a.arg=e,r.next=o,n&&(r.method="next",r.arg=t),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var l=this.tryEntries[i],a=l.completion;if("root"===l.tryLoc)return n("end");if(l.tryLoc<=this.prev){var s=o.call(l,"catchLoc"),c=o.call(l,"finallyLoc");if(s&&c){if(this.prev<l.catchLoc)return n(l.catchLoc,!0);if(this.prev<l.finallyLoc)return n(l.finallyLoc)}else if(s){if(this.prev<l.catchLoc)return n(l.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return n(l.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var l=i?i.completion:{};return l.type=e,l.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(l)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;k(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,o){return this.delegate={iterator:j(e),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},4061:e=>{"use strict";e.exports=o},6870:e=>{"use strict";e.exports=r},4870:e=>{"use strict";e.exports=n},5537:e=>{"use strict";e.exports=i},4212:t=>{"use strict";t.exports=e},7739:e=>{"use strict";e.exports=l},748:e=>{"use strict";e.exports=t}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={exports:{}};return a[e](r,r.exports,c),r.exports}c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return(()=>{"use strict";c.r(u),c.d(u,{BkOption:()=>p,BkOptionGroup:()=>v,BkSelect:()=>S,default:()=>L});var e=c(4212),t=c(748),r=c(7162),o=c.n(r);Object.create,Object.create;var n=Symbol("BkSelect"),i=Symbol("BkOptionGroup");function l(e){return{register:function(t){if(t)return e.value.add(t)},unregister:function(t){return e.value.delete(t)}}}function a(e){var r=this,n=function(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=e;return(0,t.customRef)((function(e,t){return{get:function(){return e(),n},set:function(e){clearTimeout(r),r=setTimeout((function(){n=e,t()}),o)}}}))}(""),i=(0,t.ref)(!1);return(0,t.watch)(n,(function(){return t=r,l=void 0,a=void 0,s=o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i.value=!0,t.next=3,e(n.value);case 3:i.value=!1;case 4:case"end":return t.stop()}}),t)})),new(a||(a=Promise))((function(e,r){function o(e){try{i(s.next(e))}catch(e){r(e)}}function n(e){try{i(s.throw(e))}catch(e){r(e)}}function i(t){var r;t.done?e(t.value):(r=t.value,r instanceof a?r:new a((function(e){e(r)}))).then(o,n)}i((s=s.apply(t,l||[])).next())}));var t,l,a,s})),{searchKey:n,searchLoading:i}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?String(e).trim().toLowerCase():e}const p=(0,t.defineComponent)({name:"Option",props:{value:e.PropTypes.oneOfType([String,Number,Boolean]),label:e.PropTypes.oneOfType([String,Number]),disabled:e.PropTypes.bool.def(!1)},setup:function(e){var r=(0,t.getCurrentInstance)().proxy,o=(0,t.reactive)({visible:!0}),l=(0,t.toRefs)(e).disabled,a=(0,t.inject)(n,null),s=(0,t.inject)(i,null),c=(0,t.computed)((function(){return a.selectedOptions.has(r)})),u=(0,t.computed)((function(){return null==a?void 0:a.props.multiple}));return(0,t.onBeforeMount)((function(){null==a||a.register(r),null==s||s.register(r)})),(0,t.onBeforeUnmount)((function(){null==a||a.unregister(r),null==s||s.unregister(r)})),Object.assign(Object.assign({},(0,t.toRefs)(o)),{selected:c,multiple:u,handleOptionClick:function(){l.value||null==a||a.handleOptionSelected(r)}})},render:function(){var r,o,n,i=(0,e.classes)({"is-selected":this.selected,"is-disabled":this.disabled,"is-multiple":this.multiple,"is-hover":!1,"bk-select-option":!0});return(0,t.withDirectives)((0,t.createVNode)("li",{class:i,onClick:this.handleOptionClick},[null!==(n=null===(o=(r=this.$slots).default)||void 0===o?void 0:o.call(r))&&void 0!==n?n:(0,t.createVNode)("span",null,[this.label])]),[[t.vShow,this.visible]])}});function d(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 f(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var h=c(6870);const v=(0,t.defineComponent)({name:"Group",props:{label:e.PropTypes.string.def(""),disabled:e.PropTypes.bool.def(!1),collapsible:e.PropTypes.bool.def(!1),collapse:e.PropTypes.bool.def(!1)},setup:function(e,r){var o=r.emit,a=(0,t.getCurrentInstance)().proxy,s=(0,t.inject)(n,null),c=(0,t.reactive)({groupCollapse:e.collapse,visible:!0}),u=(0,t.ref)(new Set),p=l(u),d=p.register,h=p.unregister,v=(0,t.computed)((function(){return"".concat(e.label," (").concat(f(u.value.values()).filter((function(e){return e.visible})).length,")")}));return(0,t.provide)(i,(0,t.reactive)(Object.assign(Object.assign({},(0,t.toRefs)(e)),{register:d,unregister:h,groupCollapse:(0,t.toRef)(c,"groupCollapse")}))),(0,t.onBeforeMount)((function(){null==s||s.registerGroup(a)})),(0,t.onBeforeUnmount)((function(){null==s||s.unregisterGroup(a)})),Object.assign(Object.assign({},(0,t.toRefs)(c)),{groupLabel:v,handleToggleCollapse:function(){e.collapsible&&!e.disabled&&(c.groupCollapse=!c.groupCollapse,o("update:collapse",c.groupCollapse))}})},render:function(){var r,o,n=(0,e.classes)({"bk-option-group":!0,collapsible:this.collapsible,disabled:this.disabled}),i=(0,e.classes)({"bk-option-group-label":!0,collapsible:this.collapsible}),l=(0,e.classes)({"default-group-label-icon":!0,collapse:this.groupCollapse});return(0,t.withDirectives)((0,t.createVNode)("ul",{class:n},[(0,t.createVNode)("li",{class:i,onClick:this.handleToggleCollapse},[this.$slots.label?this.$slots.label():(0,t.createVNode)("span",{class:"default-group-label"},[this.collapsible&&(0,t.createVNode)(h.AngleUpFill,{class:l},null),(0,t.createVNode)("span",{class:"default-group-label-title"},[this.groupLabel])])]),(0,t.withDirectives)((0,t.createVNode)("ul",{class:"bk-option-group-content"},[null===(o=(r=this.$slots).default)||void 0===o?void 0:o.call(r)]),[[t.vShow,!this.groupCollapse]])]),[[t.vShow,this.visible]])}});function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=c(4061),b=c(4870),m=c.n(b),w=c(5537),x=c.n(w),O=c(7739),P=c.n(O);const T=(0,t.defineComponent)({name:"Select",directives:{clickoutside:y.clickoutside},props:{modelValue:e.PropTypes.any,multiple:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),size:e.PropTypes.size().def("default"),clearable:e.PropTypes.bool.def(!0),loading:e.PropTypes.bool.def(!1),filterable:e.PropTypes.bool.def(!1),remoteMethod:e.PropTypes.func,scrollHeight:e.PropTypes.number.def(216),showSelectAll:e.PropTypes.bool.def(!1),popoverMinWidth:e.PropTypes.number.def(0),showOnInit:e.PropTypes.bool.def(!1),multipleMode:e.PropTypes.oneOf(["default","tag"]).def("default"),tagTheme:e.PropTypes.theme(["success","info","warning","danger"]).def(""),behavior:e.PropTypes.oneOf(["normal","simplicity"]).def("normal"),collapseTags:e.PropTypes.bool.def(!1),noDataText:e.PropTypes.string.def("无数据"),noMatchText:e.PropTypes.string.def("无匹配数据"),loadingText:e.PropTypes.string.def("加载中..."),placeholder:e.PropTypes.string.def("请选择"),selectAllText:e.PropTypes.string.def("全部"),scrollLoading:e.PropTypes.bool.def(!1)},emits:["update:modelValue","change","toggle","clear","scroll-end"],setup:function(e,r){var o=r.emit,i=(0,t.toRefs)(e),c=i.modelValue,u=i.disabled,p=i.filterable,d=i.placeholder,h=i.multiple,v=i.remoteMethod,g=i.loading,y=i.loadingText,b=i.noDataText,m=i.noMatchText,w=i.popoverMinWidth,x=i.showOnInit,O=(0,t.reactive)({currentPlaceholder:d.value,selectedOptions:new Set,currentSelectedLabel:""}),P=(0,t.ref)(),T=(0,t.ref)(),S=(0,t.ref)(new Set),L=(0,t.ref)(new Set),k=(0,t.computed)((function(){return u.value||g.value})),N=(0,t.computed)((function(){return f(O.selectedOptions.values()).map((function(e){return e.label}))})),j=(0,t.computed)((function(){return f(S.value.values()).filter((function(e){return!e.disabled})).every((function(e){return O.selectedOptions.has(e)}))})),C=(0,t.computed)((function(){return!!L.value.size})),V=(0,t.computed)((function(){return!S.value.size})),E=(0,t.computed)((function(){var e=f(S.value.values());return e.length&&e.every((function(e){return!e.visible}))})),F=(0,t.computed)((function(){return"function"==typeof v.value})),M=(0,t.computed)((function(){return!(ie.value||V.value||E.value)})),A=(0,t.computed)((function(){return ie.value?y.value:V.value?b.value:E.value?m.value:""})),_=l(S),G=_.register,H=_.unregister,I=l(L),R=I.register,q=I.unregister,B=function(){var e=(0,t.ref)(!1);return{isHover:e,setHover:function(){e.value=!0},cancelHover:function(){e.value=!1}}}(),D=B.isHover,U=B.setHover,$=B.cancelHover,z=function(){var e=(0,t.ref)(!1);return{isFocus:e,handleFocus:function(){e.value=!0},handleBlur:function(){e.value=!1}}}(),W=z.isFocus,K=z.handleFocus,Y=z.handleBlur,J=function(e){var r=e.popoverMinWidth,o=(0,t.ref)("auto"),n=(0,t.ref)(!1);return{isPopoverShow:n,popperWidth:o,togglePopover:function(){n.value=!n.value},onPopoverFirstUpdate:function(e){var t=e.elements.reference;o.value=Math.max(t.offsetWidth,r)},hidePopover:function(){n.value=!1},showPopover:function(){n.value=!0}}}({popoverMinWidth:w.value}),Q=J.popperWidth,X=J.isPopoverShow,Z=J.onPopoverFirstUpdate,ee=J.hidePopover,te=J.showPopover,re=J.togglePopover,oe=a(F.value?v.value:function(e){S.value.forEach((function(t){var r;t.visible=null===(r=s(String(t.label)))||void 0===r?void 0:r.includes(s(e))}))}),ne=oe.searchKey,ie=oe.searchLoading,le=function(){var e=N.value.join(",");p.value&&X.value?(O.currentPlaceholder=e||d.value,O.currentSelectedLabel=""):(O.currentPlaceholder=d.value,O.currentSelectedLabel=e,ne.value="")};(0,t.watch)(X,(function(){le()}));var ae=function(e){e!==c.value&&(o("change",e),o("update:modelValue",e))},se=function(){P.value.focus(),T.value.update(),!ne.value&&le()},ce=function(e){!k.value&&e&&(h.value?(O.selectedOptions.has(e)?O.selectedOptions.delete(e):O.selectedOptions.add(e),ae(f(O.selectedOptions.values()).map((function(e){return e.value})))):(O.selectedOptions.clear(),O.selectedOptions.add(e),ae(e.value),ee()),se())};return(0,t.provide)(n,(0,t.reactive)({props:e,selectedOptions:(0,t.unref)(O.selectedOptions),register:G,unregister:H,registerGroup:R,unregisterGroup:q,handleOptionSelected:ce})),(0,t.onMounted)((function(){var e=Array.isArray(c.value)?c.value:[c.value];S.value.forEach((function(t){e.includes(t.value)&&O.selectedOptions.add(t)})),le(),setTimeout((function(){x.value&&te()}))})),Object.assign(Object.assign({},(0,t.toRefs)(O)),{options:S,isDisabled:k,selectedLabel:N,isPopoverShow:X,isHover:D,popperWidth:Q,popoverRef:T,inputRef:P,searchLoading:ie,isOptionsEmpty:V,isSearchEmpty:E,isFocus:W,isShowSelectContent:M,curContentText:A,isGroup:C,searchKey:ne,setHover:U,cancelHover:$,handleFocus:K,handleInput:function(e){ne.value=e.target.value},handleTogglePopover:function(){k.value||(re(),o("toggle",X.value))},handleClear:function(e){e.stopPropagation(),O.selectedOptions.clear(),ee(),le(),ae(h.value?[]:""),o("clear",h.value?[]:"")},onPopoverFirstUpdate:Z,hidePopover:ee,showPopover:te,handleToggleAll:function(){j.value?O.selectedOptions.clear():S.value.forEach((function(e){e.disabled||O.selectedOptions.has(e)||O.selectedOptions.add(e)})),se(),ae(f(O.selectedOptions.values()).map((function(e){return e.value})))},handleOptionSelected:ce,handleClickOutside:function(){ee(),Y()},handleScroll:function(e){var t=e.target;t.scrollTop+t.clientHeight===t.scrollHeight&&o("scroll-end")}})},render:function(){var r,o=this,n=(0,e.classes)((g(r={"bk-select":!0,"popover-show":this.isPopoverShow,"is-disabled":this.isDisabled,"is-focus":this.isFocus,"is-filterable":this.filterable},this.size,!0),g(r,this.behavior,!0),r));return(0,t.withDirectives)((0,t.createVNode)("div",{class:n},[(0,t.createVNode)(x(),{ref:"popoverRef",theme:"light",trigger:"manual",width:this.popperWidth,arrow:!1,placement:"bottom",isShow:this.isPopoverShow,modifiers:[{name:"offset",options:{offset:[0,4]}}],handleFirstUpdate:this.onPopoverFirstUpdate},{default:function(){return(0,t.createVNode)("div",{class:"bk-select-trigger",onClick:o.handleTogglePopover,onMouseenter:o.setHover,onMouseleave:o.cancelHover},[o.$slots.prefixIcon?(0,t.createVNode)("span",{class:"bk-select-prefix"},[null===(r=(e=o.$slots).prefixIcon)||void 0===r?void 0:r.call(e)]):null,"tag"===o.multipleMode?(0,t.createVNode)("div",{class:"bk-select-tag"},[f(o.selectedOptions.values()).map((function(e){return(0,t.createVNode)(P(),{closable:!0,style:{marginTop:"3px"},theme:o.tagTheme,onClose:function(){return o.handleOptionSelected(e)}},{default:function(){return[e.label]}})})),(0,t.withDirectives)((0,t.createVNode)("input",{class:"bk-select-tag-input",ref:"inputRef",type:"text",placeholder:o.selectedOptions.size?"":o.placeholder,readonly:!o.filterable||!o.isPopoverShow,"onUpdate:modelValue":function(e){return o.searchKey=e},onFocus:o.handleFocus},null),[[t.vModelText,o.searchKey]])]):(0,t.withDirectives)((0,t.createVNode)("input",{ref:"inputRef",type:"text",class:"bk-select-input",style:{paddingLeft:o.$slots.prefixIcon?"20px":"10px"},"onUpdate:modelValue":function(e){return o.currentSelectedLabel=e},placeholder:o.currentPlaceholder,readonly:!o.filterable||!o.isPopoverShow,onFocus:o.handleFocus,onInput:o.handleInput},null),[[t.vModelText,o.currentSelectedLabel]]),o.loading?(0,t.createVNode)(m(),{loading:!0,class:"spinner",mode:"spin",size:"mini"},null):o.clearable&&o.isHover?(0,t.createVNode)(h.Close,{class:"clear-icon",onClick:o.handleClear},null):(0,t.createVNode)(h.AngleUp,{class:"angle-up"},null)]);var e,r},content:function(){return(0,t.createVNode)("div",null,[!o.isShowSelectContent&&(0,t.createVNode)("div",{class:"bk-select-empty"},[o.searchLoading&&(0,t.createVNode)(m(),{class:"mr5",loading:!0,mode:"spin",size:"mini"},null),o.curContentText]),(0,t.createVNode)("div",{class:"bk-select-content"},[(0,t.createVNode)("div",{class:"bk-select-dropdown",style:{maxHeight:"".concat(o.scrollHeight,"px")},onScroll:o.handleScroll},[(0,t.withDirectives)((0,t.createVNode)("ul",{class:"bk-select-options"},[o.multiple&&o.showSelectAll&&!o.searchKey&&(0,t.createVNode)("li",{class:"bk-select-option",onClick:o.handleToggleAll},[o.selectAllText]),null===(r=(e=o.$slots).default)||void 0===r?void 0:r.call(e),o.scrollLoading&&(0,t.createVNode)("li",{class:"bk-select-options-loading"},[(0,t.createVNode)(m(),{class:"spinner mr5",theme:"primary",loading:!0,mode:"spin",size:"mini"},null),o.loadingText])]),[[t.vShow,o.isShowSelectContent]])]),o.$slots.extension&&(0,t.createVNode)("div",{class:"bk-select-extension"},[o.$slots.extension()])])]);var e,r}})]),[[(0,t.resolveDirective)("clickoutside"),this.handleClickOutside]])}});var S=(0,e.withInstallProps)(T,{Option:p,Group:v});const L=S})(),u})()));
@@ -286,6 +286,11 @@
286
286
  cursor: not-allowed;
287
287
  background-color: transparent;
288
288
  }
289
+ .bk-select .bk-select-options-loading {
290
+ display: flex;
291
+ align-items: center;
292
+ justify-content: center;
293
+ }
289
294
  .bk-select .bk-option-group-label {
290
295
  height: 32px;
291
296
  padding: 0 8px;
@@ -91,6 +91,11 @@ declare const _default: import("vue").DefineComponent<{
91
91
  } & {
92
92
  default: string;
93
93
  };
94
+ scrollLoading: import("vue-types").VueTypeValidableDef<boolean> & {
95
+ default: boolean;
96
+ } & {
97
+ default: boolean;
98
+ };
94
99
  }, {
95
100
  options: import("vue").Ref<Set<{
96
101
  $: import("vue").ComponentInternalInstance;
@@ -195,6 +200,7 @@ declare const _default: import("vue").DefineComponent<{
195
200
  handleToggleAll: () => void;
196
201
  handleOptionSelected: (option: OptionInstanceType) => void;
197
202
  handleClickOutside: () => void;
203
+ handleScroll: (e: any) => void;
198
204
  currentPlaceholder: import("vue").Ref<string>;
199
205
  selectedOptions: import("vue").Ref<Set<{
200
206
  $: import("vue").ComponentInternalInstance;
@@ -273,7 +279,7 @@ declare const _default: import("vue").DefineComponent<{
273
279
  visible: import("vue").Ref<boolean>;
274
280
  }> & {} & {} & import("vue").ComponentCustomProperties>>;
275
281
  currentSelectedLabel: import("vue").Ref<string>;
276
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "toggle" | "clear" | "update:modelValue")[], "change" | "toggle" | "clear" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
282
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "change" | "toggle" | "update:modelValue" | "scroll-end")[], "clear" | "change" | "toggle" | "update:modelValue" | "scroll-end", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
277
283
  modelValue: import("vue-types").VueTypeValidableDef<any>;
278
284
  multiple: import("vue-types").VueTypeValidableDef<boolean> & {
279
285
  default: boolean;
@@ -365,11 +371,17 @@ declare const _default: import("vue").DefineComponent<{
365
371
  } & {
366
372
  default: string;
367
373
  };
374
+ scrollLoading: import("vue-types").VueTypeValidableDef<boolean> & {
375
+ default: boolean;
376
+ } & {
377
+ default: boolean;
378
+ };
368
379
  }>> & {
369
380
  onChange?: (...args: any[]) => any;
370
381
  "onUpdate:modelValue"?: (...args: any[]) => any;
371
382
  onClear?: (...args: any[]) => any;
372
383
  onToggle?: (...args: any[]) => any;
384
+ "onScroll-end"?: (...args: any[]) => any;
373
385
  }, {
374
386
  placeholder: string;
375
387
  size: string;
@@ -391,5 +403,6 @@ declare const _default: import("vue").DefineComponent<{
391
403
  noMatchText: string;
392
404
  loadingText: string;
393
405
  selectAllText: string;
406
+ scrollLoading: boolean;
394
407
  }>;
395
408
  export default _default;
@@ -271,6 +271,12 @@
271
271
 
272
272
  }
273
273
 
274
+ .bk-select-options-loading {
275
+ display: flex;
276
+ align-items: center;
277
+ justify-content: center;
278
+ }
279
+
274
280
  .bk-option-group {
275
281
  &-label {
276
282
  height: 32px;
@@ -380,6 +380,11 @@
380
380
  cursor: not-allowed;
381
381
  background-color: transparent;
382
382
  }
383
+ .bk-select .bk-select-options-loading {
384
+ display: flex;
385
+ align-items: center;
386
+ justify-content: center;
387
+ }
383
388
  .bk-select .bk-option-group-label {
384
389
  height: 32px;
385
390
  padding: 0 8px;
@@ -5,8 +5,8 @@ declare const BkSideslider: {
5
5
  $props: Partial<{
6
6
  width: string | number;
7
7
  height: string | number;
8
- showMask: boolean;
9
8
  size: string;
9
+ showMask: boolean;
10
10
  direction: string;
11
11
  isShow: boolean;
12
12
  customClass: string | unknown[];
@@ -75,7 +75,7 @@ declare const BkSideslider: {
75
75
  }>> & {
76
76
  onClosed?: (...args: any[]) => any;
77
77
  "onUpdate:isShow"?: (...args: any[]) => any;
78
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "height" | "showMask" | "size" | "direction" | "isShow" | "customClass" | "scrollable" | "closeIcon" | "escClose" | "maskClose" | "fullscreen" | "renderDirective">;
78
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "height" | "size" | "showMask" | "direction" | "isShow" | "customClass" | "scrollable" | "closeIcon" | "escClose" | "maskClose" | "fullscreen" | "renderDirective">;
79
79
  $attrs: {
80
80
  [x: string]: unknown;
81
81
  };
@@ -153,8 +153,8 @@ declare const BkSideslider: {
153
153
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:isShow")[], string, {
154
154
  width: string | number;
155
155
  height: string | number;
156
- showMask: boolean;
157
156
  size: string;
157
+ showMask: boolean;
158
158
  direction: string;
159
159
  isShow: boolean;
160
160
  customClass: string | unknown[];
@@ -313,8 +313,8 @@ declare const BkSideslider: {
313
313
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:isShow")[], "closed" | "update:isShow", {
314
314
  width: string | number;
315
315
  height: string | number;
316
- showMask: boolean;
317
316
  size: string;
317
+ showMask: boolean;
318
318
  direction: string;
319
319
  isShow: boolean;
320
320
  customClass: string | unknown[];
@@ -118,8 +118,8 @@ declare const _default: import("vue").DefineComponent<{
118
118
  }, {
119
119
  width: string | number;
120
120
  height: string | number;
121
- showMask: boolean;
122
121
  size: string;
122
+ showMask: boolean;
123
123
  direction: string;
124
124
  isShow: boolean;
125
125
  customClass: string | unknown[];
@@ -182,8 +182,8 @@ declare const _default: import("vue").DefineComponent<{
182
182
  height: string;
183
183
  step: number;
184
184
  vertical: boolean;
185
- extCls: string;
186
185
  range: boolean;
186
+ extCls: string;
187
187
  disable: boolean;
188
188
  showTip: boolean;
189
189
  maxValue: number;
@@ -3,10 +3,10 @@ declare const BkSwitcher: {
3
3
  $: import("vue").ComponentInternalInstance;
4
4
  $data: {};
5
5
  $props: Partial<{
6
+ disabled: boolean;
6
7
  theme: string;
7
8
  value: string | number | boolean;
8
9
  extCls: string;
9
- disabled: boolean;
10
10
  modelValue: string | number | boolean;
11
11
  showText: boolean;
12
12
  isOutline: boolean;
@@ -66,7 +66,7 @@ declare const BkSwitcher: {
66
66
  }>> & {
67
67
  onChange?: (...args: any[]) => any;
68
68
  "onUpdate:modelValue"?: (...args: any[]) => any;
69
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "value" | "extCls" | "disabled" | "modelValue" | "showText" | "isOutline" | "onText" | "offText" | "isSquare" | "preCheck" | "trueValue" | "falseValue">;
69
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "theme" | "value" | "extCls" | "modelValue" | "showText" | "isOutline" | "onText" | "offText" | "isSquare" | "preCheck" | "trueValue" | "falseValue">;
70
70
  $attrs: {
71
71
  [x: string]: unknown;
72
72
  };
@@ -131,10 +131,10 @@ declare const BkSwitcher: {
131
131
  onChange?: (...args: any[]) => any;
132
132
  "onUpdate:modelValue"?: (...args: any[]) => any;
133
133
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], string, {
134
+ disabled: boolean;
134
135
  theme: string;
135
136
  value: string | number | boolean;
136
137
  extCls: string;
137
- disabled: boolean;
138
138
  modelValue: string | number | boolean;
139
139
  showText: boolean;
140
140
  isOutline: boolean;
@@ -269,10 +269,10 @@ declare const BkSwitcher: {
269
269
  onChange?: (...args: any[]) => any;
270
270
  "onUpdate:modelValue"?: (...args: any[]) => any;
271
271
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", {
272
+ disabled: boolean;
272
273
  theme: string;
273
274
  value: string | number | boolean;
274
275
  extCls: string;
275
- disabled: boolean;
276
276
  modelValue: string | number | boolean;
277
277
  showText: boolean;
278
278
  isOutline: boolean;
@@ -96,10 +96,10 @@ declare const _default: import("vue").DefineComponent<{
96
96
  onChange?: (...args: any[]) => any;
97
97
  "onUpdate:modelValue"?: (...args: any[]) => any;
98
98
  }, {
99
+ disabled: boolean;
99
100
  theme: string;
100
101
  value: string | number | boolean;
101
102
  extCls: string;
102
- disabled: boolean;
103
103
  modelValue: string | number | boolean;
104
104
  showText: boolean;
105
105
  isOutline: boolean;
@@ -5,9 +5,9 @@ declare const BkTab: {
5
5
  $data: {};
6
6
  $props: Partial<{
7
7
  type: string;
8
+ active: string | number;
8
9
  closable: boolean;
9
10
  extCls: string;
10
- active: string | number;
11
11
  showHeader: boolean;
12
12
  sortType: string;
13
13
  addable: boolean;
@@ -81,7 +81,7 @@ declare const BkTab: {
81
81
  onRemove?: (...args: any[]) => any;
82
82
  "onUpdate:active"?: (...args: any[]) => any;
83
83
  onSort?: (...args: any[]) => any;
84
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "closable" | "extCls" | "active" | "showHeader" | "sortType" | "addable" | "sortable" | "labelHeight" | "scrollStep" | "validateActive" | "changeOnHover" | "changeOnHoverDelay" | "tabPosition">;
84
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "active" | "closable" | "extCls" | "showHeader" | "sortType" | "addable" | "sortable" | "labelHeight" | "scrollStep" | "validateActive" | "changeOnHover" | "changeOnHoverDelay" | "tabPosition">;
85
85
  $attrs: {
86
86
  [x: string]: unknown;
87
87
  };
@@ -93,7 +93,7 @@ declare const BkTab: {
93
93
  }>;
94
94
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
95
95
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
96
- $emit: (event: "change" | "drag" | "add" | "add-panel" | "tab-change" | "remove-panel" | "sort-change" | "on-drag-tab" | "remove" | "update:active" | "sort", ...args: any[]) => void;
96
+ $emit: (event: "add" | "drag" | "change" | "add-panel" | "tab-change" | "remove-panel" | "sort-change" | "on-drag-tab" | "remove" | "update:active" | "sort", ...args: any[]) => void;
97
97
  $el: any;
98
98
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
99
99
  active: import("vue-types").VueTypeDef<string | number> & {
@@ -167,11 +167,11 @@ declare const BkTab: {
167
167
  tabRemove(index: number, panel: any): void;
168
168
  tabSort(dragTabIndex: number, dropTabIndex: number, sortType: string): false;
169
169
  tabDrag(dragTabIndex: number, dragEvent: DragEvent): void;
170
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "drag" | "add" | "add-panel" | "tab-change" | "remove-panel" | "sort-change" | "on-drag-tab" | "remove" | "update:active" | "sort")[], string, {
170
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("add" | "drag" | "change" | "add-panel" | "tab-change" | "remove-panel" | "sort-change" | "on-drag-tab" | "remove" | "update:active" | "sort")[], string, {
171
171
  type: string;
172
+ active: string | number;
172
173
  closable: boolean;
173
174
  extCls: string;
174
- active: string | number;
175
175
  showHeader: boolean;
176
176
  sortType: string;
177
177
  addable: boolean;
@@ -350,11 +350,11 @@ declare const BkTab: {
350
350
  tabRemove(index: number, panel: any): void;
351
351
  tabSort(dragTabIndex: number, dropTabIndex: number, sortType: string): false;
352
352
  tabDrag(dragTabIndex: number, dragEvent: DragEvent): void;
353
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "drag" | "add" | "add-panel" | "tab-change" | "remove-panel" | "sort-change" | "on-drag-tab" | "remove" | "update:active" | "sort")[], "change" | "drag" | "sort" | "add" | "add-panel" | "tab-change" | "remove-panel" | "sort-change" | "on-drag-tab" | "remove" | "update:active", {
353
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("add" | "drag" | "change" | "add-panel" | "tab-change" | "remove-panel" | "sort-change" | "on-drag-tab" | "remove" | "update:active" | "sort")[], "add" | "drag" | "change" | "sort" | "add-panel" | "tab-change" | "remove-panel" | "sort-change" | "on-drag-tab" | "remove" | "update:active", {
354
354
  type: string;
355
+ active: string | number;
355
356
  closable: boolean;
356
357
  extCls: string;
357
- active: string | number;
358
358
  showHeader: boolean;
359
359
  sortType: string;
360
360
  addable: boolean;
@@ -431,9 +431,9 @@ declare const BkTab: {
431
431
  }>>, {
432
432
  name: string | number;
433
433
  label: string | ((...args: any[]) => any);
434
- closable: boolean;
435
434
  visible: boolean;
436
435
  disabled: boolean;
436
+ closable: boolean;
437
437
  panel: string | ((...args: any[]) => any);
438
438
  renderDirective: string;
439
439
  sortable: boolean;
@@ -143,8 +143,8 @@ declare const _default: import("vue").DefineComponent<{
143
143
  default: number;
144
144
  };
145
145
  }>>, {
146
- closable: boolean;
147
146
  active: string | number;
147
+ closable: boolean;
148
148
  sortType: string;
149
149
  tabAdd: Function;
150
150
  tabChange: Function;
@@ -63,9 +63,9 @@ declare const _default: import("vue").DefineComponent<{
63
63
  }>>, {
64
64
  name: string | number;
65
65
  label: string | ((...args: any[]) => any);
66
- closable: boolean;
67
66
  visible: boolean;
68
67
  disabled: boolean;
68
+ closable: boolean;
69
69
  panel: string | ((...args: any[]) => any);
70
70
  renderDirective: string;
71
71
  sortable: boolean;
package/lib/tab/tab.d.ts CHANGED
@@ -58,7 +58,7 @@ declare const _default: import("vue").DefineComponent<{
58
58
  tabRemove(index: number, panel: any): void;
59
59
  tabSort(dragTabIndex: number, dropTabIndex: number, sortType: string): false;
60
60
  tabDrag(dragTabIndex: number, dragEvent: DragEvent): void;
61
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "drag" | "add" | "add-panel" | "tab-change" | "remove-panel" | "sort-change" | "on-drag-tab" | "remove" | "update:active" | "sort")[], "change" | "drag" | "sort" | "add" | "add-panel" | "tab-change" | "remove-panel" | "sort-change" | "on-drag-tab" | "remove" | "update:active", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
61
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("add" | "drag" | "change" | "add-panel" | "tab-change" | "remove-panel" | "sort-change" | "on-drag-tab" | "remove" | "update:active" | "sort")[], "add" | "drag" | "change" | "sort" | "add-panel" | "tab-change" | "remove-panel" | "sort-change" | "on-drag-tab" | "remove" | "update:active", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
62
62
  active: import("vue-types").VueTypeDef<string | number> & {
63
63
  default: string | number;
64
64
  };
@@ -123,9 +123,9 @@ declare const _default: import("vue").DefineComponent<{
123
123
  onSort?: (...args: any[]) => any;
124
124
  }, {
125
125
  type: string;
126
+ active: string | number;
126
127
  closable: boolean;
127
128
  extCls: string;
128
- active: string | number;
129
129
  showHeader: boolean;
130
130
  sortType: string;
131
131
  addable: boolean;
@@ -5,8 +5,8 @@ declare const BkTable: {
5
5
  $props: Partial<{
6
6
  height: string | number;
7
7
  data: any[];
8
- minHeight: string | number;
9
8
  border: string[];
9
+ minHeight: string | number;
10
10
  headHeight: number;
11
11
  pagination: boolean | {
12
12
  [key: string]: any;
@@ -71,7 +71,7 @@ declare const BkTable: {
71
71
  onPageValueChange?: (...args: any[]) => any;
72
72
  onRowClick?: (...args: any[]) => any;
73
73
  onRowDblClick?: (...args: any[]) => any;
74
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "height" | "data" | "minHeight" | "border" | "headHeight" | "pagination" | "columnPick" | "rowHeight" | "showHead" | "virtualEnabled" | "remotePagination">;
74
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "height" | "data" | "border" | "minHeight" | "headHeight" | "pagination" | "columnPick" | "rowHeight" | "showHead" | "virtualEnabled" | "remotePagination">;
75
75
  $attrs: {
76
76
  [x: string]: unknown;
77
77
  };
@@ -143,8 +143,8 @@ declare const BkTable: {
143
143
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("columnPick" | "pageLimitChange" | "pageValueChange" | "rowClick" | "rowDblClick")[], string, {
144
144
  height: string | number;
145
145
  data: any[];
146
- minHeight: string | number;
147
146
  border: string[];
147
+ minHeight: string | number;
148
148
  headHeight: number;
149
149
  pagination: boolean | {
150
150
  [key: string]: any;
@@ -291,8 +291,8 @@ declare const BkTable: {
291
291
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("columnPick" | "pageLimitChange" | "pageValueChange" | "rowClick" | "rowDblClick")[], "columnPick" | "pageLimitChange" | "pageValueChange" | "rowClick" | "rowDblClick", {
292
292
  height: string | number;
293
293
  data: any[];
294
- minHeight: string | number;
295
294
  border: string[];
295
+ minHeight: string | number;
296
296
  headHeight: number;
297
297
  pagination: boolean | {
298
298
  [key: string]: any;