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

多选Select组件选择多项时报错 #41

Open
Hub-yang opened this issue Feb 13, 2024 · 10 comments
Open

多选Select组件选择多项时报错 #41

Hub-yang opened this issue Feb 13, 2024 · 10 comments
Labels
bug Something isn't working

Comments

@Hub-yang
Copy link

  • 版本
    nuxt:3.10.1 @ant-design-vue/nuxt:1.4.1

  • 场景
    新建页面,官方文档案例使用多选 a-select 组件

  • 报错
    1

@Hub-yang Hub-yang reopened this Feb 19, 2024
@robertyclin
Copy link

我也遇到了

@trylovetom
Copy link

trylovetom commented Feb 20, 2024

same here, this is a reproduction

Kapture.2024-02-20.at.19.17.28.mp4

@trylovetom
Copy link

這問題卡了一週,開發上非常痛苦

@trylovetom
Copy link

Hi @aibayanyu20,

I've come across an issue that seems critical. Could we discuss a possible fix? I'm happy to help if you could point me towards the suspect code.

Thanks for your hard work!

@codingcn
Copy link

same issues.

@aibayanyu20
Copy link
Member

try update [email protected]

@codingcn
Copy link

try update [email protected]

问题依旧存在

  "resolutions": {
    "vue": "^3.4.20"
  },
  "pnpm": {
    "overrides": {
      "vue": "^3.4.20"
    }
  }

@kasuie
Copy link

kasuie commented Mar 8, 2024

  • 版本
    nuxt:3.10.1 @ant-design-vue/nuxt:1.4.1
  • 场景
    新建页面,官方文档案例使用多选 a-select 组件
  • 报错
    1

可以尝试一下用文档里的removeIconmenuItemSelectedIcon插槽覆盖一下自带的图标,类似这样:

            <a-select
              mode="tags"
              v-model:value="tag"
              :options="options"
              @change="onChange"
            >
              <template #removeIcon>
                <span>x</span>
              </template>
              <template #menuItemSelectedIcon>
                <span></span>
              </template>
            </a-select>

可以用其他的icon,这里用的符号代替,但不能用ant的icon,我是这样解决的。

@codingcn @trylovetom

@codingcn
Copy link

codingcn commented Mar 8, 2024

降低版本也能解决。

@Hzrr97
Copy link

Hzrr97 commented Mar 25, 2024

  • 版本
    nuxt:3.10.1 @ant-design-vue/nuxt:1.4.1
  • 场景
    新建页面,官方文档案例使用多选 a-select 组件
  • 报错
    1

可以尝试一下用文档里的removeIconmenuItemSelectedIcon插槽覆盖一下自带的图标,类似这样:

            <a-select
              mode="tags"
              v-model:value="tag"
              :options="options"
              @change="onChange"
            >
              <template #removeIcon>
                <span>x</span>
              </template>
              <template #menuItemSelectedIcon>
                <span></span>
              </template>
            </a-select>

可以用其他的icon,这里用的符号代替,但不能用ant的icon,我是这样解决的。

@codingcn @trylovetom

有效果,谢谢大佬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants