mirror of
https://github.com/youzan/vant.git
synced 2025-10-14 23:20:41 +00:00
cell components
This commit is contained in:
8
packages/cell/CHANGELOG.md
Normal file
8
packages/cell/CHANGELOG.md
Normal file
@@ -0,0 +1,8 @@
|
||||
## 0.0.2 (2017-01-20)
|
||||
|
||||
* 改了bug A
|
||||
* 加了功能B
|
||||
|
||||
## 0.0.1 (2017-01-10)
|
||||
|
||||
* 第一版
|
26
packages/cell/README.md
Normal file
26
packages/cell/README.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# @youzan/<%= name %>
|
||||
|
||||
!!! 请在此处填写你的文档最简单描述 !!!
|
||||
|
||||
[![version][version-image]][download-url]
|
||||
[![download][download-image]][download-url]
|
||||
|
||||
[version-image]: http://npm.qima-inc.com/badge/v/@youzan/<%= name %>.svg?style=flat-square
|
||||
[download-image]: http://npm.qima-inc.com/badge/d/@youzan/<%= name %>.svg?style=flat-square
|
||||
[download-url]: http://npm.qima-inc.com/package/@youzan/<%= name %>
|
||||
|
||||
## Demo
|
||||
|
||||
## Usage
|
||||
|
||||
## API
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 可选值 |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| className | 自定义额外类名 | string | '' | '' |
|
||||
|
||||
|
||||
|
||||
|
||||
## License
|
||||
[MIT](https://opensource.org/licenses/MIT)
|
3
packages/cell/index.js
Normal file
3
packages/cell/index.js
Normal file
@@ -0,0 +1,3 @@
|
||||
import Cell from './src/cell';
|
||||
|
||||
export default Cell;
|
10
packages/cell/package.json
Normal file
10
packages/cell/package.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "<%= name %>",
|
||||
"version": "<%= version %>",
|
||||
"description": "<%= description %>",
|
||||
"main": "./lib/index.js",
|
||||
"author": "<%= author %>",
|
||||
"license": "<%= license %>",
|
||||
"devDependencies": {},
|
||||
"dependencies": {}
|
||||
}
|
28
packages/cell/src/cell.vue
Normal file
28
packages/cell/src/cell.vue
Normal file
@@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<div class="o2-cell">
|
||||
<div class="o2-cell-title">
|
||||
<slot name="icon">
|
||||
<i v-if="icon" class="o2-icon" :class="'o2-icon-' + icon"></i>
|
||||
</slot>
|
||||
<slot name="title">
|
||||
</slot>
|
||||
</div>
|
||||
<div class="o2-cell-value">
|
||||
<slot>
|
||||
|
||||
</slot>
|
||||
</div>
|
||||
<i class="o2-cell-arrow-right"></i>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'o2-cell',
|
||||
|
||||
props: {
|
||||
icon: String,
|
||||
title: String
|
||||
}
|
||||
};
|
||||
</script>
|
Reference in New Issue
Block a user