@modeltables/fontawesome-vuetify 1.0.5 → 1.1.1

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/README.md ADDED
File without changes
@@ -38,6 +38,20 @@ export default {
38
38
  fastForward: faFastForward
39
39
  }
40
40
  },
41
+ watch: {
42
+ page(newValue: any, oldValue: any) {
43
+ this.page = newValue;
44
+ },
45
+ perPage(newValue: any, oldValue: any) {
46
+ this.perPage = newValue;
47
+ },
48
+ pageCount(newValue: any, oldValue: any) {
49
+ this.pageCount = newValue;
50
+ },
51
+ totalCount(newValue: any, oldValue: any) {
52
+ this.totalCount = newValue;
53
+ }
54
+ },
41
55
  methods: {
42
56
  pageChange(event: any){
43
57
  this.$emit('pageChange', event);
@@ -17,7 +17,7 @@ import DataItem from './data/ItemView.vue';
17
17
  export default {
18
18
  props: {
19
19
  dataheader: {
20
- type: Array<HeaderModel[]>,
20
+ type: Array<HeaderModel>,
21
21
  default: () => []
22
22
  },
23
23
  key: {
@@ -28,8 +28,10 @@ export default {
28
28
  type: String
29
29
  },
30
30
  dataItems: {
31
- type: Array<Object[]>,
32
- required: true
31
+ type: Array<Object>,
32
+ reactive: true,
33
+ required: true,
34
+ default: () => []
33
35
  },
34
36
  currentItem: {
35
37
  type: Object,
@@ -97,6 +99,7 @@ export default {
97
99
  }
98
100
  },
99
101
  pagination(newValue: PaginatonModel, oldValue) {
102
+ console.log(newValue);
100
103
  this.page = newValue.CurrentPage;
101
104
  this.perPage = newValue.PerPage;
102
105
  this.pageCount = newValue.PageCount;
@@ -229,7 +232,7 @@ export default {
229
232
  this.search();
230
233
  },
231
234
  sort(event: any, prop: any, index: number){
232
- prop.sort = prop.sort == true ? false : true;
235
+ prop.sort = !prop.sort;
233
236
  this.filters.SortColumn = Object.keys(this.dataItems[0])[index];
234
237
  this.filters.SortDirection = window.Number(prop.sort);
235
238
  console.log(this.filters);
@@ -19,6 +19,17 @@
19
19
  required: false
20
20
  }
21
21
  },
22
+ watch: {
23
+ item(newValue: any, oldValue: any) {
24
+ this.item = newValue;
25
+ },
26
+ index(newValue: any, oldValue: any) {
27
+ this.index = newValue;
28
+ },
29
+ prop(newValue: any, oldValue: any) {
30
+ this.prop = newValue;
31
+ },
32
+ },
22
33
  data() {
23
34
  return {
24
35
  item: this.item,