Commit 59a3b893b73d441a064eccc8e1698b8899d0c985

Authored by 梁灏
1 parent a0141266

add Cell component for init

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