bkui-vue 2.0.1-beta.72 → 2.0.1-beta.73

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.
@@ -674,7 +674,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
674
674
  * IN THE SOFTWARE.
675
675
  */
676
676
 
677
- var INPUT_MIN_WIDTH = 12;
677
+ var INPUT_MIN_WIDTH = 10;
678
678
  function common_useDebouncedRef(value) {
679
679
  var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;
680
680
  var timeout;
package/lib/index.js CHANGED
@@ -4,5 +4,5 @@ export { default } from './preset';
4
4
  export * from './config-provider';
5
5
  export * from './directives';
6
6
  export * as plugins from './plugins';
7
- export const version = "2.0.1-beta.72";
7
+ export const version = "2.0.1-beta.73";
8
8
  window.__bkui_vue_version__ = version;
@@ -32,8 +32,8 @@ declare const BkModal: {
32
32
  } & {
33
33
  default: boolean;
34
34
  };
35
- transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
36
- default: string | boolean | (() => HTMLElement);
35
+ transfer: import("vue-types").VueTypeDef<string | boolean> & {
36
+ default: string | boolean;
37
37
  };
38
38
  zIndex: import("vue-types").VueTypeDef<string | number>;
39
39
  animateType: import("vue-types").VueTypeValidableDef<string> & {
@@ -98,8 +98,8 @@ declare const BkModal: {
98
98
  } & {
99
99
  default: boolean;
100
100
  };
101
- transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
102
- default: string | boolean | (() => HTMLElement);
101
+ transfer: import("vue-types").VueTypeDef<string | boolean> & {
102
+ default: string | boolean;
103
103
  };
104
104
  zIndex: import("vue-types").VueTypeDef<string | number>;
105
105
  animateType: import("vue-types").VueTypeValidableDef<string> & {
@@ -137,7 +137,7 @@ declare const BkModal: {
137
137
  left: string;
138
138
  top: string;
139
139
  isShow: boolean;
140
- transfer: string | boolean | HTMLElement;
140
+ transfer: string | boolean;
141
141
  backgroundColor: string;
142
142
  renderDirective: "show" | "if";
143
143
  fullscreen: boolean;
@@ -186,8 +186,8 @@ declare const BkModal: {
186
186
  } & {
187
187
  default: boolean;
188
188
  };
189
- transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
190
- default: string | boolean | (() => HTMLElement);
189
+ transfer: import("vue-types").VueTypeDef<string | boolean> & {
190
+ default: string | boolean;
191
191
  };
192
192
  zIndex: import("vue-types").VueTypeDef<string | number>;
193
193
  animateType: import("vue-types").VueTypeValidableDef<string> & {
@@ -225,7 +225,7 @@ declare const BkModal: {
225
225
  left: string;
226
226
  top: string;
227
227
  isShow: boolean;
228
- transfer: string | boolean | HTMLElement;
228
+ transfer: string | boolean;
229
229
  backgroundColor: string;
230
230
  renderDirective: "show" | "if";
231
231
  fullscreen: boolean;
@@ -271,8 +271,8 @@ declare const BkModal: {
271
271
  } & {
272
272
  default: boolean;
273
273
  };
274
- transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
275
- default: string | boolean | (() => HTMLElement);
274
+ transfer: import("vue-types").VueTypeDef<string | boolean> & {
275
+ default: string | boolean;
276
276
  };
277
277
  zIndex: import("vue-types").VueTypeDef<string | number>;
278
278
  animateType: import("vue-types").VueTypeValidableDef<string> & {
@@ -310,7 +310,7 @@ declare const BkModal: {
310
310
  left: string;
311
311
  top: string;
312
312
  isShow: boolean;
313
- transfer: string | boolean | HTMLElement;
313
+ transfer: string | boolean;
314
314
  backgroundColor: string;
315
315
  renderDirective: "show" | "if";
316
316
  fullscreen: boolean;
@@ -353,8 +353,8 @@ declare const BkModal: {
353
353
  } & {
354
354
  default: boolean;
355
355
  };
356
- transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
357
- default: string | boolean | (() => HTMLElement);
356
+ transfer: import("vue-types").VueTypeDef<string | boolean> & {
357
+ default: string | boolean;
358
358
  };
359
359
  zIndex: import("vue-types").VueTypeDef<string | number>;
360
360
  animateType: import("vue-types").VueTypeValidableDef<string> & {
@@ -88,7 +88,7 @@ function _defineProperty(obj, key, value) {
88
88
  ;// CONCATENATED MODULE: external "vue"
89
89
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
90
90
  var external_vue_y = x => () => x
91
- const external_vue_namespaceObject = external_vue_x({ ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["useAttrs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.useAttrs, ["useSlots"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.useSlots, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
91
+ const external_vue_namespaceObject = external_vue_x({ ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["useAttrs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.useAttrs, ["useSlots"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.useSlots, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
92
92
  ;// CONCATENATED MODULE: external "../config-provider"
93
93
  var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
94
94
  var config_provider_y = x => () => x
@@ -146,9 +146,8 @@ var useContentResize = function useContentResize(root, resizeTarget, props) {
146
146
  var footerMarginTop = 32;
147
147
  isContentScroll.value = windowInnerHeight < headerHeight + contentHeight + footerHeight + footerMarginTop;
148
148
  if (isContentScroll.value || props.fullscreen) {
149
- var fixedFooterHeight = 48;
150
149
  contentStyles.value = {
151
- height: "".concat(windowInnerHeight - headerHeight - fixedFooterHeight, "px"),
150
+ height: "".concat(windowInnerHeight - headerHeight - footerHeight, "px"),
152
151
  overflow: 'auto',
153
152
  'scrollbar-gutter': 'stable'
154
153
  };
@@ -163,7 +162,8 @@ var useContentResize = function useContentResize(root, resizeTarget, props) {
163
162
  }, function () {
164
163
  var observer;
165
164
  if (props.isShow) {
166
- (0,external_vue_namespaceObject.nextTick)(function () {
165
+ // 有动画效果导致 resizeTarget DOM 找不到
166
+ setTimeout(function () {
167
167
  if (!resizeTarget.value) {
168
168
  return;
169
169
  }
@@ -172,7 +172,7 @@ var useContentResize = function useContentResize(root, resizeTarget, props) {
172
172
  });
173
173
  observer.observe(resizeTarget.value);
174
174
  calcContentScroll();
175
- });
175
+ }, 100);
176
176
  } else {
177
177
  if (observer) {
178
178
  observer.disconnect();
@@ -309,7 +309,7 @@ var propsMixin = {
309
309
  // 是否允许点击遮罩关闭弹窗
310
310
  quickClose: shared_namespaceObject.PropTypes.bool.def(true),
311
311
  // 是否显示在body内(即与id#app同级
312
- transfer: shared_namespaceObject.PropTypes.oneOfType([Boolean, String, HTMLElement]).def(true),
312
+ transfer: shared_namespaceObject.PropTypes.oneOfType([Boolean, String]).def(true),
313
313
  // 弹出层z-index,实际显示的值会自动+1。为了抱证在遮罩上正常显示
314
314
  zIndex: shared_namespaceObject.PropTypes.oneOfType([String, Number]),
315
315
  // 动画类型
@@ -361,9 +361,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
361
361
 
362
362
 
363
363
 
364
- function _isSlot(s) {
365
- return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
366
- }
367
364
  /* harmony default export */ const modal = ((0,external_vue_namespaceObject.defineComponent)({
368
365
  name: 'Modal',
369
366
  props: _objectSpread({}, propsMixin),
@@ -390,15 +387,6 @@ function _isSlot(s) {
390
387
  top: props.top
391
388
  };
392
389
  });
393
- var teleportTo = (0,external_vue_namespaceObject.computed)(function () {
394
- if (props.transfer) {
395
- if (typeof props.transfer === 'boolean') {
396
- return 'body';
397
- }
398
- return props.transfer;
399
- }
400
- return '';
401
- });
402
390
  (0,external_vue_namespaceObject.watch)(function () {
403
391
  return props.isShow;
404
392
  }, function () {
@@ -497,48 +485,27 @@ function _isSlot(s) {
497
485
  "onClick": handleClose
498
486
  }, [(_slots$close = slots.close) === null || _slots$close === void 0 ? void 0 : _slots$close.call(slots)])]);
499
487
  };
500
- var renderModalContent = function renderModalContent() {
501
- return (0,external_vue_namespaceObject.createVNode)("div", (0,external_vue_namespaceObject.mergeProps)({
502
- "ref": rootRef
503
- }, attrs, {
504
- "class": [resolveClassName('modal'), props.extCls || '']
505
- }), [renderMask(), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, {
506
- "name": "modal-".concat(props.animateType)
507
- }, {
508
- "default": function _default() {
509
- return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
510
- "style": modalWrapperStyles.value,
511
- "class": resolveClassName('modal-wrapper')
512
- }, [renderContent()]), [[external_vue_namespaceObject.vShow, localShow.value]])];
513
- }
514
- })]);
515
- };
516
- // 判断传入的是不是css选择器或者HTMLElement
517
- var isValidTeleport = function isValidTeleport(selector) {
518
- try {
519
- if (typeof selector === 'boolean') {
520
- return selector;
521
- }
522
- if (typeof selector === 'string') {
523
- return document.querySelector(selector) !== null;
524
- }
525
- return selector instanceof HTMLElement;
526
- } catch (err) {
527
- return false;
488
+ return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Teleport, {
489
+ "disabled": !props.transfer,
490
+ "to": typeof props.transfer === 'string' && Boolean(props.transfer) ? props.transfer : 'body'
491
+ }, {
492
+ "default": function _default() {
493
+ return [(0,external_vue_namespaceObject.createVNode)("div", (0,external_vue_namespaceObject.mergeProps)({
494
+ "ref": rootRef
495
+ }, attrs, {
496
+ "class": [resolveClassName('modal'), props.extCls || '']
497
+ }), [renderMask(), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, {
498
+ "name": "modal-".concat(props.animateType)
499
+ }, {
500
+ "default": function _default() {
501
+ return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
502
+ "style": modalWrapperStyles.value,
503
+ "class": resolveClassName('modal-wrapper')
504
+ }, [renderContent()]), [[external_vue_namespaceObject.vShow, localShow.value]])];
505
+ }
506
+ })])];
528
507
  }
529
- };
530
- if (teleportTo.value === 'body' || isValidTeleport(props.transfer)) {
531
- var _slot;
532
- return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Teleport, {
533
- "disabled": !props.transfer,
534
- "to": teleportTo.value
535
- }, _isSlot(_slot = renderModalContent()) ? _slot : {
536
- "default": function _default() {
537
- return [_slot];
538
- }
539
- });
540
- }
541
- return renderModalContent();
508
+ });
542
509
  };
543
510
  }
544
511
  }));
@@ -33,8 +33,8 @@ declare const _default: import("vue").DefineComponent<{
33
33
  } & {
34
34
  default: boolean;
35
35
  };
36
- transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
37
- default: string | boolean | (() => HTMLElement);
36
+ transfer: import("vue-types").VueTypeDef<string | boolean> & {
37
+ default: string | boolean;
38
38
  };
39
39
  zIndex: import("vue-types").VueTypeDef<string | number>;
40
40
  animateType: import("vue-types").VueTypeValidableDef<string> & {
@@ -94,8 +94,8 @@ declare const _default: import("vue").DefineComponent<{
94
94
  } & {
95
95
  default: boolean;
96
96
  };
97
- transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
98
- default: string | boolean | (() => HTMLElement);
97
+ transfer: import("vue-types").VueTypeDef<string | boolean> & {
98
+ default: string | boolean;
99
99
  };
100
100
  zIndex: import("vue-types").VueTypeDef<string | number>;
101
101
  animateType: import("vue-types").VueTypeValidableDef<string> & {
@@ -133,7 +133,7 @@ declare const _default: import("vue").DefineComponent<{
133
133
  left: string;
134
134
  top: string;
135
135
  isShow: boolean;
136
- transfer: string | boolean | HTMLElement;
136
+ transfer: string | boolean;
137
137
  backgroundColor: string;
138
138
  renderDirective: "show" | "if";
139
139
  fullscreen: boolean;
@@ -30,8 +30,8 @@ export declare const propsMixin: {
30
30
  } & {
31
31
  default: boolean;
32
32
  };
33
- transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
34
- default: string | boolean | (() => HTMLElement);
33
+ transfer: import("vue-types").VueTypeDef<string | boolean> & {
34
+ default: string | boolean;
35
35
  };
36
36
  zIndex: import("vue-types").VueTypeDef<string | number>;
37
37
  animateType: import("vue-types").VueTypeValidableDef<string> & {
@@ -41,8 +41,8 @@ declare const BkSideslider: {
41
41
  } & {
42
42
  default: boolean;
43
43
  };
44
- transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
45
- default: string | boolean | (() => HTMLElement);
44
+ transfer: import("vue-types").VueTypeDef<string | boolean> & {
45
+ default: string | boolean;
46
46
  };
47
47
  zIndex: import("vue-types").VueTypeDef<string | number>;
48
48
  animateType: import("vue-types").VueTypeValidableDef<string> & {
@@ -118,8 +118,8 @@ declare const BkSideslider: {
118
118
  } & {
119
119
  default: boolean;
120
120
  };
121
- transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
122
- default: string | boolean | (() => HTMLElement);
121
+ transfer: import("vue-types").VueTypeDef<string | boolean> & {
122
+ default: string | boolean;
123
123
  };
124
124
  zIndex: import("vue-types").VueTypeDef<string | number>;
125
125
  animateType: import("vue-types").VueTypeValidableDef<string> & {
@@ -159,7 +159,7 @@ declare const BkSideslider: {
159
159
  left: string;
160
160
  top: string;
161
161
  isShow: boolean;
162
- transfer: string | boolean | HTMLElement;
162
+ transfer: string | boolean;
163
163
  direction: string;
164
164
  backgroundColor: string;
165
165
  renderDirective: "show" | "if";
@@ -219,8 +219,8 @@ declare const BkSideslider: {
219
219
  } & {
220
220
  default: boolean;
221
221
  };
222
- transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
223
- default: string | boolean | (() => HTMLElement);
222
+ transfer: import("vue-types").VueTypeDef<string | boolean> & {
223
+ default: string | boolean;
224
224
  };
225
225
  zIndex: import("vue-types").VueTypeDef<string | number>;
226
226
  animateType: import("vue-types").VueTypeValidableDef<string> & {
@@ -260,7 +260,7 @@ declare const BkSideslider: {
260
260
  left: string;
261
261
  top: string;
262
262
  isShow: boolean;
263
- transfer: string | boolean | HTMLElement;
263
+ transfer: string | boolean;
264
264
  direction: string;
265
265
  backgroundColor: string;
266
266
  renderDirective: "show" | "if";
@@ -317,8 +317,8 @@ declare const BkSideslider: {
317
317
  } & {
318
318
  default: boolean;
319
319
  };
320
- transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
321
- default: string | boolean | (() => HTMLElement);
320
+ transfer: import("vue-types").VueTypeDef<string | boolean> & {
321
+ default: string | boolean;
322
322
  };
323
323
  zIndex: import("vue-types").VueTypeDef<string | number>;
324
324
  animateType: import("vue-types").VueTypeValidableDef<string> & {
@@ -358,7 +358,7 @@ declare const BkSideslider: {
358
358
  left: string;
359
359
  top: string;
360
360
  isShow: boolean;
361
- transfer: string | boolean | HTMLElement;
361
+ transfer: string | boolean;
362
362
  direction: string;
363
363
  backgroundColor: string;
364
364
  renderDirective: "show" | "if";
@@ -40,8 +40,8 @@ declare const _default: import("vue").DefineComponent<{
40
40
  } & {
41
41
  default: boolean;
42
42
  };
43
- transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
44
- default: string | boolean | (() => HTMLElement);
43
+ transfer: import("vue-types").VueTypeDef<string | boolean> & {
44
+ default: string | boolean;
45
45
  };
46
46
  zIndex: import("vue-types").VueTypeDef<string | number>;
47
47
  animateType: import("vue-types").VueTypeValidableDef<string> & {
@@ -111,8 +111,8 @@ declare const _default: import("vue").DefineComponent<{
111
111
  } & {
112
112
  default: boolean;
113
113
  };
114
- transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
115
- default: string | boolean | (() => HTMLElement);
114
+ transfer: import("vue-types").VueTypeDef<string | boolean> & {
115
+ default: string | boolean;
116
116
  };
117
117
  zIndex: import("vue-types").VueTypeDef<string | number>;
118
118
  animateType: import("vue-types").VueTypeValidableDef<string> & {
@@ -152,7 +152,7 @@ declare const _default: import("vue").DefineComponent<{
152
152
  left: string;
153
153
  top: string;
154
154
  isShow: boolean;
155
- transfer: string | boolean | HTMLElement;
155
+ transfer: string | boolean;
156
156
  direction: string;
157
157
  backgroundColor: string;
158
158
  renderDirective: "show" | "if";
@@ -124,12 +124,12 @@ export type Field = {
124
124
  export type LabelFunctionString = ((_column: any, _index: any) => JSX.Element | boolean | number | string) | boolean | number | string;
125
125
  export declare const LabelFunctionStringType: import("vue-types").VueTypeDef<LabelFunctionString>;
126
126
  export type HeadRenderArgs = {
127
- cell?: unknown;
128
- data?: unknown;
129
- row?: Record<string, unknown>;
127
+ cell?: any;
128
+ data?: any;
129
+ row?: Record<string, any>;
130
130
  column?: Column;
131
131
  index?: number;
132
- rows?: Record<string, unknown>[];
132
+ rows?: Record<string, any>[];
133
133
  };
134
134
  export type RenderFunctionString = (args: HeadRenderArgs) => JSX.Element | boolean | number | string;
135
135
  export declare const RenderFunctionStringType: import("vue-types").VueTypeDef<RenderFunctionString>;
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
2
  import type { TagProps } from './tag-props';
3
- export declare const INPUT_MIN_WIDTH = 12;
3
+ export declare const INPUT_MIN_WIDTH = 10;
4
4
  export declare function useDebouncedRef<T>(value: any, delay?: number): Ref<T>;
5
5
  export declare function usePage(pageSize: Ref<number>): {
6
6
  pageState: {
@@ -297,6 +297,7 @@ declare const TagInput: {
297
297
  bkTagSelectorRef: import("vue").Ref<any>;
298
298
  tagListRef: import("vue").Ref<any>;
299
299
  tagInputItemRef: import("vue").Ref<any>;
300
+ inputValueRef: import("vue").Ref<HTMLElement>;
300
301
  selectorListRef: import("vue").Ref<any>;
301
302
  triggerClass: import("vue").ComputedRef<{
302
303
  [x: string]: boolean;
@@ -964,6 +965,7 @@ declare const TagInput: {
964
965
  bkTagSelectorRef: import("vue").Ref<any>;
965
966
  tagListRef: import("vue").Ref<any>;
966
967
  tagInputItemRef: import("vue").Ref<any>;
968
+ inputValueRef: import("vue").Ref<HTMLElement>;
967
969
  selectorListRef: import("vue").Ref<any>;
968
970
  triggerClass: import("vue").ComputedRef<{
969
971
  [x: string]: boolean;
@@ -1341,6 +1343,7 @@ declare const TagInput: {
1341
1343
  bkTagSelectorRef: import("vue").Ref<any>;
1342
1344
  tagListRef: import("vue").Ref<any>;
1343
1345
  tagInputItemRef: import("vue").Ref<any>;
1346
+ inputValueRef: import("vue").Ref<HTMLElement>;
1344
1347
  selectorListRef: import("vue").Ref<any>;
1345
1348
  triggerClass: import("vue").ComputedRef<{
1346
1349
  [x: string]: boolean;
@@ -17509,7 +17509,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
17509
17509
  * IN THE SOFTWARE.
17510
17510
  */
17511
17511
 
17512
- var INPUT_MIN_WIDTH = 12;
17512
+ var INPUT_MIN_WIDTH = 10;
17513
17513
  function useDebouncedRef(value) {
17514
17514
  var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;
17515
17515
  var timeout;
@@ -18004,6 +18004,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
18004
18004
  var tagListRef = (0,external_vue_namespaceObject.ref)(null);
18005
18005
  var tagInputItemRef = (0,external_vue_namespaceObject.ref)(null);
18006
18006
  var selectorListRef = (0,external_vue_namespaceObject.ref)(null);
18007
+ var inputValueRef = (0,external_vue_namespaceObject.ref)();
18007
18008
  var timer = (0,external_vue_namespaceObject.ref)(null);
18008
18009
  // 是否展示tag close
18009
18010
  var showTagClose = (0,external_vue_namespaceObject.computed)(function () {
@@ -18323,12 +18324,12 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
18323
18324
  var charLen = getCharLength(value);
18324
18325
  if (charLen) {
18325
18326
  filterData(value);
18326
- // 如果按最小宽度计算,空白区域会比较大,这里先按一半宽度处理
18327
- tagInputRef.value.style.width = "".concat(charLen * (INPUT_MIN_WIDTH / 2), "px");
18327
+ (0,external_vue_namespaceObject.nextTick)(function () {
18328
+ tagInputRef.value.style.width = "".concat(inputValueRef.value.getBoundingClientRect().width, "px");
18329
+ });
18328
18330
  } else {
18329
18331
  if (trigger === 'focus') {
18330
18332
  filterData();
18331
- tagInputRef.value.style.width = "".concat(INPUT_MIN_WIDTH, "px");
18332
18333
  }
18333
18334
  }
18334
18335
  } else {
@@ -18773,6 +18774,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
18773
18774
  bkTagSelectorRef: bkTagSelectorRef,
18774
18775
  tagListRef: tagListRef,
18775
18776
  tagInputItemRef: tagInputItemRef,
18777
+ inputValueRef: inputValueRef,
18776
18778
  selectorListRef: selectorListRef,
18777
18779
  triggerClass: triggerClass,
18778
18780
  overflowTagIndex: overflowTagIndex,
@@ -18849,6 +18851,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
18849
18851
  "onUpdate:modelValue": function onUpdateModelValue($event) {
18850
18852
  return _this.curInputValue = $event;
18851
18853
  },
18854
+ "spellcheck": "false",
18852
18855
  "type": "text",
18853
18856
  "onBlur": _this.handleBlur,
18854
18857
  "onFocus": _this.handleFocus,
@@ -18861,7 +18864,11 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
18861
18864
  "class": "tag"
18862
18865
  }, [(0,external_vue_namespaceObject.createVNode)("span", {
18863
18866
  "class": "text"
18864
- }, [(0,external_vue_namespaceObject.createTextVNode)("+"), _this.selectedTagList.length - _this.overflowTagIndex])])]), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), _this.collapseTooltip.join(', ')]])]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("p", {
18867
+ }, [(0,external_vue_namespaceObject.createTextVNode)("+"), _this.selectedTagList.length - _this.overflowTagIndex])])]), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), _this.collapseTooltip.join(', ')]]), (0,external_vue_namespaceObject.createVNode)("div", {
18868
+ "key": "inputValuePlaceholder",
18869
+ "ref": "inputValueRef",
18870
+ "style": "position: absolute; white-space: nowrap; border-box; visibility: hidden; z-index: 1"
18871
+ }, [_this.curInputValue])]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("p", {
18865
18872
  "class": "placeholder"
18866
18873
  }, [_this.placeholderText]), [[external_vue_namespaceObject.vShow, _this.isShowPlaceholder]]), (_this$$slots$suffix = (_this$$slots = _this.$slots) === null || _this$$slots === void 0 || (_this$$slots$suffix2 = _this$$slots.suffix) === null || _this$$slots$suffix2 === void 0 ? void 0 : _this$$slots$suffix2.call(_this$$slots)) !== null && _this$$slots$suffix !== void 0 ? _this$$slots$suffix : _this.isShowClear && (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, {
18867
18874
  "class": "clear-icon",
@@ -135,6 +135,8 @@
135
135
  .bk-tag-input .bk-tag-input-trigger {
136
136
  position: relative;
137
137
  display: flex;
138
+ align-items: center;
139
+ justify-content: space-between;
138
140
  min-height: 32px;
139
141
  padding: 0 0 0 5px;
140
142
  overflow: hidden;
@@ -143,8 +145,6 @@
143
145
  background: var(--white-color);
144
146
  border: 1px solid var(--light-gray);
145
147
  border-radius: 2px;
146
- align-items: center;
147
- justify-content: space-between;
148
148
  }
149
149
  .bk-tag-input .bk-tag-input-trigger.active {
150
150
  border-color: var(--primary-color);
@@ -156,22 +156,22 @@
156
156
  }
157
157
  .bk-tag-input .bk-tag-input-trigger .tag-list {
158
158
  display: inline-flex;
159
+ flex-wrap: wrap;
160
+ align-items: center;
159
161
  max-height: 135px;
160
162
  padding: 0;
161
163
  margin: 0;
162
164
  overflow: auto;
163
- align-items: center;
164
- flex-wrap: wrap;
165
165
  }
166
166
  .bk-tag-input .bk-tag-input-trigger .tag-list > li {
167
167
  display: inline-flex;
168
+ align-items: center;
168
169
  height: 22px;
169
170
  margin: 4px 5px 4px 0;
170
171
  overflow: hidden;
171
172
  font-size: 12px;
172
173
  border: solid 1px transparent;
173
174
  border-radius: 2px;
174
- align-items: center;
175
175
  }
176
176
  .bk-tag-input .bk-tag-input-trigger .tag-list > li.tag-item {
177
177
  background: #f0f1f5;
@@ -184,32 +184,32 @@
184
184
  line-height: 0;
185
185
  }
186
186
  .bk-tag-input .bk-tag-input-trigger .tag-list .tag {
187
+ flex: 1;
187
188
  max-width: 190px;
188
189
  overflow: hidden;
189
190
  text-overflow: ellipsis;
190
191
  word-break: break-all;
191
192
  white-space: nowrap;
192
- flex: 1;
193
193
  }
194
194
  .bk-tag-input .bk-tag-input-trigger .tag-list .text {
195
+ box-sizing: border-box;
195
196
  padding: 0 5px;
196
197
  line-height: 20px;
197
198
  color: var(--default-color);
198
199
  background-color: #f0f1f5;
199
200
  border-radius: 2px;
200
- box-sizing: border-box;
201
201
  }
202
202
  .bk-tag-input .bk-tag-input-trigger .tag-list .text:hover {
203
203
  background-color: #dcdee5;
204
204
  }
205
205
  .bk-tag-input .bk-tag-input-trigger .tag-list .tag-input {
206
+ box-sizing: border-box;
206
207
  width: 10px;
207
- height: 22px;
208
208
  max-width: 295px;
209
+ height: 22px;
209
210
  padding: 0;
210
211
  border: 0;
211
212
  outline: none;
212
- box-sizing: border-box;
213
213
  }
214
214
  .bk-tag-input .bk-tag-input-trigger .placeholder {
215
215
  position: absolute;
@@ -274,13 +274,7 @@ declare const _default: import("vue").DefineComponent<{
274
274
  default: boolean;
275
275
  };
276
276
  tagOverflowTips: {
277
- type: import("vue").PropType<Partial<import("../directives/tooltips").IOptions>>; /**
278
- * 不显示条件:
279
- * 1. 设置不可清除
280
- * 2. 禁用时
281
- * 3. tag标签为空时
282
- * 4. 设置了showClearOnlyHover,且没有hover的时候
283
- */
277
+ type: import("vue").PropType<Partial<import("../directives/tooltips").IOptions>>;
284
278
  default: () => {};
285
279
  };
286
280
  }, {
@@ -294,6 +288,7 @@ declare const _default: import("vue").DefineComponent<{
294
288
  bkTagSelectorRef: Ref<any>;
295
289
  tagListRef: Ref<any>;
296
290
  tagInputItemRef: Ref<any>;
291
+ inputValueRef: Ref<HTMLElement>;
297
292
  selectorListRef: Ref<any>;
298
293
  triggerClass: import("vue").ComputedRef<{
299
294
  [x: string]: boolean;
@@ -614,13 +609,7 @@ declare const _default: import("vue").DefineComponent<{
614
609
  default: boolean;
615
610
  };
616
611
  tagOverflowTips: {
617
- type: import("vue").PropType<Partial<import("../directives/tooltips").IOptions>>; /**
618
- * 不显示条件:
619
- * 1. 设置不可清除
620
- * 2. 禁用时
621
- * 3. tag标签为空时
622
- * 4. 设置了showClearOnlyHover,且没有hover的时候
623
- */
612
+ type: import("vue").PropType<Partial<import("../directives/tooltips").IOptions>>;
624
613
  default: () => {};
625
614
  };
626
615
  }>> & {