From cadce7b210a339bb701f639c4bff65a2157e13de Mon Sep 17 00:00:00 2001 From: MG12 Date: Thu, 19 Nov 2015 09:40:27 +0800 Subject: change the className of select panel container --- HISTORY.md | 7 ++++++- assets/index.less | 2 +- assets/index/Panel.less | 15 +++++++++++++++ assets/index/TimePanel.less | 16 ---------------- package.json | 2 +- src/TimePicker.jsx | 2 +- 6 files changed, 24 insertions(+), 20 deletions(-) create mode 100644 assets/index/Panel.less delete mode 100644 assets/index/TimePanel.less diff --git a/HISTORY.md b/HISTORY.md index e919c58..5be49af 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -3,7 +3,12 @@ History --- -0.5.0 / 2015-11-18 +0.5.1 / 2015-11-19 +------------------ + +`update` change the className of select panel container. + +0.5.0 / 2015-11-19 ------------------ `update` clear input content and close select panel when click [x] on select panel. diff --git a/assets/index.less b/assets/index.less index bc904de..36156cb 100644 --- a/assets/index.less +++ b/assets/index.less @@ -17,7 +17,7 @@ } @import "./index/Picker"; -@import "./index/TimePanel"; +@import "./index/Panel"; @import "./index/Header"; @import "./index/Combobox"; @import "./index/Select"; diff --git a/assets/index/Panel.less b/assets/index/Panel.less new file mode 100644 index 0000000..0abdbfb --- /dev/null +++ b/assets/index/Panel.less @@ -0,0 +1,15 @@ +.@{prefixClass}-panel { + display: inline-block; + position: relative; + outline: none; + border: 1px solid #ccc; + list-style: none; + font-size: 12px; + text-align: left; + background-color: #fff; + border-radius: 3px; + box-shadow: 0 1px 5px #ccc; + background-clip: padding-box; + border: 1px solid #ccc; + line-height: 1.5; +} diff --git a/assets/index/TimePanel.less b/assets/index/TimePanel.less deleted file mode 100644 index 574605f..0000000 --- a/assets/index/TimePanel.less +++ /dev/null @@ -1,16 +0,0 @@ -.@{prefixClass}-panel { - display: inline-block; - position: relative; - outline: none; - font-family: Arial, "Hiragino Sans GB", "Microsoft Yahei", "Microsoft Sans Serif", "WenQuanYi Micro Hei", sans-serif; - border: 1px solid #ccc; - list-style: none; - font-size: 12px; - text-align: left; - background-color: #fff; - border-radius: 3px; - box-shadow: 0 1px 5px #ccc; - background-clip: padding-box; - border: 1px solid #ccc; - line-height: 1.5; -} diff --git a/package.json b/package.json index 03cd1d9..437d9b1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rc-time-picker", - "version": "0.5.0", + "version": "0.5.1", "description": "React TimePicker", "keywords": [ "react", diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx index 78d6de6..a6ea7a9 100644 --- a/src/TimePicker.jsx +++ b/src/TimePicker.jsx @@ -138,7 +138,7 @@ const Picker = React.createClass({ return (