FEMessage / el-data-table

🥘Base on element-ui, makes crud easily
https://femessage.github.io/el-data-table/
MIT License
486 stars 112 forks source link

searchForm 修改input后刷新页面,已修改又被默认值覆盖了 #319

Closed shoyuf closed 4 years ago

shoyuf commented 4 years ago

Describe the bug

searchForm 修改input后刷新页面,已修改又被默认值覆盖了

Screenshots

image

To Reproduce

  1. 设置 searchForm
    {
    el: {placeholder: '请输入'},
    label: '姓名',
    id: 'name',
    type: 'input',
    default: '1'
    },
  2. 删除“姓名”input的内容,点击查询按钮
  3. 刷新页面
  4. “姓名”input的内容又变成了1

Expected behavior

“姓名”input的内容继续保持为空