@meethive/components 0.0.10 → 0.0.12

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.
@@ -1,20 +1,24 @@
1
- import { defineComponent, computed, h } from 'vue';
1
+ import { defineComponent as _defineComponent } from 'vue';
2
+ import { unref as _unref, renderSlot as _renderSlot, mergeProps as _mergeProps, createVNode as _createVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
3
+ import { computed, h } from 'vue';
2
4
  import { Pagination, Spin } from 'ant-design-vue';
3
5
  import { _paginationProps } from './setting';
4
6
  import { useLocaleReceiver } from '../LocaleReciver';
5
7
  import useProTableStyle from './style';
6
- export default defineComponent({
7
- name: 'JPagination',
8
- components: {
9
- Pagination
8
+ const __sfc_main__ = _defineComponent({
9
+ ...{
10
+ name: 'JPagination'
10
11
  },
12
+ __name: 'Pagination',
11
13
  props: {
12
14
  ..._paginationProps
13
15
  },
14
16
  emits: ['change'],
15
- setup(props, {
16
- emit
17
+ setup(__props, {
18
+ emit: __emit
17
19
  }) {
20
+ const props = __props;
21
+ const emit = __emit;
18
22
  const [contextLocale] = useLocaleReceiver('ProTable');
19
23
  const prefixCls = computed(() => 'pro-table');
20
24
  const [wrapSSR, hashId] = useProTableStyle(prefixCls);
@@ -23,7 +27,7 @@ export default defineComponent({
23
27
  'hide-content': !props.isShowContent
24
28
  };
25
29
  });
26
- const _showTotal = num => {
30
+ const showTotal = num => {
27
31
  const minSize = props.pageIndex * props.pageSize + 1;
28
32
  const MaxSize = (props.pageIndex + 1) * props.pageSize;
29
33
  let localePage = contextLocale.value.pagination?.page || '';
@@ -46,11 +50,18 @@ export default defineComponent({
46
50
  const onChange = (page, size) => {
47
51
  emit('change', page, size);
48
52
  };
49
- return {
50
- hashId,
51
- className,
52
- showTotal: _showTotal,
53
- onChange
53
+ return (_ctx, _cache) => {
54
+ return _openBlock(), _createElementBlock("div", {
55
+ class: _normalizeClass(['jtable-pagination', _unref(hashId)])
56
+ }, [_renderSlot(_ctx.$slots, "default", {}, () => [_createVNode(_unref(Pagination), _mergeProps(props, {
57
+ total: _ctx.total,
58
+ pageSize: _ctx.pageSize,
59
+ current: _ctx.pageIndex + 1,
60
+ "show-total": num => showTotal(num),
61
+ class: className.value,
62
+ onChange: onChange
63
+ }), null, 16 /* FULL_PROPS */, ["total", "pageSize", "current", "show-total", "class"])])], 2 /* CLASS */);
54
64
  };
55
65
  }
56
- });
66
+ });
67
+ export default __sfc_main__;
@@ -1,31 +1,33 @@
1
- import { defineComponent, useSlots, watch, onMounted, onUnmounted, computed, ref, reactive, inject } from 'vue';
1
+ import { defineComponent as _defineComponent } from 'vue';
2
+ import { unref as _unref, renderSlot as _renderSlot, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, normalizeProps as _normalizeProps, mergeProps as _mergeProps, renderList as _renderList, createSlots as _createSlots, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementBlock as _createElementBlock } from "vue";
3
+ const _hoisted_1 = {
4
+ class: "jtable-body"
5
+ };
6
+ import { useSlots, watch, onMounted, onUnmounted, computed, ref, reactive, inject } from 'vue';
2
7
  import { Spin } from 'ant-design-vue';
3
8
  import { debounce } from 'lodash-es';
4
9
  import Header from './Header.js';
5
10
  import Alert from './Alert.js';
6
11
  import Content from './Content.js';
7
- import JPagination from './Pagination.js';
12
+ import Pagination from './Pagination.js';
8
13
  import { proTableProps } from './setting';
9
14
  import { TableConfig } from '../utils/constants';
10
15
  import { useTableInject } from './hooks';
11
16
  import useProTableStyle from './style';
12
17
  import { onlyMessage } from '@meethive/utils';
13
18
  import { useLocaleReceiver } from '../LocaleReciver';
14
- export default defineComponent({
15
- name: 'JProTable',
16
- components: {
17
- Spin,
18
- Header,
19
- Alert,
20
- Content,
21
- JPagination
19
+ const __sfc_main__ = _defineComponent({
20
+ ...{
21
+ name: 'JProTable'
22
22
  },
23
+ __name: 'ProTable',
23
24
  props: {
24
25
  ...proTableProps
25
26
  },
26
- setup(props, {
27
- expose
27
+ setup(__props, {
28
+ expose: __expose
28
29
  }) {
30
+ const props = __props;
29
31
  const tableConfig = inject(TableConfig, {
30
32
  pagination: {}
31
33
  });
@@ -234,26 +236,71 @@ export default defineComponent({
234
236
  onUnmounted(() => {
235
237
  window.onresize = null;
236
238
  });
237
- expose({
239
+ __expose({
238
240
  reload,
239
241
  dataSource: _dataSource
240
242
  });
241
- return {
242
- slots,
243
- hashId,
244
- loading,
245
- tableDataSource: _dataSource,
246
- currentMode: _mode,
247
- column,
248
- page,
249
- myPagination,
250
- showAlert,
251
- showPagination,
252
- extraSlots,
253
- injectRowSelection: _rowSelection,
254
- onCheck,
255
- onPageChange,
256
- onClose
243
+ return (_ctx, _cache) => {
244
+ return _openBlock(), _createElementBlock("div", {
245
+ class: _normalizeClass(['jtable-body-spin', _unref(hashId)]),
246
+ style: _normalizeStyle(_ctx.bodyStyle),
247
+ id: "jtable-body-spin"
248
+ }, [_createVNode(_unref(Spin), {
249
+ spinning: loading.value
250
+ }, {
251
+ default: _withCtx(() => [_createElementVNode("div", _hoisted_1, [_createVNode(Header, {
252
+ initMode: _ctx.mode,
253
+ mode: _mode.value,
254
+ modeValue: _ctx.modeValue,
255
+ onChange: onCheck
256
+ }, {
257
+ headerLeftRender: _withCtx(() => [_renderSlot(_ctx.$slots, "headerLeftRender")]),
258
+ headerRightRender: _withCtx(() => [_renderSlot(_ctx.$slots, "headerRightRender")]),
259
+ _: 3 /* FORWARDED */
260
+ }, 8 /* PROPS */, ["initMode", "mode", "modeValue"]), showAlert.value ? (_openBlock(), _createBlock(Alert, {
261
+ key: 0,
262
+ rowSelection: _ctx.rowSelection || _unref(_rowSelection),
263
+ onClose: onClose
264
+ }, {
265
+ default: _withCtx(() => [_renderSlot(_ctx.$slots, "alertRender", {
266
+ rowSelection: _ctx.rowSelection || _unref(_rowSelection),
267
+ onClose: onClose
268
+ })]),
269
+ _: 3 /* FORWARDED */
270
+ }, 8 /* PROPS */, ["rowSelection"])) : _createCommentVNode("v-if", true), _createVNode(Content, _mergeProps(props, {
271
+ mode: _mode.value,
272
+ dataSource: _dataSource.value,
273
+ column: column.value
274
+ }), _createSlots({
275
+ _: 2 /* DYNAMIC */
276
+ }, [_renderList(_unref(slots), (_, key) => {
277
+ return {
278
+ name: key,
279
+ fn: _withCtx(slotProps => [!extraSlots.includes(key) ? _renderSlot(_ctx.$slots, key, _normalizeProps(_mergeProps({
280
+ key: 0
281
+ }, slotProps))) : _createCommentVNode("v-if", true)])
282
+ };
283
+ })]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["mode", "dataSource", "column"]), showPagination.value ? (_openBlock(), _createBlock(Pagination, _mergeProps({
284
+ key: 1
285
+ }, myPagination.value, {
286
+ total: page.total,
287
+ pageIndex: page.pageIndex,
288
+ pageSize: page.pageSize,
289
+ totalLoading: page.loading,
290
+ totalRequest: _ctx.totalRequest,
291
+ onChange: onPageChange
292
+ }), {
293
+ default: _withCtx(() => [_renderSlot(_ctx.$slots, "paginationRender", {
294
+ total: page.total,
295
+ pageSize: page.pageSize,
296
+ current: page.pageIndex + 1,
297
+ onChange: onPageChange
298
+ })]),
299
+ _: 3 /* FORWARDED */
300
+ }, 16 /* FULL_PROPS */, ["total", "pageIndex", "pageSize", "totalLoading", "totalRequest"])) : _createCommentVNode("v-if", true)])]),
301
+ _: 3 /* FORWARDED */
302
+ }, 8 /* PROPS */, ["spinning"])], 6 /* CLASS, STYLE */);
257
303
  };
258
304
  }
259
- });
305
+ });
306
+ export default __sfc_main__;
package/es/Search/Item.js CHANGED
@@ -1,4 +1,16 @@
1
- import { defineComponent, computed, ref, reactive, watch, isRef } from 'vue';
1
+ import { defineComponent as _defineComponent } from 'vue';
2
+ import { unref as _unref, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, createVNode as _createVNode, Fragment as _Fragment, resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass } from "vue";
3
+ const _hoisted_1 = {
4
+ key: 0,
5
+ class: "JSearch-item--type"
6
+ };
7
+ const _hoisted_2 = {
8
+ key: 1
9
+ };
10
+ const _hoisted_3 = {
11
+ class: "JSearch-item--value"
12
+ };
13
+ import { computed, ref, reactive, watch, isRef } from 'vue';
2
14
  import { Select } from 'ant-design-vue';
3
15
  import { componentProps, componentType, typeOptions } from './setting';
4
16
  import { getTermOptions, getItemDefaultValue } from './util';
@@ -6,11 +18,11 @@ import { useLocaleReceiver } from '../LocaleReciver';
6
18
  import { useColumnsMap, useDefaultValue, useOptionMap } from './hooks';
7
19
  import { isArray, isFunction } from 'lodash-es';
8
20
  import useSearchStyle from './style';
9
- export default defineComponent({
10
- name: 'JSearchItem',
11
- components: {
12
- Select
21
+ const __sfc_main__ = _defineComponent({
22
+ ...{
23
+ name: 'JSearchItem'
13
24
  },
25
+ __name: 'Item',
14
26
  props: {
15
27
  column: {
16
28
  type: String
@@ -44,9 +56,11 @@ export default defineComponent({
44
56
  }
45
57
  },
46
58
  emits: ['update:value', 'update:termType', 'update:type', 'update:column'],
47
- setup(props, {
48
- emit
59
+ setup(__props, {
60
+ emit: __emit
49
61
  }) {
62
+ const props = __props;
63
+ const emit = __emit;
50
64
  const termsModel = reactive({
51
65
  type: props.type || 'or',
52
66
  value: props.value || '',
@@ -193,19 +207,54 @@ export default defineComponent({
193
207
  termsModel.column = props.column;
194
208
  termsModel.type = props.type;
195
209
  });
196
- return {
197
- termsModel,
198
- contextLocale,
199
- targetComponents,
200
- valueOptions,
201
- hashId,
202
- termTypeOptions,
203
- columnOptions,
204
- typeOptions,
205
- onTypeChange,
206
- onColumnChange,
207
- onTermTypeChange,
208
- onValueChange
210
+ return (_ctx, _cache) => {
211
+ return _openBlock(), _createElementBlock("div", {
212
+ class: _normalizeClass(['JSearch-item', _unref(hashId)])
213
+ }, [_createCommentVNode(" onlyValue 为 true 时显示 label "), __props.onlyValue ? (_openBlock(), _createElementBlock("div", {
214
+ key: 0,
215
+ class: "JSearch-item--label",
216
+ style: _normalizeStyle({
217
+ minWidth: `${__props.labelWidth}px`
218
+ })
219
+ }, _toDisplayString(targetComponents.value.label), 5 /* TEXT, STYLE */)) : (_openBlock(), _createElementBlock(_Fragment, {
220
+ key: 1
221
+ }, [_createCommentVNode(" onlyValue 为 false 时显示更多选项 "), _createCommentVNode(" 展开模式下显示类型选择 "), __props.expand ? (_openBlock(), _createElementBlock("div", _hoisted_1, [__props.index !== 1 && __props.index !== 4 ? (_openBlock(), _createBlock(_unref(Select), {
222
+ key: 0,
223
+ value: termsModel.type,
224
+ "onUpdate:value": _cache[0] || (_cache[0] = $event => termsModel.type = $event),
225
+ options: _unref(typeOptions)(_unref(contextLocale)),
226
+ style: {
227
+ "width": "100%"
228
+ },
229
+ onChange: onTypeChange
230
+ }, null, 8 /* PROPS */, ["value", "options"])) : (_openBlock(), _createElementBlock("span", _hoisted_2, _toDisplayString(__props.index === 1 ? _unref(contextLocale).item.firstGroup : _unref(contextLocale).item.secondGroup), 1 /* TEXT */))])) : _createCommentVNode("v-if", true), _createCommentVNode(" 列选择 "), _createVNode(_unref(Select), {
231
+ value: termsModel.column,
232
+ "onUpdate:value": _cache[1] || (_cache[1] = $event => termsModel.column = $event),
233
+ placeholder: _unref(contextLocale).item.placeholder,
234
+ class: "JSearch-item--column",
235
+ options: columnOptions.value,
236
+ onChange: onColumnChange
237
+ }, null, 8 /* PROPS */, ["value", "placeholder", "options"]), _createCommentVNode(" 条件类型选择 "), _createVNode(_unref(Select), {
238
+ value: termsModel.termType,
239
+ "onUpdate:value": _cache[2] || (_cache[2] = $event => termsModel.termType = $event),
240
+ placeholder: _unref(contextLocale).item.placeholder,
241
+ class: "JSearch-item--termType",
242
+ options: termTypeOptions.value,
243
+ onChange: onTermTypeChange
244
+ }, null, 8 /* PROPS */, ["value", "placeholder", "options"])], 64 /* STABLE_FRAGMENT */)), _createCommentVNode(" 值输入 "), _createElementVNode("div", _hoisted_3, [(_openBlock(), _createBlock(_resolveDynamicComponent(targetComponents.value.name), _mergeProps({
245
+ "allow-clear": "",
246
+ style: {
247
+ "width": "100%",
248
+ "min-width": "80px"
249
+ }
250
+ }, targetComponents.value.props, {
251
+ options: !['treeSelect', 'tree'].includes(targetComponents.value.type) && valueOptions.value,
252
+ treeData: ['treeSelect', 'tree'].includes(targetComponents.value.type) && valueOptions.value,
253
+ value: termsModel.value,
254
+ "onUpdate:value": _cache[3] || (_cache[3] = $event => termsModel.value = $event),
255
+ onChange: onValueChange
256
+ }), null, 16 /* FULL_PROPS */, ["options", "treeData", "value"]))])], 2 /* CLASS */);
209
257
  };
210
258
  }
211
- });
259
+ });
260
+ export default __sfc_main__;
@@ -1,4 +1,12 @@
1
- import { defineComponent, reactive, ref, computed, inject, useAttrs } from 'vue';
1
+ import { defineComponent as _defineComponent } from 'vue';
2
+ import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, withCtx as _withCtx, createBlock as _createBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass } from "vue";
3
+ const _hoisted_1 = {
4
+ class: "JSearch-content simple"
5
+ };
6
+ const _hoisted_2 = {
7
+ class: "JSearch-items"
8
+ };
9
+ import { reactive, ref, computed, inject, useAttrs } from 'vue';
2
10
  import { searchProps } from './setting';
3
11
  import { useLocaleReceiver } from '../LocaleReciver';
4
12
  import { Button, Col, Form, FormItemRest, Row } from 'ant-design-vue';
@@ -7,25 +15,22 @@ import Item from './Item.js';
7
15
  import { useHandleColumns, useOptionMapContent } from './hooks';
8
16
  import { termsParamsFormat } from './util';
9
17
  import useSearchStyle from './style';
10
- export default defineComponent({
11
- name: 'JSearch',
12
- components: {
13
- Button,
14
- Col,
15
- Form,
16
- FormItemRest,
17
- Row,
18
- Item
18
+ const __sfc_main__ = _defineComponent({
19
+ ...{
20
+ name: 'JSearch',
21
+ inheritAttrs: false
19
22
  },
20
- inheritAttrs: false,
23
+ __name: 'Search',
21
24
  props: {
22
25
  ...searchProps()
23
26
  },
24
27
  emits: ['search'],
25
- setup(props, {
26
- emit,
27
- expose
28
+ setup(__props, {
29
+ expose: __expose,
30
+ emit: __emit
28
31
  }) {
32
+ const props = __props;
33
+ const emit = __emit;
29
34
  const [contextLocale] = useLocaleReceiver('Search');
30
35
  const attrs = useAttrs();
31
36
  const columnsOptionMap = ref({}); // 存储每个columnItem的option
@@ -73,18 +78,70 @@ export default defineComponent({
73
78
  });
74
79
  emit('search', termsParamsFormat(terms, columnsMap.value));
75
80
  };
76
- expose({
81
+ __expose({
77
82
  setValues: handleDefaultValues,
78
83
  reset
79
84
  });
80
- return {
81
- contextLocale,
82
- attrs,
83
- terms,
84
- hashId,
85
- footerStyles,
86
- searchSubmit,
87
- reset
85
+ return (_ctx, _cache) => {
86
+ return _openBlock(), _createBlock(_unref(Form), {
87
+ model: terms,
88
+ onFinish: searchSubmit
89
+ }, {
90
+ default: _withCtx(() => [_createElementVNode("div", {
91
+ class: _normalizeClass(['JSearch-warp', _unref(attrs).class, _unref(hashId)]),
92
+ style: _normalizeStyle(_unref(attrs).style)
93
+ }, [_createElementVNode("div", _hoisted_1, [_createElementVNode("div", _hoisted_2, [_createVNode(_unref(Row), {
94
+ gutter: [16, 16]
95
+ }, {
96
+ default: _withCtx(() => [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(terms.terms, (item, index) => {
97
+ return _openBlock(), _createBlock(_unref(Col), {
98
+ key: index,
99
+ span: item._span || 24 / _ctx.column
100
+ }, {
101
+ default: _withCtx(() => [_createVNode(Item, {
102
+ value: item.value,
103
+ "onUpdate:value": $event => item.value = $event,
104
+ termType: item.termType,
105
+ "onUpdate:termType": $event => item.termType = $event,
106
+ column: item.column,
107
+ "onUpdate:column": $event => item.column = $event,
108
+ type: item.type,
109
+ "onUpdate:type": $event => item.type = $event,
110
+ labelWidth: _ctx.labelWidth
111
+ }, null, 8 /* PROPS */, ["value", "onUpdate:value", "termType", "onUpdate:termType", "column", "onUpdate:column", "type", "onUpdate:type", "labelWidth"])]),
112
+ _: 2 /* DYNAMIC */
113
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["span"]);
114
+ }), 128 /* KEYED_FRAGMENT */)), _createVNode(_unref(Col), {
115
+ span: 24 / _ctx.column
116
+ }, {
117
+ default: _withCtx(() => [_renderSlot(_ctx.$slots, "footerRender", {
118
+ reset: reset,
119
+ submit: searchSubmit
120
+ }, () => [_createElementVNode("div", {
121
+ class: "JSearch-footer--btns",
122
+ style: _normalizeStyle(footerStyles.value)
123
+ }, [_createVNode(_unref(Button), {
124
+ onClick: reset
125
+ }, {
126
+ default: _withCtx(() => [_createTextVNode(_toDisplayString(_ctx.resetText || _unref(contextLocale)?.search?.reset), 1 /* TEXT */)]),
127
+ _: 1 /* STABLE */
128
+ }), _createVNode(_unref(FormItemRest), null, {
129
+ default: _withCtx(() => [_createVNode(_unref(Button), {
130
+ "html-type": "submit",
131
+ type: "primary"
132
+ }, {
133
+ default: _withCtx(() => [_createTextVNode(_toDisplayString(_ctx.submitText || _unref(contextLocale)?.search?.search), 1 /* TEXT */)]),
134
+ _: 1 /* STABLE */
135
+ })]),
136
+ _: 1 /* STABLE */
137
+ })], 4 /* STYLE */)])]),
138
+ _: 3 /* FORWARDED */
139
+ }, 8 /* PROPS */, ["span"])]),
140
+ _: 3 /* FORWARDED */
141
+ })])])], 6 /* CLASS, STYLE */)]),
142
+ _: 3 /* FORWARDED */
143
+ }, 8 /* PROPS */, ["model"]);
88
144
  };
89
145
  }
90
- });
146
+ });
147
+ export default __sfc_main__;
@@ -1,14 +1,16 @@
1
- import { defineComponent, computed, ref, useAttrs, mergeProps } from 'vue';
1
+ import { defineComponent as _defineComponent } from 'vue';
2
+ import { renderSlot as _renderSlot, mergeProps as _mergeProps, createElementVNode as _createElementVNode, unref as _unref, normalizeClass as _normalizeClass, withCtx as _withCtx, createSlots as _createSlots, openBlock as _openBlock, createBlock as _createBlock } from "vue";
3
+ import { computed, ref, useAttrs, mergeProps } from 'vue';
2
4
  import { Tooltip } from 'ant-design-vue';
3
5
  import useEllipsisStyle from './style';
4
6
  const jEllipsis = 'j-ellipsis';
5
7
  const jEllipsisCursorClass = 'j-ellipsis-cursor';
6
8
  const jEllipsisLineClampClass = 'j-ellipsis-line-clamp';
7
- export default defineComponent({
8
- name: 'JEllipsis',
9
- components: {
10
- Tooltip
9
+ const __sfc_main__ = _defineComponent({
10
+ ...{
11
+ name: 'JEllipsis'
11
12
  },
13
+ __name: 'Ellipsis',
12
14
  props: {
13
15
  expandTrigger: {
14
16
  type: String,
@@ -24,7 +26,8 @@ export default defineComponent({
24
26
  default: true
25
27
  }
26
28
  },
27
- setup(props) {
29
+ setup(__props) {
30
+ const props = __props;
28
31
  const prefixCls = computed(() => 'j-ellipsis');
29
32
  const [wrapSSR, hashId] = useEllipsisStyle(prefixCls);
30
33
 
@@ -127,18 +130,31 @@ export default defineComponent({
127
130
  }
128
131
  return tooltipDisabled;
129
132
  };
130
- return {
131
- jEllipsis,
132
- jEllipsisCursorClass,
133
- jEllipsisLineClampClass,
134
- hashId,
135
- tooltipRef,
136
- triggerRef,
137
- visible,
138
- handleClickRef,
139
- triggerAttrs,
140
- showTooltip,
141
- getTooltipDisabled
133
+ return (_ctx, _cache) => {
134
+ return _openBlock(), _createBlock(_unref(Tooltip), _mergeProps({
135
+ ref_key: "tooltipRef",
136
+ ref: tooltipRef,
137
+ placement: "top"
138
+ }, __props.tooltip, {
139
+ open: visible.value && __props.tooltip !== false
140
+ }), _createSlots({
141
+ default: _withCtx(() => [_createElementVNode("span", _mergeProps({
142
+ ref_key: "triggerRef",
143
+ ref: triggerRef
144
+ }, triggerAttrs(), {
145
+ onClick: _cache[0] || (_cache[0] = $event => handleClickRef.value && handleClickRef.value()),
146
+ onMouseleave: _cache[1] || (_cache[1] = $event => visible.value = false),
147
+ onMouseenter: _cache[2] || (_cache[2] = $event => __props.expandTrigger === 'click' ? getTooltipDisabled() : showTooltip())
148
+ }), [_renderSlot(_ctx.$slots, "default")], 16 /* FULL_PROPS */)]),
149
+ _: 2 /* DYNAMIC */
150
+ }, [__props.tooltip ? {
151
+ name: "title",
152
+ fn: _withCtx(() => [_createElementVNode("div", {
153
+ class: _normalizeClass([jEllipsisLineClampClass, jEllipsis, 'j-ellipsis-deep', _unref(hashId)])
154
+ }, [_renderSlot(_ctx.$slots, "default"), _renderSlot(_ctx.$slots, "tooltip")], 2 /* CLASS */)]),
155
+ key: "0"
156
+ } : undefined]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["open"]);
142
157
  };
143
158
  }
144
- });
159
+ });
160
+ export default __sfc_main__;