Skip to content

Commit 9ad3755

Browse files
Merge pull request #30 from xtt55/0.7.0
Closes #29
2 parents 2c59d4e + 0b9d34a commit 9ad3755

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "scriptis",
3-
"version": "0.7.1",
3+
"version": "0.7.2",
44
"private": true,
55
"scripts": {
66
"serve": "vue-cli-service serve",

src/js/component/table/list.vue

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div
33
class="list-view"
44
ref="list">
5-
<vue-scroll
5+
<vuescroll
66
:ops="ops"
77
@handle-scroll="handleScroll">
88
<list-body
@@ -24,15 +24,15 @@
2424
</div>
2525
</div>
2626
</list-body>
27-
</vue-scroll>
27+
</vuescroll>
2828
</div>
2929
</template>
3030
<script>
3131
import listBody from './body.vue';
32-
import vueScroll from './vuescroll/vuescroll-native.js';
32+
import vuescroll from 'vuescroll/dist/vuescroll-native';
3333
export default {
3434
components: {
35-
vueScroll,
35+
vuescroll,
3636
listBody,
3737
},
3838
props: {
@@ -77,7 +77,7 @@ export default {
7777
},
7878
methods: {
7979
handleScroll(v, h) {
80-
this.$emit('on-scroll', {v, h});
80+
this.$emit('on-scroll', { v, h });
8181
this.$refs.body.handleScroll(v, h);
8282
},
8383
columnItemClick(index) {
@@ -86,4 +86,4 @@ export default {
8686
},
8787
},
8888
};
89-
</script>
89+
</script>

src/js/component/table/table.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export default {
104104
mounted() {
105105
},
106106
methods: {
107-
changeScrollLeft({v, h}) {
107+
changeScrollLeft({ v, h }) {
108108
this.$refs.headerCom.$refs.list.scrollLeft = h.scrollLeft;
109109
this.$refs.headerCom.handleScroll(v, h);
110110
},
@@ -143,7 +143,7 @@ export default {
143143
];
144144
},
145145
handleSortClick(args) {
146-
let {reverse, colIndex, cb} = args;
146+
let { reverse, colIndex, cb } = args;
147147
if (reverse === 0) {
148148
const rows = this.originRows.map((row) => {
149149
return row.slice(0);
@@ -180,7 +180,7 @@ export default {
180180
},
181181
};
182182
</script>
183-
<style lang="sass" src="./index.scss"></style>
183+
<style lang="scss" src="./index.scss"></style>
184184
<style>
185185
.list-view {
186186
width: 100%;
@@ -189,4 +189,4 @@ overflow: auto;
189189
position: relative;
190190
color: #333;
191191
}
192-
</style>
192+
</style>

0 commit comments

Comments
 (0)