Skip to content

Commit

Permalink
Merge pull request #51 from webdevnerdstuff/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
webdevnerdstuff authored Mar 13, 2024
2 parents 9a00c3c + 237988d commit eb1df08
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Change Log
All notable changes to the "vuetify-inline-fields" plugin will be documented in this file.

## v1.0.7
2024-03-13
[main] (@webdevnerdstuff)
* Change component to use `defineAsyncComponent`

## v1.0.6
2024-02-26
[main] (@webdevnerdstuff)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wdns/vuetify-inline-fields",
"version": "1.0.6",
"version": "1.0.7",
"description": "Vuetify Inline Fields Component Library offers a comprehensive collection of reusable UI components to create elegant and efficient inline form fields within your applications.",
"private": false,
"publishConfig": {
Expand Down
31 changes: 28 additions & 3 deletions src/plugin/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { defineAsyncComponent } from 'vue';
import { App } from 'vue';
import './styles/main.scss';
import type { SharedProps } from './types';
Expand All @@ -12,9 +13,33 @@ export function createVInlineFields(options: Omit<SharedProps,
const install = (app: App) => {
app.provide(globalOptions, options);

for (const key in VInlineFields) {
app.component(key, VInlineFields[key]);
}
app.component('VInlineAutocomplete', defineAsyncComponent(
() => import('./components/VInlineAutocomplete/VInlineAutocomplete.vue'))
);

app.component('VInlineCheckbox', defineAsyncComponent(
() => import('./components/VInlineCheckbox/VInlineCheckbox.vue'))
);

app.component('VInlineCustomField', defineAsyncComponent(
() => import('./components/VInlineCustomField/VInlineCustomField.vue'))
);

app.component('VInlineSelect', defineAsyncComponent(
() => import('./components/VInlineSelect/VInlineSelect.vue'))
);

app.component('VInlineSwitch', defineAsyncComponent(
() => import('./components/VInlineSwitch/VInlineSwitch.vue'))
);

app.component('VInlineTextarea', defineAsyncComponent(
() => import('./components/VInlineTextarea/VInlineTextarea.vue'))
);

app.component('VInlineTextField', defineAsyncComponent(
() => import('./components/VInlineTextField/VInlineTextField.vue'))
);
};

return { install };
Expand Down

0 comments on commit eb1df08

Please sign in to comment.