@tarojs/taro 3.5.0-alpha.6 → 3.5.0-alpha.9
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 +18 -10
- package/types/api/ui/animation.d.ts +5 -67
- package/types/taro.component.d.ts +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/taro",
|
|
3
|
-
"version": "3.5.0-alpha.
|
|
3
|
+
"version": "3.5.0-alpha.9",
|
|
4
4
|
"description": "Taro framework",
|
|
5
5
|
"homepage": "https://github.com/nervjs/taro/tree/master/packages/taro#readme",
|
|
6
6
|
"main": "index.js",
|
|
@@ -24,15 +24,23 @@
|
|
|
24
24
|
"author": "O2Team",
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@tarojs/api": "3.5.0-alpha.
|
|
28
|
-
"@tarojs/runtime": "3.5.0-alpha.
|
|
29
|
-
"@tarojs/taro-h5": "3.5.0-alpha.
|
|
27
|
+
"@tarojs/api": "3.5.0-alpha.9",
|
|
28
|
+
"@tarojs/runtime": "3.5.0-alpha.9",
|
|
29
|
+
"@tarojs/taro-h5": "3.5.0-alpha.9"
|
|
30
30
|
},
|
|
31
|
-
"
|
|
32
|
-
"@types/react":
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
31
|
+
"peerDependenciesMeta": {
|
|
32
|
+
"@types/react": {
|
|
33
|
+
"optional": true
|
|
34
|
+
},
|
|
35
|
+
"@types/webpack": {
|
|
36
|
+
"optional": true
|
|
37
|
+
},
|
|
38
|
+
"@types/webpack-dev-server": {
|
|
39
|
+
"optional": true
|
|
40
|
+
},
|
|
41
|
+
"vue": {
|
|
42
|
+
"optional": true
|
|
43
|
+
}
|
|
36
44
|
},
|
|
37
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "bce3db2d4d9459fe0175f3d0d4b97c2df44015be"
|
|
38
46
|
}
|
|
@@ -386,77 +386,15 @@ declare module '../../index' {
|
|
|
386
386
|
translateY?: number | string
|
|
387
387
|
/** Z 方向位移,即 CSS transform translateZ */
|
|
388
388
|
translateZ?: number | string
|
|
389
|
+
composite?: 'replace' | 'add' | 'accumulate' | 'auto'
|
|
390
|
+
easing?: string
|
|
391
|
+
[property: string]: any
|
|
389
392
|
}
|
|
390
393
|
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
/** 基点位置,即 CSS transform-origin */
|
|
394
|
-
transformOrigin?: boolean
|
|
395
|
-
/** 背景颜色,即 CSS background-color */
|
|
396
|
-
backgroundColor?: boolean
|
|
397
|
-
/** 底边位置,即 CSS bottom */
|
|
398
|
-
bottom?: boolean
|
|
399
|
-
/** 高度,即 CSS height */
|
|
400
|
-
height?: boolean
|
|
401
|
-
/** 左边位置,即 CSS left */
|
|
402
|
-
left?: boolean
|
|
403
|
-
/** 宽度,即 CSS width */
|
|
404
|
-
width?: boolean
|
|
405
|
-
/** 不透明度,即 CSS opacity */
|
|
406
|
-
opacity?: boolean
|
|
407
|
-
/** 右边位置,即 CSS right */
|
|
408
|
-
right?: boolean
|
|
409
|
-
/** 顶边位置,即 CSS top */
|
|
410
|
-
top?: boolean
|
|
411
|
-
/** 变换矩阵,即 CSS transform matrix */
|
|
412
|
-
matrix?: boolean
|
|
413
|
-
/** 三维变换矩阵,即 CSS transform matrix3d */
|
|
414
|
-
matrix3d?: boolean
|
|
415
|
-
/** 旋转,即 CSS transform rotate */
|
|
416
|
-
rotate?: boolean
|
|
417
|
-
/** 三维旋转,即 CSS transform rotate3d */
|
|
418
|
-
rotate3d?: boolean
|
|
419
|
-
/** X 方向旋转,即 CSS transform rotateX */
|
|
420
|
-
rotateX?: boolean
|
|
421
|
-
/** Y 方向旋转,即 CSS transform rotateY */
|
|
422
|
-
rotateY?: boolean
|
|
423
|
-
/** Z 方向旋转,即 CSS transform rotateZ */
|
|
424
|
-
rotateZ?: boolean
|
|
425
|
-
/** 缩放,即 CSS transform scale */
|
|
426
|
-
scale?: boolean
|
|
427
|
-
/** 三维缩放,即 CSS transform scale3d */
|
|
428
|
-
scale3d?: boolean
|
|
429
|
-
/** X 方向缩放,即 CSS transform scaleX */
|
|
430
|
-
scaleX?: boolean
|
|
431
|
-
/** Y 方向缩放,即 CSS transform scaleY */
|
|
432
|
-
scaleY?: boolean
|
|
433
|
-
/** Z 方向缩放,即 CSS transform scaleZ */
|
|
434
|
-
scaleZ?: boolean
|
|
435
|
-
/** 倾斜,即 CSS transform skew */
|
|
436
|
-
skew?: boolean
|
|
437
|
-
/** X 方向倾斜,即 CSS transform skewX */
|
|
438
|
-
skewX?: boolean
|
|
439
|
-
/** Y 方向倾斜,即 CSS transform skewY */
|
|
440
|
-
skewY?: boolean
|
|
441
|
-
/** 位移,即 CSS transform translate */
|
|
442
|
-
translate?: boolean
|
|
443
|
-
/** 三维位移,即 CSS transform translate3d */
|
|
444
|
-
translate3d?: boolean
|
|
445
|
-
/** X 方向位移,即 CSS transform translateX */
|
|
446
|
-
translateX?: boolean
|
|
447
|
-
/** Y 方向位移,即 CSS transform translateY */
|
|
448
|
-
translateY?: boolean
|
|
449
|
-
/** Z 方向位移,即 CSS transform translateZ */
|
|
450
|
-
translateZ?: boolean
|
|
394
|
+
type ClearAnimationOptions = {
|
|
395
|
+
[p in keyof KeyFrame]: boolean
|
|
451
396
|
}
|
|
452
397
|
|
|
453
|
-
/** @ignore */
|
|
454
|
-
interface ScrollTimelineKeyframe {
|
|
455
|
-
composite?: 'replace' | 'add' | 'accumulate' | 'auto'
|
|
456
|
-
easing?: string
|
|
457
|
-
offset?: number | null
|
|
458
|
-
[property: string]: string | number | null | undefined
|
|
459
|
-
}
|
|
460
398
|
|
|
461
399
|
/** @ignore */
|
|
462
400
|
interface ScrollTimelineOption {
|
|
@@ -162,6 +162,10 @@ declare module './index' {
|
|
|
162
162
|
getPageId?(): string
|
|
163
163
|
/** 执行关键帧动画,详见[动画](https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html) */
|
|
164
164
|
animate?(selector: string, keyFrames: KeyFrame[], duration: number, callback: () => void): void
|
|
165
|
+
/** 滚动驱动的动画,详见[动画](https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html) */
|
|
166
|
+
animate?(selector: string, keyFrames: KeyFrame[], duration: number, scrollTimeline: ScrollTimelineOption): void
|
|
167
|
+
/** 清除关键帧动画,详见[动画](https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html) */
|
|
168
|
+
clearAnimation?(selector: string, callback: () => void): void
|
|
165
169
|
/** 清除关键帧动画,详见[动画](https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html) */
|
|
166
170
|
clearAnimation?(selector: string, options: ClearAnimationOptions, callback: () => void): void
|
|
167
171
|
/** 清除关键帧动画,详见[动画](https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html) */
|
|
@@ -173,8 +177,11 @@ declare module './index' {
|
|
|
173
177
|
interface PageInstance extends PageLifeCycle, ComponentInstance {
|
|
174
178
|
/** 页面配置 */
|
|
175
179
|
config?: PageConfig
|
|
180
|
+
/** 页面的初始数据 */
|
|
176
181
|
data?: Record<string, unknown>
|
|
182
|
+
/** 页面路径 */
|
|
177
183
|
path?: string
|
|
184
|
+
/** 页面的组件选项 */
|
|
178
185
|
options?: Record<string, unknown>
|
|
179
186
|
}
|
|
180
187
|
interface TaroStatic {
|