feat: 删除不再使用的 Vue 组件,清理代码库
All checks were successful
/ depcheck (push) Successful in 1m30s
/ build-and-deploy-to-vercel (push) Successful in 1m41s
/ playwright (push) Successful in 1m8s

This commit is contained in:
严浩
2024-12-30 12:15:38 +08:00
parent 1c53703092
commit 7df5552b05
4 changed files with 0 additions and 66 deletions

View File

@ -10,13 +10,6 @@
<meta name="format-detection" content="telephone=no" />
<title>vue-ts-example</title>
<style type="text/css">
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
font-weight: normal;
}
body {
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;

View File

@ -1,7 +0,0 @@
<script setup lang="tsx">
defineRender(
<div>
<span>Hello defineRender()</span>
</div>,
);
</script>

View File

@ -1,14 +0,0 @@
<script lang="ts" setup>
// https://vue-macros.dev/zh-CN/features/reactivity-transform.html
let count = $ref(0);
// console.log(count);
function increment() {
count++;
}
</script>
<template>
<button class="green" @click="increment">ReactivityTransform: {{ count }}</button>
</template>

View File

@ -1,38 +0,0 @@
<template>
<h1>Use Reusable Template</h1>
<TemplateFoo.define v-slot="{ $slots, msg }">
<div>Hello {{ msg.toUpperCase() }}</div>
<component :is="$slots.slotNameee" slotPropName="valueee" />
<component :is="$slots.default" />
</TemplateFoo.define>
<h2>TemplateFoo.reuse</h2>
<TemplateFoo.reuse msg="World" />
<h2>TemplateFoo.reuse with slotNameee(with props)</h2>
<TemplateFoo.reuse msg="Reusable">
<template #slotNameee="{ slotPropName }">
<div>Passing Slots,{{ { slotPropName } }}</div>
</template>
</TemplateFoo.reuse>
<h2>TemplateFoo.reuse with slot.default</h2>
<TemplateFoo.reuse msg="Reusable">
<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>