Skip to content

Commit

Permalink
Added universal component VueDataUi
Browse files Browse the repository at this point in the history
  • Loading branch information
graphieros committed Mar 24, 2024
1 parent 61551b1 commit 2466bc3
Show file tree
Hide file tree
Showing 9 changed files with 993 additions and 156 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,32 @@ Or you can import just what you need in your files:
</script>
```

Since v.2.0.38, you can also use the "VueDataUi" universal component, just specifying which component you are using:

```
<script setup>
import { ref } from "vue";
import { VueDataUi } from "vue-data-ui";
// Include the css;
import "vue-data-ui/style.css";
const config = ref({...});
const dataset = ref([...]);
</script>
<template>
<VueDataUi
component="VueUiXy"
:config="config"
:dataset="dataset"
/>
</template>
```

## Typescript

Types are available in the 'vue-data-ui.d.ts' file under the types directory of the package.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vue-data-ui",
"private": false,
"version": "2.0.37",
"version": "2.0.38",
"type": "module",
"description": "A user-empowering data visualization Vue components library",
"keywords": [
Expand Down
Loading

0 comments on commit 2466bc3

Please sign in to comment.