x-prop-tree 0.5.5 → 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/components/propTree/values/colorPicker.vue.d.ts +3 -2
- package/dist/components/propTree/values/multiTypes.vue.d.ts +3 -2
- package/dist/components/propTree/values/numInput.vue.d.ts +3 -2
- package/dist/components/propTree/values/select.vue.d.ts +3 -2
- package/dist/components/propTree/values/strInput.vue.d.ts +1 -1
- package/dist/components/propTree/values/switch.vue.d.ts +3 -2
- 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 +1168 -1473
- package/package.json +5 -6
- package/dist/components/propTree/util.d.ts +0 -2
|
@@ -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 {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
interface Props {
|
|
2
|
+
hasDelete?: boolean;
|
|
2
3
|
readonly?: boolean;
|
|
3
4
|
}
|
|
4
5
|
declare let __VLS_typeProps: Props;
|
|
@@ -6,8 +7,8 @@ type __VLS_PublicProps = {
|
|
|
6
7
|
modelValue?: string;
|
|
7
8
|
} & typeof __VLS_typeProps;
|
|
8
9
|
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
-
|
|
10
|
+
delete: (...args: any[]) => void;
|
|
10
11
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
11
|
-
|
|
12
|
+
onDelete?: ((...args: any[]) => any) | undefined;
|
|
12
13
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
14
|
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ZType } from 'x-runtime-lib';
|
|
2
2
|
interface Props {
|
|
3
|
+
hasDelete?: boolean;
|
|
3
4
|
types: ZType[];
|
|
4
5
|
}
|
|
5
6
|
declare let __VLS_typeProps: Props;
|
|
@@ -7,8 +8,8 @@ type __VLS_PublicProps = {
|
|
|
7
8
|
modelValue?: string;
|
|
8
9
|
} & typeof __VLS_typeProps;
|
|
9
10
|
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
-
|
|
11
|
+
delete: (...args: any[]) => void;
|
|
11
12
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
|
-
|
|
13
|
+
onDelete?: ((...args: any[]) => any) | undefined;
|
|
13
14
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
15
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
interface Props {
|
|
2
|
+
hasDelete?: boolean;
|
|
2
3
|
precision?: number;
|
|
3
4
|
min?: number;
|
|
4
5
|
max?: number;
|
|
@@ -10,8 +11,8 @@ type __VLS_PublicProps = {
|
|
|
10
11
|
modelValue?: number;
|
|
11
12
|
} & typeof __VLS_typeProps;
|
|
12
13
|
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
-
|
|
14
|
+
delete: (...args: any[]) => void;
|
|
14
15
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
15
|
-
|
|
16
|
+
onDelete?: ((...args: any[]) => any) | undefined;
|
|
16
17
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
18
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
interface Props {
|
|
2
|
+
hasDelete?: boolean;
|
|
2
3
|
readonly?: boolean;
|
|
3
4
|
items: {
|
|
4
5
|
title: string;
|
|
@@ -10,8 +11,8 @@ type __VLS_PublicProps = {
|
|
|
10
11
|
modelValue?: string;
|
|
11
12
|
} & typeof __VLS_typeProps;
|
|
12
13
|
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
-
|
|
14
|
+
delete: (...args: any[]) => void;
|
|
14
15
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
15
|
-
|
|
16
|
+
onDelete?: ((...args: any[]) => any) | undefined;
|
|
16
17
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
18
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
interface Props {
|
|
2
|
+
hasDelete?: boolean;
|
|
2
3
|
readonly?: boolean;
|
|
3
4
|
}
|
|
4
5
|
declare let __VLS_typeProps: Props;
|
|
@@ -6,8 +7,8 @@ type __VLS_PublicProps = {
|
|
|
6
7
|
modelValue?: boolean;
|
|
7
8
|
} & typeof __VLS_typeProps;
|
|
8
9
|
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
-
|
|
10
|
+
delete: (...args: any[]) => void;
|
|
10
11
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
11
|
-
|
|
12
|
+
onDelete?: ((...args: any[]) => any) | undefined;
|
|
12
13
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
14
|
export default _default;
|
package/dist/i18n/index.d.ts
CHANGED
package/dist/index.d.ts
CHANGED