Просмотр исходного кода

1、修改dk-save-button组件

zhoux 1 год назад
Родитель
Сommit
56fa46e4a5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      components/dkbase/dk-save-button/dk-save-button.wxml

+ 1 - 1
components/dkbase/dk-save-button/dk-save-button.wxml

@@ -30,7 +30,7 @@
     <!-- <view style="display: flex;width: {{contentList && contentList.length > 0?'50%':'100%'}};justify-content: {{btnRightFlag?'flex-end':'left'}};"> -->
     <view style="display: flex;width: {{contentList && contentList.length > 0?'auto':'100%'}};justify-content: {{btnRightFlag?'flex-end':'left'}};min-width:236rpx;">
       <view class="btn-class" style="margin-right: {{(btnAutoWidthFlag && index != buttonList.length - 1)?'20rpx':''}};  width:{{btnAutoWidthFlag?(100/buttonList.length + '%'): (item.width?item.width:'156rpx')}};" wx:for="{{buttonList}}" wx:for-item="item" data-item="{{item}}" wx:key="index">
-        <van-button size="large" plain="{{item.plain}}" data-item="{{item}}" color="{{item.color?item.color:'#3E69F6'}}" custom-style="height:88rpx;border-radius:15rpx ;" bind:click="submit" type="info">{{item.title}}
+        <van-button size="large" plain="{{item.plain}}" data-item="{{item}}" color="{{item.color?item.color:'#3E69F6'}}" custom-style="height:88rpx;border-radius:15rpx ; color:{{item.plain?'#3E69F6':'#FFFFFF'}};background:{{item.plain?'#FFFFFF':'#3E69F6'}}" bind:click="submit" type="info">{{item.title}}
         </van-button>
       </view>
     </view>