diff --git a/components.json b/components.json
index 1c29279de..8fcccc5c1 100644
--- a/components.json
+++ b/components.json
@@ -1,5 +1,8 @@
{
"sample": "./packages/sample/index.js",
"button": "./packages/button/index.js",
- "switch": "./packages/switch/index.js"
+ "switch": "./packages/switch/index.js",
+ "field": "./packages/field/index.js",
+ "radio": "./packages/radio/index.js",
+ "cell": "./packages/cell/index.js"
}
diff --git a/docs/examples/cell.md b/docs/examples/cell.md
new file mode 100644
index 000000000..344456778
--- /dev/null
+++ b/docs/examples/cell.md
@@ -0,0 +1,15 @@
+## Cell 组件
+
+### API
+
+| 参数 | 说明 | 类型 | 默认值 | 可选值 |
+|-----------|-----------|-----------|-------------|-------------|
+| className | 自定义额外类名 | string | '' | '' |
+
+### Slot
+
+| name | 描述 |
+|-----------|-----------|
+| - | 自定义显示内容 |
+| icon | |
+| name | |
diff --git a/docs/examples/checkbox.md b/docs/examples/checkbox.md
new file mode 100644
index 000000000..64a485a6a
--- /dev/null
+++ b/docs/examples/checkbox.md
@@ -0,0 +1 @@
+## Checkbox组件
\ No newline at end of file
diff --git a/docs/examples/field.md b/docs/examples/field.md
new file mode 100644
index 000000000..9aa26efa9
--- /dev/null
+++ b/docs/examples/field.md
@@ -0,0 +1 @@
+## Field组件
diff --git a/docs/examples/radio.md b/docs/examples/radio.md
new file mode 100644
index 000000000..75a86f5f0
--- /dev/null
+++ b/docs/examples/radio.md
@@ -0,0 +1 @@
+## Radio组件
diff --git a/docs/nav.config.json b/docs/nav.config.json
index 401945ae3..88eefc099 100644
--- a/docs/nav.config.json
+++ b/docs/nav.config.json
@@ -8,15 +8,41 @@
"list": [
{
"path": "/sample",
- "title": "Sample组件"
+ "title": "Sample"
},
{
"path": "/button",
- "title": "Button组件"
- },
+ "title": "Button"
+ }
+ ]
+ },
+ {
+ "groupName": "CSS组件",
+ "list": [
+ {
+ "path": "/cell",
+ "title": "Cell"
+ }
+ ]
+ },
+ {
+ "groupName": "Form",
+ "list": [
{
"path": "/switch",
- "title": "Switch组件"
+ "title": "Switch"
+ },
+ {
+ "path": "/field",
+ "title": "Field"
+ },
+ {
+ "path": "/radio",
+ "title": "Radio"
+ },
+ {
+ "path": "/checkbox",
+ "title": "Checkbox"
}
]
}
diff --git a/package.json b/package.json
index 793bdeee6..447de6783 100644
--- a/package.json
+++ b/package.json
@@ -12,7 +12,7 @@
"scripts": {
"bootstrap": "npm i --registry=http://registry.npm.qima-inc.com",
"build:file": "node build/bin/build-entry.js",
- "build": "npm run clean && npm run build:file && npm run concat:dev && npm run concat:prod",
+ "build": "npm run clean && npm run lint && npm run build:file && npm run concat:dev && npm run concat:prod",
"dev": "npm run bootstrap && npm run build:file",
"builddocs": "webpack --progress --hide-modules --config build/webpack.config.js && set NODE_ENV=production webpack --progress --hide-modules --config build/webpack.config.js",
"docs": "npm run dev && webpack-dev-server --inline --hot --config build/webpack.config.js",
diff --git a/packages/cell/CHANGELOG.md b/packages/cell/CHANGELOG.md
new file mode 100644
index 000000000..e88c472b3
--- /dev/null
+++ b/packages/cell/CHANGELOG.md
@@ -0,0 +1,8 @@
+## 0.0.2 (2017-01-20)
+
+* 改了bug A
+* 加了功能B
+
+## 0.0.1 (2017-01-10)
+
+* 第一版
diff --git a/packages/cell/README.md b/packages/cell/README.md
new file mode 100644
index 000000000..4c6172563
--- /dev/null
+++ b/packages/cell/README.md
@@ -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)
diff --git a/packages/cell/index.js b/packages/cell/index.js
new file mode 100644
index 000000000..aa54ff040
--- /dev/null
+++ b/packages/cell/index.js
@@ -0,0 +1,3 @@
+import Cell from './src/cell';
+
+export default Cell;
diff --git a/packages/cell/package.json b/packages/cell/package.json
new file mode 100644
index 000000000..7dbfa2900
--- /dev/null
+++ b/packages/cell/package.json
@@ -0,0 +1,10 @@
+{
+ "name": "<%= name %>",
+ "version": "<%= version %>",
+ "description": "<%= description %>",
+ "main": "./lib/index.js",
+ "author": "<%= author %>",
+ "license": "<%= license %>",
+ "devDependencies": {},
+ "dependencies": {}
+}
diff --git a/packages/cell/src/cell.vue b/packages/cell/src/cell.vue
new file mode 100644
index 000000000..03fb7c6cf
--- /dev/null
+++ b/packages/cell/src/cell.vue
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/field/CHANGELOG.md b/packages/field/CHANGELOG.md
new file mode 100644
index 000000000..e88c472b3
--- /dev/null
+++ b/packages/field/CHANGELOG.md
@@ -0,0 +1,8 @@
+## 0.0.2 (2017-01-20)
+
+* 改了bug A
+* 加了功能B
+
+## 0.0.1 (2017-01-10)
+
+* 第一版
diff --git a/packages/field/README.md b/packages/field/README.md
new file mode 100644
index 000000000..4c6172563
--- /dev/null
+++ b/packages/field/README.md
@@ -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)
diff --git a/packages/field/index.js b/packages/field/index.js
new file mode 100644
index 000000000..391f5272c
--- /dev/null
+++ b/packages/field/index.js
@@ -0,0 +1,3 @@
+import Field from './src/field';
+
+export default Field;
diff --git a/packages/field/package.json b/packages/field/package.json
new file mode 100644
index 000000000..766a56bea
--- /dev/null
+++ b/packages/field/package.json
@@ -0,0 +1,3 @@
+{
+ "name": "o2-field"
+}
diff --git a/packages/field/src/field.vue b/packages/field/src/field.vue
new file mode 100644
index 000000000..ca9543abe
--- /dev/null
+++ b/packages/field/src/field.vue
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
diff --git a/packages/radio/CHANGELOG.md b/packages/radio/CHANGELOG.md
new file mode 100644
index 000000000..e88c472b3
--- /dev/null
+++ b/packages/radio/CHANGELOG.md
@@ -0,0 +1,8 @@
+## 0.0.2 (2017-01-20)
+
+* 改了bug A
+* 加了功能B
+
+## 0.0.1 (2017-01-10)
+
+* 第一版
diff --git a/packages/radio/README.md b/packages/radio/README.md
new file mode 100644
index 000000000..4c6172563
--- /dev/null
+++ b/packages/radio/README.md
@@ -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)
diff --git a/packages/radio/index.js b/packages/radio/index.js
new file mode 100644
index 000000000..28c69693a
--- /dev/null
+++ b/packages/radio/index.js
@@ -0,0 +1,3 @@
+import Radio from './src/radio';
+
+export default Radio;
diff --git a/packages/radio/package.json b/packages/radio/package.json
new file mode 100644
index 000000000..7dbfa2900
--- /dev/null
+++ b/packages/radio/package.json
@@ -0,0 +1,10 @@
+{
+ "name": "<%= name %>",
+ "version": "<%= version %>",
+ "description": "<%= description %>",
+ "main": "./lib/index.js",
+ "author": "<%= author %>",
+ "license": "<%= license %>",
+ "devDependencies": {},
+ "dependencies": {}
+}
diff --git a/packages/radio/src/radio.vue b/packages/radio/src/radio.vue
new file mode 100644
index 000000000..789b41ee4
--- /dev/null
+++ b/packages/radio/src/radio.vue
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
diff --git a/src/index.js b/src/index.js
index 34cf81788..fa6aedd6a 100644
--- a/src/index.js
+++ b/src/index.js
@@ -1,6 +1,9 @@
import Sample from '../packages/sample/index.js';
import Button from '../packages/button/index.js';
import Switch from '../packages/switch/index.js';
+import Field from '../packages/field/index.js';
+import Radio from '../packages/radio/index.js';
+import Cell from '../packages/cell/index.js';
// zenui
import '../packages/zenui/src/index.pcss';
@@ -10,6 +13,9 @@ const install = function(Vue) {
Vue.component(Sample.name, Sample);
Vue.component(Button.name, Button);
Vue.component(Switch.name, Switch);
+ Vue.component(Field.name, Field);
+ Vue.component(Radio.name, Radio);
+ Vue.component(Cell.name, Cell);
};
// auto install
@@ -22,5 +28,8 @@ module.exports = {
version: '0.0.1',
Sample,
Button,
- Switch
+ Switch,
+ Field,
+ Radio,
+ Cell
};