setting.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <!--
  2. * @description: 标题属性设置面板
  3. * @Date: 2022-08-17 16:53:28
  4. * @Author: shiyi
  5. -->
  6. <template>
  7. <div class="bs-setting-wrap">
  8. <el-form
  9. ref="form"
  10. label-width="100px"
  11. label-position="left"
  12. :model="config"
  13. :rules="rules"
  14. class="bs-el-form"
  15. >
  16. <SettingTitle>位置</SettingTitle>
  17. <div class="lc-field-body">
  18. <PosWhSetting :config="config" />
  19. </div>
  20. <SettingTitle>基础</SettingTitle>
  21. <div class="lc-field-body">
  22. <el-form-item
  23. label="激活颜色"
  24. label-width="100px"
  25. >
  26. <el-color-picker
  27. v-model="config.customize.activeColor"
  28. popper-class="bs-el-color-picker"
  29. class="bs-el-color-picker"
  30. />
  31. </el-form-item>
  32. <el-form-item
  33. label="非激活颜色"
  34. label-width="100px"
  35. >
  36. <el-color-picker
  37. v-model="config.customize.inactiveColor"
  38. popper-class="bs-el-color-picker"
  39. class="bs-el-color-picker"
  40. />
  41. </el-form-item>
  42. </div>
  43. </el-form>
  44. </div>
  45. </template>
  46. <script>
  47. import SettingTitle from 'data-room-ui/SettingTitle/index.vue'
  48. import PosWhSetting from 'data-room-ui/BigScreenDesign/RightSetting/PosWhSetting.vue'
  49. export default {
  50. name: 'ThemeSwitcherSetting',
  51. components: {
  52. PosWhSetting,
  53. SettingTitle
  54. },
  55. data () {
  56. return {
  57. rules: {
  58. title: [
  59. { required: true, message: '请输入标题', trigger: 'blur' }
  60. ]
  61. }
  62. }
  63. },
  64. computed: {
  65. config: {
  66. get () {
  67. return this.$store.state.bigScreen.activeItemConfig
  68. },
  69. set (val) {
  70. this.$store.state.bigScreen.activeItemConfig = val
  71. }
  72. }
  73. },
  74. watch: {
  75. },
  76. mounted () {},
  77. methods: {
  78. }
  79. }
  80. </script>
  81. <style lang="scss" scoped>
  82. @import "../../assets/style/settingWrap.scss";
  83. .bs-setting-wrap{
  84. padding-top: 16px;
  85. }
  86. .lc-field-body {
  87. padding: 12px 16px;
  88. }
  89. </style>