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

使用命令式 Message 时需手动引入 icon 相关的 css 文件 #26

Closed
NoraH1to opened this issue Jul 9, 2021 · 4 comments
Closed
Labels
enhancement New feature or request

Comments

@NoraH1to
Copy link

NoraH1to commented Jul 9, 2021

不手动导入 css 文件:

import { ElMessage } from 'element-plus';

ElMessage.error('测试'); // 缺少左侧 Icon

手动导入 css 文件:

import { ElMessage } from 'element-plus';
import 'element-plus/packages/theme-chalk/src/icon.scss';

ElMessage.error('测试'); // 左侧 Icon 正常显示
@NoraH1to
Copy link
Author

NoraH1to commented Jul 9, 2021

是否可以加入新的特性,同时引入新的配置项来配置此类场景?

@anncwb anncwb added the enhancement New feature or request label Jul 18, 2021
@anncwb
Copy link
Collaborator

anncwb commented Aug 2, 2021

我这边看是有的,你可以给我个步骤?

@anncwb
Copy link
Collaborator

anncwb commented Aug 2, 2021

image

@NoraH1to
Copy link
Author

NoraH1to commented Aug 3, 2021

该问题在 element-plus1.0.2-beta.54 版本出现

升级到 #29 中的 1.0.2-beta.63 版本并引入基础样式后,问题不再出现

@NoraH1to NoraH1to closed this as completed Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants