Button support Form's disabled
This commit is contained in:
parent
983cebbcea
commit
573eecd487
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<component :is="tagName" :class="classes" :disabled="disabled" @click="handleClickLink" v-bind="tagProps">
|
||||
<component :is="tagName" :class="classes" :disabled="itemDisabled" @click="handleClickLink" v-bind="tagProps">
|
||||
<Icon class="ivu-load-loop" type="ios-loading" v-if="loading"></Icon>
|
||||
<Icon :type="icon" :custom="customIcon" v-if="(icon || customIcon) && !loading"></Icon>
|
||||
<span v-if="showSlot" ref="slot"><slot></slot></span>
|
||||
|
@ -9,12 +9,13 @@
|
|||
import Icon from '../icon';
|
||||
import { oneOf } from '../../utils/assist';
|
||||
import mixinsLink from '../../mixins/link';
|
||||
import mixinsForm from '../../mixins/form';
|
||||
|
||||
const prefixCls = 'ivu-btn';
|
||||
|
||||
export default {
|
||||
name: 'Button',
|
||||
mixins: [ mixinsLink ],
|
||||
mixins: [ mixinsLink, mixinsForm ],
|
||||
components: { Icon },
|
||||
props: {
|
||||
type: {
|
||||
|
|
Loading…
Add table
Reference in a new issue