🎈 perf(销售统计): 优化下拉菜单交互

This commit is contained in:
xuan
2022-10-20 16:53:50 +08:00
parent c5b74e3dd9
commit da5d41cfaa
9 changed files with 34 additions and 15 deletions
@@ -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'
+4 -3
View File
@@ -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 />