chore: prefer arrow function shorthand

This commit is contained in:
chenjiahan
2021-03-02 17:45:12 +08:00
parent 2fd0d54da1
commit a0addef294
42 changed files with 98 additions and 249 deletions
+2 -6
View File
@@ -207,9 +207,7 @@ export default createComponent({
watch(
() => state.code,
(value) => {
emit('update:code', value);
}
(value) => emit('update:code', value)
);
watch(() => props.displayedCouponIndex, scrollToCoupon);
@@ -233,9 +231,7 @@ export default createComponent({
type="danger"
class={bem('close')}
text={props.closeButtonText || t('close')}
onClick={() => {
emit('change', -1);
}}
onClick={() => emit('change', -1)}
/>
</div>
</div>