UPDATE

上级 28ecc65c
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!-- 应用程序容器 --> <!-- 应用程序容器 -->
<div class="app-container"> <div class="app-container">
<!-- 页面头部 --> <!-- 页面头部 -->
<Header></Header> <Header title="购物车案例"></Header>
<!-- 页面主体 --> <!-- 页面主体 -->
<h1>App 根组件</h1> <h1>App 根组件</h1>
</div> </div>
...@@ -21,6 +21,7 @@ export default { ...@@ -21,6 +21,7 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
/* 应用程序容器样式 */ /* 应用程序容器样式 */
.app-container { .app-container {
padding-top: 45px; padding-top: 45px;
/* 顶部内边距 */ /* 顶部内边距 */
padding-bottom: 50px; padding-bottom: 50px;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#app { #app {
max-width: 1280px; max-width: 1280px;
margin: 0 auto; margin: 0 auto;
padding: 2rem; padding: 0;
font-weight: normal; font-weight: normal;
} }
......
<template> <template>
<div class="header-container">标题</div> <div class="header-container">{{title}}</div>
</template> </template>
<script> <script>
export default {} export default {
props:{
title:{
type:String,
default:'标题',
},
}
}
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册