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

Select等类似组件的空数据状态样式,个人觉得不好看 #14204

Closed
1 task done
YoungHearts opened this issue Jan 9, 2019 · 14 comments
Closed
1 task done
Assignees
Labels
🐛 Bug Ant Design Team had proved that this is a bug.

Comments

@YoungHearts
Copy link

YoungHearts commented Jan 9, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

Select等类似组件的空数据状态样式,个人觉得不好看

What does the proposed API look like?

建议Select等类似组件空数据状态样式要么修改一下,要么不要图

image

@yutingzhao1991
Copy link
Contributor

@zombieJ 反馈给设计师?

@ant-design-bot
Copy link
Contributor

Hello @YoungHearts. Please provide a online reproduction by forking this link https://u.ant.design/codesandbox-repro or a minimal GitHub repository. Issues labeled by Need Reproduce will be closed if no activities in 7 days.

你好 @YoungHearts, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。7 天内未跟进的 issue 将会被自动关闭。

@afc163 afc163 added the 🤔 Need Reproduce We cannot reproduce your problem label Jan 9, 2019
@afc163
Copy link
Member

afc163 commented Jan 9, 2019

@zombieJ
Copy link
Member

zombieJ commented Jan 9, 2019

看起来像是丢样式,能给个重现不?
2019-01-09 12 16 27

@afc163
Copy link
Member

afc163 commented Jan 9, 2019

我们的默认图片大小也可以再缩小一点~

@stonexer
Copy link

stonexer commented Jan 9, 2019

项目里样式不太对,看了下没有引入 .ant-empty 的样式。模拟了只引入 Select 组件时的样式。

https://codesandbox.io/s/n04nor080

@afc163
Copy link
Member

afc163 commented Jan 9, 2019

@afc163 afc163 added 🐛 Bug Ant Design Team had proved that this is a bug. and removed 🤔 Need Reproduce We cannot reproduce your problem labels Jan 9, 2019
@zombieJ
Copy link
Member

zombieJ commented Jan 9, 2019

我们的默认图片大小也可以再缩小一点~

popup 里的图片已经缩过一圈了,再小的话可能需要再出一个图了。

@effectivecui
Copy link

为啥我回滚到3.9.2版本,还是会出现这种问题?这个样式不是后面的版本新上的吗?之前3.9.2版本我没有见到这种情况啊?你们自己有AB开关?

@zombieJ zombieJ assigned zombieJ and unassigned yutingzhao1991 Jan 9, 2019
@zombieJ
Copy link
Member

zombieJ commented Jan 9, 2019

为啥我回滚到3.9.2版本,还是会出现这种问题?这个样式不是后面的版本新上的吗?之前3.9.2版本我没有见到这种情况啊?你们自己有AB开关?

npm list 一下看看是不是引入多个 antd 版本了。这个 empty 是 3.12.x 新加的。

@effectivecui
Copy link

effectivecui commented Jan 9, 2019

为啥我回滚到3.9.2版本,还是会出现这种问题?这个样式不是后面的版本新上的吗?之前3.9.2版本我没有见到这种情况啊?你们自己有AB开关?

npm list 一下看看是不是引入多个 antd 版本了。这个 empty 是 3.12.x 新加的。

感谢!已解决。
另外提醒各位开发者:
指定版本:比如1.2.2,遵循“大版本.次要版本.小版本”的格式规定,安装时只安装指定版本。
波浪号(tilde)+指定版本:比如~1.2.2,表示安装1.2.x的最新版本(不低于1.2.2),但是不安装1.3.x,也就是说安装时不改变大版本号和次要版本号。
插入号(caret)+指定版本:比如ˆ1.2.2,表示安装1.x.x的最新版本(不低于1.2.2),但是不安装2.x.x,也就是说安装时不改变大版本号。需要注意的是,如果大版本号为0,则插入号的行为与波浪号相同,这是因为此时处于开发阶段,即使是次要版本号变动,也可能带来程序的不兼容。
latest:安装最新版本

@afc163
Copy link
Member

afc163 commented Jan 9, 2019

https://semver.org/lang/zh-CN/

@effectivecui 别轻易扣帽子啊...😂 我们公信力已经见底了。

@YoungHearts
Copy link
Author

YoungHearts commented Jan 9, 2019

@zombieJ样式依赖漏了.https://github.com/ant-design/ant-design/blob/master/components/select/style/index.tsx#L4

@stonexer感谢重现!

哦,确实是select组件没有引入相关样式,等你们更新后我再用

@zombieJ zombieJ mentioned this issue Jan 9, 2019
13 tasks
@effectivecui
Copy link

https://semver.org/lang/zh-CN/

@effectivecui 别轻易扣帽子啊...😂 我们公信力已经见底了。

抱歉抱歉

@zombieJ zombieJ closed this as completed in b826ecf Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug.
Projects
None yet
Development

No branches or pull requests

7 participants