uview-pro 0.5.16 → 0.5.18

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
@@ -1,32 +1,76 @@
1
- ## 0.5.16(2026-03-26
2
-
3
- ### Features | 新功能
4
-
5
- - **web:** 浏览器平台添加触摸模拟器支持 ([cf96a73](https://github.com/anyup/uView-Pro/commit/cf96a73e09512291143954401aa7850ac59f1207))
6
- - **u-button:** 新增 large、small 按钮尺寸选项,丰富按钮尺寸规格 ([053d7e8](https://github.com/anyup/uView-Pro/commit/053d7e8ab92af403cdfde36369f38a2aded27288))
7
- - **u-input:** u-input添加size属性,支持small/default/large预设值以及自定义尺寸(#137) ([afed961](https://github.com/anyup/uView-Pro/commit/afed961f65c86bd84a2b02828bb361480c7f95b3))
8
- - **u-textarea:** u-textarea组件新增size属性,支持small/default/large预设值以及自定义数值(#137) ([47296e8](https://github.com/anyup/uView-Pro/commit/47296e8669d419d41959dff01de758a610122d34))
9
- - **u-checkbox:** u-checkbox,u-checkbox-group支持small/default/large预设尺寸配置,优化组件样式(#137) ([e8918e2](https://github.com/anyup/uView-Pro/commit/e8918e28a413d861e05a213d49f9a1b39af17964))
10
- - **u-radio:** u-radio,u-radio-group支持small/default/large预设尺寸配置(#137) ([51af7f8](https://github.com/anyup/uView-Pro/commit/51af7f8f86eed99ee159738e43d5dc2d5c6747c8))
11
- - **u-switch:** u-switch支持small/default/large预设尺寸配置(#137) ([6041d52](https://github.com/anyup/uView-Pro/commit/6041d52338172d40957e3ed7af1dde01aa7de074))
12
- - **u-form:** 新增表单大小配置功能,u-form支持小、中、大三种尺寸设置(#137) ([324adb9](https://github.com/anyup/uView-Pro/commit/324adb99de9dfbb72a0a0c40748c11323d3b9470))
13
- - **u-tag:** 为深色模式标签添加边框样式,保持统一性 ([84d0ad6](https://github.com/anyup/uView-Pro/commit/84d0ad6c805d570e216beaa2dc586687a5aae848))
14
-
15
- ### ♻️ Code Refactoring | 代码重构
16
-
17
- - 添加调试模式配置并重构日志系统 ([a52a3f7](https://github.com/anyup/uView-Pro/commit/a52a3f7d6be7d8332a67c1d8458f4e65e0a0204e))
18
- - **props:** 移除baseProps公共属性并内联到各组件,修复uni_modules引入方式在微信小程序正式打包运行报错的问题 ([f30f779](https://github.com/anyup/uView-Pro/commit/f30f7792a48679afc3cf705a5eb0b182591fe9b5))
19
- - **form:** 调整表单大小配置位置 ([45ffecd](https://github.com/anyup/uView-Pro/commit/45ffecd3522df85cdaaa62ecb9c33d7839443586))
20
-
21
- ### 🐛 Bug Fixes | Bug 修复
22
-
23
- - **useChildren:** 修复组件关系工具子组件ID缓存问题,避免同组件多次调用useChildren时重复注册 ([3a8c659](https://github.com/anyup/uView-Pro/commit/3a8c659ce596b483559cf4b061d0b54d784a902b))
24
- - **u-form:** 修复移除字段时方法不存在的错误 ([58ada99](https://github.com/anyup/uView-Pro/commit/58ada99a8cbd44874eebfd305a4aeb721add8558))
25
-
26
- ### 👥 Contributors
27
-
28
- <a href="https://github.com/anyup"><img src="https://github.com/anyup.png?size=40" width="40" height="40" alt="anyup" title="anyup"/></a>
29
-
1
+ ## 0.5.18(2026-04-22
2
+
3
+ ### 🐛 Bug Fixes | Bug 修复
4
+
5
+ - **u-calendar:** 修复农历数据响应式访问问题 ([0a88b13](https://github.com/anyup/uView-Pro/commit/0a88b13911fc8c47229f5d9cab0fdfc8ade09ecb))
6
+ - **mp-weixin:** 修复微信小程序演示示例vue-i18n多语言切换后uni.getLocale()始终获取中文的问题 ([30b811f](https://github.com/anyup/uView-Pro/commit/30b811f85db29165cd150bea380dfe44f94fda79))
7
+ - **demo:** 取消底部导航标题配置设置国际化文案 ([7b949ab](https://github.com/anyup/uView-Pro/commit/7b949ab8695fbc3d9db51b96da1b25a1f05c2ed3))
8
+ - **demo:** 修复日历组件demo切换逻辑 ([9aa706a](https://github.com/anyup/uView-Pro/commit/9aa706a0e7b564c2bef75d1d6e7a90023dfc1c17))
9
+
10
+ ### Features | 新功能
11
+
12
+ - **u-tabbar:** 底部导航栏支持自定义item宽度配置,优化item平分功能 ([997846f](https://github.com/anyup/uView-Pro/commit/997846fb5f8ba4648e4d0514f0846ce80a217490))
13
+
14
+ ### 📝 Documentation | 文档
15
+
16
+ - update uview pro desc ([ba65d2e](https://github.com/anyup/uView-Pro/commit/ba65d2e34a1e620b595122a81df48a333c97bbcd))
17
+
18
+ ### 👥 Contributors
19
+
20
+ <a href="https://github.com/anyup"><img src="https://github.com/anyup.png?size=40" width="40" height="40" alt="anyup" title="anyup"/></a>
21
+
22
+ ## 0.5.17(2026-04-15)
23
+
24
+ ### 🐛 Bug Fixes | Bug 修复
25
+
26
+ - **demo:** 修复topTips组件演示示例在小程序中不弹出的问题,需设置自定义navbar高度 ([0c72d24](https://github.com/anyup/uView-Pro/commit/0c72d24cd77f4ba6b6cb411810fcf5f0bd1d3272))
27
+ - **u-table:** 修复表格表头暗黑模式背景色问题 ([c7fd1a5](https://github.com/anyup/uView-Pro/commit/c7fd1a58e87c4efb84ccf737fe9d1e755908ba8f))
28
+ - **u-alert-tips:** 修复关闭按钮颜色样式问题 ([94001cf](https://github.com/anyup/uView-Pro/commit/94001cf79a03ea75695e414a7971e7ec39f445b6))
29
+
30
+ ### ✨ Features | 新功能
31
+
32
+ - **theme:** 更新主题配置和本地化文本 ([4caa2ed](https://github.com/anyup/uView-Pro/commit/4caa2edf9542f7f2b0a7bb9870585390f0241e80))
33
+ - **u-calendar:** 增强日历组件功能,支持多种日历模式:打卡签到、节假日标记、价格日历等场景,支持自定义插槽功能,动态价格显示;支持选中日期,只读模式设置;修复范围选择背景色样式问题 ([7a9250e](https://github.com/anyup/uView-Pro/commit/7a9250eb49f6694286bb0c3dad7bc9780ae95864))
34
+ - **u-popup:** 新增inline模式支持,允许弹窗组件直接插入页面内容而非传统弹窗形式 ([2e8890c](https://github.com/anyup/uView-Pro/commit/2e8890ca3c9cacb90739b33cb0e38db7e2bdb473))
35
+ - **u-calendar:** 统一日期格式YYYY-MM-DD,确保跨组件日期处理的一致性 ([092cc53](https://github.com/anyup/uView-Pro/commit/092cc5392b64990342c43fcbac9aec1bfa2bf982))
36
+
37
+ ### ♻️ Code Refactoring | 代码重构
38
+
39
+ - **u-calendar:** 重构日历组件模板,统一页面和弹窗模式的日历组件结构 ([42894b8](https://github.com/anyup/uView-Pro/commit/42894b850f903e2471ca42e02f0379443139838b))
40
+
41
+ ### 👥 Contributors
42
+
43
+ <a href="https://github.com/anyup"><img src="https://github.com/anyup.png?size=40" width="40" height="40" alt="anyup" title="anyup"/></a>
44
+
45
+ ## 0.5.16(2026-03-26)
46
+
47
+ ### ✨ Features | 新功能
48
+
49
+ - **web:** 浏览器平台添加触摸模拟器支持 ([cf96a73](https://github.com/anyup/uView-Pro/commit/cf96a73e09512291143954401aa7850ac59f1207))
50
+ - **u-button:** 新增 large、small 按钮尺寸选项,丰富按钮尺寸规格 ([053d7e8](https://github.com/anyup/uView-Pro/commit/053d7e8ab92af403cdfde36369f38a2aded27288))
51
+ - **u-input:** u-input添加size属性,支持small/default/large预设值以及自定义尺寸(#137) ([afed961](https://github.com/anyup/uView-Pro/commit/afed961f65c86bd84a2b02828bb361480c7f95b3))
52
+ - **u-textarea:** u-textarea组件新增size属性,支持small/default/large预设值以及自定义数值(#137) ([47296e8](https://github.com/anyup/uView-Pro/commit/47296e8669d419d41959dff01de758a610122d34))
53
+ - **u-checkbox:** u-checkbox,u-checkbox-group支持small/default/large预设尺寸配置,优化组件样式(#137) ([e8918e2](https://github.com/anyup/uView-Pro/commit/e8918e28a413d861e05a213d49f9a1b39af17964))
54
+ - **u-radio:** u-radio,u-radio-group支持small/default/large预设尺寸配置(#137) ([51af7f8](https://github.com/anyup/uView-Pro/commit/51af7f8f86eed99ee159738e43d5dc2d5c6747c8))
55
+ - **u-switch:** u-switch支持small/default/large预设尺寸配置(#137) ([6041d52](https://github.com/anyup/uView-Pro/commit/6041d52338172d40957e3ed7af1dde01aa7de074))
56
+ - **u-form:** 新增表单大小配置功能,u-form支持小、中、大三种尺寸设置(#137) ([324adb9](https://github.com/anyup/uView-Pro/commit/324adb99de9dfbb72a0a0c40748c11323d3b9470))
57
+ - **u-tag:** 为深色模式标签添加边框样式,保持统一性 ([84d0ad6](https://github.com/anyup/uView-Pro/commit/84d0ad6c805d570e216beaa2dc586687a5aae848))
58
+
59
+ ### ♻️ Code Refactoring | 代码重构
60
+
61
+ - 添加调试模式配置并重构日志系统 ([a52a3f7](https://github.com/anyup/uView-Pro/commit/a52a3f7d6be7d8332a67c1d8458f4e65e0a0204e))
62
+ - **props:** 移除baseProps公共属性并内联到各组件,修复uni_modules引入方式在微信小程序正式打包运行报错的问题 ([f30f779](https://github.com/anyup/uView-Pro/commit/f30f7792a48679afc3cf705a5eb0b182591fe9b5))
63
+ - **form:** 调整表单大小配置位置 ([45ffecd](https://github.com/anyup/uView-Pro/commit/45ffecd3522df85cdaaa62ecb9c33d7839443586))
64
+
65
+ ### 🐛 Bug Fixes | Bug 修复
66
+
67
+ - **useChildren:** 修复组件关系工具子组件ID缓存问题,避免同组件多次调用useChildren时重复注册 ([3a8c659](https://github.com/anyup/uView-Pro/commit/3a8c659ce596b483559cf4b061d0b54d784a902b))
68
+ - **u-form:** 修复移除字段时方法不存在的错误 ([58ada99](https://github.com/anyup/uView-Pro/commit/58ada99a8cbd44874eebfd305a4aeb721add8558))
69
+
70
+ ### 👥 Contributors
71
+
72
+ <a href="https://github.com/anyup"><img src="https://github.com/anyup.png?size=40" width="40" height="40" alt="anyup" title="anyup"/></a>
73
+
30
74
  ## 0.5.15(2026-03-25)
31
75
 
32
76
  ### 🐛 Bug Fixes | Bug 修复
@@ -42,7 +42,7 @@
42
42
  v-if="closeAble && !closeText"
43
43
  hoverClass="u-type-error-hover-color"
44
44
  name="close"
45
- color="var(--u-light-color)"
45
+ color="var(--u-tips-color)"
46
46
  :size="22"
47
47
  :custom-style="{
48
48
  top: description ? '18rpx' : '24rpx'
@@ -54,7 +54,7 @@ export const CalendarProps = {
54
54
  /** 选中|起始结束日期字体颜色 */
55
55
  activeColor: { type: String, default: 'var(--u-white-color)' },
56
56
  /** 范围内日期背景色 */
57
- rangeBgColor: { type: String, default: 'rgba(41,121,255,0.13)' },
57
+ rangeBgColor: { type: String, default: 'var(--u-type-primary-light)' },
58
58
  /** 范围内日期字体颜色 */
59
59
  rangeColor: { type: String, default: () => getColor('primary') },
60
60
  /** mode=range时生效,起始日期自定义文案 */
@@ -65,6 +65,8 @@ export const CalendarProps = {
65
65
  btnType: { type: String as PropType<ThemeType>, default: 'primary' },
66
66
  /** 当前选中日期带选中效果 */
67
67
  isActiveCurrent: { type: Boolean, default: true },
68
+ /** 初始化时是否默认选中今天,优先级低于 defaultDate/startDate/endDate */
69
+ defaultSelectToday: { type: Boolean, default: true },
68
70
  /** 切换年月是否触发事件 mode=date时生效 */
69
71
  isChange: { type: Boolean, default: false },
70
72
  /** 是否显示右上角的关闭图标 */
@@ -74,7 +76,47 @@ export const CalendarProps = {
74
76
  /** 是否显示农历 */
75
77
  showLunar: { type: Boolean, default: false },
76
78
  /** 是否在页面中显示 */
77
- isPage: { type: Boolean, default: false }
79
+ isPage: { type: Boolean, default: false },
80
+ /** 默认选中的日期,mode=date时生效,格式:2024-01-01 */
81
+ defaultDate: { type: String, default: '' },
82
+ /** 默认选中的开始日期,mode=range时生效,格式:2024-01-01 */
83
+ startDate: { type: String, default: '' },
84
+ /** 默认选中的结束日期,mode=range时生效,格式:2024-01-01 */
85
+ endDate: { type: String, default: '' },
86
+ /** 是否只读,只读模式下禁止点击选择日期 */
87
+ readonly: { type: Boolean, default: false },
88
+ /** 已打卡日期列表,格式:['2024-01-01', '2024-01-02'] */
89
+ checkedDates: { type: Array as PropType<string[]>, default: () => [] },
90
+ /** 打卡日期背景色 */
91
+ checkedBgColor: { type: String, default: 'var(--u-type-warning)' },
92
+ /** 打卡日期字体颜色 */
93
+ checkedColor: { type: String, default: 'var(--u-white-color)' },
94
+ /** 今日是否已打卡 */
95
+ todayChecked: { type: Boolean, default: false },
96
+ /** 今日已打卡背景色 */
97
+ todayCheckedBgColor: { type: String, default: 'var(--u-type-success)' },
98
+ /** 未打卡日期背景色 */
99
+ uncheckedBgColor: { type: String, default: 'var(--u-light-color)' },
100
+ /** 未打卡日期字体颜色 */
101
+ uncheckedColor: { type: String, default: 'var(--u-white-color)' },
102
+ /** 是否启用打卡签到模式(未打卡日期显示灰色) */
103
+ checkinMode: { type: Boolean, default: false },
104
+ /** 节假日列表,格式:['2024-01-01', '2024-01-02'] */
105
+ holidays: { type: Array as PropType<string[]>, default: () => [] },
106
+ /** 节假日文字颜色 */
107
+ holidayColor: { type: String, default: 'var(--u-type-error)' },
108
+ /** 加班日列表,格式:['2024-01-06', '2024-01-07'] */
109
+ workdays: { type: Array as PropType<string[]>, default: () => [] },
110
+ /** 加班日文字颜色 */
111
+ workdayColor: { type: String, default: 'var(--u-type-primary)' },
112
+ /** 节日配置,格式:{ '2024-04-04': '清明节', '2024-04-01': '愚人节' } */
113
+ festivals: { type: Object as PropType<Record<string, string>>, default: () => ({}) },
114
+ /** 节日文字颜色 */
115
+ festivalColor: { type: String, default: 'var(--u-type-primary)' },
116
+ /** 是否显示内置节日(中国传统节日) */
117
+ showFestival: { type: Boolean, default: false },
118
+ /** 是否启用自定义日期内容插槽(微信小程序需要显式声明) */
119
+ useDateSlot: { type: Boolean, default: false }
78
120
  };
79
121
 
80
122
  export type CalendarProps = ExtractPropTypes<typeof CalendarProps>;