bkui-vue 2.0.2-beta.11 → 2.0.2-beta.12

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
@@ -3,5 +3,5 @@ export * from './hooks';
3
3
  export { default } from './preset';
4
4
  export * from './config-provider';
5
5
  export * from './directives';
6
- export const version = "2.0.2-beta.11";
6
+ export const version = "2.0.2-beta.12";
7
7
  window.__bkui_vue_version__ = version;
@@ -94,6 +94,10 @@ declare const BkInput: {
94
94
  } & {
95
95
  default: boolean;
96
96
  };
97
+ tooltipsOptions: {
98
+ type: import("vue").PropType<Partial<import("../../bkui-vue").IOptions>>;
99
+ default: () => {};
100
+ };
97
101
  resize: import("vue-types").VueTypeValidableDef<boolean> & {
98
102
  default: boolean;
99
103
  } & {
@@ -232,6 +236,10 @@ declare const BkInput: {
232
236
  } & {
233
237
  default: boolean;
234
238
  };
239
+ tooltipsOptions: {
240
+ type: import("vue").PropType<Partial<import("../../bkui-vue").IOptions>>;
241
+ default: () => {};
242
+ };
235
243
  resize: import("vue-types").VueTypeValidableDef<boolean> & {
236
244
  default: boolean;
237
245
  } & {
@@ -286,6 +294,7 @@ declare const BkInput: {
286
294
  withValidate: boolean;
287
295
  overMaxLengthLimit: boolean;
288
296
  showOverflowTooltips: boolean;
297
+ tooltipsOptions: {};
289
298
  autosize: boolean | import("./input").InputAutoSize;
290
299
  stopPropagation: boolean;
291
300
  }, true, {}, {}, {
@@ -390,6 +399,10 @@ declare const BkInput: {
390
399
  } & {
391
400
  default: boolean;
392
401
  };
402
+ tooltipsOptions: {
403
+ type: import("vue").PropType<Partial<import("../../bkui-vue").IOptions>>;
404
+ default: () => {};
405
+ };
393
406
  resize: import("vue-types").VueTypeValidableDef<boolean> & {
394
407
  default: boolean;
395
408
  } & {
@@ -444,6 +457,7 @@ declare const BkInput: {
444
457
  withValidate: boolean;
445
458
  overMaxLengthLimit: boolean;
446
459
  showOverflowTooltips: boolean;
460
+ tooltipsOptions: {};
447
461
  autosize: boolean | import("./input").InputAutoSize;
448
462
  stopPropagation: boolean;
449
463
  }>;
@@ -545,6 +559,10 @@ declare const BkInput: {
545
559
  } & {
546
560
  default: boolean;
547
561
  };
562
+ tooltipsOptions: {
563
+ type: import("vue").PropType<Partial<import("../../bkui-vue").IOptions>>;
564
+ default: () => {};
565
+ };
548
566
  resize: import("vue-types").VueTypeValidableDef<boolean> & {
549
567
  default: boolean;
550
568
  } & {
@@ -614,6 +632,7 @@ declare const BkInput: {
614
632
  withValidate: boolean;
615
633
  overMaxLengthLimit: boolean;
616
634
  showOverflowTooltips: boolean;
635
+ tooltipsOptions: {};
617
636
  autosize: boolean | import("./input").InputAutoSize;
618
637
  stopPropagation: boolean;
619
638
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
@@ -1633,6 +1633,12 @@ var inputType = {
1633
1633
  withValidate: shared_namespaceObject.PropTypes.bool.def(true),
1634
1634
  overMaxLengthLimit: shared_namespaceObject.PropTypes.bool.def(false),
1635
1635
  showOverflowTooltips: shared_namespaceObject.PropTypes.bool.def(true),
1636
+ tooltipsOptions: {
1637
+ type: Object,
1638
+ "default": function _default() {
1639
+ return {};
1640
+ }
1641
+ },
1636
1642
  resize: shared_namespaceObject.PropTypes.bool.def(true),
1637
1643
  autosize: shared_namespaceObject.PropTypes.oneOfType([Boolean, Object]).def(false),
1638
1644
  stopPropagation: shared_namespaceObject.PropTypes.bool.def(true)
@@ -1782,16 +1788,16 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
1782
1788
  var tooltips = (0,external_vue_namespaceObject.computed)(function () {
1783
1789
  var _props$modelValue2;
1784
1790
  if (showMaxLimit.value && ceilMaxLength.value - modelValueLength.value === 0) {
1785
- return {
1791
+ return input_objectSpread({
1786
1792
  content: t.value.maxlengthLimitTips
1787
- };
1793
+ }, props.tooltipsOptions || {});
1788
1794
  }
1789
- return props.showOverflowTooltips && isOverflow.value && props.modelValue ? {
1795
+ return props.showOverflowTooltips && isOverflow.value && props.modelValue ? input_objectSpread({
1790
1796
  content: (_props$modelValue2 = props.modelValue) === null || _props$modelValue2 === void 0 ? void 0 : _props$modelValue2.toString(),
1791
1797
  sameWidth: true
1792
- } : {
1798
+ }, props.tooltipsOptions || {}) : input_objectSpread({
1793
1799
  disabled: true
1794
- };
1800
+ }, props.tooltipsOptions || {});
1795
1801
  });
1796
1802
  var showMaxLimit = (0,external_vue_namespaceObject.computed)(function () {
1797
1803
  return typeof props.maxlength === 'number' || typeof props.maxcharacter === 'number';
@@ -1,4 +1,5 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { IOptions } from '../directives';
2
3
  export type InputAutoSize = {
3
4
  minRows?: number;
4
5
  maxRows?: number;
@@ -98,6 +99,10 @@ export declare const inputType: {
98
99
  } & {
99
100
  default: boolean;
100
101
  };
102
+ tooltipsOptions: {
103
+ type: PropType<Partial<IOptions>>;
104
+ default: () => {};
105
+ };
101
106
  resize: import("vue-types").VueTypeValidableDef<boolean> & {
102
107
  default: boolean;
103
108
  } & {
@@ -243,6 +248,10 @@ declare const _default: import("vue").DefineComponent<{
243
248
  } & {
244
249
  default: boolean;
245
250
  };
251
+ tooltipsOptions: {
252
+ type: PropType<Partial<IOptions>>;
253
+ default: () => {};
254
+ };
246
255
  resize: import("vue-types").VueTypeValidableDef<boolean> & {
247
256
  default: boolean;
248
257
  } & {
@@ -366,6 +375,10 @@ declare const _default: import("vue").DefineComponent<{
366
375
  } & {
367
376
  default: boolean;
368
377
  };
378
+ tooltipsOptions: {
379
+ type: PropType<Partial<IOptions>>;
380
+ default: () => {};
381
+ };
369
382
  resize: import("vue-types").VueTypeValidableDef<boolean> & {
370
383
  default: boolean;
371
384
  } & {
@@ -420,6 +433,7 @@ declare const _default: import("vue").DefineComponent<{
420
433
  withValidate: boolean;
421
434
  overMaxLengthLimit: boolean;
422
435
  showOverflowTooltips: boolean;
436
+ tooltipsOptions: {};
423
437
  autosize: boolean | InputAutoSize;
424
438
  stopPropagation: boolean;
425
439
  }, {}>;
@@ -348,6 +348,10 @@ declare const BkSelect: {
348
348
  } & {
349
349
  default: boolean;
350
350
  };
351
+ inputTooltipsOptions: {
352
+ type: import("vue").PropType<Partial<import("../../bkui-vue").IOptions>>;
353
+ default: () => {};
354
+ };
351
355
  }>> & {
352
356
  onFocus?: (...args: any[]) => any;
353
357
  onBlur?: (...args: any[]) => any;
@@ -1112,6 +1116,10 @@ declare const BkSelect: {
1112
1116
  } & {
1113
1117
  default: boolean;
1114
1118
  };
1119
+ inputTooltipsOptions: {
1120
+ type: import("vue").PropType<Partial<import("../../bkui-vue").IOptions>>;
1121
+ default: () => {};
1122
+ };
1115
1123
  }>> & {
1116
1124
  onFocus?: (...args: any[]) => any;
1117
1125
  onBlur?: (...args: any[]) => any;
@@ -1170,6 +1178,7 @@ declare const BkSelect: {
1170
1178
  keepSearchValue: boolean;
1171
1179
  searchWithPinyin: boolean;
1172
1180
  disableScrollToSelectedOption: boolean;
1181
+ inputTooltipsOptions: {};
1173
1182
  }, true, {}, {}, {
1174
1183
  P: {};
1175
1184
  B: {};
@@ -1523,6 +1532,10 @@ declare const BkSelect: {
1523
1532
  } & {
1524
1533
  default: boolean;
1525
1534
  };
1535
+ inputTooltipsOptions: {
1536
+ type: import("vue").PropType<Partial<import("../../bkui-vue").IOptions>>;
1537
+ default: () => {};
1538
+ };
1526
1539
  }>> & {
1527
1540
  onFocus?: (...args: any[]) => any;
1528
1541
  onBlur?: (...args: any[]) => any;
@@ -1987,6 +2000,7 @@ declare const BkSelect: {
1987
2000
  keepSearchValue: boolean;
1988
2001
  searchWithPinyin: boolean;
1989
2002
  disableScrollToSelectedOption: boolean;
2003
+ inputTooltipsOptions: {};
1990
2004
  }>;
1991
2005
  __isFragment?: never;
1992
2006
  __isTeleport?: never;
@@ -2337,6 +2351,10 @@ declare const BkSelect: {
2337
2351
  } & {
2338
2352
  default: boolean;
2339
2353
  };
2354
+ inputTooltipsOptions: {
2355
+ type: import("vue").PropType<Partial<import("../../bkui-vue").IOptions>>;
2356
+ default: () => {};
2357
+ };
2340
2358
  }>> & {
2341
2359
  onFocus?: (...args: any[]) => any;
2342
2360
  onBlur?: (...args: any[]) => any;
@@ -2801,6 +2819,7 @@ declare const BkSelect: {
2801
2819
  keepSearchValue: boolean;
2802
2820
  searchWithPinyin: boolean;
2803
2821
  disableScrollToSelectedOption: boolean;
2822
+ inputTooltipsOptions: {};
2804
2823
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]> & Readonly<{
2805
2824
  Option: import("vue").DefineComponent<{
2806
2825
  id: {
@@ -3904,7 +3904,13 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3904
3904
  type: String,
3905
3905
  "default": 'default'
3906
3906
  },
3907
- disableScrollToSelectedOption: shared_namespaceObject.PropTypes.bool.def(false) // 是否禁用滚动到选中option的功能
3907
+ disableScrollToSelectedOption: shared_namespaceObject.PropTypes.bool.def(false),
3908
+ inputTooltipsOptions: {
3909
+ type: Object,
3910
+ "default": function _default() {
3911
+ return {};
3912
+ }
3913
+ } // 透传Input组件的tooltips配置
3908
3914
  },
3909
3915
  emits: ['update:modelValue', 'change', 'toggle', 'clear', 'scroll-end', 'focus', 'blur', 'tag-remove', 'select', 'deselect', 'search-change'],
3910
3916
  setup: function setup(props, _ref) {
@@ -4835,6 +4841,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
4835
4841
  "selectReadonly": true,
4836
4842
  "size": _this.size,
4837
4843
  "stopPropagation": false,
4844
+ "tooltipsOptions": _this.inputTooltipsOptions,
4838
4845
  "type": "text",
4839
4846
  "withValidate": false,
4840
4847
  "onEnter": _this.handleCreateCustomOption,
@@ -1,4 +1,5 @@
1
1
  import { PropType } from 'vue';
2
+ import { IOptions } from '../directives';
2
3
  import { ISelected, OptionInstanceType } from './type';
3
4
  declare const _default: import("vue").DefineComponent<{
4
5
  modelValue: import("vue-types").VueTypeValidableDef<any>;
@@ -346,6 +347,10 @@ declare const _default: import("vue").DefineComponent<{
346
347
  } & {
347
348
  default: boolean;
348
349
  };
350
+ inputTooltipsOptions: {
351
+ type: PropType<Partial<IOptions>>;
352
+ default: () => {};
353
+ };
349
354
  }, {
350
355
  t: import("vue").ComputedRef<{
351
356
  noData: string;
@@ -1098,6 +1103,10 @@ declare const _default: import("vue").DefineComponent<{
1098
1103
  } & {
1099
1104
  default: boolean;
1100
1105
  };
1106
+ inputTooltipsOptions: {
1107
+ type: PropType<Partial<IOptions>>;
1108
+ default: () => {};
1109
+ };
1101
1110
  }>> & {
1102
1111
  onFocus?: (...args: any[]) => any;
1103
1112
  onBlur?: (...args: any[]) => any;
@@ -1156,5 +1165,6 @@ declare const _default: import("vue").DefineComponent<{
1156
1165
  keepSearchValue: boolean;
1157
1166
  searchWithPinyin: boolean;
1158
1167
  disableScrollToSelectedOption: boolean;
1168
+ inputTooltipsOptions: {};
1159
1169
  }, {}>;
1160
1170
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "2.0.2-beta.11",
3
+ "version": "2.0.2-beta.12",
4
4
  "workspaces": [
5
5
  "packages/**",
6
6
  "scripts/cli",