d2-crud-plus icon indicating copy to clipboard operation
d2-crud-plus copied to clipboard

BUG | 行内编辑激活状态下,刷新表格会导致数据消失

Open John-Chan opened this issue 4 years ago • 1 comments

关键代码

    <d2-crud-x
      ref="d2Crud"
      v-bind="_crudProps"
      v-on="_crudListeners"
    >
      <div slot="header">
        <el-button type="primary" @click="lineEditAdd()"><i class="el-icon-plus"/>新增</el-button>
        <crud-toolbar :search=null v-bind="_crudToolbarProps" v-on="_crudToolbarListeners" storage="XXX"/>
      </div>
    </d2-crud-x>
rowHandle: {
      width: 260,
      fixed: 'right',
      view: {
        show: false
      },
      edit: {
        show: false
      },
      lineEditSave: {
        show: true
      },
      lineEdit: {
        show: true
      },
      remove: {
        thin: true,
        text: null
      }
    },

重现步骤

1 进入表格界面,有一条数据

1

2 点击新增按钮,表格的行编辑模式激活,保持编辑状态,不保存也不取消。

2

3 点击crud工具栏的刷新按钮,数据消失(已经检查网络请求,服务端确实返回了数据)

3

John-Chan avatar Dec 23 '20 06:12 John-Chan

无法复现,我的示例是没问题的

greper avatar Jan 11 '21 08:01 greper