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

Table No Data text is not editable #1108

Open
kagankorkmaz opened this issue Sep 28, 2021 · 4 comments
Open

Table No Data text is not editable #1108

kagankorkmaz opened this issue Sep 28, 2021 · 4 comments

Comments

@kagankorkmaz
Copy link

Description

When there is no data in the table the text will be displayed is not editable it does not exist on the TableProps.
Moreover I internationalized the element-react to English by using
import { i18n } from "element-react"; import locale from "element-react/src/locale/lang/en"; i18n.use(locale);

And still the text displaying automatically is "暂无数据"

It is very annoying and I guess easily solvable. If you can help I will be so appreciated.

@kamxy
Copy link

kamxy commented Sep 29, 2021

same issue

@ceyhuncfc9
Copy link

Yeah I have this issue too, really frustrating actually. I didn't have this issue when I did the same configuration with the Vue.js package.

@AlexVagrant
Copy link
Contributor

AlexVagrant commented Oct 15, 2021

I think this link may help you: https://elemefe.github.io/element-react/index#/zh-CN/i18n

webpack.config.js

{
  plugins: [
    new webpack.NormalModuleReplacementPlugin(/element-react[\/\\]src[\/\\]locale[\/\\]lang[\/\\]zh-CN/, 'element-react/src/locale/lang/en')
  ]
}

@kagankorkmaz
Copy link
Author

kagankorkmaz commented Oct 16, 2021

I think this link may help you: https://elemefe.github.io/element-react/index#/zh-CN/i18n

webpack.config.js

{
  plugins: [
    new webpack.NormalModuleReplacementPlugin(/element-react[\/\\]src[\/\\]locale[\/\\]lang[\/\\]zh-CN/, 'element-react/src/locale/lang/en')
  ]
}

Hi Alex, thank you so much for your response. I solved that by copying repo and using it as a local npm module also by that way I solved some other issues that I gave up. They mostly forgot add typings, if you have similar problems with me I strongly suggest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants