@tplc/wot 1.0.32 → 1.0.33

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,36 @@
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.33](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.79...v1.0.33) (2026-01-20)
6
+
7
+
8
+ ### ♻️ Code Refactoring | 代码重构
9
+
10
+ * **lcb-block:** optimize spacing style calculations for improved readability ([1498cd5](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/1498cd59904603d9d70f7a5df837cb4b588baf1d))
11
+
12
+
13
+ ### 🐛 Bug Fixes | Bug 修复
14
+
15
+ * **lcb-button, wd-button, NestedDraggable:** improve null safety and style adjustments ([0c858c0](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/0c858c02493a58be1d376a6ed2442013635bc376))
16
+ * **MemberRolePopup:** add immediate option to watch for role list fetching ([3bd2d82](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/3bd2d829366d502fe7cde5616572b8b3797fc6bd))
17
+
18
+
19
+ ### 🚀 Chore | 构建/工程依赖/工具
20
+
21
+ * **release:** 0.7.80 ([e020733](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/e020733241e5550020c3de6e1dd4c9b31d5e34b8))
22
+ * **release:** 0.7.81 ([0fbc1c1](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/0fbc1c13378cb07f97f319a7fd27cce1b93db4c2))
23
+ * **release:** 0.7.82 ([5e079ef](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/5e079ef72bd44c581f5ffc0057a037bf596b36e4))
24
+ * **release:** 0.7.83 ([2616220](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/26162203bfbddfcf6f6d9a6579a2fc0fd3a0fc42))
25
+ * **release:** 1.0.32 ([726186c](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/726186c3c7cbc79ba02f504247ebfdb9984e08a8))
26
+
27
+
28
+ ### ✨ Features | 新功能
29
+
30
+ * **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))
31
+ * **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))
32
+ * **lcb-calendar:** add confirmText prop and change event emission ([7448304](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/74483045706c9ff410d24376898303a3f6717b1e))
33
+ * **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))
34
+
5
35
  ### [1.0.32](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.83...v1.0.32) (2026-01-20)
6
36
 
7
37
  ### [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 '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(),
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';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "@tplc/wot",
3
3
  "name": "@tplc/wot",
4
- "version": "1.0.32",
4
+ "version": "1.0.33",
5
5
  "keywords": [
6
6
  "wot-design-uni",
7
7
  "国际化",
@@ -129,7 +129,7 @@ declare const _default: __VLS_WithTemplateSlots<
129
129
  customClass: string
130
130
  modelValue: boolean
131
131
  disabled: boolean
132
- offset: number | number[] | Record<'x' | 'y', number>
132
+ offset: number | number[] | Record<'y' | 'x', number>
133
133
  showClose: boolean
134
134
  customArrow: string
135
135
  customPop: string