AttributePanel.vue 1017 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!--
  2. * @Author: WangJiaCheng
  3. * @Date: 2021-09-14 16:24:04
  4. * @LastEditors: wjc
  5. * @LastEditTime: 2021-09-24 16:43:31
  6. * @Description: 属性面板
  7. -->
  8. <template>
  9. <div class="attribute-panel">
  10. <form-attribute-panel
  11. :show-field="true"
  12. :active-data="activeData"
  13. :form-conf="formConf"
  14. @fetch-data="fetchData"
  15. />
  16. </div>
  17. </template>
  18. <script>
  19. import FormAttributePanel from './FormAttributePanel.vue'
  20. export default {
  21. name: 'AttributePanel',
  22. components: {
  23. FormAttributePanel
  24. },
  25. props: {
  26. dragList: {
  27. type: Array,
  28. default() {
  29. return []
  30. }
  31. },
  32. activeData: {
  33. type: Object,
  34. default() {
  35. return {
  36. __config__: {}
  37. }
  38. }
  39. }
  40. },
  41. data() {
  42. return {
  43. formConf: {},
  44. visible: false
  45. }
  46. },
  47. methods: {
  48. fetchData() {
  49. }
  50. }
  51. }
  52. </script>
  53. <style lang="less">
  54. .attribute-panel {
  55. width: 20%;
  56. .field-box {
  57. height: calc(100% - 100px);
  58. overflow: scroll;
  59. }
  60. }
  61. </style>