File tree 5 files changed +24
-12
lines changed
5 files changed +24
-12
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
5
5
Generated by [ ` auto-changelog ` ] ( https://github.com/CookPete/auto-changelog ) .
6
6
7
+ #### [ 3.0.8] ( https://github.com/ant-design/ant-design-mini/compare/3.0.7...3.0.8 )
8
+
9
+ - indexbar scroll not silky [ ` #1386 ` ] ( https://github.com/ant-design/ant-design-mini/pull/1386 )
10
+
7
11
#### [ 3.0.7] ( https://github.com/ant-design/ant-design-mini/compare/3.0.6...3.0.7 )
8
12
13
+ > 16 January 2025
14
+
9
15
- fix: display range problem [ ` #1383 ` ] ( https://github.com/ant-design/ant-design-mini/pull/1383 )
10
16
- Fix card divier [ ` #1378 ` ] ( https://github.com/ant-design/ant-design-mini/pull/1378 )
11
17
- fix: card divider [ ` #1377 ` ] ( https://github.com/ant-design/ant-design-mini/pull/1377 )
Original file line number Diff line number Diff line change 16
16
"sourcemap" : false ,
17
17
"lazyCompile" : false
18
18
}
19
- }
19
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " antd-mini" ,
3
- "version" : " 3.0.7 " ,
3
+ "version" : " 3.0.8 " ,
4
4
"description" : " antd-mini 是支付宝小程序 UI 组件库,遵循 Ant Design 规范。" ,
5
5
"miniprogram" : " compiled/wechat/src" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -195,6 +195,9 @@ export const wechatCustomMapping = {
195
195
'ant-select-contact' : {
196
196
onSelect : 'bindselect' ,
197
197
} ,
198
+ 'ant-empty' : {
199
+ onClickButton : 'bindclickbutton' ,
200
+ } ,
198
201
'ant-prompts' : {
199
202
onItemTap : 'binditemtap' ,
200
203
} ,
@@ -206,9 +209,6 @@ export const wechatCustomMapping = {
206
209
onExpand : 'bindexpand' ,
207
210
onContentItemTap : 'bindcontentitemtap'
208
211
} ,
209
- 'ant-empty' : {
210
- onClickButton : 'bindclickbutton' ,
211
- } ,
212
212
'ant-actions' : {
213
213
onItemTap : 'binditemtap' ,
214
214
} ,
Original file line number Diff line number Diff line change @@ -29,11 +29,19 @@ Component(
29
29
? current
30
30
: defaultCurrent ;
31
31
const _index = items ?. findIndex ( ( u ) => initCurrent === u . label ) ;
32
- this . setData ( {
33
- currentKey : _index ,
34
- touchKeyIndex : _index ,
35
- touchKey : initCurrent ,
36
- } ) ;
32
+ this . setData (
33
+ {
34
+ currentKey : _index ,
35
+ touchKeyIndex : _index ,
36
+ touchKey : initCurrent ,
37
+ } ,
38
+ ( ) => {
39
+ this . setData ( {
40
+ touchKeyIndex : - 1 ,
41
+ touchKey : '' ,
42
+ } ) ;
43
+ }
44
+ ) ;
37
45
} ,
38
46
isControlled ( nextProps , valueKey = 'current' ) {
39
47
if ( 'controlled' in nextProps ) {
@@ -129,8 +137,6 @@ Component(
129
137
if ( currentKey !== newIndex - 1 && newIndex - 1 >= 0 && ! moving ) {
130
138
this . setData ( {
131
139
currentKey : newIndex - 1 ,
132
- touchKeyIndex : newIndex - 1 ,
133
- touchKey : items [ newIndex - 1 ] . label ,
134
140
} ) ;
135
141
this . onAlphabetClick ( items [ newIndex - 1 ] , newIndex - 1 ) ;
136
142
}
You can’t perform that action at this time.
0 commit comments