51 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Vue
		
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Vue
		
	
	
| <docs>
 | |
| ---
 | |
| order: 7
 | |
| title:
 | |
|   zh-CN: æ¯ææ´å¤å
厚é
įŊŽ
 | |
|   en-US: Support more content configuration
 | |
| ---
 | |
| 
 | |
| ## zh-CN
 | |
| 
 | |
| ä¸į§æ¯æå°éĸã头åãæ éĸåæčŋ°äŋĄæ¯įåĄįã
 | |
| 
 | |
| ## en-US
 | |
| 
 | |
| A Card that supports `cover`, `avatar`, `title` and `description`.
 | |
| 
 | |
| </docs>
 | |
| 
 | |
| <template>
 | |
|   <a-card hoverable style="width: 300px">
 | |
|     <template #cover>
 | |
|       <img
 | |
|         alt="example"
 | |
|         src="https://gw.alipayobjects.com/zos/rmsportal/JiqGstEfoWAOHiTxclqi.png"
 | |
|       />
 | |
|     </template>
 | |
|     <template #actions>
 | |
|       <setting-outlined key="setting" />
 | |
|       <edit-outlined key="edit" />
 | |
|       <ellipsis-outlined key="ellipsis" />
 | |
|     </template>
 | |
|     <a-card-meta title="Card title" description="This is the description">
 | |
|       <template #avatar>
 | |
|         <a-avatar src="https://joeschmoe.io/api/v1/random" />
 | |
|       </template>
 | |
|     </a-card-meta>
 | |
|   </a-card>
 | |
| </template>
 | |
| 
 | |
| <script lang="ts">
 | |
| import { SettingOutlined, EditOutlined, EllipsisOutlined } from '@ant-design/icons-vue';
 | |
| import { defineComponent } from 'vue';
 | |
| export default defineComponent({
 | |
|   components: {
 | |
|     SettingOutlined,
 | |
|     EditOutlined,
 | |
|     EllipsisOutlined,
 | |
|   },
 | |
| });
 | |
| </script>
 |