@qikdev/vue-ui 0.1.1 → 0.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qikdev/vue-ui",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "description": "Vue UI component library",
6
6
  "scripts": {
@@ -1,19 +1,30 @@
1
+
1
2
  export default {
2
3
  data() {
3
4
  return {
4
5
  scrollTop: 0,
5
6
  }
6
7
  },
8
+ methods: {
9
+ updateScroll(e) {
10
+ var scroller = this.$refs.scroll;
11
+ scroller = scroller.$el || scroller;
12
+ this.scrollTop = scroller.scrollTop;
13
+ },
14
+ },
7
15
  mounted() {
8
16
  var scroller = this.$refs.scroll;
17
+ scroller = scroller.$el || scroller;
9
18
  scroller.addEventListener('scroll', this.updateScroll);
10
19
  },
11
20
  beforeUnmount() {
12
21
  var scroller = this.$refs.scroll;
22
+ scroller = scroller.$el || scroller;
13
23
  scroller.removeEventListener('scroll', this.updateScroll);
14
24
  },
15
25
  activated() {
16
26
  var scroller = this.$refs.scroll;
27
+ scroller = scroller.$el || scroller;
17
28
  scroller.scrollTop = this.scrollTop;
18
29
  },
19
30
  }
@@ -49,23 +49,6 @@ import RememberScrollMixin from '../mixins/RememberScroll.js';
49
49
 
50
50
  export default {
51
51
  mixins:[RememberScrollMixin],
52
- // data() {
53
- // return {
54
- // scrollTop: 0,
55
- // }
56
- // },
57
- // mounted() {
58
- // var scroller = this.$refs.scroll;
59
- // scroller.addEventListener('scroll', this.updateScroll);
60
- // },
61
- // beforeUnmount() {
62
- // var scroller = this.$refs.scroll;
63
- // scroller.removeEventListener('scroll', this.updateScroll);
64
- // },
65
- // activated() {
66
- // var scroller = this.$refs.scroll;
67
- // scroller.scrollTop = this.scrollTop;
68
- // },
69
52
  components: {
70
53
  TableRow,
71
54
  TableCell,
@@ -167,9 +150,6 @@ export default {
167
150
  },
168
151
  },
169
152
  methods: {
170
- updateScroll(e) {
171
- this.scrollTop = this.$refs.scroll.scrollTop;
172
- },
173
153
  togglePage() {
174
154
 
175
155
  var self = this;
package/src/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '0.1.1'
1
+ export const version = '0.1.2'