king
19 小时以前 c06e58c80240afd703d289bb1c584e08b9783383
src/mob/components/tabs/antv-tabs/dragabletabs.jsx
@@ -62,6 +62,8 @@
    const dragIndex = newOrder.indexOf(dragKey)
    const hoverIndex = newOrder.indexOf(hoverKey)
    if (dragIndex === -1) return
    newOrder.splice(dragIndex, 1)
    newOrder.splice(hoverIndex, 0, dragKey)
    
@@ -90,7 +92,7 @@
  render() {
    const { order } = this.state
    const { children } = this.props
    const { children, ...resProps } = this.props
    const tabs = []
    React.Children.forEach(children, c => {
      tabs.push(c)
@@ -118,7 +120,7 @@
    return (
      <DndProvider>
        <Tabs renderTabBar={this.renderTabBar} {...this.props}>
        <Tabs renderTabBar={this.renderTabBar} {...resProps}>
          {orderTabs}
        </Tabs>
      </DndProvider>