@viewfly/platform-browser 0.0.27 → 0.0.28
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/bundles/create-app.d.ts +2 -3
- package/bundles/index.esm.js +2 -3
- package/bundles/index.js +2 -3
- package/package.json +3 -3
package/bundles/create-app.d.ts
CHANGED
|
@@ -3,15 +3,14 @@ import { JSXNode } from '@viewfly/core';
|
|
|
3
3
|
* 创建一个 Viewfly 实例
|
|
4
4
|
* @param root 应用根节点
|
|
5
5
|
* @param autoUpdate 是否自动更新视图,默认为 true,当值为 false 时,Viewfly
|
|
6
|
-
* 只会首次渲染,直到手动调用
|
|
6
|
+
* 只会首次渲染,直到手动调用 app 的 render() 方法,这在单元测试中非常有用,
|
|
7
7
|
* 我们无需等待 Viewfly 默认的异步调度,实现同步更新视图
|
|
8
8
|
* ```tsx
|
|
9
9
|
* const app = createApp(<App/>, false).mount(document.getElementById('app'))
|
|
10
|
-
* const renderer = app.get(Renderer)
|
|
11
10
|
*
|
|
12
11
|
* // do something...
|
|
13
12
|
*
|
|
14
|
-
*
|
|
13
|
+
* app.render() // 手动更新视图
|
|
15
14
|
* ```
|
|
16
15
|
*/
|
|
17
16
|
export declare function createApp(root: JSXNode, autoUpdate?: boolean): import("@viewfly/core").Application<HTMLElement>;
|
package/bundles/index.esm.js
CHANGED
|
@@ -201,15 +201,14 @@ class DomRenderer extends NativeRenderer {
|
|
|
201
201
|
* 创建一个 Viewfly 实例
|
|
202
202
|
* @param root 应用根节点
|
|
203
203
|
* @param autoUpdate 是否自动更新视图,默认为 true,当值为 false 时,Viewfly
|
|
204
|
-
* 只会首次渲染,直到手动调用
|
|
204
|
+
* 只会首次渲染,直到手动调用 app 的 render() 方法,这在单元测试中非常有用,
|
|
205
205
|
* 我们无需等待 Viewfly 默认的异步调度,实现同步更新视图
|
|
206
206
|
* ```tsx
|
|
207
207
|
* const app = createApp(<App/>, false).mount(document.getElementById('app'))
|
|
208
|
-
* const renderer = app.get(Renderer)
|
|
209
208
|
*
|
|
210
209
|
* // do something...
|
|
211
210
|
*
|
|
212
|
-
*
|
|
211
|
+
* app.render() // 手动更新视图
|
|
213
212
|
* ```
|
|
214
213
|
*/
|
|
215
214
|
function createApp(root, autoUpdate = true) {
|
package/bundles/index.js
CHANGED
|
@@ -203,15 +203,14 @@ class DomRenderer extends core.NativeRenderer {
|
|
|
203
203
|
* 创建一个 Viewfly 实例
|
|
204
204
|
* @param root 应用根节点
|
|
205
205
|
* @param autoUpdate 是否自动更新视图,默认为 true,当值为 false 时,Viewfly
|
|
206
|
-
* 只会首次渲染,直到手动调用
|
|
206
|
+
* 只会首次渲染,直到手动调用 app 的 render() 方法,这在单元测试中非常有用,
|
|
207
207
|
* 我们无需等待 Viewfly 默认的异步调度,实现同步更新视图
|
|
208
208
|
* ```tsx
|
|
209
209
|
* const app = createApp(<App/>, false).mount(document.getElementById('app'))
|
|
210
|
-
* const renderer = app.get(Renderer)
|
|
211
210
|
*
|
|
212
211
|
* // do something...
|
|
213
212
|
*
|
|
214
|
-
*
|
|
213
|
+
* app.render() // 手动更新视图
|
|
215
214
|
* ```
|
|
216
215
|
*/
|
|
217
216
|
function createApp(root, autoUpdate = true) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viewfly/platform-browser",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28",
|
|
4
4
|
"description": "This project is used to enable the Viewfly framework to run in a browser.",
|
|
5
5
|
"main": "./bundles/index.js",
|
|
6
6
|
"module": "./bundles/index.esm.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"keywords": [],
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@viewfly/core": "^0.0.
|
|
15
|
+
"@viewfly/core": "^0.0.28",
|
|
16
16
|
"csstype": "^3.1.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"bugs": {
|
|
34
34
|
"url": "https://github.com/viewfly/viewfly.git/issues"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "fab3872455d5c34634ef007b4e154025ced3b833"
|
|
37
37
|
}
|