@tarojs/components 3.6.37 → 3.6.38-alpha.0

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/types/Button.d.ts +35 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/components",
3
- "version": "3.6.37",
3
+ "version": "3.6.38-alpha.0",
4
4
  "description": "Taro 组件库",
5
5
  "browser": "dist/index.js",
6
6
  "main:h5": "dist/index.js",
@@ -37,8 +37,8 @@
37
37
  "resolve-pathname": "^3.0.0",
38
38
  "swiper": "6.8.0",
39
39
  "tslib": "^2.6.2",
40
- "@tarojs/components-advanced": "3.6.37",
41
- "@tarojs/taro": "3.6.37"
40
+ "@tarojs/components-advanced": "3.6.38-alpha.0",
41
+ "@tarojs/taro": "3.6.38-alpha.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@babel/generator": "^7.20.0",
package/types/Button.d.ts CHANGED
@@ -314,8 +314,43 @@ declare namespace ButtonProps {
314
314
  | keyof openTypeKeys['alipay']
315
315
  | keyof openTypeKeys['qq']
316
316
  | keyof openTypeKeys['tt']
317
+ | keyof openTypeKeys['ascf']
317
318
  /** open-type 的合法值 */
318
319
  interface openTypeKeys {
320
+ ascf: {
321
+ /** 打开客服会话,如果用户在会话中点击消息卡片后返回小程序,可以从回调中获得具体信息
322
+ * @see https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/customer-message/customer-message.html
323
+ */
324
+ contact
325
+
326
+ /** 触发用户转发,使用前建议先阅读使用指引
327
+ * @see https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html#%E4%BD%BF%E7%94%A8%E6%8C%87%E5%BC%95
328
+ */
329
+ share
330
+
331
+ /** 获取用户手机号,可以从回调中获取到用户信息
332
+ * @see https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/getPhoneNumber.html
333
+ */
334
+ getPhoneNumber
335
+
336
+ /** 获取用户信息,可以从回调中获取到用户信息 */
337
+ getUserInfo
338
+
339
+ /** 打开APP,可以通过 app-parameter 属性设定向APP传的参数
340
+ * @see https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/launchApp.html
341
+ */
342
+ launchApp
343
+
344
+ /** 打开授权设置页 */
345
+ openSetting
346
+
347
+ /** 打开“意见反馈”页面,用户可提交反馈内容并上传日志,开发者可以登录小程序管理后台后进入左侧菜单“客服反馈”页面获取到反馈内容 */
348
+ feedback
349
+
350
+ /** 获取用户头像,可以从回调中获得具体信息 */
351
+ chooseAvatar
352
+ }
353
+
319
354
  weapp: {
320
355
  /** 打开客服会话,如果用户在会话中点击消息卡片后返回小程序,可以从回调中获得具体信息
321
356
  * @see https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/customer-message/customer-message.html