innoboxrr-vue-datatable 1.2.25 → 1.2.26

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": "innoboxrr-vue-datatable",
3
- "version": "1.2.25",
3
+ "version": "1.2.26",
4
4
  "description": "Datatable para vue3",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -31,7 +31,7 @@
31
31
  class="px-6 py-4">
32
32
  <template v-if="head.component">
33
33
  <component
34
- :is="head.component"
34
+ :is="getComponent(head.component)"
35
35
  v-bind="setData(head, body)"
36
36
  @callback="head.callback && typeof head.callback === 'function' ? head.callback($event, body) : null" />
37
37
  </template>
@@ -97,7 +97,7 @@
97
97
 
98
98
  <script>
99
99
 
100
- import { ref } from 'vue';
100
+ import { shallowRef } from 'vue';
101
101
  import NavDropdownComponent from './NavDropdownComponent.vue'
102
102
  import IconRouteComponent from './IconRouteComponent.vue'
103
103
  import IconLinkComponent from './IconLinkComponent.vue'
@@ -135,7 +135,7 @@
135
135
  emits: ['sortColumn', 'actionButtonClicked', 'actionClicked'],
136
136
  setup(props) {
137
137
  // Registrar componentes dinámicos
138
- const components = ref(props.dataTableComponents);
138
+ const components = shallowRef(props.dataTableComponents);
139
139
 
140
140
  // Resolver el componente dinámico desde el mapeo
141
141
  const getComponent = (componentName) => {