编辑器控件需要一个父级容器

  • 直接的父级容器不应当有padding、border、margin等参数
<template>
      <div ref="editorContainer"/>
</template>

注意:病历控件容器,不应当有padding、border、margin等造成offsetWidth/offsetHeight与contentBox不等的配置

  • 父级容器的padding、border、margin会自动被清0
  • 如需设置编辑器控件边框等效果,可以在病历控件容器的上级节点实现,如下所示
<template>
   <div class="treeborder_right">
          <div ref="editorContainer"/>
   </div>
</template>
文档更新时间: 2025-04-23 21:35   作者:admin