index.html 760 B

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