feat(Popup): add close-icon-position prop (#4507)

This commit is contained in:
neverland
2019-09-19 17:14:14 +08:00
committed by GitHub
parent 68da81a51a
commit 971b218873
18 changed files with 139 additions and 58 deletions
+5 -1
View File
@@ -17,6 +17,10 @@ export default createComponent({
type: String,
default: 'cross'
},
closeIconPosition: {
type: String,
default: 'top-right'
},
position: {
type: String,
default: 'center'
@@ -73,7 +77,7 @@ export default createComponent({
>
{this.slots()}
{this.closeable && (
<Icon name={this.closeIcon} class={bem('close-icon')} onClick={this.close} />
<Icon name={this.closeIcon} class={bem('close-icon', this.closeIconPosition)} onClick={this.close} />
)}
</div>
</transition>