@a2simcode/ui 0.0.24 → 0.0.26
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/autocomplete/index.d.ts +3 -3
- package/dist/components/autocomplete/src/autocomplete.vue.d.ts +1 -1
- package/dist/components/button/index.d.ts +9 -9
- package/dist/components/button/src/button.vue.d.ts +4 -4
- package/dist/components/buttons/index.d.ts +10 -33
- package/dist/components/buttons/src/index.vue.d.ts +9 -37
- package/dist/components/buttons/src/interface.d.ts +11 -113
- package/dist/components/cascader-select/index.d.ts +3 -3
- package/dist/components/cascader-select/src/cascader-select.vue.d.ts +1 -1
- package/dist/components/checkbox/index.d.ts +3 -3
- package/dist/components/checkbox/src/checkbox.vue.d.ts +1 -1
- package/dist/components/comp/index.d.ts +3 -1
- package/dist/components/comp/src/comp.vue.d.ts +3 -1
- package/dist/components/dialog/index.d.ts +35 -35
- package/dist/components/dialog/src/index.vue.d.ts +14 -14
- package/dist/components/dialog-full/index.d.ts +35 -35
- package/dist/components/dialog-full/src/index.vue.d.ts +14 -14
- package/dist/components/drawer/index.d.ts +35 -35
- package/dist/components/drawer/src/drawer.vue.d.ts +14 -14
- package/dist/components/dynamic-layer/index.d.ts +1 -0
- package/dist/components/dynamic-layer/src/useLayer.d.ts +4 -0
- package/dist/components/editor/index.d.ts +3 -3
- package/dist/components/editor/src/editor.vue.d.ts +1 -1
- package/dist/components/index.d.ts +2 -3
- package/dist/components/inject-provide.d.ts +18 -0
- package/dist/components/input/index.d.ts +3 -3
- package/dist/components/input/src/input.vue.d.ts +1 -1
- package/dist/components/input-button/index.d.ts +3 -3
- package/dist/components/input-button/src/input-button.vue.d.ts +1 -1
- package/dist/components/input-color/index.d.ts +3 -3
- package/dist/components/input-color/src/input-color.vue.d.ts +1 -1
- package/dist/components/input-tag/index.d.ts +3 -3
- package/dist/components/input-tag/src/input-tag.vue.d.ts +1 -1
- package/dist/components/layer/index.d.ts +26 -26
- package/dist/components/layer/src/layer.vue.d.ts +11 -11
- package/dist/components/layer-form/index.d.ts +3 -3
- package/dist/components/layer-form/src/layer-form.vue.d.ts +1 -1
- package/dist/components/layout/index.d.ts +3 -3
- package/dist/components/layout/src/layout.vue.d.ts +1 -1
- package/dist/components/number/index.d.ts +3 -3
- package/dist/components/number/src/number.vue.d.ts +1 -1
- package/dist/components/page/index.d.ts +15 -0
- package/dist/components/page/src/page.vue.d.ts +5 -0
- package/dist/components/radio/index.d.ts +3 -3
- package/dist/components/radio/src/radio.vue.d.ts +1 -1
- package/dist/components/rate/index.d.ts +3 -3
- package/dist/components/rate/src/rate.vue.d.ts +1 -1
- package/dist/components/select/index.d.ts +3 -3
- package/dist/components/select/src/select.vue.d.ts +1 -1
- package/dist/components/slider/index.d.ts +3 -3
- package/dist/components/slider/src/slider.vue.d.ts +1 -1
- package/dist/components/switch/index.d.ts +3 -3
- package/dist/components/switch/src/switch.vue.d.ts +1 -1
- package/dist/components/table/index.d.ts +6 -6
- package/dist/components/table/src/table.vue.d.ts +4 -21
- package/dist/components/table-panel/index.d.ts +18 -18
- package/dist/components/table-panel/src/table-panel.vue.d.ts +10 -16
- package/dist/components/tree/index.d.ts +6 -6
- package/dist/components/tree/src/tree.vue.d.ts +4 -4
- package/dist/components/upload/index.d.ts +6 -6
- package/dist/components/upload/src/upload.vue.d.ts +2 -2
- package/dist/components/workflow-viewer/index.d.ts +3 -3
- package/dist/components/workflow-viewer/src/workflow-viewer.vue.d.ts +10 -2
- package/dist/core/utils/eventBus.d.ts +38 -0
- package/dist/core/utils/index.d.ts +1 -0
- package/dist/simcode-ui.es.js +7072 -8433
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/package.json +1 -1
- package/dist/components/buttons/src/useButtons.d.ts +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { ButtonCompType } from '../../buttons/src/interface';
|
|
1
2
|
import { PropType } from 'vue';
|
|
2
|
-
import { buttonItem } from '../../buttons/src/interface';
|
|
3
3
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
/**
|
|
5
5
|
* @zh 加载数据方法
|
|
@@ -154,7 +154,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
154
154
|
* @zh 树按钮(右击显示)
|
|
155
155
|
*/
|
|
156
156
|
treeButtons: {
|
|
157
|
-
type: PropType<
|
|
157
|
+
type: PropType<ButtonCompType[]>;
|
|
158
158
|
default: () => never[];
|
|
159
159
|
};
|
|
160
160
|
/**
|
|
@@ -381,7 +381,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
381
381
|
* @zh 树按钮(右击显示)
|
|
382
382
|
*/
|
|
383
383
|
treeButtons: {
|
|
384
|
-
type: PropType<
|
|
384
|
+
type: PropType<ButtonCompType[]>;
|
|
385
385
|
default: () => never[];
|
|
386
386
|
};
|
|
387
387
|
/**
|
|
@@ -467,7 +467,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
467
467
|
emptyDes: string;
|
|
468
468
|
defaultIcon: string;
|
|
469
469
|
defaultIconColor: string;
|
|
470
|
-
treeButtons:
|
|
470
|
+
treeButtons: ButtonCompType[];
|
|
471
471
|
buttonDefaultIcon: string;
|
|
472
472
|
buttonIconColor: string;
|
|
473
473
|
isHeightAuto: boolean;
|
|
@@ -108,12 +108,12 @@ declare const JUpload: {
|
|
|
108
108
|
start: (...args: any[]) => void;
|
|
109
109
|
notUploadChange: (...args: any[]) => void;
|
|
110
110
|
}, import('vue').PublicProps, {
|
|
111
|
-
|
|
111
|
+
btnText: string;
|
|
112
112
|
modelValue: string;
|
|
113
113
|
placeholder: string;
|
|
114
|
+
readonly: boolean;
|
|
114
115
|
multiple: boolean;
|
|
115
116
|
drag: boolean;
|
|
116
|
-
btnText: string;
|
|
117
117
|
isUploadImg: boolean;
|
|
118
118
|
showFileList: boolean;
|
|
119
119
|
isShowSuccessIcon: boolean;
|
|
@@ -240,12 +240,12 @@ declare const JUpload: {
|
|
|
240
240
|
onStart?: ((...args: any[]) => any) | undefined;
|
|
241
241
|
onNotUploadChange?: ((...args: any[]) => any) | undefined;
|
|
242
242
|
}>, {}, {}, {}, {}, {
|
|
243
|
-
|
|
243
|
+
btnText: string;
|
|
244
244
|
modelValue: string;
|
|
245
245
|
placeholder: string;
|
|
246
|
+
readonly: boolean;
|
|
246
247
|
multiple: boolean;
|
|
247
248
|
drag: boolean;
|
|
248
|
-
btnText: string;
|
|
249
249
|
isUploadImg: boolean;
|
|
250
250
|
showFileList: boolean;
|
|
251
251
|
isShowSuccessIcon: boolean;
|
|
@@ -376,12 +376,12 @@ declare const JUpload: {
|
|
|
376
376
|
start: (...args: any[]) => void;
|
|
377
377
|
notUploadChange: (...args: any[]) => void;
|
|
378
378
|
}, string, {
|
|
379
|
-
|
|
379
|
+
btnText: string;
|
|
380
380
|
modelValue: string;
|
|
381
381
|
placeholder: string;
|
|
382
|
+
readonly: boolean;
|
|
382
383
|
multiple: boolean;
|
|
383
384
|
drag: boolean;
|
|
384
|
-
btnText: string;
|
|
385
385
|
isUploadImg: boolean;
|
|
386
386
|
showFileList: boolean;
|
|
387
387
|
isShowSuccessIcon: boolean;
|
|
@@ -338,12 +338,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
338
338
|
onStart?: ((...args: any[]) => any) | undefined;
|
|
339
339
|
onNotUploadChange?: ((...args: any[]) => any) | undefined;
|
|
340
340
|
}>, {
|
|
341
|
-
|
|
341
|
+
btnText: string;
|
|
342
342
|
modelValue: string;
|
|
343
343
|
placeholder: string;
|
|
344
|
+
readonly: boolean;
|
|
344
345
|
multiple: boolean;
|
|
345
346
|
drag: boolean;
|
|
346
|
-
btnText: string;
|
|
347
347
|
isUploadImg: boolean;
|
|
348
348
|
showFileList: boolean;
|
|
349
349
|
isShowSuccessIcon: boolean;
|
|
@@ -12,7 +12,7 @@ declare const _JWorkflowViewer: {
|
|
|
12
12
|
elementDblclick: (ev: Record<string, any>) => any;
|
|
13
13
|
elementClick: (ev: Record<string, any>) => any;
|
|
14
14
|
}, import('vue').PublicProps, {
|
|
15
|
-
paletteOptions:
|
|
15
|
+
paletteOptions: import('./src/workflow-viewer.vue').PaletteOptions;
|
|
16
16
|
lineStroke: string;
|
|
17
17
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
18
18
|
containerRef: HTMLDivElement;
|
|
@@ -33,7 +33,7 @@ declare const _JWorkflowViewer: {
|
|
|
33
33
|
setData: (data: Record<string, any>[]) => void;
|
|
34
34
|
updateElemet: (data: Record<string, any>) => void;
|
|
35
35
|
}, {}, {}, {}, {
|
|
36
|
-
paletteOptions:
|
|
36
|
+
paletteOptions: import('./src/workflow-viewer.vue').PaletteOptions;
|
|
37
37
|
lineStroke: string;
|
|
38
38
|
}>;
|
|
39
39
|
__isFragment?: never;
|
|
@@ -52,7 +52,7 @@ declare const _JWorkflowViewer: {
|
|
|
52
52
|
elementDblclick: (ev: Record<string, any>) => any;
|
|
53
53
|
elementClick: (ev: Record<string, any>) => any;
|
|
54
54
|
}, string, {
|
|
55
|
-
paletteOptions:
|
|
55
|
+
paletteOptions: import('./src/workflow-viewer.vue').PaletteOptions;
|
|
56
56
|
lineStroke: string;
|
|
57
57
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
58
58
|
install: (app: import('vue').App) => void;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
+
export interface PaletteItem {
|
|
2
|
+
className: string;
|
|
3
|
+
type: string;
|
|
4
|
+
group: string;
|
|
5
|
+
title: string;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
export type PaletteOptions = Record<string, PaletteItem>;
|
|
1
9
|
export interface WorkflowViewerProps {
|
|
2
10
|
/** 配置 */
|
|
3
|
-
paletteOptions?:
|
|
11
|
+
paletteOptions?: PaletteOptions;
|
|
4
12
|
/** 线条颜色 */
|
|
5
13
|
lineStroke?: string;
|
|
6
14
|
}
|
|
@@ -17,7 +25,7 @@ declare const _default: import('vue').DefineComponent<WorkflowViewerProps, {
|
|
|
17
25
|
onElementDblclick?: ((ev: Record<string, any>) => any) | undefined;
|
|
18
26
|
onElementClick?: ((ev: Record<string, any>) => any) | undefined;
|
|
19
27
|
}>, {
|
|
20
|
-
paletteOptions:
|
|
28
|
+
paletteOptions: PaletteOptions;
|
|
21
29
|
lineStroke: string;
|
|
22
30
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
23
31
|
containerRef: HTMLDivElement;
|
|
@@ -0,0 +1,38 @@
|
|
|
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 };
|