Skip to content

Commit 259063b

Browse files
committed
feat: Add documentation cell
1 parent 4b700eb commit 259063b

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/locales/en-US.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
},
3838
"profile": {
3939
"login": "Login",
40-
"settings": "Settings"
40+
"settings": "Settings",
41+
"doc": "documentation"
4142
},
4243
"keepAlive": {
4344
"label": "The current component will be cached"

src/locales/zh-CN.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
},
3838
"profile": {
3939
"login": "登录",
40-
"settings": "设置"
40+
"settings": "设置",
41+
"doc": "文档"
4142
},
4243
"keepAlive": {
4344
"label": "当前组件将会被缓存"

src/pages/profile/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ function login() {
3232

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

0 commit comments

Comments
 (0)