bm-admin-ui 1.2.45-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 (69) 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/cascader/index.js +77 -77
  5. package/es/components/edit-form/index.d.ts +54 -31
  6. package/es/components/edit-form/index.js +1 -1
  7. package/es/components/edit-form/src/edit-form.vue.d.ts +54 -31
  8. package/es/components/editor/index.d.ts +134 -134
  9. package/es/components/editor/index.js +25 -25
  10. package/es/components/editor/src/editor.vue.d.ts +134 -134
  11. package/es/components/float-table/index.d.ts +136 -62
  12. package/es/components/float-table/index.js +8 -8
  13. package/es/components/float-table/src/float-table.vue.d.ts +136 -62
  14. package/es/components/flow-designer/index.js +1 -1
  15. package/es/components/form-create/index.js +127 -25
  16. package/es/components/over-tooltips/index.d.ts +56 -33
  17. package/es/components/over-tooltips/index.js +10 -10
  18. package/es/components/over-tooltips/src/over-tooltips.vue.d.ts +56 -33
  19. package/es/components/staffs-selector/index.d.ts +4 -4
  20. package/es/components/staffs-selector/src/departmentCmp.vue.d.ts +2 -2
  21. package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
  22. package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +4 -4
  23. package/es/components/upload/index.d.ts +134 -134
  24. package/es/components/upload/index.js +25 -25
  25. package/es/components/upload/src/upload.vue.d.ts +134 -134
  26. package/lib/components/attachment/index.d.ts +54 -31
  27. package/lib/components/attachment/index.js +9 -9
  28. package/lib/components/attachment/src/attachment.vue.d.ts +54 -31
  29. package/lib/components/cascader/index.js +77 -77
  30. package/lib/components/edit-form/index.d.ts +54 -31
  31. package/lib/components/edit-form/index.js +1 -1
  32. package/lib/components/edit-form/src/edit-form.vue.d.ts +54 -31
  33. package/lib/components/editor/index.d.ts +134 -134
  34. package/lib/components/editor/index.js +24 -24
  35. package/lib/components/editor/src/editor.vue.d.ts +134 -134
  36. package/lib/components/float-table/index.d.ts +136 -62
  37. package/lib/components/float-table/index.js +7 -7
  38. package/lib/components/float-table/src/float-table.vue.d.ts +136 -62
  39. package/lib/components/flow-designer/index.js +1 -1
  40. package/lib/components/form-create/index.js +126 -24
  41. package/lib/components/over-tooltips/index.d.ts +56 -33
  42. package/lib/components/over-tooltips/index.js +9 -9
  43. package/lib/components/over-tooltips/src/over-tooltips.vue.d.ts +56 -33
  44. package/lib/components/staffs-selector/index.d.ts +4 -4
  45. package/lib/components/staffs-selector/src/departmentCmp.vue.d.ts +2 -2
  46. package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
  47. package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +4 -4
  48. package/lib/components/upload/index.d.ts +134 -134
  49. package/lib/components/upload/index.js +24 -24
  50. package/lib/components/upload/src/upload.vue.d.ts +134 -134
  51. package/package.json +34 -34
  52. package/theme-chalk/form-create.css +1 -1
  53. package/theme-chalk/index.css +1 -1
  54. package/types/components/attachment/index.d.ts +54 -31
  55. package/types/components/attachment/src/attachment.vue.d.ts +54 -31
  56. package/types/components/edit-form/index.d.ts +54 -31
  57. package/types/components/edit-form/src/edit-form.vue.d.ts +54 -31
  58. package/types/components/editor/index.d.ts +134 -134
  59. package/types/components/editor/src/editor.vue.d.ts +134 -134
  60. package/types/components/float-table/index.d.ts +136 -62
  61. package/types/components/float-table/src/float-table.vue.d.ts +136 -62
  62. package/types/components/over-tooltips/index.d.ts +56 -33
  63. package/types/components/over-tooltips/src/over-tooltips.vue.d.ts +56 -33
  64. package/types/components/staffs-selector/index.d.ts +4 -4
  65. package/types/components/staffs-selector/src/departmentCmp.vue.d.ts +2 -2
  66. package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
  67. package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +4 -4
  68. package/types/components/upload/index.d.ts +134 -134
  69. package/types/components/upload/src/upload.vue.d.ts +134 -134
@@ -1,139 +1,139 @@
1
1
  import type { PropType } from 'vue';
2
- declare const _default: {
3
- name: string;
4
- components: {
5
- PlusOutlined: import("@ant-design/icons-vue/lib/icons/PlusOutlined").PlusOutlinedIconType;
6
- OverTooltips: import("../../../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 _default: import("vue").DefineComponent<{
3
+ uploadProps: {
4
+ type: PropType<import("./props").UploadPropsInner>;
5
+ default: () => {};
42
6
  };
43
- props: {
44
- uploadProps: {
45
- type: PropType<import("./props").UploadPropsInner>;
46
- default: () => {};
47
- };
48
- extraProps: {
49
- type: PropType<import("./props").ExtraProps>;
50
- default: () => {};
51
- };
52
- defaultList: {
53
- type: PropType<import("./props").DefaultList>;
54
- default: () => never[];
55
- };
56
- uploadRequest: {
57
- type: PropType<import("./props").UploadRequest>;
58
- default(): () => void;
59
- };
60
- cloudReadUrl: {
61
- type: PropType<string>;
62
- default: string;
63
- };
64
- holdProgress: {
65
- type: PropType<number>;
66
- default: number;
67
- };
68
- customErrors: {
69
- type: PropType<import("./props").CustomErrors>;
70
- default(): undefined;
71
- };
7
+ extraProps: {
8
+ type: PropType<import("./props").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: PropType<import("./props").DefaultList>;
13
+ default: () => never[];
137
14
  };
138
- };
15
+ uploadRequest: {
16
+ type: PropType<import("./props").UploadRequest>;
17
+ default: () => () => void;
18
+ };
19
+ cloudReadUrl: {
20
+ type: PropType<string>;
21
+ default: string;
22
+ };
23
+ holdProgress: {
24
+ type: PropType<number>;
25
+ default: number;
26
+ };
27
+ customErrors: {
28
+ type: PropType<import("./props").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: PropType<import("./props").UploadPropsInner>;
94
+ default: () => {};
95
+ };
96
+ extraProps: {
97
+ type: PropType<import("./props").ExtraProps>;
98
+ default: () => {};
99
+ };
100
+ defaultList: {
101
+ type: PropType<import("./props").DefaultList>;
102
+ default: () => never[];
103
+ };
104
+ uploadRequest: {
105
+ type: PropType<import("./props").UploadRequest>;
106
+ default: () => () => void;
107
+ };
108
+ cloudReadUrl: {
109
+ type: PropType<string>;
110
+ default: string;
111
+ };
112
+ holdProgress: {
113
+ type: PropType<number>;
114
+ default: number;
115
+ };
116
+ customErrors: {
117
+ type: PropType<import("./props").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: import("./props").UploadRequest;
132
+ uploadProps: import("./props").UploadPropsInner;
133
+ extraProps: import("./props").ExtraProps;
134
+ defaultList: import("./props").DefaultList;
135
+ cloudReadUrl: string;
136
+ holdProgress: number;
137
+ customErrors: import("./props").CustomErrors;
138
+ }>;
139
139
  export default _default;
@@ -20,39 +20,62 @@ declare const BmAttachment: import("bm-admin-ui/es/utils/with-install").SFCWithI
20
20
  setVisible: (value: any) => void;
21
21
  preview: (item: any) => false | undefined;
22
22
  download: (item: any) => void;
23
- BmOverTooltips: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<{
24
- name: string;
25
- props: {
26
- title: {
27
- type: StringConstructor;
28
- default: undefined;
29
- };
30
- labelTitle: {
31
- type: StringConstructor;
32
- default: undefined;
33
- };
34
- line: {
35
- type: NumberConstructor;
36
- default: number;
37
- };
38
- width: {
39
- type: (StringConstructor | NumberConstructor)[];
40
- default: number;
41
- };
42
- showAlways: {
43
- type: BooleanConstructor;
44
- default: boolean;
45
- };
23
+ BmOverTooltips: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{
24
+ title: {
25
+ type: StringConstructor;
26
+ default: undefined;
46
27
  };
47
- setup(props: any, context: any): {
48
- mySelf: import("vue").Ref<any>;
49
- handleVisibleChange: (val: any) => void;
50
- getPopupContainer: () => HTMLElement;
51
- mSlots: import("vue").Ref<{}>;
52
- isShow: import("vue").Ref<boolean>;
53
- openShow: import("vue").Ref<boolean>;
28
+ labelTitle: {
29
+ type: StringConstructor;
30
+ default: undefined;
54
31
  };
55
- }>;
32
+ line: {
33
+ type: NumberConstructor;
34
+ default: number;
35
+ };
36
+ width: {
37
+ type: (StringConstructor | NumberConstructor)[];
38
+ default: number;
39
+ };
40
+ showAlways: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ }, {
45
+ mySelf: import("vue").Ref<any>;
46
+ handleVisibleChange: (val: any) => void;
47
+ getPopupContainer: () => HTMLElement;
48
+ mSlots: import("vue").Ref<{}>;
49
+ isShow: import("vue").Ref<boolean>;
50
+ openShow: import("vue").Ref<boolean>;
51
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
52
+ title: {
53
+ type: StringConstructor;
54
+ default: undefined;
55
+ };
56
+ labelTitle: {
57
+ type: StringConstructor;
58
+ default: undefined;
59
+ };
60
+ line: {
61
+ type: NumberConstructor;
62
+ default: number;
63
+ };
64
+ width: {
65
+ type: (StringConstructor | NumberConstructor)[];
66
+ default: number;
67
+ };
68
+ showAlways: {
69
+ type: BooleanConstructor;
70
+ default: boolean;
71
+ };
72
+ }>>, {
73
+ title: string;
74
+ width: string | number;
75
+ labelTitle: string;
76
+ line: number;
77
+ showAlways: boolean;
78
+ }>>;
56
79
  DownloadOutlined: import("@ant-design/icons-vue/lib/icons/DownloadOutlined").DownloadOutlinedIconType;
57
80
  EyeOutlined: import("@ant-design/icons-vue/lib/icons/EyeOutlined").EyeOutlinedIconType;
58
81
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("preview" | "download")[], "preview" | "download", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -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(_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(_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)
@@ -20,39 +20,62 @@ declare const _default: import("vue").DefineComponent<{
20
20
  setVisible: (value: any) => void;
21
21
  preview: (item: any) => false | undefined;
22
22
  download: (item: any) => void;
23
- BmOverTooltips: import("../../../utils/with-install").SFCWithInstall<{
24
- name: string;
25
- props: {
26
- title: {
27
- type: StringConstructor;
28
- default: undefined;
29
- };
30
- labelTitle: {
31
- type: StringConstructor;
32
- default: undefined;
33
- };
34
- line: {
35
- type: NumberConstructor;
36
- default: number;
37
- };
38
- width: {
39
- type: (StringConstructor | NumberConstructor)[];
40
- default: number;
41
- };
42
- showAlways: {
43
- type: BooleanConstructor;
44
- default: boolean;
45
- };
23
+ BmOverTooltips: import("../../../utils/with-install").SFCWithInstall<import("vue").DefineComponent<{
24
+ title: {
25
+ type: StringConstructor;
26
+ default: undefined;
46
27
  };
47
- setup(props: any, context: any): {
48
- mySelf: import("vue").Ref<any>;
49
- handleVisibleChange: (val: any) => void;
50
- getPopupContainer: () => HTMLElement;
51
- mSlots: import("vue").Ref<{}>;
52
- isShow: import("vue").Ref<boolean>;
53
- openShow: import("vue").Ref<boolean>;
28
+ labelTitle: {
29
+ type: StringConstructor;
30
+ default: undefined;
54
31
  };
55
- }>;
32
+ line: {
33
+ type: NumberConstructor;
34
+ default: number;
35
+ };
36
+ width: {
37
+ type: (StringConstructor | NumberConstructor)[];
38
+ default: number;
39
+ };
40
+ showAlways: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ }, {
45
+ mySelf: import("vue").Ref<any>;
46
+ handleVisibleChange: (val: any) => void;
47
+ getPopupContainer: () => HTMLElement;
48
+ mSlots: import("vue").Ref<{}>;
49
+ isShow: import("vue").Ref<boolean>;
50
+ openShow: import("vue").Ref<boolean>;
51
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
52
+ title: {
53
+ type: StringConstructor;
54
+ default: undefined;
55
+ };
56
+ labelTitle: {
57
+ type: StringConstructor;
58
+ default: undefined;
59
+ };
60
+ line: {
61
+ type: NumberConstructor;
62
+ default: number;
63
+ };
64
+ width: {
65
+ type: (StringConstructor | NumberConstructor)[];
66
+ default: number;
67
+ };
68
+ showAlways: {
69
+ type: BooleanConstructor;
70
+ default: boolean;
71
+ };
72
+ }>>, {
73
+ title: string;
74
+ width: string | number;
75
+ labelTitle: string;
76
+ line: number;
77
+ showAlways: boolean;
78
+ }>>;
56
79
  DownloadOutlined: import("@ant-design/icons-vue/lib/icons/DownloadOutlined").DownloadOutlinedIconType;
57
80
  EyeOutlined: import("@ant-design/icons-vue/lib/icons/EyeOutlined").EyeOutlinedIconType;
58
81
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("preview" | "download")[], "preview" | "download", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -14,71 +14,71 @@ var _export_sfc = (sfc, props) => {
14
14
  return target;
15
15
  };
16
16
 
17
- const _sfc_main = vue.defineComponent({
18
- name: 'BmCascader',
19
- components: { DownOutlined: iconsVue.DownOutlined },
20
- props: {
21
- tipType: {
22
- type: String,
23
- default: () => {
24
- return 'none'
25
- },
26
- },
27
- width: {
28
- type: Number,
29
- default: () => {
30
- return 200
31
- },
32
- },
33
- },
34
- setup(props, { emit, attrs }) {
35
- const nameArr = (arr) => {
36
- return arr.reduce(
37
- (acc, cur) => acc.concat(Array.isArray(cur) ? nameArr(cur) : cur),
38
- []
39
- )
40
- };
41
- const state = vue.reactive({
42
- labelNameList: '',
43
- visible: false,
44
- });
45
- const methods = {
46
- onmouseover() {
47
- state.labelNameList.length && (state.visible = true);
48
- },
49
- onmouseout() {
50
- state.labelNameList.length && (state.visible = false);
51
- },
52
- onchange(value, selectedOptions) {
53
- if (attrs.multiple === '' || attrs.multiple) {
54
- let res = selectedOptions.map((v, k) => {
55
- return v.map((e, i) => {
56
- return e.label
57
- })
58
- });
59
- state.labelNameList = nameArr(res).join(',');
60
- }
61
- },
62
- };
63
- vue.watch(
64
- () => state.labelNameList.length,
65
- (val) => {
66
- if (!val) {
67
- state.visible = false;
68
- }
69
- },
70
- { deep: true }
71
- );
72
- vue.onMounted(() => {
73
- attrs.value?.length &&
74
- (state.labelNameList = nameArr(attrs.value).join(','));
75
- });
76
- return {
77
- ...vue.toRefs(state),
78
- ...methods,
79
- }
80
- },
81
- });
17
+ const _sfc_main = vue.defineComponent({
18
+ name: 'BmCascader',
19
+ components: { DownOutlined: iconsVue.DownOutlined },
20
+ props: {
21
+ tipType: {
22
+ type: String,
23
+ default: () => {
24
+ return 'none'
25
+ },
26
+ },
27
+ width: {
28
+ type: Number,
29
+ default: () => {
30
+ return 200
31
+ },
32
+ },
33
+ },
34
+ setup(props, { emit, attrs }) {
35
+ const nameArr = (arr) => {
36
+ return arr.reduce(
37
+ (acc, cur) => acc.concat(Array.isArray(cur) ? nameArr(cur) : cur),
38
+ []
39
+ )
40
+ };
41
+ const state = vue.reactive({
42
+ labelNameList: '',
43
+ visible: false,
44
+ });
45
+ const methods = {
46
+ onmouseover() {
47
+ state.labelNameList.length && (state.visible = true);
48
+ },
49
+ onmouseout() {
50
+ state.labelNameList.length && (state.visible = false);
51
+ },
52
+ onchange(value, selectedOptions) {
53
+ if (attrs.multiple === '' || attrs.multiple) {
54
+ let res = selectedOptions.map((v, k) => {
55
+ return v.map((e, i) => {
56
+ return e.label
57
+ })
58
+ });
59
+ state.labelNameList = nameArr(res).join(',');
60
+ }
61
+ },
62
+ };
63
+ vue.watch(
64
+ () => state.labelNameList.length,
65
+ (val) => {
66
+ if (!val) {
67
+ state.visible = false;
68
+ }
69
+ },
70
+ { deep: true }
71
+ );
72
+ vue.onMounted(() => {
73
+ attrs.value?.length &&
74
+ (state.labelNameList = nameArr(attrs.value).join(','));
75
+ });
76
+ return {
77
+ ...vue.toRefs(state),
78
+ ...methods,
79
+ }
80
+ },
81
+ });
82
82
 
83
83
  const _hoisted_1 = {
84
84
  ref: "BmCascader",
@@ -99,18 +99,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
99
99
  ? (vue.openBlock(), vue.createBlock(_component_a_popover, {
100
100
  key: 0,
101
101
  visible: _ctx.visible,
102
- "get-popup-container":
103
- (triggerNode) => {
104
- return triggerNode.parentNode
105
- }
102
+ "get-popup-container":
103
+ (triggerNode) => {
104
+ return triggerNode.parentNode
105
+ }
106
106
 
107
107
  }, vue.createSlots({
108
108
  default: vue.withCtx(() => [
109
109
  vue.createVNode(_component_a_cascader, vue.mergeProps(_ctx.$attrs, {
110
- style: {
111
- width:
112
- _ctx.$attrs.multiple === '' || _ctx.$attrs.multiple ? _ctx.width + 'px' : 'auto',
113
- minWidth: _ctx.width + 'px',
110
+ style: {
111
+ width:
112
+ _ctx.$attrs.multiple === '' || _ctx.$attrs.multiple ? _ctx.width + 'px' : 'auto',
113
+ minWidth: _ctx.width + 'px',
114
114
  },
115
115
  "show-arrow": true,
116
116
  onMouseover: _ctx.onmouseover,
@@ -163,10 +163,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
163
163
  }, vue.createSlots({
164
164
  default: vue.withCtx(() => [
165
165
  vue.createVNode(_component_a_cascader, vue.mergeProps(_ctx.$attrs, {
166
- style: {
167
- width:
168
- _ctx.$attrs.multiple === '' || _ctx.$attrs.multiple ? _ctx.width + 'px' : 'auto',
169
- minWidth: _ctx.width + 'px',
166
+ style: {
167
+ width:
168
+ _ctx.$attrs.multiple === '' || _ctx.$attrs.multiple ? _ctx.width + 'px' : 'auto',
169
+ minWidth: _ctx.width + 'px',
170
170
  },
171
171
  "show-arrow": true,
172
172
  onMouseover: _ctx.onmouseover,