@viewfly/core 0.0.1-alpha.9 → 0.0.1
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/README.md +3 -1
- package/bundles/foundation/_utils.d.ts +4 -13
- package/bundles/foundation/renderer.d.ts +0 -1
- package/bundles/index.esm.js +265 -328
- package/bundles/index.js +265 -329
- package/bundles/jsx.d.ts +13 -0
- package/bundles/model/component.d.ts +14 -15
- package/bundles/model/jsx-element.d.ts +9 -23
- package/bundles/public-api.d.ts +1 -0
- package/bundles/viewfly.d.ts +2 -3
- package/jsx-runtime/index.d.ts +18 -0
- package/jsx-runtime/package.json +5 -0
- package/package.json +4 -7
- package/jsx-dev-runtime.js +0 -8
- package/jsx-runtime.d.ts +0 -16
- /package/{jsx-runtime.js → jsx-runtime/index.esm.js} +0 -0
- /package/{jsx-runtime.umd.js → jsx-runtime/index.js} +0 -0
package/README.md
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
Viewfly
|
|
2
2
|
================================
|
|
3
3
|
|
|
4
|
-
Viewfly
|
|
4
|
+
Viewfly 是一个简单、数据驱动的前端框架。此项目为 Viewfly 的内核实现,要开发完整的应该的应用,还需要结合 `@viewfly/platform-browser` 包,才能在浏览器运行。
|
|
5
|
+
|
|
6
|
+
完整文档请参考官方网站:[viewfly.org](https://viewfly.org)
|
|
@@ -1,18 +1,9 @@
|
|
|
1
|
-
import { Component, JSXElement } from '../model/_api';
|
|
2
|
-
export interface MapChanges {
|
|
3
|
-
remove: [string, any][];
|
|
4
|
-
set: [string, any][];
|
|
5
|
-
}
|
|
6
1
|
export interface ObjectChanges {
|
|
7
2
|
remove: [string, any][];
|
|
8
3
|
add: [string, any][];
|
|
4
|
+
replace: [string, any, any][];
|
|
9
5
|
}
|
|
10
6
|
export declare const refKey = "ref";
|
|
11
|
-
export declare function getObjectChanges(
|
|
12
|
-
export declare function
|
|
13
|
-
export declare function
|
|
14
|
-
styleChanges: MapChanges;
|
|
15
|
-
attrChanges: MapChanges;
|
|
16
|
-
listenerChanges: ObjectChanges;
|
|
17
|
-
isChanged: boolean;
|
|
18
|
-
};
|
|
7
|
+
export declare function getObjectChanges(newProps: Record<string, any>, oldProps: Record<string, any>): ObjectChanges;
|
|
8
|
+
export declare function classToString(config: unknown): any;
|
|
9
|
+
export declare function styleToObject(style: string | Record<string, any>): Record<string, any>;
|