no message
Former-commit-id: d947e54093471ecc85fe9171d51aa64ad560ba9e [formerly d947e54093471ecc85fe9171d51aa64ad560ba9e [formerly d947e54093471ecc85fe9171d51aa64ad560ba9e [formerly d947e54093471ecc85fe9171d51aa64ad560ba9e [formerly 0639e27228bd4ce7583671ac6c5d1702c75c57b9 [formerly c263545cb8457cb5b8194fdbe6393a9e38ad26a6]]]]] Former-commit-id: 7a51bd5d5340e8df7112dedf6fb4bcc3209bf6ea Former-commit-id: b0e44c55c5a159403518bc96eeaab4ddce82b379 Former-commit-id: d061577549c79468a84ac65e541110d512de97e8 [formerly 7a35d2d01c56d0520cf62edc02cc5630d0232b49] Former-commit-id: 0aae62a7688da3c9b63b88e2c3416ec4faa8735a Former-commit-id: 2f1c380beb8720f3aa8e50099f467bd55a7f2259 Former-commit-id: 5b8f973daa4f9f9de742bf832784f8a86f037a9d Former-commit-id: 09933084b7cbc32ff54f0f158aecc352061e158d Former-commit-id: 445510e39e959b6b0451d1d47c6427f16361cd87
This commit is contained in:
@@ -7,7 +7,9 @@
|
|||||||
</el-card>
|
</el-card>
|
||||||
<!-- [ghost] 隐形的容器 -->
|
<!-- [ghost] 隐形的容器 -->
|
||||||
<div v-if="type === 'ghost'" class="d2-container-ghost">
|
<div v-if="type === 'ghost'" class="d2-container-ghost">
|
||||||
<slot name="header"/>
|
<el-card v-if="$slots.header">
|
||||||
|
<slot name="header"/>
|
||||||
|
</el-card>
|
||||||
<slot/>
|
<slot/>
|
||||||
</div>
|
</div>
|
||||||
<!-- [container-full] 填充 -->
|
<!-- [container-full] 填充 -->
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
29e192f50a90764c273aab5cb84c7d6fd0f91c68
|
2d3e492f0292e6cd7fcf39d98a7e99b72e7e82a9
|
||||||
19
src/pages/demo/components/container/ghost-header.vue
Normal file
19
src/pages/demo/components/container/ghost-header.vue
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<template>
|
||||||
|
<d2-container type="ghost">
|
||||||
|
<template slot="header">header</template>
|
||||||
|
<el-card shadow="never" class="d2-mt" style="width: 50%;">
|
||||||
|
<d2-markdown :source="doc"/>
|
||||||
|
</el-card>
|
||||||
|
</d2-container>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import doc from './md/doc-ghost.md'
|
||||||
|
export default {
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
doc
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@@ -1 +1 @@
|
|||||||
ffe496e6ad1cc8ce892d32163b8312a4d525aeed
|
0e1a920511ec4883219ee769e78996943f2925ea
|
||||||
Reference in New Issue
Block a user