init Form component
init Form component
This commit is contained in:
parent
e200618755
commit
8a22e84f94
7 changed files with 39 additions and 1 deletions
|
@ -38,6 +38,7 @@
|
|||
"url": "https://github.com/iview/iview/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"async-validator": "^1.6.7",
|
||||
"core-js": "^2.4.1",
|
||||
"popper.js": "^0.6.4"
|
||||
},
|
||||
|
|
14
src/components/form/form-item.vue
Normal file
14
src/components/form/form-item.vue
Normal file
|
@ -0,0 +1,14 @@
|
|||
<script src="index.js"></script>
|
||||
<template>
|
||||
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
props: {},
|
||||
data () {
|
||||
return {}
|
||||
},
|
||||
computed: {},
|
||||
methods: {}
|
||||
};
|
||||
</script>
|
13
src/components/form/form.vue
Normal file
13
src/components/form/form.vue
Normal file
|
@ -0,0 +1,13 @@
|
|||
<template>
|
||||
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
props: {},
|
||||
data () {
|
||||
return {}
|
||||
},
|
||||
computed: {},
|
||||
methods: {}
|
||||
};
|
||||
</script>
|
5
src/components/form/index.js
Normal file
5
src/components/form/index.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
import Form from './form.vue';
|
||||
import FormItem from './form-item.vue';
|
||||
|
||||
Form.Item = FormItem;
|
||||
export default Form;
|
|
@ -14,6 +14,7 @@ import Circle from './components/circle';
|
|||
import Collapse from './components/collapse';
|
||||
import DatePicker from './components/date-picker';
|
||||
import Dropdown from './components/dropdown';
|
||||
import Form from './components/form';
|
||||
import Icon from './components/icon';
|
||||
import Input from './components/input';
|
||||
import InputNumber from './components/input-number';
|
||||
|
@ -58,6 +59,8 @@ const iview = {
|
|||
Dropdown,
|
||||
DropdownItem: Dropdown.Item,
|
||||
DropdownMenu: Dropdown.Menu,
|
||||
Form: Form,
|
||||
FormItem: Form.Item,
|
||||
iCol: Col,
|
||||
Collapse,
|
||||
Icon,
|
||||
|
|
1
src/styles/components/form.less
Normal file
1
src/styles/components/form.less
Normal file
|
@ -0,0 +1 @@
|
|||
@form-prefix-cls: ~"@{css-prefix}form";
|
|
@ -33,4 +33,5 @@
|
|||
@import "tabs";
|
||||
@import "menu";
|
||||
@import "date-picker";
|
||||
@import "time-picker";
|
||||
@import "time-picker";
|
||||
@import "form";
|
Loading…
Add table
Reference in a new issue