setting.vue 3.2 KB

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