setting.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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 v-if="config.border">边框</SettingTitle>
  32. <div class="lc-field-body">
  33. <BorderSetting
  34. v-if="config.border"
  35. label-width="100px"
  36. :config="config.border"
  37. :bigTitle='config.title'
  38. />
  39. </div>
  40. <SettingTitle>旋转</SettingTitle>
  41. <div class="lc-field-body">
  42. <RotateSetting
  43. :config="config"
  44. />
  45. </div>
  46. <SettingTitle>基础</SettingTitle>
  47. <div class="lc-field-body">
  48. <el-form-item label="视频链接">
  49. <el-input
  50. v-model="config.customize.videoUrl"
  51. clearable
  52. />
  53. </el-form-item>
  54. <el-form-item label="视频封面">
  55. <el-input
  56. v-model="config.customize.posterUrl"
  57. clearable
  58. />
  59. </el-form-item>
  60. <el-form-item label="视频格式">
  61. <el-select
  62. v-model="config.customize.videoType"
  63. popper-class="bs-el-select"
  64. class="bs-el-select"
  65. >
  66. <el-option
  67. v-for="item in videoTypeList"
  68. :key="item.value"
  69. :label="item.label"
  70. :value="item.value"
  71. />
  72. </el-select>
  73. </el-form-item>
  74. </div>
  75. </el-form>
  76. </el-form>
  77. </div>
  78. </template>
  79. <script>
  80. import SettingTitle from 'data-room-ui/SettingTitle/index.vue'
  81. import BorderSetting from 'data-room-ui/BigScreenDesign/RightSetting/BorderSetting.vue'
  82. import PosWhSetting from 'data-room-ui/BigScreenDesign/RightSetting/PosWhSetting.vue'
  83. import RotateSetting from 'data-room-ui/BigScreenDesign/RightSetting/RotateSetting.vue'
  84. export default {
  85. name: 'Border14Setting',
  86. components: {
  87. PosWhSetting,
  88. SettingTitle,
  89. BorderSetting,
  90. RotateSetting
  91. },
  92. props: {
  93. config: {
  94. type: Object,
  95. required: true
  96. },
  97. predefineThemeColors: {
  98. type: Array,
  99. default: () => {
  100. return [
  101. '#007aff',
  102. '#1aa97b',
  103. '#ff4d53',
  104. '#1890FF',
  105. '#DF0E1B',
  106. '#0086CC',
  107. '#2B74CF',
  108. '#00BC9D',
  109. '#ED7D32'
  110. ]
  111. }
  112. }
  113. },
  114. data () {
  115. return {
  116. videoTypeList: [
  117. {
  118. label: 'mp4',
  119. value: 'video/mp4'
  120. },
  121. {
  122. label: 'm3u8',
  123. value: 'application/x-mpegURL'
  124. },
  125. {
  126. label: 'flv',
  127. value: 'video/x-flv'
  128. },
  129. {
  130. label: 'mov',
  131. value: 'rtmp/mp4'
  132. }
  133. ]
  134. }
  135. },
  136. watch: {},
  137. mounted () {},
  138. methods: {}
  139. }
  140. </script>
  141. <style lang="scss" scoped>
  142. .lc-field-body {
  143. padding: 12px 16px;
  144. }
  145. </style>