Skip to content

Commit

Permalink
fix: 修复列设置显隐和禁用无效的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
greper committed Mar 29, 2023
1 parent 268207e commit ab28857
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ const start = () => {
active.value = true;
};

const original: Ref<TypeMap<ColumnsFilterItem>> = ref({});
const original: Ref<TypeMap<ColumnsFilterItem>> = computed(() => {
return transformColumnsMap(props.originalColumns);
});
const currentColumns: Ref<ColumnsFilterItem[]> = ref([]);
const checkAll = ref(false);
const indeterminate = ref(false);
Expand Down Expand Up @@ -440,7 +442,6 @@ watch(
);

const init = () => {
original.value = transformColumnsMap(props.columns);
setCurrentValue(props.columns);
const storedOptions = getOptionsFromStorage();
if (storedOptions) {
Expand Down

0 comments on commit ab28857

Please sign in to comment.