app-button.wxml 2.4 KB

1
  1. <view class="app-view data-v-3d8ff863" style="{{'width:'+(''+(width?width:'100%')+(width?'rpx':''))+';'+('height:'+(setHeight+'rpx')+';')}}"><block wx:if="{{type==='important'}}"><button data-event-opts="{{[['tap',[['handleClick',['$event']]]]]}}" class="{{['data-v-3d8ff863','app-button','app-important',''+(round?'is-round':''),''+(disabled?'app-important-disabled is-disabled':''),theme+'-m-back ',theme,''+(arrangement==='column'?'app-button-column':arrangement==='row'?'app-button-row':'')]}}" style="{{'line-height:'+(setHeight-2+'rpx')+';'+('font-size:'+((fontSize?fontSize:32)+'rpx')+';')+('width:'+(''+(width?width:'100%')+(width?'rpx':''))+';')+('height:'+(setHeight+'rpx')+';')+('background-color:'+(''+(background?background:''))+';')+('border-radius:'+(''+(roundSize?roundSize:''))+';')+('color:'+(color)+';')+('padding:'+(padding)+';')}}" bindtap="__e"><slot></slot></button></block><block wx:else><block wx:if="{{type==='general'}}"><button data-event-opts="{{[['tap',[['handleClick',['$event']]]]]}}" class="{{['data-v-3d8ff863','app-button','app-general',''+(disabled?'app-general-disabled is-disabled':'app-general-disabled-not'),''+(round?'is-round':''),''+(arrangement==='column'?'app-button-column':arrangement==='row'?'app-button-row':'')]}}" style="{{'height:'+(setHeight+'rpx')+';'+('line-height:'+(setHeight-2+'rpx')+';')+('font-size:'+((fontSize?fontSize:32)+'rpx')+';')+('width:'+(''+(width?width:'100%')+(width?'rpx':''))+';')+('background-color:'+(''+(background?background:''))+';')+('border-radius:'+(''+(roundSize?roundSize:''))+';')+('color:'+(color)+';')+('padding:'+(padding)+';')}}" bindtap="__e"><slot></slot></button></block><block wx:else><button data-event-opts="{{[['tap',[['handleClick',['$event']]]]]}}" class="{{['data-v-3d8ff863','app-button','app-secondary',''+(round?'is-round':''),''+(disabled?'app-secondary-disabled is-disabled':''),theme+'-m-border',theme+'-m-text',theme+'-m-back ',theme,''+(arrangement==='column'?'app-button-column':arrangement==='row'?'app-button-row':'')]}}" style="{{'height:'+(setHeight+'rpx')+';'+('line-height:'+(setHeight-2+'rpx')+';')+('font-size:'+((fontSize?fontSize:32)+'rpx')+';')+('width:'+(''+(width?width:'100%')+(width?'rpx':''))+';')+('background-color:'+(''+(background?background:''))+';')+('border-radius:'+(''+(roundSize?roundSize:''))+';')+('border-color:'+(''+(borderColor?borderColor:''))+';')+('color:'+(color)+';')+('padding:'+(padding)+';')}}" bindtap="__e"><slot></slot></button></block></block></view>