@tplc/business 0.0.29 → 0.0.31

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.0.31](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.16...v0.0.31) (2024-10-20)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 修改notice ([970856d](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/970856d68bc5e7f8fe6752d8ea631797b66faef2))
11
+
12
+
13
+ ### 🐛 Bug Fixes | Bug 修复
14
+
15
+ * nav 兼容小程序 ([d08552a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d08552a051edbecde98bc2c237450edda3afc6a3))
16
+ * 格式化代码 ([8a3a3dd](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/8a3a3dd3750edc645288e59526eb83fa8ef96f70))
17
+
18
+ ### [0.0.30](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.15...v0.0.30) (2024-10-19)
19
+
5
20
  ### [0.0.29](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.14...v0.0.29) (2024-10-19)
6
21
 
7
22
 
@@ -13,6 +13,7 @@
13
13
  backgroundPosition,
14
14
  backgroundSize,
15
15
  fontSize: transformValueUnit(fontSize),
16
+ borderColor,
16
17
  boxShadow:
17
18
  shadowColor && shadowSize ? `0px 0px ${blurSize}px ${shadowSize}px ${shadowColor}` : '',
18
19
  }"
@@ -30,6 +30,7 @@ export interface LcbBlockProps {
30
30
  backgroundRepeat?: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat'
31
31
  backgroundSize?: string
32
32
  backgroundPosition?: string
33
+ borderColor?: string
33
34
  }
34
35
  export interface LcbBlockInnerProps extends LcbBlockProps {
35
36
  [key: string]: any
@@ -106,10 +106,10 @@ withDefaults(defineProps<LcbImgNavProps>(), {
106
106
  display: flex;
107
107
  flex-direction: column;
108
108
  gap: 40rpx;
109
- .item {
109
+ :deep(.item) {
110
110
  flex-direction: row;
111
111
  }
112
- .title {
112
+ :deep(.title) {
113
113
  flex: 1;
114
114
  text-align: start;
115
115
  margin-left: 24rpx;
@@ -5,12 +5,14 @@
5
5
  immersiveTop: topStyle === 2,
6
6
  fixed,
7
7
  }"
8
+ :style="{
9
+ paddingTop,
10
+ }"
8
11
  >
9
12
  <view
10
13
  class="navbar-header"
11
14
  :style="{
12
15
  color: contentColor,
13
- paddingTop,
14
16
  }"
15
17
  >
16
18
  <view
@@ -22,12 +24,7 @@
22
24
  }"
23
25
  />
24
26
  <!-- 左边布局 -->
25
- <view
26
- class="navbar-left z-1"
27
- :style="{
28
- paddingTop,
29
- }"
30
- >
27
+ <view class="navbar-left z-1">
31
28
  <!-- 返回按钮 -->
32
29
  <view
33
30
  v-if="styleGroup === 3 && capsuleList.length"
@@ -65,12 +62,7 @@
65
62
  </view>
66
63
  </view>
67
64
  <!-- 中间布局 -->
68
- <view
69
- class="navbar-center"
70
- :style="{
71
- paddingTop,
72
- }"
73
- >
65
+ <view class="navbar-center">
74
66
  <Search v-if="styleGroup === 2 && titleLocation === 'center'" :back="back" />
75
67
  <Title v-bind="titleProps" v-else-if="styleGroup === 2 || titleLocation === 'center'" />
76
68
  </view>
@@ -226,7 +218,7 @@ const toBack = () => {
226
218
  position: absolute;
227
219
  left: 0px;
228
220
  width: 100%;
229
- height: 100%;
221
+ height: 44px;
230
222
  background-repeat: no-repeat;
231
223
  background-position: 50%;
232
224
  background-position-x: 50%;
@@ -1,11 +1,5 @@
1
1
  <template>
2
- <lcb-block
3
- v-bind="$props"
4
- custom-class="border-solid border-1"
5
- :style="{
6
- 'border-color': borderColor,
7
- }"
8
- >
2
+ <lcb-block v-bind="$props" custom-class="border-solid border-1">
9
3
  <swiper
10
4
  class="swiper"
11
5
  circular
@@ -1,12 +1,6 @@
1
1
  <template>
2
2
  <lcb-block v-bind="$props">
3
- <scroll-view v-if="mode == 1" scroll-x class="w-full whitespace-nowrap" :style="{
4
- // marginLeft: transformValueUnit(marginHorizontal),
5
- // marginRight: transformValueUnit(marginHorizontal),
6
- // marginTop: transformValueUnit(-(floatUp || 0)),
7
- // marginTop: transformValueUnit(marginTop),
8
- // marginBottom: transformValueUnit(marginBottom),
9
- }">
3
+ <scroll-view v-if="mode == 1" scroll-x class="w-full whitespace-nowrap">
10
4
  <view class="flex shrink-0 h-46rpx relative -mx-8rpx">
11
5
  <Tag v-bind="itemProps" />
12
6
  </view>
@@ -20,7 +14,7 @@
20
14
  <script setup lang="ts">
21
15
  import { LcbTagsProps } from './types'
22
16
  import Tag from './Tag/index.vue'
23
- import { computed } from 'vue';
17
+ import { computed } from 'vue'
24
18
  import { formatJson } from '../../utils/utils'
25
19
  defineOptions({
26
20
  name: 'LcbTags',
@@ -35,10 +29,9 @@ const props = withDefaults(defineProps<LcbTagsProps>(), {
35
29
  tagColor: '#000',
36
30
  })
37
31
  const itemProps = computed(() => {
38
- const data = props.items;
39
- console.log(data, (typeof data == 'object') ? data : formatJson(data, []))
32
+ const data = props.items
40
33
  return {
41
- items: (typeof data == 'object') ? data : formatJson(data, []),
34
+ items: typeof data === 'object' ? data : formatJson(data, []),
42
35
  fontSize: props.fontSize,
43
36
  tagRadius: props.tagRadius,
44
37
  tagColor: props.tagColor,
@@ -1,9 +1,7 @@
1
1
  <template>
2
2
  <lcb-block
3
3
  v-bind="{
4
- paddingTop,
5
- paddingBottom,
6
- paddingHorizontal,
4
+ ...$props,
7
5
  backgroundColor: bgStyle === 1 ? backgroundColor : '',
8
6
  backgroundImage: bgStyle === 2 ? backgroundImage : '',
9
7
  }"
@@ -1,6 +1,7 @@
1
1
  import { ActionView } from 'action'
2
+ import { LcbBlockProps } from '.././/lcb-block/types'
2
3
 
3
- export interface LcbUserTopProps {
4
+ export interface LcbUserTopProps extends LcbBlockProps {
4
5
  // // items?: Partial<ActionView>[]
5
6
  // // imageWidth?: number
6
7
  // autoplay?: boolean
@@ -44,9 +45,6 @@ export interface LcbUserTopProps {
44
45
  // /** 滑动样式 1平面 2立体 */
45
46
  // slidingStyle?: 1 | 2
46
47
 
47
- paddingTop?: number
48
- paddingBottom?: number
49
- paddingHorizontal?: number
50
48
  // paddingRight?: number
51
49
  photoUrl?: string
52
50
  photoRound?: boolean
@@ -83,4 +81,4 @@ export interface NumsItemProps {
83
81
  titleColor?: string
84
82
  value?: number
85
83
  title?: string
86
- }
84
+ }
@@ -1,17 +1,15 @@
1
1
  <template>
2
- <lcb-block v-bind="{
3
- // marginTop,
4
- // marginBottom,
5
- marginLeft: marginHorizontal,
6
- marginRight: marginHorizontal,
7
- }">
8
- <video v-bind="{
9
- src,
10
- loop,
11
- muted,
12
- autoplay,
13
- showProgress,
14
- }" class="w-full" />
2
+ <lcb-block v-bind="$props">
3
+ <video
4
+ v-bind="{
5
+ src,
6
+ loop,
7
+ muted,
8
+ autoplay,
9
+ showProgress,
10
+ }"
11
+ class="w-full"
12
+ />
15
13
  </lcb-block>
16
14
  </template>
17
15
 
@@ -1 +1,339 @@
1
- @import url(//at.alicdn.com/t/c/font_4710234_4pa59gffcpf.css);
1
+ @font-face {
2
+ font-family: 'lcb'; /* Project id 4710234 */
3
+ src:
4
+ url('//at.alicdn.com/t/c/font_4710234_4pa59gffcpf.woff2?t=1729228175639') format('woff2'),
5
+ url('//at.alicdn.com/t/c/font_4710234_4pa59gffcpf.woff?t=1729228175639') format('woff'),
6
+ url('//at.alicdn.com/t/c/font_4710234_4pa59gffcpf.ttf?t=1729228175639') format('truetype');
7
+ }
8
+
9
+ .lcb {
10
+ font-family: 'lcb' !important;
11
+ font-size: 16px;
12
+ font-style: normal;
13
+ -webkit-font-smoothing: antialiased;
14
+ -moz-osx-font-smoothing: grayscale;
15
+ }
16
+
17
+ .lcb-mingpian:before {
18
+ content: '\e654';
19
+ }
20
+
21
+ .lcb-douyin:before {
22
+ content: '\e655';
23
+ }
24
+
25
+ .lcb-xiangzuo:before {
26
+ content: '\e656';
27
+ }
28
+
29
+ .lcb-yinhangka:before {
30
+ content: '\e658';
31
+ }
32
+
33
+ .lcb-shangjia:before {
34
+ content: '\e659';
35
+ }
36
+
37
+ .lcb-dengji:before {
38
+ content: '\e65a';
39
+ }
40
+
41
+ .lcb-xuanzhong:before {
42
+ content: '\e65b';
43
+ }
44
+
45
+ .lcb-shoujihao:before {
46
+ content: '\e65c';
47
+ }
48
+
49
+ .lcb-shangchuan:before {
50
+ content: '\e65d';
51
+ }
52
+
53
+ .lcb-geren:before {
54
+ content: '\e65e';
55
+ }
56
+
57
+ .lcb-xiaoyan:before {
58
+ content: '\e65f';
59
+ }
60
+
61
+ .lcb-xiangyou:before {
62
+ content: '\e661';
63
+ }
64
+
65
+ .lcb-fensi:before {
66
+ content: '\e646';
67
+ }
68
+
69
+ .lcb-shenhezhong:before {
70
+ content: '\e647';
71
+ }
72
+
73
+ .lcb-shijian:before {
74
+ content: '\e648';
75
+ }
76
+
77
+ .lcb-renshu:before {
78
+ content: '\e64b';
79
+ }
80
+
81
+ .lcb-gouxuan:before {
82
+ content: '\e64c';
83
+ }
84
+
85
+ .lcb-yijianfankui:before {
86
+ content: '\e64d';
87
+ }
88
+
89
+ .lcb-jianji:before {
90
+ content: '\e64f';
91
+ }
92
+
93
+ .lcb-kefu:before {
94
+ content: '\e650';
95
+ }
96
+
97
+ .lcb-shuaxin:before {
98
+ content: '\e652';
99
+ }
100
+
101
+ .lcb-zuo_left:before {
102
+ content: '\e643';
103
+ }
104
+
105
+ .lcb-shouye_home-two:before {
106
+ content: '\e644';
107
+ }
108
+
109
+ .lcb-jiantouzuo_arrow-left:before {
110
+ content: '\e645';
111
+ }
112
+
113
+ .lcb-fanyi_translate1:before {
114
+ content: '\e641';
115
+ }
116
+
117
+ .lcb-shouye_home1:before {
118
+ content: '\e642';
119
+ }
120
+
121
+ .lcb-buxihuan_dislike-two:before {
122
+ content: '\e63f';
123
+ }
124
+
125
+ .lcb-biaoqian_tag:before {
126
+ content: '\e640';
127
+ }
128
+
129
+ .lcb-gengduo1_more-one2:before {
130
+ content: '\e62e';
131
+ }
132
+
133
+ .lcb-peizhi_config:before {
134
+ content: '\e62f';
135
+ }
136
+
137
+ .lcb-gengduo_more-app:before {
138
+ content: '\e630';
139
+ }
140
+
141
+ .lcb-pubuliuhengxiang_waterfalls-h:before {
142
+ content: '\e631';
143
+ }
144
+
145
+ .lcb-nvxing_female:before {
146
+ content: '\e632';
147
+ }
148
+
149
+ .lcb-jiazai_loading:before {
150
+ content: '\e633';
151
+ }
152
+
153
+ .lcb-nanxing_male:before {
154
+ content: '\e634';
155
+ }
156
+
157
+ .lcb-gengduo2_more-two2:before {
158
+ content: '\e635';
159
+ }
160
+
161
+ .lcb-fangda_zoom-in:before {
162
+ content: '\e636';
163
+ }
164
+
165
+ .lcb-baocun_save:before {
166
+ content: '\e637';
167
+ }
168
+
169
+ .lcb-gengduo_more2:before {
170
+ content: '\e638';
171
+ }
172
+
173
+ .lcb-buxihuan_dislike:before {
174
+ content: '\e639';
175
+ }
176
+
177
+ .lcb-fenxiang3_share-three:before {
178
+ content: '\e63a';
179
+ }
180
+
181
+ .lcb-fenxiang_share:before {
182
+ content: '\e63b';
183
+ }
184
+
185
+ .lcb-dingyue_rss:before {
186
+ content: '\e63c';
187
+ }
188
+
189
+ .lcb-buxihuan_unlike:before {
190
+ content: '\e63d';
191
+ }
192
+
193
+ .lcb-biaoqian_tag-one2:before {
194
+ content: '\e63e';
195
+ }
196
+
197
+ .lcb-shuqian_bookmark-one:before {
198
+ content: '\e61d';
199
+ }
200
+
201
+ .lcb-pubuliuzongxiang_waterfalls-v:before {
202
+ content: '\e61e';
203
+ }
204
+
205
+ .lcb-shezhipeizhi_setting-config:before {
206
+ content: '\e61f';
207
+ }
208
+
209
+ .lcb-gongju_tool:before {
210
+ content: '\e620';
211
+ }
212
+
213
+ .lcb-shouye_home:before {
214
+ content: '\e621';
215
+ }
216
+
217
+ .lcb-baocunyingpan_save-one:before {
218
+ content: '\e622';
219
+ }
220
+
221
+ .lcb-hanbaotubiao_hamburger-button:before {
222
+ content: '\e623';
223
+ }
224
+
225
+ .lcb-fanyi_translate:before {
226
+ content: '\e624';
227
+ }
228
+
229
+ .lcb-shanchu_delete-two:before {
230
+ content: '\e625';
231
+ }
232
+
233
+ .lcb-leida_radar:before {
234
+ content: '\e626';
235
+ }
236
+
237
+ .lcb-miaozhun_aiming:before {
238
+ content: '\e627';
239
+ }
240
+
241
+ .lcb-quanbu_all-application:before {
242
+ content: '\e628';
243
+ }
244
+
245
+ .lcb-jiazai4_loading-four:before {
246
+ content: '\e629';
247
+ }
248
+
249
+ .lcb-faan_bill:before {
250
+ content: '\e62a';
251
+ }
252
+
253
+ .lcb-junhengqi_equalizer:before {
254
+ content: '\e62b';
255
+ }
256
+
257
+ .lcb-shandian_lightning:before {
258
+ content: '\e62d';
259
+ }
260
+
261
+ .lcb-tishi_tips:before {
262
+ content: '\e60b';
263
+ }
264
+
265
+ .lcb-yulan-guanbi_preview-close-one:before {
266
+ content: '\e60d';
267
+ }
268
+
269
+ .lcb-yulan-guanbi_preview-close:before {
270
+ content: '\e60e';
271
+ }
272
+
273
+ .lcb-suoxiao_zoom-out:before {
274
+ content: '\e60f';
275
+ }
276
+
277
+ .lcb-zhaopian_pic:before {
278
+ content: '\e610';
279
+ }
280
+
281
+ .lcb-sousuo_search:before {
282
+ content: '\e611';
283
+ }
284
+
285
+ .lcb-shuaxin_refresh:before {
286
+ content: '\e612';
287
+ }
288
+
289
+ .lcb-xiangji_camera:before {
290
+ content: '\e613';
291
+ }
292
+
293
+ .lcb-shuimian_sleep:before {
294
+ content: '\e614';
295
+ }
296
+
297
+ .lcb-xihuan_like:before {
298
+ content: '\e615';
299
+ }
300
+
301
+ .lcb-xitong_system:before {
302
+ content: '\e616';
303
+ }
304
+
305
+ .lcb-shezhi_setting-three:before {
306
+ content: '\e617';
307
+ }
308
+
309
+ .lcb-shalouman_hourglass-full:before {
310
+ content: '\e618';
311
+ }
312
+
313
+ .lcb-shaloukong_hourglass-null:before {
314
+ content: '\e619';
315
+ }
316
+
317
+ .lcb-shezhi_setting-two:before {
318
+ content: '\e61a';
319
+ }
320
+
321
+ .lcb-shuqian_bookmark:before {
322
+ content: '\e61b';
323
+ }
324
+
325
+ .lcb-shezhi_setting-one:before {
326
+ content: '\e61c';
327
+ }
328
+
329
+ .lcb-shezhi_setting:before {
330
+ content: '\e60a';
331
+ }
332
+
333
+ .lcb-yulan-dakai_preview-open:before {
334
+ content: '\e60c';
335
+ }
336
+
337
+ .lcb-biaoqian_tag-one:before {
338
+ content: '\e605';
339
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.0.29",
3
+ "version": "0.0.31",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "peerDependencies": {
13
13
  "vue": ">=3.2.47",
14
- "@tplc/wot": "0.1.14"
14
+ "@tplc/wot": "0.1.16"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18",
@@ -28,6 +28,7 @@ export interface LcbBlockProps {
28
28
  backgroundRepeat?: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat'
29
29
  backgroundSize?: string
30
30
  backgroundPosition?: string
31
+ borderColor?: string
31
32
  }
32
33
  export interface LcbBlockInnerProps extends LcbBlockProps {
33
34
  [key: string]: any
@@ -40,8 +40,8 @@ declare const _default: import('vue').DefineComponent<
40
40
  'onUpdate:interval'?: ((interval: number) => any) | undefined
41
41
  },
42
42
  {
43
- textSpeed: number
44
43
  borderColor: string
44
+ textSpeed: number
45
45
  },
46
46
  {}
47
47
  >
@@ -54,6 +54,8 @@ declare const _default: import('vue').DefineComponent<
54
54
  {
55
55
  paddingTop: number
56
56
  paddingBottom: number
57
+ paddingLeft: number
58
+ paddingRight: number
57
59
  iconName: string
58
60
  textColor: string
59
61
  iconType: 0 | 1
@@ -1,7 +1,5 @@
1
- export interface LcbUserTopProps {
2
- paddingTop?: number
3
- paddingBottom?: number
4
- paddingHorizontal?: number
1
+ import { LcbBlockProps } from '.././/lcb-block/types'
2
+ export interface LcbUserTopProps extends LcbBlockProps {
5
3
  photoUrl?: string
6
4
  photoRound?: boolean
7
5
  photoSize?: number