template-project/components/containers/readme.md

37 lines
788 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

第一步:引入组件
import statusContainer from '@/components/containers/status-container.vue';
第二步:注册组件
export default {
components:{
statusContainer
}
}
第三步:使用组件
<template>
<view>
<status-container
:ifReturn="true"
:ifTitle="true"
titlet="首页"
:ifTitleCenter="true"
titlec="#000000"
returnc="#333333"
backgroundc="#FFFFFF"
></status-container>
</view>
</template>
参数说明
ifTitle是否显示标题默认true
titlet标题文字默认标题
ifTitleCenter标题是否居中默认居中
titlec标题颜色默认#000000
ifReturn是否显示返回键默认显示
returnc返回键颜色默认#333333
backgroundc导航栏背景色默认#FFFFFF