feat: Add Vue3 exercises and interview plan

- 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.
This commit is contained in:
charlie
2026-03-24 23:02:58 +08:00
parent 3435848495
commit d0d8be443b
41 changed files with 1551 additions and 5 deletions

View File

@@ -0,0 +1,27 @@
const { createApp, provide, inject } = Vue;
createApp({
components: {
ThemeCard: {
setup() {
const themeColor = inject("themeColor");
return {
themeColor,
};
},
template: `
<article class="card">
<h2>主题卡片</h2>
<button type="button" :style="{ background: themeColor }">
<slot>默认按钮</slot>
</button>
</article>
`,
},
},
setup() {
// 任务:通过 provide 提供 themeColor
return {};
},
}).mount("#app");