add point rule sort

This commit is contained in:
Timi
2026-08-19 16:12:12 +08:00
parent 84bc6d137d
commit f4fb604f53
7 changed files with 193 additions and 41 deletions
+1 -15
View File
@@ -44,15 +44,6 @@
</t-cell-group>
<div v-else class="empty-block" v-text="isLoading ? '正在加载登记事件' : '暂无登记事件'" />
</div>
<t-button
class="save"
theme="primary"
:loading="isSaving"
:disabled="!sortDirty || isSaving || isLoading"
@click="saveSort"
>
保存排序
</t-button>
</div>
</template>
@@ -151,6 +142,7 @@ async function loadData(): Promise<void> {
onMounted(async () => {
navBarStore.clearRight();
navBarStore.setRightText("保存", "var(--td-brand-color)", saveSort);
try {
await loadData();
} catch {
@@ -218,12 +210,6 @@ onUnmounted(() => {
text-align: center;
}
.save {
left: 1rem;
right: 1rem;
bottom: calc(.75rem + env(safe-area-inset-bottom, 0));
position: fixed;
}
}
:global(html.theme-dark) {