x-prop-tree 0.7.15 → 0.7.17
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/values/index.d.ts +11 -0
- package/dist/components/values/slotSelect/index.vue.d.ts +10 -0
- package/dist/components/values/slotSelect/slotList/group.vue.d.ts +13 -0
- package/dist/components/values/slotSelect/slotList/index.vue.d.ts +13 -0
- package/dist/components/values/slotSelect/slotList/item.vue.d.ts +11 -0
- package/dist/composables/compList/index.d.ts +1 -0
- package/dist/composables/slotList/index.d.ts +1 -0
- package/dist/composables/uis/index.d.ts +11 -0
- package/dist/{components/propTree/composables → composables/uis}/uiColorPicker.d.ts +1 -1
- package/dist/{components/propTree/composables → composables/uis}/uiCompSelect.d.ts +1 -1
- package/dist/{components/propTree/composables → composables/uis}/uiDummy.d.ts +1 -1
- package/dist/{components/propTree/composables → composables/uis}/uiJsonEditor.d.ts +1 -1
- package/dist/{components/propTree/composables → composables/uis}/uiMultiTypes.d.ts +1 -1
- package/dist/{components/propTree/composables → composables/uis}/uiNumInput.d.ts +1 -1
- package/dist/composables/uis/uiProperty.d.ts +8 -0
- package/dist/{components/propTree/composables → composables/uis}/uiSelect.d.ts +1 -1
- package/dist/composables/uis/uiSlotSelect.d.ts +7 -0
- package/dist/{components/propTree/composables → composables/uis}/uiStrInput.d.ts +1 -1
- package/dist/{components/propTree/composables → composables/uis}/uiSwitch.d.ts +1 -1
- package/dist/{i18n-en.n11iysmh.js → i18n-en.fwi8tazn.js} +7 -3
- package/dist/{i18n-zhHans.hr18mfah.js → i18n-zhHans.ju37v3iz.js} +7 -3
- package/dist/index.js +1416 -1136
- package/dist/utils/copyPaste.d.ts +2 -0
- package/dist/{components/propTree/common → utils}/index.d.ts +1 -1
- package/dist/{components/propTree/common/base.d.ts → utils/misc.d.ts} +2 -0
- package/dist/{components/propTree/common → utils}/propertyState.d.ts +1 -1
- package/dist/{components/propTree/common → utils}/provideInject.d.ts +5 -3
- package/package.json +4 -4
- package/dist/components/propTree/common/copyPaste.d.ts +0 -2
- package/dist/components/propTree/composables/common.d.ts +0 -4
- package/dist/components/propTree/composables/uiProp.d.ts +0 -8
- /package/dist/components/{propTree/components/common/entry.vue.d.ts → entry/index.vue.d.ts} +0 -0
- /package/dist/components/{propTree/components/values/iconSelect → menu}/index.vue.d.ts +0 -0
- /package/dist/components/{propTree/components/common/title.vue.d.ts → title/index.vue.d.ts} +0 -0
- /package/dist/components/{propTree/components/values/colorPicker.vue.d.ts → values/colorPicker/index.vue.d.ts} +0 -0
- /package/dist/components/{propTree/components/values → values}/compSelect/compList/group.vue.d.ts +0 -0
- /package/dist/components/{propTree/components/values → values}/compSelect/compList/index.vue.d.ts +0 -0
- /package/dist/components/{propTree/components/values → values}/compSelect/compList/item.vue.d.ts +0 -0
- /package/dist/components/{propTree/components/values → values}/compSelect/index.vue.d.ts +0 -0
- /package/dist/components/{propTree/components/common/menu.vue.d.ts → values/iconSelect/index.vue.d.ts} +0 -0
- /package/dist/components/{propTree/components/values → values}/iconSelect/item.vue.d.ts +0 -0
- /package/dist/components/{propTree/components/values → values}/iconSelect/materialDesignIcons.d.ts +0 -0
- /package/dist/components/{propTree/components/values → values}/jsonEditor/editor.vue.d.ts +0 -0
- /package/dist/components/{propTree/components/values → values}/jsonEditor/index.vue.d.ts +0 -0
- /package/dist/components/{propTree/components/values/multiTypes.vue.d.ts → values/multiTypes/index.vue.d.ts} +0 -0
- /package/dist/components/{propTree/components/values/numInput.vue.d.ts → values/numInput/index.vue.d.ts} +0 -0
- /package/dist/components/{propTree/components/values/select.vue.d.ts → values/select/index.vue.d.ts} +0 -0
- /package/dist/components/{propTree/components/values/strInput.vue.d.ts → values/strInput/index.vue.d.ts} +0 -0
- /package/dist/components/{propTree/components/values/switch.vue.d.ts → values/switch/index.vue.d.ts} +0 -0
- /package/dist/{components/propTree/common → utils}/branch.d.ts +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import XColorPicker from './colorPicker/index.vue';
|
|
2
|
+
import XCompSelect from './compSelect/index.vue';
|
|
3
|
+
import XIconSelect from './iconSelect/index.vue';
|
|
4
|
+
import XJsonEditor from './jsonEditor/index.vue';
|
|
5
|
+
import XMultiTypes from './multiTypes/index.vue';
|
|
6
|
+
import XNumInput from './numInput/index.vue';
|
|
7
|
+
import XSelect from './select/index.vue';
|
|
8
|
+
import XSlotSelect from './slotSelect/index.vue';
|
|
9
|
+
import XStrInput from './strInput/index.vue';
|
|
10
|
+
import XSwitch from './switch/index.vue';
|
|
11
|
+
export { XColorPicker, XCompSelect, XIconSelect, XJsonEditor, XMultiTypes, XNumInput, XSelect, XSlotSelect, XStrInput, XSwitch };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_ModelProps = {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
7
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
collapse: boolean;
|
|
5
|
+
count: number;
|
|
6
|
+
}
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
"x-click": (...args: any[]) => void;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
10
|
+
"onX-click"?: ((...args: any[]) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type __VLS_ModelProps = {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
'open': boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
7
|
+
"update:open": (value: boolean) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
9
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
10
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
}
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
"x-click": (...args: any[]) => void;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
8
|
+
"onX-click"?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useCompList(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useSlotList(): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './uiColorPicker';
|
|
2
|
+
export * from './uiCompSelect';
|
|
3
|
+
export * from './uiDummy';
|
|
4
|
+
export * from './uiJsonEditor';
|
|
5
|
+
export * from './uiMultiTypes';
|
|
6
|
+
export * from './uiNumInput';
|
|
7
|
+
export * from './uiProperty';
|
|
8
|
+
export * from './uiSelect';
|
|
9
|
+
export * from './uiSlotSelect';
|
|
10
|
+
export * from './uiStrInput';
|
|
11
|
+
export * from './uiSwitch';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZProperty } from 'x-runtime-lib';
|
|
2
|
-
import { ChangeEvent } from '
|
|
2
|
+
import { ChangeEvent } from '@/utils';
|
|
3
3
|
export declare function useUiColorPicker(changeEvent: ChangeEvent): {
|
|
4
4
|
renderUiColorPicker: (keys: (string | number)[], property: ZProperty, object: any, arrayIndex?: number, isBranch?: boolean) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
5
5
|
[key: string]: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZProperty } from 'x-runtime-lib';
|
|
2
|
-
import { ChangeEvent } from '
|
|
2
|
+
import { ChangeEvent } from '@/utils';
|
|
3
3
|
export declare function useUiCompSelect(changeEvent: ChangeEvent): {
|
|
4
4
|
renderUiCompSelect: (keys: (string | number)[], property: ZProperty, object: any, arrayIndex?: number, isBranch?: boolean) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
5
5
|
[key: string]: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZProperty } from 'x-runtime-lib';
|
|
2
|
-
import { ChangeEvent } from '
|
|
2
|
+
import { ChangeEvent } from '@/utils';
|
|
3
3
|
export declare function useUiDummy(changeEvent: ChangeEvent): {
|
|
4
4
|
renderUiDummy: (keys: (string | number)[], property: ZProperty, object: any, arrayIndex?: number, isBranch?: boolean) => undefined;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZProperty } from 'x-runtime-lib';
|
|
2
|
-
import { ChangeEvent } from '
|
|
2
|
+
import { ChangeEvent } from '@/utils';
|
|
3
3
|
export declare function useUiJsonEditor(changeEvent: ChangeEvent): {
|
|
4
4
|
renderUiJsonEditor: (keys: (string | number)[], property: ZProperty, object: any, arrayIndex?: number, isBranch?: boolean) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
5
5
|
[key: string]: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZProperty } from 'x-runtime-lib';
|
|
2
|
-
import { ChangeEvent } from '
|
|
2
|
+
import { ChangeEvent } from '@/utils';
|
|
3
3
|
export declare function useUiMultiTypes(changeEvent: ChangeEvent): {
|
|
4
4
|
renderUiMultiTypes: (keys: (string | number)[], property: ZProperty, object: any, arrayIndex?: number, isBranch?: boolean) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
5
5
|
[key: string]: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZProperty } from 'x-runtime-lib';
|
|
2
|
-
import { ChangeEvent } from '
|
|
2
|
+
import { ChangeEvent } from '@/utils';
|
|
3
3
|
export declare function useUiNumInput(changeEvent: ChangeEvent): {
|
|
4
4
|
renderUiNumInput: (keys: (string | number)[], property: ZProperty, object: any, arrayIndex?: number, isBranch?: boolean) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
5
5
|
[key: string]: any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Ref, VNode } from 'vue';
|
|
2
|
+
import { ZProperty } from 'x-runtime-lib';
|
|
3
|
+
import { PropertyStateMap } from '@/utils';
|
|
4
|
+
export declare function useUiProperty(propertyStates: Ref<PropertyStateMap>, entryHeight: Ref<string>, entryValueWidth: Ref<string>): {
|
|
5
|
+
renderProperty: (keys: (string | number)[], property: ZProperty, node: VNode) => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}>;
|
|
8
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZProperty } from 'x-runtime-lib';
|
|
2
|
-
import { ChangeEvent } from '
|
|
2
|
+
import { ChangeEvent } from '@/utils';
|
|
3
3
|
export declare function useUiSelect(changeEvent: ChangeEvent): {
|
|
4
4
|
renderUiSelect: (keys: (string | number)[], property: ZProperty, object: any, arrayIndex?: number, isBranch?: boolean) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
5
5
|
[key: string]: any;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ZProperty } from 'x-runtime-lib';
|
|
2
|
+
import { ChangeEvent } from '@/utils';
|
|
3
|
+
export declare function useUiSlotSelect(changeEvent: ChangeEvent): {
|
|
4
|
+
renderUiSlotSelect: (keys: (string | number)[], property: ZProperty, object: any, arrayIndex?: number, isBranch?: boolean) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}>;
|
|
7
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZProperty } from 'x-runtime-lib';
|
|
2
|
-
import { ChangeEvent } from '
|
|
2
|
+
import { ChangeEvent } from '@/utils';
|
|
3
3
|
export declare function useUiStrInput(changeEvent: ChangeEvent): {
|
|
4
4
|
renderUiStrInput: (keys: (string | number)[], property: ZProperty, object: any, arrayIndex?: number, isBranch?: boolean) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
5
5
|
[key: string]: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZProperty } from 'x-runtime-lib';
|
|
2
|
-
import { ChangeEvent } from '
|
|
2
|
+
import { ChangeEvent } from '@/utils';
|
|
3
3
|
export declare function useUiSwitch(changeEvent: ChangeEvent): {
|
|
4
4
|
renderUiSwitch: (keys: (string | number)[], property: ZProperty, object: any, arrayIndex?: number, isBranch?: boolean) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
5
5
|
[key: string]: any;
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
const
|
|
1
|
+
const t = {
|
|
2
2
|
"x-prop-tree": {
|
|
3
3
|
copy: "Copy",
|
|
4
4
|
dlg: {
|
|
5
5
|
compSelect: {
|
|
6
6
|
title: "Select Comp"
|
|
7
7
|
},
|
|
8
|
-
|
|
8
|
+
jsonEditor: {
|
|
9
9
|
title: "JSON Editor"
|
|
10
|
+
},
|
|
11
|
+
slotSelect: {
|
|
12
|
+
title: "Select Slot"
|
|
10
13
|
}
|
|
11
14
|
},
|
|
12
15
|
noComp: "No Comp",
|
|
16
|
+
noSlot: "No Slot",
|
|
13
17
|
paste: "Paste",
|
|
14
18
|
reset: "Reset"
|
|
15
19
|
}
|
|
16
20
|
};
|
|
17
21
|
export {
|
|
18
|
-
|
|
22
|
+
t as default
|
|
19
23
|
};
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
const
|
|
1
|
+
const t = {
|
|
2
2
|
"x-prop-tree": {
|
|
3
3
|
copy: "复制",
|
|
4
4
|
dlg: {
|
|
5
5
|
compSelect: {
|
|
6
6
|
title: "选择组件"
|
|
7
7
|
},
|
|
8
|
-
|
|
8
|
+
jsonEditor: {
|
|
9
9
|
title: "JSON编辑器"
|
|
10
|
+
},
|
|
11
|
+
slotSelect: {
|
|
12
|
+
title: "选择插槽"
|
|
10
13
|
}
|
|
11
14
|
},
|
|
12
15
|
noComp: "没有组件",
|
|
16
|
+
noSlot: "没有插槽",
|
|
13
17
|
paste: "黏贴",
|
|
14
18
|
reset: "重置"
|
|
15
19
|
}
|
|
16
20
|
};
|
|
17
21
|
export {
|
|
18
|
-
|
|
22
|
+
t as default
|
|
19
23
|
};
|