mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
style(projects): update prettier config
This commit is contained in:
@ -47,6 +47,6 @@ export default function useCountDown(second: number) {
|
||||
isCounting,
|
||||
start,
|
||||
stop,
|
||||
isComplete,
|
||||
isComplete
|
||||
};
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ export default function useImageVerify(width = 152, height = 40) {
|
||||
domRef,
|
||||
imgCode,
|
||||
setImgCode,
|
||||
getImgCode,
|
||||
getImgCode
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -54,6 +54,6 @@ export default function useSmsCode() {
|
||||
start,
|
||||
isCounting,
|
||||
getSmsCode,
|
||||
loading,
|
||||
loading
|
||||
};
|
||||
}
|
||||
|
@ -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
|
||||
};
|
||||
}
|
||||
|
@ -21,6 +21,6 @@ export default function useBoolean(initValue = false) {
|
||||
setBool,
|
||||
setTrue,
|
||||
setFalse,
|
||||
toggle,
|
||||
toggle
|
||||
};
|
||||
}
|
||||
|
@ -15,6 +15,6 @@ export default function useContext<T>(contextName = 'context') {
|
||||
|
||||
return {
|
||||
useProvide,
|
||||
useInject,
|
||||
useInject
|
||||
};
|
||||
}
|
||||
|
@ -6,6 +6,6 @@ export default function useLoading(initValue = false) {
|
||||
return {
|
||||
loading,
|
||||
startLoading,
|
||||
endLoading,
|
||||
endLoading
|
||||
};
|
||||
}
|
||||
|
@ -9,6 +9,6 @@ export default function useLoadingEmpty(initLoading = false, initEmpty = false)
|
||||
startLoading,
|
||||
endLoading,
|
||||
empty,
|
||||
setEmpty,
|
||||
setEmpty
|
||||
};
|
||||
}
|
||||
|
@ -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
|
||||
};
|
||||
}
|
||||
|
@ -24,6 +24,6 @@ export default function useReload() {
|
||||
|
||||
return {
|
||||
reloadFlag,
|
||||
handleReload,
|
||||
handleReload
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user