vant
This commit is contained in:
38
utils/dist/nav-bar/index.js
vendored
Normal file
38
utils/dist/nav-bar/index.js
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import { VantComponent } from '../common/component';
|
||||
VantComponent({
|
||||
classes: ['title-class'],
|
||||
props: {
|
||||
title: String,
|
||||
fixed: Boolean,
|
||||
leftText: String,
|
||||
rightText: String,
|
||||
leftArrow: Boolean,
|
||||
border: {
|
||||
type: Boolean,
|
||||
value: true
|
||||
},
|
||||
zIndex: {
|
||||
type: Number,
|
||||
value: 1
|
||||
},
|
||||
safeAreaInsetTop: {
|
||||
type: Boolean,
|
||||
value: true
|
||||
},
|
||||
},
|
||||
data: {
|
||||
statusBarHeight: 0
|
||||
},
|
||||
created() {
|
||||
const { statusBarHeight } = wx.getSystemInfoSync();
|
||||
this.setData({ statusBarHeight });
|
||||
},
|
||||
methods: {
|
||||
onClickLeft() {
|
||||
this.$emit('click-left');
|
||||
},
|
||||
onClickRight() {
|
||||
this.$emit('click-right');
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user