<template>
    <el-dialog title="播放器测试" :visible.sync="playertestModal" width="700px">
        <el-form :model="form">
            <el-form-item label="URL" :label-width="formLabelWidth">
                <el-input v-model="form.url" placeholder="请输入url"></el-input>
            </el-form-item>
        </el-form>
        <div slot="footer" class="dialog-footer">
            <el-button @click="playertestModal = false">取 消</el-button>
            <el-button type="primary" @click="playertestModal = false">确 定</el-button>
        </div>
    </el-dialog>
</template>

<script>
    import PubSub from 'pubsub-js'

    export default {
        data() {
            return {
                playertestModal:false,
                form: {
                    url:''
                },
                formLabelWidth: '40px'
            }
        },
        mounted() {
            PubSub.subscribe('playertest',(msg,data) => {
                this.playertestModal = true
            })
        }
    }
</script>

<style scoped>

</style>
