remove @apply and made icon alias
parent
16cc5c79d2
commit
094d6ad89a
@ -0,0 +1,10 @@
|
||||
export default defineAppConfig({
|
||||
nuxtIcon: {
|
||||
size: '24px', // default <Icon> size applied
|
||||
class: 'icon', // default <Icon> class applied
|
||||
aliases: {
|
||||
nuxt: 'logos:nuxt-icon',
|
||||
loading: 'svg-spinners:90-ring-with-bg',
|
||||
},
|
||||
},
|
||||
});
|
||||
@ -0,0 +1,6 @@
|
||||
<template>
|
||||
<div
|
||||
class="bg-primary flex h-screen w-full flex-col items-center px-12 text-white">
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
@ -0,0 +1,29 @@
|
||||
<template>
|
||||
<textarea
|
||||
class="bg-secondary w-full max-w-2xl resize-none border-none outline-none placeholder:text-zinc-700 focus:outline-none"
|
||||
v-model="data"
|
||||
:placeholder="props.placeholder"
|
||||
@input="updateData()">
|
||||
</textarea>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
interface Props {
|
||||
modelValue: string;
|
||||
placeholder?: string;
|
||||
}
|
||||
|
||||
const props = defineProps<Props>();
|
||||
const emit = defineEmits(['update:modelValue']);
|
||||
|
||||
const data = ref<string>(props.modelValue);
|
||||
|
||||
const updateData = () => {
|
||||
emit('update:modelValue', data.value);
|
||||
};
|
||||
|
||||
watch(
|
||||
() => props.modelValue,
|
||||
() => (data.value = props.modelValue)
|
||||
);
|
||||
</script>
|
||||
Loading…
Reference in New Issue