🎨 add eslint

This commit is contained in:
jingsam 2016-12-25 22:49:42 +08:00
parent 829a2e4cfc
commit b0893113b3
88 changed files with 376 additions and 370 deletions

View file

@ -39,13 +39,13 @@
data: {
type: Array,
default () {
return []
return [];
}
},
value: {
type: Array,
default () {
return []
return [];
}
},
disabled: {
@ -88,7 +88,7 @@
visible: false,
selected: [],
tmpSelected: []
}
};
},
computed: {
classes () {
@ -99,7 +99,7 @@
[`${prefixCls}-visible`]: this.visible,
[`${prefixCls}-disabled`]: this.disabled
}
]
];
},
showCloseIcon () {
return this.value && this.value.length && this.clearable;
@ -182,5 +182,5 @@
this.updateSelected();
}
}
}
</script>
};
</script>

View file

@ -16,8 +16,8 @@
[`${this.prefixCls}-menu-item-active`]: this.tmpItem.value === this.data.value,
[`${this.prefixCls}-menu-item-disabled`]: this.data.disabled
}
]
];
}
}
}
</script>
};
</script>

View file

@ -11,7 +11,6 @@
</template>
<script>
import Casitem from './casitem.vue';
import { oneOf } from '../../utils/assist';
export default {
name: 'Caspanel',
@ -20,13 +19,13 @@
data: {
type: Array,
default () {
return []
return [];
}
},
sublist: {
type: Array,
default () {
return []
return [];
}
},
disabled: Boolean,
@ -38,7 +37,7 @@
return {
tmpItem: {},
result: []
}
};
},
methods: {
handleClickItem (item) {
@ -111,5 +110,5 @@
this.tmpItem = {};
}
}
}
</script>
};
</script>