@tplc/business 0.4.75 → 0.4.76

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,13 @@
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.4.76](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.83...v0.4.76) (2025-04-27)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * banner 支持video ([8dbe21d](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/8dbe21d2d8705f6ae50a30e84f4dc50dcbd0b85d))
11
+
5
12
  ### [0.4.75](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.82...v0.4.75) (2025-04-25)
6
13
 
7
14
 
@@ -145,6 +145,19 @@ const coverImgWidth = computed(() => {
145
145
  mode="heightFix"
146
146
  />
147
147
  </view>
148
+ <!-- area -->
149
+ <!-- && itemProps.areaOnImg -->
150
+ <view
151
+ v-if="itemProps.showArea && itemAttrs.cityArea && itemProps.areaOnImg"
152
+ class="absolute bottom-0 left-0 z-1 p-2 line-clamp-1 w-full box-border text-white text-3.5"
153
+ :style="{
154
+ color: itemProps.areaColor,
155
+ fontSize: `${itemProps.areaFontSize}rpx`,
156
+ }"
157
+ >
158
+ <wd-icon name="location"></wd-icon>
159
+ {{ itemAttrs.cityArea }}
160
+ </view>
148
161
  <slot></slot>
149
162
  </view>
150
163
  </block>
@@ -160,7 +173,16 @@ const coverImgWidth = computed(() => {
160
173
  :style="style"
161
174
  :value="value"
162
175
  >
163
- {{ value }}{{ itemProps.showArea && itemAttrs.cityArea ? `(${itemAttrs.cityArea})` : '' }}
176
+ {{ value }}
177
+ <text
178
+ v-if="itemProps.showArea && !itemProps.areaOnImg && itemAttrs.cityArea"
179
+ :style="{
180
+ color: itemProps.areaColor,
181
+ fontSize: `${itemProps.areaFontSize}rpx`,
182
+ }"
183
+ >
184
+ {{ `(${itemAttrs.cityArea})` }}
185
+ </text>
164
186
  </view>
165
187
  </slot>
166
188
 
@@ -7,6 +7,10 @@ export interface LcbProductItemProps {
7
7
  layoutType?: 'vertical' | 'horizontal'
8
8
  titleLineClamp?: number
9
9
  showArea?: string
10
+ // area在图片上面
11
+ areaOnImg?: boolean
12
+ areaColor?: string
13
+ areaFontSize?: number
10
14
  tagOverflowWrap?: boolean
11
15
  tagType?: TagType
12
16
  tagContentColor?: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.75",
3
+ "version": "0.4.76",
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.82"
14
+ "@tplc/wot": "0.1.83"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18",
@@ -5,6 +5,9 @@ export interface LcbProductItemProps {
5
5
  layoutType?: 'vertical' | 'horizontal'
6
6
  titleLineClamp?: number
7
7
  showArea?: string
8
+ areaOnImg?: boolean
9
+ areaColor?: string
10
+ areaFontSize?: number
8
11
  tagOverflowWrap?: boolean
9
12
  tagType?: TagType
10
13
  tagContentColor?: string