Skip to content

VueDataUi universal component

Compare
Choose a tag to compare
@graphieros graphieros released this 24 Mar 15:57
· 1631 commits to master since this release

This version adds the VueDataUi universal component, which can be used instead of individual components, so it is possible to only declare globally a single component.

You just have to specify the component name in the props, and provide the corresponding datatypes for config and dataset.

Events, slots, exposed functions remain unchanged, as this component is just a handy wrapper.

<script setup>
  import { ref } from "vue";
  import { VueDataUi } from "vue-data-ui";
  import "vue-data-ui/style.css";

  const dataset = ref([...]);
  const config = ref({...});
</script>

<template>

  <div style="width:600px">
    <VueDataUi
      component="VueUiXy"
      :dataset="dataset"
      :config="config"
    />
  </div>

</template>

This release does not introduce breaking changes.