仿互站小程序
This commit is contained in:
21
vant/mixins/link.js
Normal file
21
vant/mixins/link.js
Normal file
@@ -0,0 +1,21 @@
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: !0
|
||||
});
|
||||
|
||||
exports.link = Behavior({
|
||||
properties: {
|
||||
url: String,
|
||||
linkType: {
|
||||
type: String,
|
||||
value: "navigateTo"
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
jumpLink: function() {
|
||||
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "url", t = this.data[e];
|
||||
t && wx[this.data.linkType]({
|
||||
url: t
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user