From 24e8e82f3462b7ef2f97235c7293450c5d9be636 Mon Sep 17 00:00:00 2001 From: okxiaoliang4 <353742991@qq.com> Date: Tue, 10 Nov 2020 21:46:38 +0800 Subject: [PATCH] feat(Popup): add transition-appear prop (#7525) * feat:(Popup): add appear prop * docs(Popup): add appear prop * feat(Popup): add transition-appear prop --- src/mixins/popup/index.js | 2 ++ src/popup/README.md | 1 + src/popup/README.zh-CN.md | 1 + src/popup/index.js | 1 + 4 files changed, 5 insertions(+) diff --git a/src/mixins/popup/index.js b/src/mixins/popup/index.js index a0182e133..628819e93 100644 --- a/src/mixins/popup/index.js +++ b/src/mixins/popup/index.js @@ -18,6 +18,8 @@ import { PortalMixin } from '../portal'; import { CloseOnPopstateMixin } from '../close-on-popstate'; export const popupMixinProps = { + // Initial rendering animation + transitionAppear: Boolean, // whether to show popup value: Boolean, // whether to show overlay diff --git a/src/popup/README.md b/src/popup/README.md index 6956e1e06..7f66d523e 100644 --- a/src/popup/README.md +++ b/src/popup/README.md @@ -109,6 +109,7 @@ export default { | Attribute | Description | Type | Default | | --- | --- | --- | --- | | v-model (value) | Whether to show popup | _boolean_ | `false` | +| transition-appear | Initial rendering animation | _boolean_ | `false` | | overlay | Whether to show overlay | _boolean_ | `true` | | position | Can be set to `top` `bottom` `right` `left` | _string_ | `center` | | overlay-class | Custom overlay class | _string_ | - | diff --git a/src/popup/README.zh-CN.md b/src/popup/README.zh-CN.md index 90f1ce5d2..93757bad8 100644 --- a/src/popup/README.zh-CN.md +++ b/src/popup/README.zh-CN.md @@ -120,6 +120,7 @@ export default { | 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | | v-model (value) | 是否显示弹出层 | _boolean_ | `false` | +| transition-appear | 初始渲染动画 | _boolean_ | `false` | | overlay | 是否显示遮罩层 | _boolean_ | `true` | | position | 弹出位置,可选值为 `top` `bottom` `right` `left` | _string_ | `center` | | overlay-class | 自定义遮罩层类名 | _string_ | - | diff --git a/src/popup/index.js b/src/popup/index.js index 000db4b1f..d10199839 100644 --- a/src/popup/index.js +++ b/src/popup/index.js @@ -64,6 +64,7 @@ export default createComponent({ return (