towxml.vue 822 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <view :class="'h2w h2w-' + nodes.theme">
  3. <view class="h2w__main">
  4. <decode :nodes="nodes" />
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. import decode from './decode';
  10. export default {
  11. components: {
  12. decode
  13. },
  14. data() {
  15. return {
  16. someData: {}
  17. };
  18. },
  19. options: {
  20. styleIsolation: 'shared'
  21. },
  22. props: {
  23. nodes: {
  24. type: Object,
  25. default: () => ({})
  26. }
  27. },
  28. methods: {},
  29. created: function () {}
  30. };
  31. </script>
  32. <style>
  33. @import './style/main.css';
  34. @import './style/theme/light.css';
  35. @import './style/theme/dark.css'; /**基础风格样式**/
  36. /**主题配色(浅色样式)**/
  37. /**主题配色(深色样式)**/
  38. .h2w__main {
  39. margin: 0px;
  40. padding: 0px;
  41. }
  42. </style>