<import-sjs from="./index.sjs" name="utils" />
<form onSubmit="onSubmit" report-submit="{{true}}" class="{{formClass}}">
  <button
    style="{{style}}"
    formType="submit"
    hover-class="none"
    data-item="{{item}}"
    onError="onAuthError"
    open-type="getAuthorize"
    onGetAuthorize="onGetAuthorize"
    class="clear-button {{className}}"
    scope="{{ utils.getScope(item,userInfo) }}"
    a:if="{{ utils.showButton(item,userInfo) }}"
    data-scope="{{ utils.getScope(item,userInfo) }}"
  >
    <slot />
  </button>
  <button
    a:else
    style="{{style}}"
    formType="submit"
    hover-class="none"
    data-item="{{item}}"
    onTap="onClickItem"
    class="clear-button  {{className}}"
  >
    <slot />
  </button>
</form>


