仿互站小程序
This commit is contained in:
31
vant/nav-bar/index.js
Normal file
31
vant/nav-bar/index.js
Normal file
@@ -0,0 +1,31 @@
|
||||
var e = require("../common/component"), t = require("../mixins/safe-area");
|
||||
|
||||
(0, e.VantComponent)({
|
||||
mixins: [ (0, t.safeArea)({
|
||||
safeAreaInsetTop: !0
|
||||
}) ],
|
||||
classes: [ "title-class" ],
|
||||
props: {
|
||||
title: String,
|
||||
fixed: Boolean,
|
||||
leftText: String,
|
||||
rightText: String,
|
||||
leftArrow: Boolean,
|
||||
border: {
|
||||
type: Boolean,
|
||||
value: !0
|
||||
},
|
||||
zIndex: {
|
||||
type: Number,
|
||||
value: 120
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onClickLeft: function() {
|
||||
this.$emit("click-left");
|
||||
},
|
||||
onClickRight: function() {
|
||||
this.$emit("click-right");
|
||||
}
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user