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="
|
|
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
package/views/login_1/index.vue
CHANGED
|
@@ -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 {
|