import React from 'react';
import moment from 'moment';
import { Modal } from 'antd';
import { StandardTableList } from '../../../components/AXList';
import AXVideoPlayer from '../../../components/AXVideoPlayer';
import Ellipsis from '../../../components/Ellipsis';
import { renderStatus, renderVideoQuality } from '../../../utils/utils';
function VideoTableList({
dataSource, loading, totalSize, pageSize, pageNo, modalDestroy, currentItem,
onCreateClick, onDeleteClick, onUpdateClick, onFilterClick, onBatchClick,
onModalCreate, onModalDestroy,
}) {
const pagination = {
pageNo,
pageSize,
totalSize,
};
const batchActions = [{
key: 'delete',
name: '批量删除',
}, {
key: 'edit',
name: '批量编辑',
}];
const basicSearch = {
keys: [{
name: '视频编号',
field: 'code',
}, {
name: '视频名称',
field: 'name',
}],
};
const columns = [{
title: '视频编号',
key: 1,
dataIndex: 'code',
width: '17%',
}, {
title: '视频名称',
key: 2,
dataIndex: 'name',
width: '30%',
render: text => (