提交
This commit is contained in:
46
甲情_甲意/miniprogram/node_modules/antd-mini/es/Button/index.axml
generated
vendored
Normal file
46
甲情_甲意/miniprogram/node_modules/antd-mini/es/Button/index.axml
generated
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
<import-sjs
|
||||
from="./index.sjs"
|
||||
name="utils"
|
||||
></import-sjs>
|
||||
<button
|
||||
formType="{{formType}}"
|
||||
hoverClass="{{utils.getHoverClass(loading, type, activeClassName)}}"
|
||||
scope="{{scope}}"
|
||||
onTap="{{onTap ? 'onTap' : ''}}"
|
||||
onGetAuthorize="onGetAuthorize"
|
||||
onFollowLifestyle="onFollowLifestyle"
|
||||
onError="onError"
|
||||
onGetUserInfo="onGetUserInfo"
|
||||
onGetPhoneNumber="onGetPhoneNumber"
|
||||
catchTap="{{catchTap ? 'catchTap' : ''}}"
|
||||
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 : ''}}"
|
||||
style="{{style}}"
|
||||
>
|
||||
<view class="ant-button-wrap">
|
||||
<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"
|
||||
>
|
||||
{{subText}}
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
a:if="{{loading}}"
|
||||
class="ant-button-content-loading-container"
|
||||
>
|
||||
<loading
|
||||
type="mini"
|
||||
color="currentColor"
|
||||
className="ant-button-content-loading"
|
||||
></loading>
|
||||
</view>
|
||||
</view>
|
||||
</button>
|
Reference in New Issue
Block a user