- 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.
27 lines
890 B
HTML
27 lines
890 B
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>slot 与 provide/inject</title>
|
|
<style>
|
|
body { margin: 0; padding: 32px; font-family: "PingFang SC", sans-serif; background: #f6f8fc; }
|
|
.wrap { max-width: 820px; margin: 0 auto; }
|
|
.card { padding: 20px; border-radius: 18px; background: #fff; border: 1px solid #dce5f2; }
|
|
button { padding: 10px 14px; border: 0; border-radius: 999px; color: #fff; cursor: pointer; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<section id="app" class="wrap">
|
|
<theme-card>
|
|
<template #default>
|
|
继续学习
|
|
</template>
|
|
</theme-card>
|
|
</section>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/vue@3/dist/vue.global.js"></script>
|
|
<script src="./starter.js"></script>
|
|
</body>
|
|
</html>
|