@joker.front/core 1.2.136 → 1.2.138
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 +48 -73
- package/dist/bundle.es.js +7 -11
- package/dist/bundle.js +7 -11
- package/package.json +7 -3
- package/types/component.d.ts +2 -1
- package/types/components/component.d.ts +0 -13
- package/types/components/container.d.ts +0 -15
- package/types/components/template.d.ts +0 -7
- package/types/docs/build/docs.d.ts +0 -1
- package/types/docs/build/markdown-it-demo.d.ts +0 -3
- package/types/docs/build/utils.d.ts +0 -3
- package/types/docs/common/loading.d.ts +0 -2
- package/types/docs/main.d.ts +0 -1
- package/types/eventBus.d.ts +0 -15
- package/types/filter.d.ts +0 -13
- package/types/src/component.d.ts +0 -216
- package/types/src/event-bus.d.ts +0 -15
- package/types/src/filter.d.ts +0 -13
- package/types/src/hmr.d.ts +0 -15
- package/types/src/index.d.ts +0 -10
- package/types/src/observer/dep.d.ts +0 -46
- package/types/src/observer/index.d.ts +0 -46
- package/types/src/observer/watcher.d.ts +0 -46
- package/types/src/parser/command/code.d.ts +0 -6
- package/types/src/parser/command/condition.d.ts +0 -22
- package/types/src/parser/command/for.d.ts +0 -23
- package/types/src/parser/command/section.d.ts +0 -8
- package/types/src/parser/comment.d.ts +0 -6
- package/types/src/parser/component.d.ts +0 -23
- package/types/src/parser/element.d.ts +0 -9
- package/types/src/parser/index.d.ts +0 -77
- package/types/src/parser/parser.d.ts +0 -82
- package/types/src/parser/render.d.ts +0 -86
- package/types/src/parser/text.d.ts +0 -6
- package/types/src/parser/vnode.d.ts +0 -182
- package/types/src/props.d.ts +0 -9
- package/types/src/utils/DI.d.ts +0 -15
package/types/src/props.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export type PropValueType = String | ArrayConstructor | Number | Object | Function | Boolean;
|
|
2
|
-
export type PropTypeFullModel = {
|
|
3
|
-
type?: PropValueType | Array<PropValueType>;
|
|
4
|
-
required?: Boolean;
|
|
5
|
-
default?: any;
|
|
6
|
-
validate?: (val: any) => Boolean;
|
|
7
|
-
};
|
|
8
|
-
export type PropType = PropValueType | Array<PropValueType> | PropTypeFullModel;
|
|
9
|
-
export declare function getPropValue(propsData: Readonly<Record<string | symbol, any>>, key: string | symbol, propsType?: Record<string | symbol, any>): any;
|
package/types/src/utils/DI.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
type Constructor<T = any> = new (...args: any[]) => T;
|
|
2
|
-
/**
|
|
3
|
-
* IOC依赖注入容器
|
|
4
|
-
*
|
|
5
|
-
* IOC依赖注入适用场景:
|
|
6
|
-
* 内部已规划的API、Interface,需要在外部对其进行逻辑注入的场景
|
|
7
|
-
* 区分于plugin,plugin是根据整体声明周期做的切面注入
|
|
8
|
-
*/
|
|
9
|
-
export declare namespace IContainer {
|
|
10
|
-
function bind<T>(tagId: symbol | string): {
|
|
11
|
-
to: (target: Constructor<T>) => void;
|
|
12
|
-
};
|
|
13
|
-
function get<T>(tagId: symbol | string, ...params: any[]): T | undefined;
|
|
14
|
-
}
|
|
15
|
-
export {};
|