diff --git a/components.d.ts b/components.d.ts
index ea66189..dc4aea1 100644
--- a/components.d.ts
+++ b/components.d.ts
@@ -14,6 +14,7 @@ declare module '@vue/runtime-core' {
ElIcon: typeof import('element-plus/es')['ElIcon']
ElInput: typeof import('element-plus/es')['ElInput']
ElPagination: typeof import('element-plus/es')['ElPagination']
+ ElPopover: typeof import('element-plus/es')['ElPopover']
ElSkeleton: typeof import('element-plus/es')['ElSkeleton']
ElSkeletonItem: typeof import('element-plus/es')['ElSkeletonItem']
ElTabPane: typeof import('element-plus/es')['ElTabPane']
diff --git a/src/components/table/dBase/tokensDetailsRow.vue b/src/components/table/dBase/tokensDetailsRow.vue
index a6785ca..66e986a 100644
--- a/src/components/table/dBase/tokensDetailsRow.vue
+++ b/src/components/table/dBase/tokensDetailsRow.vue
@@ -10,15 +10,31 @@
class="flex flex-1 flex-row justify-start items-center tokens-select"
v-if="title === 'Tokens'"
>
-
-
-
+
+
+
+
+ {{ list?.length || 0 }} token
+
+
+
+
+
+
import { ElSelect, ElOption } from 'element-plus'
import Icons from '@src/components/icons/index.vue'
-import { onMounted, ref } from 'vue'
+import { onMounted, ref, watchEffect } from 'vue'
const props = defineProps({
title: String,
value: [Number, String, Array] as any,
@@ -53,16 +69,14 @@ const props = defineProps({
isCopy: Boolean,
isLast: Boolean,
})
+const list = ref
([])
-onMounted(() => {
- console.log(props.title)
+watchEffect(() => {
if (props.title === 'Tokens') {
list.value = props.value
+ console.log(list.value)
}
})
-
-const list = ref([])
-const active = ref('')
diff --git a/src/components/table/desktop/tokensDetails.vue b/src/components/table/desktop/tokensDetails.vue
index efaf843..b0d75af 100644
--- a/src/components/table/desktop/tokensDetails.vue
+++ b/src/components/table/desktop/tokensDetails.vue
@@ -48,7 +48,7 @@ const requestDetails = async (address: string) => {
const { data } = res
currentData.value = {
...data,
- // tokens: data.tokens,
+ tokens: data?.tokens,
transactions: data?.transactions + ' Transition',
transfers: data?.transfers + ' Transfers',
}
@@ -56,6 +56,9 @@ const requestDetails = async (address: string) => {
}
watchEffect(() => {
+ if (route.path.split('/')?.[1] != 'tokens') {
+ return
+ }
// 获取address
let address = route.path.split('/')?.[2]
requestDetails(address)
diff --git a/src/components/table/desktop/transactDetails.vue b/src/components/table/desktop/transactDetails.vue
index 450f88f..92d1ee2 100644
--- a/src/components/table/desktop/transactDetails.vue
+++ b/src/components/table/desktop/transactDetails.vue
@@ -4,7 +4,7 @@
>
{
currentData.value = props.data
- console.log(currentData.value)
+ if (props?.data && props.data?.receiptList.length === 0) {
+ invariable.labels = invariable.labels.filter(
+ (t) => t !== 'Tokens Transferred'
+ )
+ invariable.sequence = invariable.sequence.filter((t) => t !== 'receiptList')
+ invariable.colorSequence = invariable.colorSequence.filter(
+ (t, i) => i !== 5
+ )
+ invariable.isCopys = invariable.isCopys.filter((t, i) => i !== 5)
+ }
})
diff --git a/src/components/table/mBase/tokensDetailsRow.vue b/src/components/table/mBase/tokensDetailsRow.vue
index f553de4..efc482b 100644
--- a/src/components/table/mBase/tokensDetailsRow.vue
+++ b/src/components/table/mBase/tokensDetailsRow.vue
@@ -9,22 +9,39 @@
{{ title }}
-
+
-import { ElSelect, ElOption } from 'element-plus'
import Icons from '@src/components/icons/index.vue'
-import { onMounted, ref } from 'vue'
+import { onMounted, ref, watchEffect } from 'vue'
const props = defineProps({
title: [String, Number] as any,
value: [Number, String, Array] as any,
@@ -55,15 +71,12 @@ const props = defineProps({
isCopy: Boolean,
isLast: Boolean,
})
-
-onMounted(() => {
- console.log(props.title)
+const list = ref([])
+watchEffect(() => {
if (props.title === 'Tokens') {
list.value = props.value
}
})
-
-const list = ref([])