@tplc/business 0.7.91 → 0.7.93

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.7.93](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.92...v0.7.93) (2026-01-24)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * Add defaultSelectedDates prop to LcbActionView and RoomTypeCalendarPicker components ([874ecc5](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/874ecc5f259c6506eec3e38ef7c4f447ae80183f))
11
+
12
+ ### [0.7.92](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.91...v0.7.92) (2026-01-24)
13
+
14
+
15
+ ### ✨ Features | 新功能
16
+
17
+ * Add RoomTypeCalendarPicker component and update jumpType for calendar selection ([10f4f49](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/10f4f49619c80a32b0dfa75eb05b48709c432d10))
18
+
5
19
  ### [0.7.91](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.90...v0.7.91) (2026-01-24)
6
20
 
7
21
  ### [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
  // 确认按钮是否禁用
@@ -28,6 +28,7 @@
28
28
  :style="customStyle"
29
29
  show-message-card
30
30
  :send-message-path="routeFullPath"
31
+ :data-share="shareInfo"
31
32
  >
32
33
  <slot />
33
34
  </button>
@@ -79,8 +80,6 @@
79
80
  :jumpUrl="jumpUrl"
80
81
  />
81
82
  <MemberRolePopup v-model:show="showMemberRole" v-if="showMemberRole" />
82
- <!-- 房型日历选择器测试 -->
83
- <RoomTypeCalendarPicker v-model="showRoomCalendar" v-if="showRoomCalendar" />
84
83
  </view>
85
84
  </template>
86
85
 
@@ -96,7 +95,6 @@ import { PAGE_PROVIDE_KEY, USER_BASIC_INFO } from '../../constants'
96
95
  import { getTemplateMessageList, TemplateMessage } from '../../api/user'
97
96
  import PayPopup from './components/PayPopup/index.vue'
98
97
  import MemberRolePopup from './components/MemberRolePopup/index.vue'
99
- import RoomTypeCalendarPicker from './components/RoomTypeCalendarPicker/index.vue'
100
98
  const { translate } = useTranslate()
101
99
  defineOptions({
102
100
  name: 'LcbActionView',
@@ -113,7 +111,6 @@ const pageInfo = inject(PAGE_PROVIDE_KEY) as unknown as Ref<Record<string, any>>
113
111
  const showPoster = ref(false)
114
112
  const showPay = ref(false)
115
113
  const showMemberRole = ref(false)
116
- const showRoomCalendar = ref(false)
117
114
  const emits = defineEmits<{
118
115
  (e: 'phone', value: { detail: { errMsg: string; encryptedData: string; iv: string } }): void
119
116
  (e: 'avatar', value: string): void
@@ -395,9 +392,6 @@ const onActionClick = async () => {
395
392
  case '148':
396
393
  showMemberRole.value = true
397
394
  break
398
- case '149':
399
- showRoomCalendar.value = true
400
- break
401
395
  default:
402
396
  emits('click', props)
403
397
  break
@@ -8,6 +8,14 @@ export type LcbActionViewProps = {
8
8
  customClass?: string
9
9
  customStyle?: StyleValue
10
10
  renderMode?: 'view' | 'button' | 'noClick'
11
+ shareInfo?: {
12
+ title?: string
13
+ path?: string
14
+ imageUrl?: string
15
+ imgUrl?: string
16
+ query?: object
17
+ shareParams?: string
18
+ }
11
19
  autoJumpSecond?: number
12
20
  /** 弹窗位置 */
13
21
  position?: PopupType
@@ -16,8 +24,10 @@ export type LcbActionViewProps = {
16
24
  /** 弹窗文案 */
17
25
  content?: string
18
26
  /** 弹窗标题 */
27
+ defaultSelectedDates?: number[]
19
28
  title?: string
20
29
  requestParam?: Record<string, any>
30
+
21
31
  requestInfo?: {
22
32
  requestUrl: string
23
33
  requestParams: Record<string, any>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.7.91",
3
+ "version": "0.7.93",
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
@@ -7,6 +7,14 @@ export type LcbActionViewProps = {
7
7
  customClass?: string
8
8
  customStyle?: StyleValue
9
9
  renderMode?: 'view' | 'button' | 'noClick'
10
+ shareInfo?: {
11
+ title?: string
12
+ path?: string
13
+ imageUrl?: string
14
+ imgUrl?: string
15
+ query?: object
16
+ shareParams?: string
17
+ }
10
18
  autoJumpSecond?: number
11
19
  /** 弹窗位置 */
12
20
  position?: PopupType
@@ -14,6 +22,7 @@ export type LcbActionViewProps = {
14
22
  /** 弹窗文案 */
15
23
  content?: string
16
24
  /** 弹窗标题 */
25
+ defaultSelectedDates?: number[]
17
26
  title?: string
18
27
  requestParam?: Record<string, any>
19
28
  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
  {}
@@ -73,12 +73,21 @@ declare const _default: import('vue').DefineComponent<
73
73
  customClass?: string
74
74
  customStyle?: import('vue').StyleValue
75
75
  renderMode?: 'view' | 'button' | 'noClick'
76
+ shareInfo?: {
77
+ title?: string
78
+ path?: string
79
+ imageUrl?: string
80
+ imgUrl?: string
81
+ query?: object
82
+ shareParams?: string
83
+ }
76
84
  autoJumpSecond?: number
77
85
  position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
78
86
  jumpInterceptor?: (
79
87
  action: import('../lcb-action-view/types').LcbActionViewProps,
80
88
  ) => boolean
81
89
  content?: string
90
+ defaultSelectedDates?: number[]
82
91
  title?: string
83
92
  requestParam?: Record<string, any>
84
93
  requestInfo?: {
@@ -185,12 +194,21 @@ declare const _default: import('vue').DefineComponent<
185
194
  customClass?: string
186
195
  customStyle?: import('vue').StyleValue
187
196
  renderMode?: 'view' | 'button' | 'noClick'
197
+ shareInfo?: {
198
+ title?: string
199
+ path?: string
200
+ imageUrl?: string
201
+ imgUrl?: string
202
+ query?: object
203
+ shareParams?: string
204
+ }
188
205
  autoJumpSecond?: number
189
206
  position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
190
207
  jumpInterceptor?: (
191
208
  action: import('../lcb-action-view/types').LcbActionViewProps,
192
209
  ) => boolean
193
210
  content?: string
211
+ defaultSelectedDates?: number[]
194
212
  title?: string
195
213
  requestParam?: Record<string, any>
196
214
  requestInfo?: {
@@ -272,12 +290,21 @@ declare const _default: import('vue').DefineComponent<
272
290
  customClass?: string
273
291
  customStyle?: import('vue').StyleValue
274
292
  renderMode?: 'view' | 'button' | 'noClick'
293
+ shareInfo?: {
294
+ title?: string
295
+ path?: string
296
+ imageUrl?: string
297
+ imgUrl?: string
298
+ query?: object
299
+ shareParams?: string
300
+ }
275
301
  autoJumpSecond?: number
276
302
  position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
277
303
  jumpInterceptor?: (
278
304
  action: import('../lcb-action-view/types').LcbActionViewProps,
279
305
  ) => boolean
280
306
  content?: string
307
+ defaultSelectedDates?: number[]
281
308
  title?: string
282
309
  requestParam?: Record<string, any>
283
310
  requestInfo?: {
@@ -359,12 +386,21 @@ declare const _default: import('vue').DefineComponent<
359
386
  customClass?: string
360
387
  customStyle?: import('vue').StyleValue
361
388
  renderMode?: 'view' | 'button' | 'noClick'
389
+ shareInfo?: {
390
+ title?: string
391
+ path?: string
392
+ imageUrl?: string
393
+ imgUrl?: string
394
+ query?: object
395
+ shareParams?: string
396
+ }
362
397
  autoJumpSecond?: number
363
398
  position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
364
399
  jumpInterceptor?: (
365
400
  action: import('../lcb-action-view/types').LcbActionViewProps,
366
401
  ) => boolean
367
402
  content?: string
403
+ defaultSelectedDates?: number[]
368
404
  title?: string
369
405
  requestParam?: Record<string, any>
370
406
  requestInfo?: {
@@ -445,12 +481,21 @@ declare const _default: import('vue').DefineComponent<
445
481
  customClass?: string
446
482
  customStyle?: import('vue').StyleValue
447
483
  renderMode?: 'view' | 'button' | 'noClick'
484
+ shareInfo?: {
485
+ title?: string
486
+ path?: string
487
+ imageUrl?: string
488
+ imgUrl?: string
489
+ query?: object
490
+ shareParams?: string
491
+ }
448
492
  autoJumpSecond?: number
449
493
  position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
450
494
  jumpInterceptor?: (
451
495
  action: import('../lcb-action-view/types').LcbActionViewProps,
452
496
  ) => boolean
453
497
  content?: string
498
+ defaultSelectedDates?: number[]
454
499
  title?: string
455
500
  requestParam?: Record<string, any>
456
501
  requestInfo?: {
@@ -537,12 +582,21 @@ declare const _default: import('vue').DefineComponent<
537
582
  customClass?: string
538
583
  customStyle?: import('vue').StyleValue
539
584
  renderMode?: 'view' | 'button' | 'noClick'
585
+ shareInfo?: {
586
+ title?: string
587
+ path?: string
588
+ imageUrl?: string
589
+ imgUrl?: string
590
+ query?: object
591
+ shareParams?: string
592
+ }
540
593
  autoJumpSecond?: number
541
594
  position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
542
595
  jumpInterceptor?: (
543
596
  action: import('../lcb-action-view/types').LcbActionViewProps,
544
597
  ) => boolean
545
598
  content?: string
599
+ defaultSelectedDates?: number[]
546
600
  title?: string
547
601
  requestParam?: Record<string, any>
548
602
  requestInfo?: {
@@ -623,12 +677,21 @@ declare const _default: import('vue').DefineComponent<
623
677
  customClass?: string
624
678
  customStyle?: import('vue').StyleValue
625
679
  renderMode?: 'view' | 'button' | 'noClick'
680
+ shareInfo?: {
681
+ title?: string
682
+ path?: string
683
+ imageUrl?: string
684
+ imgUrl?: string
685
+ query?: object
686
+ shareParams?: string
687
+ }
626
688
  autoJumpSecond?: number
627
689
  position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
628
690
  jumpInterceptor?: (
629
691
  action: import('../lcb-action-view/types').LcbActionViewProps,
630
692
  ) => boolean
631
693
  content?: string
694
+ defaultSelectedDates?: number[]
632
695
  title?: string
633
696
  requestParam?: Record<string, any>
634
697
  requestInfo?: {
@@ -709,12 +772,21 @@ declare const _default: import('vue').DefineComponent<
709
772
  customClass?: string
710
773
  customStyle?: import('vue').StyleValue
711
774
  renderMode?: 'view' | 'button' | 'noClick'
775
+ shareInfo?: {
776
+ title?: string
777
+ path?: string
778
+ imageUrl?: string
779
+ imgUrl?: string
780
+ query?: object
781
+ shareParams?: string
782
+ }
712
783
  autoJumpSecond?: number
713
784
  position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
714
785
  jumpInterceptor?: (
715
786
  action: import('../lcb-action-view/types').LcbActionViewProps,
716
787
  ) => boolean
717
788
  content?: string
789
+ defaultSelectedDates?: number[]
718
790
  title?: string
719
791
  requestParam?: Record<string, any>
720
792
  requestInfo?: {
@@ -799,12 +871,21 @@ declare const _default: import('vue').DefineComponent<
799
871
  customClass?: string
800
872
  customStyle?: import('vue').StyleValue
801
873
  renderMode?: 'view' | 'button' | 'noClick'
874
+ shareInfo?: {
875
+ title?: string
876
+ path?: string
877
+ imageUrl?: string
878
+ imgUrl?: string
879
+ query?: object
880
+ shareParams?: string
881
+ }
802
882
  autoJumpSecond?: number
803
883
  position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
804
884
  jumpInterceptor?: (
805
885
  action: import('../lcb-action-view/types').LcbActionViewProps,
806
886
  ) => boolean
807
887
  content?: string
888
+ defaultSelectedDates?: number[]
808
889
  title?: string
809
890
  requestParam?: Record<string, any>
810
891
  requestInfo?: {