fix:修复轮播组件的数据联动问题

main
liu.shiyi 1 year ago
parent f3d2e29fde
commit 51e58deb94

@ -52,7 +52,10 @@ export default {
methods: { methods: {
// //
rowClick (row) { rowClick (row) {
this.linkage(row) const origData = this.config.option.origData
if (row && row.rowIndex && this.config && this.config.option && origData && origData.length){
this.linkage(origData [row.rowIndex])
}
}, },
dataFormatting (config, data) { dataFormatting (config, data) {
this.config.loading = false this.config.loading = false
@ -60,6 +63,7 @@ export default {
const dataList = [] const dataList = []
const alignList = [] const alignList = []
const widthList = [] const widthList = []
config.option.origData = data?.data
if (config.customize.columnConfig.length === 0) { if (config.customize.columnConfig.length === 0) {
const key = [] const key = []
for (const i in data.columnData) { for (const i in data.columnData) {

@ -8,6 +8,7 @@ export const settingConfig = {
columnWidth: [], columnWidth: [],
align: [], align: [],
data: [], data: [],
origData:[],
// 设置面板属性的显隐 // 设置面板属性的显隐
displayOption: { displayOption: {
...displayOption, ...displayOption,

Loading…
Cancel
Save