Browse Source

图表数据视图展示列设置添加到显示BUG

zhuth 6 years ago
parent
commit
ebf896940b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/chartDesigner/sections/displayColumnBox.jsx

+ 1 - 1
src/components/chartDesigner/sections/displayColumnBox.jsx

@@ -79,7 +79,7 @@ class DisplayColumnBox extends React.Component {
                 destroyOnClose={true}
             >
                 <Transfer
-                    dataSource={allColumns.map((c, i) => ({...c, key: i}))}
+                    dataSource={allColumns.map(c => ({...c, key: c.name}))}
                     showSearch
                     filterOption={(inputValue, option) => option.label.toLowerCase().indexOf(inputValue.toLowerCase()) > -1}
                     listStyle={{