vue2-client 1.18.18 → 1.18.19

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.18.18",
3
+ "version": "1.18.19",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -268,6 +268,24 @@ const isHiddenFunctionalArea = computed(() => {
268
268
  }
269
269
  }
270
270
 
271
+ // 修复数据量少时下拉框被挡住的问题:为表格内容区域设置最小高度
272
+ // 当表格有数据时,确保表格内容区域有足够高度,避免下拉框被挡住
273
+ // 注意:只在表格有数据时应用,避免空表格时显示问题
274
+ :deep(.table-wrapper) {
275
+ .ant-table:not(.ant-table-empty) {
276
+ .ant-table-content {
277
+ // 设置最小高度,确保即使数据少时也有足够空间显示下拉框
278
+ // 这个高度应该足够显示下拉框选项(通常下拉框高度约200-300px)
279
+ min-height: 300px;
280
+
281
+ .ant-table-body {
282
+ // 确保表格体也有最小高度,保证滚动容器有足够空间
283
+ min-height: 250px;
284
+ }
285
+ }
286
+ }
287
+ }
288
+
271
289
  // 表格样式
272
290
  &.h-form-table-table {
273
291
  :deep(.ant-table-small .ant-table-fixed-header) {
@@ -1009,7 +1009,24 @@ export default {
1009
1009
  * @param toFirstPage 是否到第一页
1010
1010
  */
1011
1011
  refresh (toFirstPage = true) {
1012
- this.$refs.xTable.refresh(toFirstPage)
1012
+ if (this.tableShowMode === 'popup') {
1013
+ this.tableModalVisible = true
1014
+ this.$nextTick(() => {
1015
+ // 等待 Modal 中的 x-table 渲染完成
1016
+ if (this.$refs.xTable) {
1017
+ // 如果有待初始化的配置,先初始化表格
1018
+ if (this.pendingTableInit) {
1019
+ this.$refs.xTable.init(this.pendingTableInit)
1020
+ this.$emit('afterTableInit')
1021
+ this.pendingTableInit = null
1022
+ }
1023
+ this.$refs.xTable.refresh(toFirstPage)
1024
+ this.$refs.xTable.summaryUpdate = true
1025
+ }
1026
+ })
1027
+ } else {
1028
+ this.$refs.xTable.refresh(toFirstPage)
1029
+ }
1013
1030
  },
1014
1031
  /**
1015
1032
  * 获取表格数据