Explorar el Código

图表数据视图设置展示列不能添加到展示bug

zhuth hace 6 años
padre
commit
90f1510972
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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}
+                    dataSource={allColumns.map((c, i) => ({...c, key: i}))}
                     showSearch
                     filterOption={(inputValue, option) => option.label.toLowerCase().indexOf(inputValue.toLowerCase()) > -1}
                     listStyle={{