@tarojs/taro 3.5.0-alpha.0 → 3.5.0-alpha.11
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 +19 -5
- package/types/api/ui/animation.d.ts +5 -67
- package/types/compile.d.ts +4 -4
- package/types/taro.component.d.ts +10 -3
- package/types/taro.extend.d.ts +2 -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.11",
|
|
4
4
|
"description": "Taro framework",
|
|
5
5
|
"homepage": "https://github.com/nervjs/taro/tree/master/packages/taro#readme",
|
|
6
6
|
"main": "index.js",
|
|
@@ -24,9 +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.11",
|
|
28
|
+
"@tarojs/runtime": "3.5.0-alpha.11",
|
|
29
|
+
"@tarojs/taro-h5": "3.5.0-alpha.11"
|
|
30
30
|
},
|
|
31
|
-
"
|
|
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
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"gitHead": "76bf76f1e10cf758c5ccada90ddea8674eb69aac"
|
|
32
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 {
|
package/types/compile.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as webpack from 'webpack'
|
|
2
|
-
import * as webpackDevServer from 'webpack-dev-server'
|
|
3
1
|
export { Current } from '@tarojs/runtime'
|
|
2
|
+
import webpack from 'webpack'
|
|
3
|
+
import webpackDevServer from 'webpack-dev-server'
|
|
4
4
|
|
|
5
5
|
export const enum TEMPLATE_TYPES {
|
|
6
6
|
WEAPP = '.wxml',
|
|
@@ -127,7 +127,7 @@ export interface IMiniAppConfig {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
webpackChain?: (chain: any, webpack: any, PARSE_AST_TYPE: any) => void
|
|
130
|
-
entry?: webpack.
|
|
130
|
+
entry?: webpack.EntryObject
|
|
131
131
|
output?: webpack.Output
|
|
132
132
|
postcss?: IPostcssOption
|
|
133
133
|
cssLoaderOption?: IOption
|
|
@@ -177,7 +177,7 @@ export interface IH5Config {
|
|
|
177
177
|
|
|
178
178
|
webpackChain?: (chain: any, webpack: any) => void
|
|
179
179
|
|
|
180
|
-
entry?: webpack.
|
|
180
|
+
entry?: webpack.EntryObject
|
|
181
181
|
output?: webpack.Output
|
|
182
182
|
router?: IH5RouterConfig
|
|
183
183
|
devServer?: webpackDevServer.Configuration
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import Vue from 'vue'
|
|
3
3
|
|
|
4
4
|
import Taro, { Config } from './index'
|
|
5
5
|
|
|
@@ -73,7 +73,7 @@ declare module './index' {
|
|
|
73
73
|
onHide?(): void
|
|
74
74
|
}
|
|
75
75
|
interface AppInstance extends Show {
|
|
76
|
-
mount(component: React.
|
|
76
|
+
mount(component: React.Component | Vue.ComponentOptions<Vue>, id: string, cb: () => void): void
|
|
77
77
|
componentDidShow?(options?: Record<string, unknown>): void
|
|
78
78
|
onShow?(options?: Record<string, unknown>): void
|
|
79
79
|
unmount(id: string, cb: () => void): void
|
|
@@ -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 {
|