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
|
@@ -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;
|
|
@@ -128,10 +128,14 @@ const _sfc_main$2 = vue.defineComponent({
|
|
|
128
128
|
const isEditLabel = vue.ref(false);
|
|
129
129
|
const tempLabel = vue.ref("");
|
|
130
130
|
tempLabel.value = "";
|
|
131
|
+
const inputRef = vue.ref();
|
|
131
132
|
const methods = {
|
|
132
133
|
toEditLabel() {
|
|
133
134
|
tempLabel.value = props["label"];
|
|
134
135
|
isEditLabel.value = true;
|
|
136
|
+
vue.nextTick(() => {
|
|
137
|
+
inputRef.value?.focus();
|
|
138
|
+
});
|
|
135
139
|
},
|
|
136
140
|
updateLabel(_) {
|
|
137
141
|
vue.nextTick(() => {
|
|
@@ -145,6 +149,7 @@ const _sfc_main$2 = vue.defineComponent({
|
|
|
145
149
|
}
|
|
146
150
|
};
|
|
147
151
|
return {
|
|
152
|
+
inputRef,
|
|
148
153
|
isEditLabel,
|
|
149
154
|
tempLabel,
|
|
150
155
|
...methods
|
|
@@ -169,8 +174,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
169
174
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.toEditLabel && _ctx.toEditLabel(...args), ["stop"]))
|
|
170
175
|
}, vue.toDisplayString(_ctx.label), 1)) : (vue.openBlock(), vue.createBlock(_component_AInput, {
|
|
171
176
|
key: 1,
|
|
177
|
+
ref: "inputRef",
|
|
172
178
|
value: _ctx.tempLabel,
|
|
173
179
|
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => _ctx.tempLabel = $event),
|
|
180
|
+
maxlength: 10,
|
|
174
181
|
size: "small",
|
|
175
182
|
onBlur: _ctx.updateLabel,
|
|
176
183
|
onKeydown: vue.withKeys(_ctx.updateLabel, ["enter"])
|
|
@@ -207,18 +214,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
207
214
|
}
|
|
208
215
|
var BmHtmlNode = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render], ["__file", "BmHtmlNode.vue"]]);
|
|
209
216
|
|
|
210
|
-
const _hoisted_1 =
|
|
217
|
+
const _hoisted_1 = ["onClick"];
|
|
211
218
|
const _hoisted_2 = { class: "bm-condition-node-box" };
|
|
212
219
|
const _hoisted_3 = { class: "condition-header" };
|
|
213
220
|
const _hoisted_4 = { key: 0 };
|
|
214
221
|
const _hoisted_5 = { class: "condition-desc" };
|
|
215
222
|
const _hoisted_6 = { class: "desc" };
|
|
216
223
|
const _hoisted_7 = { key: 0 };
|
|
217
|
-
const __default__ = {
|
|
218
|
-
name: "BmConditionNode"
|
|
219
|
-
};
|
|
220
224
|
const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
221
|
-
|
|
225
|
+
__name: "BmConditionNode",
|
|
222
226
|
props: {
|
|
223
227
|
isCustom: {
|
|
224
228
|
type: Boolean,
|
|
@@ -236,6 +240,12 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
236
240
|
type: String,
|
|
237
241
|
default: " "
|
|
238
242
|
},
|
|
243
|
+
nodeClick: {
|
|
244
|
+
type: Function,
|
|
245
|
+
default: () => {
|
|
246
|
+
console.info("\u70B9\u51FB\u8282\u70B9\u56DE\u8C03");
|
|
247
|
+
}
|
|
248
|
+
},
|
|
239
249
|
copyCallback: {
|
|
240
250
|
type: Function,
|
|
241
251
|
default: () => {
|
|
@@ -250,8 +260,17 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
250
260
|
}
|
|
251
261
|
},
|
|
252
262
|
setup(__props) {
|
|
263
|
+
const props = __props;
|
|
264
|
+
function callback() {
|
|
265
|
+
if (props.isCustom) {
|
|
266
|
+
props.nodeClick();
|
|
267
|
+
}
|
|
268
|
+
}
|
|
253
269
|
return (_ctx, _cache) => {
|
|
254
|
-
return vue.openBlock(), vue.createElementBlock("div",
|
|
270
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
271
|
+
class: "bm-condition-node",
|
|
272
|
+
onClick: vue.withModifiers(callback, ["stop"])
|
|
273
|
+
}, [
|
|
255
274
|
vue.createElementVNode("div", _hoisted_2, [
|
|
256
275
|
vue.createElementVNode("div", _hoisted_3, [
|
|
257
276
|
vue.createElementVNode("span", {
|
|
@@ -270,9 +289,12 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
270
289
|
}, [
|
|
271
290
|
vue.createCommentVNode(' <CopyOutlined\n @click.stop="\n () => {\n copyCallback()\n }\n " /> \u6682\u65F6\u5173\u95ED\u590D\u5236\u8282\u70B9 '),
|
|
272
291
|
vue.createVNode(vue.unref(iconsVue.CloseOutlined), {
|
|
273
|
-
onClick: _cache[0] || (_cache[0] = (
|
|
274
|
-
|
|
275
|
-
|
|
292
|
+
onClick: _cache[0] || (_cache[0] = vue.withModifiers(
|
|
293
|
+
() => {
|
|
294
|
+
__props.deleteCallback();
|
|
295
|
+
},
|
|
296
|
+
["stop"]
|
|
297
|
+
))
|
|
276
298
|
})
|
|
277
299
|
], 2)
|
|
278
300
|
]),
|
|
@@ -283,7 +305,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
283
305
|
])) : vue.createCommentVNode("v-if", true)
|
|
284
306
|
])
|
|
285
307
|
])
|
|
286
|
-
]);
|
|
308
|
+
], 8, _hoisted_1);
|
|
287
309
|
};
|
|
288
310
|
}
|
|
289
311
|
});
|
|
@@ -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<{
|