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,69 +1,143 @@
1
- declare const _default: {
2
- name: string;
3
- props: {
4
- config: {
5
- type: ObjectConstructor;
6
- required: boolean;
7
- default: () => {};
8
- };
9
- pagerProps: {
10
- type: ObjectConstructor;
11
- default: () => {};
1
+ declare const _default: import("vue").DefineComponent<{
2
+ config: {
3
+ type: ObjectConstructor;
4
+ required: true;
5
+ default: () => {};
6
+ };
7
+ pagerProps: {
8
+ type: ObjectConstructor;
9
+ default: () => {};
10
+ };
11
+ events: {
12
+ type: ObjectConstructor;
13
+ default: () => {};
14
+ };
15
+ isNeedFloatHandle: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ size: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ }, {
24
+ setItemRef(el: any, column: any, rowid: any): void;
25
+ leaveFloatTable(): void;
26
+ scrollTo(config?: {}): void;
27
+ pageNoChange(val: any): Promise<void>;
28
+ pageSizeChange(val: any, size: any): Promise<void>;
29
+ floatMouseLeave(): void;
30
+ floatOverMouse(): void;
31
+ goAnimationEndFn(): void;
32
+ scrollNotShowFloat(): void;
33
+ classes: import("vue").ComputedRef<(string | {
34
+ floatHandleTable: any;
35
+ })[]>;
36
+ gridOptions: import("vue").ComputedRef<{
37
+ resizable: boolean;
38
+ rowDragAble: boolean;
39
+ border: string;
40
+ highlightHoverRow: boolean;
41
+ showOverflow: boolean;
42
+ showHeaderOverflow: boolean;
43
+ align: null;
44
+ columns: never[];
45
+ tooltipConfig: {
46
+ leaveDelay: number;
12
47
  };
13
- events: {
14
- type: ObjectConstructor;
15
- default: () => {};
48
+ data: never[];
49
+ pagerConfig: {};
50
+ emptyText: string;
51
+ checkboxConfig: {
52
+ reserve: boolean;
53
+ highlight: any;
54
+ trigger: string;
16
55
  };
17
- isNeedFloatHandle: {
18
- type: BooleanConstructor;
19
- default: boolean;
56
+ columnConfig: {
57
+ useKey: boolean;
20
58
  };
21
- size: {
22
- type: StringConstructor;
23
- default: string;
59
+ rowClassName: string;
60
+ sortConfig: {
61
+ trigger: string;
62
+ orders: (string | null)[];
24
63
  };
64
+ }>;
65
+ gridEvents: import("vue").ComputedRef<{
66
+ cellMouseenter?: ((e: any) => void) | undefined;
67
+ scroll?: ((e: any) => void) | undefined;
68
+ cellMouseleave?: ((e: any) => void) | undefined;
69
+ radioChange: (val: any) => void;
70
+ checkboxChange: (val: any) => void;
71
+ checkboxAll: (val: any) => void;
72
+ cellClick: (data: any) => void;
73
+ }>;
74
+ pager: import("vue").ComputedRef<{
75
+ size: string;
76
+ showTotal: (total: any) => string;
77
+ showQuickJumper: boolean;
78
+ showSizeChanger: boolean;
79
+ current: number;
80
+ pageSize: number;
81
+ total: number;
82
+ hideOnSinglePage: boolean;
83
+ pageSizeOptions: string[];
84
+ }>;
85
+ simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
86
+ [key: string]: any;
87
+ }> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
88
+ [key: string]: any;
89
+ }> | null | undefined)[]>;
90
+ floatRefsId: import("vue").Ref<{}>;
91
+ floatId: import("vue").Ref<string>;
92
+ isShowFloatHandle: import("vue").Ref<boolean>;
93
+ atVisible: import("vue").Ref<boolean>;
94
+ goAnimationEnd: import("vue").Ref<boolean>;
95
+ floatPosition: import("vue").Ref<{
96
+ top: string;
97
+ height: string;
98
+ }>;
99
+ trNodes: import("vue").Ref<any>;
100
+ isInScroll: import("vue").Ref<boolean>;
101
+ inMaxScrollX: import("vue").Ref<boolean>;
102
+ floatRow: import("vue").Ref<{}>;
103
+ floatRowIndex: import("vue").Ref<undefined>;
104
+ floatHandleDomCol: import("vue").Ref<any>;
105
+ floatTable: import("vue").Ref<any>;
106
+ xGrid: import("vue").Ref<any>;
107
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("radioChange" | "checkboxChange" | "checkboxChangeAll" | "cellClick" | "pageChange" | "pageSizeChange")[], "radioChange" | "checkboxChange" | "checkboxChangeAll" | "cellClick" | "pageChange" | "pageSizeChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
108
+ config: {
109
+ type: ObjectConstructor;
110
+ required: true;
111
+ default: () => {};
112
+ };
113
+ pagerProps: {
114
+ type: ObjectConstructor;
115
+ default: () => {};
116
+ };
117
+ events: {
118
+ type: ObjectConstructor;
119
+ default: () => {};
120
+ };
121
+ isNeedFloatHandle: {
122
+ type: BooleanConstructor;
123
+ default: boolean;
25
124
  };
26
- emits: string[];
27
- setup(props: any, { emit }: {
28
- emit: any;
29
- }): {
30
- setItemRef(el: any, column: any, rowid: any): void;
31
- leaveFloatTable(): void;
32
- scrollTo(config?: {}): void;
33
- pageNoChange(val: any): Promise<void>;
34
- pageSizeChange(val: any, size: any): Promise<void>;
35
- floatMouseLeave(): void;
36
- floatOverMouse(): void;
37
- goAnimationEndFn(): void;
38
- scrollNotShowFloat(): void;
39
- classes: import("vue").ComputedRef<(string | {
40
- floatHandleTable: any;
41
- })[]>;
42
- gridOptions: import("vue").ComputedRef<any>;
43
- gridEvents: import("vue").ComputedRef<any>;
44
- pager: import("vue").ComputedRef<any>;
45
- simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
- [key: string]: any;
47
- }> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
48
- [key: string]: any;
49
- }> | null | undefined)[]>;
50
- floatRefsId: import("vue").Ref<{}>;
51
- floatId: import("vue").Ref<string>;
52
- isShowFloatHandle: import("vue").Ref<boolean>;
53
- atVisible: import("vue").Ref<boolean>;
54
- goAnimationEnd: import("vue").Ref<boolean>;
55
- floatPosition: import("vue").Ref<{
56
- top: string;
57
- height: string;
58
- }>;
59
- trNodes: import("vue").Ref<any>;
60
- isInScroll: import("vue").Ref<boolean>;
61
- inMaxScrollX: import("vue").Ref<boolean>;
62
- floatRow: import("vue").Ref<{}>;
63
- floatRowIndex: import("vue").Ref<undefined>;
64
- floatHandleDomCol: import("vue").Ref<any>;
65
- floatTable: import("vue").Ref<any>;
66
- xGrid: import("vue").Ref<any>;
125
+ size: {
126
+ type: StringConstructor;
127
+ default: string;
67
128
  };
68
- };
129
+ }>> & {
130
+ onRadioChange?: ((...args: any[]) => any) | undefined;
131
+ onCheckboxChange?: ((...args: any[]) => any) | undefined;
132
+ onCheckboxChangeAll?: ((...args: any[]) => any) | undefined;
133
+ onCellClick?: ((...args: any[]) => any) | undefined;
134
+ onPageChange?: ((...args: any[]) => any) | undefined;
135
+ onPageSizeChange?: ((...args: any[]) => any) | undefined;
136
+ }, {
137
+ size: string;
138
+ config: Record<string, any>;
139
+ pagerProps: Record<string, any>;
140
+ events: Record<string, any>;
141
+ isNeedFloatHandle: boolean;
142
+ }>;
69
143
  export default _default;
@@ -276,7 +276,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
276
276
  createElementVNode("span", {
277
277
  class: normalizeClass(["opeator", { active: __props.isCustom }])
278
278
  }, [
279
- createCommentVNode(' <CopyOutlined\r\n @click.stop="\r\n () => {\r\n copyCallback()\r\n }\r\n " />&nbsp;\u6682\u65F6\u5173\u95ED\u590D\u5236\u8282\u70B9 '),
279
+ createCommentVNode(' <CopyOutlined\n @click.stop="\n () => {\n copyCallback()\n }\n " />&nbsp;\u6682\u65F6\u5173\u95ED\u590D\u5236\u8282\u70B9 '),
280
280
  createVNode(unref(CloseOutlined), {
281
281
  onClick: _cache[0] || (_cache[0] = withModifiers(
282
282
  () => {
@@ -1,5 +1,5 @@
1
1
  import { withInstall } from 'bm-admin-ui/es/utils/with-install';
2
- import { h, defineComponent, computed, openBlock, createBlock, unref, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, nextTick, ref, createVNode, normalizeStyle, withModifiers, createElementVNode, createCommentVNode, normalizeClass, reactive, watch, createSlots, inject, onUnmounted, createStaticVNode, provide, resolveComponent } from 'vue';
2
+ import { h, defineComponent, computed, openBlock, createBlock, unref, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, nextTick, ref, createVNode, normalizeStyle, withModifiers, createElementVNode, createCommentVNode, normalizeClass, reactive, watch, resolveComponent, createSlots, inject, onUnmounted, createStaticVNode, provide } from 'vue';
3
3
  import { Input, InputNumber, RadioGroup, Radio, Select, DatePicker, RangePicker, message, Modal, Layout, LayoutSider, Tree, LayoutContent, Button, Row, Col, Pagination, FormItemRest, Divider, Image, Tabs, TabPane, Cascader } from 'ant-design-vue';
4
4
  import dayjs from 'dayjs';
5
5
  import Picture from 'bm-admin-ui/es/components/upload';
@@ -18766,7 +18766,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
18766
18766
  debounceFetch("");
18767
18767
  return (_ctx, _cache) => {
18768
18768
  return openBlock(), createElementBlock(Fragment, null, [
18769
- createCommentVNode(' <Input\r\n v-model:value="inputValue"\r\n placeholder="\u8BF7\u8F93\u5165"\r\n :disabled="disabled"\r\n @change="debounceFn($event.target.value)"\r\n ></Input> '),
18769
+ createCommentVNode(' <Input\n v-model:value="inputValue"\n placeholder="\u8BF7\u8F93\u5165"\n :disabled="disabled"\n @change="debounceFn($event.target.value)"\n ></Input> '),
18770
18770
  createVNode(unref(Select), {
18771
18771
  value: __props.value,
18772
18772
  placeholder: "\u8BF7\u9009\u62E9",
@@ -26568,6 +26568,11 @@ const _hoisted_6$3 = {
26568
26568
  class: "bm-dc-table-widget__top-bar"
26569
26569
  };
26570
26570
  const _hoisted_7$3 = { class: "bm-dc-table-widget__table" };
26571
+ const _hoisted_8$2 = { class: "bm-confirm-modal-content" };
26572
+ const _hoisted_9$2 = { class: "bm-confirm-modal-icon" };
26573
+ const _hoisted_10$2 = { class: "bm-confirm-modal-body" };
26574
+ const _hoisted_11$3 = /* @__PURE__ */ createElementVNode("div", { class: "bm-confirm-modal-title" }, "\u6279\u91CF\u5BFC\u5165", -1);
26575
+ const _hoisted_12$1 = { class: "bm-confirm-modal-text" };
26571
26576
  const _sfc_main$7 = defineComponent({
26572
26577
  __name: "table-widget",
26573
26578
  props: [
@@ -26728,6 +26733,23 @@ const _sfc_main$7 = defineComponent({
26728
26733
  return "";
26729
26734
  }
26730
26735
  });
26736
+ const conflictStore = reactive({
26737
+ visible: false,
26738
+ msg: "",
26739
+ data: null,
26740
+ clickType: "ok",
26741
+ open(msg, data2) {
26742
+ this.visible = true;
26743
+ this.msg = msg;
26744
+ this.data = data2;
26745
+ },
26746
+ close(clickType) {
26747
+ this.visible = false;
26748
+ this.msg = "";
26749
+ this.data = null;
26750
+ this.clickType = clickType;
26751
+ }
26752
+ });
26731
26753
  function isShow(key) {
26732
26754
  return props.rule.config.tableAdvancedFeatures.includes(key);
26733
26755
  }
@@ -26910,28 +26932,44 @@ const _sfc_main$7 = defineComponent({
26910
26932
  width: "140px",
26911
26933
  slots: {
26912
26934
  default({ row }) {
26913
- if (item.value === "\u5546\u54C1\u56FE\u7247" && row[childField]) {
26914
- return h(
26915
- "div",
26916
- {
26917
- style: {
26918
- color: "#9393A3"
26935
+ if (item.value === "\u5546\u54C1\u56FE\u7247") {
26936
+ if (row[childField]) {
26937
+ return h(
26938
+ "div",
26939
+ {
26940
+ style: {
26941
+ color: "#9393A3"
26942
+ },
26943
+ class: {
26944
+ "bm-fc-table-img": true
26945
+ }
26919
26946
  },
26920
- class: {
26921
- "bm-fc-table-img": true
26922
- }
26923
- },
26924
- [
26925
- h(Image, {
26926
- src: props.extraConfig.common.previewImg(row[childField]),
26947
+ [
26948
+ h(Image, {
26949
+ src: props.extraConfig.common.previewImg(row[childField]),
26950
+ style: {
26951
+ width: "86px",
26952
+ height: "86px",
26953
+ padding: "8px"
26954
+ }
26955
+ })
26956
+ ]
26957
+ );
26958
+ } else {
26959
+ return h(
26960
+ "div",
26961
+ {
26927
26962
  style: {
26928
- width: "86px",
26929
- height: "86px",
26930
- padding: "8px"
26963
+ color: "#9393A3"
26964
+ },
26965
+ class: {
26966
+ "bm-fc-placeholder": true,
26967
+ "bm-fc-table-img-placeholder": true
26931
26968
  }
26932
- })
26933
- ]
26934
- );
26969
+ },
26970
+ ["\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6"]
26971
+ );
26972
+ }
26935
26973
  }
26936
26974
  if (row[childField]) {
26937
26975
  return h(BmOverTooltips, { title: row[childField] }, []);
@@ -26943,8 +26981,7 @@ const _sfc_main$7 = defineComponent({
26943
26981
  color: "#9393A3"
26944
26982
  },
26945
26983
  class: {
26946
- "bm-fc-placeholder": true,
26947
- "bm-fc-table-img-placeholder": true
26984
+ "bm-fc-placeholder": true
26948
26985
  }
26949
26986
  },
26950
26987
  ["\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6"]
@@ -27525,7 +27562,7 @@ const _sfc_main$7 = defineComponent({
27525
27562
  filterByShopcode: props.rule?.config?.dataFiltering,
27526
27563
  dataFile: e.target.files?.[0]
27527
27564
  }) || {};
27528
- if (res.promptMessage && !await utils.confirmModal(res.promptMessage)) {
27565
+ if (res.promptMessage && !await showConflictModal(res.promptMessage, res)) {
27529
27566
  return;
27530
27567
  }
27531
27568
  if (res.templateDataList?.length) {
@@ -27595,7 +27632,27 @@ const _sfc_main$7 = defineComponent({
27595
27632
  });
27596
27633
  return !!setting?.config?.doNotClearAfterFilterChange;
27597
27634
  }
27635
+ async function showConflictModal(msg, data2) {
27636
+ conflictStore.open(msg, data2);
27637
+ return new Promise((resolve) => {
27638
+ let timer = setInterval(() => {
27639
+ if (conflictStore.visible === false) {
27640
+ resolve(conflictStore.clickType === "ok");
27641
+ clearInterval(timer);
27642
+ }
27643
+ }, 200);
27644
+ });
27645
+ }
27646
+ function handleDownloadConflict() {
27647
+ props.extraConfig.table?.downloadErrorFetch?.({
27648
+ tableConfig: tableConfig.value,
27649
+ columns: validColumns.value,
27650
+ codeField: "promptCode",
27651
+ data: conflictStore.data
27652
+ });
27653
+ }
27598
27654
  return (_ctx, _cache) => {
27655
+ const _component_a_button = resolveComponent("a-button");
27599
27656
  return openBlock(), createElementBlock("div", _hoisted_1$5, [
27600
27657
  createElementVNode("div", _hoisted_2$5, [
27601
27658
  createTextVNode(toDisplayString(__props.rule.title.title) + " ", 1),
@@ -27844,7 +27901,52 @@ const _sfc_main$7 = defineComponent({
27844
27901
  ]),
27845
27902
  _: 1
27846
27903
  })
27847
- ])
27904
+ ]),
27905
+ createVNode(unref(Modal), {
27906
+ visible: conflictStore.visible,
27907
+ title: null,
27908
+ centered: "",
27909
+ "wrap-class-name": "bm-confirm-modal bm-confirm-modal-warning bm-confirm-modal-conflict",
27910
+ onCancel: _cache[2] || (_cache[2] = ($event) => conflictStore.close("cancel"))
27911
+ }, {
27912
+ footer: withCtx(() => [
27913
+ createVNode(_component_a_button, {
27914
+ onClick: _cache[0] || (_cache[0] = ($event) => conflictStore.close("cancel"))
27915
+ }, {
27916
+ default: withCtx(() => [
27917
+ createTextVNode("\u53D6\u6D88")
27918
+ ]),
27919
+ _: 1
27920
+ }),
27921
+ createVNode(_component_a_button, { onClick: handleDownloadConflict }, {
27922
+ default: withCtx(() => [
27923
+ createTextVNode("\u4E0B\u8F7D\u51B2\u7A81\u6570\u636E")
27924
+ ]),
27925
+ _: 1
27926
+ }),
27927
+ createVNode(_component_a_button, {
27928
+ type: "primary",
27929
+ onClick: _cache[1] || (_cache[1] = ($event) => conflictStore.close("ok"))
27930
+ }, {
27931
+ default: withCtx(() => [
27932
+ createTextVNode("\u786E\u5B9A")
27933
+ ]),
27934
+ _: 1
27935
+ })
27936
+ ]),
27937
+ default: withCtx(() => [
27938
+ createElementVNode("div", _hoisted_8$2, [
27939
+ createElementVNode("div", _hoisted_9$2, [
27940
+ createVNode(unref(ExclamationCircleFilled))
27941
+ ]),
27942
+ createElementVNode("div", _hoisted_10$2, [
27943
+ _hoisted_11$3,
27944
+ createElementVNode("div", _hoisted_12$1, toDisplayString(conflictStore.msg), 1)
27945
+ ])
27946
+ ])
27947
+ ]),
27948
+ _: 1
27949
+ }, 8, ["visible"])
27848
27950
  ]);
27849
27951
  };
27850
27952
  }
@@ -1,35 +1,58 @@
1
- declare const BmOverTooltips: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<{
2
- name: string;
3
- props: {
4
- title: {
5
- type: StringConstructor;
6
- default: undefined;
7
- };
8
- labelTitle: {
9
- type: StringConstructor;
10
- default: undefined;
11
- };
12
- line: {
13
- type: NumberConstructor;
14
- default: number;
15
- };
16
- width: {
17
- type: (StringConstructor | NumberConstructor)[];
18
- default: number;
19
- };
20
- showAlways: {
21
- type: BooleanConstructor;
22
- default: boolean;
23
- };
24
- };
25
- setup(props: any, context: any): {
26
- mySelf: import("vue").Ref<any>;
27
- handleVisibleChange: (val: any) => void;
28
- getPopupContainer: () => HTMLElement;
29
- mSlots: import("vue").Ref<{}>;
30
- isShow: import("vue").Ref<boolean>;
31
- openShow: import("vue").Ref<boolean>;
32
- };
33
- }>;
1
+ declare const BmOverTooltips: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{
2
+ title: {
3
+ type: StringConstructor;
4
+ default: undefined;
5
+ };
6
+ labelTitle: {
7
+ type: StringConstructor;
8
+ default: undefined;
9
+ };
10
+ line: {
11
+ type: NumberConstructor;
12
+ default: number;
13
+ };
14
+ width: {
15
+ type: (StringConstructor | NumberConstructor)[];
16
+ default: number;
17
+ };
18
+ showAlways: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ }, {
23
+ mySelf: import("vue").Ref<any>;
24
+ handleVisibleChange: (val: any) => void;
25
+ getPopupContainer: () => HTMLElement;
26
+ mSlots: import("vue").Ref<{}>;
27
+ isShow: import("vue").Ref<boolean>;
28
+ openShow: import("vue").Ref<boolean>;
29
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
30
+ title: {
31
+ type: StringConstructor;
32
+ default: undefined;
33
+ };
34
+ labelTitle: {
35
+ type: StringConstructor;
36
+ default: undefined;
37
+ };
38
+ line: {
39
+ type: NumberConstructor;
40
+ default: number;
41
+ };
42
+ width: {
43
+ type: (StringConstructor | NumberConstructor)[];
44
+ default: number;
45
+ };
46
+ showAlways: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
+ }>>, {
51
+ title: string;
52
+ width: string | number;
53
+ labelTitle: string;
54
+ line: number;
55
+ showAlways: boolean;
56
+ }>>;
34
57
  export { BmOverTooltips };
35
58
  export default BmOverTooltips;
@@ -1,5 +1,5 @@
1
1
  import { withInstall } from 'bm-admin-ui/es/utils/with-install';
2
- import { reactive, onBeforeUnmount, ref, watch, nextTick, toRefs, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createElementVNode, normalizeStyle, normalizeClass, createTextVNode, toDisplayString } from 'vue';
2
+ import { defineComponent, reactive, onBeforeUnmount, ref, watch, nextTick, toRefs, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createElementVNode, normalizeStyle, normalizeClass, createTextVNode, toDisplayString } from 'vue';
3
3
 
4
4
  var _export_sfc = (sfc, props) => {
5
5
  const target = sfc.__vccOpts || sfc;
@@ -9,7 +9,7 @@ var _export_sfc = (sfc, props) => {
9
9
  return target;
10
10
  };
11
11
 
12
- const _sfc_main = {
12
+ const _sfc_main = defineComponent({
13
13
  name: "BmOverTooltips",
14
14
  props: {
15
15
  title: {
@@ -94,15 +94,15 @@ const _sfc_main = {
94
94
  getPopupContainer
95
95
  };
96
96
  }
97
- };
97
+ });
98
98
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
99
99
  const _component_a_tooltip = resolveComponent("a-tooltip");
100
100
  return openBlock(), createBlock(_component_a_tooltip, {
101
101
  visible: _ctx.isShow,
102
102
  "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.isShow = $event),
103
- title: $props.labelTitle || $props.title,
104
- "get-popup-container": $setup.getPopupContainer,
105
- onVisibleChange: $setup.handleVisibleChange
103
+ title: _ctx.labelTitle || _ctx.title,
104
+ "get-popup-container": _ctx.getPopupContainer,
105
+ onVisibleChange: _ctx.handleVisibleChange
106
106
  }, {
107
107
  title: withCtx(() => [
108
108
  renderSlot(_ctx.$slots, "title")
@@ -111,14 +111,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
111
111
  createElementVNode("div", {
112
112
  ref: "mySelf",
113
113
  style: normalizeStyle({
114
- width: $props.width ? $props.width + "px" : "100%",
115
- WebkitLineClamp: $props.line
114
+ width: _ctx.width ? _ctx.width + "px" : "100%",
115
+ WebkitLineClamp: _ctx.line
116
116
  }),
117
- class: normalizeClass($props.line === 1 ? `bm-over-tooltip` : `bm-over-tooltip-multi`)
117
+ class: normalizeClass(_ctx.line === 1 ? `bm-over-tooltip` : `bm-over-tooltip-multi`)
118
118
  }, [
119
119
  renderSlot(_ctx.$slots, "default", {}, () => [
120
120
  renderSlot(_ctx.$slots, "title", {}, () => [
121
- createTextVNode(toDisplayString($props.title), 1)
121
+ createTextVNode(toDisplayString(_ctx.title), 1)
122
122
  ])
123
123
  ])
124
124
  ], 6)
@@ -1,34 +1,57 @@
1
- declare const _default: {
2
- name: string;
3
- props: {
4
- title: {
5
- type: StringConstructor;
6
- default: undefined;
7
- };
8
- labelTitle: {
9
- type: StringConstructor;
10
- default: undefined;
11
- };
12
- line: {
13
- type: NumberConstructor;
14
- default: number;
15
- };
16
- width: {
17
- type: (StringConstructor | NumberConstructor)[];
18
- default: number;
19
- };
20
- showAlways: {
21
- type: BooleanConstructor;
22
- default: boolean;
23
- };
24
- };
25
- setup(props: any, context: any): {
26
- mySelf: import("vue").Ref<any>;
27
- handleVisibleChange: (val: any) => void;
28
- getPopupContainer: () => HTMLElement;
29
- mSlots: import("vue").Ref<{}>;
30
- isShow: import("vue").Ref<boolean>;
31
- openShow: import("vue").Ref<boolean>;
32
- };
33
- };
1
+ declare const _default: import("vue").DefineComponent<{
2
+ title: {
3
+ type: StringConstructor;
4
+ default: undefined;
5
+ };
6
+ labelTitle: {
7
+ type: StringConstructor;
8
+ default: undefined;
9
+ };
10
+ line: {
11
+ type: NumberConstructor;
12
+ default: number;
13
+ };
14
+ width: {
15
+ type: (StringConstructor | NumberConstructor)[];
16
+ default: number;
17
+ };
18
+ showAlways: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ }, {
23
+ mySelf: import("vue").Ref<any>;
24
+ handleVisibleChange: (val: any) => void;
25
+ getPopupContainer: () => HTMLElement;
26
+ mSlots: import("vue").Ref<{}>;
27
+ isShow: import("vue").Ref<boolean>;
28
+ openShow: import("vue").Ref<boolean>;
29
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
30
+ title: {
31
+ type: StringConstructor;
32
+ default: undefined;
33
+ };
34
+ labelTitle: {
35
+ type: StringConstructor;
36
+ default: undefined;
37
+ };
38
+ line: {
39
+ type: NumberConstructor;
40
+ default: number;
41
+ };
42
+ width: {
43
+ type: (StringConstructor | NumberConstructor)[];
44
+ default: number;
45
+ };
46
+ showAlways: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
+ }>>, {
51
+ title: string;
52
+ width: string | number;
53
+ labelTitle: string;
54
+ line: number;
55
+ showAlways: boolean;
56
+ }>;
34
57
  export default _default;