@eeplatform/nuxt-layer-common 1.3.0 → 1.3.1
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/CHANGELOG.md
CHANGED
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
<v-col cols="12">
|
|
50
50
|
<v-card width="100%" variant="tonal" rounded="t-xl b-0">
|
|
51
51
|
<v-row class="pa-4">
|
|
52
|
-
<template v-for="item in
|
|
52
|
+
<template v-for="item in props.defaults">
|
|
53
53
|
<v-col cols="4">
|
|
54
54
|
<v-btn
|
|
55
55
|
:prepend-icon="item.icon"
|
|
@@ -204,6 +204,23 @@ const props = defineProps({
|
|
|
204
204
|
type: String,
|
|
205
205
|
default: "Title",
|
|
206
206
|
},
|
|
207
|
+
defaults: {
|
|
208
|
+
type: Array as PropType<Array<TApp>>,
|
|
209
|
+
default: () => [
|
|
210
|
+
{
|
|
211
|
+
title: "Account",
|
|
212
|
+
icon: "ph:user-circle-bold",
|
|
213
|
+
link: "",
|
|
214
|
+
landingPage: "home",
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
title: "Admin",
|
|
218
|
+
icon: "ph:shield-checkered-bold",
|
|
219
|
+
link: "",
|
|
220
|
+
landingPage: "home",
|
|
221
|
+
},
|
|
222
|
+
],
|
|
223
|
+
},
|
|
207
224
|
apps: {
|
|
208
225
|
type: Array as PropType<Array<TApp>>,
|
|
209
226
|
default: () => [],
|
|
@@ -267,21 +284,6 @@ const name = computed(() => {
|
|
|
267
284
|
|
|
268
285
|
return name;
|
|
269
286
|
});
|
|
270
|
-
|
|
271
|
-
const defaultApps = computed<Array<TApp>>(() => [
|
|
272
|
-
{
|
|
273
|
-
title: "Account",
|
|
274
|
-
icon: "ph:user-circle-bold",
|
|
275
|
-
link: APP_ACCOUNT,
|
|
276
|
-
landingPage: "home",
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
title: "Admin",
|
|
280
|
-
icon: "ph:shield-checkered-bold",
|
|
281
|
-
link: APP_ADMIN,
|
|
282
|
-
landingPage: "home",
|
|
283
|
-
},
|
|
284
|
-
]);
|
|
285
287
|
</script>
|
|
286
288
|
|
|
287
289
|
<style scoped>
|
package/package.json
CHANGED
package/plugins/vuetify.ts
CHANGED
|
@@ -14,6 +14,8 @@ const darkTheme = {
|
|
|
14
14
|
dark: true,
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
+
import { VMaskInput } from "vuetify/labs/VMaskInput";
|
|
18
|
+
|
|
17
19
|
export default defineNuxtPlugin((app) => {
|
|
18
20
|
const vuetify = createVuetify({
|
|
19
21
|
defaults: {
|
|
@@ -37,6 +39,10 @@ export default defineNuxtPlugin((app) => {
|
|
|
37
39
|
variant: "outlined",
|
|
38
40
|
density: "comfortable",
|
|
39
41
|
},
|
|
42
|
+
VMaskInput: {
|
|
43
|
+
variant: "outlined",
|
|
44
|
+
density: "comfortable",
|
|
45
|
+
},
|
|
40
46
|
},
|
|
41
47
|
theme: {
|
|
42
48
|
defaultTheme: "defaultTheme",
|
|
@@ -53,6 +59,9 @@ export default defineNuxtPlugin((app) => {
|
|
|
53
59
|
},
|
|
54
60
|
},
|
|
55
61
|
},
|
|
62
|
+
components: {
|
|
63
|
+
VMaskInput,
|
|
64
|
+
},
|
|
56
65
|
});
|
|
57
66
|
|
|
58
67
|
app.vueApp.use(vuetify);
|