index.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <!--
  2. * @Author: WangJiaCheng
  3. * @Date: 2021-08-20 09:10:36
  4. * @LastEditors: WangJiaCheng
  5. * @LastEditTime: 2021-08-20 18:12:06
  6. * @Description: 编辑器
  7. -->
  8. <template>
  9. <div class="editor-container">
  10. <div class="editor-menu">
  11. <el-tabs
  12. tab-position="left"
  13. style="width: 400px;height: 100%;"
  14. >
  15. <el-tab-pane>
  16. <span slot="label">
  17. <img :src="wcIconImg" alt="wc" style="width: 24px;">
  18. </span>
  19. WisdomUI
  20. </el-tab-pane>
  21. <el-tab-pane>
  22. <span slot="label">
  23. <svg-icon icon-class="element-icon" style="font-size: 24px;" />
  24. </span>
  25. ElemenUI
  26. </el-tab-pane>
  27. <el-tab-pane>
  28. <span slot="label">
  29. <svg-icon icon-class="component" style="font-size: 24px;" />
  30. </span>
  31. 自定义
  32. </el-tab-pane>
  33. </el-tabs>
  34. </div>
  35. <div class="editor-main">
  36. 编辑区
  37. </div>
  38. <div class="editor-prop">
  39. 属性
  40. </div>
  41. </div>
  42. </template>
  43. <script>
  44. import {
  45. inputComponents, selectComponents, layoutComponents, formConf
  46. } from '@/components/generator/config'
  47. import wcIcon from '@/assets/wc.png'
  48. export default {
  49. name: 'Editor',
  50. data() {
  51. return {}
  52. },
  53. computed: {
  54. wcIconImg() {
  55. return wcIcon
  56. }
  57. }
  58. }
  59. </script>
  60. <style lang="less">
  61. .editor-container {
  62. width: 100%;
  63. height: 100%;
  64. display: flex;
  65. .editor-menu {
  66. height: 100%;
  67. }
  68. }
  69. </style>