feat: update ESLint configuration and package dependencies, add Ant Design Vue
All checks were successful
/ depcheck (push) Successful in 2m38s
/ build-and-deploy-to-vercel (push) Successful in 2m21s
/ surge (push) Successful in 2m33s
/ playwright (push) Successful in 3m21s

This commit is contained in:
严浩
2025-02-27 12:28:58 +08:00
parent 8aef352614
commit 1f2911c096
17 changed files with 320 additions and 126 deletions

View File

@ -0,0 +1,17 @@
<script setup></script>
<template>
<ACard>
<AForm name="basic" :label-col="{ style: { width: '7em' } }">
<AFormItem required label="Username">
<AInput />
</AFormItem>
<AFormItem label="Password">
<AInput />
</AFormItem>
<AFormItem>
<AButton html-type="submit" type="primary">Submit</AButton>
</AFormItem>
</AForm>
</ACard>
</template>
<style lang="scss" scoped></style>

View File

@ -2,6 +2,10 @@
// https://icon-sets.iconify.design
</script>
<script setup lang="ts">
import SomeIcon from '~icons/svg/pacman';
</script>
<template>
<div b="1px solid pink" mt-2 text-4 p-2 space-y-2>
<!-- <div b="1px solid pink">
@ -26,7 +30,3 @@
</div>
</div>
</template>
<script setup lang="ts">
import SomeIcon from '~icons/svg/pacman';
</script>

View File

@ -1,3 +1,17 @@
<script setup lang="ts">
import { createReusableTemplate } from '@vueuse/core';
const TemplateFoo = createReusableTemplate<
{ msg: string },
{
slotNameee: {
slotPropName: string;
};
default: object;
}
>();
</script>
<template>
<h1>Use Reusable Template</h1>
@ -22,17 +36,3 @@
<div>Passing Slots.Default</div>
</TemplateFoo.reuse>
</template>
<script setup lang="ts">
import { createReusableTemplate } from '@vueuse/core';
const TemplateFoo = createReusableTemplate<
{ msg: string },
{
slotNameee: {
slotPropName: string;
};
default: object;
}
>();
</script>

View File

@ -1,3 +1,6 @@
<script lang="ts" setup>
defineProps<{ path: string }>();
</script>
<template>
<main flex-1 class="flex flex-col items-center justify-center h-full space-y-4">
<h1>Not Found</h1>
@ -5,9 +8,6 @@
<Button @click="$router.back()">Back</Button>
</main>
</template>
<script lang="ts" setup>
defineProps<{ path: string }>();
</script>
<route lang="yaml">
props: true

View File

@ -1,8 +1,3 @@
<template>
<pre>{{ JSON.stringify(fakeApiResult, null, 2) }}</pre>
<!-- <div>{{ npmRegistryApiResult?.['_id'] }}</div> -->
</template>
<script setup lang="ts">
const baseURL = '/fake-api';
@ -22,4 +17,9 @@ fetch(`${baseURL}/mock/get-user-info`)
// .then((json) => npmRegistryApiResult = json);
</script>
<template>
<pre>{{ JSON.stringify(fakeApiResult, null, 2) }}</pre>
<!-- <div>{{ npmRegistryApiResult?.['_id'] }}</div> -->
</template>
<style scoped></style>

View File

@ -10,6 +10,13 @@
}
</i18n>
<script setup lang="ts">
const { t } = useI18n({
inheritLocale: true,
useScope: 'local',
});
</script>
<template>
<div class="i18nComp">
<div><span class="label">$i18n.availableLocales</span>: {{ $i18n.availableLocales }}</div>
@ -34,13 +41,6 @@
</div>
</template>
<script setup lang="ts">
const { t } = useI18n({
inheritLocale: true,
useScope: 'local',
});
</script>
<style>
.i18nComp .label,
.i18nComp label {