vueComponent / ant-design-vue-nuxt

MIT License
61 stars 6 forks source link

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

Open Hub-yang opened 4 months ago

Hub-yang commented 4 months ago
robertyclin commented 4 months ago

我也遇到了

trylovetom commented 4 months ago

same here, this is a reproduction

https://github.com/vueComponent/ant-design-vue-nuxt/assets/13268073/392218df-97c7-4ab3-ae02-da1a01e4ef73

trylovetom commented 4 months ago

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

trylovetom commented 4 months ago

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 commented 4 months ago

same issues.

aibayanyu20 commented 4 months ago

try update vue@3.4.20

codingcn commented 4 months ago

try update vue@3.4.20

问题依旧存在

  "resolutions": {
    "vue": "^3.4.20"
  },
  "pnpm": {
    "overrides": {
      "vue": "^3.4.20"
    }
  }
kasuie commented 4 months ago
  • 版本 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 commented 4 months ago

降低版本也能解决。

Hzrr97 commented 3 months ago
  • 版本 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

有效果,谢谢大佬