CellFormPreview

demo 原始链接demo 源码编辑文档组件源码

cell-form-preview - 图1

二维码

cell-form-preview - 图2

安装

局部注册

全局注册

  1. import { CellFormPreview } from 'vux'
  2. export default {
  3. components: {
  4. CellFormPreview
  5. }
  6. }

  1. // 在入口文件全局引入
  2. import Vue from 'vue'
  3. import { CellFormPreview } from 'vux'
  4. Vue.component('cell-form-preview', CellFormPreview)

CellFormPreview 需要在 Group 组件中使用。

  1. <group>
  2. <cell title="Total" value="¥1024"></cell>
  3. <cell-form-preview :list="list"></cell-form-preview>
  4. </group>
  1. import { CellFormPreview, Group, Cell } from 'vux'
  2. export default {
  3. components: {
  4. CellFormPreview,
  5. Group,
  6. Cell
  7. },
  8. data () {
  9. return {
  10. list: [{
  11. label: 'Apple',
  12. value: '3.29'
  13. }, {
  14. label: 'Banana',
  15. value: '1.04'
  16. }, {
  17. label: 'Fish',
  18. value: '8.00'
  19. }]
  20. }
  21. }
  22. }

属性

名字类型默认值说明版本要求
listarray内容列表,键值包括labelvalue,可缺值v2.2.0
border-intentbooleantrue是否显示边框与左边的间隙v2.2.1-rc.1

贡献者

该组件(包含文档)迭代次数 11,贡献人数 3airylandQiongrong Jianglichunqiang

发布日志

  • v2.2.1-rc.1 [feature] 支持 prop:border-intent, 用以不显示边框与左边间隙
  • v2.2.0 [feature] 新组件