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.
@@ -1 +1,4 @@
1
- export declare const install: (app: any) => void;
1
+ import { App } from 'vue';
2
+ import XPropTree from './propTree/index.vue';
3
+ declare const install: (app: App) => void;
4
+ export { XPropTree, install };
@@ -2,7 +2,7 @@ import { ZProp } from 'x-runtime-lib';
2
2
  interface Props {
3
3
  unique: string;
4
4
  config: ZProp[];
5
- object: 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,2 @@
1
+ export * from './branch';
2
+ export * from './propState';
@@ -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,5 +1 @@
1
- declare const i18n: import("vue-i18n").I18n<{
2
- en: any;
3
- zhHans: any;
4
- }, {}, {}, string, false>;
5
- export default i18n;
1
+ export declare function loadLocaleMessagePropTree(locale: string): Promise<object>;
@@ -0,0 +1,5 @@
1
+ declare const i18n: import("vue-i18n").I18n<{
2
+ en: any;
3
+ zhHans: any;
4
+ }, {}, {}, string, false>;
5
+ export default i18n;
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ 'x-prop-tree': {
3
+ copy: string;
4
+ entry: string;
5
+ paste: string;
6
+ reset: string;
7
+ };
8
+ };
9
+ export default _default;
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ 'x-prop-tree': {
3
+ copy: string;
4
+ entry: string;
5
+ paste: string;
6
+ reset: string;
7
+ };
8
+ };
9
+ export default _default;
@@ -0,0 +1,11 @@
1
+ const e = {
2
+ "x-prop-tree": {
3
+ copy: "Copy",
4
+ entry: "Entry",
5
+ paste: "Paste",
6
+ reset: "Reset"
7
+ }
8
+ };
9
+ export {
10
+ e as default
11
+ };
@@ -0,0 +1,11 @@
1
+ const e = {
2
+ "x-prop-tree": {
3
+ copy: "复制",
4
+ entry: "条目",
5
+ paste: "黏贴",
6
+ reset: "重置"
7
+ }
8
+ };
9
+ export {
10
+ e as default
11
+ };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  declare const _default: {
2
- install: (app: any) => void;
2
+ install: (app: import("vue").App) => void;
3
3
  };
4
4
  export default _default;
5
+ export * from './i18n';