@tplc/business 0.4.50 → 0.4.52

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,20 @@
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.52](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.51...v0.4.52) (2025-04-02)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 兼容数据 ([acaf31b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/acaf31bd203f7725a139bc2e2e312debb00ce7dd))
11
+
12
+ ### [0.4.51](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.50...v0.4.51) (2025-04-02)
13
+
14
+
15
+ ### ✨ Features | 新功能
16
+
17
+ * 调整图片 ([227c350](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/227c350287e154ee1bb30c6689cd64a8a97642f2))
18
+
5
19
  ### [0.4.50](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.49...v0.4.50) (2025-04-02)
6
20
 
7
21
  ### [0.4.49](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.48...v0.4.49) (2025-04-02)
@@ -18,6 +18,7 @@
18
18
  ? `span ${areaItems?.[index]?.colSpan} / span ${areaItems?.[index]?.colSpan}`
19
19
  : undefined,
20
20
  flex: display === 'flex' ? '1 1 0' : undefined,
21
+ overflowX,
21
22
  }"
22
23
  >
23
24
  <slot :item="item" />
@@ -41,6 +42,7 @@ defineOptions({
41
42
  const props = withDefaults(defineProps<LcbAreaProps>(), {
42
43
  displayFlex: 'row',
43
44
  display: 'flex',
45
+ overflowX: 'initial',
44
46
  })
45
47
 
46
48
  const innerStyle = computed(() => {
@@ -12,4 +12,5 @@ export interface LcbAreaProps extends LcbBlockProps {
12
12
  areaItems?: {
13
13
  colSpan?: number
14
14
  }[]
15
+ overflowX?: 'hidden' | 'initial' | 'auto'
15
16
  }
@@ -53,7 +53,7 @@
53
53
  color: form.keywords ? 'var(--content-color)' : '#969696',
54
54
  }"
55
55
  v-bind="inputLink"
56
- :urlParams="stringify(form)"
56
+ :urlParams="urlParams"
57
57
  >
58
58
  {{ form.keywords || placeholder }}
59
59
  </lcb-action-view>
@@ -87,7 +87,7 @@
87
87
  <view class="tag">{{ translate('共') }}{{ nightCount }}{{ translate('晚') }}</view>
88
88
  </view>
89
89
  </lcb-calendar>
90
- <lcb-action-view v-bind="link" :urlParams="stringify(form)">
90
+ <lcb-action-view v-bind="link" :urlParams="urlParams">
91
91
  <wd-button type="primary" customClass="!w-full my-42rpx" size="large">
92
92
  {{ btnText || `${translate('搜索')}${tabs?.[current]?.label || ''}` }}
93
93
  </wd-button>
@@ -161,8 +161,11 @@ const getDayName = (time: number) => {
161
161
  }
162
162
  }
163
163
 
164
- watchEffect(() => {
165
- form.value.categoryTags = props.tabs[current.value].value
164
+ const urlParams = computed(() => {
165
+ return stringify({
166
+ ...form.value,
167
+ categoryTags: props.tabs[current.value].value,
168
+ })
166
169
  })
167
170
 
168
171
  watchEffect(() => {
@@ -7,8 +7,8 @@
7
7
  v-model="dataList"
8
8
  @query="queryList"
9
9
  :fixed="false"
10
- :use-page-scroll="false"
11
- :height="height"
10
+ :use-page-scroll="autoHeight"
11
+ :height="autoHeight ? undefined : height"
12
12
  @onRefresh="onRefresh"
13
13
  :loading-more-enabled="!refreshed"
14
14
  >
@@ -1,20 +1,18 @@
1
1
  <template>
2
- <view class="w-full">
3
- <lcb-block v-bind="$props">
4
- <wd-tabs
5
- custom-class="!bg-transparent"
6
- @change="handleChange"
7
- :lineWidth="lineWidth"
8
- :lineHeight="lineHeight"
9
- :slidable="slidable"
10
- :slidableNum="slidableNum"
11
- :itemFontSize="itemFontSize"
12
- ref="tabs"
13
- >
14
- <wd-tab v-for="tab in items" :key="tab.name" :title="tab.title" :name="tab.name" />
15
- </wd-tabs>
16
- </lcb-block>
17
- </view>
2
+ <lcb-block v-bind="$props">
3
+ <wd-tabs
4
+ custom-class="!bg-transparent"
5
+ @change="handleChange"
6
+ :lineWidth="lineWidth"
7
+ :lineHeight="lineHeight"
8
+ :slidable="slidable"
9
+ :slidableNum="slidableNum"
10
+ :itemFontSize="itemFontSize"
11
+ ref="tabs"
12
+ >
13
+ <wd-tab v-for="tab in items" :key="tab.name" :title="tab.title" :name="tab.name" />
14
+ </wd-tabs>
15
+ </lcb-block>
18
16
  </template>
19
17
 
20
18
  <script setup lang="ts">
@@ -1,33 +1,31 @@
1
1
  <template>
2
- <view class="w-100vw">
3
- <lcb-block v-bind="$props">
2
+ <lcb-block v-bind="$props">
3
+ <view
4
+ :class="{
5
+ 'flex flex-wrap': tagsMode === 'tiled',
6
+ 'flex whitespace-nowrap overflow-x-auto': tagsMode === 'scroll',
7
+ }"
8
+ :style="{
9
+ gap: transformValueUnit(gap),
10
+ }"
11
+ >
4
12
  <view
13
+ v-for="(item, index) in items"
14
+ :key="index"
15
+ class="lcb-tag"
5
16
  :class="{
6
- 'flex flex-wrap': tagsMode === 'tiled',
7
- 'flex whitespace-nowrap overflow-x-auto': tagsMode === 'scroll',
17
+ 'lcb-tag-active': current === index,
18
+ 'inline-block': tagsMode === 'scroll',
8
19
  }"
9
20
  :style="{
10
- gap: transformValueUnit(gap),
21
+ fontSize: transformValueUnit(itemFontSize),
11
22
  }"
23
+ @click="handleTagClick(item.name, index)"
12
24
  >
13
- <view
14
- v-for="(item, index) in items"
15
- :key="index"
16
- class="lcb-tag"
17
- :class="{
18
- 'lcb-tag-active': current === index,
19
- 'inline-block': tagsMode === 'scroll',
20
- }"
21
- :style="{
22
- fontSize: transformValueUnit(itemFontSize),
23
- }"
24
- @click="handleTagClick(item.name, index)"
25
- >
26
- {{ item.title }}
27
- </view>
25
+ {{ item.title }}
28
26
  </view>
29
- </lcb-block>
30
- </view>
27
+ </view>
28
+ </lcb-block>
31
29
  </template>
32
30
 
33
31
  <script setup lang="ts">
@@ -1,7 +1,9 @@
1
1
  <template>
2
2
  <wd-sticky v-if="sticky">
3
- <Tabs v-bind="$props" v-if="mode === 'tabs'" />
4
- <Tags v-bind="$props" v-else />
3
+ <view class="w-100vw">
4
+ <Tabs v-bind="$props" v-if="mode === 'tabs'" />
5
+ <Tags v-bind="$props" v-else />
6
+ </view>
5
7
  </wd-sticky>
6
8
  <Tabs v-else-if="mode === 'tabs'" v-bind="$props" />
7
9
  <Tags v-else v-bind="$props" />
@@ -92,28 +92,28 @@
92
92
  v-if="valuesCard == true"
93
93
  v-bind="$props"
94
94
  :title="valuesCardText"
95
- valueKey="walletAmount"
95
+ :valueKey="valuesCardKey"
96
96
  :link="valuesCardLink"
97
97
  />
98
98
  <Nums
99
99
  v-if="coupons == true"
100
100
  v-bind="$props"
101
101
  :title="couponsText"
102
- valueKey="voucherCount"
102
+ :valueKey="couponsKey"
103
103
  :link="couponsLink"
104
104
  />
105
105
  <Nums
106
106
  v-if="presales == true"
107
107
  v-bind="$props"
108
108
  :title="presalesText"
109
- valueKey="voucherCount"
109
+ :valueKey="presalesKey"
110
110
  :link="presalesLink"
111
111
  />
112
112
  <Nums
113
113
  v-if="memberPoints == true"
114
114
  v-bind="$props"
115
115
  :title="memberPointsText"
116
- valueKey="usePoint"
116
+ :valueKey="memberPointsKey"
117
117
  :link="memberPointsLink"
118
118
  />
119
119
  </view>
@@ -158,6 +158,10 @@ withDefaults(defineProps<LcbUserTopProps>(), {
158
158
  presalesText: '预售券',
159
159
  memberPointsText: '会员积分',
160
160
  titleMarginTop: 15,
161
+ valuesCardKey: 'walletAmount',
162
+ couponsKey: 'voucherCount',
163
+ presalesKey: 'presellCount',
164
+ memberPointsKey: 'usePoint',
161
165
  valuesCardLink: () => ({
162
166
  jumpType: 2,
163
167
  jumpUrl: '/pages-sub/walletAccount/index',
@@ -42,6 +42,10 @@ export interface LcbUserTopProps extends LcbBlockProps {
42
42
  couponsLink?: LcbActionViewProps
43
43
  presalesLink?: LcbActionViewProps
44
44
  memberPointsLink?: LcbActionViewProps
45
+ valuesCardKey?: string
46
+ couponsKey?: string
47
+ presalesKey?: string
48
+ memberPointsKey?: string
45
49
  }
46
50
 
47
51
  export interface NumsItemProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.50",
3
+ "version": "0.4.52",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -8,6 +8,7 @@ declare const __VLS_component: import('vue').DefineComponent<
8
8
  {
9
9
  displayFlex: string
10
10
  display: string
11
+ overflowX: string
11
12
  }
12
13
  >,
13
14
  {},
@@ -26,6 +27,7 @@ declare const __VLS_component: import('vue').DefineComponent<
26
27
  {
27
28
  displayFlex: string
28
29
  display: string
30
+ overflowX: string
29
31
  }
30
32
  >
31
33
  >
@@ -33,6 +35,7 @@ declare const __VLS_component: import('vue').DefineComponent<
33
35
  {
34
36
  display: 'flex' | 'grid'
35
37
  displayFlex: 'row' | 'column'
38
+ overflowX: 'hidden' | 'initial' | 'auto'
36
39
  },
37
40
  {}
38
41
  >
@@ -12,4 +12,5 @@ export interface LcbAreaProps extends LcbBlockProps {
12
12
  areaItems?: {
13
13
  colSpan?: number
14
14
  }[]
15
+ overflowX?: 'hidden' | 'initial' | 'auto'
15
16
  }
@@ -22,6 +22,10 @@ declare const _default: import('vue').DefineComponent<
22
22
  presalesText: string
23
23
  memberPointsText: string
24
24
  titleMarginTop: number
25
+ valuesCardKey: string
26
+ couponsKey: string
27
+ presalesKey: string
28
+ memberPointsKey: string
25
29
  valuesCardLink: () => {
26
30
  jumpType: number
27
31
  jumpUrl: string
@@ -73,6 +77,10 @@ declare const _default: import('vue').DefineComponent<
73
77
  presalesText: string
74
78
  memberPointsText: string
75
79
  titleMarginTop: number
80
+ valuesCardKey: string
81
+ couponsKey: string
82
+ presalesKey: string
83
+ memberPointsKey: string
76
84
  valuesCardLink: () => {
77
85
  jumpType: number
78
86
  jumpUrl: string
@@ -117,6 +125,10 @@ declare const _default: import('vue').DefineComponent<
117
125
  couponsLink: import('../lcb-action-view/types').LcbActionViewProps
118
126
  presalesLink: import('../lcb-action-view/types').LcbActionViewProps
119
127
  memberPointsLink: import('../lcb-action-view/types').LcbActionViewProps
128
+ valuesCardKey: string
129
+ couponsKey: string
130
+ presalesKey: string
131
+ memberPointsKey: string
120
132
  },
121
133
  {}
122
134
  >
@@ -39,6 +39,10 @@ export interface LcbUserTopProps extends LcbBlockProps {
39
39
  couponsLink?: LcbActionViewProps
40
40
  presalesLink?: LcbActionViewProps
41
41
  memberPointsLink?: LcbActionViewProps
42
+ valuesCardKey?: string
43
+ couponsKey?: string
44
+ presalesKey?: string
45
+ memberPointsKey?: string
42
46
  }
43
47
  export interface NumsItemProps {
44
48
  numsSize?: number