feat: add param menu

This commit is contained in:
alisa 2023-04-26 14:24:48 +08:00
parent 7be0c4c8a1
commit a94e3be787
5 changed files with 26 additions and 15 deletions

View File

@ -1,12 +0,0 @@
<template>
<div class="text-main text-h5 mb-4">Parameters</div>
<div class="bg-card px-4 pt-3 pb-4 rounded-sm">
<div class="text-base mb-3 text-main">Minting Parameters</div>
<div class="grid grid-cols-5 gap-4">
<div v-for="item in 10" :key="item" class="rounded-sm bg-active px-4 py-2">
<div class="text-xs mb-2 text-secondary">Blocks Per Year</div>
<div class="text-base text-main">4,360,000</div>
</div>
</div>
</div>
</template>

View File

@ -0,0 +1,21 @@
<script lang="ts" setup>
</script>
<template>
<div class="bg-card px-4 pt-3 pb-4 rounded-sm">
<div class="text-base mb-3 text-main">Minting Parameters</div>
<div class="grid grid-cols-5 gap-4">
<div v-for="item in 10" :key="item" class="rounded-sm bg-active px-4 py-2">
<div class="text-xs mb-2 text-secondary">Blocks Per Year</div>
<div class="text-base text-main">4,360,000</div>
</div>
</div>
</div>
</template>
<route>
{
meta: {
i18n: 'parameters'
}
}
</route>

View File

@ -3,7 +3,8 @@
"dashboard": "面板首页",
"blocks": "区块和交易",
"staking": "质押生息",
"governance": "社区治理"
"governance": "社区治理",
"parameters": "参数"
},
"index": {
"slogan": "Ping Dashboard 是一个区块链浏览器,也是一个网页钱包,还有更多 ... 🛠",

View File

@ -3,7 +3,8 @@
"dashboard": "Dashboard",
"blocks": "Blocks&Transaction",
"staking": "Staking",
"governance": "Governance"
"governance": "Governance",
"parameters": "Parameters"
},
"index": {
"slogan": "Ping Dashboard is not just an explorer but also a wallet and more ... 🛠",

View File

@ -230,8 +230,8 @@ watch(isVerticalNavMini(windowWidth, isVerticalNavHovered), val => {
class="nav-group-children"
>
<Component
:is="'children' in child ? 'VerticalNavGroup' : VerticalNavLink"
v-for="child in item.children"
:is="'children' in child ? 'VerticalNavGroup' : VerticalNavLink"
:key="child.title"
:item="child"
/>