Disabled reorg
parent
8411cd33d4
commit
8637737a3d
|
@ -13,7 +13,6 @@
|
|||
export default {
|
||||
inheritAttrs: false,
|
||||
props: {
|
||||
disabled: null,
|
||||
checked: null
|
||||
},
|
||||
data() {
|
||||
|
@ -23,7 +22,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
onClick(event) {
|
||||
if (!this.disabled) {
|
||||
if (!this.$attrs.disabled) {
|
||||
this.$emit('change', event);
|
||||
this.$refs.input.focus();
|
||||
}
|
||||
|
|
|
@ -14,7 +14,6 @@ export default {
|
|||
inheritAttrs: false,
|
||||
props: {
|
||||
value: null,
|
||||
disabled: null,
|
||||
checked: null
|
||||
},
|
||||
data() {
|
||||
|
@ -24,7 +23,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
onClick(event) {
|
||||
if (!this.disabled) {
|
||||
if (!this.$attrs.disabled) {
|
||||
this.$emit('change', {
|
||||
originalEvent: event,
|
||||
data: this.value
|
||||
|
|
Loading…
Reference in New Issue