go-core 0.0.1 → 0.0.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/LICENSE +22 -22
- package/README.md +22 -169
- package/dist/code.es5.js +38 -52046
- package/dist/code.umd.js +51 -52082
- package/package.json +148 -133
- package/dist/code.es5.js.map +0 -1
- package/dist/code.umd.js.map +0 -1
- package/dist/types/Animation/index.d.ts +0 -5
- package/dist/types/Common/common.d.ts +0 -139
- package/dist/types/Core/component.d.ts +0 -28
- package/dist/types/Core/go.d.ts +0 -19
- package/dist/types/Events/index.d.ts +0 -2
- package/dist/types/Load/index.d.ts +0 -34
- package/dist/types/Runtime/index.d.ts +0 -33
- package/dist/types/Runtime/mitt.d.ts +0 -21
- package/dist/types/Store/actions/actions.d.ts +0 -7
- package/dist/types/Store/getter/index.d.ts +0 -4
- package/dist/types/Store/index.d.ts +0 -247
- package/dist/types/Store/mutations/baseData.d.ts +0 -68
- package/dist/types/Store/mutations/bus.d.ts +0 -58
- package/dist/types/Store/mutations/comTree.d.ts +0 -23
- package/dist/types/Store/mutations/index.d.ts +0 -180
- package/dist/types/Store/mutations/layout.d.ts +0 -10
- package/dist/types/Store/mutations/pages.d.ts +0 -43
- package/dist/types/Store/mutations/rightMenu.d.ts +0 -88
- package/dist/types/Store/mutations/tool.d.ts +0 -92
- package/dist/types/Store/mutations/undoRedo.d.ts +0 -21
- package/dist/types/Store/state/state.d.ts +0 -56
- package/dist/types/Tool/SizeAdaption.d.ts +0 -29
- package/dist/types/Tool/common.d.ts +0 -15
- package/dist/types/Tool/db.d.ts +0 -86
- package/dist/types/Tool/generateJson.d.ts +0 -10
- package/dist/types/Tool/index.d.ts +0 -6
- package/dist/types/Tool/loadScript.d.ts +0 -5
- package/dist/types/Tool/log.d.ts +0 -0
- package/dist/types/Tool/scale.d.ts +0 -34
- package/dist/types/Tool/screenshot.d.ts +0 -9
- package/dist/types/Types/index.d.ts +0 -62
- package/dist/types/code.d.ts +0 -12
- package/dist/types/fetch/config.d.ts +0 -5
- package/dist/types/fetch/evaluator.d.ts +0 -16
- package/dist/types/fetch/index.d.ts +0 -77
- package/dist/types/fetch/xhr.d.ts +0 -2
- package/dist/types/vuex/index.d.ts +0 -40
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { GoComponentConfig } from '../types';
|
|
2
|
-
declare const anovGoanimation: (context: any, array: Array<GoComponentConfig>, order?: string, allTime?: number, spacing?: number, type?: number) => gsap.core.Timeline | undefined;
|
|
3
|
-
declare const anovGoanimationOut: (context: any, array: Array<GoComponentConfig>, order: string | undefined, allTime: number | undefined, spacing: number | undefined, type: number | undefined, callback: Function) => gsap.core.Timeline | undefined;
|
|
4
|
-
export default anovGoanimation;
|
|
5
|
-
export { anovGoanimationOut, anovGoanimation };
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { BaseData, GoComponentConfig } from '../Types/index';
|
|
2
|
-
export { getDataForEvaluator } from '../fetch/evaluator';
|
|
3
|
-
/**
|
|
4
|
-
* 数组元素位置交换
|
|
5
|
-
* @param { Array<GoComponentConfig>} array - 组件树
|
|
6
|
-
* @param {number} targetIndex - 目标位置
|
|
7
|
-
* @param {number} oldIndex - 现在位置
|
|
8
|
-
*/
|
|
9
|
-
declare const arraySwap: (array: Array<GoComponentConfig>, targetIndex: number, oldIndex: number) => Array<GoComponentConfig>;
|
|
10
|
-
/**
|
|
11
|
-
* 数组元素位置交换(二级)
|
|
12
|
-
* @param { Array<GoComponentConfig>} array - 组件树
|
|
13
|
-
* @param {string} type:top,bottom,up,down - 目标位置
|
|
14
|
-
* @param {string} cid - 现在位置
|
|
15
|
-
*/
|
|
16
|
-
declare const arraySwapDeep: (array: Array<GoComponentConfig>, type: string, cid: string) => Array<GoComponentConfig>;
|
|
17
|
-
/**
|
|
18
|
-
* 查找组件树中某一个元素(递归)
|
|
19
|
-
* @param { Array<GoComponentConfig>} array - 组件树
|
|
20
|
-
* @param {string | number} cid - 组件ID
|
|
21
|
-
* @return {GoComponentConfig} GoComponentConfig 返回选中的组件实粒对象 或者 flase
|
|
22
|
-
*/
|
|
23
|
-
declare const findItemDeep: (array: any, cid: string) => any;
|
|
24
|
-
/**
|
|
25
|
-
* 查找组件树中某一个元素(递归)
|
|
26
|
-
* @param { Array<GoComponentConfig>} array - 组件树
|
|
27
|
-
* @param {string | number} cid - 组件ID
|
|
28
|
-
* @return {GoComponentConfig} GoComponentConfig 返回选中的组件实粒对象 或者 flase
|
|
29
|
-
*/
|
|
30
|
-
declare const findParentDeep: (array: any, cid: string) => any;
|
|
31
|
-
/**
|
|
32
|
-
* 查找组件树中某一个元素
|
|
33
|
-
* @param { Array<GoComponentConfig>} array - 组件树
|
|
34
|
-
* @param {string | number} cid - 组件ID
|
|
35
|
-
* @param {boolean} del - 是否删除当前组件
|
|
36
|
-
* @return {GoComponentConfig} GoComponentConfig 返回选中的组件实粒对象 或者 flase
|
|
37
|
-
*/
|
|
38
|
-
declare const findItem: (array: Array<GoComponentConfig>, cid: string, del?: boolean | undefined) => GoComponentConfig | boolean;
|
|
39
|
-
/**
|
|
40
|
-
* 验证 是否是同一级
|
|
41
|
-
* @param { Array<GoComponentConfig>} array - 组件树
|
|
42
|
-
* @param {string} id - 组件ID
|
|
43
|
-
* @param {string} newid - 是否删除当前组件
|
|
44
|
-
* @return {Boolean} 返回是否相等
|
|
45
|
-
*/
|
|
46
|
-
declare const isPeer: (array: Array<GoComponentConfig>, id: string, newId: string) => boolean;
|
|
47
|
-
/**
|
|
48
|
-
* 递归函数
|
|
49
|
-
* @param { Array<GoComponentConfig>} array - 组件树
|
|
50
|
-
* @param { (args: any) => void)} callback - 回调函数
|
|
51
|
-
* @return {void}
|
|
52
|
-
*/
|
|
53
|
-
export declare const recursion: (array: Array<GoComponentConfig>, callback: (args: any) => void) => void;
|
|
54
|
-
declare const resetID: (array: Array<GoComponentConfig>) => void;
|
|
55
|
-
/**
|
|
56
|
-
* 修改属性
|
|
57
|
-
* @param { GoComponentConfig} element 目标对象
|
|
58
|
-
* @param {string} attrName - 属性名称
|
|
59
|
-
* @param {any} attrValue - 属性值
|
|
60
|
-
* @param {string} attrModel - 属性值
|
|
61
|
-
*/
|
|
62
|
-
declare const updataAttribute: (element: GoComponentConfig | boolean, attr: string, value: any, attrModel?: string | undefined) => void;
|
|
63
|
-
declare const setAttr: (array: any, id: number, attr: string) => void;
|
|
64
|
-
declare const setPositionForGroup: (parentPosition: BaseData, childrenPosition: Array<GoComponentConfig>) => void;
|
|
65
|
-
declare const resetPositionForGroup: (parentPosition: BaseData, list: Array<GoComponentConfig>) => {
|
|
66
|
-
left: number;
|
|
67
|
-
top: number;
|
|
68
|
-
width: number;
|
|
69
|
-
height: number;
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* 打散集合体 并返回重新设置定位后的数据集合
|
|
73
|
-
* @param {GoComponentConfig} element 带有childred的元素体
|
|
74
|
-
* @return {Array<GoComponentConfig>}
|
|
75
|
-
*/
|
|
76
|
-
declare const breakUp: (element: GoComponentConfig) => Array<GoComponentConfig>;
|
|
77
|
-
/**
|
|
78
|
-
* 组被打散后重新计算位置
|
|
79
|
-
* @param {GoComponentConfig} children 待计算的组件
|
|
80
|
-
* @param {BaseData} parentPosition 转换基准
|
|
81
|
-
*/
|
|
82
|
-
declare const setPositionForWorld: (children: GoComponentConfig, parentPosition: BaseData) => void;
|
|
83
|
-
/**
|
|
84
|
-
* 坐标转换
|
|
85
|
-
* @param {BaseData} sourcePositon 待转换的位置 信息
|
|
86
|
-
* @param {BaseData} taggetPositon 转换基准
|
|
87
|
-
* @param {Number} type 0或者空 表示转为世界坐标 1表示转为组坐标
|
|
88
|
-
* @return {{left:Number,top:Number}} 返回转换后的坐标
|
|
89
|
-
*/
|
|
90
|
-
declare const transformPosition: (sourcePositon: BaseData, taggetPositon: BaseData, type?: Number | undefined) => {
|
|
91
|
-
left: number;
|
|
92
|
-
top: number;
|
|
93
|
-
};
|
|
94
|
-
/**
|
|
95
|
-
* 组内坐标转换(当组的位置发生变化时重新计算子元素的位置)
|
|
96
|
-
* @param {GoComponentConfig} sourceGroup 待转换的组
|
|
97
|
-
* @param {BaseData} taggetPositon 转换基准
|
|
98
|
-
* @param { String } ignore 不需要调整的元素
|
|
99
|
-
* @param {Boolean} zoom 是否开启子元素等比缩放
|
|
100
|
-
*/
|
|
101
|
-
declare const resziePositionForGroup: (sourceGroup: GoComponentConfig, taggetPositon: BaseData, ignore?: String | undefined, zoom?: Boolean | undefined) => void;
|
|
102
|
-
declare const setPorp: (id: Number, array: Array<GoComponentConfig>, prop: any) => void;
|
|
103
|
-
declare const selectdArea: (idArray: any[], list: GoComponentConfig[]) => BaseData;
|
|
104
|
-
/**
|
|
105
|
-
* 重新计算位置大小
|
|
106
|
-
* @param {Array<GoComponentConfig>} list 需要计算位置的组件
|
|
107
|
-
* @return {BaseData} 返回位置信息
|
|
108
|
-
*/
|
|
109
|
-
declare const getPosition: (list: Array<GoComponentConfig>) => BaseData;
|
|
110
|
-
/**
|
|
111
|
-
* 重新计算群组位置大小
|
|
112
|
-
* @param {GoComponentConfig} group 需要计算位置的组件
|
|
113
|
-
* @param {BaseData} oldBaseData 变更钱的组位置大小
|
|
114
|
-
* @return {BaseData} 返回位置信息
|
|
115
|
-
*/
|
|
116
|
-
declare const upDataGroup: (group: GoComponentConfig, oldBaseData: BaseData, currentItem?: any) => BaseData;
|
|
117
|
-
/**
|
|
118
|
-
* 重新计算群组位置大小
|
|
119
|
-
* @param {GoComponentConfig} parent 需要计算位置的组件
|
|
120
|
-
* @return {BaseData} 返回位置信息
|
|
121
|
-
*/
|
|
122
|
-
declare const upDataGroupChildren: (group: GoComponentConfig, oldBaseData: BaseData, currentItem?: any) => BaseData;
|
|
123
|
-
declare const RecursiveList: (array: Array<GoComponentConfig>, calback?: {
|
|
124
|
-
(e: {
|
|
125
|
-
lv: number;
|
|
126
|
-
index: number;
|
|
127
|
-
id: any;
|
|
128
|
-
}): void;
|
|
129
|
-
(arg0: GoComponentConfig): void;
|
|
130
|
-
} | undefined) => void;
|
|
131
|
-
declare let genID: () => string;
|
|
132
|
-
/**
|
|
133
|
-
* 文件复制的命名算法
|
|
134
|
-
* @param {string} oName 被复制的文件的名称
|
|
135
|
-
* @param {Array} filenames 目录下的所有文件名数组
|
|
136
|
-
* @param {string} suffix 后缀(默认为'的副本')
|
|
137
|
-
*/
|
|
138
|
-
declare const genCopyName: (oName: string | any[], filenames: any[], suffix?: string) => string;
|
|
139
|
-
export { genID, arraySwap, arraySwapDeep, setAttr, RecursiveList, selectdArea, setPorp, setPositionForGroup, resetPositionForGroup, setPositionForWorld, breakUp, findItem, findItemDeep, findParentDeep, getPosition, updataAttribute, isPeer, transformPosition, upDataGroup, upDataGroupChildren, resziePositionForGroup, genCopyName, resetID };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { GoComponentConfig, GoComConfig } from '../Types/index';
|
|
2
|
-
export default class GoComponent {
|
|
3
|
-
name: String | undefined;
|
|
4
|
-
cid: string | undefined;
|
|
5
|
-
loading: false | undefined;
|
|
6
|
-
pid: String | undefined;
|
|
7
|
-
z: Number | undefined;
|
|
8
|
-
isLock: Boolean | undefined;
|
|
9
|
-
isShow: Boolean | undefined;
|
|
10
|
-
viewComName?: String | undefined;
|
|
11
|
-
dataComName?: string | undefined;
|
|
12
|
-
eventComName?: string | undefined;
|
|
13
|
-
optionComName?: String | undefined;
|
|
14
|
-
children?: Array<GoComponentConfig>;
|
|
15
|
-
baseData: Object;
|
|
16
|
-
comData?: Object | undefined;
|
|
17
|
-
filePath?: string | undefined;
|
|
18
|
-
origin?: String | undefined;
|
|
19
|
-
path?: String | undefined;
|
|
20
|
-
rawData?: Object | undefined;
|
|
21
|
-
source?: Object | undefined;
|
|
22
|
-
sourceData?: Object | undefined;
|
|
23
|
-
storeModule?: String | undefined;
|
|
24
|
-
tmpData?: Object | undefined;
|
|
25
|
-
useVariable?: Object | undefined;
|
|
26
|
-
componentType: string;
|
|
27
|
-
constructor(op?: GoComponentConfig | GoComConfig);
|
|
28
|
-
}
|
package/dist/types/Core/go.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import IndexedDB from '../Tool/db';
|
|
2
|
-
declare class Go {
|
|
3
|
-
private static instance;
|
|
4
|
-
VueServer: any;
|
|
5
|
-
Loader: any;
|
|
6
|
-
static VueServer: any;
|
|
7
|
-
static db: IndexedDB;
|
|
8
|
-
constructor();
|
|
9
|
-
static getInstance(): Go;
|
|
10
|
-
static store: Object;
|
|
11
|
-
getAppStore(): Object;
|
|
12
|
-
static setAppStore(store: any): void;
|
|
13
|
-
add(cid: any, com: any): void;
|
|
14
|
-
render(op?: any): void;
|
|
15
|
-
reversal(json: any): void;
|
|
16
|
-
log(user: any, type: any, info: any, trace: any, callback?: Function): void;
|
|
17
|
-
emitEvent(element: any, callback: Function): void;
|
|
18
|
-
}
|
|
19
|
-
export default Go;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
declare class Load {
|
|
2
|
-
static store: any;
|
|
3
|
-
vueServer: any;
|
|
4
|
-
loadScript: any;
|
|
5
|
-
constructor(vueServer: any);
|
|
6
|
-
static setStore(store: any): void;
|
|
7
|
-
/**
|
|
8
|
-
* 重载组件树
|
|
9
|
-
* @param store - 组件树信息
|
|
10
|
-
*/
|
|
11
|
-
loadComponents(store: any): void;
|
|
12
|
-
/**
|
|
13
|
-
* 新增组件信息
|
|
14
|
-
*/
|
|
15
|
-
addStore(cid: string): void;
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
private _addPlantStore;
|
|
20
|
-
/**
|
|
21
|
-
* 加载一对组件(包括组件和组件的属性面板)
|
|
22
|
-
* @param {src: Array<string>} src - 组件地址
|
|
23
|
-
* @param {string} tagName - 组件标签名
|
|
24
|
-
* @return {Object} Promise 返回Promise对象
|
|
25
|
-
*/
|
|
26
|
-
_loadComTmp(src: Array<string>, tagName: any): Promise<void>;
|
|
27
|
-
/**
|
|
28
|
-
* 加载组件
|
|
29
|
-
* @param {String} src - 组件地址
|
|
30
|
-
* @return {Object} Promise 返回Promise对象
|
|
31
|
-
*/
|
|
32
|
-
_load(src: string): Promise<object>;
|
|
33
|
-
}
|
|
34
|
-
export default Load;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export default class RuntimeServer {
|
|
2
|
-
root: any;
|
|
3
|
-
protected vuex: any;
|
|
4
|
-
eventType: any;
|
|
5
|
-
constructor(options?: any);
|
|
6
|
-
findComponentDownward(context: any, components: any): any;
|
|
7
|
-
getAllComponents(): {};
|
|
8
|
-
getComponentByCid(cid: any): any;
|
|
9
|
-
getElementByCid(cid: any): any;
|
|
10
|
-
/**
|
|
11
|
-
* 设置全局变量
|
|
12
|
-
* @param {*} data 传入的变量{key,value}
|
|
13
|
-
*/
|
|
14
|
-
setGlobalVar(data: {
|
|
15
|
-
key: string;
|
|
16
|
-
value: any;
|
|
17
|
-
}): void;
|
|
18
|
-
_showComponent(cid: any): void;
|
|
19
|
-
_hideComponent(cid: any): void;
|
|
20
|
-
getList(args: any): any;
|
|
21
|
-
getTheme(fn: Function): any;
|
|
22
|
-
getElement(cid: string): boolean | import("../Types").GoComponentConfig;
|
|
23
|
-
changeVis(data: any): any;
|
|
24
|
-
getPageInfo(fn?: Function): any;
|
|
25
|
-
changeDynamicState(data: {
|
|
26
|
-
cid: string;
|
|
27
|
-
activeName: string;
|
|
28
|
-
}): any;
|
|
29
|
-
pageChange(data: any): any;
|
|
30
|
-
getVars(fn?: Function): any;
|
|
31
|
-
setVars(data: Object): any;
|
|
32
|
-
}
|
|
33
|
-
export declare const run: (op: any) => import("./mitt").Emitter<Record<import("./mitt").EventType, unknown>>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare type EventType = string | symbol;
|
|
2
|
-
export declare type Handler<T = unknown> = (event: T) => any;
|
|
3
|
-
export declare type WildcardHandler<T = Record<string, unknown>> = (type: keyof T, event: T[keyof T]) => any;
|
|
4
|
-
export declare type EventHandlerList<T = unknown> = Array<Handler<T>>;
|
|
5
|
-
export declare type WildCardEventHandlerList<T = Record<string, unknown>> = Array<WildcardHandler<T>>;
|
|
6
|
-
export declare type EventHandlerMap<Events extends Record<EventType, unknown>> = Map<keyof Events | '*', EventHandlerList<Events[keyof Events]> | WildCardEventHandlerList<Events>>;
|
|
7
|
-
export interface Emitter<Events extends Record<EventType, unknown>> {
|
|
8
|
-
all: EventHandlerMap<Events>;
|
|
9
|
-
on<Key extends keyof Events>(type: Key, handler: Handler<Events[Key]>): any;
|
|
10
|
-
on(type: '*', handler: WildcardHandler<Events>): any;
|
|
11
|
-
off<Key extends keyof Events>(type: Key, handler?: Handler<Events[Key]>): any;
|
|
12
|
-
off(type: '*', handler: WildcardHandler<Events>): any;
|
|
13
|
-
emit<Key extends keyof Events>(type: Key, event: Events[Key]): any;
|
|
14
|
-
emit<Key extends keyof Events>(type: undefined extends Events[Key] ? Key : never): any;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Mitt: Tiny (~200b) functional event emitter / pubsub.
|
|
18
|
-
* @name mitt
|
|
19
|
-
* @returns {Mitt}
|
|
20
|
-
*/
|
|
21
|
-
export default function mitt<Events extends Record<EventType, unknown>>(all?: EventHandlerMap<Events>): Emitter<Events>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const actions: {
|
|
2
|
-
updataList: ({ commit }: any, payload: any) => void;
|
|
3
|
-
setActive: ({ commit }: any, reload: any) => void;
|
|
4
|
-
setSyncFlag: ({ commit }: any, reload: Boolean) => void;
|
|
5
|
-
execute: ({ commit }: any, reload: any) => void;
|
|
6
|
-
};
|
|
7
|
-
export default actions;
|
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
declare const store: {
|
|
2
|
-
namespaced: boolean;
|
|
3
|
-
state: {
|
|
4
|
-
size: {
|
|
5
|
-
width: number;
|
|
6
|
-
height: number;
|
|
7
|
-
};
|
|
8
|
-
resource: {
|
|
9
|
-
jspaths: never[];
|
|
10
|
-
csspaths: never[];
|
|
11
|
-
otherpaths: never[];
|
|
12
|
-
};
|
|
13
|
-
alternateData: {};
|
|
14
|
-
contextList: {};
|
|
15
|
-
selectd: never[];
|
|
16
|
-
baseComs: never[];
|
|
17
|
-
globalVars: never[];
|
|
18
|
-
globalEvents: never[];
|
|
19
|
-
pages: never[];
|
|
20
|
-
pageIndex: number;
|
|
21
|
-
groupFlag: boolean;
|
|
22
|
-
plant: {
|
|
23
|
-
baseData: {
|
|
24
|
-
width: number;
|
|
25
|
-
height: number;
|
|
26
|
-
};
|
|
27
|
-
option: null;
|
|
28
|
-
optionDes: null;
|
|
29
|
-
};
|
|
30
|
-
list: never[];
|
|
31
|
-
menuList: never[];
|
|
32
|
-
syncFlag: boolean;
|
|
33
|
-
multiple: boolean;
|
|
34
|
-
undoRedoPointer: number;
|
|
35
|
-
undos: never[];
|
|
36
|
-
redos: never[];
|
|
37
|
-
cache: never[];
|
|
38
|
-
cloneCache: never[];
|
|
39
|
-
shareVariable: {};
|
|
40
|
-
shareVariableTree: {};
|
|
41
|
-
catch: {
|
|
42
|
-
selectd: never[];
|
|
43
|
-
list: never[];
|
|
44
|
-
};
|
|
45
|
-
currentEditerCid: string;
|
|
46
|
-
currentArea: {
|
|
47
|
-
left: number;
|
|
48
|
-
top: number;
|
|
49
|
-
width: number;
|
|
50
|
-
height: number;
|
|
51
|
-
show: boolean;
|
|
52
|
-
};
|
|
53
|
-
caseList: never[];
|
|
54
|
-
constant: never[];
|
|
55
|
-
caseInfo: null;
|
|
56
|
-
pageId: null;
|
|
57
|
-
};
|
|
58
|
-
mutations: {
|
|
59
|
-
setPageData(state: import("../Types").StateConfig, data: any): void;
|
|
60
|
-
parasePages(state: import("../Types").StateConfig, data: any[]): void;
|
|
61
|
-
addPage(state: import("../Types").StateConfig, data: any): void;
|
|
62
|
-
setCurrentPageIndex(state: import("../Types").StateConfig, index: number): void;
|
|
63
|
-
setPageDataForIndex(state: import("../Types").StateConfig, reload: {
|
|
64
|
-
index: number;
|
|
65
|
-
data: any;
|
|
66
|
-
}): void;
|
|
67
|
-
setPageName(state: import("../Types").StateConfig, reload: string): void;
|
|
68
|
-
saveCurrentPageData(state: import("../Types").StateConfig): void;
|
|
69
|
-
getCurrentPageData(state: import("../Types").StateConfig): void;
|
|
70
|
-
layout(state: import("../Types").StateConfig, reload: string): void;
|
|
71
|
-
reset(state: import("../Types").StateConfig): void;
|
|
72
|
-
setCaseInfo(state: import("../Types").StateConfig, data: any): void;
|
|
73
|
-
setPageId(state: import("../Types").StateConfig, id: any): void;
|
|
74
|
-
addConstant(state: import("../Types").StateConfig, data: {
|
|
75
|
-
name: string;
|
|
76
|
-
des: string;
|
|
77
|
-
value: any;
|
|
78
|
-
}): void;
|
|
79
|
-
editConstant(state: import("../Types").StateConfig, data: {
|
|
80
|
-
name: string;
|
|
81
|
-
des: string;
|
|
82
|
-
value: any;
|
|
83
|
-
}): void;
|
|
84
|
-
delConstant(state: import("../Types").StateConfig, name: string): void;
|
|
85
|
-
setResource(state: import("../Types").StateConfig, reload: any): void;
|
|
86
|
-
updataResource(state: import("../Types").StateConfig): void;
|
|
87
|
-
setData(state: import("../Types").StateConfig, reload: any): void;
|
|
88
|
-
setList(state: import("../Types").StateConfig, reload: any): void;
|
|
89
|
-
saveDynamicChildren(state: import("../Types").StateConfig, reload: {
|
|
90
|
-
cid: string;
|
|
91
|
-
data: any;
|
|
92
|
-
name: string;
|
|
93
|
-
}): void;
|
|
94
|
-
setTheme(state: import("../Types").StateConfig, reload: any): void;
|
|
95
|
-
setPlant(state: import("../Types").StateConfig, reload: {
|
|
96
|
-
attr: string;
|
|
97
|
-
value: any;
|
|
98
|
-
}): void;
|
|
99
|
-
reversal(state: import("../Types").StateConfig, reload: any): void;
|
|
100
|
-
setComTmp(state: import("../Types").StateConfig, reload: any[]): void;
|
|
101
|
-
setLoading(state: import("../Types").StateConfig, reload: {
|
|
102
|
-
cid: string;
|
|
103
|
-
flag: boolean;
|
|
104
|
-
}): void;
|
|
105
|
-
setMultiple(state: import("../Types").StateConfig, reload: any): void;
|
|
106
|
-
setCaseList(state: import("../Types").StateConfig, reload: []): void;
|
|
107
|
-
updataComponentForList(state: import("../Types").StateConfig, reload: any): void;
|
|
108
|
-
updataComponentForCaseList(state: import("../Types").StateConfig, reload: any): void;
|
|
109
|
-
updataComponent(state: import("../Types").StateConfig, reload: any): void;
|
|
110
|
-
updataArea(state: import("../Types").StateConfig, reload: any): void;
|
|
111
|
-
updataSource(state: import("../Types").StateConfig, reload: {
|
|
112
|
-
cid: string;
|
|
113
|
-
data: any;
|
|
114
|
-
}): void;
|
|
115
|
-
updataSourceForComponent(state: import("../Types").StateConfig, reload: {
|
|
116
|
-
cid: string;
|
|
117
|
-
data: any;
|
|
118
|
-
}): void;
|
|
119
|
-
setContext(state: import("../Types").StateConfig, reload: {
|
|
120
|
-
cid: string;
|
|
121
|
-
data: any;
|
|
122
|
-
}): void;
|
|
123
|
-
setContextList(state: import("../Types").StateConfig, reload: {
|
|
124
|
-
cid: string;
|
|
125
|
-
data: any;
|
|
126
|
-
}): void;
|
|
127
|
-
setPosition(state: import("../Types").StateConfig, reload: [string, import("../Types").BaseData]): void;
|
|
128
|
-
setSelect(state: import("../Types").StateConfig, reload: string | string[]): void;
|
|
129
|
-
setActive(state: import("../Types").StateConfig, reload: import("../Types").ActiveTypes): void;
|
|
130
|
-
setCache(state: import("../Types").StateConfig): void;
|
|
131
|
-
clearActive(state: import("../Types").StateConfig): void;
|
|
132
|
-
setMultipleActive(state: import("../Types").StateConfig, reload: [string]): void;
|
|
133
|
-
syncMenuInfo(state: import("../Types").StateConfig): void;
|
|
134
|
-
addComs(state: import("../Types").StateConfig, reload: import("../Types").GoComponentConfig): void;
|
|
135
|
-
addStateChildren(state: import("../Types").StateConfig, reload: import("../Types").GoComponentConfig): void;
|
|
136
|
-
addDynamicChildren(state: import("../Types").StateConfig, reload: import("../Types").GoComponentConfig): void;
|
|
137
|
-
changeDynamicState(state: import("../Types").StateConfig, reload: {
|
|
138
|
-
cid: string;
|
|
139
|
-
activeName: string;
|
|
140
|
-
}): void;
|
|
141
|
-
addAlternateData(state: import("../Types").StateConfig, reload: import("../Types").GoComponentConfig): void;
|
|
142
|
-
mergeConfig(state: import("../Types").StateConfig, reload: any): void;
|
|
143
|
-
updataName(state: import("../Types").StateConfig, reload: any): void;
|
|
144
|
-
setCurrentEdited(state: import("../Types").StateConfig, reload: string): void;
|
|
145
|
-
updataList(state: import("../Types").StateConfig, reload: {
|
|
146
|
-
cid: string;
|
|
147
|
-
list: import("../Types").GoComponentConfig[];
|
|
148
|
-
}): void;
|
|
149
|
-
updataListForContrast(state: import("../Types").StateConfig, data: {
|
|
150
|
-
cid: string;
|
|
151
|
-
list: import("../Types").GoComponentConfig[];
|
|
152
|
-
}): void;
|
|
153
|
-
updateTree(state: import("../Types").StateConfig): void;
|
|
154
|
-
setSyncFlag(state: import("../Types").StateConfig, reload: Boolean): void;
|
|
155
|
-
goUpShareVar(state: import("../Types").StateConfig, reload: any): void;
|
|
156
|
-
goEditVar(state: import("../Types").StateConfig, reload: {
|
|
157
|
-
key: string;
|
|
158
|
-
value: any;
|
|
159
|
-
}): void;
|
|
160
|
-
goDelShareVar(state: import("../Types").StateConfig, reload: string): void;
|
|
161
|
-
signal(state: import("../Types").StateConfig, reload: {
|
|
162
|
-
cid: string;
|
|
163
|
-
type: string;
|
|
164
|
-
data: Object;
|
|
165
|
-
}): void;
|
|
166
|
-
goSynchroDataAll(state: import("../Types").StateConfig, reload: import("../Types").GoComponentConfig[]): void;
|
|
167
|
-
goSynchroData(state: import("../Types").StateConfig, reload: {
|
|
168
|
-
cid: string;
|
|
169
|
-
attr: string;
|
|
170
|
-
value: any;
|
|
171
|
-
attrModel: string;
|
|
172
|
-
}): false | undefined;
|
|
173
|
-
delListItem(state: import("../Types").StateConfig, reload: string | []): void;
|
|
174
|
-
cloneItem(state: import("../Types").StateConfig): void;
|
|
175
|
-
shearItem(state: import("../Types").StateConfig, reload: string | number): void;
|
|
176
|
-
pasteItem(state: import("../Types").StateConfig): void;
|
|
177
|
-
updataShow(state: import("../Types").StateConfig, reload: string): void;
|
|
178
|
-
changeShow(state: import("../Types").StateConfig, reload: {
|
|
179
|
-
cid: string;
|
|
180
|
-
flag: boolean;
|
|
181
|
-
}): void;
|
|
182
|
-
updataLock(state: import("../Types").StateConfig, reload: string): void;
|
|
183
|
-
breakUp(state: import("../Types").StateConfig, reload: string): void;
|
|
184
|
-
editGroup(state: import("../Types").StateConfig, reload: {
|
|
185
|
-
groupId: string;
|
|
186
|
-
status: Boolean;
|
|
187
|
-
}): void;
|
|
188
|
-
combination(state: import("../Types").StateConfig): void;
|
|
189
|
-
moveUp(state: import("../Types").StateConfig, reload: string): void;
|
|
190
|
-
moveDown(state: import("../Types").StateConfig, reload: string): void;
|
|
191
|
-
moveTop(state: import("../Types").StateConfig, reload: string): void;
|
|
192
|
-
moveBottom(state: import("../Types").StateConfig, reload: string): void;
|
|
193
|
-
selectdArea(state: import("../Types").StateConfig, reload: string[]): void;
|
|
194
|
-
updataAngle(state: import("../Types").StateConfig, reload: {
|
|
195
|
-
id: string;
|
|
196
|
-
angle: number;
|
|
197
|
-
}): void;
|
|
198
|
-
updataBaseData(state: import("../Types").StateConfig, reload: {
|
|
199
|
-
data: import("../Types").GoComponentConfig;
|
|
200
|
-
ratio?: boolean | undefined;
|
|
201
|
-
oldData?: import("../Types").BaseData | undefined;
|
|
202
|
-
}): void;
|
|
203
|
-
multipleUpdataBaseData(state: import("../Types").StateConfig, reload: any): void;
|
|
204
|
-
multipleUpdata(state: import("../Types").StateConfig, reload: {
|
|
205
|
-
ids: string;
|
|
206
|
-
data: import("../Types").BaseData;
|
|
207
|
-
}): void;
|
|
208
|
-
multipleMove(state: import("../Types").StateConfig, reload: any): void;
|
|
209
|
-
move(state: import("../Types").StateConfig, reload: {
|
|
210
|
-
type: "up" | "down" | "left" | "right";
|
|
211
|
-
speed?: number | undefined;
|
|
212
|
-
}): void;
|
|
213
|
-
updataGroupBaseData(state: import("../Types").StateConfig, reload: {
|
|
214
|
-
pid: string;
|
|
215
|
-
cid: string;
|
|
216
|
-
}): void;
|
|
217
|
-
editGroupBaseData(state: import("../Types").StateConfig, reload: string): void;
|
|
218
|
-
syncBaseData(state: import("../Types").StateConfig, reload: {
|
|
219
|
-
cid: string;
|
|
220
|
-
data: Object;
|
|
221
|
-
}): void;
|
|
222
|
-
updataItemData(state: import("../Types").StateConfig, reload: {
|
|
223
|
-
cid: string;
|
|
224
|
-
propsName: string;
|
|
225
|
-
propsValue: any;
|
|
226
|
-
}): void;
|
|
227
|
-
updataOpacity(state: import("../Types").StateConfig, reload: {
|
|
228
|
-
cid: string;
|
|
229
|
-
propsValue: any;
|
|
230
|
-
}): void;
|
|
231
|
-
createItem(state: import("../Types").StateConfig): void;
|
|
232
|
-
resetData(state: import("../Types").StateConfig, data: any): void;
|
|
233
|
-
execute(state: import("../Types").StateConfig): void;
|
|
234
|
-
undo(state: import("../Types").StateConfig): void;
|
|
235
|
-
redo(state: import("../Types").StateConfig): void;
|
|
236
|
-
};
|
|
237
|
-
actions: {
|
|
238
|
-
updataList: ({ commit }: any, payload: any) => void;
|
|
239
|
-
setActive: ({ commit }: any, reload: any) => void;
|
|
240
|
-
setSyncFlag: ({ commit }: any, reload: Boolean) => void;
|
|
241
|
-
execute: ({ commit }: any, reload: any) => void;
|
|
242
|
-
};
|
|
243
|
-
getters: {
|
|
244
|
-
getCurrentPage: (state: any) => any;
|
|
245
|
-
};
|
|
246
|
-
};
|
|
247
|
-
export { store };
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { StateConfig, GoComponentConfig, BaseData } from '../../Types/index';
|
|
2
|
-
declare const baseDataMutaitons: {
|
|
3
|
-
/**
|
|
4
|
-
* 设置多选组件的大小
|
|
5
|
-
* @param { StateConfig } state - goCom State
|
|
6
|
-
* @param {{BaseData}} reload- 组件位置信息
|
|
7
|
-
*/
|
|
8
|
-
updataArea(state: StateConfig, reload: BaseData): void;
|
|
9
|
-
/**
|
|
10
|
-
* 更新多选组件的基本信息
|
|
11
|
-
* @param { StateConfig } state - goCom State
|
|
12
|
-
* @param {{String[]}} reload- data 组件跟新信息 ratio: 是否 开启子组件等比缩放
|
|
13
|
-
*/
|
|
14
|
-
selectdArea(state: StateConfig, reload: string[]): void;
|
|
15
|
-
/**
|
|
16
|
-
* 更新多选组件的基本信息
|
|
17
|
-
* @param { StateConfig } state - goCom State
|
|
18
|
-
* @param {{id,angle}} reload- data 组件跟新信息 ratio: 是否 开启子组件等比缩放
|
|
19
|
-
*/
|
|
20
|
-
updataAngle(state: StateConfig, reload: {
|
|
21
|
-
id: string;
|
|
22
|
-
angle: number;
|
|
23
|
-
}): void;
|
|
24
|
-
/**
|
|
25
|
-
* 更新组件的基本信息
|
|
26
|
-
* @param { StateConfig } state - goCom State
|
|
27
|
-
* @param {{data:GoComponentConfig,ratio:boolean}} reload- data 组件跟新信息 ratio: 是否 开启子组件等比缩放
|
|
28
|
-
*/
|
|
29
|
-
updataBaseData(state: StateConfig, reload: {
|
|
30
|
-
data: GoComponentConfig;
|
|
31
|
-
ratio?: boolean | undefined;
|
|
32
|
-
oldData?: BaseData | undefined;
|
|
33
|
-
}): void;
|
|
34
|
-
multipleUpdataBaseData(state: StateConfig, reload: any): void;
|
|
35
|
-
multipleUpdata(state: StateConfig, reload: {
|
|
36
|
-
ids: string;
|
|
37
|
-
data: BaseData;
|
|
38
|
-
}): void;
|
|
39
|
-
multipleMove(state: StateConfig, reload: any): void;
|
|
40
|
-
move(state: StateConfig, reload: {
|
|
41
|
-
type: 'up' | 'down' | 'left' | 'right';
|
|
42
|
-
speed?: number | undefined;
|
|
43
|
-
}): void;
|
|
44
|
-
/**
|
|
45
|
-
* 更新组内组件拖动后 组的大小位置变化
|
|
46
|
-
* @param { StateConfig } state - goCom State
|
|
47
|
-
* @param {string} reload- 组和变更组件id
|
|
48
|
-
*/
|
|
49
|
-
updataGroupBaseData(state: StateConfig, reload: {
|
|
50
|
-
pid: string;
|
|
51
|
-
cid: string;
|
|
52
|
-
}): void;
|
|
53
|
-
editGroupBaseData(state: StateConfig, reload: string): void;
|
|
54
|
-
syncBaseData(state: StateConfig, reload: {
|
|
55
|
-
cid: string;
|
|
56
|
-
data: Object;
|
|
57
|
-
}): void;
|
|
58
|
-
updataItemData(state: StateConfig, reload: {
|
|
59
|
-
cid: string;
|
|
60
|
-
propsName: string;
|
|
61
|
-
propsValue: any;
|
|
62
|
-
}): void;
|
|
63
|
-
updataOpacity(state: StateConfig, reload: {
|
|
64
|
-
cid: string;
|
|
65
|
-
propsValue: any;
|
|
66
|
-
}): void;
|
|
67
|
-
};
|
|
68
|
-
export default baseDataMutaitons;
|