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

[Component] [button, input] Config Provider #16423

Open
765511642 opened this issue Apr 9, 2024 · 2 comments
Open

[Component] [button, input] Config Provider #16423

765511642 opened this issue Apr 9, 2024 · 2 comments

Comments

@765511642
Copy link

Bug Type: Component

Environment

  • Vue Version: 3.4.15
  • Element Plus Version: 2.5.3
  • Browser / OS: chrome/mac
  • Build Tool: Vite

Reproduction

Related Component

  • el-button
  • el-input

Reproduction Link

Element Plus Playground

Steps to reproduce

打开自定义组件中的Dialog,其中el-button和el-input的size设置不生效,有设置config-provider,按需引入方式;详情请看-提供的复现环境。

What is Expected?

路由视图展示为home路由页面,home路由页面运行template组件,希望template.vue中创建的函数组件内的el-button和el-input组件全局配置的size生效、el-dialog的全局配置Zindex生效。

The routing view is displayed as the home routing page. The home routing page runs the template component, hoping that the global configuration size of the el button and el input components within the function components created in template.vue will take effect, and the global configuration Zindex of the el log will take effect

What is actually happening?

生成函数式组件中的el组件,全局配置设置不生效,采用的size为默认尺寸,Zindex为2000;

Generate el components in functional components, global configuration settings are not effective, and the default size is used, with a Zindex of 2000;

Additional comments

(empty)

@zlecheng
Copy link

你可以不用config-provider,这个是可以自定义的全局配置
main.js中配置

import { ElTable } from 'element-plus';
// 表格列内容超出显示省略号
ElTable.TableColumn.props.showOverflowTooltip = {
  type: Boolean,
  default: true
};

@765511642
Copy link
Author

那么我也可以全局定义button的size是吗,可以生效于生成式组件内的el组件吗

@github-actions github-actions bot removed the inactive label May 21, 2024
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

2 participants