File tree Expand file tree Collapse file tree 3 files changed +24
-6
lines changed
examples/dist/image-picker Expand file tree Collapse file tree 3 files changed +24
-6
lines changed Original file line number Diff line number Diff line change @@ -78,14 +78,19 @@ Component({
78
78
*/
79
79
methods : {
80
80
handleClear ( ) {
81
+ var urls = this . data . urls ;
81
82
this . setData ( {
82
83
urls : [ ] ,
83
84
clear : false ,
84
85
showBtn : true
85
86
} ) ;
86
- let detail = true ;
87
+ let info = {
88
+ all : urls ,
89
+ current : urls ,
90
+ } ;
91
+
87
92
let option = { } ;
88
- this . triggerEvent ( 'linclear' , detail , option ) ;
93
+ this . triggerEvent ( 'linclear' , info , option ) ;
89
94
} ,
90
95
91
96
// 预览 preview
@@ -168,6 +173,7 @@ Component({
168
173
let option = { } ;
169
174
170
175
that . triggerEvent ( 'linchange' , detail , option ) ;
176
+ that . triggerEvent ( 'linpush' , detail , option ) ;
171
177
}
172
178
} ) ;
173
179
Original file line number Diff line number Diff line change @@ -78,14 +78,19 @@ Component({
78
78
*/
79
79
methods : {
80
80
handleClear ( ) {
81
+ var urls = this . data . urls ;
81
82
this . setData ( {
82
83
urls : [ ] ,
83
84
clear : false ,
84
85
showBtn : true
85
86
} ) ;
86
- let detail = true ;
87
+ let info = {
88
+ all : urls ,
89
+ current : urls ,
90
+ } ;
91
+
87
92
let option = { } ;
88
- this . triggerEvent ( 'linclear' , detail , option ) ;
93
+ this . triggerEvent ( 'linclear' , info , option ) ;
89
94
} ,
90
95
91
96
// 预览 preview
@@ -168,6 +173,7 @@ Component({
168
173
let option = { } ;
169
174
170
175
that . triggerEvent ( 'linchange' , detail , option ) ;
176
+ that . triggerEvent ( 'linpush' , detail , option ) ;
171
177
}
172
178
} ) ;
173
179
Original file line number Diff line number Diff line change @@ -78,14 +78,19 @@ Component({
78
78
*/
79
79
methods : {
80
80
handleClear ( ) {
81
+ var urls = this . data . urls ;
81
82
this . setData ( {
82
83
urls : [ ] ,
83
84
clear : false ,
84
85
showBtn : true
85
86
} ) ;
86
- let detail = true ;
87
+ let info = {
88
+ all : urls ,
89
+ current : urls ,
90
+ } ;
91
+
87
92
let option = { } ;
88
- this . triggerEvent ( 'linclear' , detail , option ) ;
93
+ this . triggerEvent ( 'linclear' , info , option ) ;
89
94
} ,
90
95
91
96
// 预览 preview
@@ -168,6 +173,7 @@ Component({
168
173
let option = { } ;
169
174
170
175
that . triggerEvent ( 'linchange' , detail , option ) ;
176
+ that . triggerEvent ( 'linpush' , detail , option ) ;
171
177
}
172
178
} ) ;
173
179
You can’t perform that action at this time.
0 commit comments