Commit f6504dcc by xiexiaoqin

fix: popup complete can't reach slot scope

parent e57e46a2
...@@ -65,10 +65,3 @@ ...@@ -65,10 +65,3 @@
font-size: 24rpx; font-size: 24rpx;
color:rgba(25, 31, 37, 1); color:rgba(25, 31, 37, 1);
} }
.complete{
position: absolute;
color:#3070F2;
font-size: 32rpx;
right:32rpx;
top: 32rpx;
}
\ No newline at end of file
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
<text onTap="onMaskTap" class="iconfont iconicon_slide"></text> <text onTap="onMaskTap" class="iconfont iconicon_slide"></text>
</view> </view>
<view class="title" a:if="{{title}}">{{title}}</view> <view class="title" a:if="{{title}}">{{title}}</view>
<view class="complete" a:if='{{complete}}' onTap='complete'>{{complete}}</view>
<slot/> <slot/>
</view> </view>
</view> </view>
\ No newline at end of file
...@@ -16,12 +16,6 @@ Component({ ...@@ -16,12 +16,6 @@ Component({
if (onClose) { if (onClose) {
onClose(); onClose();
} }
},
complete(){
var onComplete = this.props.onComplete;
if (onComplete) {
onComplete();
}
} }
} }
}); });
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment