feat: migrate Swipe component

This commit is contained in:
chenjiahan
2020-08-17 10:12:56 +08:00
parent 79511fe331
commit f978642277
5 changed files with 20 additions and 15 deletions
+2 -2
View File
@@ -56,8 +56,8 @@ export default createComponent({
render() {
return (
<div class={bem()} style={this.style} {...{ on: this.$listeners }}>
{this.shouldRender && this.slots()}
<div class={bem()} style={this.style}>
{this.shouldRender ? this.$slots.default?.() : null}
</div>
);
},