@tplc/business 0.7.91 → 0.7.92

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.7.92](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.91...v0.7.92) (2026-01-24)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * Add RoomTypeCalendarPicker component and update jumpType for calendar selection ([10f4f49](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/10f4f49619c80a32b0dfa75eb05b48709c432d10))
11
+
5
12
  ### [0.7.91](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.90...v0.7.91) (2026-01-24)
6
13
 
7
14
  ### [0.7.90](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.88...v0.7.90) (2026-01-24)
@@ -74,7 +74,6 @@
74
74
 
75
75
  <script lang="ts" setup>
76
76
  import { ref, watch, computed } from 'vue'
77
- import type { CalendarViewExpose } from '@tplc/wot/components/wd-calendar-view/types'
78
77
  import dayjs from 'dayjs/esm'
79
78
  import { calendarFormatter } from '@tplc/business/utils/formatter'
80
79
  import { useTranslate } from '@tplc/wot'
@@ -102,9 +101,10 @@ const props = withDefaults(
102
101
  defineProps<{
103
102
  /** 日历面板高度 */
104
103
  panelHeight?: number
104
+ defaultSelectedDates?: number[]
105
105
  }>(),
106
106
  {
107
- panelHeight: 490,
107
+ panelHeight: 480,
108
108
  },
109
109
  )
110
110
 
@@ -113,7 +113,7 @@ const tags = ref<{ label: string; value: number | undefined }[]>([])
113
113
  // 使用 defineModel 控制弹窗显示
114
114
  const visible = defineModel<boolean>({ default: false })
115
115
 
116
- const innerTimes = ref<number[]>([])
116
+ const innerTimes = ref<number[]>(props.defaultSelectedDates || [])
117
117
  const innerCustomNights = ref<number | undefined>(undefined)
118
118
  const activeRoomIndex = ref(0)
119
119
  const apiRoomTypes = ref<RoomType[]>([])
@@ -196,7 +196,9 @@ watch(
196
196
  queryRoomPriceCalendar()
197
197
  }
198
198
  },
199
- { immediate: true },
199
+ {
200
+ immediate: true,
201
+ },
200
202
  )
201
203
 
202
204
  // 确认按钮是否禁用
@@ -80,7 +80,11 @@
80
80
  />
81
81
  <MemberRolePopup v-model:show="showMemberRole" v-if="showMemberRole" />
82
82
  <!-- 房型日历选择器测试 -->
83
- <RoomTypeCalendarPicker v-model="showRoomCalendar" v-if="showRoomCalendar" />
83
+ <RoomTypeCalendarPicker
84
+ v-model="showRoomCalendar"
85
+ v-if="showRoomCalendar"
86
+ :defaultSelectedDates="defaultSelectedDates"
87
+ />
84
88
  </view>
85
89
  </template>
86
90
 
@@ -16,6 +16,7 @@ export type LcbActionViewProps = {
16
16
  /** 弹窗文案 */
17
17
  content?: string
18
18
  /** 弹窗标题 */
19
+ defaultSelectedDates?: number[]
19
20
  title?: string
20
21
  requestParam?: Record<string, any>
21
22
  requestInfo?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.7.91",
3
+ "version": "0.7.92",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -1,6 +1,7 @@
1
1
  declare let __VLS_typeProps: {
2
2
  /** 日历面板高度 */
3
3
  panelHeight?: number
4
+ defaultSelectedDates?: number[]
4
5
  }
5
6
  type __VLS_PublicProps = {
6
7
  modelValue?: boolean
@@ -14,6 +14,7 @@ export type LcbActionViewProps = {
14
14
  /** 弹窗文案 */
15
15
  content?: string
16
16
  /** 弹窗标题 */
17
+ defaultSelectedDates?: number[]
17
18
  title?: string
18
19
  requestParam?: Record<string, any>
19
20
  requestInfo?: {
@@ -163,8 +163,8 @@ declare const __VLS_component: import('vue').DefineComponent<
163
163
  params: Record<string, any>
164
164
  minDate: number
165
165
  maxDate: number
166
- defaultDays: number
167
166
  defaultValue: number[]
167
+ defaultDays: number
168
168
  confirmText: string
169
169
  },
170
170
  {}
@@ -79,6 +79,7 @@ declare const _default: import('vue').DefineComponent<
79
79
  action: import('../lcb-action-view/types').LcbActionViewProps,
80
80
  ) => boolean
81
81
  content?: string
82
+ defaultSelectedDates?: number[]
82
83
  title?: string
83
84
  requestParam?: Record<string, any>
84
85
  requestInfo?: {
@@ -191,6 +192,7 @@ declare const _default: import('vue').DefineComponent<
191
192
  action: import('../lcb-action-view/types').LcbActionViewProps,
192
193
  ) => boolean
193
194
  content?: string
195
+ defaultSelectedDates?: number[]
194
196
  title?: string
195
197
  requestParam?: Record<string, any>
196
198
  requestInfo?: {
@@ -278,6 +280,7 @@ declare const _default: import('vue').DefineComponent<
278
280
  action: import('../lcb-action-view/types').LcbActionViewProps,
279
281
  ) => boolean
280
282
  content?: string
283
+ defaultSelectedDates?: number[]
281
284
  title?: string
282
285
  requestParam?: Record<string, any>
283
286
  requestInfo?: {
@@ -365,6 +368,7 @@ declare const _default: import('vue').DefineComponent<
365
368
  action: import('../lcb-action-view/types').LcbActionViewProps,
366
369
  ) => boolean
367
370
  content?: string
371
+ defaultSelectedDates?: number[]
368
372
  title?: string
369
373
  requestParam?: Record<string, any>
370
374
  requestInfo?: {
@@ -451,6 +455,7 @@ declare const _default: import('vue').DefineComponent<
451
455
  action: import('../lcb-action-view/types').LcbActionViewProps,
452
456
  ) => boolean
453
457
  content?: string
458
+ defaultSelectedDates?: number[]
454
459
  title?: string
455
460
  requestParam?: Record<string, any>
456
461
  requestInfo?: {
@@ -543,6 +548,7 @@ declare const _default: import('vue').DefineComponent<
543
548
  action: import('../lcb-action-view/types').LcbActionViewProps,
544
549
  ) => boolean
545
550
  content?: string
551
+ defaultSelectedDates?: number[]
546
552
  title?: string
547
553
  requestParam?: Record<string, any>
548
554
  requestInfo?: {
@@ -629,6 +635,7 @@ declare const _default: import('vue').DefineComponent<
629
635
  action: import('../lcb-action-view/types').LcbActionViewProps,
630
636
  ) => boolean
631
637
  content?: string
638
+ defaultSelectedDates?: number[]
632
639
  title?: string
633
640
  requestParam?: Record<string, any>
634
641
  requestInfo?: {
@@ -715,6 +722,7 @@ declare const _default: import('vue').DefineComponent<
715
722
  action: import('../lcb-action-view/types').LcbActionViewProps,
716
723
  ) => boolean
717
724
  content?: string
725
+ defaultSelectedDates?: number[]
718
726
  title?: string
719
727
  requestParam?: Record<string, any>
720
728
  requestInfo?: {
@@ -805,6 +813,7 @@ declare const _default: import('vue').DefineComponent<
805
813
  action: import('../lcb-action-view/types').LcbActionViewProps,
806
814
  ) => boolean
807
815
  content?: string
816
+ defaultSelectedDates?: number[]
808
817
  title?: string
809
818
  requestParam?: Record<string, any>
810
819
  requestInfo?: {