diff --git a/README.md b/README.md
index 09df6a5..818c31c 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@
### English (Coming soon)
## Programming
-- [ ] Grid
+- [x] Grid
- [ ] Layout
- [ ] Button
- [ ] Icon
diff --git a/src/components/grid/col.vue b/src/components/grid/col.vue
new file mode 100644
index 0000000..7e05b81
--- /dev/null
+++ b/src/components/grid/col.vue
@@ -0,0 +1,71 @@
+
+
+
+
+
+
diff --git a/src/components/grid/index.js b/src/components/grid/index.js
new file mode 100644
index 0000000..51bd0db
--- /dev/null
+++ b/src/components/grid/index.js
@@ -0,0 +1,4 @@
+import Row from './row.vue';
+import Col from './col.vue';
+
+export { Row, Col };
\ No newline at end of file
diff --git a/src/components/grid/row.vue b/src/components/grid/row.vue
new file mode 100644
index 0000000..8554d7b
--- /dev/null
+++ b/src/components/grid/row.vue
@@ -0,0 +1,76 @@
+
+
+
+
+
+
diff --git a/src/components/layout/col.vue b/src/components/layout/col.vue
deleted file mode 100644
index 7e05b81..0000000
--- a/src/components/layout/col.vue
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-
-
-
-
diff --git a/src/components/layout/index.js b/src/components/layout/index.js
deleted file mode 100644
index 51bd0db..0000000
--- a/src/components/layout/index.js
+++ /dev/null
@@ -1,4 +0,0 @@
-import Row from './row.vue';
-import Col from './col.vue';
-
-export { Row, Col };
\ No newline at end of file
diff --git a/src/components/layout/row.vue b/src/components/layout/row.vue
deleted file mode 100644
index 7b076ef..0000000
--- a/src/components/layout/row.vue
+++ /dev/null
@@ -1,76 +0,0 @@
-
-
-
-
-
-
diff --git a/src/index.js b/src/index.js
index d8cb4c4..77e8f7a 100644
--- a/src/index.js
+++ b/src/index.js
@@ -42,7 +42,7 @@ import Affix from './components/affix';
// import Transfer from './components/transfer';
// import Tree from './components/tree';
// import Upload from './components/upload';
-// import { Row, Col } from './components/layout';
+import { Row, Col } from './components/grid';
// import { Select, Option, OptionGroup } from './components/select';
import locale from './locale';
@@ -68,7 +68,7 @@ const iview = {
// DropdownMenu: Dropdown.Menu,
// iForm: Form,
// FormItem: Form.Item,
- // iCol: Col,
+ iCol: Col,
// Collapse,
// Icon,
// iInput: Input,
@@ -90,7 +90,7 @@ const iview = {
// Radio,
// RadioGroup: Radio.Group,
// Rate,
- // Row,
+ Row,
// iSelect: Select,
// Slider,
// Spin,
diff --git a/test/app.vue b/test/app.vue
index bad5332..c0a4ee6 100644
--- a/test/app.vue
+++ b/test/app.vue
@@ -24,34 +24,8 @@ li + li {
@@ -64,7 +38,7 @@ li + li {
}
},
- ready: function() {
+ mounted: function() {
},
beforeDestroy: function() {
diff --git a/test/main.js b/test/main.js
index c78429e..c1fbd33 100644
--- a/test/main.js
+++ b/test/main.js
@@ -20,6 +20,10 @@ const router = new VueRouter({
{
path: '/affix',
component: require('./routers/affix.vue')
+ },
+ {
+ path: '/grid',
+ component: require('./routers/grid.vue')
}
]
});
diff --git a/test/routers/affix.vue b/test/routers/affix.vue
index 299f084..fe38a9c 100644
--- a/test/routers/affix.vue
+++ b/test/routers/affix.vue
@@ -1,3 +1,14 @@
+
固定在最顶部
diff --git a/test/routers/grid.vue b/test/routers/grid.vue
new file mode 100644
index 0000000..f8819b6
--- /dev/null
+++ b/test/routers/grid.vue
@@ -0,0 +1,26 @@
+
+
+
+ col-12
+ col-12
+
+
+
+ col-8
+ col-8
+ col-8
+
+
+
+ col-6
+ col-6
+ col-6
+ col-6
+
+
+
+
--
libgit2 0.21.4