bkui-vue 2.0.1-beta.49 → 2.0.1-beta.50

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.49";
7
+ export const version = "2.0.1-beta.50";
8
8
  window.__bkui_vue_version__ = version;
@@ -22416,6 +22416,17 @@ var ROW_HEIGHT = 32;
22416
22416
  isOpen: false,
22417
22417
  checked: checked.value
22418
22418
  });
22419
+ (0,external_vue_namespaceObject.watch)(function () {
22420
+ return checked;
22421
+ }, function () {
22422
+ var _state$checked;
22423
+ state.checked.length = 0;
22424
+ state.checked = [];
22425
+ (_state$checked = state.checked).push.apply(_state$checked, _toConsumableArray(checked.value));
22426
+ // handleBtnSaveClick();
22427
+ }, {
22428
+ deep: true
22429
+ });
22419
22430
  var headClass = (0,external_vue_namespaceObject.computed)(function () {
22420
22431
  return (0,shared_namespaceObject.classes)(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty({}, resolveClassName('table-head-action'), true), 'column-filter', true), '--row-height', "".concat(props.height, "px")), "active", state.checked.length), "opened", state.isOpen));
22421
22432
  });
@@ -22536,7 +22547,7 @@ var ROW_HEIGHT = 32;
22536
22547
  });
22537
22548
  };
22538
22549
  var handleValueChange = function handleValueChange(val, item) {
22539
- var _state$checked;
22550
+ var _state$checked2;
22540
22551
  var setValue = new Set(state.checked);
22541
22552
  if (val) {
22542
22553
  setValue.add(item.value);
@@ -22544,7 +22555,7 @@ var ROW_HEIGHT = 32;
22544
22555
  setValue["delete"](item.value);
22545
22556
  }
22546
22557
  state.checked.length = 0;
22547
- (_state$checked = state.checked).push.apply(_state$checked, _toConsumableArray(Array.from(setValue)));
22558
+ (_state$checked2 = state.checked).push.apply(_state$checked2, _toConsumableArray(Array.from(setValue)));
22548
22559
  handleFilterChange();
22549
22560
  };
22550
22561
  var renderFilterList = function renderFilterList(scope) {
@@ -125,8 +125,8 @@ export type HeadRenderArgs = {
125
125
  cell?: Record<string, object>;
126
126
  data?: Record<string, object>[];
127
127
  row?: Record<string, object>;
128
- column: Column;
129
- index: number;
128
+ column?: Column;
129
+ index?: number;
130
130
  rows?: Record<string, object>[];
131
131
  };
132
132
  export type RenderFunctionString = (args: HeadRenderArgs) => JSX.Element | boolean | number | string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "2.0.1-beta.49",
3
+ "version": "2.0.1-beta.50",
4
4
  "workspaces": [
5
5
  "packages/**",
6
6
  "scripts/cli",