12345678910111213141516171819202122232425262728293031323334353637383940 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- var component_1 = require("../common/component");
- var button_1 = require("../mixins/button");
- var open_type_1 = require("../mixins/open-type");
- component_1.VantComponent({
- mixins: [button_1.button, open_type_1.openType],
- classes: ['hover-class', 'loading-class'],
- props: {
- icon: String,
- color: String,
- plain: Boolean,
- block: Boolean,
- round: Boolean,
- square: Boolean,
- loading: Boolean,
- hairline: Boolean,
- disabled: Boolean,
- loadingText: String,
- type: {
- type: String,
- value: 'default'
- },
- size: {
- type: String,
- value: 'normal'
- },
- loadingSize: {
- type: String,
- value: '20px'
- }
- },
- methods: {
- onClick: function () {
- if (!this.data.disabled && !this.data.loading) {
- this.$emit('click');
- }
- }
- }
- });
|