1.1.2 • Published 3 years ago

table-multiple-choice v1.1.2

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

安装

npm install 

使用

  • 在 需要使用的文件中引入
import xxx(可自定义组件名) from 'table-multiple-choice/src/packages/Multiplechoice'
  • 注册组件
components: { TableMultipleChoice },
  • 页面中使用
    <TableMultipleChoice
    :parentRowLength="parentRowLength"
    :parentResultData="parentResultData"
    :parentRowData="parentRowData"
    :parentRowProp="parentRowProp"
    @getResultData="getResultData"
    />

属性说明

PropertyDeacriptiontypedefaultexample
parentRowLength设置一行展示多少个Number4-
parentResultData设置默认值Array 1, 4, 5
parentRowData要展示的选项数据Array(对象数组) {val: 1, tel: '测试1', num: '1001'},{val: 2, tel: '测试2', num: '1002'},
parentRowProp修改属性值(绑定值为 label, 展示值为 text, 如果原数据不存在该属性, 则可以设置指定的属性值为 label 和 text)Object{ }{label: 'val', text: 'tel'}
getResultData获取结果值Array -
1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago