befly-admin-ui 1.8.22 → 1.8.23

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.
@@ -11,7 +11,7 @@
11
11
 
12
12
  <div class="main-content">
13
13
  <div class="main-table">
14
- <TTable :data="$Data.rows" :columns="tableColumns" :loading="$Data.loading" :active-row-keys="$Data.activeRowKeys" :row-key="rowKey" :height="tableHeight" active-row-type="single" @active-change="onActiveChange">
14
+ <TTable :data="$Data.rows" :columns="tableColumns" :loading="$Data.loading" :active-row-keys="$Data.activeRowKeys" :row-key="rowKey" :height="resolvedTableHeight" active-row-type="single" @active-change="onActiveChange">
15
15
  <template #operation="scope">
16
16
  <slot name="operation" v-bind="buildOperationSlotProps(scope)"></slot>
17
17
  </template>
@@ -60,6 +60,10 @@ const props = defineProps({
60
60
  type: String,
61
61
  default: "calc(100vh - var(--search-height) - var(--pagination-height) - var(--layout-gap) * 4)"
62
62
  },
63
+ isPagination: {
64
+ type: Boolean,
65
+ default: true
66
+ },
63
67
  pageSize: {
64
68
  type: Number,
65
69
  default: 30
@@ -200,6 +204,13 @@ const tableColumns = computed(() => columnsMeta.value.tableColumns);
200
204
 
201
205
  const detailFields = computed(() => columnsMeta.value.detailFields);
202
206
 
207
+ const resolvedTableHeight = computed(() => {
208
+ if (props.isPagination) {
209
+ return props.tableHeight;
210
+ }
211
+ return "calc(100vh - var(--search-height) - var(--layout-gap) * 2)";
212
+ });
213
+
203
214
  const forwardedTableSlotNames = computed(() => {
204
215
  if (Array.isArray(props.tableSlotNames) && props.tableSlotNames.length > 0) {
205
216
  const out = [];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "befly-admin-ui",
3
- "version": "1.8.22",
4
- "gitHead": "757e491f7d2d22339b35ffd577c14778203e5757",
3
+ "version": "1.8.23",
4
+ "gitHead": "92ce66448bbb82aea5a864b0430c3b670c09f47f",
5
5
  "private": false,
6
6
  "description": "Befly - 管理后台功能组件",
7
7
  "keywords": [
@@ -117,7 +117,7 @@ async function apiLogin() {
117
117
 
118
118
  MessagePlugin.success(res.msg || "登录成功");
119
119
 
120
- await router.push("/");
120
+ await router.push(import.meta.env.VITE_HOME_PATH);
121
121
  } catch (error) {
122
122
  MessagePlugin.error(error.msg || error.message || "登录失败");
123
123
  } finally {