use event-selector

This commit is contained in:
Timi
2026-08-24 16:51:21 +08:00
parent 05aad89706
commit 4033225694
+5 -20
View File
@@ -89,17 +89,11 @@
</t-button> </t-button>
</div> </div>
<div class="popup-body"> <div class="popup-body">
<t-checkbox-group v-model="selectedEventIdListProxy" class="items"> <event-selector
<t-checkbox v-model="selectedEventIdListProxy"
class="item" :event-list="eventList"
v-for="item in eventList" label=""
:key="item.id"
:value="item.id"
:label="item.name"
block
borderless
/> />
</t-checkbox-group>
</div> </div>
</div> </div>
</t-popup> </t-popup>
@@ -108,6 +102,7 @@
<script setup lang="ts"> <script setup lang="ts">
import StoreAPI from "@/api/StoreAPI"; import StoreAPI from "@/api/StoreAPI";
import EventSelector from "@/components/EventSelector.vue";
import type {EventItem} from "@/types/EventItem"; import type {EventItem} from "@/types/EventItem";
import type {EventRecord} from "@/types/EventRecord"; import type {EventRecord} from "@/types/EventRecord";
import type {StoreBusinessDay} from "@/types/Store"; import type {StoreBusinessDay} from "@/types/Store";
@@ -499,16 +494,6 @@ function toDateValue(date: Date): number {
.popup-body { .popup-body {
padding: 0; padding: 0;
} }
.items {
gap: .5rem;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
.item {
border-radius: .5rem;
}
}
} }
:global(html.theme-dark) { :global(html.theme-dark) {