Spacing.vue 680 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <ModuleBase :type="data.type">
  3. <template #content>
  4. <div :style="settingStyle"></div>
  5. </template>
  6. </ModuleBase>
  7. </template>
  8. <script>
  9. import { getSpacingData } from '@/views/book/courseware/data/spacing';
  10. import ModuleMixin from '../../common/ModuleMixin';
  11. export default {
  12. name: 'SpacingPage',
  13. components: {},
  14. mixins: [ModuleMixin],
  15. data() {
  16. return {
  17. data: getSpacingData(),
  18. };
  19. },
  20. computed: {
  21. settingStyle() {
  22. return {
  23. height: `${this.data.property.height}px`,
  24. width: '100%',
  25. backgroundColor: '#f0f0f0',
  26. };
  27. },
  28. },
  29. methods: {},
  30. };
  31. </script>
  32. <style lang="scss" scoped></style>