style(projects): update prettier config

This commit is contained in:
Soybean
2022-04-01 14:47:57 +08:00
parent ca2dfa6185
commit df56abe18d
128 changed files with 2237 additions and 2037 deletions

View File

@ -47,6 +47,6 @@ export default function useCountDown(second: number) {
isCounting,
start,
stop,
isComplete,
isComplete
};
}

View File

@ -26,7 +26,7 @@ export default function useImageVerify(width = 152, height = 40) {
domRef,
imgCode,
setImgCode,
getImgCode,
getImgCode
};
}

View File

@ -54,6 +54,6 @@ export default function useSmsCode() {
start,
isCounting,
getSmsCode,
loading,
loading
};
}

View File

@ -10,7 +10,7 @@ interface ScrollBodyStyle {
export default function useBodyScroll(duration = 300) {
const defaultStyle: ScrollBodyStyle = {
overflow: '',
paddingRight: '',
paddingRight: ''
};
function getInitBodyStyle() {
const { overflow, paddingRight } = document.body.style;
@ -42,6 +42,6 @@ export default function useBodyScroll(duration = 300) {
getInitBodyStyle();
return {
scrollBodyHandler,
scrollBodyHandler
};
}

View File

@ -21,6 +21,6 @@ export default function useBoolean(initValue = false) {
setBool,
setTrue,
setFalse,
toggle,
toggle
};
}

View File

@ -15,6 +15,6 @@ export default function useContext<T>(contextName = 'context') {
return {
useProvide,
useInject,
useInject
};
}

View File

@ -6,6 +6,6 @@ export default function useLoading(initValue = false) {
return {
loading,
startLoading,
endLoading,
endLoading
};
}

View File

@ -9,6 +9,6 @@ export default function useLoadingEmpty(initLoading = false, initEmpty = false)
startLoading,
endLoading,
empty,
setEmpty,
setEmpty
};
}

View File

@ -11,7 +11,7 @@ export default function useModalVisible(hideScroll = true) {
const { scrollBodyHandler } = useBodyScroll();
function modalVisibleWatcher() {
const stopHandle = watch(visible, async (newValue) => {
const stopHandle = watch(visible, async newValue => {
scrollBodyHandler(newValue);
});
@ -28,6 +28,6 @@ export default function useModalVisible(hideScroll = true) {
visible,
openModal,
closeModal,
toggleModal,
toggleModal
};
}

View File

@ -24,6 +24,6 @@ export default function useReload() {
return {
reloadFlag,
handleReload,
handleReload
};
}