index.html 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <cm-construct v-bind:data="data[index]" v-bind:class="['graphic-navigation']">
  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. <graphic-nav></graphic-nav>
  7. <div class="navigation-indicator" v-if="(Math.ceil(nc.list.length/(nc.showType*2))>1)&&(nc.selectedTemplate =='imageNavigation')">
  8. <span v-for="(item, index) in Math.ceil(nc.list.length/(nc.showType*2))" :key="index"></span>
  9. </div>
  10. </template>
  11. </div>
  12. </template>
  13. <!-- 编辑 -->
  14. <template slot="edit">
  15. <template v-if="nc.lazyLoad">
  16. <graphic-nav-list></graphic-nav-list>
  17. </template>
  18. </template>
  19. <!-- 资源 -->
  20. <template slot="resource">
  21. <js>
  22. var graphicNavResourcePath = "{$resourceurl}";
  23. </js>
  24. <css src="{$resourceurl}/graphic_nav/css/style.css"></css>
  25. <js src="{$resourceurl}/graphic_nav/js/style.js"></js>
  26. </template>
  27. </cm-construct>