- Introduced Vue3 exercises covering composable API, reactivity, lifecycle hooks, and built-in components. - Added structured interview plan for frontend candidates focusing on HTML, CSS, JavaScript, TypeScript, and Vue. - Included starter files for each exercise and detailed README documentation for guidance.
31 lines
746 B
Markdown
31 lines
746 B
Markdown
# 练习 8:Vue3 综合小面板
|
||
|
||
## 目标
|
||
|
||
把 Vue3 组合式 API 的主线能力串起来,完成一个小型课程面板。
|
||
|
||
## 你要练什么
|
||
|
||
- `ref`
|
||
- `reactive`
|
||
- `computed`
|
||
- `watch`
|
||
- 组件通信
|
||
- composable
|
||
- 模板 `ref`
|
||
|
||
## 任务
|
||
|
||
- 做一个课程搜索和筛选面板
|
||
- 用 `computed` 计算筛选结果和统计数据
|
||
- 用 `watch` 输出搜索关键字变化
|
||
- 用子组件渲染课程卡片
|
||
- 点击按钮切换课程完成状态
|
||
- 点击按钮聚焦搜索框
|
||
- 抽一个 composable 管理课程数据
|
||
|
||
## 文件
|
||
|
||
- [starter.html](/Users/lijiaqing/home/wwwroot/front-end-example/08-vue3/08-final-dashboard/starter.html)
|
||
- [starter.js](/Users/lijiaqing/home/wwwroot/front-end-example/08-vue3/08-final-dashboard/starter.js)
|