innoboxrr-vue-datatable 1.3.1 → 1.3.3
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 +1 -1
- package/src/DataTable.vue +7 -0
package/package.json
CHANGED
package/src/DataTable.vue
CHANGED
|
@@ -38,6 +38,9 @@
|
|
|
38
38
|
</li>
|
|
39
39
|
</nav-dropdown-component>
|
|
40
40
|
</div>
|
|
41
|
+
<div v-else>
|
|
42
|
+
<div class="uk-width-expand"></div>
|
|
43
|
+
</div>
|
|
41
44
|
<div v-if="hasFilter" class="uk-width-auto">
|
|
42
45
|
<div class="uk-grid-divider uk-child-width-expand uk-text-center" uk-grid>
|
|
43
46
|
<div>
|
|
@@ -230,6 +233,10 @@
|
|
|
230
233
|
return cols;
|
|
231
234
|
},
|
|
232
235
|
registerComponents() {
|
|
236
|
+
if (this.model.dataTableComponents === undefined || typeof this.model.dataTableComponents !== 'function') {
|
|
237
|
+
return {};
|
|
238
|
+
}
|
|
239
|
+
|
|
233
240
|
// Usar `markRaw` para cada componente
|
|
234
241
|
let components = Object.keys(this.model.dataTableComponents())
|
|
235
242
|
.reduce((acc, key) => {
|