mirror of
https://github.com/ZeroCatDev/Classworks.git
synced 2026-03-22 10:23:30 +00:00
- 实现只读令牌状态检测功能,动态显示不同图标 - 在卡片和按钮中根据只读状态切换图标(加号或取消图标) - 添加StudentNameManager组件依赖注入 - 重构组件数据结构,添加isReadOnlyToken响应式数据 - 实现异步检查只读状态的方法,支持多种访问方式 - 优化卡片文本显示,只读时显示"当日无作业"提示而不是“点击添加作业”
Components
Vue template files in this folder are automatically imported.
🚀 Usage
Importing is handled by unplugin-vue-components. This plugin
automatically imports .vue files created in the src/components directory, and registers them as global components.
This means that you can use any component in your application without having to manually import it.
The following example assumes a component located at src/components/MyComponent.vue:
<template>
<div>
<MyComponent />
</div>
</template>
<script lang="ts" setup>
//
</script>
When your template is rendered, the component's import will automatically be inlined, which renders to this:
<template>
<div>
<MyComponent />
</div>
</template>
<script lang="ts" setup>
import MyComponent from '@/components/MyComponent.vue'
</script>