|
@@ -85,10 +85,20 @@ export default {
|
|
const { openType, openId, renderIndex = 0 } = value
|
|
const { openType, openId, renderIndex = 0 } = value
|
|
this.configuration = { openType, openId, renderIndex }
|
|
this.configuration = { openType, openId, renderIndex }
|
|
const type = this.renderType[renderIndex]
|
|
const type = this.renderType[renderIndex]
|
|
- if(type === 'text') {
|
|
|
|
- this.translationValue = openId
|
|
|
|
|
|
+
|
|
|
|
+ switch (type) {
|
|
|
|
+ case 'text':
|
|
|
|
+ this.translationValue = openId
|
|
|
|
+ break;
|
|
|
|
+ case 'array':
|
|
|
|
+ this.translationValArray = openId.split(',')
|
|
|
|
+ break;
|
|
|
|
+ case 'object':
|
|
|
|
+ this.translationValObject = openId
|
|
|
|
+ break;
|
|
|
|
+ default:
|
|
|
|
+ break;
|
|
}
|
|
}
|
|
- console.log(this.translationValue, '<==== this.translationValue')
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
}
|
|
}
|