replace el-switch with Switch component

This commit is contained in:
pa
2026-01-07 21:02:13 +09:00
committed by Natsumi
parent cf2469698c
commit 483ed97b22
14 changed files with 90 additions and 44 deletions

View File

@@ -7,12 +7,14 @@
></TooltipWrapper>
</div>
<el-switch class="switch" :model-value="value" @change="change" :disabled="disabled"></el-switch>
<Switch class="switch" :model-value="value" @update:modelValue="change" :disabled="disabled" />
</div>
</template>
<script setup>
import { InfoFilled } from '@element-plus/icons-vue';
import { Switch } from '../../../components/ui/switch';
defineProps({
label: String,
value: Boolean,

View File

@@ -9,7 +9,7 @@
<div style="margin-top: 10px">
<div style="display: flex; align-items: center; justify-content: space-between; font-size: 12px">
<span class="name" style="margin-right: 24px">{{ t('dialog.registry_backup.auto_backup') }}</span>
<el-switch :model-value="vrcRegistryAutoBackup" @change="setVrcRegistryAutoBackup"></el-switch>
<Switch :model-value="vrcRegistryAutoBackup" @update:modelValue="setVrcRegistryAutoBackup" />
</div>
<div
style="
@@ -20,7 +20,7 @@
margin-top: 5px;
">
<span class="name" style="margin-right: 24px">{{ t('dialog.registry_backup.ask_to_restore') }}</span>
<el-switch :model-value="vrcRegistryAskRestore" @change="setVrcRegistryAskRestore"></el-switch>
<Switch :model-value="vrcRegistryAskRestore" @update:modelValue="setVrcRegistryAskRestore" />
</div>
<DataTable v-bind="registryBackupTable" style="margin-top: 10px">
<el-table-column :label="t('dialog.registry_backup.name')" prop="name"></el-table-column>
@@ -85,6 +85,7 @@
import { downloadAndSaveJson, formatDateFilter, removeFromArray } from '../../../shared/utils';
import { useAdvancedSettingsStore, useVrcxStore } from '../../../stores';
import { Switch } from '../../../components/ui/switch';
import configRepository from '../../../service/config';