Merge pull request #383 from sxlmnwb/v3-single

add routerlink to transaction
This commit is contained in:
ping 2023-05-18 06:46:41 +08:00 committed by GitHub
commit 99f9c60b34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 6 deletions

View File

@ -458,8 +458,10 @@ loadAccount(props.address);
v.height
}}</RouterLink>
</td>
<td class="text-truncate py-3" style="max-width: 200px">
<td class="text-truncate text-primary py-3" style="max-width: 200px">
<RouterLink :to="`/${chain}/tx/${v.txhash}`">
{{ v.txhash }}
</RouterLink>
</td>
<td class="flex items-center py-3">
<div class="mr-2">

View File

@ -71,8 +71,12 @@ const format = useFormatter();
</thead>
<tbody >
<tr v-for="(item,index) in base.txsInRecents" :index="index">
<td>{{ item.height }}</td>
<td class="text-xs truncate" width="50%">
<td class="text-sm text-primary">
<RouterLink
:to="`/${props.chain}/block/${item.height}`"
>{{ item.height }}</RouterLink
></td>
<td class="truncate text-primary" width="50%">
<RouterLink :to="`/${props.chain}/tx/${item.hash}`">{{
item.hash
}}</RouterLink>

View File

@ -396,8 +396,10 @@ onMounted(() => {
item.height
}}</RouterLink>
</td>
<td class="text-truncate" style="max-width: 200px">
<td class="text-truncate text-primary" style="max-width: 200px">
<RouterLink :to="`/${props.chain}/tx/${item.txhash}`">
{{ item.txhash }}
</RouterLink>
</td>
<td>
<div class="flex items-center">

View File

@ -39,7 +39,7 @@ const messages = computed(() => {
</tr>
<tr>
<td>Height</td>
<td>
<td class="text-primary">
<RouterLink
:to="`/${props.chain}/block/${tx.tx_response.height}`"
>{{ tx.tx_response.height }}</RouterLink
@ -55,7 +55,7 @@ const messages = computed(() => {
tx.tx_response.code === 0 ? 'success' : 'error'
}`"
>
<span
<span
class="inset-x-0 inset-y-0 opacity-10 absolute"
:class="`bg-${
tx.tx_response.code === 0 ? 'success' : 'error'