Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
John-Chan opened this issue Dec 23, 2020 · 1 comment
Open

Comments

@John-Chan
Copy link

关键代码

    <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

@greper
Copy link
Owner

greper commented Jan 11, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants