jiaqingjiayi-xiaochengxu/甲情_甲意/miniprogram/node_modules/antd-mini/es/Button/index.axml

46 lines
1.3 KiB
Plaintext
Raw Normal View History

2024-12-01 11:56:54 +00:00
<import-sjs
from="./index.sjs"
name="utils"
></import-sjs>
2024-11-10 07:01:22 +00:00
<button
2024-12-01 11:56:54 +00:00
formType="{{formType}}"
hoverClass="{{utils.getHoverClass(loading, type, activeClassName)}}"
2024-11-10 07:01:22 +00:00
scope="{{scope}}"
onTap="{{onTap ? 'onTap' : ''}}"
2024-12-01 11:56:54 +00:00
onGetAuthorize="onGetAuthorize"
onFollowLifestyle="onFollowLifestyle"
onError="onError"
onGetUserInfo="onGetUserInfo"
onGetPhoneNumber="onGetPhoneNumber"
2024-11-10 07:01:22 +00:00
catchTap="{{catchTap ? 'catchTap' : ''}}"
2024-12-01 11:56:54 +00:00
publicId="{{publicId}}"
openType="{{openType}}"
class="ant-button {{inline ? 'ant-button-inline ' + utils.getClass(size) : ''}} {{'ant-button-' + type + (danger ? '-danger' : '')}} {{disabled || loading ? 'ant-button-disabled' : ''}} {{className ? className : ''}}"
2024-11-10 07:01:22 +00:00
style="{{style}}"
>
<view class="ant-button-wrap">
2024-12-01 11:56:54 +00:00
<ant-icon
a:if="{{!!icon}}"
type="{{icon}}"
></ant-icon>
<view class="ant-button-content-text {{icon ? 'ant-button-content-text-margin' : ''}}">
<slot></slot>
<view
a:if="{{!inline && subText}}"
class="ant-button-content-subtext"
>
2024-11-10 07:01:22 +00:00
{{subText}}
</view>
</view>
2024-12-01 11:56:54 +00:00
<view
a:if="{{loading}}"
class="ant-button-content-loading-container"
>
2024-11-10 07:01:22 +00:00
<loading
type="mini"
color="currentColor"
className="ant-button-content-loading"
2024-12-01 11:56:54 +00:00
></loading>
2024-11-10 07:01:22 +00:00
</view>
</view>
2024-12-01 11:56:54 +00:00
</button>