@tplc/business 0.3.57 → 0.3.59

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,28 @@
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.3.59](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.58...v0.3.59) (2025-02-22)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 调整ui ([2cb67aa](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2cb67aa044ceb3ddb8a26a8a4a4345a3944c6ded))
11
+
12
+ ### [0.3.58](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.55...v0.3.58) (2025-02-22)
13
+
14
+
15
+ ### 🚀 Chore | 构建/工程依赖/工具
16
+
17
+ * **release:** 0.3.56 ([b52b4c9](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b52b4c9080dbc0e1158c9a12e6ed03f96200723a))
18
+ * **release:** 0.3.57 ([cf2efc1](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/cf2efc1f4be407966ed83e8ce22e0ec673861d22))
19
+
20
+
21
+ ### ✨ Features | 新功能
22
+
23
+ * getFinalUrl 调整不插入其他数据 ([a96a25f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a96a25ffe3f82475c20b2166aef45cb5ae53308a))
24
+ * 支持时间同步 ([9a24a96](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9a24a96d0a87e4b49362ff6a3602a15ed27b86c5))
25
+ * 新增241 ([3550874](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/355087493cc8275a2602bb51bafed07f1d3c9658))
26
+
5
27
  ### [0.3.57](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.56...v0.3.57) (2025-02-21)
6
28
 
7
29
 
@@ -265,7 +265,7 @@ const onCopy = (data?: string) => {
265
265
  font-size: 32rpx;
266
266
  font-weight: 500;
267
267
  line-height: 96rpx;
268
- color: #333333;
268
+ color: #000000;
269
269
  text-align: center;
270
270
  border-radius: 20rpx;
271
271
  box-shadow: 0rpx 4rpx 8rpx 0rpx rgba(243, 245, 249, 0.94);
@@ -50,7 +50,7 @@
50
50
  />
51
51
  <lcb-action-view
52
52
  v-bind="link"
53
- custom-class="!p-24rpx !text-30rpx text-#333 !flex justify-between items-center"
53
+ custom-class="!p-24rpx !text-30rpx text-black !flex justify-between items-center"
54
54
  >
55
55
  <view>{{ title }}</view>
56
56
  <wd-icon class-prefix="lcb" name="a-xingzhuang103" size="30rpx" color="#666" />
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <lcb-block v-bind="$props" customClass="flex items-center !bg-white">
3
3
  <view
4
- class="flex flex-1 text-#333 rounded-16rpx bg-#F5F5F7 h-78rpx flex items-center px-3 text-[28rpx]"
4
+ class="flex flex-1 text-black rounded-16rpx bg-#F5F5F7 h-78rpx flex items-center px-3 text-[28rpx]"
5
5
  >
6
6
  <lcb-city-select :location="userLocation" v-model="addressCity">
7
7
  <view class="font-bold max-w-13 truncate">{{ addressCity?.addr || '全国' }}</view>
@@ -24,7 +24,7 @@
24
24
  <view class="flex-1 flex items-center gap-2">
25
25
  <wd-icon name="search" size="34rpx" color="#999999" />
26
26
  <input
27
- class="text-#333"
27
+ class="text-black"
28
28
  :placeholder="placeholder"
29
29
  :value="form.keywords"
30
30
  @blur="onSearch"
@@ -33,7 +33,7 @@
33
33
  </view>
34
34
  </view>
35
35
  <lcb-action-view v-bind="link" v-if="link" :url-params="form">
36
- <wd-icon :name="icon" class-prefix="lcb" size="36rpx" color="#333" custom-class="ml-4" />
36
+ <wd-icon :name="icon" class-prefix="lcb" size="36rpx" color="#000" custom-class="ml-4" />
37
37
  </lcb-action-view>
38
38
  </lcb-block>
39
39
  </template>
@@ -14,7 +14,7 @@
14
14
  class="w-4 h-4 mr-1"
15
15
  v-if="item.categoryName.includes('热门')"
16
16
  />
17
- <view class="text-3 text-#333 font-500">
17
+ <view class="text-3 text-black font-500">
18
18
  {{ item.hint || item.categoryName }}
19
19
  </view>
20
20
  </view>
@@ -12,7 +12,7 @@
12
12
  <view v-if="!list.length" class="mt-3">
13
13
  <view v-if="historyList.length">
14
14
  <view class="flex justify-between items-center">
15
- <view class="text-28rpx text-#333 font-500x">历史搜索</view>
15
+ <view class="text-28rpx text-black font-500x">历史搜索</view>
16
16
  <wd-icon name="delete" size="30rpx" color="#999" @click="onClear" />
17
17
  </view>
18
18
  <view class="flex gap-2 flex-wrap">
@@ -101,7 +101,7 @@ const onClear = () => {
101
101
  font-size: 30rpx;
102
102
  line-height: 34rpx;
103
103
  font-weight: bold;
104
- color: #333;
104
+ color: #000;
105
105
  margin-bottom: 12rpx;
106
106
  }
107
107
  }
@@ -122,6 +122,6 @@ const onClear = () => {
122
122
  white-space: nowrap;
123
123
  overflow: hidden;
124
124
  text-overflow: ellipsis;
125
- color: #333;
125
+ color: #000;
126
126
  }
127
127
  </style>
@@ -12,7 +12,7 @@
12
12
  >
13
13
  <view class="flex flex-col h-full">
14
14
  <view class="top-search">
15
- <view class="text-28rpx text-#333 text-center mt-28rpx mb-2 font-500">选择所在地区</view>
15
+ <view class="text-28rpx text-black text-center mt-28rpx mb-2 font-500">选择所在地区</view>
16
16
  <wd-icon
17
17
  custom-class="absolute top-0 right-0 mt-28rpx mr-5"
18
18
  name="close-circle"
@@ -27,7 +27,7 @@
27
27
  backgroundColor: `rgba(255,255, 255, ${opacity})`,
28
28
  }"
29
29
  >
30
- <view class="flex items-center justify-center text-#333 gap-16rpx">
30
+ <view class="flex items-center justify-center text-black gap-16rpx">
31
31
  <lcb-city-select :location="userLocation" v-model="addressCity">
32
32
  <view class="flex items-center gap-16rpx">
33
33
  <view class="text-30rpx font-bold max-w-13 truncate">
@@ -48,7 +48,7 @@
48
48
  }"
49
49
  />
50
50
  <input
51
- class="text-#333 text-28rpx flex-1 mr-3"
51
+ class="text-black text-28rpx flex-1 mr-3"
52
52
  :placeholder="placeholder"
53
53
  v-model="form.keywords"
54
54
  />
@@ -60,7 +60,7 @@
60
60
  src="https://ddll-lycs.oss-cn-hangzhou.aliyuncs.com/default/1/20240914164707/%E5%BD%A2%E7%8A%B6%2095%402x.png"
61
61
  v-else
62
62
  />
63
- <view class="text-26rpx text-#333 mt-12rpx">
63
+ <view class="text-26rpx text-black mt-12rpx">
64
64
  {{ locationIng ? translate('定位中...') : translate('当前位置') }}
65
65
  </view>
66
66
  </view>
@@ -193,7 +193,7 @@ watchEffect(() => {
193
193
  text-align: center;
194
194
  font-size: 30rpx;
195
195
  padding: 24rpx 0;
196
- color: #333;
196
+ color: #000;
197
197
  }
198
198
  .active {
199
199
  color: $-color-theme;
@@ -98,7 +98,7 @@ const getSliderTitle = (value?: number[], max = 0, min = 0) => {
98
98
  .lcb-filter {
99
99
  &__group-title {
100
100
  font-size: 30rpx;
101
- color: #333;
101
+ color: #000;
102
102
  font-weight: 500;
103
103
  margin-bottom: 24rpx;
104
104
  display: flex;
@@ -28,7 +28,7 @@ defineProps<{ title: string; checked?: boolean; size?: 'small' | 'normal' }>()
28
28
  background: #f5f5f7;
29
29
  border-radius: 53rpx;
30
30
  font-size: 24rpx;
31
- color: #333333;
31
+ color: #000000;
32
32
  line-height: 56rpx;
33
33
  overflow: hidden;
34
34
  text-overflow: ellipsis;
@@ -135,7 +135,7 @@ const onInput = (item: Option, e) => {
135
135
  background: #f5f5f7;
136
136
  border-radius: 53rpx;
137
137
  font-size: 24rpx;
138
- color: #333333;
138
+ color: #000000;
139
139
  line-height: 56rpx;
140
140
  overflow: hidden;
141
141
  text-overflow: ellipsis;
@@ -29,7 +29,7 @@
29
29
  </wd-notice-bar>
30
30
  </lcb-block>
31
31
  <wd-popup v-model="popup.show" position="bottom" custom-class="!bg-transparent" closable>
32
- <view class="text-#333 px-3 pb-3 box-border bg-#fff rounded-t-20rpx">
32
+ <view class="text-black px-3 pb-3 box-border bg-#fff rounded-t-20rpx">
33
33
  <view class="py-3 text-center font-500 text-4">{{ popup.item.title || '公告' }}</view>
34
34
  <view class="min-h-30vh max-h-50vh overflow-y-auto text-28rpx">
35
35
  {{ popup.item.adContent }}
@@ -61,7 +61,7 @@ const props = withDefaults(defineProps<LcbNoticeBarProps>(), {
61
61
  backgroundColor: '#fff',
62
62
  paddingVertical: 16,
63
63
  rightArrow: true,
64
- color: '#333',
64
+ color: '#000',
65
65
  iconSize: 40,
66
66
  })
67
67
  const popup = ref({
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <view class="flex flex-col items-center min-h-56rpx justify-center">
3
- <image :src="icon" class="w-5 h-5 box-border mb-1" v-if="icon" />
4
- <view class="text-24rpx" :style="{ color: iconNameColor || '#333333' }">
3
+ <image :src="icon" class="w-5.5 h-5.5 box-border mb-1" v-if="icon" />
4
+ <view class="text-24rpx" :style="{ color: iconNameColor || '#000000' }">
5
5
  {{ iconName }}
6
6
  </view>
7
7
  </view>
@@ -44,6 +44,7 @@ defineSlots<{
44
44
  titleIcon(props: { value: any }): any
45
45
  userInteractionInfo(props: { value: any }): any
46
46
  orderTips(props: { value: any }): any
47
+ priceTips(props: { value: any }): any
47
48
  }>()
48
49
 
49
50
  const visible = computed(() => {
@@ -67,17 +68,19 @@ const style = computed(() => {
67
68
  }
68
69
  // return itemProps?.[`${props?.prop}Style`] ?? ''
69
70
  })
71
+ const imageIndex = computed(() => {
72
+ return (
73
+ {
74
+ vertical: 0,
75
+ horizontal: 1,
76
+ square: 2,
77
+ }[itemProps?.imageType] ?? 0
78
+ )
79
+ })
70
80
  const value = computed(() => {
71
81
  if (props?.prop === 'coverImg') {
72
82
  const imgArr = formatJson(itemProps?.[props?.prop], [])
73
- const imageIndex =
74
- {
75
- vertical: 0,
76
- horizontal: 1,
77
- square: 2,
78
- }[itemProps?.imageType] ?? 0
79
-
80
- return imgArr?.[imageIndex]
83
+ return imgArr?.[imageIndex.value]
81
84
  }
82
85
 
83
86
  if (props?.prop === 'tags') {
@@ -106,7 +109,7 @@ const value = computed(() => {
106
109
  v-if="itemProps.imgBottomIcon && itemProps.imgBottomIconVisible"
107
110
  >
108
111
  <wd-img
109
- :src="itemProps.imgBottomIcon"
112
+ :src="formatJson(itemProps.imgBottomIcon, [])?.[imageIndex]"
110
113
  custom-class="block"
111
114
  mode="widthFix"
112
115
  width="100%"
@@ -119,7 +122,7 @@ const value = computed(() => {
119
122
  v-if="itemProps.imgCornerIcon && itemProps.imgCornerIconVisible"
120
123
  >
121
124
  <wd-img
122
- :src="itemProps.imgCornerIcon"
125
+ :src="formatJson(itemProps.imgCornerIcon, [])?.[imageIndex]"
123
126
  width="auto"
124
127
  height="100%"
125
128
  custom-class="block"
@@ -146,7 +149,7 @@ const value = computed(() => {
146
149
  </slot>
147
150
 
148
151
  <slot :value="value" v-if="prop === 'level' && value && Number(value)" name="level">
149
- <view :class="className" :style="style" class="inline pl-1 relative top-[-3px]">
152
+ <view :class="className" :style="style" class="inline relative top-[-3px]">
150
153
  <wd-rate
151
154
  :model-value="Number(value)"
152
155
  :num="Number(value)"
@@ -157,12 +160,8 @@ const value = computed(() => {
157
160
  </view>
158
161
  </slot>
159
162
  <slot :value="value" v-if="prop === 'titleIcon'" name="titleIcon">
160
- <view :class="className" :style="style" class="inline pl-1">
161
- <wd-icon
162
- name="thumb-up"
163
- size="12px"
164
- custom-class="bg-[#EB723F] text-white p-[1px] rounded"
165
- ></wd-icon>
163
+ <view :class="className" :style="style" class="inline-flex ml-1">
164
+ <wd-img :src="itemProps.titleIcon" width="12px" height="12px" />
166
165
  </view>
167
166
  </slot>
168
167
 
@@ -325,7 +324,7 @@ const value = computed(() => {
325
324
  />
326
325
  </slot>
327
326
  <slot :value="value" v-if="prop === 'userName'" name="userName">
328
- <view :class="className" :style="style" class="text-20rpx text-#333 truncate">
327
+ <view :class="className" :style="style" class="text-20rpx text-black truncate">
329
328
  {{ value }}
330
329
  </view>
331
330
  </slot>
@@ -136,7 +136,7 @@ const itemStyle = computed(() => {
136
136
  <view class="flex flex-col flex-1 text-26rpx overflow-hidden relative">
137
137
  <slot name="contentSection" />
138
138
  <view class="flex flex-col gap-[5px] overflow-hidden">
139
- <view class="text-ellipsis line-clamp-2">
139
+ <view class="text-ellipsis line-clamp-2 flex flex-wrap">
140
140
  <ItemValue prop="productName">
141
141
  <!-- <template #productName="{ value }"><slot name="productName" :value="value" /></template> -->
142
142
  </ItemValue>
@@ -273,7 +273,7 @@ const itemStyle = computed(() => {
273
273
  <view class="p-2 flex flex-col flex-1 text-26rpx overflow-hidden relative">
274
274
  <slot name="contentSection" />
275
275
  <view class="flex flex-col gap-[5px] overflow-hidden">
276
- <view class="text-ellipsis line-clamp-2">
276
+ <view class="text-ellipsis line-clamp-2 flex flex-wrap">
277
277
  <ItemValue prop="productName">
278
278
  <!-- <template #productName="{ value }"><slot name="productName" :value="value" /></template> -->
279
279
  </ItemValue>
@@ -67,7 +67,7 @@ withDefaults(defineProps<LcbTitleProps>(), {
67
67
  marginHorizontal: 24,
68
68
  fontWeight: 600,
69
69
  fontSize: 28,
70
- color: '#333',
70
+ color: '#000',
71
71
  title: '标题',
72
72
  justify: 'justify-start',
73
73
  moreFontSize: 24,
@@ -39,7 +39,7 @@
39
39
  授权登录
40
40
  </view>
41
41
  <view v-else class="leading-none">
42
- <view class="text-32rpx font-#333 font-500 mb-20rpx">
42
+ <view class="text-32rpx font-#000 font-500 mb-20rpx">
43
43
  {{ userStore?.userInfo?.userName || '微信用户' }}
44
44
  </view>
45
45
  <view class="flex" @click="toEdit">
@@ -148,7 +148,7 @@ withDefaults(defineProps<LcbUserTopProps>(), {
148
148
  paddingBottom: 100,
149
149
  photoRound: true,
150
150
  textSize: 32,
151
- textColor: '#333',
151
+ textColor: '#000',
152
152
  moreIcon: true,
153
153
  iconType: 0,
154
154
  iconName: 'xiayiye',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.3.57",
3
+ "version": "0.3.59",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -21,6 +21,7 @@ declare function __VLS_template(): Readonly<{
21
21
  titleIcon(props: { value: any }): any
22
22
  userInteractionInfo(props: { value: any }): any
23
23
  orderTips(props: { value: any }): any
24
+ priceTips(props: { value: any }): any
24
25
  }> & {
25
26
  coverImg(props: { value: any }): any
26
27
  headImg(props: { value: any }): any
@@ -44,6 +45,7 @@ declare function __VLS_template(): Readonly<{
44
45
  titleIcon(props: { value: any }): any
45
46
  userInteractionInfo(props: { value: any }): any
46
47
  orderTips(props: { value: any }): any
48
+ priceTips(props: { value: any }): any
47
49
  }
48
50
  declare const __VLS_component: import('vue').DefineComponent<
49
51
  __VLS_WithDefaults<