bkui-vue 2.0.1-beta.69 → 2.0.1-beta.70

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.
@@ -46,6 +46,11 @@ declare const colorPickerProps: {
46
46
  } & {
47
47
  default: boolean;
48
48
  };
49
+ showOnInit: import("vue-types").VueTypeValidableDef<boolean> & {
50
+ default: boolean;
51
+ } & {
52
+ default: boolean;
53
+ };
49
54
  };
50
55
  export type ColorPickerPropTypes = ExtractPropTypes<typeof colorPickerProps>;
51
56
  declare const _default: import("vue").DefineComponent<{
@@ -95,6 +100,11 @@ declare const _default: import("vue").DefineComponent<{
95
100
  } & {
96
101
  default: boolean;
97
102
  };
103
+ showOnInit: import("vue-types").VueTypeValidableDef<boolean> & {
104
+ default: boolean;
105
+ } & {
106
+ default: boolean;
107
+ };
98
108
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
99
109
  modelValue: import("vue-types").VueTypeValidableDef<string> & {
100
110
  default: string;
@@ -142,6 +152,11 @@ declare const _default: import("vue").DefineComponent<{
142
152
  } & {
143
153
  default: boolean;
144
154
  };
155
+ showOnInit: import("vue-types").VueTypeValidableDef<boolean> & {
156
+ default: boolean;
157
+ } & {
158
+ default: boolean;
159
+ };
145
160
  }>> & {
146
161
  onChange?: (...args: any[]) => any;
147
162
  "onUpdate:modelValue"?: (...args: any[]) => any;
@@ -149,6 +164,7 @@ declare const _default: import("vue").DefineComponent<{
149
164
  extCls: string;
150
165
  size: "" | "small" | "large";
151
166
  disabled: boolean;
167
+ showOnInit: boolean;
152
168
  transfer: boolean;
153
169
  readonly: boolean;
154
170
  modelValue: string;
@@ -46,6 +46,11 @@ declare const BkColorPicker: {
46
46
  } & {
47
47
  default: boolean;
48
48
  };
49
+ showOnInit: import("vue-types").VueTypeValidableDef<boolean> & {
50
+ default: boolean;
51
+ } & {
52
+ default: boolean;
53
+ };
49
54
  }>> & {
50
55
  onChange?: (...args: any[]) => any;
51
56
  "onUpdate:modelValue"?: (...args: any[]) => any;
@@ -96,6 +101,11 @@ declare const BkColorPicker: {
96
101
  } & {
97
102
  default: boolean;
98
103
  };
104
+ showOnInit: import("vue-types").VueTypeValidableDef<boolean> & {
105
+ default: boolean;
106
+ } & {
107
+ default: boolean;
108
+ };
99
109
  }>> & {
100
110
  onChange?: (...args: any[]) => any;
101
111
  "onUpdate:modelValue"?: (...args: any[]) => any;
@@ -103,6 +113,7 @@ declare const BkColorPicker: {
103
113
  extCls: string;
104
114
  size: "" | "small" | "large";
105
115
  disabled: boolean;
116
+ showOnInit: boolean;
106
117
  transfer: boolean;
107
118
  readonly: boolean;
108
119
  modelValue: string;
@@ -164,6 +175,11 @@ declare const BkColorPicker: {
164
175
  } & {
165
176
  default: boolean;
166
177
  };
178
+ showOnInit: import("vue-types").VueTypeValidableDef<boolean> & {
179
+ default: boolean;
180
+ } & {
181
+ default: boolean;
182
+ };
167
183
  }>> & {
168
184
  onChange?: (...args: any[]) => any;
169
185
  "onUpdate:modelValue"?: (...args: any[]) => any;
@@ -171,6 +187,7 @@ declare const BkColorPicker: {
171
187
  extCls: string;
172
188
  size: "" | "small" | "large";
173
189
  disabled: boolean;
190
+ showOnInit: boolean;
174
191
  transfer: boolean;
175
192
  readonly: boolean;
176
193
  modelValue: string;
@@ -229,6 +246,11 @@ declare const BkColorPicker: {
229
246
  } & {
230
247
  default: boolean;
231
248
  };
249
+ showOnInit: import("vue-types").VueTypeValidableDef<boolean> & {
250
+ default: boolean;
251
+ } & {
252
+ default: boolean;
253
+ };
232
254
  }>> & {
233
255
  onChange?: (...args: any[]) => any;
234
256
  "onUpdate:modelValue"?: (...args: any[]) => any;
@@ -236,6 +258,7 @@ declare const BkColorPicker: {
236
258
  extCls: string;
237
259
  size: "" | "small" | "large";
238
260
  disabled: boolean;
261
+ showOnInit: boolean;
239
262
  transfer: boolean;
240
263
  readonly: boolean;
241
264
  modelValue: string;
@@ -2386,7 +2386,9 @@ var color_picker_colorPickerProps = {
2386
2386
  }), shared_namespaceObject.PropTypes.bool.def(true)]).def(true),
2387
2387
  extCls: shared_namespaceObject.PropTypes.string.def(''),
2388
2388
  withValidate: shared_namespaceObject.PropTypes.bool.def(true),
2389
- recommendEmpty: shared_namespaceObject.PropTypes.bool.def(true)
2389
+ recommendEmpty: shared_namespaceObject.PropTypes.bool.def(true),
2390
+ // 初始化默认展开
2391
+ showOnInit: shared_namespaceObject.PropTypes.bool.def(false)
2390
2392
  };
2391
2393
  var whiteColorObj = formatColor('#FFFFFF');
2392
2394
  /* harmony default export */ const color_picker = ((0,external_vue_namespaceObject.defineComponent)({
@@ -2422,6 +2424,11 @@ var whiteColorObj = formatColor('#FFFFFF');
2422
2424
  changeColorFromProps({
2423
2425
  isCreated: true
2424
2426
  });
2427
+ if (props.showOnInit) {
2428
+ (0,external_vue_namespaceObject.nextTick)(function () {
2429
+ openDropdown();
2430
+ });
2431
+ }
2425
2432
  });
2426
2433
  (0,external_vue_namespaceObject.watch)(function () {
2427
2434
  return props.modelValue;
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.69";
7
+ export const version = "2.0.1-beta.70";
8
8
  window.__bkui_vue_version__ = version;
@@ -22472,11 +22472,11 @@ var ROW_HEIGHT = 32;
22472
22472
  (_state$checked = state.checked).push.apply(_state$checked, _toConsumableArray(checked.value));
22473
22473
  (0,external_vue_namespaceObject.watch)(function () {
22474
22474
  return checked;
22475
- }, function () {
22475
+ }, function (payload) {
22476
22476
  var _state$checked2;
22477
22477
  state.checked.length = 0;
22478
22478
  state.checked = [];
22479
- (_state$checked2 = state.checked).push.apply(_state$checked2, _toConsumableArray(checked.value));
22479
+ (_state$checked2 = state.checked).push.apply(_state$checked2, _toConsumableArray(payload.value));
22480
22480
  }, {
22481
22481
  deep: true
22482
22482
  });
@@ -22648,6 +22648,7 @@ var ROW_HEIGHT = 32;
22648
22648
  }
22649
22649
  state.checked.length = 0;
22650
22650
  (_state$checked3 = state.checked).push.apply(_state$checked3, _toConsumableArray(Array.from(setValue)));
22651
+ filter.value.checked = _toConsumableArray(state.checked);
22651
22652
  handleFilterChange();
22652
22653
  };
22653
22654
  var renderFilterList = function renderFilterList(scope) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "2.0.1-beta.69",
3
+ "version": "2.0.1-beta.70",
4
4
  "workspaces": [
5
5
  "packages/**",
6
6
  "scripts/cli",