index.html 735 B

1234567891011121314151617181920
  1. <cm-construct v-bind:data="data[index]" v-bind:class="['auxiliary-blank']">
  2. <!-- 预览 -->
  3. <template slot="preview">
  4. <div class="preview-box">
  5. <div v-bind:style="{ height: nc.height+'px', margin: '0 '+nc.marginLeftRight+'px', backgroundColor: nc.backgroundColor }"></div>
  6. </div>
  7. </template>
  8. <!-- 编辑 -->
  9. <template slot="edit">
  10. <color v-bind:data="{ field: 'backgroundColor', label: '空白颜色' }"></color>
  11. <slide v-bind:data="{ field: 'height', label: '空白高度' }"></slide>
  12. <slide v-bind:data="{ field: 'marginLeftRight', label: '左右边距' }"></slide>
  13. </template>
  14. <!-- 资源 -->
  15. <template slot="resource">
  16. <css src="{$resourceurl}/horz_blank/css/style.css"></css>
  17. </template>
  18. </nc-component>