no message
Former-commit-id: afef3af60139bd559aa150052fc3a72ec2f384a4 Former-commit-id: e2b324d8476ca2a52c625f2aee16972708a43bec Former-commit-id: ab3a3d9097c684c0fb1b54b1a5f228157b2f81ff
This commit is contained in:
@@ -3,16 +3,16 @@
|
||||
高度根据内容适应
|
||||
|
||||
```
|
||||
<Container>
|
||||
<d2-container>
|
||||
主体内容
|
||||
</Container>
|
||||
</d2-container>
|
||||
```
|
||||
|
||||
使用 `slot`
|
||||
|
||||
```
|
||||
<Container>
|
||||
<d2-container>
|
||||
<template slot="header">我是插入到 header 中的内容</template>
|
||||
主体内容
|
||||
</Container>
|
||||
</d2-container>
|
||||
```
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
```
|
||||
<template>
|
||||
<Container type="card-full">
|
||||
<d2-container type="card-full">
|
||||
<template slot="header">
|
||||
可选的 header 内容 ...
|
||||
</template>
|
||||
@@ -14,7 +14,7 @@
|
||||
<template slot="footer">
|
||||
可选的 footer 内容 ...
|
||||
</template>
|
||||
</Container>
|
||||
</d2-container>
|
||||
</template>
|
||||
```
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
不显示任何背景色和边框
|
||||
|
||||
```
|
||||
<Container type="ghost">
|
||||
<d2-container type="ghost">
|
||||
主体内容
|
||||
</Container>
|
||||
</d2-container>
|
||||
```
|
||||
@@ -15,12 +15,12 @@
|
||||
|
||||
```
|
||||
<template>
|
||||
<Container>
|
||||
<d2-container>
|
||||
<template slot="header">
|
||||
可选的 header 内容 ...
|
||||
</template>
|
||||
主体内容 ...
|
||||
</Container>
|
||||
</d2-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user