Skip to content

i18n related issue | 国际化相关问题 #2610

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

Closed
jw-foss opened this issue Jul 22, 2021 · 98 comments
Closed

i18n related issue | 国际化相关问题 #2610

jw-foss opened this issue Jul 22, 2021 · 98 comments
Assignees
Labels
needs discussion Needs further discussion from the community

Comments

@jw-foss
Copy link
Member

jw-foss commented Jul 22, 2021

Hey guys, if you found any i18n related issue please report it here within this issue we will try to fix them ASAP.
Feel free to ping me or the team here to help you out. This should be the top priority of us and we intend to fix most of them by the first stable release. Thank you for being patient and supportive. Your comments could be the key for ElementPlus to become a great project 🙏

大家好,如果你们在项目中发现 ElementPlus 和国际化不太对劲的地方,请在这个 issue 里留言,我们会把国际化 相关的问题作为最高优先级并想办法修复。
非常感谢大家一直以来对 ElementPlus 的支持与耐心,你们的留言会帮助 ElementPlus 成长为一个更好的项目。谢谢!🙏

@jw-foss jw-foss self-assigned this Jul 22, 2021
@jw-foss jw-foss added the needs discussion Needs further discussion from the community label Jul 22, 2021
@jw-foss jw-foss added this to the First stable version release milestone Jul 22, 2021
@jw-foss jw-foss pinned this issue Jul 22, 2021
@jw-foss jw-foss changed the title i18n related issues i18n related issue | 国际化相关问题 Jul 22, 2021
@jw-foss jw-foss added the Level::P0 highest priority label Jul 22, 2021
@wjw-gavin
Copy link
Contributor

想请教下,在使用 vite 替换默认语言为中文时,怎么剔除英文包的引入呢?文档有webpack的配置,但是没有vite.config的相关配置
image

@jiaozhiye
Copy link

作者你好,发现多语言在指定自定义i18n方法时,未得到预期效果,感觉是这段代码造成的:
image

@jw-foss
Copy link
Member Author

jw-foss commented Jul 24, 2021

作者你好,发现多语言在指定自定义i18n方法时,未得到预期效果,感觉是这段代码造成的:
image

你好 你指出的问题确实是对的 是我工作的疏忽 抱歉,我会尽快修复

@wanghai1
Copy link

作者你好,请问在 ts 中复制官方的代码,无法找到对应的 类型文件,有什么解决的吗,如果变为 js 文件,也需要
import * as locale from 'element-plus/lib/locale/index.js';
而不是
import locale from 'element-plus/lib/locale/index.js';

@jw-foss
Copy link
Member Author

jw-foss commented Jul 26, 2021

想请教下,在使用 vite 替换默认语言为中文时,怎么剔除英文包的引入呢?文档有webpack的配置,但是没有vite.config的相关配置
image

我们可能需要去专门看看 Vite 资源重写,因为我们之前的 Vite 的适配也做的不是很好,一旦有消息了会来这边通知大家。:bow:

@jw-foss
Copy link
Member Author

jw-foss commented Jul 26, 2021

作者你好,请问在 ts 中复制官方的代码,无法找到对应的 类型文件,有什么解决的吗,如果变为 js 文件,也需要
import * as locale from 'element-plus/lib/locale/index.js';
而不是
import locale from 'element-plus/lib/locale/index.js';

这个问题我刚发现,我们之前发布的版本都是有 *.d.ts 的类型文件的,我会检查一下什么原因重新发个版本

@panchenyu0928
Copy link

作者你好,我按照文档设置国际化,报错了。
65404D00-E97C-4A0A-9E22-E0DEEAE544FB
07447D70-B80F-4800-96CB-4F1A77BC722A
558613B0-38E7-4CD6-A4B8-7D99644DA756

@jw-foss
Copy link
Member Author

jw-foss commented Jul 26, 2021

@Pmj136 https://element-plus.org/#/zh-CN/component/i18n 有缓存,你强刷一下,我们周末改了东西。

@et2012
Copy link

et2012 commented Jul 26, 2021

作者你好,“通过 CDN 的方式加载语言文件” 似乎失效了,按照文档设置后,依然是英文。

<script src="//unpkg.com/vue@next"></script>
<script src="//unpkg.com/element-plus/lib/index.full.js"></script>
<script src="//unpkg.com/element-plus/lib/umd/locale/zh-cn.js"></script>
<script src="//unpkg.com/dayjs/locale/zh-cn.js"></script>

<script>
  ElementPlus.locale(ElementPlus.lang.zhCn)
</script>

@jw-foss
Copy link
Member Author

jw-foss commented Jul 26, 2021

@wanghai1 226668d#diff-3d64996115d0ac3b74e36f57ce6b00d6b4982614c41b1ed39eab8ef43b2e9a2b see here for more information, I've updated the build script and triggered a new release.

@jw-foss
Copy link
Member Author

jw-foss commented Jul 26, 2021

作者你好,“通过 CDN 的方式加载语言文件” 似乎失效了,按照文档设置后,依然是英文。

<script src="//unpkg.com/vue@next"></script>
<script src="//unpkg.com/element-plus/lib/index.full.js"></script>
<script src="//unpkg.com/element-plus/lib/umd/locale/zh-cn.js"></script>
<script src="//unpkg.com/dayjs/locale/zh-cn.js"></script>

<script>
  ElementPlus.locale(ElementPlus.lang.zhCn)
</script>

#2610 (comment)

@panchenyu0928
Copy link

56AF845B-A792-4D4D-8FA1-5C6543A5B75A
01348E72-B85E-4F88-AD46-895010384E86
修改后:
7CC28D0A-0A7A-4ADF-9162-F922A29B7ACC
B47A30B0-F3CB-43F2-81A7-F5888F829AD9

@jw-foss
Copy link
Member Author

jw-foss commented Jul 26, 2021

@panchenyu0928 这好像确实是个问题,你用了 vite 的插件还是 webpack 的插件?可能我们需要加一个空的文件进去,因为这个组件是一个纯功能性组件,我得改一下。
你暂时可能需要给 path 加一个条件,如果遇到这个文件 return false 或者直接去包下面直接拿(暂时修复方式)

import ConfigProvider from 'element-plus/config-provider'

==========================
Edit:

应该是

import { ElConfigProvider } from 'element-plus'

我们文档疏忽了

@panchenyu0928
Copy link

@JeremyWuuuuu webpack

@jw-foss
Copy link
Member Author

jw-foss commented Jul 26, 2021

@panchenyu0928 Upgrade to beta.62 see if you still have the same problem.

@jw-foss
Copy link
Member Author

jw-foss commented Jul 26, 2021

@wanghai1 Upgrade to beta.62 see if you still have the same problem. Sorry for the inconvenience that I caused. 🙏

@et2012
Copy link

et2012 commented Jul 27, 2021

作者你好,“通过 CDN 的方式加载语言文件” 似乎失效了,按照文档设置后,依然是英文。

<script src="//unpkg.com/vue@next"></script>
<script src="//unpkg.com/element-plus/lib/index.full.js"></script>
<script src="//unpkg.com/element-plus/lib/umd/locale/zh-cn.js"></script>
<script src="//unpkg.com/dayjs/locale/zh-cn.js"></script>

<script>
  ElementPlus.locale(ElementPlus.lang.zhCn)
</script>

#2610 (comment)

在 “通过 CDN 的方式加载语言文件” 这个语境下:

旧版只需要 ElementPlus.locale(ElementPlus.lang.zhCn) 一下,全局就是中文的了。

而 1.0.2-beta.59(以及之后的版本),ElementPlus.locale 已经失效。
是否代表在这之后的版本,只支持 config-provider 的方式加载语言?
即:无法通过纯 script 的方式加载语言,而是必须修改 template,用 el-config-provider 把 element-plus 相关页面/组件包裹起来?

像下面这样:

<script src="//unpkg.com/vue@next"></script>
<script src="//unpkg.com/element-plus/lib/index.full.js"></script>
<script src="//unpkg.com/element-plus/lib/umd/locale/zh-cn.js"></script>
<script src="//unpkg.com/dayjs/locale/zh-cn.js"></script>

<div id="app"></div>

<template id="my-template">
    <el-config-provider :locale="locale">
        <!-- insert main page here -->
    </el-config-provider>
</template>

<script>
    const app = Vue.createApp({
        template: '#my-template',
        data() {
            return {
                locale: ElementPlus.lang.zhCn,
            }
        },
    })
    app.use(ElementPlus)
    app.mount('#app')
</script>

@HanSXY
Copy link

HanSXY commented Jul 27, 2021

vite 2.3.0 按需引入i18n,页面不起效果

import { createApp } from 'vue';
import { createI18n } from 'vue-i18n'
import ZH from './zh'
import EN from './en'
import ElementLocale from 'element-plus/lib/locale'

const i18n = createI18n({
    silentTranslationWarn: true,
    locale: localStorage.getItem('lan') || language,	//默认显示的语言 
    messages: {
        'zh': ZH,
        'en': EN
    }
})

ElementLocale.i18n(i18n.global.t)
app.use(i18n)

而且升级到最新版本后 分页功能不支持直接导入 css 样式,只能导入 scss 样式

babel.config.js 中
直接用css不生效
module.exports = {
  plugins: [
    [
      "import",
      {
        libraryName: 'element-plus',
        customStyleName: (name) => {
          return `element-plus/lib/theme-chalk/${name}.css`;
        },
      },
    ],
  ],
};

vite.config.ts 中
直接用css不生效
styleImport({
  libs: [
    {
      libraryName: 'element-plus',
      esModule: true,
      ensureStyleFile: true,
      resolveStyle: (name) => {
        return `element-plus/lib/theme-chalk/${name}.css`;
      },
      resolveComponent: (name) => {
        return `element-plus/lib/${name}`;
      },
    }
  ]
})

@HarryToo
Copy link

HarryToo commented Jul 27, 2021

你好,目前63版本使用el-config-provider组件的方式将全局的el组件语言设置为中文,但是组件内import {ElMessageBox} from 'element-plus'引用的提示框按钮仍然是英文应该如何处理呢?
尝试app.use(ElementPlus, {locale})webpack.NormalModuleReplacementPlugin的方式对此也无效。

@h492831190
Copy link

版本1.0.2-beta.63 默认设置中文无效,这问题怎么解决
import ElementPlus from 'element-plus';
import locale from 'element-plus/lib/locale/lang/zh-cn'
app.use(ElementPlus, { locale })

@bowei200888
Copy link

bowei200888 commented Jul 27, 2021

作者你好通过按需加载,单纯设置中文应该怎么设置。文档中写的也不是很详细。1.0.2-beta.54这个版本设置中文也失效了

@janeyhjy
Copy link

作者你好,兼容vue-i18n@9.x使用国际化时
分页组件在1.0.2-beta.54版本是好的,可以正常显示中文,1.0.2-beta.63版本不生效,显示英文

@jw-foss
Copy link
Member Author

jw-foss commented Jul 28, 2021

@jw-foss
Copy link
Member Author

jw-foss commented Jul 28, 2021

作者你好,“通过 CDN 的方式加载语言文件” 似乎失效了,按照文档设置后,依然是英文。

<script src="//unpkg.com/vue@next"></script>
<script src="//unpkg.com/element-plus/lib/index.full.js"></script>
<script src="//unpkg.com/element-plus/lib/umd/locale/zh-cn.js"></script>
<script src="//unpkg.com/dayjs/locale/zh-cn.js"></script>

<script>
  ElementPlus.locale(ElementPlus.lang.zhCn)
</script>

#2610 (comment)

在 “通过 CDN 的方式加载语言文件” 这个语境下:

旧版只需要 ElementPlus.locale(ElementPlus.lang.zhCn) 一下,全局就是中文的了。

而 1.0.2-beta.59(以及之后的版本),ElementPlus.locale 已经失效。
是否代表在这之后的版本,只支持 config-provider 的方式加载语言?
即:无法通过纯 script 的方式加载语言,而是必须修改 template,用 el-config-provider 把 element-plus 相关页面/组件包裹起来?

像下面这样:

<script src="//unpkg.com/vue@next"></script>
<script src="//unpkg.com/element-plus/lib/index.full.js"></script>
<script src="//unpkg.com/element-plus/lib/umd/locale/zh-cn.js"></script>
<script src="//unpkg.com/dayjs/locale/zh-cn.js"></script>

<div id="app"></div>

<template id="my-template">
    <el-config-provider :locale="locale">
        <!-- insert main page here -->
    </el-config-provider>
</template>

<script>
    const app = Vue.createApp({
        template: '#my-template',
        data() {
            return {
                locale: ElementPlus.lang.zhCn,
            }
        },
    })
    app.use(ElementPlus)
    app.mount('#app')
</script>

是的,但你也可以用 use-locale 这个 hook 在 app 最顶层做一个提供,但实际是一样的,推荐使用i你现在这种方式。:pray:

@LeoJune
Copy link

LeoJune commented Aug 25, 2021

跟我是小白的看过来,语言包是复制的官方的,中英文语言包这么用
image
image

这样使用之后,页码确实变成中文的了,但是在使用日期选择组件的时候直接报错

@xjphhh
Copy link

xjphhh commented Aug 25, 2021

@panchenyu0928 这好像确实是个问题,你用了 vite 的插件还是 webpack 的插件?可能我们需要加一个空的文件进去,因为这个组件是一个纯功能性组件,我得改一下。
你暂时可能需要给 path 加一个条件,如果遇到这个文件 return false 或者直接去包下面直接拿(暂时修复方式)

import ConfigProvider from 'element-plus/config-provider'

==========================
Edit:

应该是

import { ElConfigProvider } from 'element-plus'

我们文档疏忽了

我也是按照官网设置的ElConfigProvider
image

image
但是vite打包的时候报错找不到ElConfigProvider路径
image
然后我试着给path 加一个条件也不行,请问怎么处理dev正常显示,但是vite打包路径不正确?

@scuiadmin
Copy link

scuiadmin commented Aug 26, 2021

1.1.0-beta.5 config-provider + i18n

这里的locale貌似只能是翻译文本对象。暂用$i18n.messages[$i18n.locale]取得对应的文本

APP.vue

<el-config-provider :locale="$i18n.messages[$i18n.locale]"></el-config-provider>

封装的 i18n.js

import { createI18n } from 'vue-i18n'
import elementLocale_zh_cn from 'element-plus/lib/locale/lang/zh-cn'
import elementLocale_en from 'element-plus/lib/locale/lang/en'

const messages = {
	'zh-cn': {
		name: "zh-cn", //在新版本中这个name不能没有,不然日历会报错
		el: elementLocale_zh_cn.el,
		youLocale: {}
	},
	'en': {
		name: "en",
		el: elementLocale_en.el,
		youLocale: {}
	}
}

const i18n = createI18n({
	locale: 'zh-cn',
	fallbackLocale: 'zh-cn',
	globalInjection: true,
	messages
})
export default i18n;

main.js

app.use(i18n)

动态切换语言,在其他地方变更i18n的locale值即可

$i18n.locale = ‘en’

@jiangjunfeng98
Copy link

感谢楼上的思路,可以优化下,:locale="$i18n.messages[$i18n.locale]" 会把所有的国际化都传下去(包含youLocale);i18n. 里面的 name 也可以不用了

"element-plus": "1.1.0-beta.7"

import { createI18n } from 'vue-i18n';
import enLocale from 'element-plus/es/locale/lang/en';
import zhLocale from 'element-plus/es/locale/lang/zh-cn';

const messages = {
  en: {
    el: enLocale,
    app: {
        youLocale
    }
  },
  'zh-cn': {
    el: zhLocale,
    app: {
       youLocale
    }
  }
};

/**
 * 注册i18n实例并引入语言文件
 */
const i18n = createI18n({
  // 默认语言,存入localStorage
  locale: getLocale(),
  fallbackLocale: 'zh-cn',
  messages
});

export default i18n;
  <el-config-provider :locale="$i18n.messages[$i18n.locale].el">
    ....
  </el-config-provider>

@JakeWoki
Copy link

"element-plus": "^1.1.0-beta.7"
"vite-plugin-element-plus": "^0.0.12"
import VitePluginElementPlus from 'vite-plugin-element-plus'
export default defineConfig(({ mode }) => {
  plugins: [
    vue(),
    VitePluginElementPlus({ useSource: true }),
  ],
})
import { createI18n } from "vue-i18n"
import zhLocale from "element-plus/lib/locale/lang/zh-cn"

const localesConfigs = {
  zh: {
    ...zhLocale
  }
}

export const i18n = createI18n({
  locale: "zh", // set locale
  fallbackLocale: "zh", // set fallback locale
  messages: localesConfigs
});

export function usI18n(app: App) {
  app.use(i18n);
}

一直是英文,用ElConfigProvider是中文

@yaozitong666

This comment has been minimized.

@patrykzurawik
Copy link

Hi guys! I got console errors while trying to use <el-date-picker> component.

Screenshot 2021-09-13 at 16 10 08

Screenshot 2021-09-13 at 16 10 47

In App.vue I'm using ConfigProvider:
Screenshot 2021-09-13 at 16 19 33

An here's the component usage:
Screenshot 2021-09-13 at 16 23 30

Without ConfigProvider it seems to work fine, but it's not a solution :/ Every other component used by me are working good, including internationalization.

I'm using
"element-plus": "^1.1.0-beta.9"
"vue": "^3.0.0"

Please help! :)

@PiscineMolitorPatel
Copy link

@panchenyu0928 这好像确实是个问题,你用了 vite 的插件还是 webpack 的插件?可能我们需要加一个空的文件进去,因为这个组件是一个纯功能性组件,我得改一下。
你暂时可能需要给 path 加一个条件,如果遇到这个文件 return false 或者直接去包下面直接拿(暂时修复方式)

import ConfigProvider from 'element-plus/config-provider'

==========================
Edit:
应该是

import { ElConfigProvider } from 'element-plus'

我们文档疏忽了

我也是按照官网设置的ElConfigProvider
image

image
但是vite打包的时候报错找不到ElConfigProvider路径
image
然后我试着给path 加一个条件也不行,请问怎么处理dev正常显示,但是vite打包路径不正确?

请问你找到解决方法了吗?这个问题已经困扰我两天了,貌似官方还未修复

@BelinChung
Copy link
Contributor

@patrykzurawik

import { createI18n } from 'vue-i18n'
import elementLocale_zh_cn from 'element-plus/lib/locale/lang/zh-cn'
import elementLocale_en from 'element-plus/lib/locale/lang/en'

const messages = {
	'zh-cn': {
		name: "zh-cn",  //  In latest version, this name key cannot be missing, otherwise the calendar will get an error
		el: elementLocale_zh_cn.el,
		youLocale: {}
	},
	'en': {
		name: "en",
		el: elementLocale_en.el,
		youLocale: {}
	}
}

const i18n = createI18n({
	locale: 'zh-cn',
	fallbackLocale: 'zh-cn',
	globalInjection: true,
	messages
})
export default i18n;

@patrykzurawik
Copy link

@BelinChung thank you very much, that helped :)

@lgd8981289
Copy link

关于 ^1.1.0-beta.15 的版本配合 vue-i18n V9.1.7 的使用。
我通过以下代码设置了语言包

import enLocale from 'element-plus/lib/locale/lang/en'
import zhLocale from 'element-plus/lib/locale/lang/zh-cn'

const messages = {
  en: {
    el: enLocale.el,
  },
  zh: {
    el: zhLocale.el,
  }
}

然后在初始化 element 时期望可以通过 i18n 控制国际化,但是失败了

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// import zhCn from 'element-plus/es/locale/lang/zh-cn'
import i18n from '@/i18n'

export default app => {
  app.use(ElementPlus, { i18n: i18n.global })
}

@sxzz sxzz removed the Level::P0 highest priority label Sep 24, 2021
@Thriven-and-Thro
Copy link

国际化文档的引用路径应该还没改吧:

import { ElConfigProvider } from 'element-plus' // error
import { ElConfigProvider } from "element-plus/lib/components" // true

@GLFei
Copy link

GLFei commented Sep 28, 2021

日期组件使用快捷选项时,切换国际化后快捷项不会变化。 刷新整个页面才会改变。
<el-date-picker v-else-if="item.type === 'dateSection'" class="date input" size="mini" :style="{ width: item.width }" v-model="item.model" :type="item.isShowHMS ? 'datetimerange' : 'daterange'" unlink-panels @change="value => dateChange(value, item)" :start-placeholder="item.startTimeText || '开始日期'" :end-placeholder="item.endTimeText || '结束日期'" :shortcuts="shortcuts" /> // 日期快捷选择 const shortcuts = computed(() => { return [ { text: $t('search.lastWeek'), value: (() => { const { start, end } = getPickerWeek(1); return [start, end]; })(), }, { text: $t('search.lastMonth'), value: (() => { const { start, end } = getPickerDate(1); return [start, end]; })(), }, { text: $t('search.lastThreeMonths'), value: (() => { const { start, end } = getPickerDate(3); return [start, end]; })(), }, ]; });
使用英语
image
切换成汉语
image
刷新页面后
image

@fuyoo
Copy link

fuyoo commented Sep 29, 2021

官方文档都切换不到中文了。。。

@Zssaer
Copy link

Zssaer commented Sep 30, 2021

新的官方文档中文翻译不完整

@daiwanxing
Copy link
Contributor

请问在手动导入的情况下,如何为element-plus设置国际化,官方文档只提到了 app.use(elementPlus, { locale: zh_CN } ),但这不是我想要的。我用的打包工具是webpack

@daiwanxing
Copy link
Contributor

daiwanxing commented Oct 1, 2021

请问在手动导入的情况下,如何为element-plus设置国际化,官方文档只提到了 app.use(elementPlus, { locale: zh_CN } ),但这不是我想要的。我用的打包工具是webpack

我的element-plus版本是1.1.0-beta19

@sxzz
Copy link
Collaborator

sxzz commented Oct 3, 2021

@daiwanxing
请参考

import { createApp } from "vue";
import ElementPlus from "element-plus";
import cn from "element-plus/es/locale/lang/zh-cn";
import "element-plus/theme-chalk/index.css";

import dayjs from "dayjs";
import "dayjs/locale/zh-cn";

import App from "./App.vue";

dayjs.locale("zh-cn");

createApp(App)
  .use(ElementPlus, {
    locale: cn
  })
  .mount("#app");

@sxzz
Copy link
Collaborator

sxzz commented Oct 3, 2021

@Zssaer 新文档的中文翻译目前并未完成,需要靠大家一起贡献。

@sxzz
Copy link
Collaborator

sxzz commented Oct 3, 2021

@sxzz
Copy link
Collaborator

sxzz commented Oct 3, 2021

@GLFei 请新开一个 issue 阐述这个问题。

@sxzz
Copy link
Collaborator

sxzz commented Oct 3, 2021

Since this issue is too long and outdated, so I close it. If there is any bugs, please open a new issue or discussion.

@sxzz sxzz closed this as completed Oct 3, 2021
@sxzz sxzz unpinned this issue Oct 4, 2021
@zmzimpl
Copy link

zmzimpl commented Oct 19, 2021

@daiwanxing 请参考

import { createApp } from "vue";
import ElementPlus from "element-plus";
import cn from "element-plus/es/locale/lang/zh-cn";
import "element-plus/theme-chalk/index.css";

import dayjs from "dayjs";
import "dayjs/locale/zh-cn";

import App from "./App.vue";

dayjs.locale("zh-cn");

createApp(App)
  .use(ElementPlus, {
    locale: cn
  })
  .mount("#app");

这种是全局引入的形式,打包后体积增大了许多,请问按需引入时应该怎么写?

@sxzz
Copy link
Collaborator

sxzz commented Oct 19, 2021

@zmzimpl 请参考最新的官方文档。

@gzf6
Copy link

gzf6 commented Nov 3, 2021

el-config-provider 的 locale 的值不能使用 computed,例如:

const locale = computed(() => {
  switch (LocaleService.locale.value) {
    case 'en':
      return en;
    default:
      return zhCN;
  }
});
<el-config-provider :locale="locale">
...
</el-config-provider>

会提示错误:
类型“ComputedRef<{ name: string; el: { colorpicker: { confirm: string; clear: string; }; datepicker: { now: string; today: string; cancel: string; clear: string; confirm: string; selectDate: string; selectTime: string; ... 22 more ...; months: { ...; }; }; ... 10 more ...; popconfirm: { ...; }; }; }>”缺少类型“Language”中的以下属性: name, elts(2739)
index.d.ts(8, 5): 所需类型来自属性 "locale",在此处的 "IntrinsicAttributes & Partial<{}> & Omit<Readonly<{ locale?: unknown; } & { locale?: Language | undefined; }> & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>" 类型上声明该属性

@sxzz
Copy link
Collaborator

sxzz commented Nov 3, 2021

@gzf6 Could you please create a new issue about this problem?

@element-plus element-plus locked as too heated and limited conversation to collaborators Nov 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs discussion Needs further discussion from the community
Projects
None yet
Development

No branches or pull requests