bm-admin-ui 1.0.65-alpha → 1.0.66-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/editor/index.js +8 -4
- package/es/components/form-create/index.js +19 -15
- package/es/components/form-designer/index.js +3 -2
- package/es/components/staffs-selector/index.d.ts +51 -11
- package/es/components/staffs-selector/index.js +293 -223
- package/es/components/staffs-selector/src/action.d.ts +2 -0
- package/es/components/staffs-selector/src/departmentCmp.vue.d.ts +49 -0
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +1 -10
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +51 -11
- package/es/components/staffs-selector/src/variedCmp.vue.d.ts +1 -0
- package/es/components/upload/index.js +8 -4
- package/lib/components/editor/index.js +8 -4
- package/lib/components/form-create/index.js +19 -15
- package/lib/components/form-designer/index.js +3 -2
- package/lib/components/staffs-selector/index.d.ts +51 -11
- package/lib/components/staffs-selector/index.js +291 -221
- package/lib/components/staffs-selector/src/action.d.ts +2 -0
- package/lib/components/staffs-selector/src/departmentCmp.vue.d.ts +49 -0
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +1 -10
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +51 -11
- package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +1 -0
- package/lib/components/upload/index.js +8 -4
- package/package.json +1 -1
- package/types/components/staffs-selector/index.d.ts +51 -11
- package/types/components/staffs-selector/src/action.d.ts +2 -0
- package/types/components/staffs-selector/src/departmentCmp.vue.d.ts +49 -0
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +1 -10
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +51 -11
- package/types/components/staffs-selector/src/variedCmp.vue.d.ts +1 -0
|
@@ -11859,6 +11859,9 @@ const _sfc_main$1 = {
|
|
|
11859
11859
|
});
|
|
11860
11860
|
},
|
|
11861
11861
|
paste(event) {
|
|
11862
|
+
if (uploadDisabled.value) {
|
|
11863
|
+
return;
|
|
11864
|
+
}
|
|
11862
11865
|
const items = event?.clipboardData?.items;
|
|
11863
11866
|
let file = null;
|
|
11864
11867
|
if (items && items.length) {
|
|
@@ -11980,7 +11983,7 @@ const _sfc_main$1 = {
|
|
|
11980
11983
|
immediate: true
|
|
11981
11984
|
}
|
|
11982
11985
|
);
|
|
11983
|
-
expose({ state, methods });
|
|
11986
|
+
expose({ state, methods, paste: methods.paste });
|
|
11984
11987
|
return {
|
|
11985
11988
|
...toRefs(state),
|
|
11986
11989
|
icons,
|
|
@@ -12169,7 +12172,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12169
12172
|
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--view",
|
|
12170
12173
|
onClick: ($event) => _ctx.viewOnePicture(item)
|
|
12171
12174
|
}, null, 8, _hoisted_9)) : createCommentVNode("v-if", true),
|
|
12172
|
-
!(_ctx.extraConfigs.hidenDelBtn ?? false) ? (openBlock(), createElementBlock("div", {
|
|
12175
|
+
!(_ctx.extraConfigs.hidenDelBtn ?? _ctx.extraConfigs.hideDelBtn ?? false) ? (openBlock(), createElementBlock("div", {
|
|
12173
12176
|
key: 1,
|
|
12174
12177
|
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--delete",
|
|
12175
12178
|
onClick: ($event) => _ctx.deleteFile(item.uid)
|
|
@@ -12266,10 +12269,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12266
12269
|
class: "bm-upload__error-reload",
|
|
12267
12270
|
onClick: (e) => _ctx.reUpload(e, item.uid)
|
|
12268
12271
|
}, null, 8, _hoisted_32)) : createCommentVNode("v-if", true),
|
|
12269
|
-
|
|
12272
|
+
!(_ctx.extraConfigs.hidenDelBtn ?? _ctx.extraConfigs.hideDelBtn ?? false) ? (openBlock(), createElementBlock("div", {
|
|
12273
|
+
key: 1,
|
|
12270
12274
|
class: "bm-upload__trash",
|
|
12271
12275
|
onClick: ($event) => _ctx.deleteFile(item.uid)
|
|
12272
|
-
}, null, 8, _hoisted_33)
|
|
12276
|
+
}, null, 8, _hoisted_33)) : createCommentVNode("v-if", true)
|
|
12273
12277
|
])
|
|
12274
12278
|
]),
|
|
12275
12279
|
!item.isDoneDeloy || item.progress < 100 || item.status === "error" ? (openBlock(), createElementBlock("div", _hoisted_34, [
|
|
@@ -644,6 +644,7 @@ var picture = {
|
|
|
644
644
|
listType: 'picture-card',
|
|
645
645
|
text: '请选择',
|
|
646
646
|
multiple: maxCount > 1,
|
|
647
|
+
accept: '.jpg,.png',
|
|
647
648
|
},
|
|
648
649
|
extraProps: {
|
|
649
650
|
maxSize: 10,
|
|
@@ -786,6 +787,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
786
787
|
props: [
|
|
787
788
|
"title",
|
|
788
789
|
"mode",
|
|
790
|
+
"limit",
|
|
789
791
|
"placeholder",
|
|
790
792
|
"defaultSelected",
|
|
791
793
|
"load",
|
|
@@ -800,7 +802,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
800
802
|
label: "name",
|
|
801
803
|
value: "code"
|
|
802
804
|
};
|
|
803
|
-
const selected = ref([]);
|
|
805
|
+
const selected = ref(props.defaultSelected || []);
|
|
804
806
|
const visible = ref(false);
|
|
805
807
|
function selectedChange(val) {
|
|
806
808
|
emits(
|
|
@@ -819,15 +821,6 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
819
821
|
function getPopupContainer() {
|
|
820
822
|
return document.body;
|
|
821
823
|
}
|
|
822
|
-
watch(
|
|
823
|
-
() => props.defaultSelected,
|
|
824
|
-
(val) => {
|
|
825
|
-
selected.value = val || [];
|
|
826
|
-
},
|
|
827
|
-
{
|
|
828
|
-
immediate: true
|
|
829
|
-
}
|
|
830
|
-
);
|
|
831
824
|
watch(selected, (val) => {
|
|
832
825
|
selectedChange(val);
|
|
833
826
|
});
|
|
@@ -852,8 +845,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
852
845
|
title: __props.title,
|
|
853
846
|
mode: __props.mode,
|
|
854
847
|
load: __props.load,
|
|
848
|
+
limit: __props.limit,
|
|
855
849
|
"immediate-fetch": __props.immediateFetch
|
|
856
|
-
}, null, 8, ["select", "visible", "title", "mode", "load", "immediate-fetch"])
|
|
850
|
+
}, null, 8, ["select", "visible", "title", "mode", "load", "limit", "immediate-fetch"])
|
|
857
851
|
]);
|
|
858
852
|
};
|
|
859
853
|
}
|
|
@@ -20383,8 +20377,9 @@ var department = {
|
|
|
20383
20377
|
title: data.title.title,
|
|
20384
20378
|
props: {
|
|
20385
20379
|
title: '添加部门',
|
|
20386
|
-
mode:
|
|
20380
|
+
mode: 'department',
|
|
20387
20381
|
placeholder: data.props.placeholder,
|
|
20382
|
+
limit: data.props.limit || 0,
|
|
20388
20383
|
immediateFetch: true,
|
|
20389
20384
|
unitStr: '个',
|
|
20390
20385
|
defaultSelected: data.value,
|
|
@@ -20427,7 +20422,8 @@ var department = {
|
|
|
20427
20422
|
title: data.title.title,
|
|
20428
20423
|
props: {
|
|
20429
20424
|
title: '添加部门',
|
|
20430
|
-
mode:
|
|
20425
|
+
mode: 'department',
|
|
20426
|
+
limit: data.props.limit,
|
|
20431
20427
|
placeholder: data.props.placeholder,
|
|
20432
20428
|
immediateFetch: true,
|
|
20433
20429
|
unitStr: '个',
|
|
@@ -20472,7 +20468,8 @@ var department = {
|
|
|
20472
20468
|
var _a;
|
|
20473
20469
|
return h(StaffSelector, {
|
|
20474
20470
|
title: '添加部门',
|
|
20475
|
-
mode:
|
|
20471
|
+
mode: 'department',
|
|
20472
|
+
limit: data.props.limit,
|
|
20476
20473
|
placeholder: data.props.placeholder,
|
|
20477
20474
|
immediateFetch: true,
|
|
20478
20475
|
unitStr: '个',
|
|
@@ -20799,8 +20796,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20799
20796
|
if (formPermission) {
|
|
20800
20797
|
const { name } = formPermission;
|
|
20801
20798
|
if (formPermission.disabled) {
|
|
20802
|
-
if (name === "picture") {
|
|
20799
|
+
if (name === "picture" || name === "file") {
|
|
20800
|
+
if (!rule2.props.uploadProps) {
|
|
20801
|
+
rule2.props.uploadProps = {};
|
|
20802
|
+
}
|
|
20803
|
+
if (!rule2.props.extraProps) {
|
|
20804
|
+
rule2.props.extraProps = {};
|
|
20805
|
+
}
|
|
20803
20806
|
rule2.props.uploadProps.disabled = true;
|
|
20807
|
+
rule2.props.extraProps.hideDelBtn = true;
|
|
20804
20808
|
} else if (name === "materialTemp") {
|
|
20805
20809
|
rule2.props.disabled = formPermission.disabled;
|
|
20806
20810
|
} else {
|
|
@@ -3287,7 +3287,8 @@ var shop = {
|
|
|
3287
3287
|
info: '店铺控件在流程流转过程中涉及数据权限的控制,当表单中设置了多个店铺控件时,需设置其中1个店铺控件作为主控件。被设为主控件的店铺控件,流程流转过程中将以此店铺控件输入的数据作为数据权限判断依据。',
|
|
3288
3288
|
field: fieldsMap$1['config.isMain'],
|
|
3289
3289
|
value: rule.config.isMain,
|
|
3290
|
-
hidden:
|
|
3290
|
+
hidden: (parentRule === null || parentRule === void 0 ? void 0 : parentRule.type) === WidgetType.RowWidget ||
|
|
3291
|
+
(parentRule === null || parentRule === void 0 ? void 0 : parentRule.type) === WidgetType.TableWidget,
|
|
3291
3292
|
inject: true,
|
|
3292
3293
|
},
|
|
3293
3294
|
{
|
|
@@ -4232,7 +4233,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4232
4233
|
}
|
|
4233
4234
|
function resetActiveRule() {
|
|
4234
4235
|
activeRule.value = {};
|
|
4235
|
-
activeParentRule.value =
|
|
4236
|
+
activeParentRule.value = {};
|
|
4236
4237
|
}
|
|
4237
4238
|
function getPopupContainer() {
|
|
4238
4239
|
return document.body;
|
|
@@ -96,7 +96,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
96
96
|
fetch: (params: {
|
|
97
97
|
searchVal?: string | undefined;
|
|
98
98
|
area?: string | undefined;
|
|
99
|
-
}) => void
|
|
99
|
+
}) => Promise<void>;
|
|
100
100
|
flatListFunc: (list: any) => Map<string, any>;
|
|
101
101
|
findDataByKey: (key: string) => any;
|
|
102
102
|
summitSelect: () => void;
|
|
@@ -889,10 +889,6 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
889
889
|
type: ArrayConstructor;
|
|
890
890
|
default: () => never[];
|
|
891
891
|
};
|
|
892
|
-
isTree: {
|
|
893
|
-
type: BooleanConstructor;
|
|
894
|
-
default: boolean;
|
|
895
|
-
};
|
|
896
892
|
}, {
|
|
897
893
|
changeAllOption(): void;
|
|
898
894
|
search(): void;
|
|
@@ -907,6 +903,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
907
903
|
dataMap: import("vue").Ref<Map<string, any>>;
|
|
908
904
|
curlistKeys: import("vue").Ref<Set<string>>;
|
|
909
905
|
activeKey: import("vue").Ref<number>;
|
|
906
|
+
fetchLoading: import("vue").Ref<boolean>;
|
|
910
907
|
searchVal: import("vue").Ref<string>;
|
|
911
908
|
selectAll: import("vue").Ref<boolean>;
|
|
912
909
|
indeterminate: import("vue").Ref<boolean>;
|
|
@@ -916,7 +913,6 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
916
913
|
[key: string]: any;
|
|
917
914
|
}> | null | undefined)[]>;
|
|
918
915
|
isFulfill: import("vue").Ref<boolean>;
|
|
919
|
-
changeTreeCheck: (checkedKeys: any) => void;
|
|
920
916
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "fetchList")[], "update:selected" | "fetchList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
921
917
|
limit: {
|
|
922
918
|
type: NumberConstructor;
|
|
@@ -926,17 +922,12 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
926
922
|
type: ArrayConstructor;
|
|
927
923
|
default: () => never[];
|
|
928
924
|
};
|
|
929
|
-
isTree: {
|
|
930
|
-
type: BooleanConstructor;
|
|
931
|
-
default: boolean;
|
|
932
|
-
};
|
|
933
925
|
}>> & {
|
|
934
926
|
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
935
927
|
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
936
928
|
}, {
|
|
937
929
|
selected: unknown[];
|
|
938
930
|
limit: number;
|
|
939
|
-
isTree: boolean;
|
|
940
931
|
}>;
|
|
941
932
|
radioCmp: import("vue").DefineComponent<{
|
|
942
933
|
list: {
|
|
@@ -995,6 +986,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
995
986
|
dataMap: import("vue").Ref<Map<string, any>>;
|
|
996
987
|
curlistKeys: import("vue").Ref<Set<string>>;
|
|
997
988
|
activeKey: import("vue").Ref<number>;
|
|
989
|
+
fetchLoading: import("vue").Ref<boolean>;
|
|
998
990
|
indicator: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
999
991
|
[key: string]: any;
|
|
1000
992
|
}>;
|
|
@@ -1036,6 +1028,54 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
1036
1028
|
dataMap: Map<unknown, unknown>;
|
|
1037
1029
|
curlistKeys: Set<unknown>;
|
|
1038
1030
|
}>;
|
|
1031
|
+
departmentCmp: import("vue").DefineComponent<{
|
|
1032
|
+
limit: {
|
|
1033
|
+
type: NumberConstructor;
|
|
1034
|
+
default: number;
|
|
1035
|
+
};
|
|
1036
|
+
selected: {
|
|
1037
|
+
type: ArrayConstructor;
|
|
1038
|
+
default: () => never[];
|
|
1039
|
+
};
|
|
1040
|
+
}, {
|
|
1041
|
+
search(): void;
|
|
1042
|
+
list: any;
|
|
1043
|
+
multipleChecked: import("vue").Ref<any>;
|
|
1044
|
+
departmentChecked: import("vue").Ref<string[]>;
|
|
1045
|
+
multipDepartment: import("vue").Ref<string[]>;
|
|
1046
|
+
staffsChecked: import("vue").Ref<any>;
|
|
1047
|
+
shopChecked: import("vue").Ref<any>;
|
|
1048
|
+
groupChecked: import("vue").Ref<any>;
|
|
1049
|
+
dataMap: import("vue").Ref<Map<string, any>>;
|
|
1050
|
+
curlistKeys: import("vue").Ref<Set<string>>;
|
|
1051
|
+
activeKey: import("vue").Ref<number>;
|
|
1052
|
+
fetchLoading: import("vue").Ref<boolean>;
|
|
1053
|
+
searchVal: import("vue").Ref<string>;
|
|
1054
|
+
selectAll: import("vue").Ref<boolean>;
|
|
1055
|
+
indeterminate: import("vue").Ref<boolean>;
|
|
1056
|
+
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
1057
|
+
[key: string]: any;
|
|
1058
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
1059
|
+
[key: string]: any;
|
|
1060
|
+
}> | null | undefined)[]>;
|
|
1061
|
+
isFulfill: import("vue").Ref<boolean>;
|
|
1062
|
+
changeTreeCheck: (checkedKeys: any) => void;
|
|
1063
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "fetchList")[], "update:selected" | "fetchList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1064
|
+
limit: {
|
|
1065
|
+
type: NumberConstructor;
|
|
1066
|
+
default: number;
|
|
1067
|
+
};
|
|
1068
|
+
selected: {
|
|
1069
|
+
type: ArrayConstructor;
|
|
1070
|
+
default: () => never[];
|
|
1071
|
+
};
|
|
1072
|
+
}>> & {
|
|
1073
|
+
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
1074
|
+
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
1075
|
+
}, {
|
|
1076
|
+
selected: unknown[];
|
|
1077
|
+
limit: number;
|
|
1078
|
+
}>;
|
|
1039
1079
|
list: any;
|
|
1040
1080
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:visible" | "update:select")[], "change" | "update:visible" | "update:select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1041
1081
|
visible: {
|