mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-03 01:40:21 +08:00
refactor(frontend): 代码格式化与移动端响应式优化
- 修正 Vue 组件 defineProps/defineEmits 声明顺序 - 优化首页移动端布局,调整 Logo 位置与透明度 - 为 Aether 标题添加打字机动画效果 - 修复 HTML 属性中引号的实体转义
This commit is contained in:
@@ -17,6 +17,11 @@ import {
|
||||
type ChartOptions
|
||||
} from 'chart.js'
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
height: 300,
|
||||
options: undefined
|
||||
})
|
||||
|
||||
ChartJS.register(
|
||||
ArcElement,
|
||||
DoughnutController,
|
||||
@@ -31,11 +36,6 @@ interface Props {
|
||||
height?: number
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
height: 300,
|
||||
options: undefined
|
||||
})
|
||||
|
||||
const chartRef = ref<HTMLCanvasElement>()
|
||||
let chart: ChartJS<'doughnut'> | null = null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user