From 18d5372ddbc110f7d51320f0ae63afcb94addf97 Mon Sep 17 00:00:00 2001 From: cookfront Date: Mon, 13 Feb 2017 16:43:39 +0800 Subject: [PATCH] icon components --- components.json | 3 ++- packages/icon/CHANGELOG.md | 8 ++++++++ packages/icon/README.md | 26 ++++++++++++++++++++++++++ packages/icon/index.js | 3 +++ packages/icon/package.json | 9 +++++++++ packages/icon/src/icon.vue | 13 +++++++++++++ packages/switch/src/switch.pcss | 5 ++--- 7 files changed, 63 insertions(+), 4 deletions(-) create mode 100644 packages/icon/CHANGELOG.md create mode 100644 packages/icon/README.md create mode 100644 packages/icon/index.js create mode 100644 packages/icon/package.json create mode 100644 packages/icon/src/icon.vue diff --git a/components.json b/components.json index 8fcccc5c1..d21df290b 100644 --- a/components.json +++ b/components.json @@ -4,5 +4,6 @@ "switch": "./packages/switch/index.js", "field": "./packages/field/index.js", "radio": "./packages/radio/index.js", - "cell": "./packages/cell/index.js" + "cell": "./packages/cell/index.js", + "icon": "./packages/icon/index.js" } diff --git a/packages/icon/CHANGELOG.md b/packages/icon/CHANGELOG.md new file mode 100644 index 000000000..e88c472b3 --- /dev/null +++ b/packages/icon/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/icon/README.md b/packages/icon/README.md new file mode 100644 index 000000000..4c6172563 --- /dev/null +++ b/packages/icon/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/icon/index.js b/packages/icon/index.js new file mode 100644 index 000000000..cf234f6f0 --- /dev/null +++ b/packages/icon/index.js @@ -0,0 +1,3 @@ +import Icon from './src/icon'; + +export default Icon; diff --git a/packages/icon/package.json b/packages/icon/package.json new file mode 100644 index 000000000..775e75514 --- /dev/null +++ b/packages/icon/package.json @@ -0,0 +1,9 @@ +{ + "name": "o2-icon", + "version": "0.0.1", + "description": "o2-icon", + "main": "index.js", + "author": "zhangmin ", + "devDependencies": {}, + "dependencies": {} +} diff --git a/packages/icon/src/icon.vue b/packages/icon/src/icon.vue new file mode 100644 index 000000000..7969ad3df --- /dev/null +++ b/packages/icon/src/icon.vue @@ -0,0 +1,13 @@ + + + diff --git a/packages/switch/src/switch.pcss b/packages/switch/src/switch.pcss index 0ac3f03e4..3ed604d34 100644 --- a/packages/switch/src/switch.pcss +++ b/packages/switch/src/switch.pcss @@ -1,5 +1,4 @@ - -@component-namespace o2{ +@component-namespace o2 { @component switch { height: 29px; width: 49px; @@ -45,4 +44,4 @@ border-color: rgba(0, 0, 0, .1); } } -} \ No newline at end of file +}