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

组件 Card.Meta 属性description和title 的类型问题 #83

Closed
1 task
iczer opened this issue Jul 27, 2018 · 8 comments
Closed
1 task

组件 Card.Meta 属性description和title 的类型问题 #83

iczer opened this issue Jul 27, 2018 · 8 comments

Comments

@iczer
Copy link

iczer commented Jul 27, 2018

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

What problem does this feature solve?

官方API文档中 Card.Meta 属性description和title 类型为slot,但查看源码后发现该属性实际为String。希望更新此属性类型为slot。

What does the proposed API look like?

期望API同文档保持一致

@tangjinzhou
Copy link
Member

都支持的

@iczer
Copy link
Author

iczer commented Jul 27, 2018

目前vue-antd-ui版本1.0.0,Card.meta 里 slot="description" 组件无法显示,不知什么原因。如下,description组件无法显示:

 <a-card :hoverable="true">
  <a-card-meta :title="item.title">
    <a-avatar class="card-avatar" slot="avatar" :src="item.avatar" size="large" />
    <div slot="description">{{item.content}}</div>
  </a-card-meta>
  <ul class="ant-card-actions" slot="actions">
     <li><a >操作一</a></li>
     <li><a >操作二</a></li>
  </ul>
 </a-card>

@tangjinzhou
Copy link
Member

@wangxueliang

@iczer
Copy link
Author

iczer commented Jul 27, 2018

附上显示效果图,图中标记处应该显示slot:description组件,实际没有渲染:
image

@tangjinzhou
Copy link
Member

8560f0

@iczer
Copy link
Author

iczer commented Jul 27, 2018

感谢

@iczer iczer closed this as completed Jul 27, 2018
@tangjinzhou
Copy link
Member

@lock
Copy link

lock bot commented Jul 27, 2019

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants