@tplc/wot 1.0.32 → 1.0.34
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,38 @@
|
|
|
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
|
+
### [1.0.34](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.87...v1.0.34) (2026-01-21)
|
|
6
|
+
|
|
7
|
+
### [1.0.33](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.79...v1.0.33) (2026-01-20)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### ♻️ Code Refactoring | 代码重构
|
|
11
|
+
|
|
12
|
+
* **lcb-block:** optimize spacing style calculations for improved readability ([1498cd5](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/1498cd59904603d9d70f7a5df837cb4b588baf1d))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug Fixes | Bug 修复
|
|
16
|
+
|
|
17
|
+
* **lcb-button, wd-button, NestedDraggable:** improve null safety and style adjustments ([0c858c0](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/0c858c02493a58be1d376a6ed2442013635bc376))
|
|
18
|
+
* **MemberRolePopup:** add immediate option to watch for role list fetching ([3bd2d82](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/3bd2d829366d502fe7cde5616572b8b3797fc6bd))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
22
|
+
|
|
23
|
+
* **release:** 0.7.80 ([e020733](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/e020733241e5550020c3de6e1dd4c9b31d5e34b8))
|
|
24
|
+
* **release:** 0.7.81 ([0fbc1c1](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/0fbc1c13378cb07f97f319a7fd27cce1b93db4c2))
|
|
25
|
+
* **release:** 0.7.82 ([5e079ef](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/5e079ef72bd44c581f5ffc0057a037bf596b36e4))
|
|
26
|
+
* **release:** 0.7.83 ([2616220](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/26162203bfbddfcf6f6d9a6579a2fc0fd3a0fc42))
|
|
27
|
+
* **release:** 1.0.32 ([726186c](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/726186c3c7cbc79ba02f504247ebfdb9984e08a8))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### ✨ Features | 新功能
|
|
31
|
+
|
|
32
|
+
* **docs:** enhance documentation for various components, adding usage scenarios, examples, and source locations ([aa54921](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/aa549217140ebd93b569d4fbd1e5236fe66e2c72))
|
|
33
|
+
* **docs:** update lcb-calendar-search and lcb-grid documentation with new examples, configurations, and improved styling ([934131d](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/934131d6bdaba664a789e3c560db19497b630a44))
|
|
34
|
+
* **lcb-calendar:** add confirmText prop and change event emission ([7448304](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/74483045706c9ff410d24376898303a3f6717b1e))
|
|
35
|
+
* **lcb-list, lcb-product, lcb-wrapper-list:** add empty state support with customizable properties ([a8be092](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/a8be0925ce92256dfb0f164fc9bd21b25b6351d2))
|
|
36
|
+
|
|
5
37
|
### [1.0.32](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.83...v1.0.32) (2026-01-20)
|
|
6
38
|
|
|
7
39
|
### [1.0.31](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.78...v1.0.31) (2026-01-18)
|
|
@@ -84,6 +84,7 @@ import { deepClone, isArray, isFunction } from '../../common/util'
|
|
|
84
84
|
import { useTranslate } from '../../composables/useTranslate'
|
|
85
85
|
import type { CalendarDayItem, CalendarDayType, CalendarType } from '../types'
|
|
86
86
|
import { monthProps } from './types'
|
|
87
|
+
import { dayjs } from '../../common/dayjs'
|
|
87
88
|
|
|
88
89
|
const props = defineProps(monthProps)
|
|
89
90
|
const emit = defineEmits(['change'])
|
|
@@ -468,6 +469,31 @@ function getFormatterDate(date: number, day: string | number, type?: CalendarDay
|
|
|
468
469
|
}
|
|
469
470
|
return dayObj
|
|
470
471
|
}
|
|
472
|
+
watch(
|
|
473
|
+
() => props.defaultDays,
|
|
474
|
+
() => {
|
|
475
|
+
if (props.defaultDays) {
|
|
476
|
+
// 获取当前选中的开始时间
|
|
477
|
+
const [startDate, endDate] = isArray(props.value) ? props.value : []
|
|
478
|
+
if (!endDate && startDate) {
|
|
479
|
+
handleDateRangeChange({
|
|
480
|
+
date: dayjs(startDate)
|
|
481
|
+
.add(props.defaultDays - 1, 'days')
|
|
482
|
+
.valueOf() as number,
|
|
483
|
+
type: 'end',
|
|
484
|
+
})
|
|
485
|
+
return
|
|
486
|
+
}
|
|
487
|
+
// 如果有开始时间,以开始时间为起点重新计算结束时间
|
|
488
|
+
if (startDate) {
|
|
489
|
+
handleDateRangeChange({
|
|
490
|
+
date: startDate,
|
|
491
|
+
type: 'start',
|
|
492
|
+
})
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
)
|
|
471
497
|
</script>
|
|
472
498
|
<style lang="scss" scoped>
|
|
473
499
|
@import './index.scss';
|