@tplc/business 0.4.138 → 0.4.140

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.140](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.139...v0.4.140) (2025-06-25)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 修改标题 ([7da5202](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7da52029917c0ea44daa2b2ec36237e9105bde2b))
11
+
12
+ ### [0.4.139](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.138...v0.4.139) (2025-06-25)
13
+
14
+
15
+ ### ✨ Features | 新功能
16
+
17
+ * 调整字段 ([363344f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/363344f740e50b5fe866024a304f56e7f7b12cc7))
18
+
5
19
  ### [0.4.138](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.87...v0.4.138) (2025-06-25)
6
20
 
7
21
 
@@ -9,10 +9,13 @@
9
9
  >
10
10
  <view class="p-1 pt-3 box-border">
11
11
  <view class="flex justify-between items-center text-white pl-2 pr-1.5 box-border w-full">
12
- <view class="text-4 font-bold flex gap-1.5 items-center">
12
+ <lcb-action-view
13
+ v-bind="titleLink"
14
+ custom-class="!flex !items-center !justify-center gap-1.5"
15
+ >
13
16
  <wd-icon :name="calendarIcon" class-prefix="lcb" size="30rpx" v-if="calendarIcon" />
14
- {{ currentMonth }}
15
- </view>
17
+ {{ title }}
18
+ </lcb-action-view>
16
19
  <lcb-action-view v-bind="link" custom-class="!flex !items-center !justify-center gap-1.5">
17
20
  <view class="font-bold text-3.5">{{ linkTitle }}</view>
18
21
  <wd-icon name="a-xingzhuang97" class-prefix="lcb" size="22rpx" />
@@ -46,7 +49,7 @@
46
49
  <view class="day-info-top">余{{ item.total }}</view>
47
50
  <view class="day-info-bottom mt-1.5">
48
51
  <view v-if="item.pp">
49
- <text>销:¥{{ item.pp }}/</text>
52
+ <text>{{ item.dp || item.sp ? '销:' : '' }}¥{{ item.pp }}/</text>
50
53
  <text class="text-2.5">起</text>
51
54
  </view>
52
55
  <view v-if="item.dp">
@@ -66,7 +69,6 @@
66
69
  </template>
67
70
 
68
71
  <script setup lang="ts">
69
- import { dayjs } from '@tplc/wot'
70
72
  import { LcbRoomCalendarProps } from './types'
71
73
  import { computed, onMounted, ref } from 'vue'
72
74
  interface CalendarInfo {
@@ -102,8 +104,8 @@ withDefaults(defineProps<LcbRoomCalendarProps>(), {
102
104
  backgroundColor: 'var(--wot-color-theme)',
103
105
  topRadius: 16,
104
106
  bottomRadius: 16,
107
+ title: '房态管理',
105
108
  })
106
- const currentMonth = dayjs().format('MM')
107
109
  const info = ref<CalendarInfo>()
108
110
  onMounted(async () => {
109
111
  const { data } = await uni.$lcb.http.post<CalendarInfo>('/storeHotelRoom/queryCalendarInfoIndex')
@@ -6,4 +6,6 @@ export interface LcbRoomCalendarProps extends LcbBlockProps {
6
6
  link?: LcbActionViewProps
7
7
  backgroundImg?: string
8
8
  calendarIcon?: string
9
+ title?: string
10
+ titleLink?: LcbActionViewProps
9
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.138",
3
+ "version": "0.4.140",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -7,6 +7,7 @@ declare const _default: import('vue').DefineComponent<
7
7
  backgroundColor: string
8
8
  topRadius: number
9
9
  bottomRadius: number
10
+ title: string
10
11
  }
11
12
  >,
12
13
  {},
@@ -27,11 +28,13 @@ declare const _default: import('vue').DefineComponent<
27
28
  backgroundColor: string
28
29
  topRadius: number
29
30
  bottomRadius: number
31
+ title: string
30
32
  }
31
33
  >
32
34
  >
33
35
  >,
34
36
  {
37
+ title: string
35
38
  backgroundColor: string
36
39
  topRadius: number
37
40
  bottomRadius: number
@@ -5,4 +5,6 @@ export interface LcbRoomCalendarProps extends LcbBlockProps {
5
5
  link?: LcbActionViewProps
6
6
  backgroundImg?: string
7
7
  calendarIcon?: string
8
+ title?: string
9
+ titleLink?: LcbActionViewProps
8
10
  }