@tarojs/components 4.0.0-beta.52 → 4.0.0-beta.54
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 +3 -3
- package/types/NavigationBar.d.ts +5 -5
- package/types/PageMeta.d.ts +7 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.54",
|
|
4
4
|
"description": "Taro 组件库",
|
|
5
5
|
"browser": "dist/index.js",
|
|
6
6
|
"main:h5": "dist/index.js",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"resolve-pathname": "^3.0.0",
|
|
37
37
|
"tslib": "^2.6.2",
|
|
38
38
|
"swiper": "6.8.0",
|
|
39
|
-
"@tarojs/components-advanced": "4.0.0-beta.
|
|
40
|
-
"@tarojs/taro": "4.0.0-beta.
|
|
39
|
+
"@tarojs/components-advanced": "4.0.0-beta.54",
|
|
40
|
+
"@tarojs/taro": "4.0.0-beta.54"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@babel/generator": "^7.21.4",
|
package/types/NavigationBar.d.ts
CHANGED
|
@@ -2,19 +2,19 @@ import { ComponentType } from 'react'
|
|
|
2
2
|
import { StandardProps, CommonEventFunction } from './common'
|
|
3
3
|
interface NavigationBarProps extends StandardProps {
|
|
4
4
|
/** 导航条标题
|
|
5
|
-
* @supported weapp
|
|
5
|
+
* @supported weapp, harmony
|
|
6
6
|
*/
|
|
7
7
|
title?: string
|
|
8
8
|
/** 是否在导航条显示 loading 加载提示
|
|
9
|
-
* @supported weapp
|
|
9
|
+
* @supported weapp, harmony
|
|
10
10
|
*/
|
|
11
11
|
loading?: boolean
|
|
12
12
|
/** 导航条前景颜色值,包括按钮、标题、状态栏的颜色,仅支持 #ffffff 和 #000000
|
|
13
|
-
* @supported weapp
|
|
13
|
+
* @supported weapp, harmony
|
|
14
14
|
*/
|
|
15
15
|
frontColor?: string
|
|
16
16
|
/** 导航条背景颜色值,有效值为十六进制颜色
|
|
17
|
-
* @supported weapp
|
|
17
|
+
* @supported weapp, harmony
|
|
18
18
|
*/
|
|
19
19
|
backgroundColor?: string
|
|
20
20
|
/** 改变导航栏颜色时的动画时长,默认为 0 (即没有动画效果)
|
|
@@ -37,7 +37,7 @@ interface NavigationBarProps extends StandardProps {
|
|
|
37
37
|
* :::
|
|
38
38
|
*
|
|
39
39
|
* @classification navig
|
|
40
|
-
* @supported weapp
|
|
40
|
+
* @supported weapp, harmony
|
|
41
41
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/navigation-bar.html
|
|
42
42
|
*/
|
|
43
43
|
declare const NavigationBar: ComponentType<NavigationBarProps>
|
package/types/PageMeta.d.ts
CHANGED
|
@@ -6,25 +6,25 @@ interface PageMetaProps extends StandardProps {
|
|
|
6
6
|
*/
|
|
7
7
|
backgroundTextStyle?: string
|
|
8
8
|
/** 窗口的背景色,必须为十六进制颜色值
|
|
9
|
-
* @supported weapp, alipay
|
|
9
|
+
* @supported weapp, alipay, harmony
|
|
10
10
|
*/
|
|
11
11
|
backgroundColor?: string
|
|
12
12
|
/** 顶部窗口的背景色,必须为十六进制颜色值,仅 iOS 支持
|
|
13
|
-
* @supported weapp, alipay
|
|
13
|
+
* @supported weapp, alipay, harmony
|
|
14
14
|
*/
|
|
15
15
|
backgroundColorTop?: string
|
|
16
16
|
/** 底部窗口的背景色,必须为十六进制颜色值,仅 iOS 支持
|
|
17
|
-
* @supported weapp, alipay
|
|
17
|
+
* @supported weapp, alipay, harmony
|
|
18
18
|
*/
|
|
19
19
|
backgroundColorBottom?: string
|
|
20
20
|
/** 滚动位置,可以使用 px 或者 rpx 为单位,在被设置时,页面会滚动到对应位置
|
|
21
21
|
* @default ""
|
|
22
|
-
* @supported weapp, alipay
|
|
22
|
+
* @supported weapp, alipay, harmony
|
|
23
23
|
*/
|
|
24
24
|
scrollTop?: string
|
|
25
25
|
/** 滚动动画时长
|
|
26
26
|
* @default 300
|
|
27
|
-
* @supported weapp, alipay
|
|
27
|
+
* @supported weapp, alipay, harmony
|
|
28
28
|
*/
|
|
29
29
|
scrollDuration?: number
|
|
30
30
|
/** 页面根节点样式,页面根节点是所有页面节点的祖先节点,相当于 HTML 中的 body 节点
|
|
@@ -38,7 +38,7 @@ interface PageMetaProps extends StandardProps {
|
|
|
38
38
|
*/
|
|
39
39
|
rootFontSize?: string
|
|
40
40
|
/** 页面内容的背景色,用于页面中的空白部分和页面大小变化 resize 动画期间的临时空闲区域
|
|
41
|
-
* @supported weapp, alipay
|
|
41
|
+
* @supported weapp, alipay, harmony
|
|
42
42
|
*/
|
|
43
43
|
rootBackgroundColor?: string
|
|
44
44
|
/** 页面 page 的字体大小,可以设置为 system ,表示使用当前用户设置的微信字体大小
|
|
@@ -92,7 +92,7 @@ declare namespace PageMetaProps {
|
|
|
92
92
|
* 开发者需要在页面配置里添加:`enablePageMeta: true`
|
|
93
93
|
* :::
|
|
94
94
|
*
|
|
95
|
-
* @supported weapp, alipay
|
|
95
|
+
* @supported weapp, alipay, harmony
|
|
96
96
|
* @example_react
|
|
97
97
|
* ```tsx
|
|
98
98
|
* // page.config.ts
|