keep alive prev instance dialog

This commit is contained in:
pa
2026-01-22 16:10:18 +09:00
parent a1f4a22609
commit ab4dde0836
5 changed files with 40 additions and 12 deletions

View File

@@ -28,8 +28,10 @@
</template>
<script setup>
import { DialogHeader, DialogTitle } from '@/components/ui/dialog';
defineOptions({ name: 'PreviousInstancesWorldDialog' });
import { computed, ref, watch } from 'vue';
import { DialogHeader, DialogTitle } from '@/components/ui/dialog';
import { InputGroupField } from '@/components/ui/input-group';
import { storeToRefs } from 'pinia';
import { useI18n } from 'vue-i18n';
@@ -67,11 +69,11 @@
const vrcxStore = useVrcxStore();
const rawRows = ref([]);
const search = ref('');
const pageSizes = [10, 25, 50, 100];
const pageSize = ref(10);
const tableStyle = { maxHeight: '400px' };
const loading = ref(false);
const search = ref('');
const displayRows = computed(() => {
const q = String(search.value ?? '')
@@ -108,6 +110,9 @@
initialPagination: {
pageIndex: 0,
pageSize: pageSize.value
},
tableOptions: {
autoResetPageIndex: false
}
});