sh-view 2.8.0 → 2.8.2

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 (91) hide show
  1. package/.eslintrc.js +25 -20
  2. package/other.js +8 -8
  3. package/package.json +9 -6
  4. package/packages/components/index.js +91 -91
  5. package/packages/components/sh-alert/alert.ts +30 -0
  6. package/packages/components/sh-alert/index.vue +143 -168
  7. package/packages/components/sh-badge/index.vue +242 -242
  8. package/packages/components/sh-calendar/index.vue +650 -650
  9. package/packages/components/sh-card/index.vue +148 -148
  10. package/packages/components/sh-code-editor/index.vue +19 -19
  11. package/packages/components/sh-col/index.vue +92 -92
  12. package/packages/components/sh-corner/index.vue +230 -230
  13. package/packages/components/sh-count-to/index.vue +131 -131
  14. package/packages/components/sh-date/index.vue +301 -301
  15. package/packages/components/sh-drawer/index.vue +579 -579
  16. package/packages/components/sh-drawer/scrollbar.js +78 -78
  17. package/packages/components/sh-empty/index.vue +42 -42
  18. package/packages/components/sh-form/js/props.js +76 -76
  19. package/packages/components/sh-form/js/useForm.js +229 -229
  20. package/packages/components/sh-header/index.vue +261 -260
  21. package/packages/components/sh-icon/css/default/ionicons.svg +869 -869
  22. package/packages/components/sh-icon/css/font/iconfont.json +247 -247
  23. package/packages/components/sh-icon/index.vue +41 -41
  24. package/packages/components/sh-image/index.vue +133 -133
  25. package/packages/components/sh-list/index.vue +146 -146
  26. package/packages/components/sh-loading/index.vue +53 -53
  27. package/packages/components/sh-modal/index.vue +188 -188
  28. package/packages/components/sh-noticebar/index.vue +215 -215
  29. package/packages/components/sh-poptip/index.vue +597 -597
  30. package/packages/components/sh-progress/index.vue +276 -276
  31. package/packages/components/sh-pull-refresh/index.vue +289 -289
  32. package/packages/components/sh-result/index.vue +114 -114
  33. package/packages/components/sh-row/index.vue +66 -66
  34. package/packages/components/sh-split/components/trigger.vue +33 -33
  35. package/packages/components/sh-split/index.vue +342 -342
  36. package/packages/components/sh-table/components/importModal.vue +363 -363
  37. package/packages/components/sh-table/components/sh-column.vue +68 -68
  38. package/packages/components/sh-table/js/excel_to_json.js +313 -313
  39. package/packages/components/sh-table/js/props.js +305 -305
  40. package/packages/components/sh-table/js/tableMethods.js +167 -167
  41. package/packages/components/sh-table/js/useTable.js +636 -636
  42. package/packages/components/sh-table/table.vue +217 -217
  43. package/packages/components/sh-tabs/index.vue +426 -426
  44. package/packages/components/sh-tag/index.vue +168 -168
  45. package/packages/components/sh-toolbar/index.vue +182 -182
  46. package/packages/components/sh-tree/components/table-tree.vue +289 -289
  47. package/packages/components/sh-tree/mixin/treeProps.js +122 -122
  48. package/packages/components/sh-upload/index.vue +535 -535
  49. package/packages/components/sh-water-fall/index.vue +80 -80
  50. package/packages/components/sh-water-mark/index.vue +96 -96
  51. package/packages/css/index.js +4 -4
  52. package/packages/directive/index.js +19 -19
  53. package/packages/directive/module/click-out.js +14 -14
  54. package/packages/directive/module/draggable.js +42 -42
  55. package/packages/directive/module/line-clamp.js +22 -22
  56. package/packages/directive/module/prevent-click.js +18 -18
  57. package/packages/directive/module/resize.js +14 -14
  58. package/packages/directive/module/ripple.js +166 -166
  59. package/packages/index.js +39 -39
  60. package/packages/mixin/index.js +86 -86
  61. package/packages/other/sh-cron-modal/components/cron-content.vue +294 -294
  62. package/packages/other/sh-cron-modal/index.vue +81 -81
  63. package/packages/other/sh-cron-modal/mixin/cron-emits.js +1 -1
  64. package/packages/other/sh-cron-modal/mixin/cron-props.js +9 -9
  65. package/packages/other/sh-cron-modal/tabs/cron-week-box.vue +126 -126
  66. package/packages/other/sh-menu/index.vue +326 -326
  67. package/packages/other/sh-menu/menu-group-content.vue +136 -136
  68. package/packages/other/sh-menu/menu-item-content.vue +71 -71
  69. package/packages/other/sh-menu-card/index.vue +250 -250
  70. package/packages/other/sh-menu-card/menu-box.vue +87 -87
  71. package/packages/other/sh-preview/components/sh-excel.vue +163 -163
  72. package/packages/other/sh-preview/js/data-hook.js +41 -41
  73. package/packages/other/sh-preview/js/data-props.js +15 -15
  74. package/packages/other/sh-system-tip/index.vue +115 -115
  75. package/packages/utils/resize.js +69 -70
  76. package/packages/utils/transfer-queue.js +12 -12
  77. package/packages/vxeTable/index.js +193 -184
  78. package/packages/vxeTable/plugins/export.js +450 -450
  79. package/packages/vxeTable/render/cell/vxe-render-img.vue +27 -27
  80. package/packages/vxeTable/render/cell/vxe-render-table.vue +51 -51
  81. package/packages/vxeTable/render/cell/vxe-render-time.vue +44 -44
  82. package/packages/vxeTable/render/cell/vxe-render-tree.vue +70 -70
  83. package/packages/vxeTable/render/filters/vxe-filter-input.vue +26 -26
  84. package/packages/vxeTable/render/filters/vxe-filter-time.vue +26 -26
  85. package/packages/vxeTable/render/globalRenders.jsx +514 -514
  86. package/packages/vxeTable/render/mixin/cell-hooks.js +198 -198
  87. package/packages/vxeTable/render/mixin/cell-props.js +23 -23
  88. package/packages/vxeTable/render/mixin/filter-hooks.js +46 -46
  89. package/tsconfig.json +25 -0
  90. package/types/component.d.ts +1 -0
  91. package/types/index.ts +0 -0
@@ -1,217 +1,217 @@
1
- <template>
2
- <div ref="tableWrapRef" class="sh-vxe-table" :class="{ 'sh-table-ghost': tableGlobalConfig.ghost, 'is--loading': tableBindConfig.loading }" :style="{ height: wrapHeight }">
3
- <div v-if="isTopSlot" ref="topSlotRef" v-resize="handleResize" class="sh-table-top"><slot name="top"></slot></div>
4
- <div v-if="isFormSlot" ref="formSlotRef" v-resize="handleResize" class="sh-table-form">
5
- <slot name="form">
6
- <sh-query v-bind="tableQueryConfig" @submit="onFormSubmit" @reset="onFormReset" @collapsed="onFormCollapsed" @edit-closed="onFormEditClosed">
7
- <template #footLeft><slot name="formLeft"></slot></template>
8
- <template #footRight><slot name="formRight"></slot></template>
9
- </sh-query>
10
- </slot>
11
- </div>
12
- <div v-if="isToolbarSlot" ref="toolbarSlotRef" v-resize="handleResize" class="sh-table-toolbar">
13
- <slot name="toolbar">
14
- <div class="sh-table-toolbar-wrap">
15
- <div class="sh-table-toolbar-left">
16
- <div v-if="tableGlobalConfig.title" class="sh-table-toolbar-item">
17
- <h3 class="tableName">{{ tableGlobalConfig.tableName }}</h3>
18
- </div>
19
- <!--ps:全表搜索不支持反转-->
20
- <div v-if="tableGlobalConfig.globalFilter" class="sh-table-toolbar-item">
21
- <vxe-input v-model="tableFilterText" v-bind="tableFilterConfig" @blur="handleTableFilter" @clear="handleTableFilter" @search-click="handleTableFilter" />
22
- <span v-if="tableFilterData">
23
- 共搜索到 <strong>{{ tableFilterData.length }}</strong> 条数据
24
- </span>
25
- </div>
26
- <div v-if="slots.toolbarLeft" class="sh-table-toolbar-item">
27
- <slot name="toolbarLeft"></slot>
28
- </div>
29
- </div>
30
- <div class="sh-table-toolbar-right">
31
- <div v-if="slots.toolbarRight" class="sh-table-toolbar-item">
32
- <slot name="toolbarRight"></slot>
33
- </div>
34
- <template v-for="(tool, toolIndex) in tableTools" :key="toolIndex">
35
- <div class="sh-table-toolbar-item">
36
- <vxe-button v-ripple :size="size" v-bind="tool" @click="handleTableTool(tool)"></vxe-button>
37
- </div>
38
- </template>
39
- </div>
40
- </div>
41
- </slot>
42
- </div>
43
- <div v-if="isHeadSlot" ref="headSlotRef" v-resize="handleResize" class="sh-table-head"><slot name="head"></slot></div>
44
- <vxe-table
45
- :id="id"
46
- ref="tableRef"
47
- :key="renderKey"
48
- :class="{ 'is--hasfooter': showFooter }"
49
- v-bind="tableBindConfig"
50
- :height="tableHeight"
51
- @current-change="onCurrentChange"
52
- @radio-change="onRadioChange"
53
- @checkbox-change="onSelectionChange"
54
- @checkbox-all="onSelectionChange"
55
- @checkbox-range-end="onSelectionChange"
56
- @cell-click="onCellClick"
57
- @cell-dblclick="onCellDblClick"
58
- @header-cell-click="onHeaderCellClick"
59
- @sort-change="onSortChange"
60
- @filter-change="onFilterChange"
61
- @toggle-row-expand="onToggleRowExpand"
62
- @toggle-tree-expand="onToggleTreeExpand"
63
- @edit-closed="onEditClosed"
64
- @edit-actived="onEditActived"
65
- @scroll="onScroll"
66
- @custom="onCustom"
67
- @toolbar-button-click="onToolbarButtonClick"
68
- @toolbar-tool-click="onToolbarToolClick"
69
- @option-click="handleGoptionClick">
70
- <template v-if="customLayout">
71
- <slot></slot>
72
- </template>
73
- <template v-else>
74
- <template v-for="(column, columnIndex) in tablePrevColumns" :key="columnIndex">
75
- <vxe-column v-bind="column"></vxe-column>
76
- </template>
77
- <template v-for="(column, columnIndex) in columns" :key="columnIndex">
78
- <sh-column :column="column"></sh-column>
79
- </template>
80
- </template>
81
- <template #empty>
82
- <sh-empty :icon="emptyIcon" :content="emptyText"></sh-empty>
83
- </template>
84
- </vxe-table>
85
- <div v-if="isFootSlot" ref="footSlotRef" v-resize="handleResize" class="sh-table-foot"><slot name="foot"></slot></div>
86
- <div v-if="isPagerSlot" ref="pagerSlotRef" v-resize="handleResize" class="sh-table-pager">
87
- <vxe-pager ref="pagerSlotRef" v-bind="tablePagerConfig" @page-change="onPageChange">
88
- <template #pagerLeft>
89
- <div v-if="selectionRows.length" class="sh-table-footer-info">
90
- 已选择 <strong>{{ selectionRows.length }}</strong> 项
91
- </div>
92
- <slot name="pagerLeft"></slot>
93
- </template>
94
- <template #pagerRight>
95
- <slot name="pagerRight"></slot>
96
- </template>
97
- </vxe-pager>
98
- </div>
99
- <div v-if="isBottomSlot" ref="bottomSlotRef" v-resize="handleResize" class="sh-table-bottom"><slot name="bottom"></slot></div>
100
- <!--导入弹窗-->
101
- <importModal v-if="importBindConfig.modalConfig.modelValue" v-bind="importBindConfig" @confirm="setImportData"></importModal>
102
- </div>
103
- </template>
104
-
105
- <script>
106
- import { computed, defineComponent, getCurrentInstance, provide, ref, reactive } from 'vue'
107
- import './css/index.scss'
108
-
109
- import props from './js/props'
110
- import shColumn from './components/sh-column.vue'
111
- import importModal from './components/importModal.vue'
112
- import useTable from './js/useTable'
113
- export default defineComponent({
114
- name: 'ShTable',
115
- components: {
116
- shColumn,
117
- importModal
118
- },
119
- props: {
120
- ...props
121
- },
122
- emits: [
123
- 'current-change',
124
- 'radio-change',
125
- 'selection-change',
126
- 'cell-click',
127
- 'cell-dblclick',
128
- 'header-cell-click',
129
- 'sort-change',
130
- 'filter-change',
131
- 'toggle-row-expand',
132
- 'toggle-tree-expand',
133
- 'edit-closed',
134
- 'edit-actived',
135
- 'scroll',
136
- 'custom',
137
- 'page-change',
138
- 'toolbar-button-click',
139
- 'toolbar-tool-click',
140
-
141
- 'form-submit',
142
- 'form-reset',
143
- 'form-edit-closed',
144
- 'form-submit-invalid',
145
- 'import-confirm',
146
- 'globaloption',
147
- 'toolbaroption'
148
- ],
149
- setup(props, context) {
150
- const { proxy } = getCurrentInstance()
151
- const { emit, slots } = context
152
- const tableWrapRef = ref()
153
- const topSlotRef = ref()
154
- const formSlotRef = ref()
155
- const toolbarSlotRef = ref()
156
- const headSlotRef = ref()
157
- const footSlotRef = ref()
158
- const pagerSlotRef = ref()
159
- const bottomSlotRef = ref()
160
- const tableHeight = ref(props.height)
161
-
162
- const useTableHooks = useTable(props, context, proxy)
163
-
164
- const isTopSlot = computed(() => Boolean(slots.top))
165
- const isFormSlot = computed(() => useTableHooks.tableGlobalConfig.value.search || Boolean(slots.form))
166
- const isToolbarSlot = computed(() => {
167
- const { title, globalFilter } = useTableHooks.tableGlobalConfig.value
168
- return title || globalFilter || slots.toolbar || slots.toolbarLeft || slots.toolbarRight || useTableHooks.tableTools.value.length
169
- })
170
- const isHeadSlot = computed(() => Boolean(slots.head))
171
- const isFootSlot = computed(() => Boolean(slots.foot))
172
- const isPagerSlot = computed(() => useTableHooks.tablePagerConfig.value.enabled)
173
- const isBottomSlot = computed(() => Boolean(slots.bottom))
174
-
175
- provide(
176
- 'ShTableInstance',
177
- reactive({
178
- columnObjConfig: useTableHooks.tableColumnObjConfig,
179
- turnColumnItemFilters: useTableHooks.turnColumnItemFilters,
180
- slots: useTableHooks.slots
181
- })
182
- )
183
-
184
- const handleResize = e => {
185
- if (useTableHooks.wrapHeight.value === 'auto') return
186
- let slotRefs = [topSlotRef, formSlotRef, toolbarSlotRef, headSlotRef, footSlotRef, pagerSlotRef, bottomSlotRef]
187
- let otherHeight = 0
188
- let parentHeight = tableWrapRef.value?.offsetHeight
189
- slotRefs.forEach(slotRef => {
190
- otherHeight += slotRef.value?.offsetHeight || 0
191
- })
192
- tableHeight.value = parentHeight - otherHeight
193
- }
194
-
195
- return {
196
- ...useTableHooks,
197
- tableWrapRef,
198
- topSlotRef,
199
- formSlotRef,
200
- toolbarSlotRef,
201
- headSlotRef,
202
- footSlotRef,
203
- pagerSlotRef,
204
- bottomSlotRef,
205
- tableHeight,
206
- isTopSlot,
207
- isFormSlot,
208
- isToolbarSlot,
209
- isHeadSlot,
210
- isFootSlot,
211
- isPagerSlot,
212
- isBottomSlot,
213
- handleResize
214
- }
215
- }
216
- })
217
- </script>
1
+ <template>
2
+ <div ref="tableWrapRef" class="sh-vxe-table" :class="{ 'sh-table-ghost': tableGlobalConfig.ghost, 'is--loading': tableBindConfig.loading }" :style="{ height: wrapHeight }">
3
+ <div v-if="isTopSlot" ref="topSlotRef" v-resize="handleResize" class="sh-table-top"><slot name="top"></slot></div>
4
+ <div v-if="isFormSlot" ref="formSlotRef" v-resize="handleResize" class="sh-table-form">
5
+ <slot name="form">
6
+ <sh-query v-bind="tableQueryConfig" @submit="onFormSubmit" @reset="onFormReset" @collapsed="onFormCollapsed" @edit-closed="onFormEditClosed">
7
+ <template #footLeft><slot name="formLeft"></slot></template>
8
+ <template #footRight><slot name="formRight"></slot></template>
9
+ </sh-query>
10
+ </slot>
11
+ </div>
12
+ <div v-if="isToolbarSlot" ref="toolbarSlotRef" v-resize="handleResize" class="sh-table-toolbar">
13
+ <slot name="toolbar">
14
+ <div class="sh-table-toolbar-wrap">
15
+ <div class="sh-table-toolbar-left">
16
+ <div v-if="tableGlobalConfig.title" class="sh-table-toolbar-item">
17
+ <h3 class="tableName">{{ tableGlobalConfig.tableName }}</h3>
18
+ </div>
19
+ <!--ps:全表搜索不支持反转-->
20
+ <div v-if="tableGlobalConfig.globalFilter" class="sh-table-toolbar-item">
21
+ <vxe-input v-model="tableFilterText" v-bind="tableFilterConfig" @blur="handleTableFilter" @clear="handleTableFilter" @search-click="handleTableFilter" />
22
+ <span v-if="tableFilterData">
23
+ 共搜索到 <strong>{{ tableFilterData.length }}</strong> 条数据
24
+ </span>
25
+ </div>
26
+ <div v-if="slots.toolbarLeft" class="sh-table-toolbar-item">
27
+ <slot name="toolbarLeft"></slot>
28
+ </div>
29
+ </div>
30
+ <div class="sh-table-toolbar-right">
31
+ <div v-if="slots.toolbarRight" class="sh-table-toolbar-item">
32
+ <slot name="toolbarRight"></slot>
33
+ </div>
34
+ <template v-for="(tool, toolIndex) in tableTools" :key="toolIndex">
35
+ <div class="sh-table-toolbar-item">
36
+ <vxe-button v-ripple :size="size" v-bind="tool" @click="handleTableTool(tool)"></vxe-button>
37
+ </div>
38
+ </template>
39
+ </div>
40
+ </div>
41
+ </slot>
42
+ </div>
43
+ <div v-if="isHeadSlot" ref="headSlotRef" v-resize="handleResize" class="sh-table-head"><slot name="head"></slot></div>
44
+ <vxe-table
45
+ :id="id"
46
+ ref="tableRef"
47
+ :key="renderKey"
48
+ :class="{ 'is--hasfooter': showFooter }"
49
+ v-bind="tableBindConfig"
50
+ :height="tableHeight"
51
+ @current-change="onCurrentChange"
52
+ @radio-change="onRadioChange"
53
+ @checkbox-change="onSelectionChange"
54
+ @checkbox-all="onSelectionChange"
55
+ @checkbox-range-end="onSelectionChange"
56
+ @cell-click="onCellClick"
57
+ @cell-dblclick="onCellDblClick"
58
+ @header-cell-click="onHeaderCellClick"
59
+ @sort-change="onSortChange"
60
+ @filter-change="onFilterChange"
61
+ @toggle-row-expand="onToggleRowExpand"
62
+ @toggle-tree-expand="onToggleTreeExpand"
63
+ @edit-closed="onEditClosed"
64
+ @edit-actived="onEditActived"
65
+ @scroll="onScroll"
66
+ @custom="onCustom"
67
+ @toolbar-button-click="onToolbarButtonClick"
68
+ @toolbar-tool-click="onToolbarToolClick"
69
+ @option-click="handleGoptionClick">
70
+ <template v-if="customLayout">
71
+ <slot></slot>
72
+ </template>
73
+ <template v-else>
74
+ <template v-for="(column, columnIndex) in tablePrevColumns" :key="columnIndex">
75
+ <vxe-column v-bind="column"></vxe-column>
76
+ </template>
77
+ <template v-for="(column, columnIndex) in columns" :key="columnIndex">
78
+ <sh-column :column="column"></sh-column>
79
+ </template>
80
+ </template>
81
+ <template #empty>
82
+ <sh-empty :icon="emptyIcon" :content="emptyText"></sh-empty>
83
+ </template>
84
+ </vxe-table>
85
+ <div v-if="isFootSlot" ref="footSlotRef" v-resize="handleResize" class="sh-table-foot"><slot name="foot"></slot></div>
86
+ <div v-if="isPagerSlot" ref="pagerSlotRef" v-resize="handleResize" class="sh-table-pager">
87
+ <vxe-pager ref="pagerSlotRef" v-bind="tablePagerConfig" @page-change="onPageChange">
88
+ <template #pagerLeft>
89
+ <div v-if="selectionRows.length" class="sh-table-footer-info">
90
+ 已选择 <strong>{{ selectionRows.length }}</strong> 项
91
+ </div>
92
+ <slot name="pagerLeft"></slot>
93
+ </template>
94
+ <template #pagerRight>
95
+ <slot name="pagerRight"></slot>
96
+ </template>
97
+ </vxe-pager>
98
+ </div>
99
+ <div v-if="isBottomSlot" ref="bottomSlotRef" v-resize="handleResize" class="sh-table-bottom"><slot name="bottom"></slot></div>
100
+ <!--导入弹窗-->
101
+ <importModal v-if="importBindConfig.modalConfig.modelValue" v-bind="importBindConfig" @confirm="setImportData"></importModal>
102
+ </div>
103
+ </template>
104
+
105
+ <script>
106
+ import { computed, defineComponent, getCurrentInstance, provide, ref, reactive } from 'vue'
107
+ import './css/index.scss'
108
+
109
+ import props from './js/props'
110
+ import shColumn from './components/sh-column.vue'
111
+ import importModal from './components/importModal.vue'
112
+ import useTable from './js/useTable'
113
+ export default defineComponent({
114
+ name: 'ShTable',
115
+ components: {
116
+ shColumn,
117
+ importModal
118
+ },
119
+ props: {
120
+ ...props
121
+ },
122
+ emits: [
123
+ 'current-change',
124
+ 'radio-change',
125
+ 'selection-change',
126
+ 'cell-click',
127
+ 'cell-dblclick',
128
+ 'header-cell-click',
129
+ 'sort-change',
130
+ 'filter-change',
131
+ 'toggle-row-expand',
132
+ 'toggle-tree-expand',
133
+ 'edit-closed',
134
+ 'edit-actived',
135
+ 'scroll',
136
+ 'custom',
137
+ 'page-change',
138
+ 'toolbar-button-click',
139
+ 'toolbar-tool-click',
140
+
141
+ 'form-submit',
142
+ 'form-reset',
143
+ 'form-edit-closed',
144
+ 'form-submit-invalid',
145
+ 'import-confirm',
146
+ 'globaloption',
147
+ 'toolbaroption'
148
+ ],
149
+ setup(props, context) {
150
+ const { proxy } = getCurrentInstance()
151
+ const { emit, slots } = context
152
+ const tableWrapRef = ref()
153
+ const topSlotRef = ref()
154
+ const formSlotRef = ref()
155
+ const toolbarSlotRef = ref()
156
+ const headSlotRef = ref()
157
+ const footSlotRef = ref()
158
+ const pagerSlotRef = ref()
159
+ const bottomSlotRef = ref()
160
+ const tableHeight = ref(props.height)
161
+
162
+ const useTableHooks = useTable(props, context, proxy)
163
+
164
+ const isTopSlot = computed(() => Boolean(slots.top))
165
+ const isFormSlot = computed(() => useTableHooks.tableGlobalConfig.value.search || Boolean(slots.form))
166
+ const isToolbarSlot = computed(() => {
167
+ const { title, globalFilter } = useTableHooks.tableGlobalConfig.value
168
+ return title || globalFilter || slots.toolbar || slots.toolbarLeft || slots.toolbarRight || useTableHooks.tableTools.value.length
169
+ })
170
+ const isHeadSlot = computed(() => Boolean(slots.head))
171
+ const isFootSlot = computed(() => Boolean(slots.foot))
172
+ const isPagerSlot = computed(() => useTableHooks.tablePagerConfig.value.enabled)
173
+ const isBottomSlot = computed(() => Boolean(slots.bottom))
174
+
175
+ provide(
176
+ 'ShTableInstance',
177
+ reactive({
178
+ columnObjConfig: useTableHooks.tableColumnObjConfig,
179
+ turnColumnItemFilters: useTableHooks.turnColumnItemFilters,
180
+ slots: useTableHooks.slots
181
+ })
182
+ )
183
+
184
+ const handleResize = e => {
185
+ if (useTableHooks.wrapHeight.value === 'auto') return
186
+ let slotRefs = [topSlotRef, formSlotRef, toolbarSlotRef, headSlotRef, footSlotRef, pagerSlotRef, bottomSlotRef]
187
+ let otherHeight = 0
188
+ let parentHeight = tableWrapRef.value?.offsetHeight
189
+ slotRefs.forEach(slotRef => {
190
+ otherHeight += slotRef.value?.offsetHeight || 0
191
+ })
192
+ tableHeight.value = parentHeight - otherHeight
193
+ }
194
+
195
+ return {
196
+ ...useTableHooks,
197
+ tableWrapRef,
198
+ topSlotRef,
199
+ formSlotRef,
200
+ toolbarSlotRef,
201
+ headSlotRef,
202
+ footSlotRef,
203
+ pagerSlotRef,
204
+ bottomSlotRef,
205
+ tableHeight,
206
+ isTopSlot,
207
+ isFormSlot,
208
+ isToolbarSlot,
209
+ isHeadSlot,
210
+ isFootSlot,
211
+ isPagerSlot,
212
+ isBottomSlot,
213
+ handleResize
214
+ }
215
+ }
216
+ })
217
+ </script>