|
@@ -16,7 +16,7 @@
|
|
|
<view class="yc-fab-item" :class="{'yc-active':isOpen}" :style="{width:width+'rpx',height:height+'rpx',borderRadius:radius,background:bgColor,color:color}"
|
|
|
@tap.stop="handleClick(-1)">
|
|
|
<view class="yc-fab-icon yc-icon-plus" v-if="!icon && !text"></view>
|
|
|
- <view class="yc-fab-icon" v-if="text && !icon">{{text}}</view>
|
|
|
+ <view class="yc-fab-icon" :style="style" v-if="text && !icon">{{text}}</view>
|
|
|
<view class="yc-fab-icon" v-if="icon" :style="{opacity:0.5,backgroundSize:'contain',width:width+'rpx',height:height+'rpx',borderRadius:radius,backgroundImage: 'url('+icon+')'}"></view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -101,14 +101,22 @@
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
},
|
|
|
+ style:{
|
|
|
+ type: String,
|
|
|
+ default: ""
|
|
|
+ }
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
isOpen: false,
|
|
|
- hidden: true
|
|
|
+ hidden: true,
|
|
|
+ fab_style: '',
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
+ if (this.Dever.source == 'h5' && uni.getSystemInfoSync().platform == 'ios') {
|
|
|
+ //this.fab_style = 'margin-left:20rpx';
|
|
|
+ }
|
|
|
if (this.icon) {
|
|
|
this.bgColor = '';
|
|
|
}
|