bm-admin-ui 1.2.29-alpha → 1.2.30-alpha
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/es/components/attachment/index.d.ts +1 -1
- package/es/components/attachment/src/attachment.vue.d.ts +1 -1
- package/es/components/button/index.d.ts +1 -1
- package/es/components/button/src/button.vue.d.ts +1 -1
- package/es/components/cascader/index.d.ts +1 -1
- package/es/components/cascader/src/cascader.vue.d.ts +1 -1
- package/es/components/edit-form/index.d.ts +2 -2
- package/es/components/edit-form/src/edit-form.vue.d.ts +2 -2
- package/es/components/editor/index.d.ts +3 -3
- package/es/components/editor/src/editor.vue.d.ts +3 -3
- package/es/components/feedback/index.d.ts +12 -12
- package/es/components/feedback/src/bmAlert.vue.d.ts +5 -5
- package/es/components/feedback/src/bmModal.vue.d.ts +7 -7
- package/es/components/flow-designer/index.js +32 -10
- package/es/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +14 -0
- package/es/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +1 -0
- package/es/components/form-create/index.js +743 -197
- package/es/components/form-designer/index.js +116 -21
- package/es/components/over-tooltips/index.d.ts +1 -1
- package/es/components/over-tooltips/src/over-tooltips.vue.d.ts +1 -1
- package/es/components/staffs-selector/index.d.ts +8 -8
- package/es/components/staffs-selector/index.js +2 -2
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +8 -8
- package/es/components/upload/index.d.ts +1 -1
- package/es/components/upload/src/upload.vue.d.ts +1 -1
- package/es/utils/index.d.ts +7 -0
- package/es/utils/index.js +62 -0
- package/es/utils/isNull.js +1 -1
- package/lib/components/attachment/index.d.ts +1 -1
- package/lib/components/attachment/src/attachment.vue.d.ts +1 -1
- package/lib/components/button/index.d.ts +1 -1
- package/lib/components/button/src/button.vue.d.ts +1 -1
- package/lib/components/cascader/index.d.ts +1 -1
- package/lib/components/cascader/src/cascader.vue.d.ts +1 -1
- package/lib/components/edit-form/index.d.ts +2 -2
- package/lib/components/edit-form/src/edit-form.vue.d.ts +2 -2
- package/lib/components/editor/index.d.ts +3 -3
- package/lib/components/editor/src/editor.vue.d.ts +3 -3
- package/lib/components/feedback/index.d.ts +12 -12
- package/lib/components/feedback/src/bmAlert.vue.d.ts +5 -5
- package/lib/components/feedback/src/bmModal.vue.d.ts +7 -7
- package/lib/components/flow-designer/index.js +32 -10
- package/lib/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +14 -0
- package/lib/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +1 -0
- package/lib/components/form-create/index.js +746 -197
- package/lib/components/form-designer/index.js +115 -20
- package/lib/components/over-tooltips/index.d.ts +1 -1
- package/lib/components/over-tooltips/src/over-tooltips.vue.d.ts +1 -1
- package/lib/components/staffs-selector/index.d.ts +8 -8
- package/lib/components/staffs-selector/index.js +2 -2
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +8 -8
- package/lib/components/upload/index.d.ts +1 -1
- package/lib/components/upload/src/upload.vue.d.ts +1 -1
- package/lib/utils/index.d.ts +7 -0
- package/lib/utils/index.js +64 -0
- package/lib/utils/isNull.js +1 -1
- package/package.json +1 -1
- package/theme-chalk/attachment.css +1 -1
- package/theme-chalk/index.css +2 -2
- package/types/components/attachment/index.d.ts +1 -1
- package/types/components/attachment/src/attachment.vue.d.ts +1 -1
- package/types/components/button/index.d.ts +1 -1
- package/types/components/button/src/button.vue.d.ts +1 -1
- package/types/components/cascader/index.d.ts +1 -1
- package/types/components/cascader/src/cascader.vue.d.ts +1 -1
- package/types/components/edit-form/index.d.ts +2 -2
- package/types/components/edit-form/src/edit-form.vue.d.ts +2 -2
- package/types/components/editor/index.d.ts +3 -3
- package/types/components/editor/src/editor.vue.d.ts +3 -3
- package/types/components/feedback/index.d.ts +12 -12
- package/types/components/feedback/src/bmAlert.vue.d.ts +5 -5
- package/types/components/feedback/src/bmModal.vue.d.ts +7 -7
- package/types/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +14 -0
- package/types/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +1 -0
- package/types/components/over-tooltips/index.d.ts +1 -1
- package/types/components/over-tooltips/src/over-tooltips.vue.d.ts +1 -1
- package/types/components/staffs-selector/index.d.ts +8 -8
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +8 -8
- package/types/components/upload/index.d.ts +1 -1
- package/types/components/upload/src/upload.vue.d.ts +1 -1
- package/types/utils/index.d.ts +7 -0
- package/es/index.js +0 -13
- package/lib/index.js +0 -42
|
@@ -36,7 +36,7 @@ declare const BmAttachment: import("bm-admin-ui/es/utils/with-install").SFCWithI
|
|
|
36
36
|
default: number;
|
|
37
37
|
};
|
|
38
38
|
width: {
|
|
39
|
-
type: (
|
|
39
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
40
40
|
default: number;
|
|
41
41
|
};
|
|
42
42
|
showAlways: {
|
|
@@ -78,7 +78,7 @@ declare const BmButton: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
78
78
|
onMousedown: {
|
|
79
79
|
type: import("vue").PropType<(event: MouseEvent) => void>;
|
|
80
80
|
};
|
|
81
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
81
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "ghost" | "danger" | "htmlType" | "loading" | "disabled" | "block">;
|
|
82
82
|
$attrs: {
|
|
83
83
|
[x: string]: unknown;
|
|
84
84
|
};
|
|
@@ -80,7 +80,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
80
|
onMousedown: {
|
|
81
81
|
type: import("vue").PropType<(event: MouseEvent) => void>;
|
|
82
82
|
};
|
|
83
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
83
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "ghost" | "danger" | "htmlType" | "loading" | "disabled" | "block">;
|
|
84
84
|
$attrs: {
|
|
85
85
|
[x: string]: unknown;
|
|
86
86
|
};
|
|
@@ -47,7 +47,7 @@ declare const BmEditForm: import("bm-admin-ui/es/utils/with-install").SFCWithIns
|
|
|
47
47
|
};
|
|
48
48
|
tmpForm: import("vue").Ref<Record<string, any>>;
|
|
49
49
|
formRef: import("vue").Ref<import("ant-design-vue").FormInstance | null>;
|
|
50
|
-
colCount: import("vue").ComputedRef<2 |
|
|
50
|
+
colCount: import("vue").ComputedRef<2 | 1 | 3>;
|
|
51
51
|
getValueOfOption: (key: string | undefined, defaultKey: "label" | "value", option: any) => string;
|
|
52
52
|
getPopupContainer: (e: any) => any;
|
|
53
53
|
getColsConfig: (type: "labelCol" | "wrapperCol", item: import("./src/types").Control, index?: number | undefined) => {
|
|
@@ -103,7 +103,7 @@ declare const BmEditForm: import("bm-admin-ui/es/utils/with-install").SFCWithIns
|
|
|
103
103
|
default: number;
|
|
104
104
|
};
|
|
105
105
|
width: {
|
|
106
|
-
type: (
|
|
106
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
107
107
|
default: number;
|
|
108
108
|
};
|
|
109
109
|
showAlways: {
|
|
@@ -46,7 +46,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
46
46
|
};
|
|
47
47
|
tmpForm: import("vue").Ref<Record<string, any>>;
|
|
48
48
|
formRef: import("vue").Ref<FormInstance | null>;
|
|
49
|
-
colCount: import("vue").ComputedRef<2 |
|
|
49
|
+
colCount: import("vue").ComputedRef<2 | 1 | 3>;
|
|
50
50
|
getValueOfOption: (key: string | undefined, defaultKey: "label" | "value", option: any) => string;
|
|
51
51
|
getPopupContainer: (e: any) => any;
|
|
52
52
|
getColsConfig: (type: "labelCol" | "wrapperCol", item: import("./types").Control, index?: number | undefined) => {
|
|
@@ -102,7 +102,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
102
102
|
default: number;
|
|
103
103
|
};
|
|
104
104
|
width: {
|
|
105
|
-
type: (
|
|
105
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
106
106
|
default: number;
|
|
107
107
|
};
|
|
108
108
|
showAlways: {
|
|
@@ -60,9 +60,9 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
60
60
|
default: (...args: any[]) => any;
|
|
61
61
|
};
|
|
62
62
|
}>> & {
|
|
63
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
63
64
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
64
65
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
65
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
66
66
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
67
67
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
68
68
|
onGetCount?: ((...args: any[]) => any) | undefined;
|
|
@@ -139,7 +139,7 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
139
139
|
default: number;
|
|
140
140
|
};
|
|
141
141
|
width: {
|
|
142
|
-
type: (
|
|
142
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
143
143
|
default: number;
|
|
144
144
|
};
|
|
145
145
|
showAlways: {
|
|
@@ -287,9 +287,9 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
287
287
|
default: (...args: any[]) => any;
|
|
288
288
|
};
|
|
289
289
|
}>> & {
|
|
290
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
290
291
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
291
292
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
292
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
293
293
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
294
294
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
295
295
|
onGetCount?: ((...args: any[]) => any) | undefined;
|
|
@@ -60,9 +60,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
60
60
|
default: (...args: any[]) => any;
|
|
61
61
|
};
|
|
62
62
|
}>> & {
|
|
63
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
63
64
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
64
65
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
65
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
66
66
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
67
67
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
68
68
|
onGetCount?: ((...args: any[]) => any) | undefined;
|
|
@@ -139,7 +139,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
139
139
|
default: number;
|
|
140
140
|
};
|
|
141
141
|
width: {
|
|
142
|
-
type: (
|
|
142
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
143
143
|
default: number;
|
|
144
144
|
};
|
|
145
145
|
showAlways: {
|
|
@@ -287,9 +287,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
287
287
|
default: (...args: any[]) => any;
|
|
288
288
|
};
|
|
289
289
|
}>> & {
|
|
290
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
290
291
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
291
292
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
292
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
293
293
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
294
294
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
295
295
|
onGetCount?: ((...args: any[]) => any) | undefined;
|
|
@@ -86,7 +86,7 @@ declare const BmModal: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
|
|
|
86
86
|
type: BooleanConstructor;
|
|
87
87
|
default: any;
|
|
88
88
|
};
|
|
89
|
-
width: (
|
|
89
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
90
90
|
footer: import("vue-types").VueTypeValidableDef<any>;
|
|
91
91
|
okText: import("vue-types").VueTypeValidableDef<any>;
|
|
92
92
|
okType: import("vue").PropType<import("ant-design-vue/lib/button/buttonTypes").LegacyButtonType>;
|
|
@@ -232,7 +232,7 @@ declare const BmModal: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
|
|
|
232
232
|
modalRender: import("vue").PropType<(arg: {
|
|
233
233
|
originVNode: import("ant-design-vue/lib/_util/type").VueNode;
|
|
234
234
|
}) => import("ant-design-vue/lib/_util/type").VueNode>;
|
|
235
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visible" | "
|
|
235
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visible" | "confirmLoading" | "closable" | "centered" | "maskClosable" | "forceRender" | "destroyOnClose" | "getContainer" | "bodyStyle" | "maskStyle" | "mask" | "keyboard" | "focusTriggerAfterClose">;
|
|
236
236
|
$attrs: {
|
|
237
237
|
[x: string]: unknown;
|
|
238
238
|
};
|
|
@@ -271,7 +271,7 @@ declare const BmModal: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
|
|
|
271
271
|
type: BooleanConstructor;
|
|
272
272
|
default: any;
|
|
273
273
|
};
|
|
274
|
-
width: (
|
|
274
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
275
275
|
footer: import("vue-types").VueTypeValidableDef<any>;
|
|
276
276
|
okText: import("vue-types").VueTypeValidableDef<any>;
|
|
277
277
|
okType: import("vue").PropType<import("ant-design-vue/lib/button/buttonTypes").LegacyButtonType>;
|
|
@@ -476,7 +476,7 @@ declare const BmModal: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
|
|
|
476
476
|
type: BooleanConstructor;
|
|
477
477
|
default: any;
|
|
478
478
|
};
|
|
479
|
-
width: (
|
|
479
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
480
480
|
footer: import("vue-types").VueTypeValidableDef<any>;
|
|
481
481
|
okText: import("vue-types").VueTypeValidableDef<any>;
|
|
482
482
|
okType: import("vue").PropType<import("ant-design-vue/lib/button/buttonTypes").LegacyButtonType>;
|
|
@@ -651,7 +651,7 @@ declare const BmModal: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
|
|
|
651
651
|
type: BooleanConstructor;
|
|
652
652
|
default: any;
|
|
653
653
|
};
|
|
654
|
-
width: (
|
|
654
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
655
655
|
footer: import("vue-types").VueTypeValidableDef<any>;
|
|
656
656
|
okText: import("vue-types").VueTypeValidableDef<any>;
|
|
657
657
|
okType: import("vue").PropType<import("ant-design-vue/lib/button/buttonTypes").LegacyButtonType>;
|
|
@@ -838,9 +838,9 @@ declare const BmModal: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
|
|
|
838
838
|
onOk?: ((...args: any[]) => any) | undefined;
|
|
839
839
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
840
840
|
}, {
|
|
841
|
-
size: string;
|
|
842
|
-
width: string;
|
|
843
841
|
visible: boolean;
|
|
842
|
+
width: string;
|
|
843
|
+
size: string;
|
|
844
844
|
}>>;
|
|
845
845
|
declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{
|
|
846
846
|
type: {
|
|
@@ -870,7 +870,7 @@ declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
|
|
|
870
870
|
default: string;
|
|
871
871
|
};
|
|
872
872
|
}>> & {}>>;
|
|
873
|
-
getIconCmp: import("vue").ComputedRef<import("@ant-design/icons-vue/lib/icons/
|
|
873
|
+
getIconCmp: import("vue").ComputedRef<import("@ant-design/icons-vue/lib/icons/InfoCircleFilled").InfoCircleFilledIconType | undefined>;
|
|
874
874
|
AAlert: {
|
|
875
875
|
new (...args: any[]): {
|
|
876
876
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -880,7 +880,7 @@ declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
|
|
|
880
880
|
closable: boolean;
|
|
881
881
|
banner: boolean;
|
|
882
882
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
883
|
-
type: import("vue-types").VueTypeDef<"
|
|
883
|
+
type: import("vue-types").VueTypeDef<"info" | "error" | "success" | "warning">;
|
|
884
884
|
closable: {
|
|
885
885
|
type: BooleanConstructor;
|
|
886
886
|
default: any;
|
|
@@ -916,7 +916,7 @@ declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
|
|
|
916
916
|
$emit: (event: string, ...args: any[]) => void;
|
|
917
917
|
$el: any;
|
|
918
918
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
919
|
-
type: import("vue-types").VueTypeDef<"
|
|
919
|
+
type: import("vue-types").VueTypeDef<"info" | "error" | "success" | "warning">;
|
|
920
920
|
closable: {
|
|
921
921
|
type: BooleanConstructor;
|
|
922
922
|
default: any;
|
|
@@ -962,7 +962,7 @@ declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
|
|
|
962
962
|
$nextTick: typeof import("vue").nextTick;
|
|
963
963
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
964
964
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
965
|
-
type: import("vue-types").VueTypeDef<"
|
|
965
|
+
type: import("vue-types").VueTypeDef<"info" | "error" | "success" | "warning">;
|
|
966
966
|
closable: {
|
|
967
967
|
type: BooleanConstructor;
|
|
968
968
|
default: any;
|
|
@@ -988,7 +988,7 @@ declare const BmAlert: import("bm-admin-ui/es/utils/with-install").SFCWithInstal
|
|
|
988
988
|
__isTeleport?: undefined;
|
|
989
989
|
__isSuspense?: undefined;
|
|
990
990
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
991
|
-
type: import("vue-types").VueTypeDef<"
|
|
991
|
+
type: import("vue-types").VueTypeDef<"info" | "error" | "success" | "warning">;
|
|
992
992
|
closable: {
|
|
993
993
|
type: BooleanConstructor;
|
|
994
994
|
default: any;
|
|
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
default: string;
|
|
27
27
|
};
|
|
28
28
|
}>> & {}>>;
|
|
29
|
-
getIconCmp: import("vue").ComputedRef<import("@ant-design/icons-vue/lib/icons/
|
|
29
|
+
getIconCmp: import("vue").ComputedRef<import("@ant-design/icons-vue/lib/icons/InfoCircleFilled").InfoCircleFilledIconType | undefined>;
|
|
30
30
|
AAlert: {
|
|
31
31
|
new (...args: any[]): {
|
|
32
32
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -36,7 +36,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
36
|
closable: boolean;
|
|
37
37
|
banner: boolean;
|
|
38
38
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
39
|
-
type: import("vue-types").VueTypeDef<"
|
|
39
|
+
type: import("vue-types").VueTypeDef<"info" | "error" | "success" | "warning">;
|
|
40
40
|
closable: {
|
|
41
41
|
type: BooleanConstructor;
|
|
42
42
|
default: any;
|
|
@@ -72,7 +72,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
72
72
|
$emit: (event: string, ...args: any[]) => void;
|
|
73
73
|
$el: any;
|
|
74
74
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
75
|
-
type: import("vue-types").VueTypeDef<"
|
|
75
|
+
type: import("vue-types").VueTypeDef<"info" | "error" | "success" | "warning">;
|
|
76
76
|
closable: {
|
|
77
77
|
type: BooleanConstructor;
|
|
78
78
|
default: any;
|
|
@@ -118,7 +118,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
118
118
|
$nextTick: typeof import("vue").nextTick;
|
|
119
119
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
120
120
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
121
|
-
type: import("vue-types").VueTypeDef<"
|
|
121
|
+
type: import("vue-types").VueTypeDef<"info" | "error" | "success" | "warning">;
|
|
122
122
|
closable: {
|
|
123
123
|
type: BooleanConstructor;
|
|
124
124
|
default: any;
|
|
@@ -144,7 +144,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
144
144
|
__isTeleport?: undefined;
|
|
145
145
|
__isSuspense?: undefined;
|
|
146
146
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
147
|
-
type: import("vue-types").VueTypeDef<"
|
|
147
|
+
type: import("vue-types").VueTypeDef<"info" | "error" | "success" | "warning">;
|
|
148
148
|
closable: {
|
|
149
149
|
type: BooleanConstructor;
|
|
150
150
|
default: any;
|
|
@@ -80,7 +80,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
80
|
type: BooleanConstructor;
|
|
81
81
|
default: any;
|
|
82
82
|
};
|
|
83
|
-
width: (
|
|
83
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
84
84
|
footer: import("vue-types").VueTypeValidableDef<any>;
|
|
85
85
|
okText: import("vue-types").VueTypeValidableDef<any>;
|
|
86
86
|
okType: import("vue").PropType<import("ant-design-vue/lib/button/buttonTypes").LegacyButtonType>;
|
|
@@ -226,7 +226,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
226
226
|
modalRender: import("vue").PropType<(arg: {
|
|
227
227
|
originVNode: import("ant-design-vue/lib/_util/type").VueNode;
|
|
228
228
|
}) => import("ant-design-vue/lib/_util/type").VueNode>;
|
|
229
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visible" | "
|
|
229
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visible" | "confirmLoading" | "closable" | "centered" | "maskClosable" | "forceRender" | "destroyOnClose" | "getContainer" | "bodyStyle" | "maskStyle" | "mask" | "keyboard" | "focusTriggerAfterClose">;
|
|
230
230
|
$attrs: {
|
|
231
231
|
[x: string]: unknown;
|
|
232
232
|
};
|
|
@@ -265,7 +265,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
265
265
|
type: BooleanConstructor;
|
|
266
266
|
default: any;
|
|
267
267
|
};
|
|
268
|
-
width: (
|
|
268
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
269
269
|
footer: import("vue-types").VueTypeValidableDef<any>;
|
|
270
270
|
okText: import("vue-types").VueTypeValidableDef<any>;
|
|
271
271
|
okType: import("vue").PropType<import("ant-design-vue/lib/button/buttonTypes").LegacyButtonType>;
|
|
@@ -470,7 +470,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
470
470
|
type: BooleanConstructor;
|
|
471
471
|
default: any;
|
|
472
472
|
};
|
|
473
|
-
width: (
|
|
473
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
474
474
|
footer: import("vue-types").VueTypeValidableDef<any>;
|
|
475
475
|
okText: import("vue-types").VueTypeValidableDef<any>;
|
|
476
476
|
okType: import("vue").PropType<import("ant-design-vue/lib/button/buttonTypes").LegacyButtonType>;
|
|
@@ -645,7 +645,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
645
645
|
type: BooleanConstructor;
|
|
646
646
|
default: any;
|
|
647
647
|
};
|
|
648
|
-
width: (
|
|
648
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
649
649
|
footer: import("vue-types").VueTypeValidableDef<any>;
|
|
650
650
|
okText: import("vue-types").VueTypeValidableDef<any>;
|
|
651
651
|
okType: import("vue").PropType<import("ant-design-vue/lib/button/buttonTypes").LegacyButtonType>;
|
|
@@ -832,8 +832,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
832
832
|
onOk?: ((...args: any[]) => any) | undefined;
|
|
833
833
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
834
834
|
}, {
|
|
835
|
-
size: string;
|
|
836
|
-
width: string;
|
|
837
835
|
visible: boolean;
|
|
836
|
+
width: string;
|
|
837
|
+
size: string;
|
|
838
838
|
}>;
|
|
839
839
|
export default _default;
|
|
@@ -117,10 +117,14 @@ const _sfc_main$2 = defineComponent({
|
|
|
117
117
|
const isEditLabel = ref(false);
|
|
118
118
|
const tempLabel = ref("");
|
|
119
119
|
tempLabel.value = "";
|
|
120
|
+
const inputRef = ref();
|
|
120
121
|
const methods = {
|
|
121
122
|
toEditLabel() {
|
|
122
123
|
tempLabel.value = props["label"];
|
|
123
124
|
isEditLabel.value = true;
|
|
125
|
+
nextTick(() => {
|
|
126
|
+
inputRef.value?.focus();
|
|
127
|
+
});
|
|
124
128
|
},
|
|
125
129
|
updateLabel(_) {
|
|
126
130
|
nextTick(() => {
|
|
@@ -134,6 +138,7 @@ const _sfc_main$2 = defineComponent({
|
|
|
134
138
|
}
|
|
135
139
|
};
|
|
136
140
|
return {
|
|
141
|
+
inputRef,
|
|
137
142
|
isEditLabel,
|
|
138
143
|
tempLabel,
|
|
139
144
|
...methods
|
|
@@ -158,8 +163,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
158
163
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.toEditLabel && _ctx.toEditLabel(...args), ["stop"]))
|
|
159
164
|
}, toDisplayString(_ctx.label), 1)) : (openBlock(), createBlock(_component_AInput, {
|
|
160
165
|
key: 1,
|
|
166
|
+
ref: "inputRef",
|
|
161
167
|
value: _ctx.tempLabel,
|
|
162
168
|
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => _ctx.tempLabel = $event),
|
|
169
|
+
maxlength: 10,
|
|
163
170
|
size: "small",
|
|
164
171
|
onBlur: _ctx.updateLabel,
|
|
165
172
|
onKeydown: withKeys(_ctx.updateLabel, ["enter"])
|
|
@@ -196,18 +203,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
196
203
|
}
|
|
197
204
|
var BmHtmlNode = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render], ["__file", "BmHtmlNode.vue"]]);
|
|
198
205
|
|
|
199
|
-
const _hoisted_1 =
|
|
206
|
+
const _hoisted_1 = ["onClick"];
|
|
200
207
|
const _hoisted_2 = { class: "bm-condition-node-box" };
|
|
201
208
|
const _hoisted_3 = { class: "condition-header" };
|
|
202
209
|
const _hoisted_4 = { key: 0 };
|
|
203
210
|
const _hoisted_5 = { class: "condition-desc" };
|
|
204
211
|
const _hoisted_6 = { class: "desc" };
|
|
205
212
|
const _hoisted_7 = { key: 0 };
|
|
206
|
-
const __default__ = {
|
|
207
|
-
name: "BmConditionNode"
|
|
208
|
-
};
|
|
209
213
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
210
|
-
|
|
214
|
+
__name: "BmConditionNode",
|
|
211
215
|
props: {
|
|
212
216
|
isCustom: {
|
|
213
217
|
type: Boolean,
|
|
@@ -225,6 +229,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
225
229
|
type: String,
|
|
226
230
|
default: " "
|
|
227
231
|
},
|
|
232
|
+
nodeClick: {
|
|
233
|
+
type: Function,
|
|
234
|
+
default: () => {
|
|
235
|
+
console.info("\u70B9\u51FB\u8282\u70B9\u56DE\u8C03");
|
|
236
|
+
}
|
|
237
|
+
},
|
|
228
238
|
copyCallback: {
|
|
229
239
|
type: Function,
|
|
230
240
|
default: () => {
|
|
@@ -239,8 +249,17 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
239
249
|
}
|
|
240
250
|
},
|
|
241
251
|
setup(__props) {
|
|
252
|
+
const props = __props;
|
|
253
|
+
function callback() {
|
|
254
|
+
if (props.isCustom) {
|
|
255
|
+
props.nodeClick();
|
|
256
|
+
}
|
|
257
|
+
}
|
|
242
258
|
return (_ctx, _cache) => {
|
|
243
|
-
return openBlock(), createElementBlock("div",
|
|
259
|
+
return openBlock(), createElementBlock("div", {
|
|
260
|
+
class: "bm-condition-node",
|
|
261
|
+
onClick: withModifiers(callback, ["stop"])
|
|
262
|
+
}, [
|
|
244
263
|
createElementVNode("div", _hoisted_2, [
|
|
245
264
|
createElementVNode("div", _hoisted_3, [
|
|
246
265
|
createElementVNode("span", {
|
|
@@ -259,9 +278,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
259
278
|
}, [
|
|
260
279
|
createCommentVNode(' <CopyOutlined\n @click.stop="\n () => {\n copyCallback()\n }\n " /> \u6682\u65F6\u5173\u95ED\u590D\u5236\u8282\u70B9 '),
|
|
261
280
|
createVNode(unref(CloseOutlined), {
|
|
262
|
-
onClick: _cache[0] || (_cache[0] = (
|
|
263
|
-
|
|
264
|
-
|
|
281
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(
|
|
282
|
+
() => {
|
|
283
|
+
__props.deleteCallback();
|
|
284
|
+
},
|
|
285
|
+
["stop"]
|
|
286
|
+
))
|
|
265
287
|
})
|
|
266
288
|
], 2)
|
|
267
289
|
]),
|
|
@@ -272,7 +294,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
272
294
|
])) : createCommentVNode("v-if", true)
|
|
273
295
|
])
|
|
274
296
|
])
|
|
275
|
-
]);
|
|
297
|
+
], 8, _hoisted_1);
|
|
276
298
|
};
|
|
277
299
|
}
|
|
278
300
|
});
|
|
@@ -15,6 +15,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
type: StringConstructor;
|
|
16
16
|
default: string;
|
|
17
17
|
};
|
|
18
|
+
nodeClick: {
|
|
19
|
+
type: FunctionConstructor;
|
|
20
|
+
default: () => void;
|
|
21
|
+
};
|
|
18
22
|
copyCallback: {
|
|
19
23
|
type: FunctionConstructor;
|
|
20
24
|
default: () => void;
|
|
@@ -41,6 +45,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
45
|
type: StringConstructor;
|
|
42
46
|
default: string;
|
|
43
47
|
};
|
|
48
|
+
nodeClick: {
|
|
49
|
+
type: FunctionConstructor;
|
|
50
|
+
default: () => void;
|
|
51
|
+
};
|
|
44
52
|
copyCallback: {
|
|
45
53
|
type: FunctionConstructor;
|
|
46
54
|
default: () => void;
|
|
@@ -50,6 +58,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
50
58
|
default: () => void;
|
|
51
59
|
};
|
|
52
60
|
}>> & {}>>;
|
|
61
|
+
callback: () => void;
|
|
53
62
|
CloseOutlined: import("@ant-design/icons-vue/lib/icons/CloseOutlined").CloseOutlinedIconType;
|
|
54
63
|
RightOutlined: import("@ant-design/icons-vue/lib/icons/RightOutlined").RightOutlinedIconType;
|
|
55
64
|
Tag: {
|
|
@@ -227,6 +236,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
227
236
|
type: StringConstructor;
|
|
228
237
|
default: string;
|
|
229
238
|
};
|
|
239
|
+
nodeClick: {
|
|
240
|
+
type: FunctionConstructor;
|
|
241
|
+
default: () => void;
|
|
242
|
+
};
|
|
230
243
|
copyCallback: {
|
|
231
244
|
type: FunctionConstructor;
|
|
232
245
|
default: () => void;
|
|
@@ -240,6 +253,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
240
253
|
desc: string;
|
|
241
254
|
isCustom: boolean;
|
|
242
255
|
priority: number;
|
|
256
|
+
nodeClick: Function;
|
|
243
257
|
copyCallback: Function;
|
|
244
258
|
deleteCallback: Function;
|
|
245
259
|
}>;
|
|
@@ -3,6 +3,7 @@ declare const _default: import("vue").DefineComponent<Readonly<import("vue").Com
|
|
|
3
3
|
}>>, {
|
|
4
4
|
toEditLabel(): void;
|
|
5
5
|
updateLabel(_: any): void;
|
|
6
|
+
inputRef: import("vue").Ref<any>;
|
|
6
7
|
isEditLabel: import("vue").Ref<boolean>;
|
|
7
8
|
tempLabel: any;
|
|
8
9
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:label"[], "update:label", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<readonly string[] | import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
|