chore: add trailingComma
This commit is contained in:
@@ -52,7 +52,7 @@ function transformFunctionComponent(pure: FunctionComponent): VantComponentOptio
|
||||
functional: true,
|
||||
props: pure.props,
|
||||
model: pure.model,
|
||||
render: (h, context): any => pure(h, context.props, unifySlots(context), context)
|
||||
render: (h, context): any => pure(h, context.props, unifySlots(context), context),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ if (!isServer) {
|
||||
get() {
|
||||
/* istanbul ignore next */
|
||||
supportsPassive = true;
|
||||
}
|
||||
},
|
||||
});
|
||||
window.addEventListener('test-passive', null as any, opts);
|
||||
// eslint-disable-next-line no-empty
|
||||
|
||||
@@ -13,7 +13,7 @@ const inheritKey = [
|
||||
'nativeOn',
|
||||
'directives',
|
||||
'staticClass',
|
||||
'staticStyle'
|
||||
'staticStyle',
|
||||
];
|
||||
|
||||
const mapInheritKey: ObjectIndex = { nativeOn: 'on' };
|
||||
@@ -60,9 +60,9 @@ export function mount(Component: any, data?: VNodeData) {
|
||||
render(h) {
|
||||
return h(Component, {
|
||||
props: this.$props,
|
||||
...data
|
||||
...data,
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
document.body.appendChild(instance.$el);
|
||||
|
||||
+1
-1
@@ -43,5 +43,5 @@ export type RouteProps = {
|
||||
export const routeProps = {
|
||||
url: String,
|
||||
replace: Boolean,
|
||||
to: [String, Object]
|
||||
to: [String, Object],
|
||||
};
|
||||
|
||||
@@ -33,8 +33,8 @@ test('deepAssign', () => {
|
||||
{
|
||||
foo: {
|
||||
bar: true,
|
||||
foo: false
|
||||
}
|
||||
foo: false,
|
||||
},
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user