no message
Former-commit-id: f9b1dcc686e727bd5dd83b5764e2cd0983a344d4 [formerly f9b1dcc686e727bd5dd83b5764e2cd0983a344d4 [formerly f9b1dcc686e727bd5dd83b5764e2cd0983a344d4 [formerly f9b1dcc686e727bd5dd83b5764e2cd0983a344d4 [formerly d617d3a2cff891cb3530b6487b96e62fa1e9a56b [formerly 5ebd248c8e6fc71258f7497e6861e3b12df8ff4d]]]]] Former-commit-id: 7e192fc2e8275d11d9dde20a25c24e208b92f330 Former-commit-id: 727b71a95c4c2dbcd2409f8d0bb129573ac2ba0d Former-commit-id: 36cc1a9a946196ac72ddc572aa3a189e08435791 [formerly 0051ece832577f08d0b32be7de901bb8b8d9129e] Former-commit-id: c88e08a200959269e97f2f29470cbfa57fe8ae3c Former-commit-id: af64a81ea44b620eb5e88d95ca85fbe65981de22 Former-commit-id: 0f135d9be7792f9a8d38cf361ab834f880c11680 Former-commit-id: 66f0115189d29850594ba700159d2b6984174837 Former-commit-id: 0a7a4e24f9c494ce623f81a96ce0ecd36d076664
This commit is contained in:
parent
af9e359845
commit
bff410ca27
|
|
@ -9,12 +9,6 @@
|
|||
| type | 容器类型 | 非 | String | card ghost full | card |
|
||||
| responsive | 响应式宽度 | 非 | Boolean | | false |
|
||||
|
||||
## 事件
|
||||
|
||||
| 事件名 | 介绍 | 回调参数 |
|
||||
| --- | --- | --- |
|
||||
| resized | type 为 full 时页面完成尺寸计算会触发此事件 | |
|
||||
|
||||
::: tip
|
||||
`responsive` 参数设置只在 `type` 等于 `card` 或 `ghost` 时生效
|
||||
:::
|
||||
|
|
|
|||
|
|
@ -47,9 +47,6 @@ export default {
|
|||
mounted () {
|
||||
this.headerHeight = this.$slots.header ? this.$refs.header.offsetHeight : 0
|
||||
this.footerHeight = this.$slots.footer ? this.$refs.footer.offsetHeight : 0
|
||||
this.$nextTick(() => {
|
||||
this.$emit('resized')
|
||||
})
|
||||
},
|
||||
computed: {
|
||||
cardStyle () {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
<slot/>
|
||||
</div>
|
||||
<!-- [container-full] 撑满 -->
|
||||
<d2-container-full v-if="type === 'full'" :right="20" :bottom="0" @resized="$emit('resized')">
|
||||
<d2-container-full v-if="type === 'full'" :right="20" :bottom="0">
|
||||
<slot v-if="$slots.header" name="header" slot="header"/>
|
||||
<slot/>
|
||||
<slot v-if="$slots.footer" name="footer" slot="footer"/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue