【issues/7812】linkageConfig改变了,vxetable没更新

pull/8060/head
JEECG 2025-04-04 22:45:00 +08:00
parent 45e9b03e2d
commit c22fd21233
1 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,5 @@
import type { JVxeColumn, JVxeDataProps, JVxeTableProps } from '../types';
import { computed, nextTick } from 'vue';
import { computed, nextTick, toRaw } from 'vue';
import { isArray, isEmpty, isPromise } from '/@/utils/is';
import { cloneDeep } from 'lodash-es';
import { JVxeTypePrefix, JVxeTypes } from '../types/JVxeTypes';
@ -25,6 +25,11 @@ export interface HandleArgs {
export function useColumns(props: JVxeTableProps, data: JVxeDataProps, methods: JVxeTableMethods, slots) {
data.vxeColumns = computed(() => {
// update-begin--author:liaozhiyang---date:20250403---forissues/7812linkageConfigvxetable
// linkageConfig
const linkageConfig = toRaw(props.linkageConfig);
console.log(linkageConfig);
// update-end--author:liaozhiyang---date:20250403---forissues/7812linkageConfigvxetable
let columns: JVxeColumn[] = [];
if (isArray(props.columns)) {
// handle