tethys.backend/resources/js/Pages/App.vue

88 lines
1.7 KiB
Vue
Raw Normal View History

2023-03-03 15:54:28 +00:00
<template>
<div>
<Link href="/app/login">Login</Link>
<h1 class="text-red-500">Welcome, {{ testing }}</h1>
<!-- <n-button>Testing</n-button>
<n-input v-bind:value="testing"></n-input> -->
2023-03-03 15:54:28 +00:00
<div class="features">
<ul>
<li v-for="user in users">
<span>{{ user.login }}</span>
<span>{{ user.email }}</span>
</li>
</ul>
</div>
</div>
2023-03-03 15:54:28 +00:00
</template>
<!-- <script>
import { Link } from '@inertiajs/inertia-vue3';
import DefaultLayout from '@/Layouts/Default.vue';
import { NInput, NButton } from 'naive-ui';
export default {
layout: DefaultLayout,
props: {
testing: String,
users: Array,
},
components: {
Link,
NInput,
NButton,
},
};
</script> -->
<!-- <script lang="js">
import { Link } from '@inertiajs/vue3'
import DefaultLayout from '../Layouts/Default.vue';
export default {
props: {
testing: String,
},
components: {
Link,
DefaultLayout
}
}
</script> -->
<script lang="ts">
2023-03-03 15:54:28 +00:00
import { Component, Vue, Prop } from 'vue-facing-decorator';
import type User from '#models/user';
2023-03-03 15:54:28 +00:00
import { Link } from '@inertiajs/vue3';
import DefaultLayout from '@/Layouts/Default.vue';
// import { NInput, NButton } from 'naive-ui';
2023-03-03 15:54:28 +00:00
@Component({
options: {
layout: DefaultLayout,
},
name: 'AppComponent',
components: {
Link,
// NInput,
// NButton,
},
2023-03-03 15:54:28 +00:00
})
export default class AppComponent extends Vue {
// Component Property
@Prop({
type: String,
default: () => '',
})
testing: string;
2023-03-03 15:54:28 +00:00
@Prop({
type: Array,
default: () => [],
})
users: Array<User>;
2023-03-03 15:54:28 +00:00
}
</script>