Commit
8a22e84f947ba2f4d3bfec893eb02e64bb28ede4
Authored by
梁灏
init Form component
init Form component
...
|
...
|
@@ -38,6 +38,7 @@ |
38
|
38
|
"url": "https://github.com/iview/iview/issues" |
39
|
39
|
}, |
40
|
40
|
"dependencies": { |
|
41
|
+ "async-validator": "^1.6.7", |
41
|
42
|
"core-js": "^2.4.1", |
42
|
43
|
"popper.js": "^0.6.4" |
43
|
44
|
}, |
...
|
...
|
|
|
1
|
+<script src="index.js"></script> |
|
2
|
+<template> |
|
3
|
+ |
|
4
|
+</template> |
|
5
|
+<script> |
|
6
|
+ export default { |
|
7
|
+ props: {}, |
|
8
|
+ data () { |
|
9
|
+ return {} |
|
10
|
+ }, |
|
11
|
+ computed: {}, |
|
12
|
+ methods: {} |
|
13
|
+ }; |
|
14
|
+</script> |
0
|
15
|
\ No newline at end of file |
...
|
...
|
|
|
1
|
+<template> |
|
2
|
+ |
|
3
|
+</template> |
|
4
|
+<script> |
|
5
|
+ export default { |
|
6
|
+ props: {}, |
|
7
|
+ data () { |
|
8
|
+ return {} |
|
9
|
+ }, |
|
10
|
+ computed: {}, |
|
11
|
+ methods: {} |
|
12
|
+ }; |
|
13
|
+</script> |
0
|
14
|
\ No newline at end of file |
...
|
...
|
|
|
1
|
+import Form from './form.vue'; |
|
2
|
+import FormItem from './form-item.vue'; |
|
3
|
+ |
|
4
|
+Form.Item = FormItem; |
|
5
|
+export default Form; |
0
|
6
|
\ No newline at end of file |
...
|
...
|
|
...
|
...
|
@@ -14,6 +14,7 @@ import Circle from './components/circle'; |
14
|
14
|
import Collapse from './components/collapse'; |
15
|
15
|
import DatePicker from './components/date-picker'; |
16
|
16
|
import Dropdown from './components/dropdown'; |
|
17
|
+import Form from './components/form'; |
17
|
18
|
import Icon from './components/icon'; |
18
|
19
|
import Input from './components/input'; |
19
|
20
|
import InputNumber from './components/input-number'; |
...
|
...
|
@@ -58,6 +59,8 @@ const iview = { |
58
|
59
|
Dropdown, |
59
|
60
|
DropdownItem: Dropdown.Item, |
60
|
61
|
DropdownMenu: Dropdown.Menu, |
|
62
|
+ Form: Form, |
|
63
|
+ FormItem: Form.Item, |
61
|
64
|
iCol: Col, |
62
|
65
|
Collapse, |
63
|
66
|
Icon, |
...
|
...
|
|
|
1
|
+@form-prefix-cls: ~"@{css-prefix}form"; |
0
|
2
|
\ No newline at end of file |
...
|
...
|
|
...
|
...
|
@@ -33,4 +33,5 @@ |
33
|
33
|
@import "tabs"; |
34
|
34
|
@import "menu"; |
35
|
35
|
@import "date-picker"; |
36
|
|
-@import "time-picker"; |
37
|
36
|
\ No newline at end of file |
|
37
|
+@import "time-picker"; |
|
38
|
+@import "form"; |
38
|
39
|
\ No newline at end of file |
...
|
...
|
|