button.wxml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <custom style="height:{{CustomBar}}px;">
  2. <bar class="fixed gradual-blue" style="height:{{CustomBar}}px;padding-top:{{StatusBar}}px;">
  3. <navigator class='action' open-type="navigateBack" delta="1" hover-class="none">
  4. <text class='icon-back'></text> 按钮
  5. </navigator>
  6. <navigator class='action' url='design' hover-class="none">
  7. <text class='icon-skinfill'></text>
  8. <text class="text-df">设计</text>
  9. </navigator>
  10. </bar>
  11. </custom>
  12. <bar>
  13. <view class='action'>
  14. <text class='icon-title text-blue'></text>按钮形状
  15. </view>
  16. </bar>
  17. <view class="padding flex flex-wrap justify-between align-center">
  18. <button>默认</button>
  19. <button class='round'>圆角</button>
  20. <button class='icon'>
  21. <text class='icon-emojifill'></text>
  22. </button>
  23. </view>
  24. <bar class="margin-top ">
  25. <view class='action'>
  26. <text class='icon-title text-blue'></text>按钮尺寸
  27. </view>
  28. </bar>
  29. <view class="padding flex flex-wrap justify-between align-center">
  30. <button class='round sm'>小尺寸</button>
  31. <button class='round'>默认</button>
  32. <button class='round lg'>大尺寸</button>
  33. </view>
  34. <bar class="margin-top ">
  35. <view class='action'>
  36. <text class='icon-title text-blue'></text>按钮颜色
  37. </view>
  38. <view class='action'>
  39. <text class='text-df'>阴影</text>
  40. <switch class='sm' bindchange='SetShadow'></switch>
  41. </view>
  42. </bar>
  43. <view class='grid col-5 padding-sm'>
  44. <view class='margin-tb-sm text-center' wx:for="{{ColorList}}" wx:key>
  45. <button class='round bg-{{item.name}} {{shadow?"shadow":""}}'>{{item.title}}</button>
  46. </view>
  47. </view>
  48. <bar class="margin-top ">
  49. <view class='action'>
  50. <text class='icon-title text-blue'></text>镂空按钮
  51. </view>
  52. <view class='action'>
  53. <radio-group bindchange='SetBorderSize'>
  54. <label class='margin-left-sm'>
  55. <radio class='blue sm radio' value='' checked></radio>
  56. <text> 小</text>
  57. </label>
  58. <label class='margin-left-sm'>
  59. <radio class='blue sm radio' value='s'></radio>
  60. <text> 大</text>
  61. </label>
  62. </radio-group>
  63. </view>
  64. </bar>
  65. <view class='grid col-5 padding-sm'>
  66. <view class='margin-tb-sm text-center' wx:for="{{ColorList}}">
  67. <button class='round line{{bordersize?bordersize:""}}-{{item.name}} {{shadow?"shadow":""}}'>{{item.title}}</button>
  68. </view>
  69. </view>
  70. <bar class="margin-top ">
  71. <view class='action'>
  72. <text class='icon-title text-blue'></text>块状按钮
  73. </view>
  74. </bar>
  75. <view class="padding flex flex-direction">
  76. <button class='bg-grey lg'>玄灰</button>
  77. <button class='bg-red margin-tb-sm lg'>嫣红</button>
  78. </view>
  79. <bar class="margin-top ">
  80. <view class='action'>
  81. <text class='icon-title text-blue'></text>无效状态
  82. </view>
  83. </bar>
  84. <view class="padding">
  85. <button class='block bg-blue margin-tb-sm lg' disabled type=''>无效状态</button>
  86. <button class='block line-blue margin-tb-sm lg' disabled>无效状态</button>
  87. </view>
  88. <bar class="margin-top ">
  89. <view class='action'>
  90. <text class='icon-title text-blue'></text>按钮加图标
  91. </view>
  92. </bar>
  93. <view class="padding-xl">
  94. <button class='block line-orange lg'>
  95. <text class='icon-upload'></text> 图标</button>
  96. <button class='block bg-blue margin-tb-sm lg'>
  97. <text class='icon-loading2 iconfont-spin'></text> 加载</button>
  98. <button class='block bg-black margin-tb-sm lg' loading> 微信加载</button>
  99. </view>