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

1.0版本toast图标不显示 #846

Closed
Gj-tutu opened this issue Feb 20, 2017 · 4 comments
Closed

1.0版本toast图标不显示 #846

Gj-tutu opened this issue Feb 20, 2017 · 4 comments

Comments

@Gj-tutu
Copy link

Gj-tutu commented Feb 20, 2017

本地环境

linux

  • antd-mobile 版本: 1.0.0
  • 浏览器 (或标明是 react-native) 及其版本:chrome

你做了什么?

Toast.loading('加载中...', 0)

你期待的结果是:

像官网一样显示

实际上的结果:

image
image

先用了0.9.14版本,显示也发生问题,loading的图标不会转动,就更新成了1.0版本,图标就不显示

@silentcloud
Copy link
Contributor

silentcloud commented Feb 20, 2017

有没有配置 svg loader?按照这个来应该没问题 https://github.com/ant-design/ant-design-mobile/blob/master/components/icon/index.md#如何使用-web

@Gj-tutu
Copy link
Author

Gj-tutu commented Feb 20, 2017

我用webpack打包的
{
test: /.(png|jpe?g|gif|svg)(?.*)?$/,
loader: 'url',
query: {
limit: 10240,
name: img/[name].[${config.compiler_hash_type}].[ext]
}
}
添加了svg

@Gj-tutu
Copy link
Author

Gj-tutu commented Feb 20, 2017

多谢,有劳了,文档没找仔细。。

@paranoidjk
Copy link
Contributor

paranoidjk commented Feb 22, 2017

svg icon 的使用文档已更新,进行了配置的简化和尽可能兼容到windows以及cnpm等各种情况

https://mobile.ant.design/components/icon

ref #866

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

3 participants