aloha-vue 1.1.2 → 1.1.4

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
@@ -14,7 +14,7 @@
14
14
  "Vue.js"
15
15
  ],
16
16
  "homepage": "https://github.com/ilia-brykin/aloha/#README.md",
17
- "version": "1.1.2",
17
+ "version": "1.1.4",
18
18
  "author": {
19
19
  "name": "Ilia Brykin",
20
20
  "email": "brykin.ilia@gmail.com"
@@ -696,6 +696,7 @@ export default {
696
696
  if (this.isDataArray) {
697
697
  return this.data.length;
698
698
  }
699
+ return 0;
699
700
  },
700
701
 
701
702
  isDataObject() {
@@ -115,7 +115,7 @@ export default {
115
115
  BUTTON_SEARCH,
116
116
  ]),
117
117
  this.isBtnToggleVisible && h("div", {
118
- class: "a_column",
118
+ class: "a_column a_pl_0",
119
119
  }, [
120
120
  h(AButton, {
121
121
  class: "a_btn a_btn_link a_text_nowrap",
@@ -51,9 +51,9 @@ export default function SortAPI(props) {
51
51
  const dataSorted = computed(() => {
52
52
  if (modelSortLocal.value.length &&
53
53
  !isSortingOutside.value) {
54
- return orderBy(data.value, sortOptions.value.models, sortOptions.value.directions);
54
+ return orderBy(data.value || [], sortOptions.value.models, sortOptions.value.directions);
55
55
  }
56
- return data.value;
56
+ return data.value || [];
57
57
  });
58
58
 
59
59
  watch(modelSort, () => {