bkui-vue 0.0.1-beta.81 → 0.0.1-beta.84

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 (50) hide show
  1. package/dist/index.cjs.js +29 -29
  2. package/dist/index.esm.js +518 -255
  3. package/dist/index.umd.js +29 -29
  4. package/dist/style.css +1 -1
  5. package/lib/button/button.css +16 -11
  6. package/lib/button/button.d.ts +0 -10
  7. package/lib/button/button.less +28 -13
  8. package/lib/button/button.variable.css +16 -11
  9. package/lib/button/index.d.ts +1 -16
  10. package/lib/button/index.js +1 -1
  11. package/lib/cascader/cascader.d.ts +1 -1
  12. package/lib/cascader/index.d.ts +4 -4
  13. package/lib/input/input.css +4 -1
  14. package/lib/input/input.less +4 -1
  15. package/lib/input/input.variable.css +4 -1
  16. package/lib/loading/loading.css +4 -3
  17. package/lib/loading/loading.less +4 -3
  18. package/lib/loading/loading.variable.css +4 -3
  19. package/lib/pagination/index.js +1 -1
  20. package/lib/select/common.d.ts +4 -4
  21. package/lib/select/index.d.ts +563 -212
  22. package/lib/select/index.js +1 -1
  23. package/lib/select/option.d.ts +11 -4
  24. package/lib/select/select.css +31 -59
  25. package/lib/select/select.d.ts +168 -62
  26. package/lib/select/select.less +43 -51
  27. package/lib/select/select.variable.css +31 -59
  28. package/lib/select/selectTagInput.d.ts +71 -0
  29. package/lib/select/type.d.ts +9 -5
  30. package/lib/shared/index.js +1 -1
  31. package/lib/tab/index.d.ts +7 -7
  32. package/lib/tab/tab.d.ts +2 -2
  33. package/lib/table/index.d.ts +16 -5
  34. package/lib/table/index.js +1 -1
  35. package/lib/table/props.d.ts +4 -1
  36. package/lib/table/render.d.ts +1 -1
  37. package/lib/table/table.css +26 -7
  38. package/lib/table/table.d.ts +7 -2
  39. package/lib/table/table.less +29 -6
  40. package/lib/table/table.variable.css +26 -7
  41. package/lib/table/use-common.d.ts +4 -2
  42. package/lib/tag-input/index.d.ts +4 -4
  43. package/lib/tag-input/index.js +1 -1
  44. package/lib/tag-input/tag-input.d.ts +1 -1
  45. package/lib/transfer/index.js +1 -1
  46. package/lib/transfer/transfer.css +41 -60
  47. package/lib/transfer/transfer.less +55 -82
  48. package/lib/transfer/transfer.variable.css +41 -60
  49. package/lib/tree/index.js +1 -1
  50. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  .bk-button {
2
- display: inline-block;
2
+ display: inline-flex;
3
+ height: 32px;
3
4
  padding: 5px 12px;
4
5
  font-size: 14px;
5
6
  color: #63656e;
6
- text-align: center;
7
7
  text-decoration: none;
8
8
  white-space: nowrap;
9
9
  cursor: pointer;
@@ -14,6 +14,8 @@
14
14
  box-sizing: border-box;
15
15
  transition: background-color ease 0.3s;
16
16
  appearance: none;
17
+ align-items: center;
18
+ justify-content: center;
17
19
  }
18
20
  .bk-button.bk-button-primary {
19
21
  background-color: #3a84ff;
@@ -200,11 +202,18 @@
200
202
  color: white;
201
203
  }
202
204
  .bk-button.bk-button-small {
203
- padding: 2px 12px;
205
+ height: 26px;
206
+ padding: 3px 12px;
204
207
  }
205
208
  .bk-button.bk-button-large {
209
+ height: 38px;
206
210
  padding: 8px 20px;
207
211
  }
212
+ .bk-button .bk-button-text {
213
+ display: inline-flex;
214
+ align-items: center;
215
+ line-height: 1;
216
+ }
208
217
  .bk-button:not(.is-text) .bk-button-loading:not(:last-child) {
209
218
  margin-right: 6px;
210
219
  }
@@ -217,11 +226,9 @@
217
226
  }
218
227
  .bk-button.is-text {
219
228
  height: auto;
220
- min-width: auto;
221
229
  padding: 0;
222
230
  font-size: 14px;
223
231
  font-size: inherit;
224
- line-height: 1;
225
232
  color: #63656e;
226
233
  text-decoration: none;
227
234
  cursor: pointer;
@@ -234,22 +241,20 @@
234
241
  cursor: not-allowed;
235
242
  border-color: #dcdee5;
236
243
  }
237
- .bk-button.is-circle {
238
- padding: 10px;
239
- line-height: 1;
240
- border-radius: 50%;
241
- }
242
244
  .bk-button-group {
243
245
  display: inline-block;
244
246
  font-size: 0;
245
247
  }
246
248
  .bk-button-group.bk-button-group-small .bk-button {
247
- padding: 2px 12px;
249
+ height: 26px;
250
+ padding: 3px 12px;
248
251
  }
249
252
  .bk-button-group.bk-button-group-large .bk-button {
253
+ height: 38px;
250
254
  padding: 8px 20px;
251
255
  }
252
256
  .bk-button-group .bk-button {
257
+ height: 32px;
253
258
  margin: 0 0 0 -1px;
254
259
  border-radius: 0;
255
260
  }
@@ -57,9 +57,6 @@ declare const buttonProps: {
57
57
  text: import("vue-types").VueTypeValidableDef<boolean> & {
58
58
  default: boolean;
59
59
  };
60
- circle: import("vue-types").VueTypeValidableDef<boolean> & {
61
- default: boolean;
62
- };
63
60
  nativeType: {
64
61
  type: IButtonNativeType;
65
62
  };
@@ -97,9 +94,6 @@ declare const _default: import("vue").DefineComponent<{
97
94
  text: import("vue-types").VueTypeValidableDef<boolean> & {
98
95
  default: boolean;
99
96
  };
100
- circle: import("vue-types").VueTypeValidableDef<boolean> & {
101
- default: boolean;
102
- };
103
97
  nativeType: {
104
98
  type: IButtonNativeType;
105
99
  };
@@ -135,9 +129,6 @@ declare const _default: import("vue").DefineComponent<{
135
129
  text: import("vue-types").VueTypeValidableDef<boolean> & {
136
130
  default: boolean;
137
131
  };
138
- circle: import("vue-types").VueTypeValidableDef<boolean> & {
139
- default: boolean;
140
- };
141
132
  nativeType: {
142
133
  type: IButtonNativeType;
143
134
  };
@@ -146,7 +137,6 @@ declare const _default: import("vue").DefineComponent<{
146
137
  onMouseover?: (...args: any[]) => any;
147
138
  }, {
148
139
  title: string;
149
- circle: boolean;
150
140
  text: boolean;
151
141
  theme: string;
152
142
  size: string;
@@ -1,20 +1,24 @@
1
1
  @import '../styles/themes/themes.less';
2
2
 
3
+ @btnHeight: 32px;
3
4
  @btnPadding: 5px 12px;
4
5
  @btnBorderRadius: 2px;
5
6
 
6
- @smallBtnPadding: 2px 12px;
7
+ @smallBtnHeight: 26px;
8
+ @smallBtnPadding: 3px 12px;
7
9
 
10
+ @largeBtnHeight: 38px;
8
11
  @largeBtnPadding: 8px 20px;
12
+
9
13
  @themeSelectors: primary, warning, success, danger;
10
14
  @sizeSelectors: small, large;
11
15
 
12
16
  .@{bk-prefix}-button {
13
- display: inline-block;
17
+ display: inline-flex;
18
+ height: @btnHeight;
14
19
  padding: @btnPadding;
15
20
  font-size: @font-size-medium;
16
21
  color: @default-color;
17
- text-align: center;
18
22
  text-decoration: none;
19
23
  white-space: nowrap;
20
24
  cursor: pointer;
@@ -25,6 +29,8 @@
25
29
  box-sizing: border-box;
26
30
  transition: background-color ease .3s;
27
31
  appearance: none;
32
+ align-items: center;
33
+ justify-content: center;
28
34
 
29
35
  each(@themeSelectors, {
30
36
  @color: '@{value}-color';
@@ -88,12 +94,20 @@
88
94
 
89
95
 
90
96
  each(@sizeSelectors, {
91
- @sizeBtnPadding: '@{value}BtnPadding';
92
- &.@{bk-prefix}-button-@{value} {
93
- padding: @@sizeBtnPadding;
97
+ @sizeBtnHeight: '@{value}BtnHeight';
98
+ @sizeBtnPadding: '@{value}BtnPadding';
99
+ &.@{bk-prefix}-button-@{value} {
100
+ height: @@sizeBtnHeight;
101
+ padding: @@sizeBtnPadding;
94
102
  }
95
103
  });
96
104
 
105
+ .@{bk-prefix}-button-text {
106
+ display: inline-flex;
107
+ align-items: center;
108
+ line-height: 1;
109
+ }
110
+
97
111
  &:not(.is-text) {
98
112
  .@{bk-prefix}-button-loading {
99
113
  &:not(:last-child) {
@@ -113,11 +127,9 @@
113
127
 
114
128
  &.is-text {
115
129
  height: auto;
116
- min-width: auto;
117
130
  padding: 0;
118
131
  font-size: @font-size-medium;
119
132
  font-size: inherit;
120
- line-height: 1;
121
133
  color: @default-color;
122
134
  text-decoration: none;
123
135
  cursor: pointer;
@@ -132,11 +144,11 @@
132
144
  border-color: @disable-color;
133
145
  }
134
146
 
135
- &.is-circle {
136
- padding: 10px;
137
- line-height: 1;
138
- border-radius: 50%;
139
- }
147
+ // &.is-circle {
148
+ // padding: 8px;
149
+ // line-height: 1;
150
+ // border-radius: 50%;
151
+ // }
140
152
  }
141
153
 
142
154
 
@@ -145,9 +157,11 @@
145
157
  font-size: 0;
146
158
 
147
159
  each(@sizeSelectors, {
160
+ @sizeBtnHeight: '@{value}BtnHeight';
148
161
  @sizeBtnPadding: '@{value}BtnPadding';
149
162
  &.@{bk-prefix}-button-group-@{value} {
150
163
  .@{bk-prefix}-button {
164
+ height: @@sizeBtnHeight;
151
165
  padding: @@sizeBtnPadding;
152
166
  }
153
167
  }
@@ -155,6 +169,7 @@
155
169
  ;
156
170
 
157
171
  .@{bk-prefix}-button {
172
+ height: @btnHeight;
158
173
  margin: 0 0 0 -1px;
159
174
  border-radius: 0;
160
175
 
@@ -98,11 +98,11 @@
98
98
  --cascader-panel-disabled-bg: #fff;
99
99
  }
100
100
  .bk-button {
101
- display: inline-block;
101
+ display: inline-flex;
102
+ height: 32px;
102
103
  padding: 5px 12px;
103
104
  font-size: var(--font-size-medium);
104
105
  color: var(--default-color);
105
- text-align: center;
106
106
  text-decoration: none;
107
107
  white-space: nowrap;
108
108
  cursor: pointer;
@@ -113,6 +113,8 @@
113
113
  box-sizing: border-box;
114
114
  transition: background-color ease 0.3s;
115
115
  appearance: none;
116
+ align-items: center;
117
+ justify-content: center;
116
118
  }
117
119
  .bk-button.bk-button-primary {
118
120
  background-color: var(--primary-color);
@@ -299,11 +301,18 @@
299
301
  color: var(--white-color);
300
302
  }
301
303
  .bk-button.bk-button-small {
302
- padding: 2px 12px;
304
+ height: 26px;
305
+ padding: 3px 12px;
303
306
  }
304
307
  .bk-button.bk-button-large {
308
+ height: 38px;
305
309
  padding: 8px 20px;
306
310
  }
311
+ .bk-button .bk-button-text {
312
+ display: inline-flex;
313
+ align-items: center;
314
+ line-height: 1;
315
+ }
307
316
  .bk-button:not(.is-text) .bk-button-loading:not(:last-child) {
308
317
  margin-right: 6px;
309
318
  }
@@ -316,11 +325,9 @@
316
325
  }
317
326
  .bk-button.is-text {
318
327
  height: auto;
319
- min-width: auto;
320
328
  padding: 0;
321
329
  font-size: var(--font-size-medium);
322
330
  font-size: inherit;
323
- line-height: 1;
324
331
  color: var(--default-color);
325
332
  text-decoration: none;
326
333
  cursor: pointer;
@@ -333,22 +340,20 @@
333
340
  cursor: not-allowed;
334
341
  border-color: var(--disable-color);
335
342
  }
336
- .bk-button.is-circle {
337
- padding: 10px;
338
- line-height: 1;
339
- border-radius: 50%;
340
- }
341
343
  .bk-button-group {
342
344
  display: inline-block;
343
345
  font-size: 0;
344
346
  }
345
347
  .bk-button-group.bk-button-group-small .bk-button {
346
- padding: 2px 12px;
348
+ height: 26px;
349
+ padding: 3px 12px;
347
350
  }
348
351
  .bk-button-group.bk-button-group-large .bk-button {
352
+ height: 38px;
349
353
  padding: 8px 20px;
350
354
  }
351
355
  .bk-button-group .bk-button {
356
+ height: 32px;
352
357
  margin: 0 0 0 -1px;
353
358
  border-radius: 0;
354
359
  }
@@ -5,7 +5,6 @@ declare const BkButton: {
5
5
  $data: {};
6
6
  $props: Partial<{
7
7
  title: string;
8
- circle: boolean;
9
8
  text: boolean;
10
9
  theme: string;
11
10
  size: string;
@@ -47,16 +46,13 @@ declare const BkButton: {
47
46
  text: import("vue-types").VueTypeValidableDef<boolean> & {
48
47
  default: boolean;
49
48
  };
50
- circle: import("vue-types").VueTypeValidableDef<boolean> & {
51
- default: boolean;
52
- };
53
49
  nativeType: {
54
50
  type: ((new (...args: any[]) => ("button" | "reset" | "submit") & {}) | (() => "button" | "reset" | "submit")) | ((new (...args: any[]) => ("button" | "reset" | "submit") & {}) | (() => "button" | "reset" | "submit"))[];
55
51
  };
56
52
  }>> & {
57
53
  onClick?: (...args: any[]) => any;
58
54
  onMouseover?: (...args: any[]) => any;
59
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "circle" | "text" | "theme" | "size" | "icon" | "outline" | "disabled" | "loading" | "hoverTheme" | "iconRight">;
55
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "text" | "theme" | "size" | "icon" | "outline" | "disabled" | "loading" | "hoverTheme" | "iconRight">;
60
56
  $attrs: {
61
57
  [x: string]: unknown;
62
58
  };
@@ -102,9 +98,6 @@ declare const BkButton: {
102
98
  text: import("vue-types").VueTypeValidableDef<boolean> & {
103
99
  default: boolean;
104
100
  };
105
- circle: import("vue-types").VueTypeValidableDef<boolean> & {
106
- default: boolean;
107
- };
108
101
  nativeType: {
109
102
  type: ((new (...args: any[]) => ("button" | "reset" | "submit") & {}) | (() => "button" | "reset" | "submit")) | ((new (...args: any[]) => ("button" | "reset" | "submit") & {}) | (() => "button" | "reset" | "submit"))[];
110
103
  };
@@ -113,7 +106,6 @@ declare const BkButton: {
113
106
  onMouseover?: (...args: any[]) => any;
114
107
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "mouseover")[], string, {
115
108
  title: string;
116
- circle: boolean;
117
109
  text: boolean;
118
110
  theme: string;
119
111
  size: string;
@@ -175,9 +167,6 @@ declare const BkButton: {
175
167
  text: import("vue-types").VueTypeValidableDef<boolean> & {
176
168
  default: boolean;
177
169
  };
178
- circle: import("vue-types").VueTypeValidableDef<boolean> & {
179
- default: boolean;
180
- };
181
170
  nativeType: {
182
171
  type: ((new (...args: any[]) => ("button" | "reset" | "submit") & {}) | (() => "button" | "reset" | "submit")) | ((new (...args: any[]) => ("button" | "reset" | "submit") & {}) | (() => "button" | "reset" | "submit"))[];
183
172
  };
@@ -220,9 +209,6 @@ declare const BkButton: {
220
209
  text: import("vue-types").VueTypeValidableDef<boolean> & {
221
210
  default: boolean;
222
211
  };
223
- circle: import("vue-types").VueTypeValidableDef<boolean> & {
224
- default: boolean;
225
- };
226
212
  nativeType: {
227
213
  type: ((new (...args: any[]) => ("button" | "reset" | "submit") & {}) | (() => "button" | "reset" | "submit")) | ((new (...args: any[]) => ("button" | "reset" | "submit") & {}) | (() => "button" | "reset" | "submit"))[];
228
214
  };
@@ -231,7 +217,6 @@ declare const BkButton: {
231
217
  onMouseover?: (...args: any[]) => any;
232
218
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "mouseover")[], "click" | "mouseover", {
233
219
  title: string;
234
- circle: boolean;
235
220
  text: boolean;
236
221
  theme: string;
237
222
  size: string;
@@ -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 r in t)("object"==typeof exports?exports:e)[r]=t[r]}}(self,((e,o,t)=>(()=>{"use strict";var r={4870:e=>{e.exports=t},4212:o=>{o.exports=e},748:e=>{e.exports=o}},n={};function i(e){var o=n[e];if(void 0!==o)return o.exports;var t=n[e]={exports:{}};return r[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:()=>d,BkButtonGroup:()=>c,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),r=i(4870),n=i.n(r),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(r.BkLoadingMode)),outline:e.PropTypes.bool,text:e.PropTypes.bool,circle:e.PropTypes.bool,nativeType:{type:String}};const s=(0,t.defineComponent)({name:"Button",props:u,emits:["click","mouseover"],setup:function(i,a){var u,s=a.slots,c=a.attrs,d=a.emit,p=(0,t.ref)(!1),v=null!==(u=s.default)&&void 0!==u&&u,f="bk-button",m=(0,t.computed)((function(){return i.text&&!i.hoverTheme})),b=(0,t.computed)((function(){var t,r=i.hoverTheme?"".concat(f,"-hover-").concat(i.hoverTheme):"",n=i.theme?"".concat(f,"-").concat(i.theme):"",a=i.hoverTheme?"":n;return(0,e.classes)((o(t={"is-disabled":i.disabled,"is-outline":i.outline,"is-text":m.value,"is-circle":i.circle},"".concat(f,"-").concat(i.size),i.size&&l.includes(i.size)),o(t,"no-slot",!v),t),"".concat(a," ").concat(f," ").concat(r))})),y=(0,t.computed)((function(){return i.text||i.outline||i.hoverTheme?p.value&&!i.text?"white":i.text&&i.disabled?"":i.hoverTheme||i.theme:["","default"].includes(i.theme)?"":"white"})),g=(0,t.computed)((function(){return m.value||i.size===r.BkLoadingSize.Small?r.BkLoadingSize.Mini:r.BkLoadingSize.Small})),h=function(){i.loading||d("click")},T=function(){p.value=!0,d("mouseover")},P=function(){p.value=!1};return function(){var e;return(0,t.createVNode)("button",(0,t.mergeProps)({title:i.title,disabled:i.disabled,class:b.value,type:i.nativeType},c,{onClick:h,onMouseover:T,onMouseleave:P}),[i.loading&&(0,t.createVNode)(n(),{loading:!0,class:"".concat(f,"-loading"),mode:i.loadingMode,theme:y.value,size:g.value},null),s.default&&!i.loading&&(0,t.createVNode)("span",{class:"".concat(f,"-text")},[null===(e=s.default)||void 0===e?void 0:e.call(s)])])}}}),c=(0,t.defineComponent)({name:"ButtonGroup",props:{size:e.PropTypes.size()},setup:function(r,n){var i=(0,t.computed)((function(){return(0,e.classes)(o({},"bk-button-group-".concat(r.size),!!r.size),"bk-button-group")}));return function(){var e,o;return(0,t.createVNode)("div",{class:i.value},[null===(o=(e=n.slots).default)||void 0===o?void 0:o.call(e)])}}});var d=(0,e.withInstallProps)(s,{ButtonGroup:c});const p=d})(),a})()));
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),u=["","small","large"],l={theme:e.PropTypes.theme().def(""),hoverTheme:e.PropTypes.theme(["primary","warning","success","danger"]).def(""),size:e.PropTypes.size(u).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,nativeType:{type:String}};const s=(0,t.defineComponent)({name:"Button",props:l,emits:["click","mouseover"],setup:function(i,a){var l,s=a.slots,d=a.attrs,c=a.emit,p=(0,t.ref)(!1),v=null!==(l=s.default)&&void 0!==l&&l,f="bk-button",m=(0,t.computed)((function(){return i.text&&!i.hoverTheme})),b=(0,t.computed)((function(){var t,n=i.hoverTheme?"".concat(f,"-hover-").concat(i.hoverTheme):"",r=i.theme?"".concat(f,"-").concat(i.theme):"",a=i.hoverTheme?"":r;return(0,e.classes)((o(t={"is-disabled":i.disabled,"is-outline":i.outline,"is-text":m.value},"".concat(f,"-").concat(i.size),i.size&&u.includes(i.size)),o(t,"no-slot",!v),t),"".concat(a," ").concat(f," ").concat(n))})),g=(0,t.computed)((function(){return i.text||i.outline||i.hoverTheme?p.value&&!i.text?"white":i.text&&i.disabled?"":i.hoverTheme||i.theme:["","default"].includes(i.theme)?"":"white"})),y=(0,t.computed)((function(){return m.value||i.size===n.BkLoadingSize.Small?n.BkLoadingSize.Mini:n.BkLoadingSize.Small})),h=function(){i.loading||c("click")},T=function(){p.value=!0,c("mouseover")},x=function(){p.value=!1};return function(){var e;return(0,t.createVNode)("button",(0,t.mergeProps)({title:i.title,disabled:i.disabled,class:b.value,type:i.nativeType},d,{onClick:h,onMouseover:T,onMouseleave:x}),[i.loading&&(0,t.createVNode)(r(),{loading:!0,class:"".concat(f,"-loading"),mode:i.loadingMode,theme:g.value,size:y.value},null),s.default&&!i.loading&&(0,t.createVNode)("span",{class:"".concat(f,"-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})()));
@@ -259,10 +259,10 @@ declare const _default: import("vue").DefineComponent<{
259
259
  modelValue: unknown[];
260
260
  trigger: string;
261
261
  checkAnyLevel: boolean;
262
+ filterable: boolean;
262
263
  idKey: string;
263
264
  nameKey: string;
264
265
  childrenKey: string;
265
- filterable: boolean;
266
266
  isRemote: boolean;
267
267
  remoteMethod: (...args: any[]) => any;
268
268
  showCompleteName: boolean;
@@ -14,10 +14,10 @@ declare const BkCascader: {
14
14
  modelValue: unknown[];
15
15
  trigger: string;
16
16
  checkAnyLevel: boolean;
17
+ filterable: boolean;
17
18
  idKey: string;
18
19
  nameKey: string;
19
20
  childrenKey: string;
20
- filterable: boolean;
21
21
  isRemote: boolean;
22
22
  remoteMethod: (...args: any[]) => any;
23
23
  showCompleteName: boolean;
@@ -113,7 +113,7 @@ declare const BkCascader: {
113
113
  };
114
114
  }>> & {
115
115
  "onUpdate:modelValue"?: (...args: any[]) => any;
116
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placeholder" | "list" | "extCls" | "separator" | "multiple" | "disabled" | "clearable" | "modelValue" | "trigger" | "checkAnyLevel" | "idKey" | "nameKey" | "childrenKey" | "filterable" | "isRemote" | "remoteMethod" | "showCompleteName" | "limitOneLine">;
116
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placeholder" | "list" | "extCls" | "separator" | "multiple" | "disabled" | "clearable" | "modelValue" | "trigger" | "checkAnyLevel" | "filterable" | "idKey" | "nameKey" | "childrenKey" | "isRemote" | "remoteMethod" | "showCompleteName" | "limitOneLine">;
117
117
  $attrs: {
118
118
  [x: string]: unknown;
119
119
  };
@@ -298,10 +298,10 @@ declare const BkCascader: {
298
298
  modelValue: unknown[];
299
299
  trigger: string;
300
300
  checkAnyLevel: boolean;
301
+ filterable: boolean;
301
302
  idKey: string;
302
303
  nameKey: string;
303
304
  childrenKey: string;
304
- filterable: boolean;
305
305
  isRemote: boolean;
306
306
  remoteMethod: (...args: any[]) => any;
307
307
  showCompleteName: boolean;
@@ -661,10 +661,10 @@ declare const BkCascader: {
661
661
  modelValue: unknown[];
662
662
  trigger: string;
663
663
  checkAnyLevel: boolean;
664
+ filterable: boolean;
664
665
  idKey: string;
665
666
  nameKey: string;
666
667
  childrenKey: string;
667
- filterable: boolean;
668
668
  isRemote: boolean;
669
669
  remoteMethod: (...args: any[]) => any;
670
670
  showCompleteName: boolean;
@@ -28,6 +28,7 @@
28
28
  visibility: hidden;
29
29
  }
30
30
  .bk-textarea {
31
+ display: inline-flex;
31
32
  width: 100%;
32
33
  min-height: 70px;
33
34
  font-size: 12px;
@@ -37,9 +38,11 @@
37
38
  border-radius: 2px;
38
39
  box-sizing: border-box;
39
40
  transition: all 0.3s;
41
+ flex-direction: column;
40
42
  }
41
43
  .bk-textarea > textarea {
42
44
  width: 100%;
45
+ flex: 1;
43
46
  padding: 5px 10px;
44
47
  line-height: 1.5;
45
48
  text-align: left;
@@ -57,7 +60,7 @@
57
60
  color: #979ba5;
58
61
  }
59
62
  .bk-input {
60
- display: flex;
63
+ display: inline-flex;
61
64
  align-items: stretch;
62
65
  width: 100%;
63
66
  height: 32px;
@@ -14,6 +14,7 @@
14
14
  }
15
15
 
16
16
  .@{bk-prefix}-textarea {
17
+ display: inline-flex;
17
18
  width: 100%;
18
19
  min-height: 70px;
19
20
  font-size: @font-size-base;
@@ -24,9 +25,11 @@
24
25
  border-radius: @border-radius-base;
25
26
  box-sizing: border-box;
26
27
  transition: all .3s;
28
+ flex-direction: column;
27
29
 
28
30
  > textarea {
29
31
  width: 100%;
32
+ flex: 1;
30
33
  padding: 5px 10px;
31
34
  line-height: 1.5;
32
35
  text-align: left;
@@ -48,7 +51,7 @@
48
51
  }
49
52
 
50
53
  .@{bk-prefix}-input {
51
- display: flex;
54
+ display: inline-flex;
52
55
  align-items: stretch;
53
56
  width: 100%;
54
57
  height: @input-height-base;
@@ -127,6 +127,7 @@
127
127
  visibility: hidden;
128
128
  }
129
129
  .bk-textarea {
130
+ display: inline-flex;
130
131
  width: 100%;
131
132
  min-height: 70px;
132
133
  font-size: var(--font-size-base);
@@ -137,9 +138,11 @@
137
138
  border-radius: var(--border-radius-base);
138
139
  box-sizing: border-box;
139
140
  transition: all 0.3s;
141
+ flex-direction: column;
140
142
  }
141
143
  .bk-textarea > textarea {
142
144
  width: 100%;
145
+ flex: 1;
143
146
  padding: 5px 10px;
144
147
  line-height: 1.5;
145
148
  text-align: left;
@@ -157,7 +160,7 @@
157
160
  color: var(--input-maxlength-color);
158
161
  }
159
162
  .bk-input {
160
- display: flex;
163
+ display: inline-flex;
161
164
  align-items: stretch;
162
165
  width: 100%;
163
166
  height: var(--input-height-base);
@@ -33,7 +33,7 @@
33
33
  vertical-align: middle;
34
34
  }
35
35
  .bk-loading-wrapper:not(.bk-nested-loading) {
36
- display: inline-block;
36
+ display: inline-flex;
37
37
  }
38
38
  .bk-loading-wrapper.bk-nested-loading {
39
39
  position: relative;
@@ -52,7 +52,7 @@
52
52
  transform: translate(-50%, -50%);
53
53
  }
54
54
  .bk-loading-wrapper .dot {
55
- display: inline-block;
55
+ display: inline-flex;
56
56
  width: 14px;
57
57
  height: 14px;
58
58
  margin-right: 10px;
@@ -195,7 +195,8 @@
195
195
  }
196
196
  .bk-loading-wrapper .bk-loading-indicator .bk-spin-indicator {
197
197
  position: relative;
198
- display: inline-block;
198
+ display: inline-flex;
199
+ justify-content: center;
199
200
  width: 40px;
200
201
  height: 40px;
201
202
  }
@@ -58,7 +58,7 @@
58
58
  font-size: 0;
59
59
  vertical-align: middle;
60
60
  &:not(.@{bk-prefix}-nested-loading) {
61
- display: inline-block;
61
+ display: inline-flex;
62
62
  }
63
63
 
64
64
  &.@{bk-prefix}-nested-loading {
@@ -81,7 +81,7 @@
81
81
  }
82
82
 
83
83
  .dot {
84
- display: inline-block;
84
+ display: inline-flex;
85
85
  width: @dotSize;
86
86
  height: @dotSize;
87
87
  margin-right: @dotGap;
@@ -152,7 +152,8 @@
152
152
 
153
153
  .@{bk-prefix}-spin-indicator {
154
154
  position: relative;
155
- display: inline-block;
155
+ display: inline-flex;
156
+ justify-content: center;
156
157
  width: 2 * @ovalGap;
157
158
  height: 2 * @ovalGap;
158
159
  }
@@ -132,7 +132,7 @@
132
132
  vertical-align: middle;
133
133
  }
134
134
  .bk-loading-wrapper:not(.bk-nested-loading) {
135
- display: inline-block;
135
+ display: inline-flex;
136
136
  }
137
137
  .bk-loading-wrapper.bk-nested-loading {
138
138
  position: relative;
@@ -151,7 +151,7 @@
151
151
  transform: translate(-50%, -50%);
152
152
  }
153
153
  .bk-loading-wrapper .dot {
154
- display: inline-block;
154
+ display: inline-flex;
155
155
  width: 14px;
156
156
  height: 14px;
157
157
  margin-right: 10px;
@@ -294,7 +294,8 @@
294
294
  }
295
295
  .bk-loading-wrapper .bk-loading-indicator .bk-spin-indicator {
296
296
  position: relative;
297
- display: inline-block;
297
+ display: inline-flex;
298
+ justify-content: center;
298
299
  width: 40px;
299
300
  height: 40px;
300
301
  }