仿互站小程序

This commit is contained in:
Drawfans
2020-06-09 16:17:23 +08:00
commit 7bfd53851e
321 changed files with 22890 additions and 0 deletions

31
vant/nav-bar/index.js Normal file
View 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");
}
}
});