|
|
@@ -1,11 +1,11 @@
|
|
|
<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="tokenItem">
|
|
|
<app-image-icon :url="tokenItem.icon_url" size="small" />
|
|
|
<span>{{ tokenItem.name }} ({{ tokenItem.chain_id }})</span>
|
|
|
</template>
|
|
|
</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;">
|
|
|
<RadioGroup v-model="tokenId" v-if="dataList.length">
|
|
|
<template v-for="(item, index) in dataList" :key="index">
|
|
|
@@ -20,7 +20,7 @@
|
|
|
</Cell>
|
|
|
</template>
|
|
|
</RadioGroup>
|
|
|
- <Empty description="暂无数据" v-else />
|
|
|
+ <Empty :description="t('common.nodatas')" v-else />
|
|
|
</CellGroup>
|
|
|
</ActionSheet>
|
|
|
</template>
|
|
|
@@ -31,6 +31,7 @@ import { Field, ActionSheet, CellGroup, RadioGroup, Cell, Radio, Empty } from 'v
|
|
|
import { useRequest } from '@/hooks/request'
|
|
|
import { queryWalletTokens } from '@/services/api/digital'
|
|
|
import AppImageIcon from '@mobile/components/base/image-icon/index.vue'
|
|
|
+import { i18n } from '@/stores'
|
|
|
|
|
|
const props = defineProps({
|
|
|
modelValue: {
|
|
|
@@ -43,7 +44,7 @@ const props = defineProps({
|
|
|
})
|
|
|
|
|
|
const emit = defineEmits(['update:modelValue', 'change'])
|
|
|
-
|
|
|
+const { global: { t } } = i18n
|
|
|
const showSheet = shallowRef(false)
|
|
|
|
|
|
const tokenItem = computed(() => dataList.value.find((e) => e.id === tokenId.value))
|