bkui-vue 2.0.1-beta.79 → 2.0.1-beta.80

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.
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.79";
7
+ export const version = "2.0.1-beta.80";
8
8
  window.__bkui_vue_version__ = version;
@@ -549,7 +549,6 @@
549
549
  }
550
550
  .bk-search-select-menu .menu-content .menu-item .menu-name {
551
551
  display: flex;
552
- max-width: 100px;
553
552
  margin-right: 5px;
554
553
  font-weight: bold;
555
554
  color: var(--search-select-font-color);
@@ -365,7 +365,7 @@
365
365
 
366
366
  .menu-name {
367
367
  display: flex;
368
- max-width: 100px;
368
+ // max-width: 100px;
369
369
  margin-right: 5px;
370
370
  font-weight: bold;
371
371
  color: @search-select-font-color;
@@ -939,7 +939,6 @@
939
939
  }
940
940
  .bk-search-select-menu .menu-content .menu-item .menu-name {
941
941
  display: flex;
942
- max-width: 100px;
943
942
  margin-right: 5px;
944
943
  font-weight: bold;
945
944
  color: var(--search-select-font-color);
@@ -319,6 +319,11 @@ declare const BkSelect: {
319
319
  type: import("vue").PropType<"default" | "manual">;
320
320
  default: string;
321
321
  };
322
+ disableScrollToSelectedOption: import("vue-types").VueTypeValidableDef<boolean> & {
323
+ default: boolean;
324
+ } & {
325
+ default: boolean;
326
+ };
322
327
  }>> & {
323
328
  onFocus?: (...args: any[]) => any;
324
329
  onBlur?: (...args: any[]) => any;
@@ -1036,6 +1041,11 @@ declare const BkSelect: {
1036
1041
  type: import("vue").PropType<"default" | "manual">;
1037
1042
  default: string;
1038
1043
  };
1044
+ disableScrollToSelectedOption: import("vue-types").VueTypeValidableDef<boolean> & {
1045
+ default: boolean;
1046
+ } & {
1047
+ default: boolean;
1048
+ };
1039
1049
  }>> & {
1040
1050
  onFocus?: (...args: any[]) => any;
1041
1051
  onBlur?: (...args: any[]) => any;
@@ -1092,6 +1102,7 @@ declare const BkSelect: {
1092
1102
  disableFocusBehavior: boolean;
1093
1103
  keepSearchValue: boolean;
1094
1104
  searchWithPinyin: boolean;
1105
+ disableScrollToSelectedOption: boolean;
1095
1106
  }, true, {}, {}, {
1096
1107
  P: {};
1097
1108
  B: {};
@@ -1417,6 +1428,11 @@ declare const BkSelect: {
1417
1428
  type: import("vue").PropType<"default" | "manual">;
1418
1429
  default: string;
1419
1430
  };
1431
+ disableScrollToSelectedOption: import("vue-types").VueTypeValidableDef<boolean> & {
1432
+ default: boolean;
1433
+ } & {
1434
+ default: boolean;
1435
+ };
1420
1436
  }>> & {
1421
1437
  onFocus?: (...args: any[]) => any;
1422
1438
  onBlur?: (...args: any[]) => any;
@@ -1860,6 +1876,7 @@ declare const BkSelect: {
1860
1876
  disableFocusBehavior: boolean;
1861
1877
  keepSearchValue: boolean;
1862
1878
  searchWithPinyin: boolean;
1879
+ disableScrollToSelectedOption: boolean;
1863
1880
  }>;
1864
1881
  __isFragment?: never;
1865
1882
  __isTeleport?: never;
@@ -2182,6 +2199,11 @@ declare const BkSelect: {
2182
2199
  type: import("vue").PropType<"default" | "manual">;
2183
2200
  default: string;
2184
2201
  };
2202
+ disableScrollToSelectedOption: import("vue-types").VueTypeValidableDef<boolean> & {
2203
+ default: boolean;
2204
+ } & {
2205
+ default: boolean;
2206
+ };
2185
2207
  }>> & {
2186
2208
  onFocus?: (...args: any[]) => any;
2187
2209
  onBlur?: (...args: any[]) => any;
@@ -2625,6 +2647,7 @@ declare const BkSelect: {
2625
2647
  disableFocusBehavior: boolean;
2626
2648
  keepSearchValue: boolean;
2627
2649
  searchWithPinyin: boolean;
2650
+ disableScrollToSelectedOption: boolean;
2628
2651
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]> & Readonly<{
2629
2652
  Option: import("vue").DefineComponent<{
2630
2653
  id: {
@@ -2673,7 +2673,8 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2673
2673
  trigger: {
2674
2674
  type: String,
2675
2675
  "default": 'default'
2676
- } // content显示和隐藏方式
2676
+ },
2677
+ disableScrollToSelectedOption: shared_namespaceObject.PropTypes.bool.def(false) // 是否禁用滚动到选中option的功能
2677
2678
  },
2678
2679
  emits: ['update:modelValue', 'change', 'toggle', 'clear', 'scroll-end', 'focus', 'blur', 'tag-remove', 'select', 'deselect', 'search-change'],
2679
2680
  setup: function setup(props, _ref) {
@@ -2714,7 +2715,8 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2714
2715
  searchWithPinyin = _toRefs.searchWithPinyin,
2715
2716
  highlightKeyword = _toRefs.highlightKeyword,
2716
2717
  disableFocusBehavior = _toRefs.disableFocusBehavior,
2717
- trigger = _toRefs.trigger;
2718
+ trigger = _toRefs.trigger,
2719
+ disableScrollToSelectedOption = _toRefs.disableScrollToSelectedOption;
2718
2720
  var virtualRenderRef = (0,external_vue_namespaceObject.ref)(null);
2719
2721
  var localNoDataText = (0,external_vue_namespaceObject.computed)(function () {
2720
2722
  if (props.noDataText === undefined) {
@@ -2978,11 +2980,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2978
2980
  // 滚动到当前选中的options中
2979
2981
  var scrollActiveOptionIntoView = function scrollActiveOptionIntoView() {
2980
2982
  var _contentRef$value, _contentRef$value$que, _optionsDom$;
2981
- if (isEnableVirtualRender.value) return;
2983
+ if (isEnableVirtualRender.value || disableScrollToSelectedOption.value) return;
2982
2984
  var optionsDom = (_contentRef$value = contentRef.value) === null || _contentRef$value === void 0 || (_contentRef$value$que = _contentRef$value.querySelectorAll) === null || _contentRef$value$que === void 0 ? void 0 : _contentRef$value$que.call(_contentRef$value, '.is-selected');
2983
2985
  optionsDom === null || optionsDom === void 0 || (_optionsDom$ = optionsDom[0]) === null || _optionsDom$ === void 0 || _optionsDom$.scrollIntoView({
2984
2986
  block: 'center'
2985
- // behavior: 'smooth',
2986
2987
  });
2987
2988
  };
2988
2989
  // 初始化当前悬浮的option项
@@ -318,6 +318,11 @@ declare const _default: import("vue").DefineComponent<{
318
318
  type: PropType<"default" | "manual">;
319
319
  default: string;
320
320
  };
321
+ disableScrollToSelectedOption: import("vue-types").VueTypeValidableDef<boolean> & {
322
+ default: boolean;
323
+ } & {
324
+ default: boolean;
325
+ };
321
326
  }, {
322
327
  t: import("vue").ComputedRef<{
323
328
  noData: string;
@@ -1023,6 +1028,11 @@ declare const _default: import("vue").DefineComponent<{
1023
1028
  type: PropType<"default" | "manual">;
1024
1029
  default: string;
1025
1030
  };
1031
+ disableScrollToSelectedOption: import("vue-types").VueTypeValidableDef<boolean> & {
1032
+ default: boolean;
1033
+ } & {
1034
+ default: boolean;
1035
+ };
1026
1036
  }>> & {
1027
1037
  onFocus?: (...args: any[]) => any;
1028
1038
  onBlur?: (...args: any[]) => any;
@@ -1079,5 +1089,6 @@ declare const _default: import("vue").DefineComponent<{
1079
1089
  disableFocusBehavior: boolean;
1080
1090
  keepSearchValue: boolean;
1081
1091
  searchWithPinyin: boolean;
1092
+ disableScrollToSelectedOption: boolean;
1082
1093
  }, {}>;
1083
1094
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "2.0.1-beta.79",
3
+ "version": "2.0.1-beta.80",
4
4
  "workspaces": [
5
5
  "packages/**",
6
6
  "scripts/cli",