热更新

This commit is contained in:
2024-06-13 10:04:13 +08:00
parent e595e034dc
commit 7eaaf64a22
1180 changed files with 70026 additions and 731709 deletions

View File

@@ -4,14 +4,18 @@
<view class="left">
<view v-for="(v,i) in iconList" class="icon_item" v-if="iconList.length>0">
<uni-icons :type="v.icon" size="22" :color="v.infoColor" style="margin:0 auto"></uni-icons>
<u-icon :name="v.icon" :color="v.infoColor" size="22" v-if="v.iconType" style="margin:0 auto" @click="clickIcon(v)"
></u-icon>
<uni-icons :type="v.icon" size="22" :color="v.infoColor" style="margin:0 auto" v-else> </uni-icons>
<view :style="`color:${v.infoColor};`">{{ v.text }}</view>
</view>
<slot name="leftSlot"></slot>
</view>
<view class="right">
<view class="button" v-for="(v,i) in customButton" :style="`backgroundColor:${v.backgroundColor};width:${v.width}`" @click="submit">
<view class="button" v-for="(v,i) in customButton" :style="`background:${v.backgroundColor} !important;color:${v.color};width:${v.width}`" @click="submit(v)">
{{ v.text }}
</view>
@@ -57,8 +61,11 @@ export default {
},
methods: {
submit(){
this.$emit('submit')
submit(v){
this.$emit('submit',v)
},
clickIcon(v){
this.$emit('clickIcon',v)
},
showPreview(e) {
console.log('e at line 56:', e)
@@ -227,9 +234,13 @@ display: flex;
float: right;
width: 240rpx;
border-radius: 100rpx;
line-height: 80rpx;
line-height: 70rpx;
text-align: center;
background: linear-gradient(90deg, rgb(254, 96, 53), rgb(239, 18, 36)); color: rgb(255, 255, 255);
margin-left: 20rpx;
background: linear-gradient(90deg, rgb(254, 96, 53), rgb(239, 18, 36));
color: rgb(255, 255, 255);
}
.icon_item{