FEMessage/el-data-table

点击修改按钮,dialog对话框的el-select希望可以使用用filterable属性

qianyidai opened this issue · 3 comments

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

dialog 里的表单是使用 form 配置的,而表单项的属性,是可以通过 el 配置的。也即

{
  type: 'select',
  el: {
    filterable: true
  }
}

谢谢,这个问题解决了,但是还有一个小问题。
点击修改按钮后的弹框,下拉框的url怎么带页面参数查询呢

{
  type: "select",
  id: "map_id",
  label: "地图",
  options: [],
  rules: [
    {
      required: false,
      message: "请选择地图",
      trigger: "blur",
      // transform: v => v && v.trim()
    },
  ],
  remote: {
    // url: "/api/map-select?proj_id="+this.proj_id,
    url: "/api/map-all-select",
  },
  el: { placeholder: "请选择地图", filterable: true },
},

本来想实现的地图下拉框的数据为当前proj_id下的数据,但是remote中的url好像没拿到this.proj_id,

呃,你要升级 el-form-renderer,修改 url 重新发送请求,在最新的版本有实现。