<view class="button {{className}} {{isDisabled ? 'disabled' : ''}}">
  <view class="button__text">
    <text max-lines="{{index}}" overflow="fade">
      <slot></slot>
    </text>
  </view>
  <button 
    class="button__inner" 
    form-type="submit" 
    bind:tap="onSubmit" 
    disabled="{{isDisabled}}"
    hover-class="{{isDisabled ? '' : 'hover'}}"
  >
    <t-loading wx:if="{{loading}}" theme="spinner" size="36rpx" slot="note" />
    <block wx:else>{{list[index].name}}</block>
  </button>
</view>