index.html 640 B

1234567891011121314151617181920212223242526
  1. <cm-construct v-bind:data="data[index]" class="rich-text">
  2. <!-- 预览 -->
  3. <template slot="preview">
  4. <div class="preview-box" v-bind:style="{ margin: nc.marginTop + 'px 15px 0', backgroundColor: nc.backgroundColor }" style="padding: 10px; line-height: 1.5;">
  5. <div v-html="nc.html"></div>
  6. </div>
  7. </template>
  8. <!-- 编辑 -->
  9. <template slot="edit">
  10. <template v-if="nc.lazyLoad">
  11. <rich-text></rich-text>
  12. </template>
  13. </template>
  14. <!-- 资源 -->
  15. <template slot="resource">
  16. <css src="{$resourceurl}/rich_text/css/style.css"></css>
  17. <js src="{$resourceurl}/rich_text/js/style.js"></js>
  18. </template>
  19. </cm-construct>