@tarojs/components 3.6.14-alpha.1 → 3.6.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/types/Button.d.ts +40 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components",
|
|
3
|
-
"version": "3.6.14
|
|
3
|
+
"version": "3.6.14",
|
|
4
4
|
"description": "Taro 组件库",
|
|
5
5
|
"browser": "dist/index.js",
|
|
6
6
|
"main:h5": "dist/index.js",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"resolve-pathname": "^3.0.0",
|
|
38
38
|
"swiper": "6.8.0",
|
|
39
39
|
"weui": "^1.1.2",
|
|
40
|
-
"@tarojs/components-advanced": "3.6.14
|
|
41
|
-
"@tarojs/router": "3.6.14
|
|
42
|
-
"@tarojs/taro": "3.6.14
|
|
40
|
+
"@tarojs/components-advanced": "3.6.14",
|
|
41
|
+
"@tarojs/router": "3.6.14",
|
|
42
|
+
"@tarojs/taro": "3.6.14"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@babel/generator": "^7.20.0",
|
package/types/Button.d.ts
CHANGED
|
@@ -165,6 +165,10 @@ interface ButtonProps extends StandardProps {
|
|
|
165
165
|
* @supported qq
|
|
166
166
|
*/
|
|
167
167
|
shareMessageImg?: string
|
|
168
|
+
/** 跳转抖音号个人页,只支持小程序绑定的品牌号、员工号、合作号
|
|
169
|
+
* @supported tt
|
|
170
|
+
*/
|
|
171
|
+
dataAwemeId?: string
|
|
168
172
|
/** 用户点击该按钮时,会返回获取到的用户信息,回调的detail数据与 Taro.getUserInfo 返回的一致
|
|
169
173
|
*
|
|
170
174
|
* 生效时机: `open-type="getUserInfo"`
|
|
@@ -261,6 +265,12 @@ interface ButtonProps extends StandardProps {
|
|
|
261
265
|
* @supported qq
|
|
262
266
|
*/
|
|
263
267
|
onAddGroupApp?: CommonEventFunction
|
|
268
|
+
/** 监听跳转抖音号个人页的回调
|
|
269
|
+
*
|
|
270
|
+
* 生效时机:`open-type="openAwemeUserProfile"`
|
|
271
|
+
* @supported tt
|
|
272
|
+
*/
|
|
273
|
+
onOpenAwemeUserProfile?: CommonEventFunction
|
|
264
274
|
}
|
|
265
275
|
declare namespace ButtonProps {
|
|
266
276
|
/** size 的合法值 */
|
|
@@ -287,7 +297,7 @@ declare namespace ButtonProps {
|
|
|
287
297
|
reset
|
|
288
298
|
}
|
|
289
299
|
/** open-type 的合法值 */
|
|
290
|
-
type OpenType = keyof openTypeKeys['weapp'] | keyof openTypeKeys['alipay'] | keyof openTypeKeys['qq']
|
|
300
|
+
type OpenType = keyof openTypeKeys['weapp'] | keyof openTypeKeys['alipay'] | keyof openTypeKeys['qq'] | keyof openTypeKeys['tt']
|
|
291
301
|
/** open-type 的合法值 */
|
|
292
302
|
interface openTypeKeys {
|
|
293
303
|
weapp: {
|
|
@@ -369,6 +379,35 @@ declare namespace ButtonProps {
|
|
|
369
379
|
/** 在自定义开放数据域组件中,向指定好友发起分享据 */
|
|
370
380
|
shareMessageToFriend
|
|
371
381
|
}
|
|
382
|
+
/** TT 小程序专属的 open-type 合法值
|
|
383
|
+
* @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/list/button/#open-type-%E7%9A%84%E5%90%88%E6%B3%95%E5%80%BC
|
|
384
|
+
*/
|
|
385
|
+
tt: {
|
|
386
|
+
/** 触发用户转发, 可以配合 data-channel 属性来设置分享的 channel,具体请参考 ShareParam */
|
|
387
|
+
share
|
|
388
|
+
/** 获取用户手机号,可以从 bindgetphonenumber 回调中获取到用户信息,详情请参见获取手机号 */
|
|
389
|
+
getPhoneNumber
|
|
390
|
+
/** 跳转到抖音IM客服,详情请参见抖音IM客服能力 */
|
|
391
|
+
im
|
|
392
|
+
/** 跳转到抖音平台客服,详情请参见平台客服能力 */
|
|
393
|
+
platformIm
|
|
394
|
+
/** 跳转视频播放页,详情请参见跳转视频播放页 */
|
|
395
|
+
navigateToVideoView
|
|
396
|
+
/** 跳转抖音号个人页,详情请参见跳转抖音号个人页 */
|
|
397
|
+
openAwemeUserProfile
|
|
398
|
+
/** 跳转抖音直播间,详情请参见跳转抖音直播间 */
|
|
399
|
+
openWebcastRoom
|
|
400
|
+
/** 写入系统日历,详情请参见写入系统日历 */
|
|
401
|
+
addCalendarEvent
|
|
402
|
+
/** 添加到桌面,详情请参见添加到桌面 */
|
|
403
|
+
addShortcut
|
|
404
|
+
/** 加群,详情请参见加群 */
|
|
405
|
+
joinGroup
|
|
406
|
+
/** 私信,详情请参见私信 */
|
|
407
|
+
privateMessage
|
|
408
|
+
/** 主动授权私信,详情请参见主动授权私信 */
|
|
409
|
+
authorizePrivateMessage
|
|
410
|
+
}
|
|
372
411
|
}
|
|
373
412
|
/** lang 的合法值 */
|
|
374
413
|
interface Lang {
|