stellar-ui-plus 1.20.13 → 1.20.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/components/ste-date-user/ste-date-user.vue +6 -2
  2. package/components/ste-dropdown-menu/ATTRIBUTES.md +0 -1
  3. package/components/ste-filter-tool/ste-filter-tool.vue +1 -1
  4. package/components/ste-goods-info/props.ts +5 -0
  5. package/components/ste-goods-info/ste-goods-info.easycom.json +11 -0
  6. package/components/ste-goods-info/ste-goods-info.vue +7 -2
  7. package/components/ste-main-info/README.md +157 -0
  8. package/components/{ste-user-info → ste-main-info}/config.json +2 -2
  9. package/components/ste-main-info/props.ts +19 -0
  10. package/components/ste-main-info/ste-main-info.easycom.json +62 -0
  11. package/components/ste-main-info/ste-main-info.scss +90 -0
  12. package/components/ste-main-info/ste-main-info.vue +187 -0
  13. package/components/ste-main-info/type.d.ts +12 -0
  14. package/components/ste-number-keyboard/ATTRIBUTES.md +0 -2
  15. package/components/ste-search/ATTRIBUTES.md +0 -1
  16. package/components/ste-stepper/props.ts +35 -33
  17. package/components/ste-stepper/ste-stepper.easycom.json +6 -0
  18. package/components/ste-stepper/ste-stepper.vue +15 -2
  19. package/index.ts +0 -18
  20. package/package.json +2 -3
  21. package/types/components.d.ts +0 -18
  22. package/types/refComponents.d.ts +0 -18
  23. package/components/ste-category/ATTRIBUTES.md +0 -11
  24. package/components/ste-date-user/ATTRIBUTES.md +0 -8
  25. package/components/ste-filter-tool/ATTRIBUTES.md +0 -15
  26. package/components/ste-function-list/ATTRIBUTES.md +0 -10
  27. package/components/ste-goods-info/ATTRIBUTES.md +0 -37
  28. package/components/ste-goods-list/ATTRIBUTES.md +0 -10
  29. package/components/ste-navbar/ATTRIBUTES.md +0 -25
  30. package/components/ste-search-box/ATTRIBUTES.md +0 -18
  31. package/components/ste-user-info/ATTRIBUTES.md +0 -18
  32. package/components/ste-user-info/README.md +0 -68
  33. package/components/ste-user-info/props.ts +0 -9
  34. package/components/ste-user-info/ste-user-info.easycom.json +0 -65
  35. package/components/ste-user-info/ste-user-info.vue +0 -20
@@ -69,7 +69,7 @@ onMounted(async () => {
69
69
  <style lang="scss" scoped>
70
70
  .ste-date-user-root {
71
71
  .box {
72
- min-width: 336rpx;
72
+ width: 336rpx;
73
73
  height: 128rpx;
74
74
  border-radius: 12rpx;
75
75
  display: flex;
@@ -80,7 +80,7 @@ onMounted(async () => {
80
80
  .left {
81
81
  width: 80rpx;
82
82
  height: 80rpx;
83
- background: #e6e8ea;
83
+ background: #f4f5f6;
84
84
  border-radius: 8rpx;
85
85
  margin: 0 28rpx;
86
86
  display: flex;
@@ -109,6 +109,10 @@ onMounted(async () => {
109
109
  height: 40rpx;
110
110
  font-size: var(--font-size-28, 28rpx);
111
111
  color: #1c1f23;
112
+ width: 160rpx; /* 设置固定宽度,也可以是百分比或者其他单位 */
113
+ white-space: nowrap; /* 禁止换行 */
114
+ overflow: hidden; /* 隐藏溢出内容 */
115
+ text-overflow: ellipsis; /* 溢出时显示省略号 */
112
116
  }
113
117
 
114
118
  .bottom {
@@ -12,7 +12,6 @@
12
12
  | `zIndex` | 弹窗层级z-index | `number` | - | - | - |
13
13
  | `type` | 下拉选项的形状 | `string` | `block` | `round`:圆形<br/>`block`:块状 | - |
14
14
  | `max` | 可选数量 | `number` | `1` | - | - |
15
- | `showPopup` | 是否显示菜单弹窗 | `boolean` | `false` | - | `1.21.0` |
16
15
 
17
16
 
18
17
  #### Events
@@ -127,7 +127,7 @@ const scrollTop = ref(0);
127
127
 
128
128
  // 计算属性
129
129
  const rootStyleVar = computed(() => ({
130
- '--active-color': props.activeColor || getColor().themeColor,
130
+ '--active-color': props.activeColor || getColor().steThemeColor,
131
131
  '--inactive-color': props.inactiveColor,
132
132
  }));
133
133
 
@@ -95,6 +95,11 @@ export default {
95
95
  type: Boolean,
96
96
  default: () => false,
97
97
  },
98
+ /** 步进器输入框只读 */
99
+ readonlyStepperInput: {
100
+ type: Boolean,
101
+ default: () => false,
102
+ },
98
103
  /** 禁用步进器 */
99
104
  disabledStepper: {
100
105
  type: Boolean,
@@ -99,6 +99,12 @@
99
99
  "type": "boolean",
100
100
  "default": false
101
101
  },
102
+ {
103
+ "name": "readonlyStepperInput",
104
+ "description": "步进器输入框只读",
105
+ "type": "boolean",
106
+ "default": false
107
+ },
102
108
  {
103
109
  "name": "disabledStepper",
104
110
  "description": "禁用步进器",
@@ -239,6 +245,11 @@
239
245
  "description": "type为item时,点击的item对象"
240
246
  }
241
247
  ]
248
+ },
249
+ {
250
+ "name": "[event]click-stepper-input",
251
+ "description": "点击步进器输入框触发",
252
+ "type": "() => void"
242
253
  }
243
254
  ]
244
255
  }
@@ -20,6 +20,7 @@ const emits = defineEmits<{
20
20
  (e: 'plus', value: number | string, suspend: () => void, next: () => void, stop: () => void): void;
21
21
  (e: 'minus', value: number | string, suspend: () => void, next: () => void, stop: () => void): void;
22
22
  (e: 'click-suggest', type: 'method' | 'back' | 'item' | 'right', item?: { label: string; value: string | number }): void;
23
+ (e: 'click-stepper-input'): void;
23
24
  }>();
24
25
 
25
26
  const _number = ref(1);
@@ -149,6 +150,8 @@ const clickSuggest = (type: 'method' | 'back' | 'item' | 'right', item?: { label
149
150
  }
150
151
  emits('click-suggest', type, item);
151
152
  };
153
+
154
+ const clickInput = () => emits('click-stepper-input');
152
155
  </script>
153
156
  <template>
154
157
  <view class="ste-goods-info-root" :style="[rootStyle]">
@@ -174,7 +177,7 @@ const clickSuggest = (type: 'method' | 'back' | 'item' | 'right', item?: { label
174
177
  </view>
175
178
  <view class="ste-goods-info-codes" @click="onClick('code')">
176
179
  {{ data.code }}
177
- <span>|</span>
180
+ <span style="color: #e6e8ea">|</span>
178
181
  {{ data.barCode }}
179
182
  </view>
180
183
  <slot>
@@ -209,9 +212,11 @@ const clickSuggest = (type: 'method' | 'back' | 'item' | 'right', item?: { label
209
212
  :disableInput="disableInput"
210
213
  :disablePlus="disablePlus"
211
214
  :disableMinus="disableMinus"
215
+ :readonlyInput="readonlyStepperInput"
212
216
  @change="numberChange"
213
217
  @plus="plus"
214
218
  @minus="minus"
219
+ @click-input="clickInput"
215
220
  />
216
221
  </view>
217
222
  </view>
@@ -422,7 +427,7 @@ const clickSuggest = (type: 'method' | 'back' | 'item' | 'right', item?: { label
422
427
  display: flex;
423
428
  align-items: center;
424
429
  justify-content: space-between;
425
- height: 72px;
430
+ height: 72rpx;
426
431
  background: #f4f5f6;
427
432
  border-radius: 4px;
428
433
  .ste-goods-info-suggest-items {
@@ -0,0 +1,157 @@
1
+ # MainInfo 主数据展示
2
+
3
+ 用于展示一些主要信息
4
+
5
+ ---$
6
+
7
+ #### 基础用法
8
+
9
+ ```html
10
+ <template>
11
+ <view style="width: 100%">
12
+ <ste-main-info
13
+ @data-click="handleDataClick"
14
+ @avatar-click="handleAvatarClick"
15
+ @user-click="handleUserClick"
16
+ mainColor="#EC3E1A"
17
+ :infoData="data1.infoData"
18
+ :infoUser="data1.infoUser"
19
+ :infoCode="data1.infoCode"
20
+ :avatarUrl="data1.avatarUrl"
21
+ />
22
+ </view>
23
+ </template>
24
+ <script lang="ts" setup>
25
+ import { reactive } from 'vue';
26
+
27
+ const data1 = reactive({
28
+ avatarUrl: 'https://image.whzb.com/chain/StellarUI/头像/付宇威1.png',
29
+ infoUser: {
30
+ title: '嗨,小百百百',
31
+ subTitle: '中百食堂',
32
+ subTitleIcon: '&#xe677;',
33
+ },
34
+ infoData: [
35
+ { name: '数据1', value: '100', key: '1' },
36
+ { name: '数据2', value: '8', key: '2' },
37
+ { name: '数据3', value: '10', key: '3' },
38
+ ],
39
+ infoCode: {
40
+ name: '核销码',
41
+ img: 'https://image.whzb.com/chain/StellarUI/image/code1.png',
42
+ },
43
+ });
44
+ </script>
45
+ ```
46
+
47
+ #### 2数据&有核销码
48
+
49
+ ```html
50
+ <template>
51
+ <view style="width: 100%">
52
+ <ste-main-info mainColor="#EC3E1A" :infoData="data2.infoData" :infoUser="data2.infoUser" :infoCode="data2.infoCode" :avatarUrl="data2.avatarUrl" />
53
+ </view>
54
+ </template>
55
+ <script lang="ts" setup>
56
+ import { reactive } from 'vue';
57
+
58
+ const data2 = reactive({
59
+ avatarUrl: 'https://image.whzb.com/chain/StellarUI/头像/付宇威1.png',
60
+ infoUser: {
61
+ title: '嗨,小百百百',
62
+ subTitle: '中百食堂',
63
+ subTitleIcon: '&#xe677;',
64
+ },
65
+ infoData: [
66
+ { name: '数据1', value: '100', key: 1 },
67
+ { name: '数据2', value: '8', key: 2 },
68
+ ],
69
+ infoCode: {
70
+ name: '核销码',
71
+ img: 'https://image.whzb.com/chain/StellarUI/image/code1.png',
72
+ },
73
+ });
74
+ </script>
75
+ ```
76
+
77
+ #### 3数据&无核销码
78
+
79
+ ```html
80
+ <template>
81
+ <view style="width: 100%">
82
+ <ste-main-info mainColor="#EC3E1A" :infoData="data3.infoData" :infoUser="data3.infoUser" :avatarUrl="data2.avatarUrl" />
83
+ </view>
84
+ </template>
85
+ <script lang="ts" setup>
86
+ import { reactive } from 'vue';
87
+
88
+ const data3 = reactive({
89
+ avatarUrl: 'https://image.whzb.com/chain/StellarUI/头像/付宇威1.png',
90
+ infoUser: {
91
+ title: '嗨,小百百百',
92
+ subTitle: '中百食堂',
93
+ subTitleIcon: '&#xe677;',
94
+ },
95
+ infoData: [
96
+ { name: '数据1', value: '100', key: 1 },
97
+ { name: '数据2', value: '8', key: 2 },
98
+ { name: '数据3', value: '10', key: 3 },
99
+ ],
100
+ });
101
+ </script>
102
+ ```
103
+
104
+ #### 无头像名称&有3个数据&有核销码
105
+
106
+ ```html
107
+ <template>
108
+ <view style="width: 100%">
109
+ <ste-main-info mainColor="#EC3E1A" :infoData="data4.infoData" :infoCode="data4.infoCode" />
110
+ </view>
111
+ </template>
112
+ <script lang="ts" setup>
113
+ import { reactive } from 'vue';
114
+
115
+ const data4 = reactive({
116
+ infoData: [
117
+ { name: '数据1', value: '100', key: 1 },
118
+ { name: '数据2', value: '8', key: 2 },
119
+ { name: '数据3', value: '10', key: 3 },
120
+ ],
121
+ infoCode: {
122
+ name: '核销码',
123
+ img: 'https://image.whzb.com/chain/StellarUI/image/code1.png',
124
+ },
125
+ });
126
+ </script>
127
+ ```
128
+
129
+ #### 无头像名称&有3个数据&无核销码
130
+
131
+ ```html
132
+ <template>
133
+ <view style="width: 100%">
134
+ <ste-main-info mainColor="#EC3E1A" :infoData="data5.infoData" />
135
+ </view>
136
+ </template>
137
+ <script lang="ts" setup>
138
+ import { reactive } from 'vue';
139
+
140
+ const data5 = reactive({
141
+ infoData: [
142
+ { name: '数据1', value: '100', key: 1 },
143
+ { name: '数据2', value: '8', key: 2 },
144
+ { name: '数据3', value: '10', key: 3 },
145
+ ],
146
+ });
147
+ </script>
148
+ ```
149
+
150
+ ---$
151
+
152
+ ### API
153
+
154
+ <!-- props -->
155
+
156
+ ---$
157
+ {{fuyuwei}}
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "group": "业务组件",
3
- "title": "UserInfo 用户信息",
4
- "icon": "https://image.whzb.com/chain/StellarUI/组件图标/人员信息.png"
3
+ "title": "MainInfo 主数据展示",
4
+ "icon": "https://image.whzb.com/chain/StellarUI/组件图标/筛选选框.png"
5
5
  }
@@ -0,0 +1,19 @@
1
+ import type { PropType } from 'vue';
2
+ import type { InfoItem, InfoUser } from './type';
3
+
4
+ const mainInfoProps = {
5
+ mainColor: { type: String, default: '' },
6
+ showAvatar: { type: Boolean, default: true },
7
+ avatarUrl: { type: String, default: '' },
8
+ infoUser: { type: Object as PropType<InfoUser>, default: () => ({}) },
9
+ infoData: { type: Array as PropType<InfoItem[]>, default: () => [] },
10
+ infoCode: { type: Object as PropType<InfoItem>, default: () => ({}) },
11
+ };
12
+
13
+ export const mainInfoEmits = {
14
+ 'data-click': (item: InfoItem) => !!item,
15
+ 'avatar-click': () => true,
16
+ 'user-click': () => true,
17
+ };
18
+
19
+ export default mainInfoProps;
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "ste-main-info",
3
+ "description": "主信息展示",
4
+ "example": "<ste-main-info></ste-main-info>",
5
+ "tutorial": "https://stellar-ui.intecloud.com.cn/plus/#/?active=main-info",
6
+ "attributes": [
7
+ {
8
+ "name": "mainColor",
9
+ "description": "主颜色",
10
+ "type": "string",
11
+ "default": ""
12
+ },
13
+ {
14
+ "name": "showAvatar",
15
+ "description": "是否显示头像,若未配置头像url也不显示头像",
16
+ "type": "boolean",
17
+ "default": "true"
18
+ },
19
+ {
20
+ "name": "avatarUrl",
21
+ "description": "头像url",
22
+ "type": "string",
23
+ "default": ""
24
+ },
25
+ {
26
+ "name": "infoUser",
27
+ "description": "用户数据",
28
+ "type": "InfoUser",
29
+ "default": "{}"
30
+ },
31
+ {
32
+ "name": "infoData",
33
+ "description": "中间数据",
34
+ "type": "InfoItem[]",
35
+ "default": "[]"
36
+ },
37
+ {
38
+ "name": "infoCode",
39
+ "description": "最后部分数据",
40
+ "type": "InfoItem",
41
+ "default": "{}"
42
+ },
43
+ {
44
+ "name": "[event]data-click",
45
+ "description": "中间数据点击时触发",
46
+ "type": "(item: InfoItem) => void",
47
+ "params": [{ "name": "item", "description": "点击的项" }]
48
+ },
49
+ {
50
+ "name": "[event]avatar-click",
51
+ "description": "头像点击时触发",
52
+ "type": "(]) => void",
53
+ "params": []
54
+ },
55
+ {
56
+ "name": "[event]user-click",
57
+ "description": "用户数据点击时触发",
58
+ "type": "(]) => void",
59
+ "params": []
60
+ }
61
+ ]
62
+ }
@@ -0,0 +1,90 @@
1
+ .ste-main-info--root {
2
+ // 数据完全显示
3
+ &.full-mode {
4
+ .user-block {
5
+ .user-info {
6
+ .name {
7
+ max-width: 140rpx;
8
+ font-size: var(--font-size-24, 24rpx);
9
+ }
10
+ .desc {
11
+ font-size: var(--font-size-20, 20rpx);
12
+ }
13
+ }
14
+ }
15
+ .info-block {
16
+ .item-block {
17
+ .info {
18
+ font-size: var(--font-size-28, 28rpx);
19
+ }
20
+ .desc {
21
+ font-size: var(--font-size-24, 24rpx);
22
+ }
23
+ }
24
+ }
25
+ .divider {
26
+ margin: 0 28rpx;
27
+ }
28
+
29
+ .code-block {
30
+ .desc {
31
+ font-size: var(--font-size-24, 24rpx);
32
+ }
33
+ }
34
+ }
35
+
36
+ // 模式1
37
+ &.mode-1 {
38
+ padding-right: 46rpx;
39
+ .user-block {
40
+ .user-info {
41
+ .name {
42
+ max-width: 162rpx;
43
+ font-size: var(--font-size-28, 28rpx);
44
+ }
45
+ .desc {
46
+ font-size: var(--font-size-24, 24rpx);
47
+ }
48
+ }
49
+ }
50
+ .info-block {
51
+ .item-block {
52
+ .info {
53
+ font-size: var(--font-size-32, 32rpx);
54
+ }
55
+ .desc {
56
+ font-size: var(--font-size-24, 24rpx);
57
+ }
58
+ }
59
+ }
60
+ .divider {
61
+ margin: 0 46rpx;
62
+ }
63
+ .code-block {
64
+ .desc {
65
+ font-size: var(--font-size-24, 24rpx);
66
+ }
67
+ }
68
+ }
69
+
70
+ // 模式2
71
+ &.mode-2 {
72
+ .info-block {
73
+ justify-content: space-around;
74
+ .item-block {
75
+ .info {
76
+ font-size: var(--font-size-36, 36rpx);
77
+ }
78
+ .desc {
79
+ font-size: var(--font-size-28, 28rpx);
80
+ }
81
+ }
82
+ }
83
+
84
+ .code-block {
85
+ .desc {
86
+ font-size: var(--font-size-28, 28rpx);
87
+ }
88
+ }
89
+ }
90
+ }
@@ -0,0 +1,187 @@
1
+ <template>
2
+ <view class="ste-main-info--root" :style="[compRootStyle]" :class="[{ 'full-mode': compClassFullMode, 'mode-1': compClassMode1, 'mode-2': compClassMode2 }]">
3
+ <view class="user-block" v-if="compShowUser || compShowAvatar">
4
+ <view class="avatar" v-if="compShowAvatar" @click="handleAvatarClick">
5
+ <ste-image :src="avatarUrl" width="80" height="80" radius="50%" />
6
+ </view>
7
+ <view class="user-info" v-if="compShowUser" @click="handleUserClick">
8
+ <view class="name">{{ infoUser.title }}</view>
9
+ <view class="desc">
10
+ <view class="desc-icon">
11
+ <ste-icon :code="infoUser.subTitleIcon" size="26" :color="compMainColor" marginRight="4" />
12
+ </view>
13
+ <text>{{ infoUser.subTitle }}</text>
14
+ </view>
15
+ </view>
16
+ </view>
17
+ <template v-if="compShowUser || compShowAvatar">
18
+ <view class="info-block" :class="[{ 'only-info': !compShowUser && !compShowCode }]">
19
+ <view class="item-block" v-for="item in infoData" :key="item.key" @click="handleDataItemClick(item)">
20
+ <view class="info">{{ item.value }}</view>
21
+ <view class="desc">{{ item.name }}</view>
22
+ </view>
23
+ </view>
24
+ <view class="divider" v-if="compShowDivider" />
25
+ <view class="code-block" v-if="compShowCode" @click="handleDataItemClick(infoCode)">
26
+ <view class="code-image">
27
+ <ste-image :src="infoCode.img" width="60" height="60" />
28
+ </view>
29
+ <view class="desc">
30
+ <text>{{ infoCode.name }}</text>
31
+ </view>
32
+ </view>
33
+ </template>
34
+ <template v-else>
35
+ <view class="info-block" :class="[{ 'only-info': !compShowUser && !compShowCode }]">
36
+ <view class="item-block" v-for="item in infoData" :key="item.key">
37
+ <view class="info">{{ item.value }}</view>
38
+ <view class="desc">{{ item.name }}</view>
39
+ </view>
40
+ <view class="code-block" v-if="compShowCode" @click="handleDataItemClick(infoCode)">
41
+ <view class="code-image">
42
+ <ste-image :src="infoCode.img" width="60" height="60" />
43
+ </view>
44
+ <view class="desc">
45
+ <text>{{ infoCode.name }}</text>
46
+ </view>
47
+ </view>
48
+ </view>
49
+ </template>
50
+ </view>
51
+ </template>
52
+
53
+ <script lang="ts" setup>
54
+ import { computed } from 'vue';
55
+ import { useColorStore } from '../../store/color';
56
+ // import utils from '../../utils/utils';
57
+ import type { InfoItem } from './type';
58
+
59
+ import propsData, { mainInfoEmits } from './props';
60
+ const props = defineProps(propsData);
61
+ const emits = defineEmits(mainInfoEmits);
62
+
63
+ const { getColor } = useColorStore();
64
+
65
+ const compMainColor = computed(() => {
66
+ return props.mainColor || getColor().steThemeColor;
67
+ });
68
+
69
+ const compRootStyle = computed(() => {
70
+ return {
71
+ '--main-color': compMainColor.value,
72
+ };
73
+ });
74
+
75
+ const compShowUser = computed(() => {
76
+ return props.infoUser && props.infoUser.title;
77
+ });
78
+
79
+ const compShowAvatar = computed(() => {
80
+ return props.showAvatar && props.avatarUrl;
81
+ });
82
+
83
+ const compShowCode = computed(() => {
84
+ return props.infoCode && props.infoCode.img && props.infoCode.name;
85
+ });
86
+
87
+ const compShowDivider = computed(() => {
88
+ return props.infoUser && props.infoUser.title && compShowCode.value;
89
+ });
90
+
91
+ const compClassFullMode = computed(() => {
92
+ return compShowUser.value && compShowAvatar.value && compShowCode.value && props.infoData.length >= 3;
93
+ });
94
+
95
+ const compClassMode1 = computed(() => {
96
+ return (props.infoData.length < 3 || !compShowCode.value) && compShowUser.value;
97
+ });
98
+
99
+ const compClassMode2 = computed(() => {
100
+ return !compShowUser.value && !compShowAvatar.value;
101
+ });
102
+
103
+ const handleDataItemClick = (item: InfoItem) => {
104
+ emits('data-click', item);
105
+ };
106
+
107
+ const handleAvatarClick = () => {
108
+ emits('avatar-click');
109
+ };
110
+
111
+ const handleUserClick = () => {
112
+ emits('user-click');
113
+ };
114
+ </script>
115
+
116
+ <style lang="scss" scoped>
117
+ @import './ste-main-info.scss';
118
+ .ste-main-info--root {
119
+ background-color: #fff;
120
+ border-radius: 12rpx;
121
+
122
+ padding: 0 20rpx 0 18rpx;
123
+ display: flex;
124
+ align-items: center;
125
+ height: 148rpx;
126
+
127
+ .user-block {
128
+ display: flex;
129
+ align-items: center;
130
+
131
+ .avatar {
132
+ border-radius: 50%;
133
+ margin-right: 14rpx;
134
+ }
135
+ .user-info {
136
+ .name {
137
+ overflow: hidden;
138
+ text-overflow: ellipsis;
139
+ white-space: nowrap;
140
+ }
141
+
142
+ .desc {
143
+ display: inline-flex;
144
+ align-items: center;
145
+ margin-top: 10rpx;
146
+ color: var(--main-color);
147
+ }
148
+ }
149
+ margin-right: 34rpx;
150
+ }
151
+
152
+ .info-block {
153
+ flex: 1;
154
+ display: flex;
155
+ justify-content: space-between;
156
+ align-items: center;
157
+
158
+ .item-block {
159
+ text-align: center;
160
+ display: inline-flex;
161
+ flex-direction: column;
162
+ align-items: center;
163
+ .info {
164
+ font-weight: bold;
165
+ margin-bottom: 12rpx;
166
+ }
167
+ }
168
+ }
169
+
170
+ .divider {
171
+ width: 2rpx;
172
+ height: 50rpx;
173
+ background-color: #f1f1f1;
174
+ }
175
+ .code-block {
176
+ display: flex;
177
+ align-items: center;
178
+ justify-content: center;
179
+ flex-direction: column;
180
+
181
+ .desc {
182
+ margin-top: 12rpx;
183
+ color: var(--main-color);
184
+ }
185
+ }
186
+ }
187
+ </style>
@@ -0,0 +1,12 @@
1
+ export interface InfoItem {
2
+ name: string;
3
+ key?: string | number;
4
+ value?: string;
5
+ img?: string;
6
+ }
7
+
8
+ export interface InfoUser {
9
+ title?: string;
10
+ subTitle?: string;
11
+ subTitleIcon?: string;
12
+ }
@@ -12,8 +12,6 @@
12
12
  | `customKeys` | 自定义按键,建议数量不大于2 | `string[]` | `[]` | - | - |
13
13
  | `showClear` | 是否显示清空按钮 | `boolean` | `true` | - | - |
14
14
  | `textColor` | 按键文字颜色 | `string` | `#000000` | - | - |
15
- | `keyBg` | 按键背景颜色 | `string` | `#fff` | - | - |
16
- | `background` | 背景颜色 | `string` | `#f9f9f9` | - | - |
17
15
  | `textSize` | 按键文字大小 | `number / string` | `48` | - | - |
18
16
  | `confirmBg` | 确定按钮背景颜色 | `string` | `#0090FF` | - | - |
19
17
  | `confirmColor` | 确定按钮文字颜色 | `string` | `#ffffff` | - | - |