Vue 3 组合式 API 实战笔记
## 组合式 API 的取舍 `script setup` 让组件更聚焦。 ```ts import { ref, computed } from 'vue' const count = ref(0) const double = computed(() => count.value * 2)
分类下的全部文章
共 3 篇
## 组合式 API 的取舍 `script setup` 让组件更聚焦。 ```ts import { ref, computed } from 'vue' const count = ref(0) const double = computed(() => count.value * 2)
## SSG 还是 SSR 博客这种内容型站点,Astro 的 islands 架构很合适。 - 服务端渲染 HTML - Vue 岛负责交互 - Lenis 平滑滚动 ## 双主题换肤 CSS 变量 + `data-theme`,简单可靠。
## 图片 - 现代格式优先 - 按需加载 ## 字体 - `font-display: swap` - 系统字体回退 ## 代码 > 少即是多。