bkui-vue 0.0.1-beta.340 → 0.0.1-beta.342

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 (225) hide show
  1. package/dist/index.cjs.js +58 -58
  2. package/dist/index.esm.js +309 -139
  3. package/dist/index.umd.js +56 -56
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/affix.d.ts +1 -1
  7. package/lib/affix/index.d.ts +4 -4
  8. package/lib/alert/alert.d.ts +5 -5
  9. package/lib/alert/index.d.ts +11 -11
  10. package/lib/alert/index.js +1 -1
  11. package/lib/animate-number/animate-number.d.ts +1 -1
  12. package/lib/animate-number/index.d.ts +4 -4
  13. package/lib/backtop/backtop.d.ts +1 -1
  14. package/lib/backtop/index.d.ts +4 -4
  15. package/lib/button/button-group.d.ts +2 -2
  16. package/lib/button/button.d.ts +29 -30
  17. package/lib/button/index.d.ts +45 -48
  18. package/lib/button/index.js +1 -1
  19. package/lib/cascader/cascader.d.ts +1 -1
  20. package/lib/cascader/index.d.ts +4 -4
  21. package/lib/checkbox/checkbox.d.ts +8 -8
  22. package/lib/checkbox/index.d.ts +14 -14
  23. package/lib/checkbox/index.js +1 -1
  24. package/lib/code-diff/code-diff.css +27 -7
  25. package/lib/code-diff/code-diff.less +42 -7
  26. package/lib/code-diff/code-diff.variable.css +27 -7
  27. package/lib/collapse/collapse-panel.d.ts +2 -7
  28. package/lib/collapse/index.d.ts +2 -7
  29. package/lib/collapse/index.js +1 -1
  30. package/lib/collapse/props.d.ts +2 -43
  31. package/lib/color-picker/color-picker.d.ts +7 -7
  32. package/lib/color-picker/index.d.ts +12 -12
  33. package/lib/color-picker/index.js +1 -1
  34. package/lib/date-picker/date-picker.d.ts +7 -7
  35. package/lib/date-picker/index.d.ts +18 -18
  36. package/lib/date-picker/panel/date-range.d.ts +1 -1
  37. package/lib/date-picker/panel/date.d.ts +1 -1
  38. package/lib/date-picker/panel/time-range.d.ts +7 -7
  39. package/lib/date-picker/panel/time.d.ts +8 -8
  40. package/lib/date-picker/props.d.ts +2 -2
  41. package/lib/date-picker/time-picker.d.ts +7 -7
  42. package/lib/dialog/dialog.d.ts +25 -45
  43. package/lib/dialog/index.d.ts +56 -100
  44. package/lib/dialog/index.js +1 -1
  45. package/lib/dialog/props.d.ts +10 -18
  46. package/lib/divider/divider.d.ts +15 -15
  47. package/lib/divider/index.d.ts +34 -34
  48. package/lib/divider/index.js +1 -1
  49. package/lib/divider/props.d.ts +6 -6
  50. package/lib/dropdown/dropdown.d.ts +17 -17
  51. package/lib/dropdown/index.d.ts +24 -24
  52. package/lib/dropdown/index.js +1 -1
  53. package/lib/exception/exception.d.ts +10 -10
  54. package/lib/exception/index.d.ts +22 -22
  55. package/lib/exception/index.js +1 -1
  56. package/lib/icon/angle-double-down-line.js +1 -1
  57. package/lib/icon/angle-double-left-line.js +1 -1
  58. package/lib/icon/angle-double-left.js +1 -1
  59. package/lib/icon/angle-double-right-line.js +1 -1
  60. package/lib/icon/angle-double-right.js +1 -1
  61. package/lib/icon/angle-double-up-line.js +1 -1
  62. package/lib/icon/angle-down-fill.js +1 -1
  63. package/lib/icon/angle-down-line.js +1 -1
  64. package/lib/icon/angle-down.js +1 -1
  65. package/lib/icon/angle-left.js +1 -1
  66. package/lib/icon/angle-right.js +1 -1
  67. package/lib/icon/angle-up-fill.js +1 -1
  68. package/lib/icon/angle-up.js +1 -1
  69. package/lib/icon/archive-fill.js +1 -1
  70. package/lib/icon/arrows-left.js +1 -1
  71. package/lib/icon/arrows-right.js +1 -1
  72. package/lib/icon/audio-fill.js +1 -1
  73. package/lib/icon/bk.js +1 -1
  74. package/lib/icon/circle.js +1 -1
  75. package/lib/icon/close-line.js +1 -1
  76. package/lib/icon/close.js +1 -1
  77. package/lib/icon/code.js +1 -1
  78. package/lib/icon/cog-shape.js +1 -1
  79. package/lib/icon/collapse-left.js +1 -1
  80. package/lib/icon/copy.js +1 -1
  81. package/lib/icon/data-shape.js +1 -1
  82. package/lib/icon/del.js +1 -1
  83. package/lib/icon/doc-fill.js +1 -1
  84. package/lib/icon/done.js +1 -1
  85. package/lib/icon/down-shape.js +1 -1
  86. package/lib/icon/down-small.js +1 -1
  87. package/lib/icon/edit-line.js +1 -1
  88. package/lib/icon/ellipsis.js +1 -1
  89. package/lib/icon/enlarge-line.js +1 -1
  90. package/lib/icon/error.js +1 -1
  91. package/lib/icon/excel-fill.js +1 -1
  92. package/lib/icon/exclamation-circle-shape.js +1 -1
  93. package/lib/icon/eye.js +1 -1
  94. package/lib/icon/filliscreen-line.js +1 -1
  95. package/lib/icon/folder-open.js +1 -1
  96. package/lib/icon/folder-shape-open.js +1 -1
  97. package/lib/icon/folder-shape.js +1 -1
  98. package/lib/icon/folder.js +1 -1
  99. package/lib/icon/funnel.js +1 -1
  100. package/lib/icon/help-document-fill.js +1 -1
  101. package/lib/icon/help-fill.js +1 -1
  102. package/lib/icon/help.js +1 -1
  103. package/lib/icon/img-error.js +1 -1
  104. package/lib/icon/img-placehoulder.js +1 -1
  105. package/lib/icon/index.d.ts +1 -1
  106. package/lib/icon/index.js +1 -1
  107. package/lib/icon/info-line.js +1 -1
  108. package/lib/icon/info.js +1 -1
  109. package/lib/icon/left-shape.js +1 -1
  110. package/lib/icon/left-turn-line.js +1 -1
  111. package/lib/icon/narrow-line.js +1 -1
  112. package/lib/icon/{original .d.ts → original.d.ts} +0 -0
  113. package/lib/icon/original.js +1 -0
  114. package/lib/icon/pdf-fill.js +1 -1
  115. package/lib/icon/play-shape.js +1 -1
  116. package/lib/icon/plus.js +1 -1
  117. package/lib/icon/ppt-fill.js +1 -1
  118. package/lib/icon/qq.js +1 -1
  119. package/lib/icon/right-shape.js +1 -1
  120. package/lib/icon/right-turn-line.js +1 -1
  121. package/lib/icon/search.js +1 -1
  122. package/lib/icon/share.js +1 -1
  123. package/lib/icon/spinner.js +1 -1
  124. package/lib/icon/success.js +1 -1
  125. package/lib/icon/switcher-loading.js +1 -1
  126. package/lib/icon/text-file.js +1 -1
  127. package/lib/icon/text-fill.js +1 -1
  128. package/lib/icon/transfer.js +1 -1
  129. package/lib/icon/tree-application-shape.js +1 -1
  130. package/lib/icon/unfull-screen.js +1 -1
  131. package/lib/icon/unvisible.js +1 -1
  132. package/lib/icon/up-shape.js +1 -1
  133. package/lib/icon/upload.js +1 -1
  134. package/lib/icon/video-fill.js +1 -1
  135. package/lib/icon/warn.js +1 -1
  136. package/lib/icon/weixin.js +1 -1
  137. package/lib/image/image.d.ts +5 -5
  138. package/lib/image/index.d.ts +11 -11
  139. package/lib/image/index.js +1 -1
  140. package/lib/image/props.d.ts +2 -2
  141. package/lib/info-box/index.js +1 -1
  142. package/lib/input/index.d.ts +16 -16
  143. package/lib/input/index.js +1 -1
  144. package/lib/input/input.d.ts +10 -10
  145. package/lib/link/index.d.ts +15 -15
  146. package/lib/link/index.js +1 -1
  147. package/lib/link/link.d.ts +6 -6
  148. package/lib/loading/index.d.ts +38 -22
  149. package/lib/loading/index.js +1 -1
  150. package/lib/loading/loading.d.ts +27 -15
  151. package/lib/message/index.js +1 -1
  152. package/lib/message/messageConstructor.d.ts +5 -5
  153. package/lib/modal/index.d.ts +24 -76
  154. package/lib/modal/index.js +1 -1
  155. package/lib/modal/modal.d.ts +9 -29
  156. package/lib/modal/props.mixin.d.ts +5 -12
  157. package/lib/notify/index.js +1 -1
  158. package/lib/notify/notifyConstructor.d.ts +5 -5
  159. package/lib/pagination/index.d.ts +8 -8
  160. package/lib/pagination/pagination.d.ts +4 -4
  161. package/lib/plugin-popover/index.js +1 -1
  162. package/lib/popover/index.d.ts +78 -50
  163. package/lib/popover/index.js +1 -1
  164. package/lib/popover/popover.d.ts +35 -23
  165. package/lib/popover/props.d.ts +12 -10
  166. package/lib/popover/use-floating.d.ts +4 -1
  167. package/lib/progress/index.d.ts +15 -15
  168. package/lib/progress/index.js +1 -1
  169. package/lib/progress/progress.d.ts +7 -7
  170. package/lib/radio/index.d.ts +2 -2
  171. package/lib/radio/radio-button.d.ts +3 -3
  172. package/lib/rate/index.d.ts +4 -4
  173. package/lib/rate/rate.d.ts +2 -2
  174. package/lib/resize-layout/index.d.ts +15 -15
  175. package/lib/resize-layout/resize-layout.d.ts +6 -6
  176. package/lib/select/index.d.ts +103 -91
  177. package/lib/select/index.js +1 -1
  178. package/lib/select/select.d.ts +38 -34
  179. package/lib/select/selectTagInput.d.ts +5 -5
  180. package/lib/shared/index.js +1 -1
  181. package/lib/shared/pop-manager.d.ts +9 -1
  182. package/lib/shared/vue-types.d.ts +89 -7
  183. package/lib/sideslider/index.d.ts +20 -64
  184. package/lib/sideslider/sideslider.d.ts +9 -29
  185. package/lib/slider/index.d.ts +4 -4
  186. package/lib/slider/index.js +1 -1
  187. package/lib/slider/slider-button.d.ts +2 -1
  188. package/lib/slider/slider.d.ts +1 -1
  189. package/lib/steps/index.d.ts +49 -49
  190. package/lib/steps/index.js +1 -1
  191. package/lib/steps/steps.d.ts +31 -31
  192. package/lib/switcher/index.d.ts +9 -20
  193. package/lib/switcher/index.js +1 -1
  194. package/lib/switcher/switcher.d.ts +4 -9
  195. package/lib/tab/index.d.ts +39 -44
  196. package/lib/tab/index.js +1 -1
  197. package/lib/tab/props.d.ts +12 -13
  198. package/lib/tab/tab-nav.d.ts +11 -11
  199. package/lib/tab/tab-panel.d.ts +2 -7
  200. package/lib/tab/tab.d.ts +16 -16
  201. package/lib/table/components/table-column.d.ts +22 -27
  202. package/lib/table/index.d.ts +160 -94
  203. package/lib/table/index.js +1 -1
  204. package/lib/table/props.d.ts +42 -18
  205. package/lib/table/table.d.ts +50 -15
  206. package/lib/table/use-common.d.ts +6 -6
  207. package/lib/table-column/index.d.ts +49 -60
  208. package/lib/table-column/index.js +1 -1
  209. package/lib/tag/index.d.ts +22 -22
  210. package/lib/tag/index.js +1 -1
  211. package/lib/tag/tag.d.ts +10 -10
  212. package/lib/tag-input/index.d.ts +80 -73
  213. package/lib/tag-input/index.js +1 -1
  214. package/lib/tag-input/tag-input.css +1 -5
  215. package/lib/tag-input/tag-input.d.ts +37 -32
  216. package/lib/tag-input/tag-input.less +3 -6
  217. package/lib/tag-input/tag-input.variable.css +1 -5
  218. package/lib/tag-input/tag-props.d.ts +16 -12
  219. package/lib/time-picker/index.d.ts +18 -18
  220. package/lib/tree/constant.d.ts +6 -1
  221. package/lib/tree/index.js +1 -1
  222. package/lib/tree/use-empty.d.ts +1 -1
  223. package/package.json +1 -1
  224. package/lib/dropdown/const.d.ts +0 -4
  225. package/lib/icon/original .js +0 -1
@@ -39,8 +39,8 @@ declare const _default: import("vue").DefineComponent<{
39
39
  }>> & {
40
40
  onChange?: (...args: any[]) => any;
41
41
  }, {
42
- zIndex: number;
43
42
  target: string;
43
+ zIndex: number;
44
44
  offsetTop: number;
45
45
  offsetBottom: number;
46
46
  }>;
@@ -3,8 +3,8 @@ declare const BkAffix: {
3
3
  $: import("vue").ComponentInternalInstance;
4
4
  $data: {};
5
5
  $props: Partial<{
6
- zIndex: number;
7
6
  target: string;
7
+ zIndex: number;
8
8
  offsetTop: number;
9
9
  offsetBottom: number;
10
10
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
@@ -28,7 +28,7 @@ declare const BkAffix: {
28
28
  };
29
29
  }>> & {
30
30
  onChange?: (...args: any[]) => any;
31
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "zIndex" | "target" | "offsetTop" | "offsetBottom">;
31
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "target" | "zIndex" | "offsetTop" | "offsetBottom">;
32
32
  $attrs: {
33
33
  [x: string]: unknown;
34
34
  };
@@ -64,8 +64,8 @@ declare const BkAffix: {
64
64
  }>> & {
65
65
  onChange?: (...args: any[]) => any;
66
66
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], string, {
67
- zIndex: number;
68
67
  target: string;
68
+ zIndex: number;
69
69
  offsetTop: number;
70
70
  offsetBottom: number;
71
71
  }> & {
@@ -135,8 +135,8 @@ declare const BkAffix: {
135
135
  }>> & {
136
136
  onChange?: (...args: any[]) => any;
137
137
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", {
138
- zIndex: number;
139
138
  target: string;
139
+ zIndex: number;
140
140
  offsetTop: number;
141
141
  offsetBottom: number;
142
142
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
@@ -1,6 +1,6 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
- theme: import("vue-types").VueTypeDef<string> & {
3
- default: string;
2
+ theme: import("vue-types").VueTypeDef<"success" | "info" | "warning" | "danger"> & {
3
+ default: "success" | "info" | "warning" | "danger";
4
4
  };
5
5
  size: import("vue-types").VueTypeValidableDef<string> & {
6
6
  default: string;
@@ -27,8 +27,8 @@ declare const _default: import("vue").DefineComponent<{
27
27
  };
28
28
  handleClose: () => void;
29
29
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
30
- theme: import("vue-types").VueTypeDef<string> & {
31
- default: string;
30
+ theme: import("vue-types").VueTypeDef<"success" | "info" | "warning" | "danger"> & {
31
+ default: "success" | "info" | "warning" | "danger";
32
32
  };
33
33
  size: import("vue-types").VueTypeValidableDef<string> & {
34
34
  default: string;
@@ -53,7 +53,7 @@ declare const _default: import("vue").DefineComponent<{
53
53
  onClose?: (...args: any[]) => any;
54
54
  }, {
55
55
  title: string;
56
- theme: string;
56
+ theme: "success" | "info" | "warning" | "danger";
57
57
  size: string;
58
58
  closable: boolean;
59
59
  closeText: string;
@@ -4,14 +4,14 @@ declare const BkAlert: {
4
4
  $data: {};
5
5
  $props: Partial<{
6
6
  title: string;
7
- theme: string;
7
+ theme: "success" | "info" | "warning" | "danger";
8
8
  size: string;
9
9
  closable: boolean;
10
10
  closeText: string;
11
11
  showIcon: boolean;
12
12
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
13
- theme: import("vue-types").VueTypeDef<string> & {
14
- default: string;
13
+ theme: import("vue-types").VueTypeDef<"success" | "info" | "warning" | "danger"> & {
14
+ default: "success" | "info" | "warning" | "danger";
15
15
  };
16
16
  size: import("vue-types").VueTypeValidableDef<string> & {
17
17
  default: string;
@@ -49,8 +49,8 @@ declare const BkAlert: {
49
49
  $emit: (event: "close", ...args: any[]) => void;
50
50
  $el: any;
51
51
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
52
- theme: import("vue-types").VueTypeDef<string> & {
53
- default: string;
52
+ theme: import("vue-types").VueTypeDef<"success" | "info" | "warning" | "danger"> & {
53
+ default: "success" | "info" | "warning" | "danger";
54
54
  };
55
55
  size: import("vue-types").VueTypeValidableDef<string> & {
56
56
  default: string;
@@ -80,7 +80,7 @@ declare const BkAlert: {
80
80
  handleClose: () => void;
81
81
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], string, {
82
82
  title: string;
83
- theme: string;
83
+ theme: "success" | "info" | "warning" | "danger";
84
84
  size: string;
85
85
  closable: boolean;
86
86
  closeText: string;
@@ -106,8 +106,8 @@ declare const BkAlert: {
106
106
  $nextTick: typeof import("vue").nextTick;
107
107
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
108
108
  } & Readonly<import("vue").ExtractPropTypes<{
109
- theme: import("vue-types").VueTypeDef<string> & {
110
- default: string;
109
+ theme: import("vue-types").VueTypeDef<"success" | "info" | "warning" | "danger"> & {
110
+ default: "success" | "info" | "warning" | "danger";
111
111
  };
112
112
  size: import("vue-types").VueTypeValidableDef<string> & {
113
113
  default: string;
@@ -140,8 +140,8 @@ declare const BkAlert: {
140
140
  __isTeleport?: never;
141
141
  __isSuspense?: never;
142
142
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
143
- theme: import("vue-types").VueTypeDef<string> & {
144
- default: string;
143
+ theme: import("vue-types").VueTypeDef<"success" | "info" | "warning" | "danger"> & {
144
+ default: "success" | "info" | "warning" | "danger";
145
145
  };
146
146
  size: import("vue-types").VueTypeValidableDef<string> & {
147
147
  default: string;
@@ -171,7 +171,7 @@ declare const BkAlert: {
171
171
  handleClose: () => void;
172
172
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", {
173
173
  title: string;
174
- theme: string;
174
+ theme: "success" | "info" | "warning" | "danger";
175
175
  size: string;
176
176
  closable: boolean;
177
177
  closeText: string;
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon")):t(e["../shared"],e.vue,e["../icon"]);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t,o)=>(()=>{"use strict";var r={6870:e=>{e.exports=o},4212:t=>{t.exports=e},748:e=>{e.exports=t}},s={};function i(e){var t=s[e];if(void 0!==t)return t.exports;var o=s[e]={exports:{}};return r[e](o,o.exports,i),o.exports}i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),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,{default:()=>s});var e=i(4212),t=i(748),o=i(6870);const r=(0,t.defineComponent)({name:"Alert",props:{theme:e.PropTypes.theme(["info","success","warning","error"]).def("info"),size:e.PropTypes.string,title:e.PropTypes.string,closable:e.PropTypes.bool.def(!1),closeText:e.PropTypes.string,showIcon:e.PropTypes.bool.def(!0)},emits:["close"],setup:function(e,o){var r=(0,t.reactive)({visible:!0});return{state:r,handleClose:function(){r.visible=!1,o.emit("close")}}},render:function(){var r,s;if(!this.state.visible)return null;var i,l,n=Boolean(this.closeText),a=(0,e.classes)({"bk-alert-close":!0,"close-text":n,"bk-alert-close-icon":!n}),c=(0,e.classes)((i={"bk-alert":!0},!0,(l="bk-alert-".concat(this.theme))in i?Object.defineProperty(i,l,{value:true,enumerable:!0,configurable:!0,writable:!0}):i[l]=true,i));return(0,t.createVNode)("div",{class:c},[(0,t.createVNode)("div",{class:"bk-alert-wraper"},[this.showIcon&&(0,t.createVNode)(o.InfoLine,{class:"bk-alert-icon-info"},null),(0,t.createVNode)("div",{class:"bk-alert-content"},[(0,t.createVNode)("div",{class:"bk-alert-title"},[this.$slots.title?this.$slots.title():this.title]),(0,t.createVNode)("div",{class:"bk-alert-description"},[null===(s=(r=this.$slots).default)||void 0===s?void 0:s.call(r)])]),this.closable&&(0,t.createVNode)("span",{class:a,onClick:this.handleClose},[this.closeText?this.closeText:(0,t.createVNode)(o.CloseLine,null,null)])])])}}),s=(0,e.withInstall)(r)})(),l})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon")):t(e["../shared"],e.vue,e["../icon"]);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t,o)=>(()=>{"use strict";var r={6870:e=>{e.exports=o},4212:t=>{t.exports=e},748:e=>{e.exports=t}},s={};function l(e){var t=s[e];if(void 0!==t)return t.exports;var o=s[e]={exports:{}};return r[e](o,o.exports,l),o.exports}l.d=(e,t)=>{for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{l.r(i),l.d(i,{default:()=>s});var e=l(4212),t=l(748),o=l(6870);const r=(0,t.defineComponent)({name:"Alert",props:{theme:(0,e.TagThemeType)().def(e.TagThemeEnum.INFO),size:e.PropTypes.string,title:e.PropTypes.string,closable:e.PropTypes.bool.def(!1),closeText:e.PropTypes.string,showIcon:e.PropTypes.bool.def(!0)},emits:["close"],setup:function(e,o){var r=(0,t.reactive)({visible:!0});return{state:r,handleClose:function(){r.visible=!1,o.emit("close")}}},render:function(){var r,s;if(!this.state.visible)return null;var l,i,n=Boolean(this.closeText),a=(0,e.classes)({"bk-alert-close":!0,"close-text":n,"bk-alert-close-icon":!n}),c=(0,e.classes)((l={"bk-alert":!0},!0,(i="bk-alert-".concat(this.theme))in l?Object.defineProperty(l,i,{value:true,enumerable:!0,configurable:!0,writable:!0}):l[i]=true,l));return(0,t.createVNode)("div",{class:c},[(0,t.createVNode)("div",{class:"bk-alert-wraper"},[this.showIcon&&(0,t.createVNode)(o.InfoLine,{class:"bk-alert-icon-info"},null),(0,t.createVNode)("div",{class:"bk-alert-content"},[(0,t.createVNode)("div",{class:"bk-alert-title"},[this.$slots.title?this.$slots.title():this.title]),(0,t.createVNode)("div",{class:"bk-alert-description"},[null===(s=(r=this.$slots).default)||void 0===s?void 0:s.call(r)])]),this.closable&&(0,t.createVNode)("span",{class:a,onClick:this.handleClose},[this.closeText?this.closeText:(0,t.createVNode)(o.CloseLine,null,null)])])])}}),s=(0,e.withInstall)(r)})(),i})()));
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<{
21
21
  default: number;
22
22
  };
23
23
  }>>, {
24
- value: number;
25
24
  digits: number;
25
+ value: number;
26
26
  }>;
27
27
  export default _default;
@@ -3,8 +3,8 @@ declare const BkAnimateNumber: {
3
3
  $: import("vue").ComponentInternalInstance;
4
4
  $data: {};
5
5
  $props: Partial<{
6
- value: number;
7
6
  digits: number;
7
+ value: number;
8
8
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
9
9
  value: import("vue-types").VueTypeValidableDef<number> & {
10
10
  default: number;
@@ -16,7 +16,7 @@ declare const BkAnimateNumber: {
16
16
  } & {
17
17
  default: number;
18
18
  };
19
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "value" | "digits">;
19
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "digits" | "value">;
20
20
  $attrs: {
21
21
  [x: string]: unknown;
22
22
  };
@@ -42,8 +42,8 @@ declare const BkAnimateNumber: {
42
42
  default: number;
43
43
  };
44
44
  }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
45
- value: number;
46
45
  digits: number;
46
+ value: number;
47
47
  }> & {
48
48
  beforeCreate?: (() => void) | (() => void)[];
49
49
  created?: (() => void) | (() => void)[];
@@ -91,7 +91,7 @@ declare const BkAnimateNumber: {
91
91
  default: number;
92
92
  };
93
93
  }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
94
- value: number;
95
94
  digits: number;
95
+ value: number;
96
96
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
97
97
  export default BkAnimateNumber;
@@ -53,8 +53,8 @@ declare const _default: import("vue").DefineComponent<{
53
53
  }>>, {
54
54
  bottom: number;
55
55
  right: number;
56
- extCls: string;
57
56
  target: string;
57
+ extCls: string;
58
58
  visibilityHeight: number;
59
59
  }>;
60
60
  export default _default;
@@ -5,8 +5,8 @@ declare const BkBacktop: {
5
5
  $props: Partial<{
6
6
  bottom: number;
7
7
  right: number;
8
- extCls: string;
9
8
  target: string;
9
+ extCls: string;
10
10
  visibilityHeight: number;
11
11
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
12
12
  visibilityHeight: import("vue-types").VueTypeValidableDef<number> & {
@@ -34,7 +34,7 @@ declare const BkBacktop: {
34
34
  } & {
35
35
  default: string;
36
36
  };
37
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "bottom" | "right" | "extCls" | "target" | "visibilityHeight">;
37
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "bottom" | "right" | "target" | "extCls" | "visibilityHeight">;
38
38
  $attrs: {
39
39
  [x: string]: unknown;
40
40
  };
@@ -77,8 +77,8 @@ declare const BkBacktop: {
77
77
  }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
78
78
  bottom: number;
79
79
  right: number;
80
- extCls: string;
81
80
  target: string;
81
+ extCls: string;
82
82
  visibilityHeight: number;
83
83
  }> & {
84
84
  beforeCreate?: (() => void) | (() => void)[];
@@ -159,8 +159,8 @@ declare const BkBacktop: {
159
159
  }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
160
160
  bottom: number;
161
161
  right: number;
162
- extCls: string;
163
162
  target: string;
163
+ extCls: string;
164
164
  visibilityHeight: number;
165
165
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
166
166
  export default BkBacktop;
@@ -1,6 +1,6 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
- size: import("vue-types").VueTypeDef<string>;
2
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
3
3
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
4
- size: import("vue-types").VueTypeDef<string>;
4
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
5
5
  }>>, {}>;
6
6
  export default _default;
@@ -26,14 +26,11 @@
26
26
  import { ExtractPropTypes, PropType } from 'vue';
27
27
  declare type IButtonNativeType = PropType<'button' | 'submit' | 'reset'>;
28
28
  declare const buttonProps: {
29
- theme: import("vue-types").VueTypeDef<string> & {
30
- default: string;
31
- };
32
- hoverTheme: import("vue-types").VueTypeDef<string> & {
33
- default: string;
34
- };
35
- size: import("vue-types").VueTypeDef<string> & {
36
- default: string;
29
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
30
+ hoverTheme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
31
+ size: {
32
+ type: PropType<"" | "small" | "large">;
33
+ default: "";
37
34
  };
38
35
  title: import("vue-types").VueTypeValidableDef<string> & {
39
36
  default: string;
@@ -50,7 +47,10 @@ declare const buttonProps: {
50
47
  loading: import("vue-types").VueTypeValidableDef<boolean> & {
51
48
  default: boolean;
52
49
  };
53
- loadingMode: import("vue-types").VueTypeDef<string>;
50
+ loadingMode: {
51
+ type: PropType<"default" | "spin">;
52
+ default: string;
53
+ };
54
54
  outline: import("vue-types").VueTypeValidableDef<boolean> & {
55
55
  default: boolean;
56
56
  };
@@ -67,14 +67,11 @@ declare const buttonProps: {
67
67
  };
68
68
  export declare type ButtonPropTypes = ExtractPropTypes<typeof buttonProps>;
69
69
  declare const _default: import("vue").DefineComponent<{
70
- theme: import("vue-types").VueTypeDef<string> & {
71
- default: string;
72
- };
73
- hoverTheme: import("vue-types").VueTypeDef<string> & {
74
- default: string;
75
- };
76
- size: import("vue-types").VueTypeDef<string> & {
77
- default: string;
70
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
71
+ hoverTheme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
72
+ size: {
73
+ type: PropType<"" | "small" | "large">;
74
+ default: "";
78
75
  };
79
76
  title: import("vue-types").VueTypeValidableDef<string> & {
80
77
  default: string;
@@ -91,7 +88,10 @@ declare const _default: import("vue").DefineComponent<{
91
88
  loading: import("vue-types").VueTypeValidableDef<boolean> & {
92
89
  default: boolean;
93
90
  };
94
- loadingMode: import("vue-types").VueTypeDef<string>;
91
+ loadingMode: {
92
+ type: PropType<"default" | "spin">;
93
+ default: string;
94
+ };
95
95
  outline: import("vue-types").VueTypeValidableDef<boolean> & {
96
96
  default: boolean;
97
97
  };
@@ -106,14 +106,11 @@ declare const _default: import("vue").DefineComponent<{
106
106
  default: string;
107
107
  };
108
108
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "mouseover")[], "click" | "mouseover", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
109
- theme: import("vue-types").VueTypeDef<string> & {
110
- default: string;
111
- };
112
- hoverTheme: import("vue-types").VueTypeDef<string> & {
113
- default: string;
114
- };
115
- size: import("vue-types").VueTypeDef<string> & {
116
- default: string;
109
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
110
+ hoverTheme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
111
+ size: {
112
+ type: PropType<"" | "small" | "large">;
113
+ default: "";
117
114
  };
118
115
  title: import("vue-types").VueTypeValidableDef<string> & {
119
116
  default: string;
@@ -130,7 +127,10 @@ declare const _default: import("vue").DefineComponent<{
130
127
  loading: import("vue-types").VueTypeValidableDef<boolean> & {
131
128
  default: boolean;
132
129
  };
133
- loadingMode: import("vue-types").VueTypeDef<string>;
130
+ loadingMode: {
131
+ type: PropType<"default" | "spin">;
132
+ default: string;
133
+ };
134
134
  outline: import("vue-types").VueTypeValidableDef<boolean> & {
135
135
  default: boolean;
136
136
  };
@@ -150,14 +150,13 @@ declare const _default: import("vue").DefineComponent<{
150
150
  }, {
151
151
  title: string;
152
152
  text: boolean;
153
- theme: string;
154
153
  disabled: boolean;
155
- size: string;
154
+ size: "" | "small" | "large";
156
155
  icon: string;
157
156
  outline: boolean;
158
157
  loading: boolean;
159
- hoverTheme: string;
160
158
  iconRight: string;
159
+ loadingMode: "default" | "spin";
161
160
  selected: boolean;
162
161
  nativeType: "button" | "reset" | "submit";
163
162
  }>;
@@ -6,25 +6,21 @@ declare const BkButton: {
6
6
  $props: Partial<{
7
7
  title: string;
8
8
  text: boolean;
9
- theme: string;
10
9
  disabled: boolean;
11
- size: string;
10
+ size: "" | "small" | "large";
12
11
  icon: string;
13
12
  outline: boolean;
14
13
  loading: boolean;
15
- hoverTheme: string;
16
14
  iconRight: string;
15
+ loadingMode: "default" | "spin";
17
16
  selected: boolean;
18
17
  nativeType: "button" | "reset" | "submit";
19
18
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
20
- theme: import("vue-types").VueTypeDef<string> & {
21
- default: string;
22
- };
23
- hoverTheme: import("vue-types").VueTypeDef<string> & {
24
- default: string;
25
- };
26
- size: import("vue-types").VueTypeDef<string> & {
27
- default: string;
19
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
20
+ hoverTheme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
21
+ size: {
22
+ type: import("vue").PropType<"" | "small" | "large">;
23
+ default: "";
28
24
  };
29
25
  title: import("vue-types").VueTypeValidableDef<string> & {
30
26
  default: string;
@@ -41,7 +37,10 @@ declare const BkButton: {
41
37
  loading: import("vue-types").VueTypeValidableDef<boolean> & {
42
38
  default: boolean;
43
39
  };
44
- loadingMode: import("vue-types").VueTypeDef<string>;
40
+ loadingMode: {
41
+ type: import("vue").PropType<"default" | "spin">;
42
+ default: string;
43
+ };
45
44
  outline: import("vue-types").VueTypeValidableDef<boolean> & {
46
45
  default: boolean;
47
46
  };
@@ -58,7 +57,7 @@ declare const BkButton: {
58
57
  }>> & {
59
58
  onClick?: (...args: any[]) => any;
60
59
  onMouseover?: (...args: any[]) => any;
61
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "text" | "theme" | "disabled" | "size" | "icon" | "outline" | "loading" | "hoverTheme" | "iconRight" | "selected" | "nativeType">;
60
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "text" | "disabled" | "size" | "icon" | "outline" | "loading" | "iconRight" | "loadingMode" | "selected" | "nativeType">;
62
61
  $attrs: {
63
62
  [x: string]: unknown;
64
63
  };
@@ -73,14 +72,11 @@ declare const BkButton: {
73
72
  $emit: (event: "click" | "mouseover", ...args: any[]) => void;
74
73
  $el: any;
75
74
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
76
- theme: import("vue-types").VueTypeDef<string> & {
77
- default: string;
78
- };
79
- hoverTheme: import("vue-types").VueTypeDef<string> & {
80
- default: string;
81
- };
82
- size: import("vue-types").VueTypeDef<string> & {
83
- default: string;
75
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
76
+ hoverTheme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
77
+ size: {
78
+ type: import("vue").PropType<"" | "small" | "large">;
79
+ default: "";
84
80
  };
85
81
  title: import("vue-types").VueTypeValidableDef<string> & {
86
82
  default: string;
@@ -97,7 +93,10 @@ declare const BkButton: {
97
93
  loading: import("vue-types").VueTypeValidableDef<boolean> & {
98
94
  default: boolean;
99
95
  };
100
- loadingMode: import("vue-types").VueTypeDef<string>;
96
+ loadingMode: {
97
+ type: import("vue").PropType<"default" | "spin">;
98
+ default: string;
99
+ };
101
100
  outline: import("vue-types").VueTypeValidableDef<boolean> & {
102
101
  default: boolean;
103
102
  };
@@ -117,14 +116,13 @@ declare const BkButton: {
117
116
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "mouseover")[], string, {
118
117
  title: string;
119
118
  text: boolean;
120
- theme: string;
121
119
  disabled: boolean;
122
- size: string;
120
+ size: "" | "small" | "large";
123
121
  icon: string;
124
122
  outline: boolean;
125
123
  loading: boolean;
126
- hoverTheme: string;
127
124
  iconRight: string;
125
+ loadingMode: "default" | "spin";
128
126
  selected: boolean;
129
127
  nativeType: "button" | "reset" | "submit";
130
128
  }> & {
@@ -148,14 +146,11 @@ declare const BkButton: {
148
146
  $nextTick: typeof import("vue").nextTick;
149
147
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
150
148
  } & Readonly<import("vue").ExtractPropTypes<{
151
- theme: import("vue-types").VueTypeDef<string> & {
152
- default: string;
153
- };
154
- hoverTheme: import("vue-types").VueTypeDef<string> & {
155
- default: string;
156
- };
157
- size: import("vue-types").VueTypeDef<string> & {
158
- default: string;
149
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
150
+ hoverTheme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
151
+ size: {
152
+ type: import("vue").PropType<"" | "small" | "large">;
153
+ default: "";
159
154
  };
160
155
  title: import("vue-types").VueTypeValidableDef<string> & {
161
156
  default: string;
@@ -172,7 +167,10 @@ declare const BkButton: {
172
167
  loading: import("vue-types").VueTypeValidableDef<boolean> & {
173
168
  default: boolean;
174
169
  };
175
- loadingMode: import("vue-types").VueTypeDef<string>;
170
+ loadingMode: {
171
+ type: import("vue").PropType<"default" | "spin">;
172
+ default: string;
173
+ };
176
174
  outline: import("vue-types").VueTypeValidableDef<boolean> & {
177
175
  default: boolean;
178
176
  };
@@ -194,14 +192,11 @@ declare const BkButton: {
194
192
  __isTeleport?: never;
195
193
  __isSuspense?: never;
196
194
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
197
- theme: import("vue-types").VueTypeDef<string> & {
198
- default: string;
199
- };
200
- hoverTheme: import("vue-types").VueTypeDef<string> & {
201
- default: string;
202
- };
203
- size: import("vue-types").VueTypeDef<string> & {
204
- default: string;
195
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
196
+ hoverTheme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
197
+ size: {
198
+ type: import("vue").PropType<"" | "small" | "large">;
199
+ default: "";
205
200
  };
206
201
  title: import("vue-types").VueTypeValidableDef<string> & {
207
202
  default: string;
@@ -218,7 +213,10 @@ declare const BkButton: {
218
213
  loading: import("vue-types").VueTypeValidableDef<boolean> & {
219
214
  default: boolean;
220
215
  };
221
- loadingMode: import("vue-types").VueTypeDef<string>;
216
+ loadingMode: {
217
+ type: import("vue").PropType<"default" | "spin">;
218
+ default: string;
219
+ };
222
220
  outline: import("vue-types").VueTypeValidableDef<boolean> & {
223
221
  default: boolean;
224
222
  };
@@ -238,21 +236,20 @@ declare const BkButton: {
238
236
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "mouseover")[], "click" | "mouseover", {
239
237
  title: string;
240
238
  text: boolean;
241
- theme: string;
242
239
  disabled: boolean;
243
- size: string;
240
+ size: "" | "small" | "large";
244
241
  icon: string;
245
242
  outline: boolean;
246
243
  loading: boolean;
247
- hoverTheme: string;
248
244
  iconRight: string;
245
+ loadingMode: "default" | "spin";
249
246
  selected: boolean;
250
247
  nativeType: "button" | "reset" | "submit";
251
248
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & Readonly<{
252
249
  ButtonGroup: import("vue").DefineComponent<{
253
- size: import("vue-types").VueTypeDef<string>;
250
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
254
251
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
255
- size: import("vue-types").VueTypeDef<string>;
252
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
256
253
  }>>, {}>;
257
254
  }>;
258
255
  export default BkButton;
@@ -1 +1 @@
1
- !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"),require("../loading"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../loading"],o);else{var t="object"==typeof exports?o(require("../shared"),require("vue"),require("../loading")):o(e["../shared"],e.vue,e["../loading"]);for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(self,((e,o,t)=>(()=>{"use strict";var n={4870:e=>{e.exports=t},4212:o=>{o.exports=e},748:e=>{e.exports=o}},r={};function i(e){var o=r[e];if(void 0!==o)return o.exports;var t=r[e]={exports:{}};return n[e](t,t.exports,i),t.exports}i.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return i.d(o,{a:o}),o},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 a={};return(()=>{i.r(a),i.d(a,{BkButton:()=>c,BkButtonGroup:()=>d,default:()=>p});var e=i(4212);function o(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var t=i(748),n=i(4870),r=i.n(n),l=["","small","large"],u={theme:e.PropTypes.theme().def(""),hoverTheme:e.PropTypes.theme(["primary","warning","success","danger"]).def(""),size:e.PropTypes.size(l).def(""),title:e.PropTypes.string,icon:e.PropTypes.string,iconRight:e.PropTypes.string,disabled:e.PropTypes.bool,loading:e.PropTypes.bool,loadingMode:e.PropTypes.commonType(Object.values(n.BkLoadingMode)),outline:e.PropTypes.bool,text:e.PropTypes.bool,selected:e.PropTypes.bool,nativeType:{type:String,default:"button"}};const s=(0,t.defineComponent)({name:"Button",props:u,emits:["click","mouseover"],setup:function(i,a){var u,s=a.slots,d=a.emit,c=(0,t.ref)(!1),p=null!==(u=s.default)&&void 0!==u&&u,v="bk-button",f=(0,t.computed)((function(){return i.text&&!i.hoverTheme})),m=(0,t.computed)((function(){var t,n=i.hoverTheme?"".concat(v,"-hover-").concat(i.hoverTheme):"",r=i.theme?"".concat(v,"-").concat(i.theme):"",a=i.hoverTheme?"":r;return(0,e.classes)((o(t={"is-disabled":i.disabled,"is-outline":i.outline,"is-text":f.value,"is-loading":i.loading,"is-selected":i.selected},"".concat(v,"-").concat(i.size),i.size&&l.includes(i.size)),o(t,"no-slot",!p),t),"".concat(a," ").concat(v," ").concat(n))})),b=(0,t.computed)((function(){return i.text||i.outline||i.hoverTheme?c.value&&!i.text?"white":i.text&&i.disabled?"":i.hoverTheme||i.theme:["","default"].includes(i.theme)?"":"white"})),y=(0,t.computed)((function(){return f.value||i.size===n.BkLoadingSize.Small?n.BkLoadingSize.Mini:n.BkLoadingSize.Small})),g=function(e){i.loading||d("click",e)},h=function(e){c.value=!0,d("mouseover",e)},T=function(){c.value=!1};return function(){var e;return(0,t.createVNode)("button",{title:i.title,disabled:i.disabled,class:m.value,type:i.nativeType,onClick:g,onMouseover:h,onMouseleave:T},[i.loading&&(0,t.createVNode)(r(),{loading:!0,class:"".concat(v,"-loading"),mode:i.loadingMode,theme:b.value,size:y.value},null),s.default&&(0,t.createVNode)("span",{class:"".concat(v,"-text")},[null===(e=s.default)||void 0===e?void 0:e.call(s)])])}}}),d=(0,t.defineComponent)({name:"ButtonGroup",props:{size:e.PropTypes.size()},setup:function(n,r){var i=(0,t.computed)((function(){return(0,e.classes)(o({},"bk-button-group-".concat(n.size),!!n.size),"bk-button-group")}));return function(){var e,o;return(0,t.createVNode)("div",{class:i.value},[null===(o=(e=r.slots).default)||void 0===o?void 0:o.call(e)])}}});var c=(0,e.withInstallProps)(s,{ButtonGroup:d});const p=c})(),a})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../loading"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../loading"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../loading")):t(e["../shared"],e.vue,e["../loading"]);for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,((e,t,o)=>(()=>{"use strict";var n={4870:e=>{e.exports=o},4212:t=>{t.exports=e},748:e=>{e.exports=t}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{i.r(a),i.d(a,{BkButton:()=>c,BkButtonGroup:()=>d,default:()=>p});var e=i(4212);function t(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var o=i(748),n=i(4870),r=i.n(n),l=["","small","large"],u={theme:e.PropTypes.theme(),hoverTheme:e.PropTypes.theme(),size:{type:String,default:l[0]},title:e.PropTypes.string,icon:e.PropTypes.string,iconRight:e.PropTypes.string,disabled:e.PropTypes.bool,loading:e.PropTypes.bool,loadingMode:{type:String,default:"default"},outline:e.PropTypes.bool,text:e.PropTypes.bool,selected:e.PropTypes.bool,nativeType:{type:String,default:"button"}};const s=(0,o.defineComponent)({name:"Button",props:u,emits:["click","mouseover"],setup:function(i,a){var u,s=a.slots,d=a.emit,c=(0,o.ref)(!1),p=null!==(u=s.default)&&void 0!==u&&u,v="bk-button",f=(0,o.computed)((function(){return i.text&&!i.hoverTheme})),m=(0,o.computed)((function(){var o,n=i.hoverTheme?"".concat(v,"-hover-").concat(i.hoverTheme):"",r=i.theme?"".concat(v,"-").concat(i.theme):"",a=i.hoverTheme?"":r;return(0,e.classes)((t(o={"is-disabled":i.disabled,"is-outline":i.outline,"is-text":f.value,"is-loading":i.loading,"is-selected":i.selected},"".concat(v,"-").concat(i.size),i.size&&l.includes(i.size)),t(o,"no-slot",!p),o),"".concat(a," ").concat(v," ").concat(n))})),b=(0,o.computed)((function(){return i.text||i.outline||i.hoverTheme?c.value&&!i.text?"white":i.text&&i.disabled?"":i.hoverTheme||i.theme:["","default"].includes(i.theme)?"":"white"})),g=(0,o.computed)((function(){return f.value||i.size===n.BkLoadingSize.Small?n.BkLoadingSize.Mini:n.BkLoadingSize.Small})),h=function(e){i.loading||d("click",e)},y=function(e){c.value=!0,d("mouseover",e)},T=function(){c.value=!1};return function(){var e;return(0,o.createVNode)("button",{title:i.title,disabled:i.disabled,class:m.value,type:i.nativeType,onClick:h,onMouseover:y,onMouseleave:T},[i.loading&&(0,o.createVNode)(r(),(0,o.mergeProps)({loading:!0,class:"".concat(v,"-loading"),mode:i.loadingMode,size:g.value},b.value?{theme:b.value}:{}),null),s.default&&(0,o.createVNode)("span",{class:"".concat(v,"-text")},[null===(e=s.default)||void 0===e?void 0:e.call(s)])])}}}),d=(0,o.defineComponent)({name:"ButtonGroup",props:{size:e.PropTypes.size()},setup:function(n,r){var i=(0,o.computed)((function(){return(0,e.classes)(t({},"bk-button-group-".concat(n.size),!!n.size),"bk-button-group")}));return function(){var e,t;return(0,o.createVNode)("div",{class:i.value},[null===(t=(e=r.slots).default)||void 0===t?void 0:t.call(e)])}}});var c=(0,e.withInstallProps)(s,{ButtonGroup:d});const p=c})(),a})()));
@@ -280,9 +280,9 @@ declare const _default: import("vue").DefineComponent<{
280
280
  onClear?: (...args: any[]) => any;
281
281
  onToggle?: (...args: any[]) => any;
282
282
  }, {
283
+ trigger: string;
283
284
  extCls: string;
284
285
  disabled: boolean;
285
- trigger: string;
286
286
  placeholder: string;
287
287
  list: unknown[];
288
288
  separator: string;