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
@@ -3,6 +3,7 @@ declare const BkInput: {
3
3
  $: import("vue").ComponentInternalInstance;
4
4
  $data: {};
5
5
  $props: Partial<{
6
+ behavior: "simplicity" | "normal";
6
7
  type: string;
7
8
  disabled: boolean;
8
9
  placeholder: string;
@@ -16,7 +17,6 @@ declare const BkInput: {
16
17
  prefixIcon: string;
17
18
  suffixIcon: string;
18
19
  suffix: string;
19
- behavior: string;
20
20
  showWordLimit: boolean;
21
21
  showControl: boolean;
22
22
  showClearOnlyHover: boolean;
@@ -68,8 +68,8 @@ declare const BkInput: {
68
68
  maxlength: import("vue-types").VueTypeDef<number> & {
69
69
  default: number;
70
70
  };
71
- behavior: import("vue-types").VueTypeDef<string> & {
72
- default: string;
71
+ behavior: import("vue-types").VueTypeDef<"simplicity" | "normal"> & {
72
+ default: "simplicity" | "normal";
73
73
  };
74
74
  showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
75
75
  default: boolean;
@@ -92,7 +92,7 @@ declare const BkInput: {
92
92
  validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
93
93
  };
94
94
  modelValue: import("vue-types").VueTypeDef<string | number>;
95
- size: import("vue-types").VueTypeDef<string>;
95
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
96
96
  rows: import("vue-types").VueTypeValidableDef<number> & {
97
97
  default: number;
98
98
  };
@@ -121,7 +121,7 @@ declare const BkInput: {
121
121
  onEnter?: (_value: any, _evt?: Event | KeyboardEvent) => any;
122
122
  "onUpdate:modelValue"?: (_value: any, _evt?: Event | KeyboardEvent) => any;
123
123
  onClear?: () => any;
124
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "disabled" | "placeholder" | "prefix" | "step" | "max" | "min" | "maxlength" | "clearable" | "readonly" | "prefixIcon" | "suffixIcon" | "suffix" | "behavior" | "showWordLimit" | "showControl" | "showClearOnlyHover" | "precision" | "rows" | "selectReadonly" | "withValidate">;
124
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "behavior" | "type" | "disabled" | "placeholder" | "prefix" | "step" | "max" | "min" | "maxlength" | "clearable" | "readonly" | "prefixIcon" | "suffixIcon" | "suffix" | "showWordLimit" | "showControl" | "showClearOnlyHover" | "precision" | "rows" | "selectReadonly" | "withValidate">;
125
125
  $attrs: {
126
126
  [x: string]: unknown;
127
127
  };
@@ -179,8 +179,8 @@ declare const BkInput: {
179
179
  maxlength: import("vue-types").VueTypeDef<number> & {
180
180
  default: number;
181
181
  };
182
- behavior: import("vue-types").VueTypeDef<string> & {
183
- default: string;
182
+ behavior: import("vue-types").VueTypeDef<"simplicity" | "normal"> & {
183
+ default: "simplicity" | "normal";
184
184
  };
185
185
  showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
186
186
  default: boolean;
@@ -203,7 +203,7 @@ declare const BkInput: {
203
203
  validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
204
204
  };
205
205
  modelValue: import("vue-types").VueTypeDef<string | number>;
206
- size: import("vue-types").VueTypeDef<string>;
206
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
207
207
  rows: import("vue-types").VueTypeValidableDef<number> & {
208
208
  default: number;
209
209
  };
@@ -248,6 +248,7 @@ declare const BkInput: {
248
248
  compositionupdate: (evt: CompositionEvent) => CompositionEvent;
249
249
  compositionend: (evt: CompositionEvent) => CompositionEvent;
250
250
  }, string, {
251
+ behavior: "simplicity" | "normal";
251
252
  type: string;
252
253
  disabled: boolean;
253
254
  placeholder: string;
@@ -261,7 +262,6 @@ declare const BkInput: {
261
262
  prefixIcon: string;
262
263
  suffixIcon: string;
263
264
  suffix: string;
264
- behavior: string;
265
265
  showWordLimit: boolean;
266
266
  showControl: boolean;
267
267
  showClearOnlyHover: boolean;
@@ -333,8 +333,8 @@ declare const BkInput: {
333
333
  maxlength: import("vue-types").VueTypeDef<number> & {
334
334
  default: number;
335
335
  };
336
- behavior: import("vue-types").VueTypeDef<string> & {
337
- default: string;
336
+ behavior: import("vue-types").VueTypeDef<"simplicity" | "normal"> & {
337
+ default: "simplicity" | "normal";
338
338
  };
339
339
  showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
340
340
  default: boolean;
@@ -357,7 +357,7 @@ declare const BkInput: {
357
357
  validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
358
358
  };
359
359
  modelValue: import("vue-types").VueTypeDef<string | number>;
360
- size: import("vue-types").VueTypeDef<string>;
360
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
361
361
  rows: import("vue-types").VueTypeValidableDef<number> & {
362
362
  default: number;
363
363
  };
@@ -434,8 +434,8 @@ declare const BkInput: {
434
434
  maxlength: import("vue-types").VueTypeDef<number> & {
435
435
  default: number;
436
436
  };
437
- behavior: import("vue-types").VueTypeDef<string> & {
438
- default: string;
437
+ behavior: import("vue-types").VueTypeDef<"simplicity" | "normal"> & {
438
+ default: "simplicity" | "normal";
439
439
  };
440
440
  showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
441
441
  default: boolean;
@@ -458,7 +458,7 @@ declare const BkInput: {
458
458
  validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
459
459
  };
460
460
  modelValue: import("vue-types").VueTypeDef<string | number>;
461
- size: import("vue-types").VueTypeDef<string>;
461
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
462
462
  rows: import("vue-types").VueTypeValidableDef<number> & {
463
463
  default: number;
464
464
  };
@@ -503,6 +503,7 @@ declare const BkInput: {
503
503
  compositionupdate: (evt: CompositionEvent) => CompositionEvent;
504
504
  compositionend: (evt: CompositionEvent) => CompositionEvent;
505
505
  }, string, {
506
+ behavior: "simplicity" | "normal";
506
507
  type: string;
507
508
  disabled: boolean;
508
509
  placeholder: string;
@@ -516,7 +517,6 @@ declare const BkInput: {
516
517
  prefixIcon: string;
517
518
  suffixIcon: string;
518
519
  suffix: string;
519
- behavior: string;
520
520
  showWordLimit: boolean;
521
521
  showControl: boolean;
522
522
  showClearOnlyHover: boolean;
@@ -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 r="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon")):t(e["../shared"],e.vue,e["../icon"]);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,((e,t,r)=>(()=>{"use strict";var o={6870:e=>{e.exports=r},4212:t=>{t.exports=e},748:e=>{e.exports=t}},n={};function a(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return o[e](r,r.exports,a),r.exports}a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{a.r(l),a.d(l,{default:()=>m});var e=a(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=a(748);Object.create,Object.create;var n,i,u=a(6870),s={type:e.PropTypes.string.def("text"),clearable:e.PropTypes.bool,disabled:e.PropTypes.bool,readonly:e.PropTypes.bool,placeholder:e.PropTypes.string.def("Enter"),prefixIcon:e.PropTypes.string,suffixIcon:e.PropTypes.string,suffix:e.PropTypes.string,prefix:e.PropTypes.string,step:e.PropTypes.integer,max:e.PropTypes.integer,min:e.PropTypes.integer,maxlength:e.PropTypes.integer,behavior:e.PropTypes.commonType(["simplicity","normal"]).def("normal"),showWordLimit:e.PropTypes.bool,showControl:e.PropTypes.bool.def(!0),showClearOnlyHover:e.PropTypes.bool.def(!1),precision:e.PropTypes.number.def(0).validate((function(e){return e>=0&&e<20})),modelValue:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]),size:e.PropTypes.size(),rows:e.PropTypes.number,selectReadonly:e.PropTypes.bool.def(!1),withValidate:e.PropTypes.bool.def(!0)};function c(e,t){return!0}function p(e){return e}!function(e){e.UPDATE="update:modelValue",e.FOCUS="focus",e.BLUR="blur",e.CHANGE="change",e.CLEAR="clear",e.INPUT="input",e.KEYPRESS="keypress",e.KEYDOWN="keydown",e.KEYUP="keyup",e.ENTER="enter",e.PASTE="paste",e.COMPOSITIONSTART="compositionstart",e.COMPOSITIONUPDATE="compositionupdate",e.COMPOSITIONEND="compositionend"}(i||(i={}));var d=(r(n={},i.UPDATE,c),r(n,i.FOCUS,(function(e){return e})),r(n,i.BLUR,(function(e){return e})),r(n,i.CHANGE,c),r(n,i.CLEAR,(function(){return!0})),r(n,i.INPUT,c),r(n,i.KEYPRESS,c),r(n,i.KEYDOWN,c),r(n,i.KEYUP,c),r(n,i.ENTER,c),r(n,i.PASTE,c),r(n,i.COMPOSITIONSTART,p),r(n,i.COMPOSITIONUPDATE,p),r(n,i.COMPOSITIONEND,p),n);const f=(0,o.defineComponent)({name:"Input",inheritAttrs:!1,props:s,emits:d,setup:function(n,a){var l=(0,e.useFormItem)(),s=(0,o.ref)(!1),c=(0,o.ref)(!1),p=(0,o.computed)((function(){return"textarea"===n.type})),d=(0,o.computed)((function(){return p.value?"bk-textarea":"bk-input"})),f=a.attrs,m=f.class,v=f.style,y=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}(f,["class","style"]),b=(0,o.ref)(),P=(0,o.computed)((function(){var t;return(0,e.classes)((r(t={},"".concat(d.value,"--").concat(n.size),!!n.size),r(t,"is-focused",s.value),r(t,"is-readonly",n.readonly&&!n.selectReadonly),r(t,"is-disabled",n.disabled),r(t,"is-simplicity","simplicity"===n.behavior),r(t,"".concat(m),!!m),t),d.value)})),T={search:function(){return(0,o.createVNode)(u.Search,null,null)},password:function(){return(0,o.createVNode)(u.Eye,{onClick:F},null)}},x=L("suffix-icon"),g=(0,o.computed)((function(){var e=T[n.type];return E.value?(0,o.createVNode)(u.Unvisible,{onClick:F,class:x},null):e?(0,o.createVNode)(e,{class:x},null):null})),h=(0,o.computed)((function(){return"number"===n.type})),O=(0,o.computed)((function(){return Math.floor(n.maxlength)})),E=(0,o.ref)(!1),N=(0,o.computed)((function(){return(0,e.classes)(r({"show-clear-only-hover":n.showClearOnlyHover},"".concat(d.value,"--clear-icon"),!0),x)})),S=(0,o.computed)((function(){return(0,e.classes)({"is-disabled":n.disabled||n.modelValue>=n.max})})),C=(0,o.computed)((function(){return(0,e.classes)({"is-disabled":n.disabled||n.modelValue<=n.min})}));function I(){if(!n.disabled){var e=h.value?n.min:"";a.emit(i.UPDATE,e),a.emit(i.CHANGE,e),a.emit(i.CLEAR)}}(0,o.watch)((function(){return n.modelValue}),(function(){var e;n.withValidate&&(null===(e=null==l?void 0:l.validate)||void 0===e||e.call(l,"change"))})),a.expose({focus:function(){b.value.focus()},clear:I});var V,w,A=(V=[i.KEYUP,i.KEYDOWN,i.KEYPRESS,i.PASTE,i.CHANGE,i.INPUT].map((function(e){return function(t){t.stopPropagation(),e!==i.KEYDOWN||"Enter"!==t.code&&"Enter"!==t.key&&13!==t.keyCode||a.emit(i.ENTER,t.target.value,t),c.value&&[i.INPUT,i.CHANGE].some((function(t){return e===t}))||(e===i.INPUT&&a.emit(i.UPDATE,h.value?+t.target.value:t.target.value),a.emit(e,t.target.value,t))}})),w=6,function(e){if(Array.isArray(e))return e}(V)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,a=[],l=!0,i=!1;try{for(r=r.call(e);!(l=(o=r.next()).done)&&(a.push(o.value),!t||a.length!==t);l=!0);}catch(e){i=!0,n=e}finally{try{l||null==r.return||r.return()}finally{if(i)throw n}}return a}}(V,w)||function(e,r){if(e){if("string"==typeof e)return t(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,r):void 0}}(V,w)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),U=A[0],j=A[1],D=A[2],R=A[3],k=A[4],K=A[5];function M(e){var t,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=parseInt(String(e),10),a=Number.isInteger(n.precision)?n.precision:0,l=parseFloat((null!==(t=n.modelValue)&&void 0!==t?t:0).toString()),i=Number.isInteger(o)?o:1,u=l+(r?i:-1*i);return Number.isInteger(n.max)&&(u=Math.min(u,n.max)),Number.isInteger(n.min)&&(u=Math.max(u,n.min)),+u.toFixed(a)}function Y(){if(!n.disabled){var e=M(n.step);a.emit(i.UPDATE,e)}}function H(){if(!n.disabled){var e=M(n.step,!1);a.emit(i.UPDATE,e)}}function L(e){return"".concat(d.value,"--").concat(e)}function F(){E.value=!E.value}var q=(0,o.computed)((function(){var e=void 0===n.modelValue||null===n.modelValue?{}:{value:n.modelValue};return Object.assign(Object.assign({},e),{maxlength:n.maxlength,placeholder:n.placeholder,readonly:n.readonly,disabled:n.disabled})})),G={onInput:K,onFocus:function(e){s.value=!0,a.emit(i.FOCUS,e)},onBlur:function(e){var t;if(s.value=!1,a.emit(i.BLUR,e),h.value&&(e.target.value>n.max||e.target.value<n.min)){var r=e.target.value>n.max?n.max:n.min;a.emit(i.UPDATE,r),a.emit(i.CHANGE,r)}n.withValidate&&(null===(t=null==l?void 0:l.validate)||void 0===t||t.call(l,"blur"))},onPaste:R,onChange:k,onKeypress:D,onKeydown:j,onKeyup:U,onCompositionstart:function(){c.value=!0},onCompositionend:function(e){c.value=!1,K(e)}};return function(){var e,t,r,l,i,s,c;return(0,o.createVNode)("div",{class:P.value,style:v},[null!==(r=null===(t=null===(e=a.slots)||void 0===e?void 0:e.prefix)||void 0===t?void 0:t.call(e))&&void 0!==r?r:n.prefix&&(0,o.createVNode)("div",{class:L("prefix-area")},[(0,o.createVNode)("span",{class:L("prefix-area--text")},[n.prefix])]),p.value?(0,o.createVNode)("textarea",(0,o.mergeProps)({ref:b,spellcheck:!1},y,G,q.value,{rows:n.rows}),null):(0,o.createVNode)("input",(0,o.mergeProps)({spellcheck:!1},y,{ref:b,class:"".concat(d.value,"--text"),type:E.value&&"password"===n.type?"text":n.type,step:n.step,max:n.max,min:n.min},G,q.value),null),!p.value&&n.clearable&&!!n.modelValue&&(0,o.createVNode)(u.Close,{onClick:I,class:N.value},null),g.value,"number"==typeof n.maxlength&&(n.showWordLimit||p.value)&&(0,o.createVNode)("p",{class:L("max-length")},[(null!==(l=n.modelValue)&&void 0!==l?l:"").toString().length,(0,o.createTextVNode)("/"),(0,o.createVNode)("span",null,[O.value])]),h.value&&n.showControl&&(0,o.createVNode)("div",{class:L("number-control")},[(0,o.createVNode)(u.DownSmall,{class:S.value,onClick:Y},null),(0,o.createVNode)(u.DownSmall,{class:C.value,onClick:H},null)]),null!==(c=null===(s=null===(i=a.slots)||void 0===i?void 0:i.suffix)||void 0===s?void 0:s.call(i))&&void 0!==c?c:n.suffix&&(0,o.createVNode)("div",{class:L("suffix-area")},[(0,o.createVNode)("span",{class:L("suffix-area--text")},[n.suffix])])])}}}),m=(0,e.withInstall)(f)})(),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 r="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon")):t(e["../shared"],e.vue,e["../icon"]);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,((e,t,r)=>(()=>{"use strict";var o={6870:e=>{e.exports=r},4212:t=>{t.exports=e},748:e=>{e.exports=t}},n={};function a(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return o[e](r,r.exports,a),r.exports}a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{a.r(l),a.d(l,{default:()=>v});var e=a(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=a(748);Object.create,Object.create;var n,i,u=a(6870),s={type:e.PropTypes.string.def("text"),clearable:e.PropTypes.bool,disabled:e.PropTypes.bool,readonly:e.PropTypes.bool,placeholder:e.PropTypes.string.def("Enter"),prefixIcon:e.PropTypes.string,suffixIcon:e.PropTypes.string,suffix:e.PropTypes.string,prefix:e.PropTypes.string,step:e.PropTypes.integer,max:e.PropTypes.integer,min:e.PropTypes.integer,maxlength:e.PropTypes.integer,behavior:(0,e.InputBehaviorType)(),showWordLimit:e.PropTypes.bool,showControl:e.PropTypes.bool.def(!0),showClearOnlyHover:e.PropTypes.bool.def(!0),precision:e.PropTypes.number.def(0).validate((function(e){return e>=0&&e<20})),modelValue:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]),size:e.PropTypes.size(),rows:e.PropTypes.number,selectReadonly:e.PropTypes.bool.def(!1),withValidate:e.PropTypes.bool.def(!0)};function c(e,t){return!0}function p(e){return e}!function(e){e.UPDATE="update:modelValue",e.FOCUS="focus",e.BLUR="blur",e.CHANGE="change",e.CLEAR="clear",e.INPUT="input",e.KEYPRESS="keypress",e.KEYDOWN="keydown",e.KEYUP="keyup",e.ENTER="enter",e.PASTE="paste",e.COMPOSITIONSTART="compositionstart",e.COMPOSITIONUPDATE="compositionupdate",e.COMPOSITIONEND="compositionend"}(i||(i={}));var d=(r(n={},i.UPDATE,c),r(n,i.FOCUS,(function(e){return e})),r(n,i.BLUR,(function(e){return e})),r(n,i.CHANGE,c),r(n,i.CLEAR,(function(){return!0})),r(n,i.INPUT,c),r(n,i.KEYPRESS,c),r(n,i.KEYDOWN,c),r(n,i.KEYUP,c),r(n,i.ENTER,c),r(n,i.PASTE,c),r(n,i.COMPOSITIONSTART,p),r(n,i.COMPOSITIONUPDATE,p),r(n,i.COMPOSITIONEND,p),n);const f=(0,o.defineComponent)({name:"Input",inheritAttrs:!1,props:s,emits:d,setup:function(n,a){var l=(0,e.useFormItem)(),s=(0,o.ref)(!1),c=(0,o.ref)(!1),p=(0,o.computed)((function(){return"textarea"===n.type})),d=(0,o.computed)((function(){return p.value?"bk-textarea":"bk-input"})),f=a.attrs,v=f.class,m=f.style,y=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}(f,["class","style"]),b=(0,o.ref)(),P=(0,o.computed)((function(){var t;return(0,e.classes)((r(t={},"".concat(d.value,"--").concat(n.size),!!n.size),r(t,"is-focused",s.value),r(t,"is-readonly",n.readonly&&!n.selectReadonly),r(t,"is-disabled",n.disabled),r(t,"is-simplicity","simplicity"===n.behavior),r(t,"".concat(v),!!v),t),d.value)})),T={search:function(){return(0,o.createVNode)(u.Search,null,null)},password:function(){return(0,o.createVNode)(u.Eye,{onClick:F},null)}},x=L("suffix-icon"),g=(0,o.computed)((function(){var e=T[n.type];return E.value?(0,o.createVNode)(u.Unvisible,{onClick:F,class:x},null):e?(0,o.createVNode)(e,{class:x},null):null})),h=(0,o.computed)((function(){return"number"===n.type})),O=(0,o.computed)((function(){return Math.floor(n.maxlength)})),E=(0,o.ref)(!1),N=(0,o.computed)((function(){return(0,e.classes)(r({"show-clear-only-hover":n.showClearOnlyHover},"".concat(d.value,"--clear-icon"),!0),x)})),S=(0,o.computed)((function(){return(0,e.classes)({"is-disabled":n.disabled||n.modelValue>=n.max})})),C=(0,o.computed)((function(){return(0,e.classes)({"is-disabled":n.disabled||n.modelValue<=n.min})}));function I(){if(!n.disabled){var e=h.value?n.min:"";a.emit(i.UPDATE,e),a.emit(i.CHANGE,e),a.emit(i.CLEAR)}}(0,o.watch)((function(){return n.modelValue}),(function(){var e;n.withValidate&&(null===(e=null==l?void 0:l.validate)||void 0===e||e.call(l,"change"))})),a.expose({focus:function(){b.value.focus()},clear:I});var V,w,A=(V=[i.KEYUP,i.KEYDOWN,i.KEYPRESS,i.PASTE,i.CHANGE,i.INPUT].map((function(e){return function(t){t.stopPropagation(),e!==i.KEYDOWN||"Enter"!==t.code&&"Enter"!==t.key&&13!==t.keyCode||a.emit(i.ENTER,t.target.value,t),c.value&&[i.INPUT,i.CHANGE].some((function(t){return e===t}))||(e===i.INPUT&&a.emit(i.UPDATE,h.value?+t.target.value:t.target.value),a.emit(e,t.target.value,t))}})),w=6,function(e){if(Array.isArray(e))return e}(V)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,a=[],l=!0,i=!1;try{for(r=r.call(e);!(l=(o=r.next()).done)&&(a.push(o.value),!t||a.length!==t);l=!0);}catch(e){i=!0,n=e}finally{try{l||null==r.return||r.return()}finally{if(i)throw n}}return a}}(V,w)||function(e,r){if(e){if("string"==typeof e)return t(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,r):void 0}}(V,w)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),U=A[0],j=A[1],D=A[2],R=A[3],k=A[4],K=A[5];function M(e){var t,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=parseInt(String(e),10),a=Number.isInteger(n.precision)?n.precision:0,l=parseFloat((null!==(t=n.modelValue)&&void 0!==t?t:0).toString()),i=Number.isInteger(o)?o:1,u=l+(r?i:-1*i);return Number.isInteger(n.max)&&(u=Math.min(u,n.max)),Number.isInteger(n.min)&&(u=Math.max(u,n.min)),+u.toFixed(a)}function Y(){if(!n.disabled){var e=M(n.step);a.emit(i.UPDATE,e)}}function H(){if(!n.disabled){var e=M(n.step,!1);a.emit(i.UPDATE,e)}}function L(e){return"".concat(d.value,"--").concat(e)}function F(){E.value=!E.value}var q=(0,o.computed)((function(){var e=void 0===n.modelValue||null===n.modelValue?{}:{value:n.modelValue};return Object.assign(Object.assign({},e),{maxlength:n.maxlength,placeholder:n.placeholder,readonly:n.readonly,disabled:n.disabled})})),G={onInput:K,onFocus:function(e){s.value=!0,a.emit(i.FOCUS,e)},onBlur:function(e){var t;if(s.value=!1,a.emit(i.BLUR,e),h.value&&(e.target.value>n.max||e.target.value<n.min)){var r=e.target.value>n.max?n.max:n.min;a.emit(i.UPDATE,r),a.emit(i.CHANGE,r)}n.withValidate&&(null===(t=null==l?void 0:l.validate)||void 0===t||t.call(l,"blur"))},onPaste:R,onChange:k,onKeypress:D,onKeydown:j,onKeyup:U,onCompositionstart:function(){c.value=!0},onCompositionend:function(e){c.value=!1,K(e)}};return function(){var e,t,r,l,i,s,c;return(0,o.createVNode)("div",{class:P.value,style:m},[null!==(r=null===(t=null===(e=a.slots)||void 0===e?void 0:e.prefix)||void 0===t?void 0:t.call(e))&&void 0!==r?r:n.prefix&&(0,o.createVNode)("div",{class:L("prefix-area")},[(0,o.createVNode)("span",{class:L("prefix-area--text")},[n.prefix])]),p.value?(0,o.createVNode)("textarea",(0,o.mergeProps)({ref:b,spellcheck:!1},y,G,q.value,{rows:n.rows}),null):(0,o.createVNode)("input",(0,o.mergeProps)({spellcheck:!1},y,{ref:b,class:"".concat(d.value,"--text"),type:E.value&&"password"===n.type?"text":n.type,step:n.step,max:n.max,min:n.min},G,q.value),null),!p.value&&n.clearable&&!!n.modelValue&&(0,o.createVNode)(u.Close,{onClick:I,class:N.value},null),g.value,"number"==typeof n.maxlength&&(n.showWordLimit||p.value)&&(0,o.createVNode)("p",{class:L("max-length")},[(null!==(l=n.modelValue)&&void 0!==l?l:"").toString().length,(0,o.createTextVNode)("/"),(0,o.createVNode)("span",null,[O.value])]),h.value&&n.showControl&&(0,o.createVNode)("div",{class:L("number-control")},[(0,o.createVNode)(u.DownSmall,{class:S.value,onClick:Y},null),(0,o.createVNode)(u.DownSmall,{class:C.value,onClick:H},null)]),null!==(c=null===(s=null===(i=a.slots)||void 0===i?void 0:i.suffix)||void 0===s?void 0:s.call(i))&&void 0!==c?c:n.suffix&&(0,o.createVNode)("div",{class:L("suffix-area")},[(0,o.createVNode)("span",{class:L("suffix-area--text")},[n.suffix])])])}}}),v=(0,e.withInstall)(f)})(),l})()));
@@ -43,8 +43,8 @@ export declare const inputType: {
43
43
  maxlength: import("vue-types").VueTypeDef<number> & {
44
44
  default: number;
45
45
  };
46
- behavior: import("vue-types").VueTypeDef<string> & {
47
- default: string;
46
+ behavior: import("vue-types").VueTypeDef<"simplicity" | "normal"> & {
47
+ default: "simplicity" | "normal";
48
48
  };
49
49
  showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
50
50
  default: boolean;
@@ -67,7 +67,7 @@ export declare const inputType: {
67
67
  validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
68
68
  };
69
69
  modelValue: import("vue-types").VueTypeDef<string | number>;
70
- size: import("vue-types").VueTypeDef<string>;
70
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
71
71
  rows: import("vue-types").VueTypeValidableDef<number> & {
72
72
  default: number;
73
73
  };
@@ -161,8 +161,8 @@ declare const _default: import("vue").DefineComponent<{
161
161
  maxlength: import("vue-types").VueTypeDef<number> & {
162
162
  default: number;
163
163
  };
164
- behavior: import("vue-types").VueTypeDef<string> & {
165
- default: string;
164
+ behavior: import("vue-types").VueTypeDef<"simplicity" | "normal"> & {
165
+ default: "simplicity" | "normal";
166
166
  };
167
167
  showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
168
168
  default: boolean;
@@ -185,7 +185,7 @@ declare const _default: import("vue").DefineComponent<{
185
185
  validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
186
186
  };
187
187
  modelValue: import("vue-types").VueTypeDef<string | number>;
188
- size: import("vue-types").VueTypeDef<string>;
188
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
189
189
  rows: import("vue-types").VueTypeValidableDef<number> & {
190
190
  default: number;
191
191
  };
@@ -258,8 +258,8 @@ declare const _default: import("vue").DefineComponent<{
258
258
  maxlength: import("vue-types").VueTypeDef<number> & {
259
259
  default: number;
260
260
  };
261
- behavior: import("vue-types").VueTypeDef<string> & {
262
- default: string;
261
+ behavior: import("vue-types").VueTypeDef<"simplicity" | "normal"> & {
262
+ default: "simplicity" | "normal";
263
263
  };
264
264
  showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
265
265
  default: boolean;
@@ -282,7 +282,7 @@ declare const _default: import("vue").DefineComponent<{
282
282
  validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
283
283
  };
284
284
  modelValue: import("vue-types").VueTypeDef<string | number>;
285
- size: import("vue-types").VueTypeDef<string>;
285
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
286
286
  rows: import("vue-types").VueTypeValidableDef<number> & {
287
287
  default: number;
288
288
  };
@@ -312,6 +312,7 @@ declare const _default: import("vue").DefineComponent<{
312
312
  "onUpdate:modelValue"?: (_value: any, _evt?: Event | KeyboardEvent) => any;
313
313
  onClear?: () => any;
314
314
  }, {
315
+ behavior: "simplicity" | "normal";
315
316
  type: string;
316
317
  disabled: boolean;
317
318
  placeholder: string;
@@ -325,7 +326,6 @@ declare const _default: import("vue").DefineComponent<{
325
326
  prefixIcon: string;
326
327
  suffixIcon: string;
327
328
  suffix: string;
328
- behavior: string;
329
329
  showWordLimit: boolean;
330
330
  showControl: boolean;
331
331
  showClearOnlyHover: boolean;
@@ -3,14 +3,14 @@ declare const BkLink: {
3
3
  $: import("vue").ComponentInternalInstance;
4
4
  $data: {};
5
5
  $props: Partial<{
6
- theme: string;
7
- disabled: boolean;
8
6
  target: string;
7
+ theme: "success" | "warning" | "danger" | "default" | "primary";
8
+ disabled: boolean;
9
9
  underline: boolean;
10
10
  href: string;
11
11
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
12
- theme: import("vue-types").VueTypeDef<string> & {
13
- default: string;
12
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "default" | "primary"> & {
13
+ default: "success" | "warning" | "danger" | "default" | "primary";
14
14
  };
15
15
  href: import("vue-types").VueTypeValidableDef<string> & {
16
16
  default: string;
@@ -32,7 +32,7 @@ declare const BkLink: {
32
32
  } & {
33
33
  default: string;
34
34
  };
35
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "disabled" | "target" | "underline" | "href">;
35
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "target" | "theme" | "disabled" | "underline" | "href">;
36
36
  $attrs: {
37
37
  [x: string]: unknown;
38
38
  };
@@ -47,8 +47,8 @@ declare const BkLink: {
47
47
  $emit: (event: string, ...args: any[]) => void;
48
48
  $el: any;
49
49
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
50
- theme: import("vue-types").VueTypeDef<string> & {
51
- default: string;
50
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "default" | "primary"> & {
51
+ default: "success" | "warning" | "danger" | "default" | "primary";
52
52
  };
53
53
  href: import("vue-types").VueTypeValidableDef<string> & {
54
54
  default: string;
@@ -73,9 +73,9 @@ declare const BkLink: {
73
73
  }>>, {
74
74
  handleClick: (event: Event) => boolean;
75
75
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
76
- theme: string;
77
- disabled: boolean;
78
76
  target: string;
77
+ theme: "success" | "warning" | "danger" | "default" | "primary";
78
+ disabled: boolean;
79
79
  underline: boolean;
80
80
  href: string;
81
81
  }> & {
@@ -99,8 +99,8 @@ declare const BkLink: {
99
99
  $nextTick: typeof import("vue").nextTick;
100
100
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
101
101
  } & Readonly<import("vue").ExtractPropTypes<{
102
- theme: import("vue-types").VueTypeDef<string> & {
103
- default: string;
102
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "default" | "primary"> & {
103
+ default: "success" | "warning" | "danger" | "default" | "primary";
104
104
  };
105
105
  href: import("vue-types").VueTypeValidableDef<string> & {
106
106
  default: string;
@@ -129,8 +129,8 @@ declare const BkLink: {
129
129
  __isTeleport?: never;
130
130
  __isSuspense?: never;
131
131
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
132
- theme: import("vue-types").VueTypeDef<string> & {
133
- default: string;
132
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "default" | "primary"> & {
133
+ default: "success" | "warning" | "danger" | "default" | "primary";
134
134
  };
135
135
  href: import("vue-types").VueTypeValidableDef<string> & {
136
136
  default: string;
@@ -155,9 +155,9 @@ declare const BkLink: {
155
155
  }>>, {
156
156
  handleClick: (event: Event) => boolean;
157
157
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
158
- theme: string;
159
- disabled: boolean;
160
158
  target: string;
159
+ theme: "success" | "warning" | "danger" | "default" | "primary";
160
+ disabled: boolean;
161
161
  underline: boolean;
162
162
  href: string;
163
163
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
package/lib/link/index.js CHANGED
@@ -1 +1 @@
1
- !function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],r);else{var t="object"==typeof exports?r(require("../shared"),require("vue")):r(e["../shared"],e.vue);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(self,((e,r)=>(()=>{"use strict";var t={4212:r=>{r.exports=e},748:e=>{e.exports=r}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var s=o[e]={exports:{}};return t[e](s,s.exports,n),s.exports}n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{n.r(s),n.d(s,{default:()=>o});var e=n(4212),r=n(748);const t=(0,r.defineComponent)({name:"Link",props:{theme:e.PropTypes.theme(["danger","success","primary","warning","default"]).def("default"),href:e.PropTypes.string.def(""),disabled:e.PropTypes.bool.def(!1),underline:e.PropTypes.bool.def(!1),target:e.PropTypes.string.def("_self")},setup:function(e,r){var t=r.emit;return{handleClick:function(r){if(e.disabled)return r.preventDefault(),!1;t("click",r)}}},render:function(){var t,o,n=(0,e.classes)({"is-disabled":this.disabled,"has-underline":this.underline},"".concat(this.theme," bk-link"));return(0,r.createVNode)("a",{href:this.href,target:this.target,class:n,onClick:this.handleClick},[(0,r.createVNode)("span",null,[null===(o=(t=this.$slots).default)||void 0===o?void 0:o.call(t)])])}}),o=(0,e.withInstall)(t)})(),s})()));
1
+ !function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("../shared"),require("vue"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types"],r);else{var t="object"==typeof exports?r(require("../shared"),require("vue"),require("vue-types")):r(e["../shared"],e.vue,e["vue-types"]);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(self,((e,r,t)=>(()=>{"use strict";var o={4212:r=>{r.exports=e},748:e=>{e.exports=r},210:e=>{e.exports=t}},n={};function s(e){var r=n[e];if(void 0!==r)return r.exports;var t=n[e]={exports:{}};return o[e](t,t.exports,s),t.exports}s.d=(e,r)=>{for(var t in r)s.o(r,t)&&!s.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},s.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{s.r(i),s.d(i,{default:()=>a});var e,r=s(4212),t=s(748),o=s(210);!function(e){e.DANGER="danger",e.SUCCESS="success",e.PRIMARY="primary",e.WARNING="warning",e.DEFAULT="default"}(e||(e={}));const n=(0,t.defineComponent)({name:"Link",props:{theme:(0,o.toType)("linkTheme",{}).def(e.DEFAULT),href:r.PropTypes.string.def(""),disabled:r.PropTypes.bool.def(!1),underline:r.PropTypes.bool.def(!1),target:r.PropTypes.string.def("_self")},setup:function(e,r){var t=r.emit;return{handleClick:function(r){if(e.disabled)return r.preventDefault(),!1;t("click",r)}}},render:function(){var e,o,n=(0,r.classes)({"is-disabled":this.disabled,"has-underline":this.underline},"".concat(this.theme," bk-link"));return(0,t.createVNode)("a",{href:this.href,target:this.target,class:n,onClick:this.handleClick},[(0,t.createVNode)("span",null,[null===(o=(e=this.$slots).default)||void 0===o?void 0:o.call(e)])])}}),a=(0,r.withInstall)(n)})(),i})()));
@@ -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" | "warning" | "danger" | "default" | "primary"> & {
3
+ default: "success" | "warning" | "danger" | "default" | "primary";
4
4
  };
5
5
  href: import("vue-types").VueTypeValidableDef<string> & {
6
6
  default: string;
@@ -25,8 +25,8 @@ declare const _default: import("vue").DefineComponent<{
25
25
  }, {
26
26
  handleClick: (event: Event) => boolean;
27
27
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
28
- theme: import("vue-types").VueTypeDef<string> & {
29
- default: string;
28
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "default" | "primary"> & {
29
+ default: "success" | "warning" | "danger" | "default" | "primary";
30
30
  };
31
31
  href: import("vue-types").VueTypeValidableDef<string> & {
32
32
  default: string;
@@ -49,9 +49,9 @@ declare const _default: import("vue").DefineComponent<{
49
49
  default: string;
50
50
  };
51
51
  }>>, {
52
- theme: string;
53
- disabled: boolean;
54
52
  target: string;
53
+ theme: "success" | "warning" | "danger" | "default" | "primary";
54
+ disabled: boolean;
55
55
  underline: boolean;
56
56
  href: string;
57
57
  }>;
@@ -6,10 +6,10 @@ declare const BkLoading: {
6
6
  $props: Partial<{
7
7
  title: string;
8
8
  zIndex: number;
9
- mode: string;
9
+ mode: "default" | "spin";
10
10
  color: string;
11
11
  inline: boolean;
12
- size: string;
12
+ size: "" | "small" | "large" | "mini";
13
13
  opacity: number;
14
14
  loading: boolean;
15
15
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
@@ -26,16 +26,20 @@ declare const BkLoading: {
26
26
  } & {
27
27
  default: boolean;
28
28
  };
29
- theme: import("vue-types").VueTypeDef<string>;
29
+ theme: {
30
+ type: import("vue").PropType<"success" | "warning" | "danger" | "primary" | "white">;
31
+ };
30
32
  title: import("vue-types").VueTypeValidableDef<string> & {
31
33
  default: string;
32
34
  } & {
33
35
  default: string;
34
36
  };
35
- size: import("vue-types").VueTypeDef<string> & {
36
- default: string;
37
+ size: {
38
+ type: import("vue").PropType<"" | "small" | "large" | "mini">;
39
+ default: BkLoadingSize;
37
40
  };
38
- mode: import("vue-types").VueTypeDef<string> & {
41
+ mode: {
42
+ type: import("vue").PropType<"default" | "spin">;
39
43
  default: string;
40
44
  };
41
45
  opacity: import("vue-types").VueTypeValidableDef<number> & {
@@ -81,16 +85,20 @@ declare const BkLoading: {
81
85
  } & {
82
86
  default: boolean;
83
87
  };
84
- theme: import("vue-types").VueTypeDef<string>;
88
+ theme: {
89
+ type: import("vue").PropType<"success" | "warning" | "danger" | "primary" | "white">;
90
+ };
85
91
  title: import("vue-types").VueTypeValidableDef<string> & {
86
92
  default: string;
87
93
  } & {
88
94
  default: string;
89
95
  };
90
- size: import("vue-types").VueTypeDef<string> & {
91
- default: string;
96
+ size: {
97
+ type: import("vue").PropType<"" | "small" | "large" | "mini">;
98
+ default: BkLoadingSize;
92
99
  };
93
- mode: import("vue-types").VueTypeDef<string> & {
100
+ mode: {
101
+ type: import("vue").PropType<"default" | "spin">;
94
102
  default: string;
95
103
  };
96
104
  opacity: import("vue-types").VueTypeValidableDef<number> & {
@@ -111,10 +119,10 @@ declare const BkLoading: {
111
119
  }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
112
120
  title: string;
113
121
  zIndex: number;
114
- mode: string;
122
+ mode: "default" | "spin";
115
123
  color: string;
116
124
  inline: boolean;
117
- size: string;
125
+ size: "" | "small" | "large" | "mini";
118
126
  opacity: number;
119
127
  loading: boolean;
120
128
  }> & {
@@ -151,16 +159,20 @@ declare const BkLoading: {
151
159
  } & {
152
160
  default: boolean;
153
161
  };
154
- theme: import("vue-types").VueTypeDef<string>;
162
+ theme: {
163
+ type: import("vue").PropType<"success" | "warning" | "danger" | "primary" | "white">;
164
+ };
155
165
  title: import("vue-types").VueTypeValidableDef<string> & {
156
166
  default: string;
157
167
  } & {
158
168
  default: string;
159
169
  };
160
- size: import("vue-types").VueTypeDef<string> & {
161
- default: string;
170
+ size: {
171
+ type: import("vue").PropType<"" | "small" | "large" | "mini">;
172
+ default: BkLoadingSize;
162
173
  };
163
- mode: import("vue-types").VueTypeDef<string> & {
174
+ mode: {
175
+ type: import("vue").PropType<"default" | "spin">;
164
176
  default: string;
165
177
  };
166
178
  opacity: import("vue-types").VueTypeValidableDef<number> & {
@@ -196,16 +208,20 @@ declare const BkLoading: {
196
208
  } & {
197
209
  default: boolean;
198
210
  };
199
- theme: import("vue-types").VueTypeDef<string>;
211
+ theme: {
212
+ type: import("vue").PropType<"success" | "warning" | "danger" | "primary" | "white">;
213
+ };
200
214
  title: import("vue-types").VueTypeValidableDef<string> & {
201
215
  default: string;
202
216
  } & {
203
217
  default: string;
204
218
  };
205
- size: import("vue-types").VueTypeDef<string> & {
206
- default: string;
219
+ size: {
220
+ type: import("vue").PropType<"" | "small" | "large" | "mini">;
221
+ default: BkLoadingSize;
207
222
  };
208
- mode: import("vue-types").VueTypeDef<string> & {
223
+ mode: {
224
+ type: import("vue").PropType<"default" | "spin">;
209
225
  default: string;
210
226
  };
211
227
  opacity: import("vue-types").VueTypeValidableDef<number> & {
@@ -226,10 +242,10 @@ declare const BkLoading: {
226
242
  }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
227
243
  title: string;
228
244
  zIndex: number;
229
- mode: string;
245
+ mode: "default" | "spin";
230
246
  color: string;
231
247
  inline: boolean;
232
- size: string;
248
+ size: "" | "small" | "large" | "mini";
233
249
  opacity: number;
234
250
  loading: boolean;
235
251
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & Readonly<{
@@ -1 +1 @@
1
- !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],o);else{var t="object"==typeof exports?o(require("../shared"),require("vue")):o(e["../shared"],e.vue);for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(self,((e,o)=>(()=>{"use strict";var t={4212:o=>{o.exports=e},748:e=>{e.exports=o}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{r.r(a),r.d(a,{BkLoading:()=>s,BkLoadingMode:()=>t,BkLoadingSize:()=>n,default:()=>p,setDefaultIndicator:()=>d});var e=r(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,n,i,l=r(748);function d(e){i="function"==typeof e?e:function(){return(0,l.createVNode)(e,null,null)}}!function(e){e.Default="default",e.Spin="spin"}(t||(t={})),function(e){e.Normal="",e.Mini="mini",e.Small="small",e.Large="large"}(n||(n={}));var u={indicator:{type:Function},loading:e.PropTypes.bool.def(!0),inline:e.PropTypes.bool.def(!0),theme:e.PropTypes.theme(["white","primary","warning","success","danger"]),title:e.PropTypes.string.def(""),size:e.PropTypes.commonType(Object.values(n)).def(n.Normal),mode:e.PropTypes.commonType(Object.values(t)).def("default"),opacity:e.PropTypes.number.def(.9),color:e.PropTypes.string.def("white"),zIndex:e.PropTypes.number.def(1)};const c=(0,l.defineComponent)({name:"Loading",props:u,setup:function(n,r){var a=(0,l.createVNode)("div",{class:"bk-normal-indicator"},[[1,2,3,4].map((function(e){return(0,l.createVNode)("span",{class:"dot dot-".concat(e)},null)}))]),d=(0,l.createVNode)("div",{class:"bk-spin-indicator"},[[1,2,3,4,5,6,7,8].map((function(e){return(0,l.createVNode)("span",{class:"oval oval-".concat(e)},null)}))]),u=(0,l.computed)((function(){return{zIndex:n.zIndex}})),c=(0,l.computed)((function(){return Object.assign({opacity:n.opacity,backgroundColor:n.color},u.value)})),s=(0,l.computed)((function(){return(0,e.classes)({"bk-loading-wrapper":n.loading,"bk-nested-loading":!!r.slots.default})})),p=(0,l.computed)((function(){var t;return(0,e.classes)((o(t={},"bk-loading-size-".concat(n.size),!!n.size),o(t,"bk-loading-".concat(n.theme),!!n.theme),t),"bk-loading-indicator")})),f=(0,l.computed)((function(){return!!n.title})),v=(0,l.computed)((function(){var e=n.mode===t.Spin;return"function"==typeof n.indicator?(0,l.createVNode)(n.indicator,null,null):"function"==typeof i?(0,l.createVNode)(i,null,null):e?d:a}));return function(){var e,o;return(0,l.createVNode)("div",{class:s.value},[n.loading&&[r.slots.default&&(0,l.createVNode)("div",{class:"bk-loading-mask",style:c.value},null),(0,l.createVNode)("div",{class:p.value,style:u.value},[v.value,f.value&&(0,l.createVNode)("div",{class:"bk-loading-title"},[n.title])])],null===(o=(e=r.slots).default)||void 0===o?void 0:o.call(e)])}}});var s=(0,e.withInstallProps)(c,{setDefaultIndicator:d,BkLoadingMode:t,BkLoadingSize:n},!0);const p=s})(),a})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue")):t(e["../shared"],e.vue);for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,((e,t)=>(()=>{"use strict";var o={4212:t=>{t.exports=e},748:e=>{e.exports=t}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return o[e](a,a.exports,r),a.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{r.r(a),r.d(a,{BkLoading:()=>s,BkLoadingMode:()=>o,BkLoadingSize:()=>n,default:()=>p,setDefaultIndicator:()=>d});var e=r(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,n,i,l=r(748);function d(e){i="function"==typeof e?e:function(){return(0,l.createVNode)(e,null,null)}}!function(e){e.Default="default",e.Spin="spin"}(o||(o={})),function(e){e.Normal="",e.Mini="mini",e.Small="small",e.Large="large"}(n||(n={}));var u={indicator:{type:Function},loading:e.PropTypes.bool.def(!0),inline:e.PropTypes.bool.def(!0),theme:{type:String},title:e.PropTypes.string.def(""),size:{type:String,default:n.Normal},mode:{type:String,default:"default"},opacity:e.PropTypes.number.def(.9),color:e.PropTypes.string.def("white"),zIndex:e.PropTypes.number.def(1)};const c=(0,l.defineComponent)({name:"Loading",props:u,setup:function(n,r){var a=(0,l.createVNode)("div",{class:"bk-normal-indicator"},[[1,2,3,4].map((function(e){return(0,l.createVNode)("span",{class:"dot dot-".concat(e)},null)}))]),d=(0,l.createVNode)("div",{class:"bk-spin-indicator"},[[1,2,3,4,5,6,7,8].map((function(e){return(0,l.createVNode)("span",{class:"oval oval-".concat(e)},null)}))]),u=(0,l.computed)((function(){return{zIndex:n.zIndex}})),c=(0,l.computed)((function(){return Object.assign({opacity:n.opacity,backgroundColor:n.color},u.value)})),s=(0,l.computed)((function(){return(0,e.classes)({"bk-loading-wrapper":n.loading,"bk-nested-loading":!!r.slots.default})})),p=(0,l.computed)((function(){var o;return(0,e.classes)((t(o={},"bk-loading-size-".concat(n.size),!!n.size),t(o,"bk-loading-".concat(n.theme),!!n.theme),o),"bk-loading-indicator")})),f=(0,l.computed)((function(){return!!n.title})),v=(0,l.computed)((function(){var e=n.mode===o.Spin;return"function"==typeof n.indicator?(0,l.createVNode)(n.indicator,null,null):"function"==typeof i?(0,l.createVNode)(i,null,null):e?d:a}));return function(){var e,t;return(0,l.createVNode)("div",{class:s.value},[n.loading&&[r.slots.default&&(0,l.createVNode)("div",{class:"bk-loading-mask",style:c.value},null),(0,l.createVNode)("div",{class:p.value,style:u.value},[v.value,f.value&&(0,l.createVNode)("div",{class:"bk-loading-title"},[n.title])])],null===(t=(e=r.slots).default)||void 0===t?void 0:t.call(e)])}}});var s=(0,e.withInstallProps)(c,{setDefaultIndicator:d,BkLoadingMode:o,BkLoadingSize:n},!0);const p=s})(),a})()));
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
2
  export declare enum BkLoadingMode {
3
3
  Default = "default",
4
4
  Spin = "spin"
@@ -24,16 +24,20 @@ export declare const loadingTypes: {
24
24
  } & {
25
25
  default: boolean;
26
26
  };
27
- theme: import("vue-types").VueTypeDef<string>;
27
+ theme: {
28
+ type: PropType<"success" | "warning" | "danger" | "primary" | "white">;
29
+ };
28
30
  title: import("vue-types").VueTypeValidableDef<string> & {
29
31
  default: string;
30
32
  } & {
31
33
  default: string;
32
34
  };
33
- size: import("vue-types").VueTypeDef<string> & {
34
- default: string;
35
+ size: {
36
+ type: PropType<"" | "small" | "large" | "mini">;
37
+ default: BkLoadingSize;
35
38
  };
36
- mode: import("vue-types").VueTypeDef<string> & {
39
+ mode: {
40
+ type: PropType<"default" | "spin">;
37
41
  default: string;
38
42
  };
39
43
  opacity: import("vue-types").VueTypeValidableDef<number> & {
@@ -67,16 +71,20 @@ declare const _default: import("vue").DefineComponent<{
67
71
  } & {
68
72
  default: boolean;
69
73
  };
70
- theme: import("vue-types").VueTypeDef<string>;
74
+ theme: {
75
+ type: PropType<"success" | "warning" | "danger" | "primary" | "white">;
76
+ };
71
77
  title: import("vue-types").VueTypeValidableDef<string> & {
72
78
  default: string;
73
79
  } & {
74
80
  default: string;
75
81
  };
76
- size: import("vue-types").VueTypeDef<string> & {
77
- default: string;
82
+ size: {
83
+ type: PropType<"" | "small" | "large" | "mini">;
84
+ default: BkLoadingSize;
78
85
  };
79
- mode: import("vue-types").VueTypeDef<string> & {
86
+ mode: {
87
+ type: PropType<"default" | "spin">;
80
88
  default: string;
81
89
  };
82
90
  opacity: import("vue-types").VueTypeValidableDef<number> & {
@@ -108,16 +116,20 @@ declare const _default: import("vue").DefineComponent<{
108
116
  } & {
109
117
  default: boolean;
110
118
  };
111
- theme: import("vue-types").VueTypeDef<string>;
119
+ theme: {
120
+ type: PropType<"success" | "warning" | "danger" | "primary" | "white">;
121
+ };
112
122
  title: import("vue-types").VueTypeValidableDef<string> & {
113
123
  default: string;
114
124
  } & {
115
125
  default: string;
116
126
  };
117
- size: import("vue-types").VueTypeDef<string> & {
118
- default: string;
127
+ size: {
128
+ type: PropType<"" | "small" | "large" | "mini">;
129
+ default: BkLoadingSize;
119
130
  };
120
- mode: import("vue-types").VueTypeDef<string> & {
131
+ mode: {
132
+ type: PropType<"default" | "spin">;
121
133
  default: string;
122
134
  };
123
135
  opacity: import("vue-types").VueTypeValidableDef<number> & {
@@ -138,10 +150,10 @@ declare const _default: import("vue").DefineComponent<{
138
150
  }>>, {
139
151
  title: string;
140
152
  zIndex: number;
141
- mode: string;
153
+ mode: "default" | "spin";
142
154
  color: string;
143
155
  inline: boolean;
144
- size: string;
156
+ size: "" | "small" | "large" | "mini";
145
157
  opacity: number;
146
158
  loading: boolean;
147
159
  }>;