From d73b1e5cec6e34c3aa9e8a9e36851e553fc5d7e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=84=B6=E5=88=99?= Date: Mon, 15 Jun 2015 17:17:23 +0800 Subject: [PATCH] up --- components/select/demo/combobox.md | 4 ++-- components/select/demo/multiple.md | 4 ++-- components/select/demo/tags.md | 2 +- components/select/index.jsx | 14 +++++++++++++- components/select/index.md | 19 +++++++++---------- style/components/select.less | 2 +- 6 files changed, 28 insertions(+), 17 deletions(-) diff --git a/components/select/demo/combobox.md b/components/select/demo/combobox.md index 72dff120eb..4fab4dc522 100644 --- a/components/select/demo/combobox.md +++ b/components/select/demo/combobox.md @@ -1,8 +1,8 @@ # combobox -- order: 2 +- order: 1 -combobox +功能基本与 suggest 类似。(Google的搜索提示) --- diff --git a/components/select/demo/multiple.md b/components/select/demo/multiple.md index 53cb279e35..3ee6aa1ad1 100644 --- a/components/select/demo/multiple.md +++ b/components/select/demo/multiple.md @@ -1,8 +1,8 @@ # 多选 -- order: 1 +- order: 2 -多选(scroll the menu) +多选,从已有条目中选择(scroll the menu) --- diff --git a/components/select/demo/tags.md b/components/select/demo/tags.md index f2480376fa..5d4ed205c6 100644 --- a/components/select/demo/tags.md +++ b/components/select/demo/tags.md @@ -2,7 +2,7 @@ - order: 3 -tags select(scroll the menu) +tags select,随意输入的内容(scroll the menu) --- diff --git a/components/select/index.jsx b/components/select/index.jsx index ec90848b9a..7c4dbbe1da 100644 --- a/components/select/index.jsx +++ b/components/select/index.jsx @@ -1,5 +1,17 @@ 'use strict'; +var React = require('react'); var Select = require('rc-select'); -module.exports = Select; +module.exports = React.createClass({ + getDefaultProps: function() { + return { + prefixCls: 'ant-select' + }; + }, + render: function() { + return ( +