This commit is contained in:
2026-07-01 16:15:51 +03:30
parent 6c393ecb94
commit d2c5c20729
5 changed files with 166 additions and 10 deletions
@@ -10,6 +10,13 @@
<template #unCheckedChildren>{{ labels.off }}</template>
</a-switch>
<MainWalletProductsField
v-else-if="isMainWalletProducts"
:model-value="modelValue"
:disabled="disabled"
@update:value="emit('update:value', $event)"
/>
<ZaarboxPriceKeyField
v-else-if="isZaarboxPriceKey"
:model-value="modelValue"
@@ -86,6 +93,7 @@
</template>
<script setup lang="ts">
import MainWalletProductsField from './MainWalletProductsField.vue'
import ZaarboxPriceKeyField from './ZaarboxPriceKeyField.vue'
import {
parseSelectOptions,
@@ -121,6 +129,7 @@ const fieldType = computed<SettingFieldType>(() =>
)
const isZaarboxPriceKey = computed(() => props.settingKey === 'zaarbox_price_key')
const isMainWalletProducts = computed(() => props.settingKey === 'main_wallet_products')
const selectItems = computed(() =>
parseSelectOptions({