File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ const props = defineProps({
3131const emits = defineEmits ([" back" ]);
3232
3333const handleBack = () => {
34- emits (' back' )
35- }
34+ emits (" back" );
35+ };
3636 </script >
3737<script lang="ts">
3838export default {
@@ -60,6 +60,7 @@ export default {
6060 height : 100% ;
6161 display : flex ;
6262 align-items : center ;
63+ margin-right : 5px ;
6364 }
6465 }
6566
Original file line number Diff line number Diff line change 1+ <preview >自定义图标</preview >
2+ <template >
3+ <jw-page-header
4+ content =" detail"
5+ @back =" goBack"
6+ :icon =" ArrowBackIosNewOutlined"
7+ />
8+ </template >
9+
10+ <script setup lang="ts">
11+ import { ArrowBackIosNewOutlined } from " @vicons/material" ;
12+ const goBack = () => {
13+ console .log (" go back" );
14+ };
15+ </script >
Original file line number Diff line number Diff line change 33 <h1 >Page Header 页头</h1 >
44 <p >如果页面的路径比较简单,推荐使用页头组件而非面包屑组件。</p >
55 <div class =" preview-wrapper" >
6- <Preview :component =" PageHeaderPreview1" />
6+ <Preview :component =" PageHeaderPreview1" />
7+ <Preview :component =" PageHeaderPreview2" />
78 </div >
89 </div >
910</template >
1011
1112<script setup lang="ts">
1213import Preview from " @/components/Preview.vue" ;
1314import PageHeaderPreview1 from " ./PageHeaderPreview1.preview.vue" ;
15+ import PageHeaderPreview2 from " ./PageHeaderPreview2.preview.vue" ;
1416import PrevAndNext from " @/components/PrevAndNext.vue" ;
1517import Doc from " @/components/Doc.vue" ;
1618 </script >
You can’t perform that action at this time.
0 commit comments