index.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <cm-construct v-bind:data="data[index]" class="float-btn right_bottom" data-disabled="1"
  2. v-if="nc.bottomPosition == 1 || nc.bottomPosition == 2"
  3. :style="{top:(parseInt(nc.baseBtnBottom)+parseInt(nc.btnBottom))+'px !important'}">
  4. <!-- 预览 -->
  5. <template slot="preview">
  6. <div class="float-mask" data-disabled="1">
  7. <div class="float-btn-box" data-disabled="1">
  8. <!-- v-bind:style="{ backgroundColor : nc.backgroundColor }"-->
  9. <a v-for="(item, index) in nc.list" :key="index" href="javascript:;" class="float-btn-item" data-disabled="1">
  10. <div class="img-box" data-disabled="1">
  11. <img v-bind:src="item.imageUrl" alt="" data-disabled="1">
  12. </div>
  13. <!-- <span v-bind:style="{color: nc.textColor}">{{item.title}}</span>-->
  14. </a>
  15. </div>
  16. </div>
  17. </template>
  18. <!-- 编辑 -->
  19. <template slot="edit">
  20. <!-- <color v-bind:data="{ field : 'textColor', 'label' : '文字颜色' }"></color>-->
  21. <!-- <color v-bind:data="{ field : 'backgroundColor', 'label' : '背景颜色' }"></color>-->
  22. <template v-if="nc.lazyLoad">
  23. <float-btn-list ref="float_btn"></float-btn-list>
  24. <btn-position></btn-position>
  25. <slide v-bind:data="{ field : 'btnBottom', label : '上下偏移' }"></slide>
  26. </template>
  27. </template>
  28. <!-- 资源 -->
  29. <template slot="resource">
  30. <js>
  31. var floatBtnResourcePath = "{$resourceurl}";
  32. </js>
  33. <css src="{$resourceurl}/float_btn/css/style.css"></css>
  34. <js src="{$resourceurl}/float_btn/js/style.js"></js>
  35. </template>
  36. </cm-construct>
  37. <cm-construct v-bind:data="data[index]" class="float-btn right_bottom" data-disabled="1"
  38. v-else-if="nc.bottomPosition == 3 || nc.bottomPosition == 4"
  39. :style="{bottom:(parseInt(nc.baseBtnBottom) + parseInt(nc.btnBottom))+'px !important'}">
  40. <!-- 预览 -->
  41. <template slot="preview">
  42. <div class="float-mask" data-disabled="1">
  43. <div class="float-btn-box" data-disabled="1">
  44. <a v-for="(item, index) in nc.list" :key="index" href="javascript:;" class="float-btn-item" data-disabled="1">
  45. <div class="img-box" data-disabled="1">
  46. <img v-bind:src="item.imageUrl" alt="" data-disabled="1">
  47. </div>
  48. </a>
  49. </div>
  50. </div>
  51. </template>
  52. <!-- 编辑 -->
  53. <template slot="edit">
  54. <template v-if="nc.lazyLoad">
  55. <float-btn-list ref="float_btn"></float-btn-list>
  56. <btn-position></btn-position>
  57. <slide v-bind:data="{ field : 'btnBottom', label : '上下偏移' }"></slide>
  58. </template>
  59. </template>
  60. <!-- 资源 -->
  61. <template slot="resource">
  62. <js>
  63. var floatBtnResourcePath = "{$resourceurl}";
  64. </js>
  65. <css src="{$resourceurl}/float_btn/css/style.css"></css>
  66. <js src="{$resourceurl}/float_btn/js/style.js"></js>
  67. </template>
  68. </cm-construct>