bkui-vue 2.0.1-beta.74 → 2.0.1-beta.75

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.74";
7
+ export const version = "2.0.1-beta.75";
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> & {
36
- default: string | boolean;
35
+ transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
36
+ default: string | boolean | (() => HTMLElement);
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> & {
102
- default: string | boolean;
101
+ transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
102
+ default: string | boolean | (() => HTMLElement);
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;
140
+ transfer: string | boolean | HTMLElement;
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> & {
190
- default: string | boolean;
189
+ transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
190
+ default: string | boolean | (() => HTMLElement);
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;
228
+ transfer: string | boolean | HTMLElement;
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> & {
275
- default: string | boolean;
274
+ transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
275
+ default: string | boolean | (() => HTMLElement);
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;
313
+ transfer: string | boolean | HTMLElement;
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> & {
357
- default: string | boolean;
356
+ transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
357
+ default: string | boolean | (() => HTMLElement);
358
358
  };
359
359
  zIndex: import("vue-types").VueTypeDef<string | number>;
360
360
  animateType: import("vue-types").VueTypeValidableDef<string> & {
@@ -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]).def(true),
312
+ transfer: shared_namespaceObject.PropTypes.oneOfType([Boolean, String, HTMLElement]).def(true),
313
313
  // 弹出层z-index,实际显示的值会自动+1。为了抱证在遮罩上正常显示
314
314
  zIndex: shared_namespaceObject.PropTypes.oneOfType([String, Number]),
315
315
  // 动画类型
@@ -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> & {
37
- default: string | boolean;
36
+ transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
37
+ default: string | boolean | (() => HTMLElement);
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> & {
98
- default: string | boolean;
97
+ transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
98
+ default: string | boolean | (() => HTMLElement);
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;
136
+ transfer: string | boolean | HTMLElement;
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> & {
34
- default: string | boolean;
33
+ transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
34
+ default: string | boolean | (() => HTMLElement);
35
35
  };
36
36
  zIndex: import("vue-types").VueTypeDef<string | number>;
37
37
  animateType: import("vue-types").VueTypeValidableDef<string> & {
@@ -356,6 +356,7 @@ declare const BkSelect: {
356
356
  triggerRef: import("vue").Ref<HTMLElement>;
357
357
  contentRef: import("vue").Ref<HTMLElement>;
358
358
  searchRef: import("vue").Ref<HTMLElement>;
359
+ scrollContainerRef: import("vue").Ref<HTMLElement>;
359
360
  selectTagInputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
360
361
  selected: {
361
362
  type: import("vue-types/dist/types").PropType<import("./type").ISelected[]>;
@@ -1453,6 +1454,7 @@ declare const BkSelect: {
1453
1454
  triggerRef: import("vue").Ref<HTMLElement>;
1454
1455
  contentRef: import("vue").Ref<HTMLElement>;
1455
1456
  searchRef: import("vue").Ref<HTMLElement>;
1457
+ scrollContainerRef: import("vue").Ref<HTMLElement>;
1456
1458
  selectTagInputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
1457
1459
  selected: {
1458
1460
  type: import("vue-types/dist/types").PropType<import("./type").ISelected[]>;
@@ -2217,6 +2219,7 @@ declare const BkSelect: {
2217
2219
  triggerRef: import("vue").Ref<HTMLElement>;
2218
2220
  contentRef: import("vue").Ref<HTMLElement>;
2219
2221
  searchRef: import("vue").Ref<HTMLElement>;
2222
+ scrollContainerRef: import("vue").Ref<HTMLElement>;
2220
2223
  selectTagInputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
2221
2224
  selected: {
2222
2225
  type: import("vue-types/dist/types").PropType<import("./type").ISelected[]>;
@@ -2757,6 +2757,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
2757
2757
  var triggerRef = (0,external_vue_namespaceObject.ref)();
2758
2758
  var contentRef = (0,external_vue_namespaceObject.ref)();
2759
2759
  var searchRef = (0,external_vue_namespaceObject.ref)();
2760
+ var scrollContainerRef = (0,external_vue_namespaceObject.ref)();
2760
2761
  var selectTagInputRef = (0,external_vue_namespaceObject.ref)();
2761
2762
  var popoverRef = (0,external_vue_namespaceObject.ref)();
2762
2763
  var optionsMap = (0,external_vue_namespaceObject.ref)(new Map());
@@ -3042,6 +3043,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3042
3043
  searchLoading = _useRemoteSearch.searchLoading;
3043
3044
  // 派发search change事件
3044
3045
  (0,external_vue_namespaceObject.watch)(searchValue, function () {
3046
+ scrollContainerRef.value.scrollTop = 0;
3045
3047
  emit('search-change', searchValue.value);
3046
3048
  });
3047
3049
  // 派发change事件
@@ -3418,6 +3420,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3418
3420
  triggerRef: triggerRef,
3419
3421
  contentRef: contentRef,
3420
3422
  searchRef: searchRef,
3423
+ scrollContainerRef: scrollContainerRef,
3421
3424
  selectTagInputRef: selectTagInputRef,
3422
3425
  popoverRef: popoverRef,
3423
3426
  searchLoading: searchLoading,
@@ -3695,6 +3698,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3695
3698
  }, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.curContentText])]), (0,external_vue_namespaceObject.createVNode)("div", {
3696
3699
  "class": _this.resolveClassName('select-content')
3697
3700
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
3701
+ "ref": "scrollContainerRef",
3698
3702
  "style": {
3699
3703
  maxHeight: "".concat(_this.scrollHeight, "px"),
3700
3704
  minHeight: "".concat(_this.minHeight, "px")
@@ -343,6 +343,7 @@ declare const _default: import("vue").DefineComponent<{
343
343
  triggerRef: import("vue").Ref<HTMLElement>;
344
344
  contentRef: import("vue").Ref<HTMLElement>;
345
345
  searchRef: import("vue").Ref<HTMLElement>;
346
+ scrollContainerRef: import("vue").Ref<HTMLElement>;
346
347
  selectTagInputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
347
348
  selected: {
348
349
  type: import("vue-types/dist/types").PropType<ISelected[]>;
@@ -41,8 +41,8 @@ declare const BkSideslider: {
41
41
  } & {
42
42
  default: boolean;
43
43
  };
44
- transfer: import("vue-types").VueTypeDef<string | boolean> & {
45
- default: string | boolean;
44
+ transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
45
+ default: string | boolean | (() => HTMLElement);
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> & {
122
- default: string | boolean;
121
+ transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
122
+ default: string | boolean | (() => HTMLElement);
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;
162
+ transfer: string | boolean | HTMLElement;
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> & {
223
- default: string | boolean;
222
+ transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
223
+ default: string | boolean | (() => HTMLElement);
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;
263
+ transfer: string | boolean | HTMLElement;
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> & {
321
- default: string | boolean;
320
+ transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
321
+ default: string | boolean | (() => HTMLElement);
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;
361
+ transfer: string | boolean | HTMLElement;
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> & {
44
- default: string | boolean;
43
+ transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
44
+ default: string | boolean | (() => HTMLElement);
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> & {
115
- default: string | boolean;
114
+ transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
115
+ default: string | boolean | (() => HTMLElement);
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;
155
+ transfer: string | boolean | HTMLElement;
156
156
  direction: string;
157
157
  backgroundColor: string;
158
158
  renderDirective: "show" | "if";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "2.0.1-beta.74",
3
+ "version": "2.0.1-beta.75",
4
4
  "workspaces": [
5
5
  "packages/**",
6
6
  "scripts/cli",