mirror of
https://github.com/HoshinoSuzumi/rayine-ui.git
synced 2025-04-18 09:28:51 +08:00
➕ add tailwind
This commit is contained in:
parent
8a905af78b
commit
fb9e60206a
@ -1,5 +1,2 @@
|
|||||||
export default defineAppConfig({
|
export default defineAppConfig({
|
||||||
myLayer: {
|
|
||||||
name: 'My amazing Nuxt layer (overwritten)'
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
2
app.vue
2
app.vue
@ -1,3 +1,3 @@
|
|||||||
<template>
|
<template>
|
||||||
<HelloWorld />
|
<RayButton>Click me!</RayButton>
|
||||||
</template>
|
</template>
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
const { myLayer } = useAppConfig()
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<div>
|
|
||||||
<h1>Hello World!</h1>
|
|
||||||
<pre>{{ myLayer }}</pre>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
13
components/ray/Button.vue
Normal file
13
components/ray/Button.vue
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<script lang="ts" setup>
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<button class="bg-cyan-200 rounded-lg border border-neutral-50 px-2 py-1">
|
||||||
|
<slot></slot>
|
||||||
|
</button>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
@ -1,4 +1,5 @@
|
|||||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
devtools: { enabled: true }
|
devtools: { enabled: true },
|
||||||
})
|
modules: ["@nuxtjs/tailwindcss"]
|
||||||
|
})
|
@ -13,6 +13,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nuxt/eslint": "latest",
|
"@nuxt/eslint": "latest",
|
||||||
|
"@nuxtjs/tailwindcss": "^6.12.2",
|
||||||
"eslint": "^9.14.0",
|
"eslint": "^9.14.0",
|
||||||
"nuxt": "^3.14.159",
|
"nuxt": "^3.14.159",
|
||||||
"typescript": "^5.6.3",
|
"typescript": "^5.6.3",
|
||||||
|
661
pnpm-lock.yaml
generated
661
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user