sard-uniapp 1.13.2 → 1.14.0

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,9 +1,27 @@
1
+ # [1.14.0](https://github.com/sutras/sard-uniapp/compare/v1.13.3...v1.14.0) (2025-05-12)
2
+
3
+
4
+ ### Features
5
+
6
+ * cascader 新增 change-on-select 属性 ([71c1329](https://github.com/sutras/sard-uniapp/commit/71c13291780eea13ac7c198ae31a39e0dc49d531))
7
+
8
+
9
+
10
+ ## [1.13.3](https://github.com/sutras/sard-uniapp/compare/v1.13.2...v1.13.3) (2025-05-12)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * 修复tabs组件初始触发change事件问题 ([f9a408b](https://github.com/sutras/sard-uniapp/commit/f9a408b77cd83dbe62498145daf197b958886c0d))
16
+
17
+
18
+
1
19
  ## [1.13.2](https://github.com/sutras/sard-uniapp/compare/v1.13.1...v1.13.2) (2025-05-06)
2
20
 
3
21
 
4
22
  ### Bug Fixes
5
23
 
6
- * 修复progress-bar inside 时显示问题 ([dd784e7](https://github.com/sutras/sard-uniapp/commit/dd784e73aab9be1237f6b78bf07f2d5b924e3e46))
24
+ * 修复progress-bar inside 时显示问题 ([1e633ed](https://github.com/sutras/sard-uniapp/commit/1e633ed67b41558a122675bc9f35aeda76ecb569))
7
25
 
8
26
 
9
27
 
@@ -12,7 +30,7 @@
12
30
 
13
31
  ### Bug Fixes
14
32
 
15
- * 修复notify显示问题 ([f021622](https://github.com/sutras/sard-uniapp/commit/f02162261886743015ab9c0965213db7b1c0ab1f))
33
+ * 修复notify显示问题 ([30d3f36](https://github.com/sutras/sard-uniapp/commit/30d3f36c2a9ca31fb2c9103b7195ccdf79bcbbb4))
16
34
 
17
35
 
18
36
 
@@ -21,9 +39,9 @@
21
39
 
22
40
  ### Features
23
41
 
24
- * button 组件新增 icon 功能 ([53a54f5](https://github.com/sutras/sard-uniapp/commit/53a54f5e55d698d10f5a5e8009b3cc4d1d4529ea))
25
- * 新增 divider 组件 ([261b234](https://github.com/sutras/sard-uniapp/commit/261b234e0a963da6d3ff2dd85028df0d31ee812d))
26
- * 新增 FloatingPanel 组件 ([f879433](https://github.com/sutras/sard-uniapp/commit/f879433a93afd93df58baeed227ddbb9da6b1730))
42
+ * button 组件新增 icon 功能 ([ff69d30](https://github.com/sutras/sard-uniapp/commit/ff69d302b76c897acc4b639ed82708c6b45a00f1))
43
+ * 新增 divider 组件 ([410fe89](https://github.com/sutras/sard-uniapp/commit/410fe895d91a0e811ea9631bb17059fdb10d44b0))
44
+ * 新增 FloatingPanel 组件 ([ddb6561](https://github.com/sutras/sard-uniapp/commit/ddb6561ef72cc279a00b890703693298a20086f1))
27
45
 
28
46
 
29
47
 
@@ -32,7 +50,7 @@
32
50
 
33
51
  ### Bug Fixes
34
52
 
35
- * 修复 table 组件 sass 导入问题 ([2975683](https://github.com/sutras/sard-uniapp/commit/2975683448aa78612f1f40a7d25a0da41df091bf))
53
+ * 修复 table 组件 sass 导入问题 ([238257e](https://github.com/sutras/sard-uniapp/commit/238257e1f7bf69c93e62688ebc7e11e8e1553e94))
36
54
 
37
55
 
38
56
 
@@ -41,7 +59,7 @@
41
59
 
42
60
  ### Features
43
61
 
44
- * tabbar-item 组件 icon 插槽新增 active 属性 ([0704e46](https://github.com/sutras/sard-uniapp/commit/0704e46cb1a87a27d62076bd962a3925086598e7))
62
+ * tabbar-item 组件 icon 插槽新增 active 属性 ([4ccd9cc](https://github.com/sutras/sard-uniapp/commit/4ccd9cce425b57e434943cc410a47e4d12c78d6e))
45
63
 
46
64
 
47
65
 
@@ -50,7 +68,7 @@
50
68
 
51
69
  ### Features
52
70
 
53
- * card 组件新增点击态 ([cf7fbde](https://github.com/sutras/sard-uniapp/commit/cf7fbde33998fa003765eee7761228896a7766db))
71
+ * card 组件新增点击态 ([0eef48e](https://github.com/sutras/sard-uniapp/commit/0eef48e9be15f12f43bc3b28c85ef86d0684c3e1))
54
72
 
55
73
 
56
74
 
@@ -59,7 +77,7 @@
59
77
 
60
78
  ### Features
61
79
 
62
- * tabs 等组件新增 change 事件, card 新增 click 事件 ([6c90a9e](https://github.com/sutras/sard-uniapp/commit/6c90a9e3d97864e66b4d5005947301fdfa4b9784))
80
+ * tabs 等组件新增 change 事件, card 新增 click 事件 ([20fa21c](https://github.com/sutras/sard-uniapp/commit/20fa21c6b8de0992959befe2971708743c9f3d01))
63
81
 
64
82
 
65
83
 
@@ -68,7 +86,7 @@
68
86
 
69
87
  ### Bug Fixes
70
88
 
71
- * 移除 crop-image 组件 toast 提示,新增button组件 inline 属性 ([7510f84](https://github.com/sutras/sard-uniapp/commit/7510f84d354a6b0cddd950815ad09a480882db7a))
89
+ * 移除 crop-image 组件 toast 提示,新增button组件 inline 属性 ([64e6474](https://github.com/sutras/sard-uniapp/commit/64e6474ca99b75cc95e99dfdd0d0ef91cac95322))
72
90
 
73
91
 
74
92
 
@@ -77,23 +95,23 @@
77
95
 
78
96
  ### Bug Fixes
79
97
 
80
- * **cascader:** 允许空字符串作为未选择初始值 ([c0073ec](https://github.com/sutras/sard-uniapp/commit/c0073ec8b3bc285443fca6c17b86dbdb7976ec08))
81
- * 修复 table 组件右边固定阴影显示问题 ([4e7869a](https://github.com/sutras/sard-uniapp/commit/4e7869a70f60d4f9d6f01c68fdc90a00080adad9))
82
- * 修复cascader在支付宝端的展示问题 ([e5ab136](https://github.com/sutras/sard-uniapp/commit/e5ab136da081fbcfc6a8f07d00482231cd7270fe))
83
- * 修复因uniapp会修改元素id导致获取不到元素的问题 ([10dbfe0](https://github.com/sutras/sard-uniapp/commit/10dbfe0adf49f32f85d6902c7a255b7a84d400fe))
98
+ * **cascader:** 允许空字符串作为未选择初始值 ([428b3c5](https://github.com/sutras/sard-uniapp/commit/428b3c58bb08fad50dc0e235757e480372ea9ffa))
99
+ * 修复 table 组件右边固定阴影显示问题 ([c6f0e88](https://github.com/sutras/sard-uniapp/commit/c6f0e887fdb5028d4f252790b01845e6be6dd59d))
100
+ * 修复cascader在支付宝端的展示问题 ([3e713ac](https://github.com/sutras/sard-uniapp/commit/3e713ac2d2399e3e998a87cc2541b73c9137c836))
101
+ * 修复因uniapp会修改元素id导致获取不到元素的问题 ([45b8070](https://github.com/sutras/sard-uniapp/commit/45b80701b829ddd1aa00f0dcbb031da6eab01742))
84
102
 
85
103
 
86
104
  ### Features
87
105
 
88
- * button 组件新增 block 属性 ([bb4d39b](https://github.com/sutras/sard-uniapp/commit/bb4d39b0dd417273fcf9fac3f132a26332d6bd8d))
89
- * grid 组件新增 badge 相关属性 ([0c33247](https://github.com/sutras/sard-uniapp/commit/0c3324750a1ee48a9f2801e7e20defeddad70003))
90
- * navbar组件新增属性,修改样式 ([dc4e747](https://github.com/sutras/sard-uniapp/commit/dc4e7478dedeb4aaecb659b99eb9ecc9acfba2e6))
91
- * 新增 crop-image 组件 ([5b89f0e](https://github.com/sutras/sard-uniapp/commit/5b89f0ea3b5f09e28534222e4eecd9726ad03b97))
92
- * 新增 ScrollSpy 组件 ([d4c0e92](https://github.com/sutras/sard-uniapp/commit/d4c0e92d2a9aab60687f08b384937f5276e53c5e))
93
- * 新增 Sidebar 组件 ([4c1487a](https://github.com/sutras/sard-uniapp/commit/4c1487a9fa77f01ea0be962d64c49167afb29ece))
94
- * 新增 signature 组件 ([04b7bf8](https://github.com/sutras/sard-uniapp/commit/04b7bf84149c78ad336f0a23eac8a60b0f5b2396))
95
- * 新增 status-bar 组件 ([49339d7](https://github.com/sutras/sard-uniapp/commit/49339d79738e829a34edc4a83a237ed3814e24c1))
96
- * 新增 zIndex 全局配置 ([77802cd](https://github.com/sutras/sard-uniapp/commit/77802cd2c772bd3c6c67e8a09254a1e0b501cece))
106
+ * button 组件新增 block 属性 ([6b59144](https://github.com/sutras/sard-uniapp/commit/6b59144df3b15a12f9d4d19c711070a7f6d823a7))
107
+ * grid 组件新增 badge 相关属性 ([4f697a3](https://github.com/sutras/sard-uniapp/commit/4f697a39debe00d14397c3a6db56bf1d661a101e))
108
+ * navbar组件新增属性,修改样式 ([e6039b4](https://github.com/sutras/sard-uniapp/commit/e6039b4b1835a4062c9ce0a173e4666a8eb4fcc6))
109
+ * 新增 crop-image 组件 ([9bd948a](https://github.com/sutras/sard-uniapp/commit/9bd948a8dafce3d3d3c11200e4cbba3d5c19466c))
110
+ * 新增 ScrollSpy 组件 ([cefa8b4](https://github.com/sutras/sard-uniapp/commit/cefa8b429b2be108ef01f2dbf7edfafe90203dc0))
111
+ * 新增 Sidebar 组件 ([608ec0d](https://github.com/sutras/sard-uniapp/commit/608ec0da2f48e537d40b3c098880ebbba8ac2e2b))
112
+ * 新增 signature 组件 ([f75489d](https://github.com/sutras/sard-uniapp/commit/f75489d835c502f97218935a6f26f54f05ba6b0a))
113
+ * 新增 status-bar 组件 ([e005b0c](https://github.com/sutras/sard-uniapp/commit/e005b0c1a5d7ec1725a47d5f21f24b0652d27de9))
114
+ * 新增 zIndex 全局配置 ([7945ae9](https://github.com/sutras/sard-uniapp/commit/7945ae93a0f83be4cf9a090584e2235a58401f05))
97
115
 
98
116
 
99
117
 
@@ -102,7 +120,7 @@
102
120
 
103
121
  ### Bug Fixes
104
122
 
105
- * 修复tree组件递归引用问题 ([25c48b7](https://github.com/sutras/sard-uniapp/commit/25c48b7d57fd178ea9a08688757da41b1394d297))
123
+ * 修复tree组件递归引用问题 ([0a789c6](https://github.com/sutras/sard-uniapp/commit/0a789c612bb6038d23e95bb3dbc154a4be1dc808))
106
124
 
107
125
 
108
126
 
@@ -111,7 +129,7 @@
111
129
 
112
130
  ### Bug Fixes
113
131
 
114
- * 修复日期时间选择器min, max联动问题 ([81d9256](https://github.com/sutras/sard-uniapp/commit/81d9256c872b5711664abf1e8ff75de3b146f3da))
132
+ * 修复日期时间选择器min, max联动问题 ([fd6c351](https://github.com/sutras/sard-uniapp/commit/fd6c3511154ae736c471013d68f8addc74d06d2f))
115
133
 
116
134
 
117
135
 
@@ -120,12 +138,12 @@
120
138
 
121
139
  ### Bug Fixes
122
140
 
123
- * **datetime-picker:** 修改min, max属性后更新列数据 ([f58fef5](https://github.com/sutras/sard-uniapp/commit/f58fef592dd1102032aa999c5dbf887b8e25189d))
141
+ * **datetime-picker:** 修改min, max属性后更新列数据 ([9b6b3f4](https://github.com/sutras/sard-uniapp/commit/9b6b3f4316028cd6453ce9a8b126d01e5d8473f8))
124
142
 
125
143
 
126
144
  ### Features
127
145
 
128
- * 新增 DatetimeRangePicker 和 DatetimeRangePickerInput 组件 ([7cf3eeb](https://github.com/sutras/sard-uniapp/commit/7cf3eebbd8ce5f1aa185a4a55425607ba8a4bbdc))
146
+ * 新增 DatetimeRangePicker 和 DatetimeRangePickerInput 组件 ([8b3d6ee](https://github.com/sutras/sard-uniapp/commit/8b3d6ee7e844ebbe78f3b7232bc7a7e9ace27ecd))
129
147
 
130
148
 
131
149
 
@@ -134,7 +152,7 @@
134
152
 
135
153
  ### Bug Fixes
136
154
 
137
- * 使用 [@import](https://github.com/import) 导入scss, 兼容mp-alipay ([1830610](https://github.com/sutras/sard-uniapp/commit/1830610e17b29fd5f7e362d5c04a0ebcbb1ac772))
155
+ * 使用 [@import](https://github.com/import) 导入scss, 兼容mp-alipay ([3e1b7b6](https://github.com/sutras/sard-uniapp/commit/3e1b7b69ed73f1b3421b2082bd25ed8df1f98a49))
138
156
 
139
157
 
140
158
 
@@ -143,8 +161,8 @@
143
161
 
144
162
  ### Bug Fixes
145
163
 
146
- * 修复 cascader, cascader-input 组件 ([e964e40](https://github.com/sutras/sard-uniapp/commit/e964e400452e873713a95b9a07cbe4e1459113cc))
147
- * 确保 DatetimePickerInput value 格式化, 移除sass警告 ([e8e326d](https://github.com/sutras/sard-uniapp/commit/e8e326d9db1b96bd542bff5a1a60276083d53fba))
164
+ * 修复 cascader, cascader-input 组件 ([1ac846d](https://github.com/sutras/sard-uniapp/commit/1ac846d66bc91b5b7ed6bb5144e41b5e5082b58e))
165
+ * 确保 DatetimePickerInput value 格式化, 移除sass警告 ([0ded8f9](https://github.com/sutras/sard-uniapp/commit/0ded8f9e33a176ddd5f0f2c5dbd90a2c79dfc163))
148
166
 
149
167
 
150
168
 
@@ -153,7 +171,7 @@
153
171
 
154
172
  ### Bug Fixes
155
173
 
156
- * 修复全局配置问题 ([dcd319c](https://github.com/sutras/sard-uniapp/commit/dcd319c51453c6aa7c13dfedfbc2bf47eb3bb409))
174
+ * 修复全局配置问题 ([b05a52e](https://github.com/sutras/sard-uniapp/commit/b05a52e80e2fa14a4851c3fddfb64506f04325a7))
157
175
 
158
176
 
159
177
 
@@ -162,7 +180,7 @@
162
180
 
163
181
  ### Features
164
182
 
165
- * 新增 Space 组件, 新增 Dialog 组件的按钮配置, 新增 valueFormat 属性, 修复已知问题 ([7648ea6](https://github.com/sutras/sard-uniapp/commit/7648ea65937c5af9a2b6a8cfa9c5b70ade14ef65))
183
+ * 新增 Space 组件, 新增 Dialog 组件的按钮配置, 新增 valueFormat 属性, 修复已知问题 ([69825ef](https://github.com/sutras/sard-uniapp/commit/69825efbc99a2767acb314fb8763f7f015d3ee3b))
166
184
 
167
185
 
168
186
 
@@ -171,7 +189,7 @@
171
189
 
172
190
  ### Features
173
191
 
174
- * 表单组件新增change事件 ([58f2fa8](https://github.com/sutras/sard-uniapp/commit/58f2fa88e59f4b28b23592cf9ff17e2353a9ae37))
192
+ * 表单组件新增change事件 ([cc56e51](https://github.com/sutras/sard-uniapp/commit/cc56e5121e825e65ee573291ed07df18ad9d2d49))
175
193
 
176
194
 
177
195
 
@@ -180,7 +198,7 @@
180
198
 
181
199
  ### Bug Fixes
182
200
 
183
- * 修复qrcode 在app端报错的问题 ([c74cad5](https://github.com/sutras/sard-uniapp/commit/c74cad5cbe7dd733843713fd3500e15236719583))
201
+ * 修复qrcode 在app端报错的问题 ([486a95f](https://github.com/sutras/sard-uniapp/commit/486a95fb0fa14acdb3df96958216dbca84d148c4))
184
202
 
185
203
 
186
204
 
@@ -189,7 +207,7 @@
189
207
 
190
208
  ### Features
191
209
 
192
- * 新增表格组件 ([f2d0db6](https://github.com/sutras/sard-uniapp/commit/f2d0db61ab595a281590f9b840c25beea6dd4fe7))
210
+ * 新增表格组件 ([6649af4](https://github.com/sutras/sard-uniapp/commit/6649af4096b07d8b77d6fcd1f70abe8562cacd8b))
193
211
 
194
212
 
195
213
 
@@ -198,7 +216,7 @@
198
216
 
199
217
  ### Bug Fixes
200
218
 
201
- * **PopoutInput:** 只读时隐藏箭头 ([0efcdf7](https://github.com/sutras/sard-uniapp/commit/0efcdf77f39778521b8fe7d2b66c84b7a88496c5))
219
+ * **PopoutInput:** 只读时隐藏箭头 ([28f29ac](https://github.com/sutras/sard-uniapp/commit/28f29ac4274f8d74e0f61bf62f04fcc1d8b4f64d))
202
220
 
203
221
 
204
222
 
@@ -207,7 +225,7 @@
207
225
 
208
226
  ### Bug Fixes
209
227
 
210
- * 修复局部导入组件未注册问题 ([5337b11](https://github.com/sutras/sard-uniapp/commit/5337b119d15b77db76be13c7e33a10cdc4b02d7d))
228
+ * 修复局部导入组件未注册问题 ([225ff82](https://github.com/sutras/sard-uniapp/commit/225ff82510cd0c41fe932d0207bcfa2e824e9478))
211
229
 
212
230
 
213
231
 
@@ -216,7 +234,7 @@
216
234
 
217
235
  ### Features
218
236
 
219
- * 按钮添加小程序能力 ([c395f86](https://github.com/sutras/sard-uniapp/commit/c395f86308c05ab2a515aa1833b65e87969cf537))
237
+ * 按钮添加小程序能力 ([a887361](https://github.com/sutras/sard-uniapp/commit/a887361fd35e758b271f23c3ad6a6d0404b19969))
220
238
 
221
239
 
222
240
 
@@ -225,7 +243,7 @@
225
243
 
226
244
  ### Bug Fixes
227
245
 
228
- * 修复 input 获取焦点时的光标位置 ([b952ac3](https://github.com/sutras/sard-uniapp/commit/b952ac3ad5fad3a8c824f3613e6b3b69919bc6b1))
246
+ * 修复 input 获取焦点时的光标位置 ([820f248](https://github.com/sutras/sard-uniapp/commit/820f24898f47ff99c414d39f10ab5b9fcf05678b))
229
247
 
230
248
 
231
249
 
@@ -234,7 +252,7 @@
234
252
 
235
253
  ### Features
236
254
 
237
- * 新增全局配置 ([c426117](https://github.com/sutras/sard-uniapp/commit/c4261171903d56740920e6930693a797cbb6309f))
255
+ * 新增全局配置 ([dbc6444](https://github.com/sutras/sard-uniapp/commit/dbc64443ec9528cc039be6631be927fc30592967))
238
256
 
239
257
 
240
258
 
@@ -243,8 +261,8 @@
243
261
 
244
262
  ### Bug Fixes
245
263
 
246
- * count-down stop timer before unmount ([be96b3d](https://github.com/sutras/sard-uniapp/commit/be96b3da62544250a45031f7f1e68d42652a37de))
247
- * fix type of 'confirm-hold' in sard-input ([1ac21df](https://github.com/sutras/sard-uniapp/commit/1ac21dfff5d01a83ab1e0205256c36fb53c1b821))
264
+ * count-down stop timer before unmount ([5a0feb2](https://github.com/sutras/sard-uniapp/commit/5a0feb243384bd21022f930412161af36bd58ae1))
265
+ * fix type of 'confirm-hold' in sard-input ([fd6209d](https://github.com/sutras/sard-uniapp/commit/fd6209d31a75a72d60c04cb7da927ca36b211594))
248
266
 
249
267
 
250
268
 
@@ -253,7 +271,7 @@
253
271
 
254
272
  ### Features
255
273
 
256
- * 新增Tree, Timeline, BackTop 组件 close [#36](https://github.com/sutras/sard-uniapp/issues/36), close [#41](https://github.com/sutras/sard-uniapp/issues/41), close 43 ([4b7a222](https://github.com/sutras/sard-uniapp/commit/4b7a222a55ca25e85026a9028717c61ea8b2bbea))
274
+ * 新增Tree, Timeline, BackTop 组件 close [#36](https://github.com/sutras/sard-uniapp/issues/36), close [#41](https://github.com/sutras/sard-uniapp/issues/41), close 43 ([f0a0504](https://github.com/sutras/sard-uniapp/commit/f0a0504f03a8eac84f926e2e01a61bc31de59057))
257
275
 
258
276
 
259
277
 
@@ -262,7 +280,7 @@
262
280
 
263
281
  ### Features
264
282
 
265
- * 新增Fab, FloatingBubble 组件, 优化构建流程 close [#39](https://github.com/sutras/sard-uniapp/issues/39) ([d028d78](https://github.com/sutras/sard-uniapp/commit/d028d78f46f6966b83f823b9287bfcce02ba47a9))
283
+ * 新增Fab, FloatingBubble 组件, 优化构建流程 close [#39](https://github.com/sutras/sard-uniapp/issues/39) ([fe28b0a](https://github.com/sutras/sard-uniapp/commit/fe28b0aeb3a60f8b4d3f74a7d16ceb0fb4ccf295))
266
284
 
267
285
 
268
286
 
@@ -271,7 +289,7 @@
271
289
 
272
290
  ### Features
273
291
 
274
- * search组件新增clear, focus, blur事件 ([05dc641](https://github.com/sutras/sard-uniapp/commit/05dc641947e83a6d9e9c92b46cfc33135116eb22))
292
+ * search组件新增clear, focus, blur事件 ([5c4f9fe](https://github.com/sutras/sard-uniapp/commit/5c4f9febfc320acc38147e37779e964825f88692))
275
293
 
276
294
 
277
295
 
@@ -280,7 +298,7 @@
280
298
 
281
299
  ### Features
282
300
 
283
- * add qrcode ([8d5d8ba](https://github.com/sutras/sard-uniapp/commit/8d5d8ba50b250fbe1bb76da84e4368aae2276b4d))
301
+ * add qrcode ([4c74b1e](https://github.com/sutras/sard-uniapp/commit/4c74b1e6c0618178699d78b7b39c6a66ac2ecce4))
284
302
 
285
303
 
286
304
 
@@ -289,7 +307,7 @@
289
307
 
290
308
  ### Features
291
309
 
292
- * 新增radio-input, checkbox-input, alert组件 ([a2d24fc](https://github.com/sutras/sard-uniapp/commit/a2d24fc080337df2f39d6abdc887517adf8428c1))
310
+ * 新增radio-input, checkbox-input, alert组件 ([4d2198e](https://github.com/sutras/sard-uniapp/commit/4d2198ec97915630d025ed820fcedc5978e1748d))
293
311
 
294
312
 
295
313
 
@@ -298,8 +316,8 @@
298
316
 
299
317
  ### Bug Fixes
300
318
 
301
- * lwa copy ([7dc350a](https://github.com/sutras/sard-uniapp/commit/7dc350a09f3d10e4bf9f08733e70e1ec73d15b26))
302
- * 修复pnpm非扁平化依赖包下lwa依赖问题 close [#32](https://github.com/sutras/sard-uniapp/issues/32) ([5868e16](https://github.com/sutras/sard-uniapp/commit/5868e16587e8664705789e2e791c264f2a7d22f5))
319
+ * lwa copy ([d2ecc78](https://github.com/sutras/sard-uniapp/commit/d2ecc788d364440f3a2b396b6222f7df96e40fa0))
320
+ * 修复pnpm非扁平化依赖包下lwa依赖问题 close [#32](https://github.com/sutras/sard-uniapp/issues/32) ([904e6bd](https://github.com/sutras/sard-uniapp/commit/904e6bd15fc8d6a8fe6b329f26509cbbdc975700))
303
321
 
304
322
 
305
323
 
@@ -308,7 +326,7 @@
308
326
 
309
327
  ### Features
310
328
 
311
- * 新增Marquee, LuckyDraw, CountTo组件 ([61db992](https://github.com/sutras/sard-uniapp/commit/61db992aea95658b714ae4182526dff10ad54491))
329
+ * 新增Marquee, LuckyDraw, CountTo组件 ([ce825ae](https://github.com/sutras/sard-uniapp/commit/ce825ae7cac423c75bcc036bf59916af5bd1ed8b))
312
330
 
313
331
 
314
332
 
@@ -317,7 +335,7 @@
317
335
 
318
336
  ### Bug Fixes
319
337
 
320
- * 修复表单内组件的禁用和只读问题 close [#27](https://github.com/sutras/sard-uniapp/issues/27) ([eee674c](https://github.com/sutras/sard-uniapp/commit/eee674c156687b25893cd0456b7050440ea1ad4d))
338
+ * 修复表单内组件的禁用和只读问题 close [#27](https://github.com/sutras/sard-uniapp/issues/27) ([733f010](https://github.com/sutras/sard-uniapp/commit/733f010348cfb48e4d0c9470c7b9d977f082809c))
321
339
 
322
340
 
323
341
 
@@ -326,7 +344,7 @@
326
344
 
327
345
  ### Bug Fixes
328
346
 
329
- * 修复 notify 组件显示问题、优化文档 ([7ed66fd](https://github.com/sutras/sard-uniapp/commit/7ed66fd09870b24d485fd82ed6f152373b665f3c))
347
+ * 修复 notify 组件显示问题、优化文档 ([34f09a6](https://github.com/sutras/sard-uniapp/commit/34f09a662ebceb1f610eb658a9b2089ee31290f7))
330
348
 
331
349
 
332
350
 
@@ -335,7 +353,7 @@
335
353
 
336
354
  ### Bug Fixes
337
355
 
338
- * 修复toast&dialog不显示问题 ([9e49c67](https://github.com/sutras/sard-uniapp/commit/9e49c6772e7d0cff8976133b1dc05fa69b51d7ea))
356
+ * 修复toast&dialog不显示问题 ([37255c5](https://github.com/sutras/sard-uniapp/commit/37255c5994e5416b41997f7b336ec13593fafdb7))
339
357
 
340
358
 
341
359
 
@@ -344,7 +362,7 @@
344
362
 
345
363
  ### Bug Fixes
346
364
 
347
- * 修复input组件字数统计, dialog&toast组件不能显示的问题 close [#26](https://github.com/sutras/sard-uniapp/issues/26),[#24](https://github.com/sutras/sard-uniapp/issues/24) ([bb9ea25](https://github.com/sutras/sard-uniapp/commit/bb9ea253bde0963d3ff1a4f76eee72f5b0f57d0a))
365
+ * 修复input组件字数统计, dialog&toast组件不能显示的问题 close [#26](https://github.com/sutras/sard-uniapp/issues/26),[#24](https://github.com/sutras/sard-uniapp/issues/24) ([fb31059](https://github.com/sutras/sard-uniapp/commit/fb31059cb4937cc4d2e47433905d485a38db92c4))
348
366
 
349
367
 
350
368
 
@@ -353,7 +371,7 @@
353
371
 
354
372
  ### Bug Fixes
355
373
 
356
- * 修复下拉刷新组件有时不触发的问题 close [#18](https://github.com/sutras/sard-uniapp/issues/18) ([3bbe3a9](https://github.com/sutras/sard-uniapp/commit/3bbe3a9986a2adccf7c067d73a6f2f30251e3532))
374
+ * 修复下拉刷新组件有时不触发的问题 close [#18](https://github.com/sutras/sard-uniapp/issues/18) ([5ec5044](https://github.com/sutras/sard-uniapp/commit/5ec5044ffd58238651d380cb7d4debeea3bf6d80))
357
375
 
358
376
 
359
377
 
@@ -362,7 +380,7 @@
362
380
 
363
381
  ### Bug Fixes
364
382
 
365
- * 移除属性选择器 close [#23](https://github.com/sutras/sard-uniapp/issues/23) ([89ef3fc](https://github.com/sutras/sard-uniapp/commit/89ef3fcc72ec0f43ccd55cabb0dc013ebcbb8041))
383
+ * 移除属性选择器 close [#23](https://github.com/sutras/sard-uniapp/issues/23) ([b3c0450](https://github.com/sutras/sard-uniapp/commit/b3c045022188366be5552bc84170dba2a432fd56))
366
384
 
367
385
 
368
386
 
@@ -371,8 +389,8 @@
371
389
 
372
390
  ### Bug Fixes
373
391
 
374
- * 修复upload-preview的image在h5环境下,没有宽度导致图片显示不全 ([e155724](https://github.com/sutras/sard-uniapp/commit/e1557244a1f708dbbb7732302c0dfe36b65c1776))
375
- * 修复upload组件图片预览问题 ([dd69007](https://github.com/sutras/sard-uniapp/commit/dd69007200c0b97ba92392d2b732836f41f77a05))
392
+ * 修复upload-preview的image在h5环境下,没有宽度导致图片显示不全 ([71383d3](https://github.com/sutras/sard-uniapp/commit/71383d3cd338796aa9118613e993fa89f20e9897))
393
+ * 修复upload组件图片预览问题 ([0552838](https://github.com/sutras/sard-uniapp/commit/0552838b427bdc58c82ae21cb70e73b7cc9b743c))
376
394
 
377
395
 
378
396
 
@@ -381,7 +399,7 @@
381
399
 
382
400
  ### Bug Fixes
383
401
 
384
- * 修复input组件字数统计问题 close [#19](https://github.com/sutras/sard-uniapp/issues/19) ([52160b3](https://github.com/sutras/sard-uniapp/commit/52160b32c38c2c02e66e2a2db0b28585a6d5a73f))
402
+ * 修复input组件字数统计问题 close [#19](https://github.com/sutras/sard-uniapp/issues/19) ([4a63701](https://github.com/sutras/sard-uniapp/commit/4a63701223abe8aee49efbbf9212ec8ce8358dae))
385
403
 
386
404
 
387
405
 
@@ -394,7 +412,7 @@
394
412
 
395
413
  ### Features
396
414
 
397
- * 新增load-more组件, stepper组件新增size属性 ([f1e1c79](https://github.com/sutras/sard-uniapp/commit/f1e1c793939f51e94724d009ea07384630b6420b))
415
+ * 新增load-more组件, stepper组件新增size属性 ([d8184c7](https://github.com/sutras/sard-uniapp/commit/d8184c7cc3ad7eb98b86511d3b1ec5b1cd1f3453))
398
416
 
399
417
 
400
418
 
@@ -403,7 +421,7 @@
403
421
 
404
422
  ### Features
405
423
 
406
- * 新增pull-down-refresh组件, slider组件新增时间, 重构loading组件, 其他优化 ([802816a](https://github.com/sutras/sard-uniapp/commit/802816aa4baa87279bf98bc3effe7139bcdfe7ed))
424
+ * 新增pull-down-refresh组件, slider组件新增时间, 重构loading组件, 其他优化 ([c6dc6e4](https://github.com/sutras/sard-uniapp/commit/c6dc6e41c49a84e85310d64efd1889cd9a18aa0a))
407
425
 
408
426
 
409
427
 
@@ -412,7 +430,7 @@
412
430
 
413
431
  ### Bug Fixes
414
432
 
415
- * 修复打包组件缺少文件的问题 ([21c032f](https://github.com/sutras/sard-uniapp/commit/21c032f90c869f920beba95d668bbd22f19cf6b5))
433
+ * 修复打包组件缺少文件的问题 ([915a6af](https://github.com/sutras/sard-uniapp/commit/915a6af9619a0c5fdafb8477bc96fd71ceabd512))
416
434
 
417
435
 
418
436
 
@@ -421,7 +439,7 @@
421
439
 
422
440
  ### Bug Fixes
423
441
 
424
- * **sard-uniapp:** 修复打包缺少tag组件的bug ([c78f26c](https://github.com/sutras/sard-uniapp/commit/c78f26c149b988e05d34254cbf0a884b8a05fc76))
442
+ * **sard-uniapp:** 修复打包缺少tag组件的bug ([663ffde](https://github.com/sutras/sard-uniapp/commit/663ffdeb7b5cbdc527ee89e503cf1787a7ff2097))
425
443
 
426
444
 
427
445
 
package/README.md CHANGED
@@ -112,7 +112,7 @@ npm run release
112
112
  ## 修复问题流程
113
113
 
114
114
  - 修复问题
115
- - 测试
115
+ - 测试 `npm run test`
116
116
  - 修改版本号
117
117
  - 暂存 `git add .`
118
118
  - 提交 `git commit -m 'fix: '`
@@ -112,7 +112,8 @@ export default _defineComponent({
112
112
  options: { type: Array, required: false },
113
113
  fieldKeys: { type: Object, required: false },
114
114
  hintText: { type: String, required: false },
115
- labelRender: { type: Function, required: false }
115
+ labelRender: { type: Function, required: false },
116
+ changeOnSelect: { type: Boolean, required: false }
116
117
  }, defaultCascaderProps),
117
118
  emits: ["update:model-value", "change", "select"],
118
119
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -177,31 +178,25 @@ export default _defineComponent({
177
178
  if (selectBack) {
178
179
  nextTabs = nextTabs.slice(0, tabIndex + 1);
179
180
  }
180
- if (!isLastOption(option)) {
181
+ const isLast = isLastOption(option);
182
+ if (!isLast) {
181
183
  const nextTab = {
182
184
  options: option[mergedFieldKeys.value.children],
183
185
  selected: null
184
186
  };
185
187
  nextTabs.push(nextTab);
186
- tabsCurrent.value = nextTabs.length - 1;
187
- } else {
188
- tabsCurrent.value = tabIndex;
189
- const nextValue = option[mergedFieldKeys.value.value];
190
- innerValue.value = nextValue;
191
- emit(
192
- "update:model-value",
193
- nextValue,
194
- nextTabs.map((tab) => tab.selected)
195
- );
196
- emit(
197
- "change",
198
- nextValue,
199
- nextTabs.map((tab) => tab.selected)
200
- );
201
188
  }
189
+ tabsCurrent.value = isLast ? tabIndex : nextTabs.length - 1;
202
190
  tempValue = option[mergedFieldKeys.value.value];
203
191
  tabs.value = nextTabs;
204
192
  emit("select", option, tabIndex);
193
+ if (isLast || props.changeOnSelect) {
194
+ const nextValue = option[mergedFieldKeys.value.value];
195
+ innerValue.value = nextValue;
196
+ const selectedOptions = nextTabs.map((tab) => tab.selected).filter(Boolean);
197
+ emit("update:model-value", nextValue, selectedOptions);
198
+ emit("change", nextValue, selectedOptions);
199
+ }
205
200
  };
206
201
  const innerPaceholder = computed(() => {
207
202
  return props.hintText || t("pleaseSelect");
@@ -20,6 +20,7 @@ export interface CascaderProps {
20
20
  fieldKeys?: CascaderFieldKeys;
21
21
  hintText?: string;
22
22
  labelRender?: (option: CascaderOption) => string;
23
+ changeOnSelect?: boolean;
23
24
  }
24
25
  export declare const defaultCascaderProps: {
25
26
  options: () => never[];
@@ -23,11 +23,13 @@
23
23
  <sar-cascader
24
24
  v-if="already"
25
25
  :model-value="popoutValue"
26
- @change="onChange"
27
26
  :options="options"
28
27
  :field-keys="fieldKeys"
29
- :placeholder="hintText"
28
+ :hint-text="hintText"
29
+ :change-on-select="changeOnSelect"
30
+ :label-render="labelRender"
30
31
  @select="(option, tabIndex) => $emit('select', option, tabIndex)"
32
+ @change="onChange"
31
33
  >
32
34
  <template #top="{ tabIndex }">
33
35
  <slot name="top" :tab-index="tabIndex"></slot>
@@ -77,6 +79,7 @@ export default _defineComponent({
77
79
  fieldKeys: { type: Object, required: false },
78
80
  hintText: { type: String, required: false },
79
81
  labelRender: { type: Function, required: false },
82
+ changeOnSelect: { type: Boolean, required: false },
80
83
  placeholder: { type: String, required: false },
81
84
  readonly: { type: Boolean, required: false },
82
85
  disabled: { type: Boolean, required: false },
@@ -114,10 +117,12 @@ export default _defineComponent({
114
117
  }
115
118
  };
116
119
  const onConfirm = () => {
117
- innerValue.value = popoutValue.value;
118
- emit("update:model-value", popoutValue.value, popoutOptions.value);
119
- emit("change", popoutValue.value, popoutOptions.value);
120
- inputValue.value = getInputValue();
120
+ if (popoutValue.value !== innerValue.value) {
121
+ innerValue.value = popoutValue.value;
122
+ inputValue.value = getInputValue();
123
+ emit("update:model-value", innerValue.value, popoutOptions.value);
124
+ emit("change", innerValue.value, popoutOptions.value);
125
+ }
121
126
  };
122
127
  const inputValue = ref("");
123
128
  const fieldkeys = computed(() => {
@@ -54,8 +54,8 @@ export default _defineComponent({
54
54
  const getRect = () => {
55
55
  return getBoundingClientRect(`.${tabId}`, instance);
56
56
  };
57
- const select = () => {
58
- context.select(props.name);
57
+ const select = (initial) => {
58
+ context.select(props.name, initial);
59
59
  };
60
60
  const onClick = (event) => {
61
61
  emit("click", event);
@@ -69,7 +69,7 @@ export default _defineComponent({
69
69
  });
70
70
  if (isCurrent.value) {
71
71
  nextTick(() => {
72
- select();
72
+ select(true);
73
73
  });
74
74
  }
75
75
  });
@@ -40,7 +40,7 @@ export interface TabEmits {
40
40
  }
41
41
  export interface TabContext {
42
42
  current: any;
43
- select: (name: string | number, rect?: NodeRect) => void;
43
+ select: (name: string | number, initial?: boolean) => void;
44
44
  register: (name: string | number, expose: {
45
45
  getRect: () => Promise<NodeRect>;
46
46
  }) => void;
@@ -146,11 +146,13 @@ export default _defineComponent({
146
146
  unregister(name) {
147
147
  delete tabMap[name];
148
148
  },
149
- select(name) {
149
+ select(name, initial) {
150
150
  innerCurrent.value = name;
151
- emit("update:current", name);
152
- emit("change", name);
153
151
  scrollToTabQueue.value = name;
152
+ if (!initial) {
153
+ emit("update:current", name);
154
+ emit("change", name);
155
+ }
154
156
  }
155
157
  })
156
158
  );
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "sard-uniapp",
3
3
  "name": "sard-uniapp",
4
4
  "displayName": "sard-uniapp",
5
- "version": "1.13.2",
5
+ "version": "1.14.0",
6
6
  "description": "sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库",
7
7
  "main": "index.js",
8
8
  "scripts": {
@@ -75,26 +75,27 @@
75
75
  "@commitlint/cli": "^17.8.1",
76
76
  "@commitlint/config-conventional": "^17.8.1",
77
77
  "@commitlint/prompt-cli": "^17.8.1",
78
- "@dcloudio/types": "^3.4.14",
79
- "@dcloudio/uni-app": "3.0.0-4050620250312001",
80
- "@dcloudio/uni-app-harmony": "3.0.0-4050620250312001",
81
- "@dcloudio/uni-app-plus": "3.0.0-4050620250312001",
82
- "@dcloudio/uni-automator": "3.0.0-4050620250312001",
83
- "@dcloudio/uni-cli-shared": "3.0.0-4050620250312001",
84
- "@dcloudio/uni-components": "3.0.0-4050620250312001",
85
- "@dcloudio/uni-h5": "3.0.0-4050620250312001",
86
- "@dcloudio/uni-mp-alipay": "3.0.0-4050620250312001",
87
- "@dcloudio/uni-mp-baidu": "3.0.0-4050620250312001",
88
- "@dcloudio/uni-mp-jd": "3.0.0-4050620250312001",
89
- "@dcloudio/uni-mp-kuaishou": "3.0.0-4050620250312001",
90
- "@dcloudio/uni-mp-lark": "3.0.0-4050620250312001",
91
- "@dcloudio/uni-mp-qq": "3.0.0-4050620250312001",
92
- "@dcloudio/uni-mp-toutiao": "3.0.0-4050620250312001",
93
- "@dcloudio/uni-mp-weixin": "3.0.0-4050620250312001",
94
- "@dcloudio/uni-mp-xhs": "3.0.0-4050620250312001",
95
- "@dcloudio/uni-quickapp-webview": "3.0.0-4050620250312001",
96
- "@dcloudio/uni-stacktracey": "3.0.0-4050620250312001",
97
- "@dcloudio/vite-plugin-uni": "3.0.0-4050620250312001",
78
+ "@dcloudio/types": "^3.4.8",
79
+ "@dcloudio/uni-app": "3.0.0-4060420250429001",
80
+ "@dcloudio/uni-app-harmony": "3.0.0-4060420250429001",
81
+ "@dcloudio/uni-app-plus": "3.0.0-4060420250429001",
82
+ "@dcloudio/uni-automator": "3.0.0-4060420250429001",
83
+ "@dcloudio/uni-cli-shared": "3.0.0-4060420250429001",
84
+ "@dcloudio/uni-components": "3.0.0-4060420250429001",
85
+ "@dcloudio/uni-h5": "3.0.0-4060420250429001",
86
+ "@dcloudio/uni-mp-alipay": "3.0.0-4060420250429001",
87
+ "@dcloudio/uni-mp-baidu": "3.0.0-4060420250429001",
88
+ "@dcloudio/uni-mp-harmony": "3.0.0-4060420250429001",
89
+ "@dcloudio/uni-mp-jd": "3.0.0-4060420250429001",
90
+ "@dcloudio/uni-mp-kuaishou": "3.0.0-4060420250429001",
91
+ "@dcloudio/uni-mp-lark": "3.0.0-4060420250429001",
92
+ "@dcloudio/uni-mp-qq": "3.0.0-4060420250429001",
93
+ "@dcloudio/uni-mp-toutiao": "3.0.0-4060420250429001",
94
+ "@dcloudio/uni-mp-weixin": "3.0.0-4060420250429001",
95
+ "@dcloudio/uni-mp-xhs": "3.0.0-4060420250429001",
96
+ "@dcloudio/uni-quickapp-webview": "3.0.0-4060420250429001",
97
+ "@dcloudio/uni-stacktracey": "3.0.0-4060420250429001",
98
+ "@dcloudio/vite-plugin-uni": "3.0.0-4060420250429001",
98
99
  "@esbuild/darwin-x64": "0.20.2",
99
100
  "@gunny/perf-test": "^0.1.3",
100
101
  "@rollup/rollup-darwin-x64": "^4.24.0",
@@ -105,7 +106,7 @@
105
106
  "@typescript-eslint/parser": "^5.62.0",
106
107
  "@vitejs/plugin-vue": "^4.6.2",
107
108
  "@vitejs/plugin-vue-jsx": "^3.1.0",
108
- "@vue/runtime-core": "^3.5.13",
109
+ "@vue/runtime-core": "^3.4.21",
109
110
  "@vue/test-utils": "^2.4.6",
110
111
  "consola": "^3.2.3",
111
112
  "eslint": "^9.16.0",
@@ -121,18 +122,18 @@
121
122
  "lodash-es": "^4.17.21",
122
123
  "prettier": "^2.8.8",
123
124
  "region-data": "^1.2.3",
124
- "sard-cli": "^1.1.4",
125
+ "sard-cli": "^1.1.6",
125
126
  "sass": "^1.69.7",
126
127
  "tel-area-code": "^1.1.0",
127
128
  "ts-custom-error": "^3.3.1",
128
129
  "tsx": "^4.19.2",
129
130
  "typescript": "~5.6.2",
130
131
  "typescript-eslint": "^8.17.0",
131
- "vite": "5.2.8",
132
+ "vite": "6.3.5",
132
133
  "vite-plugin-eslint": "^1.8.1",
133
- "vitest": "^1.6.0",
134
- "vue": "^3.5.13",
135
- "vue-i18n": "^9.14.2",
134
+ "vitest": "^3.1.3",
135
+ "vue": "^3.4.21",
136
+ "vue-i18n": "^9.14.4",
136
137
  "vue-tsc": "^2.0.29"
137
138
  },
138
139
  "author": "wuzhitao",