a375128508 2021-06-22 19:50 采纳率: 0%
浏览 512

Vue 使用ant design的下拉框组件出现一直弹框

<a-select
            v-model="form.linkman"
            placeholder="请选择"
            :open="false"
            :maxTagCount="1"
            mode="multiple"
            :options="options"
            @focus="selectUser"
          >
            <a-icon slot="removeIcon" type=" " />
          </a-select>
<shopowners ref='shopowner' :selectId="selectId" @onSelectChange='getShopowwer'/>
selectUser() {
      this.$refs.shopowner.storeId = this.storeId
      this.$refs.shopowner.status = this.status
      this.$refs.shopowner.show()
    },
    getShopowwer(params) {
      console.log(params)
      if (params.selectionRows.length) {
        let options = params.selectionRows.map((d) => {
          let v = { ...d }
          v.key = d.realname
          v.value = d.realname
          v.title = d.realname
          return v
        })
        this.options = options
        this.form.linkman = [this.options[0].realname]
        this.form.receivingPhone = this.options[0].phone
        this.selectId = this.options[0].id
        console.log(this.form)
      } else {
        this.options = []
        this.form.linkman = []
        this.form.receivingPhone = ''
        this.selectId = ''
      }
    },

点击触发事件 有个弹框是个列表 选择后关闭并把数据带过来  现在是数据带过来了 但是弹框一直触发  请大神帮忙看看问题在哪儿

  • 写回答

1条回答 默认 最新

  • 崽崽的谷雨 2021-06-23 09:31
    关注

    @focus="selectUser" 里一获取焦点就打开。正常时这样的吗。

    评论

报告相同问题?

悬赏问题

  • ¥15 Oracle中如何从clob类型截取特定字符串后面的字符
  • ¥15 想通过pywinauto自动电机应用程序按钮,但是找不到应用程序按钮信息
  • ¥15 MATLAB中streamslice问题
  • ¥15 如何在炒股软件中,爬到我想看的日k线
  • ¥15 51单片机中C语言怎么做到下面类似的功能的函数(相关搜索:c语言)
  • ¥15 seatunnel 怎么配置Elasticsearch
  • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
  • ¥15 (标签-MATLAB|关键词-多址)
  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端