bm-admin-ui 1.2.46-alpha → 1.2.47-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 (47) hide show
  1. package/es/components/attachment/index.d.ts +54 -31
  2. package/es/components/attachment/index.js +10 -10
  3. package/es/components/attachment/src/attachment.vue.d.ts +54 -31
  4. package/es/components/edit-form/index.d.ts +54 -31
  5. package/es/components/edit-form/src/edit-form.vue.d.ts +54 -31
  6. package/es/components/editor/index.d.ts +134 -134
  7. package/es/components/editor/index.js +25 -25
  8. package/es/components/editor/src/editor.vue.d.ts +134 -134
  9. package/es/components/float-table/index.d.ts +136 -62
  10. package/es/components/float-table/index.js +8 -8
  11. package/es/components/float-table/src/float-table.vue.d.ts +136 -62
  12. package/es/components/over-tooltips/index.d.ts +56 -33
  13. package/es/components/over-tooltips/index.js +10 -10
  14. package/es/components/over-tooltips/src/over-tooltips.vue.d.ts +56 -33
  15. package/es/components/upload/index.d.ts +134 -134
  16. package/es/components/upload/index.js +25 -25
  17. package/es/components/upload/src/upload.vue.d.ts +134 -134
  18. package/lib/components/attachment/index.d.ts +54 -31
  19. package/lib/components/attachment/index.js +9 -9
  20. package/lib/components/attachment/src/attachment.vue.d.ts +54 -31
  21. package/lib/components/edit-form/index.d.ts +54 -31
  22. package/lib/components/edit-form/src/edit-form.vue.d.ts +54 -31
  23. package/lib/components/editor/index.d.ts +134 -134
  24. package/lib/components/editor/index.js +24 -24
  25. package/lib/components/editor/src/editor.vue.d.ts +134 -134
  26. package/lib/components/float-table/index.d.ts +136 -62
  27. package/lib/components/float-table/index.js +7 -7
  28. package/lib/components/float-table/src/float-table.vue.d.ts +136 -62
  29. package/lib/components/over-tooltips/index.d.ts +56 -33
  30. package/lib/components/over-tooltips/index.js +9 -9
  31. package/lib/components/over-tooltips/src/over-tooltips.vue.d.ts +56 -33
  32. package/lib/components/upload/index.d.ts +134 -134
  33. package/lib/components/upload/index.js +24 -24
  34. package/lib/components/upload/src/upload.vue.d.ts +134 -134
  35. package/package.json +1 -1
  36. package/types/components/attachment/index.d.ts +54 -31
  37. package/types/components/attachment/src/attachment.vue.d.ts +54 -31
  38. package/types/components/edit-form/index.d.ts +54 -31
  39. package/types/components/edit-form/src/edit-form.vue.d.ts +54 -31
  40. package/types/components/editor/index.d.ts +134 -134
  41. package/types/components/editor/src/editor.vue.d.ts +134 -134
  42. package/types/components/float-table/index.d.ts +136 -62
  43. package/types/components/float-table/src/float-table.vue.d.ts +136 -62
  44. package/types/components/over-tooltips/index.d.ts +56 -33
  45. package/types/components/over-tooltips/src/over-tooltips.vue.d.ts +56 -33
  46. package/types/components/upload/index.d.ts +134 -134
  47. package/types/components/upload/src/upload.vue.d.ts +134 -134
@@ -1,141 +1,141 @@
1
1
  import type { UploadProps, UploadPropsInner, ExtraProps, DefaultList, UploadRequest, CustomErrors } from './src/props';
2
- declare const BmUpload: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<{
3
- name: string;
4
- components: {
5
- PlusOutlined: import("@ant-design/icons-vue/lib/icons/PlusOutlined").PlusOutlinedIconType;
6
- OverTooltips: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<{
7
- name: string;
8
- props: {
9
- title: {
10
- type: StringConstructor;
11
- default: undefined;
12
- };
13
- labelTitle: {
14
- type: StringConstructor;
15
- default: undefined;
16
- };
17
- line: {
18
- type: NumberConstructor;
19
- default: number;
20
- };
21
- width: {
22
- type: (StringConstructor | NumberConstructor)[];
23
- default: number;
24
- };
25
- showAlways: {
26
- type: BooleanConstructor;
27
- default: boolean;
28
- };
29
- };
30
- setup(props: any, context: any): {
31
- mySelf: import("vue").Ref<any>;
32
- handleVisibleChange: (val: any) => void;
33
- getPopupContainer: () => HTMLElement;
34
- mSlots: import("vue").Ref<{}>;
35
- isShow: import("vue").Ref<boolean>;
36
- openShow: import("vue").Ref<boolean>;
37
- };
38
- }>;
39
- UploadOutlined: import("@ant-design/icons-vue/lib/icons/UploadOutlined").UploadOutlinedIconType;
40
- LoadingOutlined: import("@ant-design/icons-vue/lib/icons/LoadingOutlined").LoadingOutlinedIconType;
41
- InboxOutlined: import("@ant-design/icons-vue/lib/icons/InboxOutlined").InboxOutlinedIconType;
2
+ declare const BmUpload: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{
3
+ uploadProps: {
4
+ type: import("vue").PropType<UploadPropsInner>;
5
+ default: () => {};
42
6
  };
43
- props: {
44
- uploadProps: {
45
- type: import("vue").PropType<UploadPropsInner>;
46
- default: () => {};
47
- };
48
- extraProps: {
49
- type: import("vue").PropType<ExtraProps>;
50
- default: () => {};
51
- };
52
- defaultList: {
53
- type: import("vue").PropType<DefaultList>;
54
- default: () => never[];
55
- };
56
- uploadRequest: {
57
- type: import("vue").PropType<UploadRequest>;
58
- default(): () => void;
59
- };
60
- cloudReadUrl: {
61
- type: import("vue").PropType<string>;
62
- default: string;
63
- };
64
- holdProgress: {
65
- type: import("vue").PropType<number>;
66
- default: number;
67
- };
68
- customErrors: {
69
- type: import("vue").PropType<CustomErrors>;
70
- default(): undefined;
71
- };
7
+ extraProps: {
8
+ type: import("vue").PropType<ExtraProps>;
9
+ default: () => {};
72
10
  };
73
- emits: string[];
74
- setup(props: any, { emit, expose }: {
75
- emit: any;
76
- expose: any;
77
- }): {
78
- uploadDisabled: import("vue").ComputedRef<boolean>;
79
- updateUploadProgress(file: any, progress: any): void;
80
- customUploadRequest(file: any): void;
81
- fileIsDelete(file: any): boolean;
82
- uploadSuccess(data: any, file: any): void;
83
- uploadError(error: any, file?: any): void;
84
- deleteFile(uid: any): Promise<void>;
85
- pictureHoverEnter(uid: string): void;
86
- pictureHoverLeave(uid: string): void;
87
- viewOnePicture(item: any): void;
88
- handleClosePictureView(): void;
89
- reUpload(e: any, uid: any): void;
90
- paste(event: ClipboardEvent): void;
91
- handleReject(e: any): void;
92
- icons: {
93
- pdf: string;
94
- ppt: string;
95
- excel: string;
96
- doc: string;
97
- others: string;
98
- };
99
- uploadBarColor: import("vue").Ref<string>;
100
- uploadedList: import("vue").Ref<any[]>;
101
- fileList: import("vue").Ref<{}>;
102
- onepViewImageHover: import("vue").Ref<{}>;
103
- previewVisible: import("vue").Ref<boolean>;
104
- onepViewImage: import("vue").Ref<{}>;
105
- extraConfigs: import("vue").Ref<{
106
- maxSize: number;
107
- maxCount: number;
108
- isAllowDownloadFieldProps: boolean;
109
- hideDisabledBtn: boolean;
110
- tips: string;
111
- showTips: boolean;
112
- btnClass: string;
113
- picClass: string;
114
- alignCenter: boolean;
115
- canNotViewAccept: string;
116
- myBtn: boolean;
117
- showFileName: boolean;
118
- drag: boolean;
119
- }>;
120
- uploadConfigs: import("vue").Ref<{
121
- multiple: boolean;
122
- showUploadList: boolean;
123
- showSlotList: boolean;
124
- listType: string;
125
- text: string;
126
- accept: string;
127
- data: {};
128
- name: string;
129
- disabled: boolean;
130
- customRequest: ({ file, fileField, data }: {
131
- file: any;
132
- fileField: any;
133
- data: any;
134
- }) => Promise<void>;
135
- }>;
136
- pictureFileTypes: import("vue").Ref<string[]>;
11
+ defaultList: {
12
+ type: import("vue").PropType<DefaultList>;
13
+ default: () => never[];
137
14
  };
138
- }>;
15
+ uploadRequest: {
16
+ type: import("vue").PropType<UploadRequest>;
17
+ default: () => () => void;
18
+ };
19
+ cloudReadUrl: {
20
+ type: import("vue").PropType<string>;
21
+ default: string;
22
+ };
23
+ holdProgress: {
24
+ type: import("vue").PropType<number>;
25
+ default: number;
26
+ };
27
+ customErrors: {
28
+ type: import("vue").PropType<CustomErrors>;
29
+ default: () => {};
30
+ };
31
+ }, {
32
+ uploadDisabled: import("vue").ComputedRef<boolean>;
33
+ updateUploadProgress(file: any, progress: any): void;
34
+ customUploadRequest(file: any): void;
35
+ fileIsDelete(file: any): boolean;
36
+ uploadSuccess(data: any, file: any): void;
37
+ uploadError(error: any, file?: any): void;
38
+ deleteFile(uid: any): Promise<void>;
39
+ pictureHoverEnter(uid: string): void;
40
+ pictureHoverLeave(uid: string): void;
41
+ viewOnePicture(item: any): void;
42
+ handleClosePictureView(): void;
43
+ reUpload(e: any, uid: any): void;
44
+ paste(event: ClipboardEvent): void;
45
+ handleReject(e: any): void;
46
+ icons: {
47
+ pdf: string;
48
+ ppt: string;
49
+ excel: string;
50
+ doc: string;
51
+ others: string;
52
+ };
53
+ uploadBarColor: import("vue").Ref<string>;
54
+ uploadedList: import("vue").Ref<any[]>;
55
+ fileList: import("vue").Ref<{}>;
56
+ onepViewImageHover: import("vue").Ref<{}>;
57
+ previewVisible: import("vue").Ref<boolean>;
58
+ onepViewImage: import("vue").Ref<{}>;
59
+ extraConfigs: import("vue").Ref<{
60
+ maxSize: number;
61
+ maxCount: number;
62
+ isAllowDownloadFieldProps: boolean;
63
+ hideDisabledBtn: boolean;
64
+ tips: string;
65
+ showTips: boolean;
66
+ btnClass: string;
67
+ picClass: string;
68
+ alignCenter: boolean;
69
+ canNotViewAccept: string;
70
+ myBtn: boolean;
71
+ showFileName: boolean;
72
+ drag: boolean;
73
+ }>;
74
+ uploadConfigs: import("vue").Ref<{
75
+ multiple: boolean;
76
+ showUploadList: boolean;
77
+ showSlotList: boolean;
78
+ listType: string;
79
+ text: string;
80
+ accept: string;
81
+ data: {};
82
+ name: string;
83
+ disabled: boolean;
84
+ customRequest: ({ file, fileField, data }: {
85
+ file: any;
86
+ fileField: any;
87
+ data: any;
88
+ }) => Promise<void>;
89
+ }>;
90
+ pictureFileTypes: import("vue").Ref<string[]>;
91
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "success" | "delete" | "update" | "previewFile" | "successFile" | "deleteFile" | "updateDisabledStatus" | "updateIsUploadingStatus")[], "error" | "success" | "delete" | "update" | "previewFile" | "successFile" | "deleteFile" | "updateDisabledStatus" | "updateIsUploadingStatus", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
92
+ uploadProps: {
93
+ type: import("vue").PropType<UploadPropsInner>;
94
+ default: () => {};
95
+ };
96
+ extraProps: {
97
+ type: import("vue").PropType<ExtraProps>;
98
+ default: () => {};
99
+ };
100
+ defaultList: {
101
+ type: import("vue").PropType<DefaultList>;
102
+ default: () => never[];
103
+ };
104
+ uploadRequest: {
105
+ type: import("vue").PropType<UploadRequest>;
106
+ default: () => () => void;
107
+ };
108
+ cloudReadUrl: {
109
+ type: import("vue").PropType<string>;
110
+ default: string;
111
+ };
112
+ holdProgress: {
113
+ type: import("vue").PropType<number>;
114
+ default: number;
115
+ };
116
+ customErrors: {
117
+ type: import("vue").PropType<CustomErrors>;
118
+ default: () => {};
119
+ };
120
+ }>> & {
121
+ onError?: ((...args: any[]) => any) | undefined;
122
+ onSuccess?: ((...args: any[]) => any) | undefined;
123
+ onDelete?: ((...args: any[]) => any) | undefined;
124
+ onUpdate?: ((...args: any[]) => any) | undefined;
125
+ onPreviewFile?: ((...args: any[]) => any) | undefined;
126
+ onSuccessFile?: ((...args: any[]) => any) | undefined;
127
+ onDeleteFile?: ((...args: any[]) => any) | undefined;
128
+ onUpdateDisabledStatus?: ((...args: any[]) => any) | undefined;
129
+ onUpdateIsUploadingStatus?: ((...args: any[]) => any) | undefined;
130
+ }, {
131
+ uploadRequest: UploadRequest;
132
+ uploadProps: UploadPropsInner;
133
+ extraProps: ExtraProps;
134
+ defaultList: DefaultList;
135
+ cloudReadUrl: string;
136
+ holdProgress: number;
137
+ customErrors: CustomErrors;
138
+ }>>;
139
139
  export { BmUpload, UploadPropsInner, ExtraProps, DefaultList, UploadRequest, CustomErrors, };
140
140
  export type { UploadProps };
141
141
  export default BmUpload;
@@ -14,7 +14,7 @@ var _export_sfc = (sfc, props) => {
14
14
  return target;
15
15
  };
16
16
 
17
- const _sfc_main$1 = {
17
+ const _sfc_main$1 = vue.defineComponent({
18
18
  name: "BmOverTooltips",
19
19
  props: {
20
20
  title: {
@@ -99,15 +99,15 @@ const _sfc_main$1 = {
99
99
  getPopupContainer
100
100
  };
101
101
  }
102
- };
102
+ });
103
103
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
104
104
  const _component_a_tooltip = vue.resolveComponent("a-tooltip");
105
105
  return vue.openBlock(), vue.createBlock(_component_a_tooltip, {
106
106
  visible: _ctx.isShow,
107
107
  "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.isShow = $event),
108
- title: $props.labelTitle || $props.title,
109
- "get-popup-container": $setup.getPopupContainer,
110
- onVisibleChange: $setup.handleVisibleChange
108
+ title: _ctx.labelTitle || _ctx.title,
109
+ "get-popup-container": _ctx.getPopupContainer,
110
+ onVisibleChange: _ctx.handleVisibleChange
111
111
  }, {
112
112
  title: vue.withCtx(() => [
113
113
  vue.renderSlot(_ctx.$slots, "title")
@@ -116,14 +116,14 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
116
116
  vue.createElementVNode("div", {
117
117
  ref: "mySelf",
118
118
  style: vue.normalizeStyle({
119
- width: $props.width ? $props.width + "px" : "100%",
120
- WebkitLineClamp: $props.line
119
+ width: _ctx.width ? _ctx.width + "px" : "100%",
120
+ WebkitLineClamp: _ctx.line
121
121
  }),
122
- class: vue.normalizeClass($props.line === 1 ? `bm-over-tooltip` : `bm-over-tooltip-multi`)
122
+ class: vue.normalizeClass(_ctx.line === 1 ? `bm-over-tooltip` : `bm-over-tooltip-multi`)
123
123
  }, [
124
124
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
125
125
  vue.renderSlot(_ctx.$slots, "title", {}, () => [
126
- vue.createTextVNode(vue.toDisplayString($props.title), 1)
126
+ vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
127
127
  ])
128
128
  ])
129
129
  ], 6)
@@ -170,7 +170,7 @@ var icons = {
170
170
  };
171
171
 
172
172
  const CLOUND_PRE = "/cloudStorage/read";
173
- const _sfc_main = {
173
+ const _sfc_main = vue.defineComponent({
174
174
  name: "BmUpload",
175
175
  components: {
176
176
  PlusOutlined: iconsVue.PlusOutlined,
@@ -198,7 +198,7 @@ const _sfc_main = {
198
198
  },
199
199
  uploadRequest: {
200
200
  type: Function,
201
- default() {
201
+ default: () => {
202
202
  return () => {
203
203
  };
204
204
  }
@@ -213,8 +213,8 @@ const _sfc_main = {
213
213
  },
214
214
  customErrors: {
215
215
  type: Object,
216
- default() {
217
- return void 0;
216
+ default: () => {
217
+ return {};
218
218
  }
219
219
  }
220
220
  },
@@ -497,7 +497,7 @@ const _sfc_main = {
497
497
  });
498
498
  list.forEach(function(item) {
499
499
  let uid = item.uid || utils.getuid();
500
- if (!item.url.includes("http") && !item.url.includes(CLOUND_PRE))
500
+ if (!item.url?.includes("http") && !item.url?.includes(CLOUND_PRE))
501
501
  item.url = props.cloudReadUrl + item.url;
502
502
  state.fileList[uid] = {
503
503
  uid,
@@ -580,7 +580,7 @@ const _sfc_main = {
580
580
  uploadDisabled
581
581
  };
582
582
  }
583
- };
583
+ });
584
584
  const _hoisted_1 = {
585
585
  key: 0,
586
586
  class: "bm-upload__picture-progress"
@@ -665,7 +665,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
665
665
  "bm-upload--text": _ctx.uploadConfigs.listType === "text",
666
666
  "bm-upload--drag": _ctx.extraConfigs.drag,
667
667
  "bm-upload--picture-card": _ctx.uploadConfigs.listType === "picture-card",
668
- "bm-upload--picture-card--has-tips": !($setup.uploadDisabled && _ctx.extraConfigs?.hideDisabledBtn) && !_ctx.extraConfigs.myBtn && _ctx.uploadConfigs.listType === "picture-card" && _ctx.extraConfigs.tips && _ctx.extraConfigs.showTips
668
+ "bm-upload--picture-card--has-tips": !(_ctx.uploadDisabled && _ctx.extraConfigs?.hideDisabledBtn) && !_ctx.extraConfigs.myBtn && _ctx.uploadConfigs.listType === "picture-card" && _ctx.extraConfigs.tips && _ctx.extraConfigs.showTips
669
669
  }])
670
670
  }, [
671
671
  _ctx.uploadConfigs.listType === "picture-card" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
@@ -702,7 +702,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
702
702
  ["pdf", "PDF", "application/pdf"].includes(item.type) ? (vue.openBlock(), vue.createElementBlock("img", {
703
703
  key: 0,
704
704
  class: "bm-upload__picture-result__image",
705
- src: $setup.icons.pdf,
705
+ src: _ctx.icons.pdf,
706
706
  alt: "\u56FE\u7247"
707
707
  }, null, 8, _hoisted_4)) : [
708
708
  "xlsx",
@@ -711,7 +711,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
711
711
  ].includes(item.type) ? (vue.openBlock(), vue.createElementBlock("img", {
712
712
  key: 1,
713
713
  class: "bm-upload__picture-result__image",
714
- src: $setup.icons.excel,
714
+ src: _ctx.icons.excel,
715
715
  alt: "\u56FE\u7247"
716
716
  }, null, 8, _hoisted_5)) : [
717
717
  "ppt",
@@ -723,7 +723,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
723
723
  ].includes(item.type) ? (vue.openBlock(), vue.createElementBlock("img", {
724
724
  key: 2,
725
725
  class: "bm-upload__picture-result__image",
726
- src: $setup.icons.ppt,
726
+ src: _ctx.icons.ppt,
727
727
  alt: "\u56FE\u7247"
728
728
  }, null, 8, _hoisted_6)) : [
729
729
  "doc",
@@ -735,7 +735,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
735
735
  ].includes(item.type) ? (vue.openBlock(), vue.createElementBlock("img", {
736
736
  key: 3,
737
737
  class: "bm-upload__picture-result__image",
738
- src: $setup.icons.doc,
738
+ src: _ctx.icons.doc,
739
739
  alt: "\u56FE\u7247"
740
740
  }, null, 8, _hoisted_7)) : _ctx.pictureFileTypes.includes(item.type) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 4 }, [
741
741
  item.url ? (vue.openBlock(), vue.createBlock(_component_a_image, {
@@ -747,7 +747,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
747
747
  ], 64)) : (vue.openBlock(), vue.createElementBlock("img", {
748
748
  key: 5,
749
749
  class: "bm-upload__picture-result__image",
750
- src: $setup.icons.others,
750
+ src: _ctx.icons.others,
751
751
  alt: "\u56FE\u7247"
752
752
  }, null, 8, _hoisted_8)),
753
753
  _ctx.onepViewImageHover[item.uid] ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -804,9 +804,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
804
804
  }), 128)),
805
805
  vue.createCommentVNode(" </a-image-preview-group> ")
806
806
  ], 64)) : vue.createCommentVNode("v-if", true),
807
- !($setup.uploadDisabled && _ctx.extraConfigs?.hideDisabledBtn) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_18, [
807
+ !(_ctx.uploadDisabled && _ctx.extraConfigs?.hideDisabledBtn) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_18, [
808
808
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.extraConfigs.drag ? "a-upload-dragger" : "a-upload"), vue.mergeProps(_ctx.uploadConfigs, {
809
- disabled: $setup.uploadDisabled,
809
+ disabled: _ctx.uploadDisabled,
810
810
  class: { "bm--upload__custom-button": _ctx.extraConfigs.myBtn },
811
811
  onReject: _ctx.handleReject
812
812
  }), {
@@ -823,7 +823,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
823
823
  ])) : _ctx.uploadConfigs.listType === "text" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_25, [
824
824
  vue.createVNode(_component_a_button, {
825
825
  class: vue.normalizeClass(_ctx.extraConfigs.btnClass),
826
- disabled: $setup.uploadDisabled
826
+ disabled: _ctx.uploadDisabled
827
827
  }, {
828
828
  default: vue.withCtx(() => [
829
829
  vue.createVNode(_component_UploadOutlined),