|
@ -13,8 +13,11 @@ |
|
|
<image class="icon" :src="icon" /> |
|
|
<image class="icon" :src="icon" /> |
|
|
</slot> |
|
|
</slot> |
|
|
<slot name="content"> |
|
|
<slot name="content"> |
|
|
<rich-text class="content" :nodes="content" :style="{'color': textColor}" :key='count'> |
|
|
<text class="content" :style="{'color': textColor?textColor:'#000'}" v-if="textColor"> |
|
|
</rich-text> |
|
|
{{content}} |
|
|
|
|
|
</text> |
|
|
|
|
|
<rich-text class="content" :nodes="content" v-else></rich-text> |
|
|
|
|
|
|
|
|
</slot> |
|
|
</slot> |
|
|
<view class='split_line'></view> |
|
|
<view class='split_line'></view> |
|
|
<slot name="button"> |
|
|
<slot name="button"> |
|
@ -63,7 +66,7 @@ |
|
|
seconds: 0, |
|
|
seconds: 0, |
|
|
success: () => {} ,// 回调方法 |
|
|
success: () => {} ,// 回调方法 |
|
|
version:"", |
|
|
version:"", |
|
|
textColor:'#000', |
|
|
textColor:'', |
|
|
count:0 |
|
|
count:0 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -425,7 +428,7 @@ |
|
|
if (data.textColor) { |
|
|
if (data.textColor) { |
|
|
this.textColor = data.textColor |
|
|
this.textColor = data.textColor |
|
|
} else { |
|
|
} else { |
|
|
this.textColor = '#000' |
|
|
this.textColor = '' |
|
|
} |
|
|
} |
|
|
if (data.showConfirmButton === false || data.showConfirmButton === true) { |
|
|
if (data.showConfirmButton === false || data.showConfirmButton === true) { |
|
|
this.showConfirmButton = data.showConfirmButton |
|
|
this.showConfirmButton = data.showConfirmButton |
|
|