|
|
@@ -4,9 +4,12 @@ import classNames from 'classnames';
|
|
|
import {Button} from '@antmjs/vantui';
|
|
|
import {usePreview} from './hooks';
|
|
|
import filterIcon from '@assets/filter.svg';
|
|
|
+import Filter from './filter';
|
|
|
+import {useBoolean} from 'ahooks';
|
|
|
|
|
|
export default function List() {
|
|
|
const onClick = usePreview();
|
|
|
+ const [visible, {setFalse: onClose, setTrue: onShow}] = useBoolean();
|
|
|
|
|
|
return (
|
|
|
<>
|
|
|
@@ -83,6 +86,7 @@ export default function List() {
|
|
|
</View>
|
|
|
|
|
|
<View
|
|
|
+ onClick={onShow}
|
|
|
className={classNames(
|
|
|
'fixed right-3 bottom-8 flex items-center justify-center bg-white rounded-3xl',
|
|
|
'w-10 h-10 shadow-lg z-10',
|
|
|
@@ -90,6 +94,8 @@ export default function List() {
|
|
|
>
|
|
|
<Image src={filterIcon} mode='widthFix' className='w-5' />
|
|
|
</View>
|
|
|
+
|
|
|
+ <Filter visible={visible} onClose={onClose} />
|
|
|
</>
|
|
|
);
|
|
|
}
|