setting.vue 3.2 KB

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