fix bugs and add new features (#25)
* fix bugs and add new features * add unit test * fix tab/tag/datetime-picker bugs
This commit is contained in:
@@ -20,9 +20,10 @@ export default {
|
||||
|
||||
```js
|
||||
import Vue from 'vue';
|
||||
import { Cell } from 'vant';
|
||||
import { Cell, CellGroup } from 'vant';
|
||||
import 'vant/lib/vant-css/cell.css';
|
||||
|
||||
Vue.component(CellGroup.name, CellGroup);
|
||||
Vue.component(Cell.name, Cell);
|
||||
```
|
||||
|
||||
@@ -32,9 +33,11 @@ Vue.component(Cell.name, Cell);
|
||||
|
||||
```js
|
||||
import { Cell } from 'vant';
|
||||
import 'vant/lib/vant-css/cell.css';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
'van-cell-group': CellGroup,
|
||||
'van-cell': Cell
|
||||
}
|
||||
};
|
||||
@@ -44,6 +47,8 @@ export default {
|
||||
|
||||
#### 基础用法
|
||||
|
||||
你可以将`van-cell-group`组件看成一个容器即可。
|
||||
|
||||
:::demo 基础用法
|
||||
```html
|
||||
<van-cell-group>
|
||||
|
||||
Reference in New Issue
Block a user