chore: run eslint fix

This commit is contained in:
zernonia 2023-08-23 13:49:42 +08:00
parent f540d332fb
commit 28fffb1cba
5 changed files with 21 additions and 19 deletions

View File

@ -1,6 +1,6 @@
name: 🐞 Bug report name: 🐞 Bug report
description: Create a report to help us improve shadcn-vue. description: Create a report to help us improve shadcn-vue.
title: "[Bug]: " title: '[Bug]: '
labels: [bug] labels: [bug]
body: body:
- type: markdown - type: markdown

View File

@ -1,11 +1,11 @@
import { cva } from "class-variance-authority"; import { cva } from 'class-variance-authority'
export const buttonClass = cva( export const buttonClass = cva(
'flex px-2 py-2', 'flex px-2 py-2',
{ {
variants: { variants: {
primary: 'bg-blue-200', primary: 'bg-blue-200',
secondary: 'bg-red-400' secondary: 'bg-red-400',
} },
} },
) )

View File

@ -1,14 +1,16 @@
<template>
<div class="flex items-center justify-center bg-white border border-neutral-200 shadow-sm rounded-xl h-[280px] overflow-hidden relative px-6">
<p class="text-xl font-semibold absolute left-4 top-3 rounded-lg bg-neutral-100 px-2 py-1 text-neutral-600">{{ props.title }}</p>
<div class="overflow-y-scroll flex-grow h-full max-h-full flex items-center justify-center pb-4 pt-12">
<slot />
</div>
</div>
</template>
<script setup> <script setup>
const props = defineProps({ const props = defineProps({
title: String title: String,
}) })
</script> </script>
<template>
<div class="flex items-center justify-center bg-white border border-neutral-200 shadow-sm rounded-xl h-[280px] overflow-hidden relative px-6">
<p class="text-xl font-semibold absolute left-4 top-3 rounded-lg bg-neutral-100 px-2 py-1 text-neutral-600">
{{ props.title }}
</p>
<div class="overflow-y-scroll flex-grow h-full max-h-full flex items-center justify-center pb-4 pt-12">
<slot />
</div>
</div>
</template>

View File

@ -1 +1 @@
export { default as Card } from "./Card.vue"; export { default as Card } from './Card.vue'

View File

@ -1,2 +1,2 @@
packages: packages:
- "packages/*" - 'packages/*'