You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kgdxpr e69712b1d2
'commit'
12 months ago
..
README.en-US.md 'commit' 12 months ago
README.md 'commit' 12 months ago
button.d.ts 'commit' 12 months ago
button.js 'commit' 12 months ago
button.json 'commit' 12 months ago
button.wxml 'commit' 12 months ago
button.wxss 'commit' 12 months ago
index.d.ts 'commit' 12 months ago
index.js 'commit' 12 months ago
props.d.ts 'commit' 12 months ago
props.js 'commit' 12 months ago
type.d.ts 'commit' 12 months ago
type.js 'commit' 12 months ago

README.en-US.md

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

:: BASE_DOC ::

API

Button Props

name type default description required
block Boolean false make button to be a block-level element N
content String / Slot - button's children elements N
custom-dataset Object - Typescriptany N
disabled Boolean false disable the button, make it can not be clicked N
external-classes Array - ['t-class', 't-class-icon', 't-class-loading'] N
ghost Boolean false make background-color to be transparent N
icon String / Object - icon name N
loading Boolean false set button to be loading state N
loading-props Object - TypescriptLoadingPropsLoading API Documentssee more ts definition N
shape String rectangle button shape。optionsrectangle/square/round/circle N
size String medium a button has three size。optionssmall/medium/large。TypescriptSizeEnum N
suffix Slot - - N
theme String default button theme。optionsdefault/primary/danger N
type String - type of button element, same as formType of Miniprogram。optionssubmit/reset N
variant String base button variant。optionsbase/outline/text N
open-type String - optionscontact/share/getPhoneNumber/getUserInfo/launchApp/openSetting/feedback/chooseAvatar N
hover-stop-propagation Boolean false - N
hover-start-time Number 20 - N
hover-stay-time Number 70 - N
lang String en optionsen/zh_CN/zh_TW N
session-from String - - N
send-message-title String 当前标题 - N
send-message-path String 当前分享路径 - N
send-message-img String 截图 - N
app-parameter String - - N
show-message-card Boolean false - N
bindgetuserinfo Eventhandle - - N
bindcontact Eventhandle - - N
bindgetphonenumber Eventhandle - - N
binderror Eventhandle - - N
bindopensetting Eventhandle - - N
bindlaunchapp Eventhandle - - N
bindchooseavatar Eventhandle - - N

Button Events

name params description
tap (e: MouseEvent) trigger on click