@tplc/business 0.3.24 → 0.3.25

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,8 @@
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.3.25](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.24...v0.3.25) (2025-02-09)
6
+
5
7
  ### [0.3.24](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.23...v0.3.24) (2025-02-08)
6
8
 
7
9
  ### [0.3.23](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.57...v0.3.23) (2025-02-08)
@@ -7,7 +7,7 @@
7
7
  :formatter="formatter"
8
8
  :min-date="minDate"
9
9
  :max-date="maxDate"
10
- @open="emits('open')"
10
+ @open="onOpen"
11
11
  @cancel="emits('cancel')"
12
12
  >
13
13
  <slot />
@@ -59,6 +59,12 @@ const props = defineProps({
59
59
  })
60
60
  const model = defineModel<number[]>()
61
61
  const value = ref(model.value || props.defaultValue)
62
+ const onOpen = () => {
63
+ if (Object.keys(holidayInfo.value).length === 0) {
64
+ getDayInfo()
65
+ }
66
+ emits('open')
67
+ }
62
68
 
63
69
  const getDayInfo = async () => {
64
70
  const { data } = await queryHolidayInfoList({
@@ -76,7 +82,7 @@ const getDayInfo = async () => {
76
82
  {} as Record<string, LcbHistoryResult>,
77
83
  )
78
84
  }
79
- getDayInfo()
85
+
80
86
  const formatter = (day: any) => {
81
87
  const date = new Date(day.date)
82
88
  const now = new Date()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.3.24",
3
+ "version": "0.3.25",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],