chore: audio file .m4a support
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import PageTools from '@/components/page-tools';
|
||||
import { PageAction } from '@/config';
|
||||
import breakpoints from '@/config/breakpoints';
|
||||
import { SyncOutlined } from '@ant-design/icons';
|
||||
import { PageContainer } from '@ant-design/pro-components';
|
||||
import { useIntl, useNavigate } from '@umijs/max';
|
||||
@@ -104,24 +103,6 @@ const Catalog: React.FC = () => {
|
||||
setActiveId(-1);
|
||||
};
|
||||
|
||||
const handleResize = useCallback(
|
||||
_.throttle((size: { width: number; height: number }) => {
|
||||
const { width } = size;
|
||||
if (width < breakpoints.xs) {
|
||||
setSpan(24);
|
||||
} else if (width < breakpoints.sm) {
|
||||
setSpan(24);
|
||||
} else if (width < breakpoints.md) {
|
||||
setSpan(12);
|
||||
} else if (width < breakpoints.lg) {
|
||||
setSpan(12);
|
||||
} else {
|
||||
setSpan(8);
|
||||
}
|
||||
}, 100),
|
||||
[]
|
||||
);
|
||||
|
||||
const handleOnDeploy = useCallback((item: CatalogItemType) => {
|
||||
setActiveId(item.id);
|
||||
setOpenDeployModal({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import breakpoints from '@/config/breakpoints';
|
||||
import { Col, Row, Spin } from 'antd';
|
||||
import { Col, FloatButton, Row, Spin } from 'antd';
|
||||
import ResizeObserver from 'rc-resize-observer';
|
||||
import React, { useCallback } from 'react';
|
||||
import { CatalogItem as CatalogItemType } from '../config/types';
|
||||
@@ -80,6 +80,7 @@ const CatalogList: React.FC<CatalogListProps> = (props) => {
|
||||
)}
|
||||
</div>
|
||||
</ResizeObserver>
|
||||
<FloatButton.BackTop visibilityHeight={1000} />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user