Commit 59a3b893b73d441a064eccc8e1698b8899d0c985

Authored by 梁灏
1 parent a0141266

add Cell component for init

@@ -66,6 +66,7 @@ nav { @@ -66,6 +66,7 @@ nav {
66 <li><router-link to="/scroll">Scroll</router-link></li> 66 <li><router-link to="/scroll">Scroll</router-link></li>
67 <li><router-link to="/divider">Divider</router-link></li> 67 <li><router-link to="/divider">Divider</router-link></li>
68 <li><router-link to="/time">Time</router-link></li> 68 <li><router-link to="/time">Time</router-link></li>
  69 + <li><router-link to="/cell">Cell</router-link></li>
69 </ul> 70 </ul>
70 </nav> 71 </nav>
71 <router-view></router-view> 72 <router-view></router-view>
@@ -218,6 +218,10 @@ const router = new VueRouter({ @@ -218,6 +218,10 @@ const router = new VueRouter({
218 { 218 {
219 path: '/time', 219 path: '/time',
220 component: (resolve) => require(['./routers/time.vue'], resolve) 220 component: (resolve) => require(['./routers/time.vue'], resolve)
  221 + },
  222 + {
  223 + path: '/cell',
  224 + component: (resolve) => require(['./routers/cell.vue'], resolve)
221 } 225 }
222 ] 226 ]
223 }); 227 });
examples/routers/cell.vue 0 → 100644
  1 +<template>
  2 +<div>
  3 + <div>cell</div>
  4 +</div>
  5 +</template>
  6 +<script>
  7 + export default {
  8 + data(){
  9 + return {
  10 +
  11 + }
  12 + }
  13 + }
  14 +</script>
src/components/cell-group/index.js 0 → 100644
  1 +import CellGroup from '../cell/cell-group.vue';
  2 +export default CellGroup;
0 \ No newline at end of file 3 \ No newline at end of file
src/components/cell/cell-group.vue 0 → 100644
  1 +<template>
  2 +
  3 +</template>
  4 +<script>
  5 + export default {
  6 + props: {
  7 +
  8 + },
  9 +
  10 + }
  11 +</script>
0 \ No newline at end of file 12 \ No newline at end of file
src/components/cell/cell.vue 0 → 100644
  1 +<template>
  2 +
  3 +</template>
  4 +<script>
  5 + export default {
  6 + props: {
  7 +
  8 + },
  9 +
  10 + }
  11 +</script>
0 \ No newline at end of file 12 \ No newline at end of file
src/components/cell/index.js 0 → 100644
  1 +import Cell from './cell.vue';
  2 +import CellGroup from './cell-group.vue';
  3 +
  4 +Cell.Group = CellGroup;
  5 +export default Cell;
0 \ No newline at end of file 6 \ No newline at end of file
@@ -11,6 +11,7 @@ import Button from &#39;./components/button&#39;; @@ -11,6 +11,7 @@ import Button from &#39;./components/button&#39;;
11 import Card from './components/card'; 11 import Card from './components/card';
12 import Carousel from './components/carousel'; 12 import Carousel from './components/carousel';
13 import Cascader from './components/cascader'; 13 import Cascader from './components/cascader';
  14 +import Cell from './components/cell';
14 import Checkbox from './components/checkbox'; 15 import Checkbox from './components/checkbox';
15 import Circle from './components/circle'; 16 import Circle from './components/circle';
16 import Collapse from './components/collapse'; 17 import Collapse from './components/collapse';
@@ -74,6 +75,8 @@ const components = { @@ -74,6 +75,8 @@ const components = {
74 Carousel, 75 Carousel,
75 CarouselItem: Carousel.Item, 76 CarouselItem: Carousel.Item,
76 Cascader, 77 Cascader,
  78 + Cell,
  79 + CellGroup: Cell.Group,
77 Checkbox, 80 Checkbox,
78 CheckboxGroup: Checkbox.Group, 81 CheckboxGroup: Checkbox.Group,
79 Col, 82 Col,
src/styles/components/cell.less 0 → 100644
  1 +@cell-prefix-cls: ~"@{css-prefix}cell";
  2 +
  3 +.@{cell-prefix-cls} {
  4 +
  5 +}
0 \ No newline at end of file 6 \ No newline at end of file
src/styles/components/index.less
@@ -48,3 +48,4 @@ @@ -48,3 +48,4 @@
48 @import "divider"; 48 @import "divider";
49 @import "anchor"; 49 @import "anchor";
50 @import "time"; 50 @import "time";
  51 +@import "cell";
51 \ No newline at end of file 52 \ No newline at end of file