Skip to content

Commit

Permalink
style: 修改视频表格样式
Browse files Browse the repository at this point in the history
  • Loading branch information
kailong321200875 committed Dec 7, 2023
1 parent f06370e commit 93767b6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
18 changes: 15 additions & 3 deletions src/components/Table/src/Table.vue
Expand Up @@ -5,7 +5,8 @@ import {
ElPagination,
ComponentSize,
ElTooltipProps,
ElImage
ElImage,
ElButton
} from 'element-plus'
import { defineComponent, PropType, ref, computed, unref, watch, onMounted } from 'vue'
import { propTypes } from '@/utils/propTypes'
Expand All @@ -16,7 +17,8 @@ import { CSSProperties } from 'vue'
import { getSlot } from '@/utils/tsxHelper'
import TableActions from './components/TableActions.vue'
import { isImgPath } from '@/utils/is'
import { VideoPlayer } from '@/components/VideoPlayer'
import { createVideoViewer } from '@/components/VideoPlayer'
import { Icon } from '@/components/Icon'
export default defineComponent({
name: 'Table',
Expand Down Expand Up @@ -371,7 +373,17 @@ export default defineComponent({
preview-teleported
/>
) : (
<VideoPlayer url={url} class="w-full h-full" />
<ElButton
type="primary"
icon={<Icon icon="ep:video-play" />}
onClick={() => {
createVideoViewer({
url
})
}}
>
预览
</ElButton>
)}
</div>
)
Expand Down
3 changes: 1 addition & 2 deletions src/views/Components/Table/TableVideoPreview.vue
Expand Up @@ -20,8 +20,7 @@ const columns: TableColumn[] = [
},
{
field: 'video_uri',
label: t('tableDemo.videoPreview'),
width: 400
label: t('tableDemo.videoPreview')
},
{
field: 'author',
Expand Down

0 comments on commit 93767b6

Please sign in to comment.