setting.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <template>
  2. <div class="bs-setting-wrap">
  3. <el-form
  4. ref="form"
  5. :model="config"
  6. label-width="90px"
  7. label-position="left"
  8. class="setting-body bs-el-form"
  9. >
  10. <slot name="top" />
  11. <el-form
  12. :model="config.customize"
  13. label-position="left"
  14. class="setting-body bs-el-form"
  15. label-width="90px"
  16. >
  17. <SettingTitle>标题</SettingTitle>
  18. <el-form-item
  19. label="播放器名称"
  20. class="lc-field-body"
  21. >
  22. <el-input
  23. v-model="config.title"
  24. clearable
  25. />
  26. </el-form-item>
  27. <SettingTitle>位置</SettingTitle>
  28. <div class="lc-field-body">
  29. <PosWhSetting :config="config" />
  30. </div>
  31. <SettingTitle>基础</SettingTitle>
  32. <div class="lc-field-body">
  33. <el-form-item label="视频链接">
  34. <el-input
  35. v-model="config.customize.videoUrl"
  36. clearable
  37. />
  38. </el-form-item>
  39. <el-form-item label="视频封面">
  40. <el-input
  41. v-model="config.customize.posterUrl"
  42. clearable
  43. />
  44. </el-form-item>
  45. <el-form-item label="视频格式">
  46. <el-select
  47. v-model="config.customize.videoType"
  48. popper-class="bs-el-select"
  49. class="bs-el-select"
  50. >
  51. <el-option
  52. v-for="item in videoTypeList"
  53. :key="item.value"
  54. :label="item.label"
  55. :value="item.value"
  56. />
  57. </el-select>
  58. </el-form-item>
  59. </div>
  60. </el-form>
  61. </el-form>
  62. </div>
  63. </template>
  64. <script>
  65. import SettingTitle from 'packages/SettingTitle/index.vue'
  66. import PosWhSetting from 'packages/BigScreenDesign/RightSetting/PosWhSetting.vue'
  67. export default {
  68. name: 'Border14Setting',
  69. components: {
  70. PosWhSetting,
  71. SettingTitle
  72. },
  73. props: {
  74. config: {
  75. type: Object,
  76. required: true
  77. },
  78. predefineThemeColors: {
  79. type: Array,
  80. default: () => {
  81. return [
  82. '#007aff',
  83. '#1aa97b',
  84. '#ff4d53',
  85. '#1890FF',
  86. '#DF0E1B',
  87. '#0086CC',
  88. '#2B74CF',
  89. '#00BC9D',
  90. '#ED7D32'
  91. ]
  92. }
  93. }
  94. },
  95. data () {
  96. return {
  97. videoTypeList: [
  98. {
  99. label: 'mp4',
  100. value: 'video/mp4'
  101. },
  102. {
  103. label: 'm3u8',
  104. value: 'application/x-mpegURL'
  105. },
  106. {
  107. label: 'flv',
  108. value: 'video/x-flv'
  109. },
  110. {
  111. label: 'mov',
  112. value: 'rtmp/mp4'
  113. }
  114. ]
  115. }
  116. },
  117. watch: {},
  118. mounted () {},
  119. methods: {}
  120. }
  121. </script>
  122. <style lang="scss" scoped>
  123. .lc-field-body {
  124. padding: 12px 16px;
  125. }
  126. </style>