@@ -127,7 +127,9 @@ interface ButtonProps extends StandardProps {
127127 * @supported swan
128128 */
129129 subscribeId ?: string
130- /** 打开群资料卡时,传递的群号
130+ /** 群聊 id
131+ * @qq 打开群资料卡时,传递的群号
132+ * @tt 通过创建聊天群、查询群信息获取
131133 * @supported qq
132134 */
133135 groupId ?: string
@@ -165,10 +167,6 @@ interface ButtonProps extends StandardProps {
165167 * @supported qq
166168 */
167169 shareMessageImg ?: string
168- /** 跳转抖音号个人页,只支持小程序绑定的品牌号、员工号、合作号
169- * @supported tt
170- */
171- dataAwemeId ?: string
172170 /** 用户点击该按钮时,会返回获取到的用户信息,回调的detail数据与 Taro.getUserInfo 返回的一致
173171 *
174172 * 生效时机: `open-type="getUserInfo"`
@@ -193,11 +191,6 @@ interface ButtonProps extends StandardProps {
193191 * @supported weapp, alipay, swan, tt, jd
194192 */
195193 onGetPhoneNumber ?: CommonEventFunction < ButtonProps . onGetPhoneNumberEventDetail >
196- /**
197- * 手机号实时验证回调,`open-type="getRealtimePhoneNumber"` 时有效
198- * @supported weapp
199- */
200- onGetRealTimePhoneNumber ?: CommonEventFunction < ButtonProps . onGetRealTimePhoneNumberEventDetail >
201194 /** 当使用开放能力时,发生错误的回调
202195 *
203196 * 生效时机:`open-type="launchApp"`
@@ -222,11 +215,6 @@ interface ButtonProps extends StandardProps {
222215 * @supported weapp
223216 */
224217 onChooseAvatar ?: CommonEventFunction
225- /**
226- * 用户同意隐私协议事件回调,`open-type="agreePrivacyAuthorization"`时有效
227- * @supported weapp
228- */
229- onAgreePrivacyAuthorization ?: CommonEventFunction
230218 /** 点击。
231219 * 说明: 每点击一次会触发一次事件,建议自行使用代码防止重复点击,可以使用 js 防抖和节流实现。
232220 * @supported alipay
@@ -265,12 +253,6 @@ interface ButtonProps extends StandardProps {
265253 * @supported qq
266254 */
267255 onAddGroupApp ?: CommonEventFunction
268- /** 监听跳转抖音号个人页的回调
269- *
270- * 生效时机:`open-type="openAwemeUserProfile"`
271- * @supported tt
272- */
273- onOpenAwemeUserProfile ?: CommonEventFunction
274256}
275257declare namespace ButtonProps {
276258 /** size 的合法值 */
@@ -297,7 +279,11 @@ declare namespace ButtonProps {
297279 reset
298280 }
299281 /** open-type 的合法值 */
300- type OpenType = keyof openTypeKeys [ 'weapp' ] | keyof openTypeKeys [ 'alipay' ] | keyof openTypeKeys [ 'qq' ] | keyof openTypeKeys [ 'tt' ]
282+ type OpenType =
283+ | keyof openTypeKeys [ 'weapp' ]
284+ | keyof openTypeKeys [ 'alipay' ]
285+ | keyof openTypeKeys [ 'qq' ]
286+ | keyof openTypeKeys [ 'tt' ]
301287 /** open-type 的合法值 */
302288 interface openTypeKeys {
303289 weapp : {
@@ -334,6 +320,21 @@ declare namespace ButtonProps {
334320 * 用户同意隐私协议按钮。可通过 bindagreeprivacyauthorization 监听用户同意隐私协议事件
335321 */
336322 agreePrivacyAuthorization
323+ /**
324+ * 从基础库 2.32.3 版本起,隐私同意按钮支持与手机号快速验证组件耦合使用,调用方式为:
325+ * <button open-type="getPhoneNumber|agreePrivacyAuthorization">
326+ */
327+ [ 'getPhoneNumber|agreePrivacyAuthorization' ]
328+ /**
329+ * 从基础库 2.32.3 版本起,支持隐私同意按钮与手机号实时验证组件耦合使用,调用方式为:
330+ * <button open-type="getRealtimePhoneNumber|agreePrivacyAuthorization">
331+ */
332+ [ 'getRealtimePhoneNumber|agreePrivacyAuthorization' ]
333+ /**
334+ * 从基础库 2.32.3 版本起,支持隐私同意按钮与获取用户信息组件耦合使用,调用方式为:
335+ * <button open-type="getUserInfo|agreePrivacyAuthorization">
336+ */
337+ [ 'getUserInfo|agreePrivacyAuthorization' ]
337338 }
338339 /** 支付宝小程序专属的 open-type 合法值
339340 * @see https://opendocs.alipay.com/mini/component/button
0 commit comments