Browse Source

修复拖拽排序的一处问题。

oldj 8 years ago
parent
commit
c9a41a1eb3
2 changed files with 10161 additions and 10352 deletions
  1. 10157 10349
      app/bundle.js
  2. 4 3
      ui/panel/list.js

File diff suppressed because it is too large
+ 10157 - 10349
app/bundle.js


+ 4 - 3
ui/panel/list.js

@@ -46,7 +46,8 @@ export default class List extends React.Component {
           idx={idx}
           current={this.props.current}
           setCurrent={this.props.setCurrent}
-          key={'hosts-' + idx}
+          lang={this.props.lang}
+          key={'hosts-' + idx + Math.random()}
           show={show}
         />
       )
@@ -72,8 +73,8 @@ export default class List extends React.Component {
       , onSort: (evt) => {
         this.getCurrentListFromDOM()
         //console.log(evt)
-        console.log(evt.item)
-        console.log(evt.oldIndex, evt.newIndex)
+        //console.log(evt.item)
+        //console.log(evt.oldIndex, evt.newIndex)
       }
     })
   }

Some files were not shown because too many files changed in this diff