Skip to content

Commit 31b8f33

Browse files
committed
feat(pages):update mine center
1 parent 5ec6d30 commit 31b8f33

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

src/components/XmWallet/src/Numberical/numberical.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<template>
22
<view :class="styles['wrapper']">
3-
<text>{{ number ?? 0 }}</text>
4-
<text>{{ unit ?? '-' }}</text>
3+
<nut-badge value="101">
4+
<view>
5+
<text>{{ number ?? 0 }}</text>
6+
<text>{{ unit ?? '-' }}</text>
7+
</view>
8+
</nut-badge>
59
</view>
610
</template>
711

src/components/XmWallet/src/index.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<template>
22
<view :class="styles['wrapper']">
33
<numberical number="12.3" unit="" />
4-
<text>{{ title ?? '-' }}</text>
5-
<text>{{ desc ?? '-' }}</text>
4+
<view :class="styles['descriptions']">
5+
<text>{{ title ?? '-' }}</text>
6+
<text>{{ desc ?? '-' }}</text>
7+
</view>
68
</view>
79
</template>
810

src/components/XmWallet/src/xmWallet.module.styl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
.wrapper
44
position relative
5-
display block
6-
background-color #fff
7-
padding 32px 20px 28px
8-
border-radius $xm-card-br-sm
5+
6+
.descriptions
7+
display flex
8+
align-items center
9+
flex-direction column

src/components/nutui/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { App } from 'vue';
22
// 定制化主题必须使用 scss
33
import '@nutui/nutui-taro/dist/styles/themes/default.scss';
4-
import { Button, Cell, Icon, Form, FormItem, CellGroup, TextArea, Avatar } from '@nutui/nutui-taro';
4+
import { Button, Cell, Icon, Form, FormItem, CellGroup, TextArea, Avatar, Badge } from '@nutui/nutui-taro';
55

6-
const components = [Button, Cell, Icon, Form, FormItem, CellGroup, TextArea, Avatar];
6+
const components = [Button, Cell, Icon, Form, FormItem, CellGroup, TextArea, Avatar, Badge];
77

88
export default class NutUI {
99
static install(Vue: App<Element> /* options */) {

0 commit comments

Comments
 (0)