|
@@ -18,13 +18,16 @@ import { mixin } from '@/mixin'
|
|
import './utils/flexible'
|
|
import './utils/flexible'
|
|
//表格宽度自适应
|
|
//表格宽度自适应
|
|
import AFTableColumn from 'af-table-column'
|
|
import AFTableColumn from 'af-table-column'
|
|
|
|
+//视频插件
|
|
require('video.js/dist/video-js.css');
|
|
require('video.js/dist/video-js.css');
|
|
require('vue-video-player/src/custom-theme.css');
|
|
require('vue-video-player/src/custom-theme.css');
|
|
import hls from 'videojs-contrib-hls';
|
|
import hls from 'videojs-contrib-hls';
|
|
import VideoPlayer from 'vue-video-player';
|
|
import VideoPlayer from 'vue-video-player';
|
|
-
|
|
|
|
|
|
+window.videojs = VideoPlayer.videojs
|
|
|
|
+require('video.js/dist/lang/zh-CN.js') //视频控件提示文字切换为中文 默认是英文
|
|
Vue.use(hls);
|
|
Vue.use(hls);
|
|
Vue.use(VideoPlayer);
|
|
Vue.use(VideoPlayer);
|
|
|
|
+//视频插件结束
|
|
Vue.use(Element, {
|
|
Vue.use(Element, {
|
|
size: Cookies.get('size') || 'medium', // element-ui default size
|
|
size: Cookies.get('size') || 'medium', // element-ui default size
|
|
})
|
|
})
|