bm-admin-ui 1.0.65-alpha → 1.0.67-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.
Files changed (33) hide show
  1. package/es/components/editor/index.js +8 -4
  2. package/es/components/form-create/index.js +47 -31
  3. package/es/components/form-designer/index.js +3 -2
  4. package/es/components/input-tags-display/index.js +3 -3
  5. package/es/components/staffs-selector/index.d.ts +51 -11
  6. package/es/components/staffs-selector/index.js +293 -223
  7. package/es/components/staffs-selector/src/action.d.ts +2 -0
  8. package/es/components/staffs-selector/src/departmentCmp.vue.d.ts +49 -0
  9. package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +1 -10
  10. package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +51 -11
  11. package/es/components/staffs-selector/src/variedCmp.vue.d.ts +1 -0
  12. package/es/components/upload/index.js +8 -4
  13. package/lib/components/editor/index.js +8 -4
  14. package/lib/components/form-create/index.js +47 -31
  15. package/lib/components/form-designer/index.js +3 -2
  16. package/lib/components/input-tags-display/index.js +2 -2
  17. package/lib/components/staffs-selector/index.d.ts +51 -11
  18. package/lib/components/staffs-selector/index.js +291 -221
  19. package/lib/components/staffs-selector/src/action.d.ts +2 -0
  20. package/lib/components/staffs-selector/src/departmentCmp.vue.d.ts +49 -0
  21. package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +1 -10
  22. package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +51 -11
  23. package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +1 -0
  24. package/lib/components/upload/index.js +8 -4
  25. package/package.json +1 -1
  26. package/theme-chalk/index.css +1 -1
  27. package/theme-chalk/input-tags-display.css +1 -1
  28. package/types/components/staffs-selector/index.d.ts +51 -11
  29. package/types/components/staffs-selector/src/action.d.ts +2 -0
  30. package/types/components/staffs-selector/src/departmentCmp.vue.d.ts +49 -0
  31. package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +1 -10
  32. package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +51 -11
  33. package/types/components/staffs-selector/src/variedCmp.vue.d.ts +1 -0
@@ -2,6 +2,7 @@ export declare const MODE: {
2
2
  RADIO: string;
3
3
  MULTIPLE: string;
4
4
  VARIED: string;
5
+ DEPARTMENT: string;
5
6
  };
6
7
  export declare const selectProps: {
7
8
  visible: {
@@ -61,6 +62,7 @@ export declare const selectState: {
61
62
  dataMap: Map<string, any>;
62
63
  curlistKeys: Set<string>;
63
64
  activeKey: number;
65
+ fetchLoading: boolean;
64
66
  };
65
67
  export declare const list: any;
66
68
  export declare const departNative: any;
@@ -0,0 +1,49 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ limit: {
3
+ type: NumberConstructor;
4
+ default: number;
5
+ };
6
+ selected: {
7
+ type: ArrayConstructor;
8
+ default: () => never[];
9
+ };
10
+ }, {
11
+ search(): void;
12
+ list: any;
13
+ multipleChecked: import("vue").Ref<any>;
14
+ departmentChecked: import("vue").Ref<string[]>;
15
+ multipDepartment: import("vue").Ref<string[]>;
16
+ staffsChecked: import("vue").Ref<any>;
17
+ shopChecked: import("vue").Ref<any>;
18
+ groupChecked: import("vue").Ref<any>;
19
+ dataMap: import("vue").Ref<Map<string, any>>;
20
+ curlistKeys: import("vue").Ref<Set<string>>;
21
+ activeKey: import("vue").Ref<number>;
22
+ fetchLoading: import("vue").Ref<boolean>;
23
+ searchVal: import("vue").Ref<string>;
24
+ selectAll: import("vue").Ref<boolean>;
25
+ indeterminate: import("vue").Ref<boolean>;
26
+ emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
27
+ [key: string]: any;
28
+ }> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
29
+ [key: string]: any;
30
+ }> | null | undefined)[]>;
31
+ isFulfill: import("vue").Ref<boolean>;
32
+ changeTreeCheck: (checkedKeys: any) => void;
33
+ }, 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<{
34
+ limit: {
35
+ type: NumberConstructor;
36
+ default: number;
37
+ };
38
+ selected: {
39
+ type: ArrayConstructor;
40
+ default: () => never[];
41
+ };
42
+ }>> & {
43
+ "onUpdate:selected"?: ((...args: any[]) => any) | undefined;
44
+ onFetchList?: ((...args: any[]) => any) | undefined;
45
+ }, {
46
+ selected: unknown[];
47
+ limit: number;
48
+ }>;
49
+ export default _default;
@@ -7,10 +7,6 @@ declare const _default: import("vue").DefineComponent<{
7
7
  type: ArrayConstructor;
8
8
  default: () => never[];
9
9
  };
10
- isTree: {
11
- type: BooleanConstructor;
12
- default: boolean;
13
- };
14
10
  }, {
15
11
  changeAllOption(): void;
16
12
  search(): void;
@@ -25,6 +21,7 @@ declare const _default: import("vue").DefineComponent<{
25
21
  dataMap: import("vue").Ref<Map<string, any>>;
26
22
  curlistKeys: import("vue").Ref<Set<string>>;
27
23
  activeKey: import("vue").Ref<number>;
24
+ fetchLoading: import("vue").Ref<boolean>;
28
25
  searchVal: import("vue").Ref<string>;
29
26
  selectAll: import("vue").Ref<boolean>;
30
27
  indeterminate: import("vue").Ref<boolean>;
@@ -34,7 +31,6 @@ declare const _default: import("vue").DefineComponent<{
34
31
  [key: string]: any;
35
32
  }> | null | undefined)[]>;
36
33
  isFulfill: import("vue").Ref<boolean>;
37
- changeTreeCheck: (checkedKeys: any) => void;
38
34
  }, 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<{
39
35
  limit: {
40
36
  type: NumberConstructor;
@@ -44,16 +40,11 @@ declare const _default: import("vue").DefineComponent<{
44
40
  type: ArrayConstructor;
45
41
  default: () => never[];
46
42
  };
47
- isTree: {
48
- type: BooleanConstructor;
49
- default: boolean;
50
- };
51
43
  }>> & {
52
44
  "onUpdate:selected"?: ((...args: any[]) => any) | undefined;
53
45
  onFetchList?: ((...args: any[]) => any) | undefined;
54
46
  }, {
55
47
  selected: unknown[];
56
48
  limit: number;
57
- isTree: boolean;
58
49
  }>;
59
50
  export default _default;
@@ -96,7 +96,7 @@ declare const _default: import("vue").DefineComponent<{
96
96
  fetch: (params: {
97
97
  searchVal?: string;
98
98
  area?: string;
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 _default: import("vue").DefineComponent<{
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 _default: import("vue").DefineComponent<{
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 _default: import("vue").DefineComponent<{
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 _default: import("vue").DefineComponent<{
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 _default: import("vue").DefineComponent<{
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 _default: import("vue").DefineComponent<{
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: {
@@ -25,6 +25,7 @@ declare const _default: import("vue").DefineComponent<{
25
25
  dataMap: import("vue").Ref<Map<string, any>>;
26
26
  curlistKeys: import("vue").Ref<Set<string>>;
27
27
  activeKey: import("vue").Ref<number>;
28
+ fetchLoading: import("vue").Ref<boolean>;
28
29
  indicator: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
29
30
  [key: string]: any;
30
31
  }>;
@@ -448,6 +448,9 @@ const _sfc_main = {
448
448
  });
449
449
  },
450
450
  paste(event) {
451
+ if (uploadDisabled.value) {
452
+ return;
453
+ }
451
454
  const items = event?.clipboardData?.items;
452
455
  let file = null;
453
456
  if (items && items.length) {
@@ -569,7 +572,7 @@ const _sfc_main = {
569
572
  immediate: true
570
573
  }
571
574
  );
572
- expose({ state, methods });
575
+ expose({ state, methods, paste: methods.paste });
573
576
  return {
574
577
  ...vue.toRefs(state),
575
578
  icons,
@@ -758,7 +761,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
758
761
  class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--view",
759
762
  onClick: ($event) => _ctx.viewOnePicture(item)
760
763
  }, null, 8, _hoisted_9)) : vue.createCommentVNode("v-if", true),
761
- !(_ctx.extraConfigs.hidenDelBtn ?? false) ? (vue.openBlock(), vue.createElementBlock("div", {
764
+ !(_ctx.extraConfigs.hidenDelBtn ?? _ctx.extraConfigs.hideDelBtn ?? false) ? (vue.openBlock(), vue.createElementBlock("div", {
762
765
  key: 1,
763
766
  class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--delete",
764
767
  onClick: ($event) => _ctx.deleteFile(item.uid)
@@ -855,10 +858,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
855
858
  class: "bm-upload__error-reload",
856
859
  onClick: (e) => _ctx.reUpload(e, item.uid)
857
860
  }, null, 8, _hoisted_32)) : vue.createCommentVNode("v-if", true),
858
- vue.createElementVNode("div", {
861
+ !(_ctx.extraConfigs.hidenDelBtn ?? _ctx.extraConfigs.hideDelBtn ?? false) ? (vue.openBlock(), vue.createElementBlock("div", {
862
+ key: 1,
859
863
  class: "bm-upload__trash",
860
864
  onClick: ($event) => _ctx.deleteFile(item.uid)
861
- }, null, 8, _hoisted_33)
865
+ }, null, 8, _hoisted_33)) : vue.createCommentVNode("v-if", true)
862
866
  ])
863
867
  ]),
864
868
  !item.isDoneDeloy || item.progress < 100 || item.status === "error" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_34, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bm-admin-ui",
3
- "version": "1.0.65-alpha",
3
+ "version": "1.0.67-alpha",
4
4
  "private": false,
5
5
  "description": "An Admin Component Library for Bm",
6
6
  "license": "UNLICENSED",