@tplc/business 0.4.193 → 0.4.195

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,17 @@
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.195](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.98...v0.4.195) (2025-09-09)
6
+
7
+ ### [0.4.194](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.193...v0.4.194) (2025-09-06)
8
+
9
+
10
+ ### ✨ Features | 新功能
11
+
12
+ * 修改数据 ([dba6096](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/dba60960ab21422e8fc48362c520ea30a7546ada))
13
+ * 兼容showTabbar ([e33c2d1](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e33c2d10c602dd5b188dfeff0a60a70f21e8d9bb))
14
+ * 补充部分文档 ([813e0f3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/813e0f36a61be48326e446c6ebbcab28102b9a33))
15
+
5
16
  ### [0.4.193](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.192...v0.4.193) (2025-08-18)
6
17
 
7
18
 
@@ -383,7 +383,13 @@ const itemStyle = computed(() => {
383
383
  </view>
384
384
  <view class="flex-1"></view>
385
385
  <view class="flex flex-col gap-1 items-end leading-none">
386
- <view class="flex gap-1 justify-end">
386
+ <view
387
+ class="flex gap-1 justify-end"
388
+ :style="{
389
+ flexFlow: !priceAlignLeft ? 'row' : 'row-reverse',
390
+ width: priceAlignLeft ? '100%' : 'auto',
391
+ }"
392
+ >
387
393
  <view
388
394
  class="flex gap-[2rpx] items-end line-through"
389
395
  v-if="scribePriceVisible && isNumber(scribePrice)"
@@ -135,4 +135,7 @@ export interface LcbProductItemProps {
135
135
  itemContentPr?: number
136
136
  itemContentPb?: number
137
137
  itemContentPl?: number
138
+
139
+ // 价格居左
140
+ priceAlignLeft?: boolean
138
141
  }
@@ -8,7 +8,12 @@
8
8
  :slidable="slidable"
9
9
  :slidableNum="slidableNum"
10
10
  :itemFontSize="itemFontSize"
11
+ :activeFontSize="tabActiveFontSize"
12
+ :activeFontWeight="tabActiveFontWeight"
13
+ :itemFontWeight="tabInactiveFontWeight"
11
14
  ref="tabs"
15
+ :inactiveColor="tagTitleInactiveColor"
16
+ :color="tagTitleActiveColor"
12
17
  >
13
18
  <wd-tab v-for="tab in items" :key="tab.name" :title="tab.title" :name="tab.name" />
14
19
  </wd-tabs>
@@ -19,6 +19,8 @@
19
19
  }"
20
20
  :style="{
21
21
  fontSize: transformValueUnit(itemFontSize),
22
+ backgroundColor: current === index ? tagActiveColor : tagInactiveColor,
23
+ color: current === index ? tagTitleActiveColor : tagTitleInactiveColor,
22
24
  }"
23
25
  @click="handleTagClick(item.name, index)"
24
26
  >
@@ -33,7 +35,12 @@ import { ref } from 'vue'
33
35
  import useSyncForm from '../../../../hooks/useSyncForm'
34
36
  import { transformValueUnit } from '../../../../utils/transform'
35
37
  import { LcbTabsProps } from '../../types'
36
- const props = withDefaults(defineProps<LcbTabsProps>(), {})
38
+ const props = withDefaults(defineProps<LcbTabsProps>(), {
39
+ tagActiveColor: 'var(--wot-color-theme)',
40
+ tagInactiveColor: '#eeeeee',
41
+ tagTitleActiveColor: '#ffffff',
42
+ tagTitleInactiveColor: '#000000',
43
+ })
37
44
  const { syncForm } = useSyncForm(props.dynamicScope)
38
45
  const current = ref()
39
46
  defineOptions({
@@ -60,10 +67,5 @@ handleTagClick(props.items[0]?.name, 0)
60
67
  .lcb-tag {
61
68
  padding: 8rpx 32rpx;
62
69
  border-radius: 10000rpx;
63
- background-color: #eeeeee;
64
- }
65
- .lcb-tag-active {
66
- background-color: $-color-theme;
67
- color: #ffffff;
68
70
  }
69
71
  </style>
@@ -23,4 +23,11 @@ export interface LcbTabsProps extends LcbBlockProps {
23
23
  imgTitleGap?: number
24
24
  activeColor?: string
25
25
  inactiveColor?: string
26
+ tagActiveColor?: string
27
+ tagInactiveColor?: string
28
+ tagTitleActiveColor?: string
29
+ tagTitleInactiveColor?: string
30
+ tabActiveFontWeight?: string
31
+ tabInactiveFontWeight?: string
32
+ tabActiveFontSize?: number
26
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.193",
3
+ "version": "0.4.195",
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.97"
14
+ "@tplc/wot": "0.1.98"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18",
@@ -128,4 +128,5 @@ export interface LcbProductItemProps {
128
128
  itemContentPr?: number
129
129
  itemContentPb?: number
130
130
  itemContentPl?: number
131
+ priceAlignLeft?: boolean
131
132
  }
@@ -1,6 +1,14 @@
1
1
  import { LcbTabsProps } from '../../types'
2
2
  declare const _default: import('vue').DefineComponent<
3
- __VLS_WithDefaults<__VLS_TypePropsToOption<LcbTabsProps>, {}>,
3
+ __VLS_WithDefaults<
4
+ __VLS_TypePropsToOption<LcbTabsProps>,
5
+ {
6
+ tagActiveColor: string
7
+ tagInactiveColor: string
8
+ tagTitleActiveColor: string
9
+ tagTitleInactiveColor: string
10
+ }
11
+ >,
4
12
  {},
5
13
  unknown,
6
14
  {},
@@ -11,9 +19,24 @@ declare const _default: import('vue').DefineComponent<
11
19
  string,
12
20
  import('vue').PublicProps,
13
21
  Readonly<
14
- import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<LcbTabsProps>, {}>>
22
+ import('vue').ExtractPropTypes<
23
+ __VLS_WithDefaults<
24
+ __VLS_TypePropsToOption<LcbTabsProps>,
25
+ {
26
+ tagActiveColor: string
27
+ tagInactiveColor: string
28
+ tagTitleActiveColor: string
29
+ tagTitleInactiveColor: string
30
+ }
31
+ >
32
+ >
15
33
  >,
16
- {},
34
+ {
35
+ tagActiveColor: string
36
+ tagInactiveColor: string
37
+ tagTitleActiveColor: string
38
+ tagTitleInactiveColor: string
39
+ },
17
40
  {}
18
41
  >
19
42
  export default _default
@@ -22,4 +22,11 @@ export interface LcbTabsProps extends LcbBlockProps {
22
22
  imgTitleGap?: number
23
23
  activeColor?: string
24
24
  inactiveColor?: string
25
+ tagActiveColor?: string
26
+ tagInactiveColor?: string
27
+ tagTitleActiveColor?: string
28
+ tagTitleInactiveColor?: string
29
+ tabActiveFontWeight?: string
30
+ tabInactiveFontWeight?: string
31
+ tabActiveFontSize?: number
25
32
  }