cloumn-container.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template>
  2. <keep-alive>
  3. <el-col :span="Number(data.moduleConfig.spans)" :offset="Number(data.moduleConfig.offset)" :push="Number(data.moduleConfig.push)" :pull="Number(data.moduleConfig.pull)" :style="moduleComputedStyle">
  4. <!-- <drag-tool :unique="data.unique" @delete="deleteModule" :is-edit="isEdit" @copy="copyModule" @active="activeModule">-->
  5. <slot></slot>
  6. <!-- </drag-tool>-->
  7. </el-col>
  8. </keep-alive>
  9. </template>
  10. <script>
  11. import mixin from '../../mixinnew'
  12. import DragTool from "../DragTool";
  13. export default {
  14. name: "cloumn-container",
  15. components: {DragTool},
  16. mixins: [mixin],
  17. title: '列布局',
  18. data(){
  19. return{
  20. }
  21. },
  22. dataTpl: {
  23. tpl_id: 10,
  24. tpl_type: 'BOARD_ITEM',
  25. unique:'',
  26. isEdit:true,
  27. moduleIconClass:'icon-Columns',
  28. moduleConfig:{
  29. moduleStyle: {
  30. moduleStyle: {
  31. borderColor: '',
  32. // borderWidth:'0px',
  33. borderTopWidth:'0px',
  34. borderRightWidth:'0px',
  35. borderBottomWidth:'0px',
  36. borderLeftWidth:'0px',
  37. borderRadius:'0px',
  38. borderStyle:'solid',
  39. // backgroundColor:''
  40. },
  41. },
  42. styleConfig:{
  43. // borderColorWithNurse:'', //边框颜色跟随的护理信息分类
  44. // backgroundColorWithNurse:'', //模块背景色跟随的护理信息分类
  45. boxShadowShow:false,
  46. boxShadowColor:''
  47. },
  48. dataConfig:{
  49. },
  50. spans:8,
  51. offset:0,
  52. push:0,
  53. pull:0,
  54. },
  55. children:[]
  56. }
  57. }
  58. </script>
  59. <style scoped>
  60. </style>