@a2simcode/ui 0.0.29 → 0.0.31
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/inject-provide.d.ts +1 -1
- package/dist/components/input-rows/src/interface.d.ts +2 -2
- package/dist/components/table/index.d.ts +93 -3
- package/dist/components/table/src/table.vue.d.ts +61 -2
- package/dist/simcode-ui.es.js +3867 -3796
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/package.json +4 -3
- package/dist/components-dui/button/index.d.ts +0 -51
- package/dist/components-dui/button/src/button.vue.d.ts +0 -29
- package/dist/components-dui/button/src/types.d.ts +0 -9
- package/dist/components-dui/drag/index.d.ts +0 -210
- package/dist/components-dui/drag/src/container.vue.d.ts +0 -108
- package/dist/components-dui/drag/src/drag.vue.d.ts +0 -105
- package/dist/components-dui/drag/src/dragIndexList.vue.d.ts +0 -133
- package/dist/components-dui/drag/src/dragList.vue.d.ts +0 -130
- package/dist/components-dui/drag/src/eventBus.d.ts +0 -4
- package/dist/components-dui/drag/src/hooks/useDesign.d.ts +0 -11
- package/dist/components-dui/drag/src/hooks/useDrag.d.ts +0 -18
- package/dist/components-dui/drag/src/hooks/useMouseEvent.d.ts +0 -6
- package/dist/components-dui/drag/src/interface.d.ts +0 -54
- package/dist/components-dui/drag/src/tool.vue.d.ts +0 -26
- package/dist/components-dui/index.d.ts +0 -9
- package/dist/components-dui/utils/index.d.ts +0 -7
- package/dist/components-dui/vite.config.d.ts +0 -2
- package/dist/core/index.d.ts +0 -1
- package/dist/core/utils/cipher.d.ts +0 -21
- package/dist/core/utils/common.d.ts +0 -72
- package/dist/core/utils/comp.d.ts +0 -27
- package/dist/core/utils/date.d.ts +0 -3
- package/dist/core/utils/dom.d.ts +0 -4
- package/dist/core/utils/eventBus.d.ts +0 -38
- package/dist/core/utils/index.d.ts +0 -10
- package/dist/core/utils/is.d.ts +0 -4
- package/dist/core/utils/map.d.ts +0 -1
- package/dist/core/utils/tree.d.ts +0 -11
- package/dist/core/utils/useSortable.d.ts +0 -5
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { DesignComponent } from './interface';
|
|
2
|
-
import { PropType } from 'vue';
|
|
3
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
-
/**
|
|
5
|
-
* @zh 配置项
|
|
6
|
-
*/
|
|
7
|
-
componentList: {
|
|
8
|
-
type: PropType<DesignComponent[]>;
|
|
9
|
-
default: () => never[];
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* @zh 全局配置
|
|
13
|
-
*/
|
|
14
|
-
globalConfig: {
|
|
15
|
-
type: ObjectConstructor;
|
|
16
|
-
default: () => {};
|
|
17
|
-
};
|
|
18
|
-
}>, {
|
|
19
|
-
designItemName: any;
|
|
20
|
-
componentStyle: (config: Record<string, any>) => {
|
|
21
|
-
width: string;
|
|
22
|
-
} | undefined;
|
|
23
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
24
|
-
/**
|
|
25
|
-
* @zh 配置项
|
|
26
|
-
*/
|
|
27
|
-
componentList: {
|
|
28
|
-
type: PropType<DesignComponent[]>;
|
|
29
|
-
default: () => never[];
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* @zh 全局配置
|
|
33
|
-
*/
|
|
34
|
-
globalConfig: {
|
|
35
|
-
type: ObjectConstructor;
|
|
36
|
-
default: () => {};
|
|
37
|
-
};
|
|
38
|
-
}>> & Readonly<{}>, {
|
|
39
|
-
componentList: DesignComponent[];
|
|
40
|
-
globalConfig: Record<string, any>;
|
|
41
|
-
}, {}, {
|
|
42
|
-
DDrag: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
43
|
-
componentData: {
|
|
44
|
-
type: PropType<DesignComponent>;
|
|
45
|
-
default: () => {};
|
|
46
|
-
};
|
|
47
|
-
isContainer: {
|
|
48
|
-
type: BooleanConstructor;
|
|
49
|
-
default: boolean;
|
|
50
|
-
};
|
|
51
|
-
}>, {
|
|
52
|
-
refDrag: import('vue').Ref<any, any>;
|
|
53
|
-
onMouseenter: () => void;
|
|
54
|
-
onMouseleave: () => void;
|
|
55
|
-
onContextmenu: () => void;
|
|
56
|
-
onMousedown: (e: MouseEvent) => void;
|
|
57
|
-
activeComponent: () => void;
|
|
58
|
-
handleComponentClick: (id: string) => void;
|
|
59
|
-
deleteComponentByClick: (id: string) => void;
|
|
60
|
-
copyComponent: any;
|
|
61
|
-
getParentComponents: any;
|
|
62
|
-
isHover: import('vue').Ref<boolean, boolean>;
|
|
63
|
-
isSelect: import('vue').Ref<boolean, boolean>;
|
|
64
|
-
isTopActive: import('vue').Ref<boolean, boolean>;
|
|
65
|
-
isBottomActive: import('vue').Ref<boolean, boolean>;
|
|
66
|
-
isBottomToolBar: import('vue').Ref<boolean, boolean>;
|
|
67
|
-
moveActive: import('vue').Ref<boolean, boolean>;
|
|
68
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
69
|
-
componentData: {
|
|
70
|
-
type: PropType<DesignComponent>;
|
|
71
|
-
default: () => {};
|
|
72
|
-
};
|
|
73
|
-
isContainer: {
|
|
74
|
-
type: BooleanConstructor;
|
|
75
|
-
default: boolean;
|
|
76
|
-
};
|
|
77
|
-
}>> & Readonly<{}>, {
|
|
78
|
-
componentData: DesignComponent;
|
|
79
|
-
isContainer: boolean;
|
|
80
|
-
}, {}, {
|
|
81
|
-
DButton: {
|
|
82
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../..').ButtonProps> & Readonly<{
|
|
83
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
84
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
85
|
-
click: (event: MouseEvent) => any;
|
|
86
|
-
}, import('vue').PublicProps, {
|
|
87
|
-
size: "large" | "default" | "small";
|
|
88
|
-
type: "primary" | "default" | "dashed" | "text";
|
|
89
|
-
shape: "default" | "round" | "circle";
|
|
90
|
-
disabled: boolean;
|
|
91
|
-
block: boolean;
|
|
92
|
-
loading: boolean;
|
|
93
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLButtonElement, import('vue').ComponentProvideOptions, {
|
|
94
|
-
P: {};
|
|
95
|
-
B: {};
|
|
96
|
-
D: {};
|
|
97
|
-
C: {};
|
|
98
|
-
M: {};
|
|
99
|
-
Defaults: {};
|
|
100
|
-
}, Readonly<import('../..').ButtonProps> & Readonly<{
|
|
101
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
102
|
-
}>, {}, {}, {}, {}, {
|
|
103
|
-
size: "large" | "default" | "small";
|
|
104
|
-
type: "primary" | "default" | "dashed" | "text";
|
|
105
|
-
shape: "default" | "round" | "circle";
|
|
106
|
-
disabled: boolean;
|
|
107
|
-
block: boolean;
|
|
108
|
-
loading: boolean;
|
|
109
|
-
}>;
|
|
110
|
-
__isFragment?: never;
|
|
111
|
-
__isTeleport?: never;
|
|
112
|
-
__isSuspense?: never;
|
|
113
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('../..').ButtonProps> & Readonly<{
|
|
114
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
115
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
116
|
-
click: (event: MouseEvent) => any;
|
|
117
|
-
}, string, {
|
|
118
|
-
size: "large" | "default" | "small";
|
|
119
|
-
type: "primary" | "default" | "dashed" | "text";
|
|
120
|
-
shape: "default" | "round" | "circle";
|
|
121
|
-
disabled: boolean;
|
|
122
|
-
block: boolean;
|
|
123
|
-
loading: boolean;
|
|
124
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
125
|
-
$slots: {
|
|
126
|
-
default?(_: {}): any;
|
|
127
|
-
};
|
|
128
|
-
}) & {
|
|
129
|
-
install: (app: import('vue').App) => void;
|
|
130
|
-
};
|
|
131
|
-
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
132
|
-
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
133
|
-
export default _default;
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { DesignComponent } from './interface';
|
|
2
|
-
import { PropType } from 'vue';
|
|
3
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
-
/**
|
|
5
|
-
* @zh 配置项
|
|
6
|
-
*/
|
|
7
|
-
componentList: {
|
|
8
|
-
type: PropType<DesignComponent[]>;
|
|
9
|
-
default: () => never[];
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* @zh 全局配置
|
|
13
|
-
*/
|
|
14
|
-
globalConfig: {
|
|
15
|
-
type: ObjectConstructor;
|
|
16
|
-
default: () => {};
|
|
17
|
-
};
|
|
18
|
-
}>, {
|
|
19
|
-
designItemName: any;
|
|
20
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
21
|
-
/**
|
|
22
|
-
* @zh 配置项
|
|
23
|
-
*/
|
|
24
|
-
componentList: {
|
|
25
|
-
type: PropType<DesignComponent[]>;
|
|
26
|
-
default: () => never[];
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* @zh 全局配置
|
|
30
|
-
*/
|
|
31
|
-
globalConfig: {
|
|
32
|
-
type: ObjectConstructor;
|
|
33
|
-
default: () => {};
|
|
34
|
-
};
|
|
35
|
-
}>> & Readonly<{}>, {
|
|
36
|
-
componentList: DesignComponent[];
|
|
37
|
-
globalConfig: Record<string, any>;
|
|
38
|
-
}, {}, {
|
|
39
|
-
DDrag: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
40
|
-
componentData: {
|
|
41
|
-
type: PropType<DesignComponent>;
|
|
42
|
-
default: () => {};
|
|
43
|
-
};
|
|
44
|
-
isContainer: {
|
|
45
|
-
type: BooleanConstructor;
|
|
46
|
-
default: boolean;
|
|
47
|
-
};
|
|
48
|
-
}>, {
|
|
49
|
-
refDrag: import('vue').Ref<any, any>;
|
|
50
|
-
onMouseenter: () => void;
|
|
51
|
-
onMouseleave: () => void;
|
|
52
|
-
onContextmenu: () => void;
|
|
53
|
-
onMousedown: (e: MouseEvent) => void;
|
|
54
|
-
activeComponent: () => void;
|
|
55
|
-
handleComponentClick: (id: string) => void;
|
|
56
|
-
deleteComponentByClick: (id: string) => void;
|
|
57
|
-
copyComponent: any;
|
|
58
|
-
getParentComponents: any;
|
|
59
|
-
isHover: import('vue').Ref<boolean, boolean>;
|
|
60
|
-
isSelect: import('vue').Ref<boolean, boolean>;
|
|
61
|
-
isTopActive: import('vue').Ref<boolean, boolean>;
|
|
62
|
-
isBottomActive: import('vue').Ref<boolean, boolean>;
|
|
63
|
-
isBottomToolBar: import('vue').Ref<boolean, boolean>;
|
|
64
|
-
moveActive: import('vue').Ref<boolean, boolean>;
|
|
65
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
66
|
-
componentData: {
|
|
67
|
-
type: PropType<DesignComponent>;
|
|
68
|
-
default: () => {};
|
|
69
|
-
};
|
|
70
|
-
isContainer: {
|
|
71
|
-
type: BooleanConstructor;
|
|
72
|
-
default: boolean;
|
|
73
|
-
};
|
|
74
|
-
}>> & Readonly<{}>, {
|
|
75
|
-
componentData: DesignComponent;
|
|
76
|
-
isContainer: boolean;
|
|
77
|
-
}, {}, {
|
|
78
|
-
DButton: {
|
|
79
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../..').ButtonProps> & Readonly<{
|
|
80
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
81
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
82
|
-
click: (event: MouseEvent) => any;
|
|
83
|
-
}, import('vue').PublicProps, {
|
|
84
|
-
size: "large" | "default" | "small";
|
|
85
|
-
type: "primary" | "default" | "dashed" | "text";
|
|
86
|
-
shape: "default" | "round" | "circle";
|
|
87
|
-
disabled: boolean;
|
|
88
|
-
block: boolean;
|
|
89
|
-
loading: boolean;
|
|
90
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLButtonElement, import('vue').ComponentProvideOptions, {
|
|
91
|
-
P: {};
|
|
92
|
-
B: {};
|
|
93
|
-
D: {};
|
|
94
|
-
C: {};
|
|
95
|
-
M: {};
|
|
96
|
-
Defaults: {};
|
|
97
|
-
}, Readonly<import('../..').ButtonProps> & Readonly<{
|
|
98
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
99
|
-
}>, {}, {}, {}, {}, {
|
|
100
|
-
size: "large" | "default" | "small";
|
|
101
|
-
type: "primary" | "default" | "dashed" | "text";
|
|
102
|
-
shape: "default" | "round" | "circle";
|
|
103
|
-
disabled: boolean;
|
|
104
|
-
block: boolean;
|
|
105
|
-
loading: boolean;
|
|
106
|
-
}>;
|
|
107
|
-
__isFragment?: never;
|
|
108
|
-
__isTeleport?: never;
|
|
109
|
-
__isSuspense?: never;
|
|
110
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('../..').ButtonProps> & Readonly<{
|
|
111
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
112
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
113
|
-
click: (event: MouseEvent) => any;
|
|
114
|
-
}, string, {
|
|
115
|
-
size: "large" | "default" | "small";
|
|
116
|
-
type: "primary" | "default" | "dashed" | "text";
|
|
117
|
-
shape: "default" | "round" | "circle";
|
|
118
|
-
disabled: boolean;
|
|
119
|
-
block: boolean;
|
|
120
|
-
loading: boolean;
|
|
121
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
122
|
-
$slots: {
|
|
123
|
-
default?(_: {}): any;
|
|
124
|
-
};
|
|
125
|
-
}) & {
|
|
126
|
-
install: (app: import('vue').App) => void;
|
|
127
|
-
};
|
|
128
|
-
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
129
|
-
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
130
|
-
export default _default;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DesignComponent } from '../interface';
|
|
2
|
-
export declare const useDesign: (dragContainer: any, configRef: any, top: DesignComponent, componentInit: any, componentConfigInit: any, componentConfigs: Record<string, any[]>, componentsMap: Record<string, any>, containerAddComponent: any) => {
|
|
3
|
-
activedComponent: import('vue').Ref<any, any>;
|
|
4
|
-
clearComponents: () => void;
|
|
5
|
-
changeComponent: (type: string) => void;
|
|
6
|
-
schemaComponentDic: Record<string, DesignComponent>;
|
|
7
|
-
clearSelect: () => void;
|
|
8
|
-
addComponent: ({ name, type, dragType, isInput, componentName, runtimeType }: any, containerId: string, index: number, groupId: string, noSelect?: boolean) => DesignComponent | undefined;
|
|
9
|
-
addComponentByTable: (component: any) => void;
|
|
10
|
-
designComponentList: import('vue').ComputedRef<DesignComponent[]>;
|
|
11
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { DesignComponent } from '../interface';
|
|
2
|
-
import { ComputedRef } from 'vue';
|
|
3
|
-
export declare const useDrag: (refDrag: any, componentData: DesignComponent, dragType: string, childComponents?: ComputedRef<Record<string, any>[]>, isComponentContainer?: boolean, groupId?: string) => {
|
|
4
|
-
onMouseenter: () => void;
|
|
5
|
-
onMouseleave: () => void;
|
|
6
|
-
activeComponent: () => void;
|
|
7
|
-
handleComponentClick: (id: string) => void;
|
|
8
|
-
deleteComponentByClick: (id: string) => void;
|
|
9
|
-
copyComponent: any;
|
|
10
|
-
getParentComponents: any;
|
|
11
|
-
isBottomToolBar: import('vue').Ref<boolean, boolean>;
|
|
12
|
-
isHover: import('vue').Ref<boolean, boolean>;
|
|
13
|
-
isSelect: import('vue').Ref<boolean, boolean>;
|
|
14
|
-
isToContainer: import('vue').Ref<boolean, boolean>;
|
|
15
|
-
isMoveingInTopLevel: import('vue').Ref<boolean, boolean>;
|
|
16
|
-
isTopActive: import('vue').Ref<boolean, boolean>;
|
|
17
|
-
isBottomActive: import('vue').Ref<boolean, boolean>;
|
|
18
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
export interface DesignComponent {
|
|
2
|
-
/**
|
|
3
|
-
* @zh id
|
|
4
|
-
*/
|
|
5
|
-
id: string;
|
|
6
|
-
/**
|
|
7
|
-
* @zh 组件名
|
|
8
|
-
*/
|
|
9
|
-
name: string;
|
|
10
|
-
/**
|
|
11
|
-
* @zh 组件类型
|
|
12
|
-
*/
|
|
13
|
-
type: string;
|
|
14
|
-
/**
|
|
15
|
-
* @zh 组件类型
|
|
16
|
-
*/
|
|
17
|
-
dragType: string;
|
|
18
|
-
/**
|
|
19
|
-
* @zh 组件类型
|
|
20
|
-
*/
|
|
21
|
-
componentName: string;
|
|
22
|
-
/**
|
|
23
|
-
* @zh 组件类型(表单实际运行组件)
|
|
24
|
-
*/
|
|
25
|
-
runtimeType?: string;
|
|
26
|
-
/**
|
|
27
|
-
* @zh 所在容器id
|
|
28
|
-
*/
|
|
29
|
-
containerId: string;
|
|
30
|
-
/**
|
|
31
|
-
* @zh 是否是输入组件
|
|
32
|
-
*/
|
|
33
|
-
isInput: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* @zhe 层级
|
|
36
|
-
*/
|
|
37
|
-
level: number;
|
|
38
|
-
/**
|
|
39
|
-
* @zh 配置信息
|
|
40
|
-
*/
|
|
41
|
-
config: Record<string, any>;
|
|
42
|
-
/**
|
|
43
|
-
* @zh 所在容器分类
|
|
44
|
-
*/
|
|
45
|
-
groupId?: string;
|
|
46
|
-
/**
|
|
47
|
-
* @zh 子组件
|
|
48
|
-
*/
|
|
49
|
-
children?: DesignComponent[];
|
|
50
|
-
/**
|
|
51
|
-
* @zh 是否是新增组件
|
|
52
|
-
*/
|
|
53
|
-
isNewAdd?: boolean;
|
|
54
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { DesignComponent } from './interface';
|
|
2
|
-
import { PropType } from 'vue';
|
|
3
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
-
/**
|
|
5
|
-
* @zh 配置项
|
|
6
|
-
*/
|
|
7
|
-
config: {
|
|
8
|
-
type: PropType<DesignComponent>;
|
|
9
|
-
default: () => {};
|
|
10
|
-
};
|
|
11
|
-
}>, {
|
|
12
|
-
onContextmenu: () => void;
|
|
13
|
-
onMousedown: (e: MouseEvent) => void;
|
|
14
|
-
onClick: () => void;
|
|
15
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
-
/**
|
|
17
|
-
* @zh 配置项
|
|
18
|
-
*/
|
|
19
|
-
config: {
|
|
20
|
-
type: PropType<DesignComponent>;
|
|
21
|
-
default: () => {};
|
|
22
|
-
};
|
|
23
|
-
}>> & Readonly<{}>, {
|
|
24
|
-
config: DesignComponent;
|
|
25
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
26
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { App } from 'vue';
|
|
2
|
-
import { default as DuiButton } from './button';
|
|
3
|
-
import { default as DDrag, dragTool, dragContainer, dragList, dragIndexList } from './drag';
|
|
4
|
-
export { DuiButton, DDrag, dragTool, dragContainer, dragList, dragIndexList };
|
|
5
|
-
export type { ButtonProps } from './button/src/types';
|
|
6
|
-
declare const _default: {
|
|
7
|
-
install: (app: App) => void;
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { App, Component } from 'vue';
|
|
2
|
-
export declare const withInstall: <T extends Component>(component: T, extra?: Component[]) => T & {
|
|
3
|
-
install: (app: App) => void;
|
|
4
|
-
};
|
|
5
|
-
export declare const buildShortUUID: (prefix?: string) => string;
|
|
6
|
-
export declare const deepClone: (obj: any) => any;
|
|
7
|
-
export declare const clearData: (data: any) => void;
|
package/dist/core/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './utils';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export interface Encryption {
|
|
2
|
-
encrypt(plainText: string): string;
|
|
3
|
-
decrypt(cipherText: string): string;
|
|
4
|
-
}
|
|
5
|
-
export interface Hashing {
|
|
6
|
-
hash(data: string): string;
|
|
7
|
-
}
|
|
8
|
-
export interface EncryptionParams {
|
|
9
|
-
key: string;
|
|
10
|
-
iv?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare class EncryptionFactory {
|
|
13
|
-
static createAesEncryption(params: EncryptionParams): Encryption;
|
|
14
|
-
static createBase64Encryption(): Encryption;
|
|
15
|
-
}
|
|
16
|
-
export declare class HashingFactory {
|
|
17
|
-
static createMD5Hashing(): Hashing;
|
|
18
|
-
static createSHA256Hashing(): Hashing;
|
|
19
|
-
static createSHA512Hashing(): Hashing;
|
|
20
|
-
}
|
|
21
|
-
export declare const myAesDecrypt: (cipherText: string, key: string) => string;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 清空对象
|
|
3
|
-
* @param data 清空对象
|
|
4
|
-
*/
|
|
5
|
-
export declare function clearJson(data: Record<string, any>): void;
|
|
6
|
-
/**
|
|
7
|
-
* 获取对象类型
|
|
8
|
-
*/
|
|
9
|
-
export declare function getObjType(obj: any): any;
|
|
10
|
-
/**
|
|
11
|
-
* 对象深拷贝
|
|
12
|
-
*/
|
|
13
|
-
export declare function deepClone(data: any): any;
|
|
14
|
-
/**
|
|
15
|
-
* 对象拷贝
|
|
16
|
-
*/
|
|
17
|
-
export declare function clone(res: Record<string, any>, data: Record<string, any>, notKeys?: string[]): void;
|
|
18
|
-
export declare const buildUUID: () => string;
|
|
19
|
-
export declare function buildShortUUID(prefix?: string): string;
|
|
20
|
-
/**
|
|
21
|
-
* 将字符串转换为函数
|
|
22
|
-
* @param {string} fun - 函数字符串
|
|
23
|
-
* @returns {object} - 返回包含结果状态和函数的对象
|
|
24
|
-
*/
|
|
25
|
-
export declare const getFunction: (fun: string) => {
|
|
26
|
-
res: boolean;
|
|
27
|
-
msg: string;
|
|
28
|
-
fn: any;
|
|
29
|
-
} | {
|
|
30
|
-
res: boolean;
|
|
31
|
-
msg: unknown;
|
|
32
|
-
fn?: undefined;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* 通过路径设置对象属性值
|
|
36
|
-
* @param obj 目标对象
|
|
37
|
-
* @param path 属性路径,支持 'a.b.c' 或 'a[0].b' 或 ['a', 'b', 'c'] 格式
|
|
38
|
-
* @param value 要设置的值
|
|
39
|
-
* @returns 返回对象本身
|
|
40
|
-
*/
|
|
41
|
-
export declare function set(obj: any, path: string | string[], value: any): any;
|
|
42
|
-
export declare const toDecimal: (x: any) => number;
|
|
43
|
-
/**
|
|
44
|
-
* 分页方法
|
|
45
|
-
* @param pageNo
|
|
46
|
-
* @param pageSize
|
|
47
|
-
* @param array
|
|
48
|
-
* @returns
|
|
49
|
-
*/
|
|
50
|
-
export declare const pagination: (pageNo: number, pageSize: number, array: any[]) => any[];
|
|
51
|
-
export declare const paginationEx: (params: Record<string, any>, array: any[]) => {
|
|
52
|
-
rows: any[];
|
|
53
|
-
total: number;
|
|
54
|
-
page: any;
|
|
55
|
-
records: number;
|
|
56
|
-
};
|
|
57
|
-
export declare const uniqueArray: (arr: any[]) => any[];
|
|
58
|
-
export declare const numberToChinese: (num: string) => string;
|
|
59
|
-
export declare const numberToThousandSeparator: (num: string) => string;
|
|
60
|
-
/**
|
|
61
|
-
* 用来获取文字宽度
|
|
62
|
-
* @param text
|
|
63
|
-
* @returns
|
|
64
|
-
*/
|
|
65
|
-
export declare const getTextWidth: (text: string) => number | undefined;
|
|
66
|
-
export declare function upFirst(str: string): string;
|
|
67
|
-
export declare function lowerFirst(str: string, isFlag?: boolean): string;
|
|
68
|
-
/**
|
|
69
|
-
* Object.assign polyfill/wrapper
|
|
70
|
-
* Merges properties from source objects into target object
|
|
71
|
-
*/
|
|
72
|
-
export declare function assign(target: object | null, ...sources: any[]): any;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export declare const getIsInputComp: (type: string) => boolean;
|
|
2
|
-
export declare const getIsTableInputComp: (type: string) => boolean;
|
|
3
|
-
export declare const getCompConfig: (data: {
|
|
4
|
-
config?: Record<string, any>;
|
|
5
|
-
getCompConfig?: any;
|
|
6
|
-
formData: Record<string, any>;
|
|
7
|
-
tableData?: Record<string, any>[];
|
|
8
|
-
row?: Record<string, any>;
|
|
9
|
-
pRowData?: Record<string, any>;
|
|
10
|
-
}) => any;
|
|
11
|
-
export declare const getCompType: (data: {
|
|
12
|
-
type: string;
|
|
13
|
-
getCompType?: any;
|
|
14
|
-
config?: Record<string, any>;
|
|
15
|
-
formData: Record<string, any>;
|
|
16
|
-
tableData?: Record<string, any>[];
|
|
17
|
-
row?: Record<string, any>;
|
|
18
|
-
}) => any;
|
|
19
|
-
export declare const getLabel: (value: any, getLabelFromApp: any, data: {
|
|
20
|
-
type: string;
|
|
21
|
-
getCompType?: any;
|
|
22
|
-
getCompConfig?: any;
|
|
23
|
-
config?: Record<string, any>;
|
|
24
|
-
formData: Record<string, any>;
|
|
25
|
-
tableData?: Record<string, any>[];
|
|
26
|
-
row?: Record<string, any>;
|
|
27
|
-
}) => any;
|
package/dist/core/utils/dom.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 简单的事件总线实现
|
|
3
|
-
* 用于组件间通信
|
|
4
|
-
*/
|
|
5
|
-
type EventHandler = (...args: any[]) => void;
|
|
6
|
-
declare class EventBus {
|
|
7
|
-
private events;
|
|
8
|
-
/**
|
|
9
|
-
* 监听事件
|
|
10
|
-
* @param event 事件名称
|
|
11
|
-
* @param handler 事件处理函数
|
|
12
|
-
*/
|
|
13
|
-
on(event: string, handler: EventHandler): void;
|
|
14
|
-
/**
|
|
15
|
-
* 监听一次性事件
|
|
16
|
-
* @param event 事件名称
|
|
17
|
-
* @param handler 事件处理函数
|
|
18
|
-
*/
|
|
19
|
-
once(event: string, handler: EventHandler): void;
|
|
20
|
-
/**
|
|
21
|
-
* 触发事件
|
|
22
|
-
* @param event 事件名称
|
|
23
|
-
* @param args 事件参数
|
|
24
|
-
*/
|
|
25
|
-
emit(event: string, ...args: any[]): void;
|
|
26
|
-
/**
|
|
27
|
-
* 移除事件监听
|
|
28
|
-
* @param event 事件名称
|
|
29
|
-
* @param handler 事件处理函数(可选,不传则移除该事件所有监听)
|
|
30
|
-
*/
|
|
31
|
-
off(event: string, handler?: EventHandler): void;
|
|
32
|
-
/**
|
|
33
|
-
* 清除所有事件监听
|
|
34
|
-
*/
|
|
35
|
-
clear(): void;
|
|
36
|
-
}
|
|
37
|
-
export declare const eventBus: EventBus;
|
|
38
|
-
export { EventBus };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './is';
|
|
2
|
-
export * from './common';
|
|
3
|
-
export * from './comp';
|
|
4
|
-
export * from './date';
|
|
5
|
-
export * from './dom';
|
|
6
|
-
export * from './cipher';
|
|
7
|
-
export * from './tree';
|
|
8
|
-
export * from './useSortable';
|
|
9
|
-
export * from './map';
|
|
10
|
-
export * from './eventBus';
|
package/dist/core/utils/is.d.ts
DELETED
package/dist/core/utils/map.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const loadBMap: (ak: string) => Promise<unknown>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*将数组数据转化成树形数据
|
|
3
|
-
*/
|
|
4
|
-
export declare function setGroupMap(data: any[], idKey: string, pidKey: string): {
|
|
5
|
-
group: Record<string, any>;
|
|
6
|
-
map: Record<string, any>;
|
|
7
|
-
};
|
|
8
|
-
export declare function toTree(data: any[], _idKey?: string, pidKey?: string, valueKey?: string, labelKey?: string, filterIds?: any): any[];
|
|
9
|
-
export declare const toArray: (data: any[], filterIds?: string[]) => any[];
|
|
10
|
-
export declare const toSimpleTree: (data: any[], valueKey?: string, labelKey?: string) => any[];
|
|
11
|
-
export declare const toLeafArray: (data: any[], getLabel: (item: any) => string, filterIds?: string[]) => any[];
|