@rrc-materials/cascader-form
0.2.5 • Public • Published
CascaderForm
@rrc-materials/cascader-form for rrc
使用
yarn add @rrc-materials/cascader-form -S
<script>
import Basic from './demo/basic.md'
export default {
components: {
Basic
}
}
</script>
基本用法
Attributes
参数 |
说明 |
可选值 |
类型 |
默认值 |
options |
配置项 |
- |
Object |
- |
form-attr |
表单属性(所有form表单相关的样式,校验规则等都通过该字段传入。具体可查看ElementUI) |
- |
Object |
- |
options
参数 |
说明 |
可选值 |
类型 |
默认值 |
label |
标签 |
- |
String |
- |
type |
单选还是多选 |
radio/checkbox |
String |
radio |
prop |
字段名 |
- |
String |
- |
value |
字段初始值 |
- |
String |
Number |
items |
该字段的所有可选项 |
- |
Array |
- |
items
参数 |
说明 |
可选值 |
类型 |
默认值 |
label |
单选框/多选框的label |
- |
String |
- |
value |
单选框/多选框的value,未填写的时候默认是label |
- |
String |
Number |
form |
和options的参数一样 |
- |
options |
- |
Events
参数 |
说明 |
回调参数 |
change |
级联表单的值发生改变时候触发该事件 |
级联表单的当前选中项 |
Package Sidebar
Install
npm i @rrc-materials/cascader-form
Weekly Downloads