<page-plugin isAuth="1" loading="{{loading}}" is-login="{{isLogin}}" bind:handleLogin="handleLogin">
  <t-input placeholder="类型名称" focus value="{{params.order_cate_name}}" data-key="order_cate_name"
    bind:change="onChange" align="right" style="padding-left: 0;padding-right: 0;">
    <view slot="label" class="required">类型名称 </view>
  </t-input>
  <!-- <t-cell title="是否默认" align="right" style="padding-left: 0;padding-right: 0;">
    <view slot="note">
      <t-checkbox icon="rectangle" checked="{{params.if_default==1}}" style="padding: 0;"
        bind:change="onCheckboxChange" data-key="if_default" />
    </view>
  </t-cell> -->
  <t-textarea placeholder="备注" autosize maxlength="255" bordered style="margin-top: 16rpx;"
    value="{{params.comments}}" data-key="comments" bind:change="onChange">
    <view slot="label" class="textarea-label">备注</view>
  </t-textarea>
  <view style="margin-top: 32rpx;display: flex;justify-content: center;">
    <t-button theme="primary" bind:tap="onSave">保存</t-button>
  </view>
</page-plugin>