n20-common-lib 2.4.40 → 2.4.41

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": "n20-common-lib",
3
- "version": "2.4.40",
3
+ "version": "2.4.41",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -50,8 +50,6 @@ export default {
50
50
  },
51
51
  methods: {
52
52
  tabClick(C) {
53
- console.log(C)
54
-
55
53
  let item = C.$attrs['tab-info']
56
54
  this.$emit('tab-click', item)
57
55
  },
@@ -167,7 +167,7 @@ export default {
167
167
  let _this = this
168
168
  return {
169
169
  colsKey: 0,
170
- sizeC: _this.size,
170
+ sizeC: localStorage.getItem('table-size') || _this.size,
171
171
  sizeBind: undefined
172
172
  }
173
173
  },
@@ -39,21 +39,21 @@ export default {
39
39
  data() {
40
40
  let _this = this
41
41
  return {
42
- sizeC: _this.size
42
+ sizeC: localStorage.getItem('table-size') || _this.size
43
43
  }
44
44
  },
45
45
  watch: {
46
46
  size() {
47
- this.setSize(this.size, 'pasv')
47
+ this.setSize(localStorage.getItem('table-size') || this.size, 'pasv')
48
48
  }
49
49
  },
50
50
  created() {
51
- this.setSize(this.size, 'pasv')
51
+ this.setSize(localStorage.getItem('table-size') || this.size, 'pasv')
52
52
  },
53
53
  methods: {
54
54
  setSize(type, t) {
55
55
  this.sizeC = type
56
-
56
+ localStorage.setItem('table-size', type)
57
57
  if (type === 'mini') {
58
58
  this.$emit('resize', this.mini)
59
59
  } else if (type === 'small') {
@@ -61,7 +61,7 @@ export default {
61
61
  }
62
62
 
63
63
  if (t !== 'pasv') {
64
- this.$emit('update:size', type)
64
+ this.$emit('update:size', localStorage.getItem('table-size') || type)
65
65
  }
66
66
  }
67
67
  }