@@ -77,7 +77,7 @@ style | Object | - | 样式 | N
7777custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N
7878app-parameter | String | - | 打开 APP 时,向 APP 传递的参数,open-type=launchApp时有效 | N
7979block | Boolean | false | 是否为块级元素 | N
80- content | String / Slot | - | 按钮内容。 [ 通用类型定义 ] ( https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts ) | N
80+ content | String | - | 按钮内容 | N
8181custom-dataset | any | - | 自定义 dataset,可通过 event.currentTarget.dataset.custom 获取 | N
8282disabled | Boolean | undefined | 禁用状态。优先级:Button.disabled > Form.disabled | N
8383ghost | Boolean | false | 是否为幽灵按钮(镂空按钮) | N
@@ -98,7 +98,6 @@ session-from | String | - | 会话来源,open-type="contact"时有效 | N
9898shape | String | rectangle | 按钮形状,有 4 种:长方形、正方形、圆角长方形、圆形。可选项:rectangle/square/round/circle | N
9999show-message-card | Boolean | false | 是否显示会话内消息卡片,设置此参数为 true,用户进入客服会话会在右下角显示"可能要发送的小程序"提示,用户点击后可以快速发送小程序消息,open-type="contact"时有效 | N
100100size | String | medium | 组件尺寸。可选项:extra-small/small/medium/large | N
101- suffix | Slot | - | 右侧内容,可用于定义右侧图标。[ 通用类型定义] ( https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts ) | N
102101t-id | String | - | 按钮标签id | N
103102theme | String | default | 组件风格,依次为品牌色、危险色。可选项:default/primary/danger/light | N
104103type | String | - | 同小程序的 formType。可选项:submit/reset | N
@@ -121,6 +120,14 @@ launchapp | \- | 打开 APP 成功的回调,`open-type=launchApp` 时有效
121120opensetting | \- | 原生按钮属性,在打开授权设置页后回调,open-type=openSetting时有效
122121tap | ` event ` | 点击按钮,当按钮不为加载或禁用状态时触发
123122
123+ ### Button Slots
124+
125+ 名称 | 描述
126+ -- | --
127+ \- | 默认插槽,作用同 ` content ` 插槽
128+ content | 自定义 ` content ` 显示内容
129+ suffix | 右侧内容,可用于定义右侧图标
130+
124131### Button External Classes
125132
126133类名 | 描述
0 commit comments