Skip to content

Commit

Permalink
feat: Add documentation cell
Browse files Browse the repository at this point in the history
  • Loading branch information
wswmsword committed Dec 12, 2024
1 parent 4b700eb commit 259063b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
},
"profile": {
"login": "Login",
"settings": "Settings"
"settings": "Settings",
"doc": "documentation"
},
"keepAlive": {
"label": "The current component will be cached"
Expand Down
3 changes: 2 additions & 1 deletion src/locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
},
"profile": {
"login": "登录",
"settings": "设置"
"settings": "设置",
"doc": "文档"
},
"keepAlive": {
"label": "当前组件将会被缓存"
Expand Down
1 change: 1 addition & 0 deletions src/pages/profile/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function login() {

<VanCellGroup :inset="true" class="!mt-16">
<van-cell :title="$t('profile.settings')" icon="setting-o" is-link to="/settings" />
<van-cell :title="$t('profile.doc')" icon="description-o" is-link url="https://easy-temps.github.io/easy-docs/vue3-vant-mobile/" />
</VanCellGroup>
</div>
</template>
Expand Down

0 comments on commit 259063b

Please sign in to comment.