31 lines
697 B
JavaScript
Raw Normal View History

2020-06-09 16:17:23 +08:00
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");
}
}
});