index.vue 1010 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <div
  3. class="bs-design-wrap"
  4. :class="`bs-current-time-${customTheme}`"
  5. >
  6. <div
  7. ref="customHtml"
  8. v-html="config.customize.htmlStr"
  9. />
  10. </div>
  11. </template>
  12. <script>
  13. import paramsMixins from 'data-room-ui/js/mixins/paramsMixins'
  14. import { mapMutations, mapState } from 'vuex'
  15. export default {
  16. name: 'CustomHtml',
  17. mixins: [paramsMixins],
  18. props: {
  19. config: {
  20. type: Object,
  21. default: () => ({})
  22. }
  23. },
  24. computed: {
  25. ...mapState({
  26. })
  27. },
  28. data () {
  29. return {
  30. }
  31. },
  32. mounted () {
  33. },
  34. // 销毁定时器
  35. destroyed () {
  36. },
  37. methods: {
  38. ...mapMutations({
  39. changeChartConfig: 'bigScreen/changeChartConfig',
  40. changeActiveItemConfig: 'bigScreen/changeActiveItemConfig'
  41. }),
  42. changeStyle (config) {
  43. }
  44. }
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. @import "../../BasicComponents/fonts/index.css";
  49. @import "../../assets/fonts/numberFont/stylesheet.css";
  50. .bs-design-wrap{
  51. width: 100%;
  52. padding: 10px;
  53. }
  54. </style>