✨ feat:修改确认订单选择后无法渲染的问题,顶input框的高度问题

This commit is contained in:
Haiyi
2022-09-29 15:22:39 +08:00
parent 6b59d688db
commit 232d372796
19 changed files with 101 additions and 104 deletions
+7 -7
View File
@@ -13,7 +13,7 @@ export const useTimeCountDown = () => {
const timeObj: any = useRef()
const endTime = useRef('')
const onStart = (val = '') => {
console.log('time:::', val)
// console.log('time:::', val)
endTime.current = val
if (endTime.current) {
clearInterval(timeObj.current)
@@ -50,7 +50,7 @@ export const useTimeCountDown = () => {
var HH = ('00' + hh).slice(-2)
var MM = ('00' + mm).slice(-2)
var SS = ('00' + ss).slice(-2)
console.log('endTime::', `${DD}-${HH}-${MM}-${SS}`)
// console.log('endTime::', `${DD}-${HH}-${MM}-${SS}`)
setShowTime((e) => ({ ...e, DD, HH, MM, SS }))
}
return {
@@ -103,8 +103,8 @@ const defaultOptions = {
*/
export const useNeedMemoCallback = (options: Options = defaultOptions) => {
return (prevProps: NormalPropsType, nextProps: NormalPropsType) => {
console.log(options)
console.log('memo==>', prevProps, nextProps)
// console.log(options)
// console.log('memo==>', prevProps, nextProps)
let needMemoized = true
// 引用类型
// function array object
@@ -115,8 +115,8 @@ export const useNeedMemoCallback = (options: Options = defaultOptions) => {
const handleDiff = () => {
for (let [key, value] of Object.entries(prevProps)){
if (!Object.is(value, nextProps[key])) {
console.log('函数不相等',value === nextProps[key])
console.log('asdfasdf',value)
// console.log('函数不相等',value === nextProps[key])
// console.log('asdfasdf',value)
needMemoized = false
break
}
@@ -165,4 +165,4 @@ const bool = needMemo(
hobby: hobby,
},
)
console.log('bool==>', bool)
// console.log('bool==>', bool)