File tree 3 files changed +11
-11
lines changed
3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " scriptis" ,
3
- "version" : " 0.7.1 " ,
3
+ "version" : " 0.7.2 " ,
4
4
"private" : true ,
5
5
"scripts" : {
6
6
"serve" : " vue-cli-service serve" ,
Original file line number Diff line number Diff line change 2
2
<div
3
3
class =" list-view"
4
4
ref =" list" >
5
- <vue-scroll
5
+ <vuescroll
6
6
:ops =" ops"
7
7
@handle-scroll =" handleScroll" >
8
8
<list-body
24
24
</div >
25
25
</div >
26
26
</list-body >
27
- </vue-scroll >
27
+ </vuescroll >
28
28
</div >
29
29
</template >
30
30
<script >
31
31
import listBody from ' ./body.vue' ;
32
- import vueScroll from ' ./ vuescroll/vuescroll-native.js ' ;
32
+ import vuescroll from ' vuescroll/dist/ vuescroll-native' ;
33
33
export default {
34
34
components: {
35
- vueScroll ,
35
+ vuescroll ,
36
36
listBody,
37
37
},
38
38
props: {
@@ -77,7 +77,7 @@ export default {
77
77
},
78
78
methods: {
79
79
handleScroll (v , h ) {
80
- this .$emit (' on-scroll' , {v, h});
80
+ this .$emit (' on-scroll' , { v, h });
81
81
this .$refs .body .handleScroll (v, h);
82
82
},
83
83
columnItemClick (index ) {
@@ -86,4 +86,4 @@ export default {
86
86
},
87
87
},
88
88
};
89
- </script >
89
+ </script >
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ export default {
104
104
mounted () {
105
105
},
106
106
methods: {
107
- changeScrollLeft ({v, h}) {
107
+ changeScrollLeft ({ v, h }) {
108
108
this .$refs .headerCom .$refs .list .scrollLeft = h .scrollLeft ;
109
109
this .$refs .headerCom .handleScroll (v, h);
110
110
},
@@ -143,7 +143,7 @@ export default {
143
143
];
144
144
},
145
145
handleSortClick (args ) {
146
- let {reverse, colIndex, cb} = args;
146
+ let { reverse, colIndex, cb } = args;
147
147
if (reverse === 0 ) {
148
148
const rows = this .originRows .map ((row ) => {
149
149
return row .slice (0 );
@@ -180,7 +180,7 @@ export default {
180
180
},
181
181
};
182
182
</script >
183
- <style lang="sass " src="./index.scss "></style >
183
+ <style lang="scss " src="./index.scss "></style >
184
184
<style >
185
185
.list-view {
186
186
width : 100% ;
@@ -189,4 +189,4 @@ overflow: auto;
189
189
position : relative ;
190
190
color : #333 ;
191
191
}
192
- </style >
192
+ </style >
You can’t perform that action at this time.
0 commit comments