d2-crud-plus
d2-crud-plus copied to clipboard
BUG | 行内编辑激活状态下,刷新表格会导致数据消失
关键代码
<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 进入表格界面,有一条数据
2 点击新增按钮,表格的行编辑模式激活,保持编辑状态,不保存也不取消。
3 点击crud工具栏的刷新按钮,数据消失(已经检查网络请求,服务端确实返回了数据)
无法复现,我的示例是没问题的