Ver código fonte

feat:修复词云图配置数据后显示异常的问题

liu.shiyi 2 anos atrás
pai
commit
5c4b3c4d65

+ 4 - 4
data-room-ui/packages/G2Plots/词云图/词云图.js

@@ -576,14 +576,14 @@ const data = [
 ]
 
 // 配置处理脚本
-const optionHandler = 'let wordFieldValue = setting.find(settingItem=>settingItem.field === \'wordField\').value\n' +
+const optionHandler = ''
+
+// 数据处理脚本
+const dataHandler = 'let wordFieldValue = setting.find(settingItem=>settingItem.field === \'wordField\').value\n' +
   'if (wordFieldValue) {\n' +
   '  option.colorField = wordFieldValue\n' +
   '}'
 
-// 数据处理脚本
-const dataHandler = ''
-
 // 图表配置 new Line('domName', option)
 const option = {
   // 数据将要放入到哪个字段中