bkui-vue 0.0.2-beta.117 → 0.0.2-beta.119

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.
@@ -145,6 +145,7 @@ declare const _default: import("vue").DefineComponent<{
145
145
  handleBlur: (e: any) => void;
146
146
  handleKeydown: (e: KeyboardEvent) => void;
147
147
  handleInputChange: (e: any) => void;
148
+ handleInputInput: (e: any) => void;
148
149
  handleClear: () => void;
149
150
  onPick: (_dates: any, visible: boolean, type: any, shortcut: any) => void;
150
151
  onPickSuccess: () => void;
@@ -170,6 +171,7 @@ declare const _default: import("vue").DefineComponent<{
170
171
  timeEnterMode: import("vue").Ref<boolean>;
171
172
  shortcut: import("vue").Ref<any>;
172
173
  onSelectionModeChange: import("vue").Ref<(_type: any) => SelectionModeType>;
174
+ tmpValue: import("vue").Ref<any>;
173
175
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "input" | "clear" | "update:modelValue" | "pick-success" | "pick-first" | "open-change" | "shortcut-change")[], "change" | "input" | "clear" | "update:modelValue" | "pick-success" | "pick-first" | "open-change" | "shortcut-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
174
176
  readonly type: {
175
177
  readonly type: import("vue").PropType<import("./interface").PickerTypeType>;
@@ -261,6 +261,7 @@ declare const BkDatePicker: {
261
261
  handleBlur: (e: any) => void;
262
262
  handleKeydown: (e: KeyboardEvent) => void;
263
263
  handleInputChange: (e: any) => void;
264
+ handleInputInput: (e: any) => void;
264
265
  handleClear: () => void;
265
266
  onPick: (_dates: any, visible: boolean, type: any, shortcut: any) => void;
266
267
  onPickSuccess: () => void;
@@ -286,6 +287,7 @@ declare const BkDatePicker: {
286
287
  timeEnterMode: import("vue").Ref<boolean>;
287
288
  shortcut: import("vue").Ref<any>;
288
289
  onSelectionModeChange: import("vue").Ref<(_type: any) => import("./interface").SelectionModeType>;
290
+ tmpValue: import("vue").Ref<any>;
289
291
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "input" | "clear" | "update:modelValue" | "pick-success" | "pick-first" | "open-change" | "shortcut-change")[], string, {
290
292
  readonly type: import("./interface").PickerTypeType;
291
293
  readonly disabled: boolean;
@@ -495,6 +497,7 @@ declare const BkDatePicker: {
495
497
  handleBlur: (e: any) => void;
496
498
  handleKeydown: (e: KeyboardEvent) => void;
497
499
  handleInputChange: (e: any) => void;
500
+ handleInputInput: (e: any) => void;
498
501
  handleClear: () => void;
499
502
  onPick: (_dates: any, visible: boolean, type: any, shortcut: any) => void;
500
503
  onPickSuccess: () => void;
@@ -520,6 +523,7 @@ declare const BkDatePicker: {
520
523
  timeEnterMode: import("vue").Ref<boolean>;
521
524
  shortcut: import("vue").Ref<any>;
522
525
  onSelectionModeChange: import("vue").Ref<(_type: any) => import("./interface").SelectionModeType>;
526
+ tmpValue: import("vue").Ref<any>;
523
527
  }> & {} & import("vue").ComponentCustomProperties & {};
524
528
  __isFragment?: never;
525
529
  __isTeleport?: never;
@@ -678,6 +682,7 @@ declare const BkDatePicker: {
678
682
  handleBlur: (e: any) => void;
679
683
  handleKeydown: (e: KeyboardEvent) => void;
680
684
  handleInputChange: (e: any) => void;
685
+ handleInputInput: (e: any) => void;
681
686
  handleClear: () => void;
682
687
  onPick: (_dates: any, visible: boolean, type: any, shortcut: any) => void;
683
688
  onPickSuccess: () => void;
@@ -703,6 +708,7 @@ declare const BkDatePicker: {
703
708
  timeEnterMode: import("vue").Ref<boolean>;
704
709
  shortcut: import("vue").Ref<any>;
705
710
  onSelectionModeChange: import("vue").Ref<(_type: any) => import("./interface").SelectionModeType>;
711
+ tmpValue: import("vue").Ref<any>;
706
712
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "input" | "clear" | "update:modelValue" | "pick-success" | "pick-first" | "open-change" | "shortcut-change")[], "change" | "input" | "clear" | "update:modelValue" | "pick-success" | "pick-first" | "open-change" | "shortcut-change", {
707
713
  readonly type: import("./interface").PickerTypeType;
708
714
  readonly disabled: boolean;
@@ -2303,20 +2303,22 @@ var timeParts = ['hours', 'minutes', 'seconds'];
2303
2303
  var bindFunction = function bindFunction(type) {
2304
2304
  var domRef = getDomRef(type);
2305
2305
  domRef.addEventListener('wheel', (0,debounce_namespaceObject["default"])(function () {
2306
+ // handleWheel(type);
2306
2307
  if (wheelStart.value === true) {
2307
2308
  // console.log('滚动了');
2308
2309
  wheelStart.value = false;
2309
2310
  wheelEnd.value = true;
2310
2311
  // 这里写开始滚动时调用的方法
2311
- handleWheel(type);
2312
2312
  wheelTimer.value = setTimeout(function () {
2313
+ handleWheel(type);
2313
2314
  stopWheel(domRef);
2314
- }, 400);
2315
+ }, 200);
2315
2316
  } else {
2316
- clearTimeout(wheelTimer);
2317
+ clearTimeout(wheelTimer.value);
2317
2318
  wheelTimer.value = setTimeout(function () {
2319
+ handleWheel(type);
2318
2320
  stopWheel(domRef);
2319
- }, 400);
2321
+ }, 300);
2320
2322
  }
2321
2323
  }, 32), {
2322
2324
  passive: true
@@ -4185,7 +4187,9 @@ function date_picker_objectSpread(target) { for (var i = 1; i < arguments.length
4185
4187
  internalFocus: false,
4186
4188
  timeEnterMode: true,
4187
4189
  shortcut: shortcut,
4188
- onSelectionModeChange: onSelectionModeChange
4190
+ onSelectionModeChange: onSelectionModeChange,
4191
+ // for 编辑时,mouseleave 事件中缓存的 value
4192
+ tmpValue: initialValue
4189
4193
  });
4190
4194
  onSelectionModeChange(props.type);
4191
4195
  function onSelectionModeChange(_type) {
@@ -4339,6 +4343,11 @@ function date_picker_objectSpread(target) { for (var i = 1; i < arguments.length
4339
4343
  emit('input', now);
4340
4344
  }
4341
4345
  });
4346
+ (0,external_vue_namespaceObject.watch)(function () {
4347
+ return state.internalValue;
4348
+ }, function (v) {
4349
+ state.tmpValue = v;
4350
+ });
4342
4351
  (0,external_vue_namespaceObject.onMounted)(function () {
4343
4352
  // 如果是 date-picker 那么 time-picker 就是回车模式
4344
4353
  if (props.type.indexOf('date') > -1) {
@@ -4407,6 +4416,7 @@ function date_picker_objectSpread(target) { for (var i = 1; i < arguments.length
4407
4416
  // return;
4408
4417
  // }
4409
4418
  state.showClose = false;
4419
+ state.internalValue = state.tmpValue;
4410
4420
  };
4411
4421
  var emitChange = function emitChange(type) {
4412
4422
  (0,external_vue_namespaceObject.nextTick)(function () {
@@ -4439,6 +4449,21 @@ function date_picker_objectSpread(target) { for (var i = 1; i < arguments.length
4439
4449
  state.forceInputRerender = state.forceInputRerender + 1;
4440
4450
  }
4441
4451
  };
4452
+ var handleInputInput = function handleInputInput(e) {
4453
+ var _props$disabledDate2;
4454
+ var isArrayValue = props.type.includes('range') || props.multiple;
4455
+ var oldValue = visualValue.value;
4456
+ var newValue = e.target.value;
4457
+ var newDate = parseDate(newValue, props.type, props.multiple, props.format);
4458
+ var valueToTest = isArrayValue ? newDate : newDate[0];
4459
+ var isDisabled = (_props$disabledDate2 = props.disabledDate) === null || _props$disabledDate2 === void 0 ? void 0 : _props$disabledDate2.call(props, valueToTest);
4460
+ var isValidDate = newDate.reduce(function (valid, date) {
4461
+ return valid && date instanceof Date;
4462
+ }, true);
4463
+ if (newValue !== oldValue && !isDisabled && isValidDate) {
4464
+ state.tmpValue = newDate;
4465
+ }
4466
+ };
4442
4467
  var handleFocus = function handleFocus(e) {
4443
4468
  if (props.readonly) {
4444
4469
  return;
@@ -4642,6 +4667,7 @@ function date_picker_objectSpread(target) { for (var i = 1; i < arguments.length
4642
4667
  handleBlur: handleBlur,
4643
4668
  handleKeydown: handleKeydown,
4644
4669
  handleInputChange: handleInputChange,
4670
+ handleInputInput: handleInputInput,
4645
4671
  handleClear: handleClear,
4646
4672
  onPick: onPick,
4647
4673
  onPickSuccess: onPickSuccess,
@@ -4721,7 +4747,8 @@ function date_picker_objectSpread(target) { for (var i = 1; i < arguments.length
4721
4747
  "onClick": this.handleFocus,
4722
4748
  "onBlur": this.handleBlur,
4723
4749
  "onKeydown": this.handleKeydown,
4724
- "onChange": this.handleInputChange
4750
+ "onChange": this.handleInputChange,
4751
+ "onInput": this.handleInputInput
4725
4752
  }, null), this.clearable && this.showClose ? (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Close, {
4726
4753
  "onClick": this.handleClear,
4727
4754
  "class": "clear-action"
@@ -4901,7 +4928,9 @@ function time_picker_objectSpread(target) { for (var i = 1; i < arguments.length
4901
4928
  internalFocus: false,
4902
4929
  timeEnterMode: true,
4903
4930
  shortcut: shortcut,
4904
- onSelectionModeChange: onSelectionModeChange
4931
+ onSelectionModeChange: onSelectionModeChange,
4932
+ // for 编辑时,mouseleave 事件中缓存的 value
4933
+ tmpValue: initialValue
4905
4934
  });
4906
4935
  function onSelectionModeChange(_type) {
4907
4936
  var type = _type;
@@ -5055,6 +5084,11 @@ function time_picker_objectSpread(target) { for (var i = 1; i < arguments.length
5055
5084
  emit('input', now);
5056
5085
  }
5057
5086
  });
5087
+ (0,external_vue_namespaceObject.watch)(function () {
5088
+ return state.internalValue;
5089
+ }, function (v) {
5090
+ state.tmpValue = v;
5091
+ });
5058
5092
  (0,external_vue_namespaceObject.onMounted)(function () {
5059
5093
  // 如果是 date-picker 那么 time-picker 就是回车模式
5060
5094
  if (props.type.indexOf('date') > -1) {
@@ -5123,6 +5157,7 @@ function time_picker_objectSpread(target) { for (var i = 1; i < arguments.length
5123
5157
  // return;
5124
5158
  // }
5125
5159
  state.showClose = false;
5160
+ state.internalValue = state.tmpValue;
5126
5161
  };
5127
5162
  var emitChange = function emitChange(type) {
5128
5163
  (0,external_vue_namespaceObject.nextTick)(function () {
@@ -5155,6 +5190,21 @@ function time_picker_objectSpread(target) { for (var i = 1; i < arguments.length
5155
5190
  state.forceInputRerender = state.forceInputRerender + 1;
5156
5191
  }
5157
5192
  };
5193
+ var handleInputInput = function handleInputInput(e) {
5194
+ var _props$disabledDate2;
5195
+ var isArrayValue = props.type.includes('range') || props.multiple;
5196
+ var oldValue = visualValue.value;
5197
+ var newValue = e.target.value;
5198
+ var newDate = parseDate(newValue, props.type, props.multiple, props.format);
5199
+ var valueToTest = isArrayValue ? newDate : newDate[0];
5200
+ var isDisabled = (_props$disabledDate2 = props.disabledDate) === null || _props$disabledDate2 === void 0 ? void 0 : _props$disabledDate2.call(props, valueToTest);
5201
+ var isValidDate = newDate.reduce(function (valid, date) {
5202
+ return valid && date instanceof Date;
5203
+ }, true);
5204
+ if (newValue !== oldValue && !isDisabled && isValidDate) {
5205
+ state.tmpValue = newDate;
5206
+ }
5207
+ };
5158
5208
  var handleFocus = function handleFocus(e) {
5159
5209
  if (props.readonly) {
5160
5210
  return;
@@ -5356,6 +5406,7 @@ function time_picker_objectSpread(target) { for (var i = 1; i < arguments.length
5356
5406
  handleBlur: handleBlur,
5357
5407
  handleKeydown: handleKeydown,
5358
5408
  handleInputChange: handleInputChange,
5409
+ handleInputInput: handleInputInput,
5359
5410
  handleClear: handleClear,
5360
5411
  handleTransferClick: handleTransferClick,
5361
5412
  onPick: onPick,
@@ -5434,7 +5485,8 @@ function time_picker_objectSpread(target) { for (var i = 1; i < arguments.length
5434
5485
  "onClick": this.handleFocus,
5435
5486
  "onBlur": this.handleBlur,
5436
5487
  "onKeydown": this.handleKeydown,
5437
- "onChange": this.handleInputChange
5488
+ "onChange": this.handleInputChange,
5489
+ "onInput": this.handleInputInput
5438
5490
  }, null), this.clearable && this.showClose ? (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Close, {
5439
5491
  "onClick": this.handleClear,
5440
5492
  "class": "clear-action"
@@ -173,6 +173,7 @@ declare const _default: import("vue").DefineComponent<{
173
173
  handleBlur: (e: any) => void;
174
174
  handleKeydown: (e: KeyboardEvent) => void;
175
175
  handleInputChange: (e: any) => void;
176
+ handleInputInput: (e: any) => void;
176
177
  handleClear: () => void;
177
178
  handleTransferClick: () => void;
178
179
  onPick: (_dates: any, visible: boolean, type: any, shortcut: any) => void;
@@ -197,6 +198,7 @@ declare const _default: import("vue").DefineComponent<{
197
198
  timeEnterMode: import("vue").Ref<boolean>;
198
199
  shortcut: import("vue").Ref<any>;
199
200
  onSelectionModeChange: import("vue").Ref<(_type: any) => SelectionModeType>;
201
+ tmpValue: import("vue").Ref<any>;
200
202
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "input" | "clear" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change")[], "change" | "input" | "clear" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
201
203
  disabledHours: {
202
204
  readonly type: ArrayConstructor;
@@ -960,6 +960,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmit
960
960
  });
961
961
  var resizeObserver = new ResizeObserver(function () {
962
962
  onceInitSizeTextarea();
963
+ setOverflow();
963
964
  });
964
965
  (0,external_vue_namespaceObject.watch)(function () {
965
966
  return props.type;
@@ -990,12 +991,10 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmit
990
991
  (0,external_vue_namespaceObject.nextTick)(function () {
991
992
  return resizeTextarea();
992
993
  });
993
- // TODO: 值变化时实时检测是否溢出
994
- // isOverflow.value = detectOverflow();
994
+ setOverflow();
995
995
  });
996
-
997
996
  (0,external_vue_namespaceObject.onMounted)(function () {
998
- isOverflow.value = detectOverflow();
997
+ setOverflow();
999
998
  resizeObserver.observe(inputRef.value);
1000
999
  (0,external_vue_namespaceObject.nextTick)(function () {
1001
1000
  return resizeTextarea();
@@ -1013,12 +1012,19 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmit
1013
1012
  focus: function focus() {
1014
1013
  inputRef.value.focus();
1015
1014
  },
1015
+ blur: function blur() {
1016
+ inputRef.value.blur();
1017
+ isFocused.value = false;
1018
+ },
1016
1019
  clear: clear
1017
1020
  });
1018
1021
  function detectOverflow() {
1019
1022
  var _inputRef$value3, _inputRef$value4;
1020
1023
  return ((_inputRef$value3 = inputRef.value) === null || _inputRef$value3 === void 0 ? void 0 : _inputRef$value3.scrollWidth) > ((_inputRef$value4 = inputRef.value) === null || _inputRef$value4 === void 0 ? void 0 : _inputRef$value4.clientWidth) + 2;
1021
1024
  }
1025
+ function setOverflow() {
1026
+ isOverflow.value = detectOverflow();
1027
+ }
1022
1028
  function clear() {
1023
1029
  if (props.disabled) return;
1024
1030
  var resetVal = isNumberInput.value ? props.min : '';
@@ -1032,7 +1038,6 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmit
1032
1038
  }
1033
1039
  function handleBlur(e) {
1034
1040
  isFocused.value = false;
1035
- isOverflow.value = detectOverflow();
1036
1041
  ctx.emit(EVENTS.BLUR, e);
1037
1042
  if (props.withValidate) {
1038
1043
  var _formItem$validate2;
@@ -568,8 +568,10 @@ declare const BkSelect: {
568
568
  overflowTagIndex: import("vue").Ref<number>;
569
569
  value: any;
570
570
  inputRef: import("vue").Ref<HTMLElement>;
571
+ overflowContent: import("vue").ComputedRef<string>;
571
572
  handleRemoveTag: (val: string) => void;
572
573
  focus: () => void;
574
+ blur: () => void;
573
575
  handleInput: (e: any) => void;
574
576
  handleKeydown: (e: any) => void;
575
577
  resolveClassName: (cls: string) => string;
@@ -648,8 +650,10 @@ declare const BkSelect: {
648
650
  overflowTagIndex: import("vue").Ref<number>;
649
651
  value: any;
650
652
  inputRef: import("vue").Ref<HTMLElement>;
653
+ overflowContent: import("vue").ComputedRef<string>;
651
654
  handleRemoveTag: (val: string) => void;
652
655
  focus: () => void;
656
+ blur: () => void;
653
657
  handleInput: (e: any) => void;
654
658
  handleKeydown: (e: any) => void;
655
659
  resolveClassName: (cls: string) => string;
@@ -1335,8 +1339,10 @@ declare const BkSelect: {
1335
1339
  overflowTagIndex: import("vue").Ref<number>;
1336
1340
  value: any;
1337
1341
  inputRef: import("vue").Ref<HTMLElement>;
1342
+ overflowContent: import("vue").ComputedRef<string>;
1338
1343
  handleRemoveTag: (val: string) => void;
1339
1344
  focus: () => void;
1345
+ blur: () => void;
1340
1346
  handleInput: (e: any) => void;
1341
1347
  handleKeydown: (e: any) => void;
1342
1348
  resolveClassName: (cls: string) => string;
@@ -1415,8 +1421,10 @@ declare const BkSelect: {
1415
1421
  overflowTagIndex: import("vue").Ref<number>;
1416
1422
  value: any;
1417
1423
  inputRef: import("vue").Ref<HTMLElement>;
1424
+ overflowContent: import("vue").ComputedRef<string>;
1418
1425
  handleRemoveTag: (val: string) => void;
1419
1426
  focus: () => void;
1427
+ blur: () => void;
1420
1428
  handleInput: (e: any) => void;
1421
1429
  handleKeydown: (e: any) => void;
1422
1430
  resolveClassName: (cls: string) => string;
@@ -2047,8 +2055,10 @@ declare const BkSelect: {
2047
2055
  overflowTagIndex: import("vue").Ref<number>;
2048
2056
  value: any;
2049
2057
  inputRef: import("vue").Ref<HTMLElement>;
2058
+ overflowContent: import("vue").ComputedRef<string>;
2050
2059
  handleRemoveTag: (val: string) => void;
2051
2060
  focus: () => void;
2061
+ blur: () => void;
2052
2062
  handleInput: (e: any) => void;
2053
2063
  handleKeydown: (e: any) => void;
2054
2064
  resolveClassName: (cls: string) => string;
@@ -2127,8 +2137,10 @@ declare const BkSelect: {
2127
2137
  overflowTagIndex: import("vue").Ref<number>;
2128
2138
  value: any;
2129
2139
  inputRef: import("vue").Ref<HTMLElement>;
2140
+ overflowContent: import("vue").ComputedRef<string>;
2130
2141
  handleRemoveTag: (val: string) => void;
2131
2142
  focus: () => void;
2143
+ blur: () => void;
2132
2144
  handleInput: (e: any) => void;
2133
2145
  handleKeydown: (e: any) => void;
2134
2146
  resolveClassName: (cls: string) => string;
@@ -483,7 +483,7 @@ function _defineProperty(obj, key, value) {
483
483
  ;// CONCATENATED MODULE: external "vue"
484
484
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
485
485
  var external_vue_y = x => () => x
486
- const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["customRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.customRef, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["onBeforeMount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeMount, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vModelText"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vModelText, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
486
+ const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["customRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.customRef, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["onBeforeMount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeMount, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vModelText"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vModelText, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
487
487
  ;// CONCATENATED MODULE: external "lodash/isEqual"
488
488
  var isEqual_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
489
489
  var isEqual_y = x => () => x
@@ -1029,7 +1029,7 @@ const merge_namespaceObject = merge_x({ ["default"]: () => __WEBPACK_EXTERNAL_MO
1029
1029
  ;// CONCATENATED MODULE: external "../directives"
1030
1030
  var external_directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1031
1031
  var external_directives_y = x => () => x
1032
- const external_directives_namespaceObject = external_directives_x({ ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__.clickoutside });
1032
+ const external_directives_namespaceObject = external_directives_x({ ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__.bkTooltips, ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__.clickoutside });
1033
1033
  ;// CONCATENATED MODULE: external "../input"
1034
1034
  var external_input_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1035
1035
  var external_input_y = x => () => x
@@ -1088,8 +1088,12 @@ const external_tag_namespaceObject = external_tag_x({ ["default"]: () => __WEBPA
1088
1088
 
1089
1089
 
1090
1090
 
1091
+
1091
1092
  /* harmony default export */ const selectTagInput = ((0,external_vue_namespaceObject.defineComponent)({
1092
1093
  name: 'SelectTagInput',
1094
+ directives: {
1095
+ bkTooltips: external_directives_namespaceObject.bkTooltips
1096
+ },
1093
1097
  props: {
1094
1098
  selected: {
1095
1099
  type: Array,
@@ -1118,6 +1122,11 @@ const external_tag_namespaceObject = external_tag_x({ ["default"]: () => __WEBPA
1118
1122
  var value = (0,external_vue_namespaceObject.ref)(modelValue.value);
1119
1123
  var inputRef = (0,external_vue_namespaceObject.ref)();
1120
1124
  var overflowTagIndex = (0,external_vue_namespaceObject.ref)(null);
1125
+ var overflowContent = (0,external_vue_namespaceObject.computed)(function () {
1126
+ return selected.value.slice(overflowTagIndex.value, selected.value.length).map(function (item) {
1127
+ return item.label;
1128
+ }).join(', ');
1129
+ });
1121
1130
  (0,external_vue_namespaceObject.watch)(modelValue, function () {
1122
1131
  value.value = modelValue.value;
1123
1132
  });
@@ -1133,6 +1142,10 @@ const external_tag_namespaceObject = external_tag_x({ ["default"]: () => __WEBPA
1133
1142
  var _inputRef$value;
1134
1143
  (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.focus();
1135
1144
  };
1145
+ var blur = function blur() {
1146
+ var _inputRef$value2;
1147
+ (_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.blur();
1148
+ };
1136
1149
  var handleInput = function handleInput(e) {
1137
1150
  emit('update:modelValue', e.target.value);
1138
1151
  };
@@ -1198,8 +1211,10 @@ const external_tag_namespaceObject = external_tag_x({ ["default"]: () => __WEBPA
1198
1211
  overflowTagIndex: overflowTagIndex,
1199
1212
  value: value,
1200
1213
  inputRef: inputRef,
1214
+ overflowContent: overflowContent,
1201
1215
  handleRemoveTag: handleRemoveTag,
1202
1216
  focus: focus,
1217
+ blur: blur,
1203
1218
  handleInput: handleInput,
1204
1219
  handleKeydown: handleKeydown,
1205
1220
  resolveClassName: resolveClassName
@@ -1247,7 +1262,7 @@ const external_tag_namespaceObject = external_tag_x({ ["default"]: () => __WEBPA
1247
1262
  return [(_this$select = _this.select) === null || _this$select === void 0 ? void 0 : _this$select.handleGetLabelByValue(item.value)];
1248
1263
  }
1249
1264
  });
1250
- }), (0,external_vue_namespaceObject.createVNode)(external_tag_namespaceObject["default"], {
1265
+ }), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(external_tag_namespaceObject["default"], {
1251
1266
  "class": this.resolveClassName('select-overflow-tag'),
1252
1267
  "style": {
1253
1268
  display: !!this.overflowTagIndex && this.collapseTags ? '' : 'none'
@@ -1257,7 +1272,10 @@ const external_tag_namespaceObject = external_tag_x({ ["default"]: () => __WEBPA
1257
1272
  "default": function _default() {
1258
1273
  return [(0,external_vue_namespaceObject.createTextVNode)("+"), _this.selected.length - _this.overflowTagIndex];
1259
1274
  }
1260
- }), (0,external_vue_namespaceObject.createVNode)("input", {
1275
+ }), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), {
1276
+ content: this.overflowContent,
1277
+ disabled: !this.overflowTagIndex || !this.collapseTags
1278
+ }]]), (0,external_vue_namespaceObject.createVNode)("input", {
1261
1279
  "class": this.resolveClassName('select-tag-input'),
1262
1280
  "ref": "inputRef",
1263
1281
  "type": "text",
@@ -1362,7 +1380,7 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
1362
1380
  displayKey: external_shared_namespaceObject.PropTypes.string.def('label'),
1363
1381
  withValidate: external_shared_namespaceObject.PropTypes.bool.def(true),
1364
1382
  showSelectedIcon: external_shared_namespaceObject.PropTypes.bool.def(true),
1365
- inputSearch: external_shared_namespaceObject.PropTypes.bool.def(true),
1383
+ inputSearch: external_shared_namespaceObject.PropTypes.bool.def(false),
1366
1384
  enableVirtualRender: external_shared_namespaceObject.PropTypes.bool.def(false),
1367
1385
  allowEmptyValues: external_shared_namespaceObject.PropTypes.array.def([]),
1368
1386
  autoFocus: external_shared_namespaceObject.PropTypes.bool.def(false),
@@ -1614,6 +1632,7 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
1614
1632
  var handleBlur = function handleBlur() {
1615
1633
  if (!isFocus.value) return;
1616
1634
  isFocus.value = false;
1635
+ blurInput();
1617
1636
  emit('blur');
1618
1637
  };
1619
1638
  var _usePopover = usePopover({
@@ -1761,6 +1780,7 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
1761
1780
  }));
1762
1781
  emit('select', option.optionID);
1763
1782
  }
1783
+ focusInput();
1764
1784
  } else {
1765
1785
  // 单选
1766
1786
  selected.value = [{
@@ -1770,8 +1790,8 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
1770
1790
  emitChange(option.optionID);
1771
1791
  emit('select', option.optionID);
1772
1792
  hidePopover();
1793
+ handleBlur();
1773
1794
  }
1774
- focusInput();
1775
1795
  };
1776
1796
  // 聚焦输入框
1777
1797
  var focusInput = function focusInput() {
@@ -1790,6 +1810,18 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
1790
1810
  }
1791
1811
  }, 0);
1792
1812
  };
1813
+ // 失焦输入框
1814
+ var blurInput = function blurInput() {
1815
+ setTimeout(function () {
1816
+ if (multipleMode.value === 'tag') {
1817
+ var _selectTagInputRef$va2;
1818
+ (_selectTagInputRef$va2 = selectTagInputRef.value) === null || _selectTagInputRef$va2 === void 0 ? void 0 : _selectTagInputRef$va2.blur();
1819
+ } else {
1820
+ var _inputRef$value2;
1821
+ (_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.blur();
1822
+ }
1823
+ }, 0);
1824
+ };
1793
1825
  // 清空事件
1794
1826
  var handleClear = function handleClear(e) {
1795
1827
  e.stopPropagation();
@@ -435,6 +435,9 @@
435
435
  margin-right: 6px;
436
436
  pointer-events: none;
437
437
  }
438
+ .bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option .bk-select-checkbox .bk-checkbox-original {
439
+ opacity: 0;
440
+ }
438
441
  .bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option-item {
439
442
  overflow: hidden;
440
443
  text-overflow: ellipsis;
@@ -442,8 +442,10 @@ declare const _default: import("vue").DefineComponent<{
442
442
  overflowTagIndex: import("vue").Ref<number>;
443
443
  value: any;
444
444
  inputRef: import("vue").Ref<HTMLElement>;
445
+ overflowContent: import("vue").ComputedRef<string>;
445
446
  handleRemoveTag: (val: string) => void;
446
447
  focus: () => void;
448
+ blur: () => void;
447
449
  handleInput: (e: any) => void;
448
450
  handleKeydown: (e: any) => void;
449
451
  resolveClassName: (cls: string) => string;
@@ -522,8 +524,10 @@ declare const _default: import("vue").DefineComponent<{
522
524
  overflowTagIndex: import("vue").Ref<number>;
523
525
  value: any;
524
526
  inputRef: import("vue").Ref<HTMLElement>;
527
+ overflowContent: import("vue").ComputedRef<string>;
525
528
  handleRemoveTag: (val: string) => void;
526
529
  focus: () => void;
530
+ blur: () => void;
527
531
  handleInput: (e: any) => void;
528
532
  handleKeydown: (e: any) => void;
529
533
  resolveClassName: (cls: string) => string;
@@ -353,6 +353,9 @@
353
353
  .@{bk-prefix}-select-checkbox {
354
354
  margin-right: 6px;
355
355
  pointer-events: none;
356
+ .@{bk-prefix}-checkbox-original {
357
+ opacity: 0;
358
+ }
356
359
  }
357
360
 
358
361
  &-item {
@@ -804,6 +804,9 @@
804
804
  margin-right: 6px;
805
805
  pointer-events: none;
806
806
  }
807
+ .bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option .bk-select-checkbox .bk-checkbox-original {
808
+ opacity: 0;
809
+ }
807
810
  .bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option-item {
808
811
  overflow: hidden;
809
812
  text-overflow: ellipsis;
@@ -42,8 +42,10 @@ declare const _default: import("vue").DefineComponent<{
42
42
  overflowTagIndex: import("vue").Ref<number>;
43
43
  value: any;
44
44
  inputRef: import("vue").Ref<HTMLElement>;
45
+ overflowContent: import("vue").ComputedRef<string>;
45
46
  handleRemoveTag: (val: string) => void;
46
47
  focus: () => void;
48
+ blur: () => void;
47
49
  handleInput: (e: any) => void;
48
50
  handleKeydown: (e: any) => void;
49
51
  resolveClassName: (cls: string) => string;
@@ -237,9 +237,11 @@
237
237
  .bk-steps .bk-step:last-child .bk-step-title::after {
238
238
  display: none;
239
239
  }
240
- .bk-steps .bk-step.done .bk-step-title,
240
+ .bk-steps .bk-step.done .bk-step-title {
241
+ color: var(--default-color);
242
+ }
241
243
  .bk-steps .bk-step.done .bk-step-description {
242
- color: #9EA2AB;
244
+ color: #979ba5;
243
245
  }
244
246
  .bk-steps .bk-step.done .bk-steps-icon {
245
247
  margin-bottom: 3px;
@@ -393,6 +395,10 @@
393
395
  background-size: 1px 6px;
394
396
  content: '';
395
397
  }
398
+ .bk-steps-vertical .bk-step.done:has(+ .current.is-error)::after,
399
+ .bk-steps-vertical .bk-step.done:has( + .current.bk-step-error)::after {
400
+ background-image: linear-gradient(var(--danger-color) 50%, transparent 0%);
401
+ }
396
402
  .bk-steps-vertical .bk-step .bk-step-title {
397
403
  display: flex;
398
404
  height: 100%;
@@ -139,9 +139,11 @@
139
139
  }
140
140
 
141
141
  &.done {
142
- .@{bk-prefix}-step-title,
142
+ .@{bk-prefix}-step-title {
143
+ color: @default-color;
144
+ }
143
145
  .@{bk-prefix}-step-description {
144
- color: #9EA2AB;
146
+ color: #979ba5;
145
147
  }
146
148
 
147
149
  .@{bk-prefix}-steps-icon {
@@ -298,6 +300,15 @@
298
300
  content: '';
299
301
  }
300
302
 
303
+ &.done {
304
+ &:has(+ .current.is-error),
305
+ &:has(+ .current.@{bk-prefix}-step-error) {
306
+ &::after {
307
+ background-image: linear-gradient(@danger-color 50%, transparent 0%);
308
+ }
309
+ }
310
+ }
311
+
301
312
  .@{bk-prefix}-step-title {
302
313
  display: flex;
303
314
  height: 100%;
@@ -483,9 +483,11 @@
483
483
  .bk-steps .bk-step:last-child .bk-step-title::after {
484
484
  display: none;
485
485
  }
486
- .bk-steps .bk-step.done .bk-step-title,
486
+ .bk-steps .bk-step.done .bk-step-title {
487
+ color: var(--default-color);
488
+ }
487
489
  .bk-steps .bk-step.done .bk-step-description {
488
- color: #9EA2AB;
490
+ color: #979ba5;
489
491
  }
490
492
  .bk-steps .bk-step.done .bk-steps-icon {
491
493
  margin-bottom: 3px;
@@ -639,6 +641,10 @@
639
641
  background-size: 1px 6px;
640
642
  content: '';
641
643
  }
644
+ .bk-steps-vertical .bk-step.done:has(+ .current.is-error)::after,
645
+ .bk-steps-vertical .bk-step.done:has( + .current.bk-step-error)::after {
646
+ background-image: linear-gradient(var(--danger-color) 50%, transparent 0%);
647
+ }
642
648
  .bk-steps-vertical .bk-step .bk-step-title {
643
649
  display: flex;
644
650
  height: 100%;