chore: prettier source code

This commit is contained in:
chenjiahan
2020-04-02 15:36:02 +08:00
parent 340c56b3b5
commit 2fb5cca49a
93 changed files with 272 additions and 283 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ const [createComponent, bem, t] = createNamespace('list');
export default createComponent({
mixins: [
BindEventMixin(function(bind) {
BindEventMixin(function (bind) {
if (!this.scroller) {
this.scroller = getScroller(this.$el);
}
+2 -2
View File
@@ -4,7 +4,7 @@ import { mount, later, mockGetBoundingClientRect } from '../../../test';
test('load event', async () => {
const wrapper = mount(List);
wrapper.vm.$on('input', value => {
wrapper.vm.$on('input', (value) => {
wrapper.vm.loading = value;
});
@@ -33,7 +33,7 @@ test('error loaded, click error-text and reload', async () => {
expect(wrapper.emitted('input')).toBeFalsy();
// simulate the behavior of clicking error-text
wrapper.vm.$on('update:error', val => {
wrapper.vm.$on('update:error', (val) => {
wrapper.setProps({
error: val,
});