28 lines
612 B
JavaScript
28 lines
612 B
JavaScript
![]() |
"use strict";
|
||
|
|
||
|
var _component = require('./../common/component.js');
|
||
|
|
||
|
var _button = require('./../mixins/button.js');
|
||
|
|
||
|
var _link = require('./../mixins/link.js');
|
||
|
|
||
|
var _openType = require('./../mixins/open-type.js');
|
||
|
|
||
|
(0, _component.VantComponent)({
|
||
|
classes: ['icon-class', 'text-class'],
|
||
|
mixins: [_link.link, _button.button, _openType.openType],
|
||
|
props: {
|
||
|
text: String,
|
||
|
dot: Boolean,
|
||
|
info: String,
|
||
|
icon: String,
|
||
|
disabled: Boolean,
|
||
|
loading: Boolean
|
||
|
},
|
||
|
methods: {
|
||
|
onClick: function onClick(event) {
|
||
|
this.$emit('click', event.detail);
|
||
|
this.jumpLink();
|
||
|
}
|
||
|
}
|
||
|
});
|