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 +81 -63
- package/README.md +1 -1
- package/components/cascader/cascader.vue +12 -17
- package/components/cascader/common.d.ts +1 -0
- package/components/cascader-input/cascader-input.vue +11 -6
- package/components/tab/tab.vue +3 -3
- package/components/tabs/common.d.ts +1 -1
- package/components/tabs/tabs.vue +5 -3
- package/package.json +28 -27
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 时显示问题 ([
|
|
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显示问题 ([
|
|
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 功能 ([
|
|
25
|
-
* 新增 divider 组件 ([
|
|
26
|
-
* 新增 FloatingPanel 组件 ([
|
|
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 导入问题 ([
|
|
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 属性 ([
|
|
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 组件新增点击态 ([
|
|
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 事件 ([
|
|
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 属性 ([
|
|
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:** 允许空字符串作为未选择初始值 ([
|
|
81
|
-
* 修复 table 组件右边固定阴影显示问题 ([
|
|
82
|
-
* 修复cascader在支付宝端的展示问题 ([
|
|
83
|
-
* 修复因uniapp会修改元素id导致获取不到元素的问题 ([
|
|
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 属性 ([
|
|
89
|
-
* grid 组件新增 badge 相关属性 ([
|
|
90
|
-
* navbar组件新增属性,修改样式 ([
|
|
91
|
-
* 新增 crop-image 组件 ([
|
|
92
|
-
* 新增 ScrollSpy 组件 ([
|
|
93
|
-
* 新增 Sidebar 组件 ([
|
|
94
|
-
* 新增 signature 组件 ([
|
|
95
|
-
* 新增 status-bar 组件 ([
|
|
96
|
-
* 新增 zIndex 全局配置 ([
|
|
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组件递归引用问题 ([
|
|
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联动问题 ([
|
|
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属性后更新列数据 ([
|
|
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 组件 ([
|
|
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 ([
|
|
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 组件 ([
|
|
147
|
-
* 确保 DatetimePickerInput value 格式化, 移除sass警告 ([
|
|
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
|
-
* 修复全局配置问题 ([
|
|
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 属性, 修复已知问题 ([
|
|
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事件 ([
|
|
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端报错的问题 ([
|
|
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
|
-
* 新增表格组件 ([
|
|
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:** 只读时隐藏箭头 ([
|
|
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
|
-
* 修复局部导入组件未注册问题 ([
|
|
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
|
-
* 按钮添加小程序能力 ([
|
|
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 获取焦点时的光标位置 ([
|
|
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
|
-
* 新增全局配置 ([
|
|
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 ([
|
|
247
|
-
* fix type of 'confirm-hold' in sard-input ([
|
|
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 ([
|
|
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) ([
|
|
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事件 ([
|
|
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 ([
|
|
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组件 ([
|
|
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 ([
|
|
302
|
-
* 修复pnpm非扁平化依赖包下lwa依赖问题 close [#32](https://github.com/sutras/sard-uniapp/issues/32) ([
|
|
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组件 ([
|
|
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) ([
|
|
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 组件显示问题、优化文档 ([
|
|
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不显示问题 ([
|
|
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) ([
|
|
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) ([
|
|
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) ([
|
|
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环境下,没有宽度导致图片显示不全 ([
|
|
375
|
-
* 修复upload组件图片预览问题 ([
|
|
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) ([
|
|
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属性 ([
|
|
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组件, 其他优化 ([
|
|
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
|
-
* 修复打包组件缺少文件的问题 ([
|
|
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 ([
|
|
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,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
|
-
|
|
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");
|
|
@@ -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
|
-
:
|
|
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
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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(() => {
|
package/components/tab/tab.vue
CHANGED
|
@@ -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,
|
|
43
|
+
select: (name: string | number, initial?: boolean) => void;
|
|
44
44
|
register: (name: string | number, expose: {
|
|
45
45
|
getRect: () => Promise<NodeRect>;
|
|
46
46
|
}) => void;
|
package/components/tabs/tabs.vue
CHANGED
|
@@ -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.
|
|
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.
|
|
79
|
-
"@dcloudio/uni-app": "3.0.0-
|
|
80
|
-
"@dcloudio/uni-app-harmony": "3.0.0-
|
|
81
|
-
"@dcloudio/uni-app-plus": "3.0.0-
|
|
82
|
-
"@dcloudio/uni-automator": "3.0.0-
|
|
83
|
-
"@dcloudio/uni-cli-shared": "3.0.0-
|
|
84
|
-
"@dcloudio/uni-components": "3.0.0-
|
|
85
|
-
"@dcloudio/uni-h5": "3.0.0-
|
|
86
|
-
"@dcloudio/uni-mp-alipay": "3.0.0-
|
|
87
|
-
"@dcloudio/uni-mp-baidu": "3.0.0-
|
|
88
|
-
"@dcloudio/uni-mp-
|
|
89
|
-
"@dcloudio/uni-mp-
|
|
90
|
-
"@dcloudio/uni-mp-
|
|
91
|
-
"@dcloudio/uni-mp-
|
|
92
|
-
"@dcloudio/uni-mp-
|
|
93
|
-
"@dcloudio/uni-mp-
|
|
94
|
-
"@dcloudio/uni-mp-
|
|
95
|
-
"@dcloudio/uni-
|
|
96
|
-
"@dcloudio/uni-
|
|
97
|
-
"@dcloudio/
|
|
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.
|
|
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.
|
|
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": "
|
|
132
|
+
"vite": "6.3.5",
|
|
132
133
|
"vite-plugin-eslint": "^1.8.1",
|
|
133
|
-
"vitest": "^1.
|
|
134
|
-
"vue": "^3.
|
|
135
|
-
"vue-i18n": "^9.14.
|
|
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",
|