123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <custom style="height:{{CustomBar}}px;">
- <bar class="fixed gradual-blue" style="height:{{CustomBar}}px;padding-top:{{StatusBar}}px;">
- <navigator class='action' open-type="navigateBack" delta="1" hover-class="none">
- <text class='icon-back'></text> 按钮 / 设计
- </navigator>
- </bar>
- </custom>
- <view class="padding-xl">
- <view class="box bg-white text-center radius {{block?'flex-direction':''}}">
- <button class='{{border?"line":"bg"}}{{bordersize?bordersize:""}}-{{color}} {{round?"round":""}} {{size}} {{shadow?"shadow":""}} {{block?"block":""}}'>我是一个按钮</button>
- </view>
- <view class='padding text-center'> class="<text wx:if="{{color}}">{{border?"line":"bg"}}{{bordersize?bordersize:""}}-{{color}} {{round?"round":""}} {{size}} {{shadow?"shadow":""}} {{block?"block":""}}</text>" </view>
- </view>
- <form-group class="margin-top" bindtap="showModal" data-target="ColorModal">
- <view class='title'>选择颜色</view>
- <view class='padding-sm bg-{{color}} solid radius shadow-blur'></view>
- </form-group>
- <form-group>
- <view class='title'>是否圆角</view>
- <switch class='sm' bindchange='SetRound'></switch>
- </form-group>
- <form-group>
- <view class='title'>选择尺寸</view>
- <radio-group bindchange='SetSize'>
- <label class='margin-left-sm'>
- <radio class='blue sm radio' value='sm'></radio>
- <text> 小</text>
- </label>
- <label class='margin-left-sm'>
- <radio class='blue sm radio' value='' checked></radio>
- <text> 中</text>
- </label>
- <label class='margin-left-sm'>
- <radio class='blue sm radio' value='lg'></radio>
- <text> 大</text>
- </label>
- </radio-group>
- </form-group>
- <form-group>
- <view class='title'>是否添加阴影</view>
- <switch class='sm' bindchange='SetShadow'></switch>
- </form-group>
- <form-group>
- <view class='title'>是否镂空</view>
- <switch class='sm' bindchange='SetBorder'></switch>
- </form-group>
- <form-group wx:if="{{border}}">
- <view class='title'>边框大小</view>
- <radio-group bindchange='SetBorderSize'>
- <label class='margin-left-sm'>
- <radio class='blue sm radio' value='' checked></radio>
- <text> 小</text>
- </label>
- <label class='margin-left-sm'>
- <radio class='blue sm radio' value='s'></radio>
- <text> 大</text>
- </label>
- </radio-group>
- </form-group>
- <!-- <form-group>
- <view class='title'>定义为块元素</view>
- <switch class='sm' bindchange='SetBlock'></switch>
- </form-group> -->
- <modal-box class="{{modalName=='ColorModal'?'show':''}}">
- <dialog>
- <bar class="justify-end">
- <view class='content'>选择颜色</view>
- <view class='action' bindtap='hideModal'>
- <text class='icon-close text-red'></text>
- </view>
- </bar>
- <view class='grid col-5 padding'>
- <view class='padding-xs' wx:for="{{ColorList}}" wx:key bindtap='SetColor' data-color='{{item.name}}'>
- <view class='padding-tb bg-{{item.name}} radius'> {{item.title}} </view>
- </view>
- </view>
- </dialog>
- </modal-box>
|