index.html 735 B

1234567891011121314151617181920212223242526272829303132
  1. <cm-construct v-bind:data="data[index]" v-bind:class="['single_img']">
  2. <!-- 预览 -->
  3. <template slot="preview">
  4. <div class="preview-box" v-bind:style="{ background: nc.backgroundColor, marginTop : nc.marginTop + 'px' }">
  5. <template v-if="nc.lazyLoad">
  6. <single-img></single-img>
  7. </template>
  8. </div>
  9. </template>
  10. <!-- 编辑 -->
  11. <template slot="edit">
  12. <template v-if="nc.lazyLoad">
  13. <single-img-list></single-img-list>
  14. </template>
  15. </template>
  16. <!-- 资源 -->
  17. <template slot="resource">
  18. <js>
  19. var singleImgResourcePath = "{$resourceurl}";
  20. </js>
  21. <css src="{$resourceurl}/single_img/css/style.css"></css>
  22. <js src="{$resourceurl}/single_img/js/style.js"></js>
  23. </template>
  24. </cm-construct>