diff --git a/docs/zh/components/container.md b/docs/zh/components/container.md index 953acd30..e5dabe9a 100644 --- a/docs/zh/components/container.md +++ b/docs/zh/components/container.md @@ -9,12 +9,6 @@ | type | 容器类型 | 非 | String | card ghost full | card | | responsive | 响应式宽度 | 非 | Boolean | | false | -## 事件 - -| 事件名 | 介绍 | 回调参数 | -| --- | --- | --- | -| resized | type 为 full 时页面完成尺寸计算会触发此事件 | | - ::: tip `responsive` 参数设置只在 `type` 等于 `card` 或 `ghost` 时生效 ::: diff --git a/src/components/core/d2-container/components/d2-container-full.vue b/src/components/core/d2-container/components/d2-container-full.vue index 7cb9cc16..7432efcc 100644 --- a/src/components/core/d2-container/components/d2-container-full.vue +++ b/src/components/core/d2-container/components/d2-container-full.vue @@ -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 () { diff --git a/src/components/core/d2-container/index.vue b/src/components/core/d2-container/index.vue index 5119d139..e521387a 100644 --- a/src/components/core/d2-container/index.vue +++ b/src/components/core/d2-container/index.vue @@ -11,7 +11,7 @@ - +