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:
24
08-vue3/12-built-in-components/starter.js
Normal file
24
08-vue3/12-built-in-components/starter.js
Normal file
@@ -0,0 +1,24 @@
|
||||
const { createApp, ref } = Vue;
|
||||
|
||||
createApp({
|
||||
components: {
|
||||
AsyncInfo: {
|
||||
async setup() {
|
||||
// 任务:
|
||||
// 1. 模拟等待
|
||||
// 2. 返回需要在模板中展示的数据
|
||||
return {};
|
||||
},
|
||||
template: `
|
||||
<p>这里会展示异步组件内容。</p>
|
||||
`,
|
||||
},
|
||||
},
|
||||
setup() {
|
||||
const showModal = ref(false);
|
||||
|
||||
return {
|
||||
showModal,
|
||||
};
|
||||
},
|
||||
}).mount("#app");
|
||||
Reference in New Issue
Block a user