x-prop-tree 0.5.6 → 0.5.7
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/dist/components/index.d.ts +4 -1
- package/dist/components/propTree/index.vue.d.ts +1 -1
- package/dist/components/propTree/utils/branch.d.ts +15 -0
- package/dist/components/propTree/utils/index.d.ts +2 -0
- package/dist/components/propTree/utils/propState.d.ts +15 -0
- package/dist/i18n/index.d.ts +1 -5
- package/dist/i18n/instance.d.ts +5 -0
- package/dist/i18n/locales/en/index.d.ts +9 -0
- package/dist/i18n/locales/zhHans/index.d.ts +9 -0
- package/dist/i18n-en-g17k76yy.js +11 -0
- package/dist/i18n-zhHans-f1nv26or.js +11 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1061 -937
- package/package.json +5 -6
- package/dist/components/propTree/utils.d.ts +0 -3
|
@@ -2,7 +2,7 @@ import { ZProp } from 'x-runtime-lib';
|
|
|
2
2
|
interface Props {
|
|
3
3
|
unique: string;
|
|
4
4
|
config: ZProp[];
|
|
5
|
-
object:
|
|
5
|
+
object: any;
|
|
6
6
|
}
|
|
7
7
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
8
|
change: (...args: any[]) => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type Branch = {
|
|
2
|
+
collapse: boolean;
|
|
3
|
+
children: BranchMap | BranchArray;
|
|
4
|
+
};
|
|
5
|
+
export type BranchMap = {
|
|
6
|
+
[key: string]: Branch;
|
|
7
|
+
};
|
|
8
|
+
export type BranchArray = Branch[];
|
|
9
|
+
export type Branchs = {
|
|
10
|
+
[key: string]: {
|
|
11
|
+
[key: string]: Branch;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare const isBranchChildrenMap: (children: BranchMap | BranchArray) => children is BranchMap;
|
|
15
|
+
export declare const isBranchChildrenArray: (children: BranchMap | BranchArray) => children is BranchArray;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ZProp } from 'x-runtime-lib';
|
|
2
|
+
type Hook = (keys: (string | number)[], value: unknown) => void;
|
|
3
|
+
export type PropState = {
|
|
4
|
+
change: boolean;
|
|
5
|
+
children: PropStateMap | PropStateArray;
|
|
6
|
+
};
|
|
7
|
+
export type PropStateMap = {
|
|
8
|
+
[key: string]: PropState;
|
|
9
|
+
};
|
|
10
|
+
export type PropStateArray = PropState[];
|
|
11
|
+
export declare const isPropStateChildrenMap: (children: PropStateMap | PropStateArray) => children is PropStateMap;
|
|
12
|
+
export declare const isPropStateChildrenArray: (children: PropStateMap | PropStateArray) => children is PropStateArray;
|
|
13
|
+
export declare const execProp: (keys: (string | number)[], prop: ZProp, object: any, state: PropState, hook?: Hook, arrayIndex?: number, isBranch?: boolean) => boolean;
|
|
14
|
+
export declare const rebuildPropState: (config: ZProp[], object: any, hook?: Hook) => PropStateMap;
|
|
15
|
+
export {};
|
package/dist/i18n/index.d.ts
CHANGED
package/dist/index.d.ts
CHANGED