[new feature] Popup: add round prop (#3781)

This commit is contained in:
neverland
2019-07-09 10:45:10 +08:00
committed by GitHub
parent 4b829ea7dd
commit 6bc836beab
9 changed files with 97 additions and 10 deletions
+3 -2
View File
@@ -7,6 +7,7 @@ export default createComponent({
mixins: [PopupMixin],
props: {
round: Boolean,
duration: Number,
transition: String,
position: {
@@ -36,7 +37,7 @@ export default createComponent({
return;
}
const { position, duration } = this;
const { round, position, duration } = this;
const transitionName =
this.transition ||
@@ -56,7 +57,7 @@ export default createComponent({
<div
vShow={this.value}
style={style}
class={bem({ [position]: position })}
class={bem({ round, [position]: position })}
onClick={this.onClick}
>
{this.slots()}