bm-admin-ui 1.1.5-alpha → 1.1.7-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/form-create/index.js +219 -22
- 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/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/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/form-create/index.js +220 -22
- 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/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/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- 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/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
|
@@ -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;
|
|
@@ -12,6 +12,7 @@ var components = require('bm-admin-ui/lib/components');
|
|
|
12
12
|
var iconsVue = require('@ant-design/icons-vue');
|
|
13
13
|
var lodashEs = require('lodash-es');
|
|
14
14
|
var customParseFormat = require('dayjs/plugin/customParseFormat');
|
|
15
|
+
var utils = require('bm-admin-ui/lib/utils');
|
|
15
16
|
var isNull = require('bm-admin-ui/lib/utils/isNull');
|
|
16
17
|
|
|
17
18
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -20,6 +21,7 @@ var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
|
|
|
20
21
|
var Picture__default = /*#__PURE__*/_interopDefaultLegacy(Picture);
|
|
21
22
|
var BmStaffsSelector__default = /*#__PURE__*/_interopDefaultLegacy(BmStaffsSelector);
|
|
22
23
|
var customParseFormat__default = /*#__PURE__*/_interopDefaultLegacy(customParseFormat);
|
|
24
|
+
var utils__default = /*#__PURE__*/_interopDefaultLegacy(utils);
|
|
23
25
|
|
|
24
26
|
const fieldRatioMap = {
|
|
25
27
|
'25%': 6,
|
|
@@ -174,8 +176,8 @@ var textarea = {
|
|
|
174
176
|
},
|
|
175
177
|
};
|
|
176
178
|
|
|
177
|
-
function generateRowRule(data) {
|
|
178
|
-
|
|
179
|
+
function generateRowRule(data, InRow = false) {
|
|
180
|
+
const config = {
|
|
179
181
|
type: 'inputNumber',
|
|
180
182
|
field: data.field,
|
|
181
183
|
title: data.title.title,
|
|
@@ -187,15 +189,23 @@ function generateRowRule(data) {
|
|
|
187
189
|
effect: {
|
|
188
190
|
required: data.effect.required && '请输入',
|
|
189
191
|
},
|
|
190
|
-
wrap: {
|
|
191
|
-
wrapperCol: {
|
|
192
|
-
span: fieldRatioMap[data.config.fieldRatio],
|
|
193
|
-
},
|
|
194
|
-
},
|
|
195
192
|
style: {
|
|
196
193
|
width: '100%',
|
|
197
194
|
},
|
|
198
195
|
};
|
|
196
|
+
if (InRow) {
|
|
197
|
+
config['col'] = {
|
|
198
|
+
span: fieldRatioMap[data.config.fieldRatio],
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
config['wrap'] = {
|
|
203
|
+
wrapperCol: {
|
|
204
|
+
span: fieldRatioMap[data.config.fieldRatio],
|
|
205
|
+
},
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
return config;
|
|
199
209
|
}
|
|
200
210
|
var numInput = {
|
|
201
211
|
name: 'numInput',
|
|
@@ -203,7 +213,7 @@ var numInput = {
|
|
|
203
213
|
return generateRowRule(data);
|
|
204
214
|
},
|
|
205
215
|
rowRule(data) {
|
|
206
|
-
return generateRowRule(data);
|
|
216
|
+
return generateRowRule(data, true);
|
|
207
217
|
},
|
|
208
218
|
tableRule(data) {
|
|
209
219
|
const field = data.field;
|
|
@@ -1118,8 +1128,8 @@ const _hoisted_5$4 = {
|
|
|
1118
1128
|
key: 1,
|
|
1119
1129
|
class: "bm-fc-select-material-temp__content__circle"
|
|
1120
1130
|
};
|
|
1121
|
-
const _hoisted_6$
|
|
1122
|
-
const _hoisted_7$
|
|
1131
|
+
const _hoisted_6$4 = ["title"];
|
|
1132
|
+
const _hoisted_7$4 = { class: "bm-fc-select-material-temp__content__item-time" };
|
|
1123
1133
|
const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
1124
1134
|
__name: "select-material-temp",
|
|
1125
1135
|
props: [
|
|
@@ -1334,9 +1344,9 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
1334
1344
|
vue.createElementVNode("span", {
|
|
1335
1345
|
class: "bm-fc-select-material-temp__content__name",
|
|
1336
1346
|
title: item.templateName
|
|
1337
|
-
}, vue.toDisplayString(item.templateName), 9, _hoisted_6$
|
|
1347
|
+
}, vue.toDisplayString(item.templateName), 9, _hoisted_6$4)
|
|
1338
1348
|
], 8, _hoisted_4$4),
|
|
1339
|
-
vue.createElementVNode("div", _hoisted_7$
|
|
1349
|
+
vue.createElementVNode("div", _hoisted_7$4, vue.toDisplayString(vue.unref(dayjs__default["default"])(item.lastUpdateTime).format("YYYY/MM/DD")), 1)
|
|
1340
1350
|
])
|
|
1341
1351
|
]),
|
|
1342
1352
|
_: 2
|
|
@@ -18731,9 +18741,17 @@ var ShopInput = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__file", "shop-input
|
|
|
18731
18741
|
const _hoisted_1$5 = { class: "bm-dc-table-widget" };
|
|
18732
18742
|
const _hoisted_2$4 = { class: "bm-dc-table-widget__title" };
|
|
18733
18743
|
const _hoisted_3$3 = { class: "bm-dc-table-widget__title-samll" };
|
|
18734
|
-
const _hoisted_4$3 = {
|
|
18735
|
-
|
|
18736
|
-
|
|
18744
|
+
const _hoisted_4$3 = {
|
|
18745
|
+
key: 0,
|
|
18746
|
+
class: "bm-dc-table-widget__top-bar"
|
|
18747
|
+
};
|
|
18748
|
+
const _hoisted_5$3 = ["accept"];
|
|
18749
|
+
const _hoisted_6$3 = {
|
|
18750
|
+
key: 1,
|
|
18751
|
+
class: "bm-dc-table-widget__top-bar"
|
|
18752
|
+
};
|
|
18753
|
+
const _hoisted_7$3 = { class: "bm-dc-table-widget__table" };
|
|
18754
|
+
const _sfc_main$7 = vue.defineComponent({
|
|
18737
18755
|
__name: "table-widget",
|
|
18738
18756
|
props: [
|
|
18739
18757
|
"rule",
|
|
@@ -18828,6 +18846,8 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
18828
18846
|
const formData = vue.computed(
|
|
18829
18847
|
() => props.formData || props.formCreateInject.api.bind()
|
|
18830
18848
|
);
|
|
18849
|
+
const tableConfig = vue.computed(() => props.rule?.config?.tableConfig || {});
|
|
18850
|
+
const validColumns = vue.computed(() => columns.filter((c) => isValidColumn(c)));
|
|
18831
18851
|
function isShow(key) {
|
|
18832
18852
|
return props.rule.config.tableAdvancedFeatures.includes(key);
|
|
18833
18853
|
}
|
|
@@ -19024,12 +19044,12 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19024
19044
|
const reader = new FileReader();
|
|
19025
19045
|
reader.onload = (fr) => {
|
|
19026
19046
|
const rows = parseCsv(fr?.target?.result);
|
|
19027
|
-
const
|
|
19047
|
+
const validColumns2 = columns.filter((c) => isValidColumn(c));
|
|
19028
19048
|
const result = [];
|
|
19029
19049
|
rows.forEach((row) => {
|
|
19030
19050
|
const rowData = {};
|
|
19031
19051
|
row.forEach((item, index) => {
|
|
19032
|
-
rowData[
|
|
19052
|
+
rowData[validColumns2[index].field] = item;
|
|
19033
19053
|
});
|
|
19034
19054
|
result.push(rowData);
|
|
19035
19055
|
});
|
|
@@ -19066,9 +19086,9 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19066
19086
|
}
|
|
19067
19087
|
async function validate(rowData) {
|
|
19068
19088
|
let error = "";
|
|
19069
|
-
const
|
|
19089
|
+
const validColumns2 = columns.filter((c) => isValidColumn(c));
|
|
19070
19090
|
for (const row of rowData) {
|
|
19071
|
-
for (const { field } of
|
|
19091
|
+
for (const { field } of validColumns2) {
|
|
19072
19092
|
const rule = childRulesMap.value[`${field}`];
|
|
19073
19093
|
const title = rule?.title?.title;
|
|
19074
19094
|
if (!rule)
|
|
@@ -19280,12 +19300,190 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19280
19300
|
deep: true
|
|
19281
19301
|
}
|
|
19282
19302
|
);
|
|
19303
|
+
const buttonLoadingForProductCenter = vue.ref({
|
|
19304
|
+
export: false,
|
|
19305
|
+
download: false,
|
|
19306
|
+
import: false
|
|
19307
|
+
});
|
|
19308
|
+
async function exportForProductCenter() {
|
|
19309
|
+
if (!tableConfig.value.template || tableConfig.value.template === "table") {
|
|
19310
|
+
return handleExport();
|
|
19311
|
+
}
|
|
19312
|
+
try {
|
|
19313
|
+
buttonLoadingForProductCenter.value.export = true;
|
|
19314
|
+
const selected = xGrid.value?.getCheckboxRecords?.();
|
|
19315
|
+
await props.extraConfig.table?.exportFetch?.({
|
|
19316
|
+
tableConfig: tableConfig.value,
|
|
19317
|
+
columns: validColumns.value,
|
|
19318
|
+
data: selected
|
|
19319
|
+
});
|
|
19320
|
+
} catch (error) {
|
|
19321
|
+
console.log("\u{1F680} ~ error:", error);
|
|
19322
|
+
} finally {
|
|
19323
|
+
buttonLoadingForProductCenter.value.export = false;
|
|
19324
|
+
}
|
|
19325
|
+
}
|
|
19326
|
+
async function downloadTemplateForProductCenter() {
|
|
19327
|
+
if (!tableConfig.value.template || tableConfig.value.template === "table") {
|
|
19328
|
+
return handleDownload();
|
|
19329
|
+
}
|
|
19330
|
+
try {
|
|
19331
|
+
buttonLoadingForProductCenter.value.download = true;
|
|
19332
|
+
await props.extraConfig.table?.downloadTemplateFetch?.({
|
|
19333
|
+
tableConfig: tableConfig.value,
|
|
19334
|
+
columns: validColumns.value
|
|
19335
|
+
});
|
|
19336
|
+
} catch (error) {
|
|
19337
|
+
console.log("\u{1F680} ~ error:", error);
|
|
19338
|
+
} finally {
|
|
19339
|
+
buttonLoadingForProductCenter.value.download = false;
|
|
19340
|
+
}
|
|
19341
|
+
}
|
|
19342
|
+
async function importHandleForProductCenter(e) {
|
|
19343
|
+
if (!tableConfig.value.template || tableConfig.value.template === "table") {
|
|
19344
|
+
return handleChange(e);
|
|
19345
|
+
}
|
|
19346
|
+
try {
|
|
19347
|
+
buttonLoadingForProductCenter.value.import = true;
|
|
19348
|
+
let res = await props.extraConfig.table?.importFetch?.({
|
|
19349
|
+
tableConfig: tableConfig.value,
|
|
19350
|
+
columns: validColumns.value
|
|
19351
|
+
}) || {};
|
|
19352
|
+
if (res.promptMessage && !await utils__default["default"].confirmModal(res.promptMessage)) {
|
|
19353
|
+
return;
|
|
19354
|
+
}
|
|
19355
|
+
if (res.templateDataList?.length) {
|
|
19356
|
+
data.push(...res.templateDataList);
|
|
19357
|
+
}
|
|
19358
|
+
const numFormatter = (value) => utils__default["default"].toFixNumHasDefault(value, 0, false, "0");
|
|
19359
|
+
if (!res.successNum) {
|
|
19360
|
+
let confirmRet = await utils__default["default"].confirmModal(
|
|
19361
|
+
`\u5BFC\u5165\u5931\u8D25\uFF0C\u5171${numFormatter(res.errorNum)}\u6761`,
|
|
19362
|
+
"\u63D0\u793A",
|
|
19363
|
+
"error",
|
|
19364
|
+
{
|
|
19365
|
+
okText: "\u4E0B\u8F7D\u9519\u8BEF\u6570\u636E"
|
|
19366
|
+
},
|
|
19367
|
+
"error"
|
|
19368
|
+
);
|
|
19369
|
+
if (confirmRet) {
|
|
19370
|
+
props.extraConfig.table?.downloadErrorFetch?.({
|
|
19371
|
+
tableConfig: tableConfig.value,
|
|
19372
|
+
columns: validColumns.value,
|
|
19373
|
+
data: res
|
|
19374
|
+
});
|
|
19375
|
+
}
|
|
19376
|
+
} else if (res.successNum === res.importNum) {
|
|
19377
|
+
let confirmRet = await utils__default["default"].confirmModal(
|
|
19378
|
+
`\u5BFC\u5165\u6210\u529F\uFF0C\u5171${numFormatter(res.successNum)}\u6761`,
|
|
19379
|
+
"\u63D0\u793A",
|
|
19380
|
+
"success",
|
|
19381
|
+
{
|
|
19382
|
+
okText: "\u77E5\u9053\u4E86"
|
|
19383
|
+
},
|
|
19384
|
+
"success"
|
|
19385
|
+
);
|
|
19386
|
+
} else {
|
|
19387
|
+
let confirmRet = await utils__default["default"].confirmModal(
|
|
19388
|
+
`\u5BFC\u5165\u6210\u529F${numFormatter(res.successNum)}\u6761\uFF0C\u5931\u8D25${numFormatter(
|
|
19389
|
+
res.errorNum
|
|
19390
|
+
)}\u6761`,
|
|
19391
|
+
"\u63D0\u793A",
|
|
19392
|
+
"warning",
|
|
19393
|
+
{
|
|
19394
|
+
okText: "\u4E0B\u8F7D\u9519\u8BEF\u6570\u636E"
|
|
19395
|
+
},
|
|
19396
|
+
"warning"
|
|
19397
|
+
);
|
|
19398
|
+
if (confirmRet) {
|
|
19399
|
+
props.extraConfig.table?.downloadErrorFetch?.({
|
|
19400
|
+
tableConfig: tableConfig.value,
|
|
19401
|
+
columns: validColumns.value,
|
|
19402
|
+
data: res
|
|
19403
|
+
});
|
|
19404
|
+
}
|
|
19405
|
+
}
|
|
19406
|
+
} catch (error) {
|
|
19407
|
+
console.log("\u{1F680} ~ error:", error);
|
|
19408
|
+
} finally {
|
|
19409
|
+
buttonLoadingForProductCenter.value.import = false;
|
|
19410
|
+
}
|
|
19411
|
+
}
|
|
19283
19412
|
return (_ctx, _cache) => {
|
|
19284
19413
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
|
|
19285
19414
|
vue.createElementVNode("div", _hoisted_2$4, [
|
|
19286
19415
|
vue.createTextVNode(vue.toDisplayString(__props.rule.title.title) + " ", 1),
|
|
19287
19416
|
vue.createElementVNode("span", _hoisted_3$3, vue.toDisplayString(vue.unref(countText)), 1),
|
|
19288
|
-
vue.
|
|
19417
|
+
vue.createCommentVNode(" \u5546\u54C1\u4E2D\u5FC3\u5B9A\u5236 \u6309\u94AE "),
|
|
19418
|
+
vue.unref(tableConfig).system === "productCenter" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$3, [
|
|
19419
|
+
!__props.hidden ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
19420
|
+
vue.unref(tableConfig).buttons?.includes("import") ? (vue.openBlock(), vue.createElementBlock("input", {
|
|
19421
|
+
key: 0,
|
|
19422
|
+
ref_key: "inputRef",
|
|
19423
|
+
ref: inputRef,
|
|
19424
|
+
style: { "display": "none" },
|
|
19425
|
+
name: "file",
|
|
19426
|
+
type: "file",
|
|
19427
|
+
accept: vue.unref(tableConfig).template === "table" ? "text/csv" : "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel, .xlsx, .xls, .XLSX, .XLS",
|
|
19428
|
+
onChange: importHandleForProductCenter
|
|
19429
|
+
}, null, 40, _hoisted_5$3)) : vue.createCommentVNode("v-if", true),
|
|
19430
|
+
vue.unref(tableConfig).buttons?.includes("export") ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Button), {
|
|
19431
|
+
key: 1,
|
|
19432
|
+
disabled: __props.disabled,
|
|
19433
|
+
loading: buttonLoadingForProductCenter.value.export,
|
|
19434
|
+
onClick: exportForProductCenter
|
|
19435
|
+
}, {
|
|
19436
|
+
default: vue.withCtx(() => [
|
|
19437
|
+
vue.createTextVNode("\u5BFC\u51FA")
|
|
19438
|
+
]),
|
|
19439
|
+
_: 1
|
|
19440
|
+
}, 8, ["disabled", "loading"])) : vue.createCommentVNode("v-if", true),
|
|
19441
|
+
vue.unref(tableConfig).buttons?.includes("downloadTemplate") ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Button), {
|
|
19442
|
+
key: 2,
|
|
19443
|
+
disabled: __props.disabled,
|
|
19444
|
+
loading: buttonLoadingForProductCenter.value.download,
|
|
19445
|
+
onClick: downloadTemplateForProductCenter
|
|
19446
|
+
}, {
|
|
19447
|
+
default: vue.withCtx(() => [
|
|
19448
|
+
vue.createTextVNode("\u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F")
|
|
19449
|
+
]),
|
|
19450
|
+
_: 1
|
|
19451
|
+
}, 8, ["disabled", "loading"])) : vue.createCommentVNode("v-if", true),
|
|
19452
|
+
vue.unref(tableConfig).buttons?.includes("import") ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Button), {
|
|
19453
|
+
key: 3,
|
|
19454
|
+
disabled: __props.disabled,
|
|
19455
|
+
loading: buttonLoadingForProductCenter.value.import,
|
|
19456
|
+
onClick: handleImport
|
|
19457
|
+
}, {
|
|
19458
|
+
default: vue.withCtx(() => [
|
|
19459
|
+
vue.createTextVNode("\u6279\u91CF\u5BFC\u5165")
|
|
19460
|
+
]),
|
|
19461
|
+
_: 1
|
|
19462
|
+
}, 8, ["disabled", "loading"])) : vue.createCommentVNode("v-if", true),
|
|
19463
|
+
vue.unref(tableConfig).buttons?.includes("delete") ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Button), {
|
|
19464
|
+
key: 4,
|
|
19465
|
+
disabled: __props.disabled,
|
|
19466
|
+
onClick: handleBatchDelete
|
|
19467
|
+
}, {
|
|
19468
|
+
default: vue.withCtx(() => [
|
|
19469
|
+
vue.createTextVNode("\u6279\u91CF\u5220\u9664")
|
|
19470
|
+
]),
|
|
19471
|
+
_: 1
|
|
19472
|
+
}, 8, ["disabled"])) : vue.createCommentVNode("v-if", true),
|
|
19473
|
+
vue.unref(tableConfig).buttons?.includes("add") ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Button), {
|
|
19474
|
+
key: 5,
|
|
19475
|
+
type: "primary",
|
|
19476
|
+
disabled: __props.disabled,
|
|
19477
|
+
onClick: handleAdd
|
|
19478
|
+
}, {
|
|
19479
|
+
default: vue.withCtx(() => [
|
|
19480
|
+
vue.createVNode(vue.unref(iconsVue.PlusOutlined)),
|
|
19481
|
+
vue.createTextVNode(" \u65B0\u589E")
|
|
19482
|
+
]),
|
|
19483
|
+
_: 1
|
|
19484
|
+
}, 8, ["disabled"])) : vue.createCommentVNode("v-if", true)
|
|
19485
|
+
], 64)) : vue.createCommentVNode("v-if", true)
|
|
19486
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$3, [
|
|
19289
19487
|
!__props.hidden ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
19290
19488
|
vue.unref(exportFeature) ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Button), {
|
|
19291
19489
|
key: 0,
|
|
@@ -19349,9 +19547,9 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19349
19547
|
_: 1
|
|
19350
19548
|
}, 8, ["disabled"])
|
|
19351
19549
|
], 64)) : vue.createCommentVNode("v-if", true)
|
|
19352
|
-
])
|
|
19550
|
+
]))
|
|
19353
19551
|
]),
|
|
19354
|
-
vue.createElementVNode("div",
|
|
19552
|
+
vue.createElementVNode("div", _hoisted_7$3, [
|
|
19355
19553
|
vue.createVNode(vue.unref(antDesignVue.FormItemRest), null, {
|
|
19356
19554
|
default: vue.withCtx(() => [
|
|
19357
19555
|
vue.createVNode(vue.unref(components.BmFloatTable), {
|
|
@@ -14,7 +14,7 @@ declare const BmOverTooltips: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
14
14
|
default: number;
|
|
15
15
|
};
|
|
16
16
|
width: {
|
|
17
|
-
type: (
|
|
17
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
18
18
|
default: number;
|
|
19
19
|
};
|
|
20
20
|
showAlways: {
|