bkui-vue 0.0.1-beta.350 → 0.0.1-beta.351

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/dist/index.esm.js CHANGED
@@ -17154,6 +17154,9 @@ const resolveColumnWidth = (root, colgroups, autoWidth = COL_MIN_WIDTH, offsetWi
17154
17154
  minWidth = void 0
17155
17155
  } = col;
17156
17156
  if (minWidth === void 0) {
17157
+ if (computedWidth < COL_MIN_WIDTH) {
17158
+ return COL_MIN_WIDTH;
17159
+ }
17157
17160
  return computedWidth;
17158
17161
  }
17159
17162
  let calcMinWidth = computedWidth;
@@ -17795,6 +17798,7 @@ var Settings = defineComponent({
17795
17798
  const checkedFields = ref(localSettings.value.checked || []);
17796
17799
  const className = resolveClassName("table-settings");
17797
17800
  const theme = `light ${className}`;
17801
+ const renderFields = computed(() => localSettings.value.fields || props2.columns || []);
17798
17802
  const cachedValue = {
17799
17803
  checkAll: checkAll.value,
17800
17804
  activeSize: activeSize.value,
@@ -17811,7 +17815,8 @@ var Settings = defineComponent({
17811
17815
  emit("change", {
17812
17816
  checked: checkedFields.value,
17813
17817
  size: activeSize.value,
17814
- height: activeHeight.value
17818
+ height: activeHeight.value,
17819
+ fields: unref(renderFields)
17815
17820
  });
17816
17821
  isShow.value = false;
17817
17822
  };
@@ -17862,7 +17867,6 @@ var Settings = defineComponent({
17862
17867
  "class": getItemClass(item),
17863
17868
  "onClick": () => handleSizeItemClick(item)
17864
17869
  }, [item.label]));
17865
- const renderFields = computed(() => localSettings.value.fields || props2.columns || []);
17866
17870
  const indeterminate = computed(() => checkedFields.value.length > 0 && !renderFields.value.every((field, index) => checkedFields.value.includes(resolvePropVal(field, "field", [field, index]))));
17867
17871
  const showLineHeight = computed(() => typeof localSettings.value.showLineHeight === "boolean" ? localSettings.value.showLineHeight : true);
17868
17872
  watch(() => [checkedFields.value], () => {
@@ -18846,10 +18850,10 @@ const useInit = (props2, targetColumns) => {
18846
18850
  }
18847
18851
  return minWidth;
18848
18852
  };
18849
- const updateColGroups = () => {
18853
+ const updateColGroups = (settings) => {
18850
18854
  var _a2, _b2;
18851
- const checked = ((_a2 = props2.settings) == null ? void 0 : _a2.checked) || [];
18852
- const settingFields = ((_b2 = props2.settings) == null ? void 0 : _b2.fields) || [];
18855
+ const checked = (settings == null ? void 0 : settings.checked) || ((_a2 = props2.settings) == null ? void 0 : _a2.checked) || [];
18856
+ const settingFields = (settings == null ? void 0 : settings.fields) || ((_b2 = props2.settings) == null ? void 0 : _b2.fields) || [];
18853
18857
  colgroups.splice(0, colgroups.length, ...getColumns().map((col) => __spreadProps(__spreadValues({}, col), {
18854
18858
  calcWidth: null,
18855
18859
  resizeWidth: null,
@@ -19159,7 +19163,8 @@ var Component$e = defineComponent({
19159
19163
  toggleAllSelection,
19160
19164
  toggleRowSelection,
19161
19165
  getSelection,
19162
- clearSort
19166
+ clearSort,
19167
+ updateColGroups
19163
19168
  } = useInit(props2, targetColumns);
19164
19169
  const {
19165
19170
  pageData,
@@ -19249,10 +19254,15 @@ var Component$e = defineComponent({
19249
19254
  const {
19250
19255
  checked = [],
19251
19256
  size,
19252
- height
19257
+ height,
19258
+ fields
19253
19259
  } = args;
19254
19260
  nextTick(() => {
19255
19261
  var _a, _b;
19262
+ updateColGroups({
19263
+ checked,
19264
+ fields
19265
+ });
19256
19266
  updateBorderClass(root.value);
19257
19267
  const offset2 = getColumnsWidthOffsetWidth();
19258
19268
  checked.length && resolveColumnWidth(root.value, colgroups, COL_MIN_WIDTH, offset2);
@@ -19260,7 +19270,8 @@ var Component$e = defineComponent({
19260
19270
  ctx.emit(EMIT_EVENTS.SETTING_CHANGE, {
19261
19271
  checked,
19262
19272
  size,
19263
- height
19273
+ height,
19274
+ fields
19264
19275
  });
19265
19276
  });
19266
19277
  }).on(EVENTS$1.ON_ROW_EXPAND_CLICK, (args) => {