|
@@ -1,11 +1,11 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <Field v-bind="$attrs" placeholder="请选择" arrow-direction="down" is-link readonly @click="showSheet = true">
|
|
|
|
|
|
|
+ <Field v-bind="$attrs" :placeholder="t('common.choice')" arrow-direction="down" is-link readonly @click="showSheet = true">
|
|
|
<template #input v-if="currencyItem">
|
|
<template #input v-if="currencyItem">
|
|
|
<app-image-icon :url="getCurrencyIconUrl(currencyItem.enumitemvalue)" size="small" />
|
|
<app-image-icon :url="getCurrencyIconUrl(currencyItem.enumitemvalue)" size="small" />
|
|
|
<span>{{ currencyItem.label }}</span>
|
|
<span>{{ currencyItem.label }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</Field>
|
|
</Field>
|
|
|
- <ActionSheet v-model:show="showSheet" title="请选择" teleport="body">
|
|
|
|
|
|
|
+ <ActionSheet v-model:show="showSheet" :title="t('common.choice')" teleport="body">
|
|
|
<CellGroup style="min-height: 200px;">
|
|
<CellGroup style="min-height: 200px;">
|
|
|
<RadioGroup v-model="currencyId" v-if="currencyList.length">
|
|
<RadioGroup v-model="currencyId" v-if="currencyList.length">
|
|
|
<template v-for="(item, index) in currencyList" :key="index">
|
|
<template v-for="(item, index) in currencyList" :key="index">
|
|
@@ -21,7 +21,7 @@
|
|
|
</Cell>
|
|
</Cell>
|
|
|
</template>
|
|
</template>
|
|
|
</RadioGroup>
|
|
</RadioGroup>
|
|
|
- <Empty description="暂无数据" v-else />
|
|
|
|
|
|
|
+ <Empty :description="t('common.nodatas')" v-else />
|
|
|
</CellGroup>
|
|
</CellGroup>
|
|
|
</ActionSheet>
|
|
</ActionSheet>
|
|
|
</template>
|
|
</template>
|
|
@@ -33,6 +33,7 @@ import { getCurrencyIconUrl } from '@/filters'
|
|
|
import { getDigitalCurrencyList } from '@/constants/order'
|
|
import { getDigitalCurrencyList } from '@/constants/order'
|
|
|
import { useSpotAccountStore } from '../../views/wallet/components/spot/composables'
|
|
import { useSpotAccountStore } from '../../views/wallet/components/spot/composables'
|
|
|
import AppImageIcon from '@mobile/components/base/image-icon/index.vue'
|
|
import AppImageIcon from '@mobile/components/base/image-icon/index.vue'
|
|
|
|
|
+import { i18n } from '@/stores'
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
|
modelValue: {
|
|
modelValue: {
|
|
@@ -41,7 +42,7 @@ const props = defineProps({
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
const emit = defineEmits(['update:modelValue', 'change'])
|
|
const emit = defineEmits(['update:modelValue', 'change'])
|
|
|
-
|
|
|
|
|
|
|
+const { global: { t } } = i18n
|
|
|
const showSheet = shallowRef(false)
|
|
const showSheet = shallowRef(false)
|
|
|
const spotAccountStore = useSpotAccountStore()
|
|
const spotAccountStore = useSpotAccountStore()
|
|
|
const digitalCurrencyList = getDigitalCurrencyList()
|
|
const digitalCurrencyList = getDigitalCurrencyList()
|