1.19.0 • Published 7 months ago
@lljj/vue2-form-iview3 v1.19.0
@lljj/vue2-form-iview3
基于 iview3 、Vue2、 JSON Schema 生成表单
通过 @lljj/vue2-form-core 适配 iview3 库
安装
## npm
npm install --save @lljj/vue2-form-iview3
## yarn
yarn add @lljj/vue2-form-iview3
使用
<VueForm
v-model="formData"
:schema="schema"
>
</VueForm>
// 使用
import VueForm from '@lljj/vue2-form-iview3';
export default {
name: 'Demo',
components: {
VueForm
},
data() {
return {
formData: {},
schema: {
type: 'object',
required: [
'userName',
'age',
],
properties: {
userName: {
type: 'string',
title: '用户名',
default: 'Liu.Jun',
},
age: {
type: 'number',
title: '年龄'
},
bio: {
type: 'string',
title: '签名',
minLength: 10,
default: '知道的越多、就知道的越少',
'ui:options': {
placeholder: '请输入你的签名',
type: 'textarea',
rows: 1
}
}
}
}
};
}
};
License
Apache-2.0
1.19.0
7 months ago
1.18.0
9 months ago
1.17.1
12 months ago
1.17.0
1 year ago
1.14.2
1 year ago
1.14.0
2 years ago
1.13.0
2 years ago
1.12.2
2 years ago
1.12.1
2 years ago
1.12.0
2 years ago
1.11.0
2 years ago
1.9.5
2 years ago
1.10.0
2 years ago
1.9.4
3 years ago
1.9.3
3 years ago
1.9.2
3 years ago
1.9.1
3 years ago
1.9.0
3 years ago
1.7.0
3 years ago
1.6.3
3 years ago
1.6.2
3 years ago
1.6.1
3 years ago
1.6.0
3 years ago
1.5.0
3 years ago
1.4.0
3 years ago
1.3.0
3 years ago
1.2.1
3 years ago
1.2.0
3 years ago
1.1.3
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.1.2
3 years ago
1.0.2
3 years ago
1.0.0
3 years ago
0.6.1
3 years ago