🎈 perf(销售统计): 优化下拉菜单交互
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
import { formatPriceDiv } from '@/common/format'
|
||||
import NormalButton from '@/components/normalButton'
|
||||
import { View, Text } from '@tarojs/components'
|
||||
import { memo, SetStateAction, useMemo, useRef, useState } from 'react'
|
||||
import styles from './index.module.scss'
|
||||
import MCheckbox from '@/components/checkbox'
|
||||
import { usePropsValue } from '@/use/useCommon'
|
||||
|
||||
@@ -52,8 +52,8 @@ const ShoppingCartContainer: FC<InternalContainer> = () => {
|
||||
|
||||
// 管理
|
||||
const onStartToManage = () => {
|
||||
if(isManageStatus){
|
||||
handleSelectAllCheckbox(false) // 取消全选
|
||||
if (isManageStatus) {
|
||||
handleSelectAllCheckbox(false) // 取消全选
|
||||
}
|
||||
dispatch({ type: ShoppingDispatchType.UPDATE_MANAGE_STATUS, data: !isManageStatus })
|
||||
}
|
||||
@@ -201,6 +201,7 @@ const ShoppingCartContainer: FC<InternalContainer> = () => {
|
||||
setRefreshStatus(false)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return (
|
||||
<View className={classnames('flex-col', styles.shopping)} id='shoppingContainer'>
|
||||
@@ -216,7 +217,7 @@ const ShoppingCartContainer: FC<InternalContainer> = () => {
|
||||
</Search>
|
||||
</View>
|
||||
<View className={classnames('flex-item', 'flex-col', styles['shopping--context'])}>
|
||||
<View className={classnames(styles.shopping__list__container, 'flex-item')} style={{ height: listHeightRef.current }}>
|
||||
<View id='shoppingListContainer' className={classnames(styles.shopping__list__container, 'flex-item')} style={{ height: listHeightRef.current }}>
|
||||
<InfiniteScroll statusMore={statusMore} refresherEnabled={true} selfOnRefresherRefresh={handleRefresh} refresherTriggered={refreshStatus}>
|
||||
{isPending ? (
|
||||
<LoadingCard />
|
||||
|
||||
Reference in New Issue
Block a user