-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Comments
你可以不用config-provider,这个是可以自定义的全局配置
|
那么我也可以全局定义button的size是吗,可以生效于生成式组件内的el组件吗 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Type:
Component
Environment
3.4.15
2.5.3
chrome/mac
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)
The text was updated successfully, but these errors were encountered: