diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index b3111f16..772a2049 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -9,6 +9,35 @@ - 主版本号:含有破坏性更新和新特性,不在发布周期内。 --- + +## 0.3.10 +`2020-3-15` +- Affix + - 🆕 新增 target 属性:设置 Affix 需要监听其滚动事件的元素。[#27](https://github.com/ecomfe/santd/pull/27) +- AutoComplete + - 🆕 新增 backfill 属性:使用键盘选择选项的时候把选中项回填到输入框中。[#24](https://github.com/ecomfe/santd/pull/24) +- Menu + - 🆕 新增 overflowedIndicator 属性:自定义 Menu 折叠时的图标。[#30](https://github.com/ecomfe/santd/pull/30) + - 🆕 新增菜单项过多而溢出时会自动折叠的功能。[#29](https://github.com/ecomfe/santd/pull/29) + - 💄 子菜单统一为垂直菜单。[#29](https://github.com/ecomfe/santd/pull/29) + - 🐞 修复展开收起箭头某些情况下会遮盖文字的问题。[#29](https://github.com/ecomfe/santd/pull/29) +- Select + - 🌟 默认根据 value 筛选改为默认同时根据 value 和内嵌内容筛选。[34](https://github.com/ecomfe/santd/pull/34) +- Space + - 🆕 新增 Space 组件:设置组件之间的间距。[#25](https://github.com/ecomfe/santd/pull/25) +- Tabs + - 🆕 新增 forceRender 属性:被隐藏时是否渲染 DOM 结构。[#28](https://github.com/ecomfe/santd/pull/28) + - 🆕 Tabpane 的内容支持 slot。[#32](https://github.com/ecomfe/santd/pull/32) +- Tree + - 🆕 新增 height 和 virtual 属性:支持虚拟滚动。[#35](https://github.com/ecomfe/santd/pull/35) + - 🐞 修复子节点是否可选的判断逻辑。[#35](https://github.com/ecomfe/santd/pull/35) +- TreeSelect + - 🆕 新增 showSearch 属性:支持搜索框。[#33](https://github.com/ecomfe/santd/pull/33) + - 🆕 新增 searchValue 属性:手动控制搜索框的值。[#33](https://github.com/ecomfe/santd/pull/33) +- 其它 + - 🌟 使用内部实现用到 s-show 的组件要求 San 版本至少 3.9.3。[#29](https://github.com/ecomfe/santd/pull/29) + - 🛠 组件文件的命名统一为帕斯卡命名法。[#37](https://github.com/ecomfe/santd/pull/37) + ## 0.2.9 `2020-10-10` - 🐞 新增 Avatar支持gap设置字符距离左右两侧边界单位像素。 diff --git a/src/anchor/anchor.js b/src/anchor/Anchor.js similarity index 100% rename from src/anchor/anchor.js rename to src/anchor/Anchor.js diff --git a/src/anchor/link.js b/src/anchor/Link.js similarity index 100% rename from src/anchor/link.js rename to src/anchor/Link.js diff --git a/src/anchor/index.js b/src/anchor/index.js index 62b1299f..e883b634 100644 --- a/src/anchor/index.js +++ b/src/anchor/index.js @@ -3,8 +3,8 @@ * @author mayihui@baidu.com **/ -import Anchor from './anchor'; -import Link from './link'; +import Anchor from './Anchor'; +import Link from './Link'; Anchor.Link = Link; diff --git a/src/breadcrumb/item.js b/src/breadcrumb/Item.js similarity index 100% rename from src/breadcrumb/item.js rename to src/breadcrumb/Item.js diff --git a/src/breadcrumb/index.js b/src/breadcrumb/index.js index 8cce9b39..d864ec32 100644 --- a/src/breadcrumb/index.js +++ b/src/breadcrumb/index.js @@ -5,7 +5,7 @@ import san, {DataTypes} from 'san'; import {classCreator} from '../core/util'; -import BreadcrumbItem from './item'; +import BreadcrumbItem from './Item'; import './style/index'; const prefixCls = classCreator('breadcrumb')(); diff --git a/src/button/button.js b/src/button/Button.js similarity index 100% rename from src/button/button.js rename to src/button/Button.js diff --git a/src/button/button-group.js b/src/button/ButtonGroup.js similarity index 100% rename from src/button/button-group.js rename to src/button/ButtonGroup.js diff --git a/src/button/index.js b/src/button/index.js index f8ced39d..4d441abc 100644 --- a/src/button/index.js +++ b/src/button/index.js @@ -2,8 +2,8 @@ * @file san-button按钮 * @author fuqiangqiang@baidu.com */ -import Button from './button'; -import ButtonGroup from './button-group'; +import Button from './Button'; +import ButtonGroup from './ButtonGroup'; Button.Group = ButtonGroup; diff --git a/src/card/card.js b/src/card/Card.js similarity index 98% rename from src/card/card.js rename to src/card/Card.js index d75e79a1..a5a1b05d 100644 --- a/src/card/card.js +++ b/src/card/Card.js @@ -6,7 +6,7 @@ import './style/index.less'; import san, {DataTypes} from 'san'; import {classCreator} from '../core/util'; -import LoadingBlock from './loadingBlock'; +import LoadingBlock from './LoadingBlock'; import Tabs from '../tabs'; const prefix = classCreator('card')(); diff --git a/src/card/grid.js b/src/card/Grid.js similarity index 100% rename from src/card/grid.js rename to src/card/Grid.js diff --git a/src/card/loadingBlock.js b/src/card/LoadingBlock.js similarity index 100% rename from src/card/loadingBlock.js rename to src/card/LoadingBlock.js diff --git a/src/card/meta.js b/src/card/Meta.js similarity index 100% rename from src/card/meta.js rename to src/card/Meta.js diff --git a/src/card/index.js b/src/card/index.js index 1f265212..59278faf 100644 --- a/src/card/index.js +++ b/src/card/index.js @@ -3,9 +3,9 @@ * @author chenkai13 */ -import Card from './card'; -import Meta from './meta'; -import Grid from './grid'; +import Card from './Card'; +import Meta from './Meta'; +import Grid from './Grid'; Card.Meta = Meta; Card.Grid = Grid; diff --git a/src/carousel/track.js b/src/carousel/Track.js similarity index 100% rename from src/carousel/track.js rename to src/carousel/Track.js diff --git a/src/carousel/index.js b/src/carousel/index.js index 5135ee56..b0962fda 100644 --- a/src/carousel/index.js +++ b/src/carousel/index.js @@ -6,7 +6,7 @@ import './style/index.less'; import san from 'san'; import {classCreator} from '../core/util'; -import Track from './track'; +import Track from './Track'; const prefixCls = classCreator('carousel')(); diff --git a/src/checkbox/checkbox.js b/src/checkbox/Checkbox.js similarity index 100% rename from src/checkbox/checkbox.js rename to src/checkbox/Checkbox.js diff --git a/src/checkbox/group.js b/src/checkbox/Group.js similarity index 98% rename from src/checkbox/group.js rename to src/checkbox/Group.js index 05e4681e..7f817a21 100644 --- a/src/checkbox/group.js +++ b/src/checkbox/Group.js @@ -5,7 +5,7 @@ import san, {DataTypes} from 'san'; import {classCreator} from '../core/util'; -import Checkbox from './checkbox'; +import Checkbox from './Checkbox'; const prefixCls = classCreator('checkbox')(); diff --git a/src/checkbox/index.js b/src/checkbox/index.js index c8674c33..e47d13e7 100644 --- a/src/checkbox/index.js +++ b/src/checkbox/index.js @@ -3,8 +3,8 @@ * @author jinzhan */ -import Checkbox from './checkbox'; -import Group from './group'; +import Checkbox from './Checkbox'; +import Group from './Group'; Checkbox.Group = Group; diff --git a/src/collapse/collapse.js b/src/collapse/Collapse.js similarity index 100% rename from src/collapse/collapse.js rename to src/collapse/Collapse.js diff --git a/src/collapse/panel.js b/src/collapse/Panel.js similarity index 100% rename from src/collapse/panel.js rename to src/collapse/Panel.js diff --git a/src/collapse/index.js b/src/collapse/index.js index da3ed07f..b2be0640 100644 --- a/src/collapse/index.js +++ b/src/collapse/index.js @@ -3,8 +3,8 @@ * @author chenkai13 */ -import Collapse from './collapse'; -import Panel from './panel'; +import Collapse from './Collapse'; +import Panel from './Panel'; import './style/index.less'; Collapse.Panel = Panel; diff --git a/src/date-picker/createPicker.js b/src/date-picker/CreatePicker.js similarity index 100% rename from src/date-picker/createPicker.js rename to src/date-picker/CreatePicker.js diff --git a/src/date-picker/rangePicker.js b/src/date-picker/RangePicker.js similarity index 100% rename from src/date-picker/rangePicker.js rename to src/date-picker/RangePicker.js diff --git a/src/date-picker/weekPicker.js b/src/date-picker/WeekPicker.js similarity index 100% rename from src/date-picker/weekPicker.js rename to src/date-picker/WeekPicker.js diff --git a/src/date-picker/index.js b/src/date-picker/index.js index ca1020e9..4d2b38da 100644 --- a/src/date-picker/index.js +++ b/src/date-picker/index.js @@ -4,12 +4,12 @@ */ import './style/index'; -import Calendar from '../calendar/src/calendar'; -import MonthCalendar from '../calendar/src/monthCalendar'; -import RangePicker from './rangePicker'; -import createPicker from './createPicker'; +import Calendar from '../calendar/src/Calendar'; +import MonthCalendar from '../calendar/src/MonthCalendar'; +import RangePicker from './RangePicker'; +import createPicker from './CreatePicker'; import wrapPicker from './wrapPicker'; -import WeekPicker from './weekPicker'; +import WeekPicker from './WeekPicker'; const DatePicker = wrapPicker(createPicker(Calendar), 'date'); diff --git a/src/dropdown/dropdown.js b/src/dropdown/Dropdown.js similarity index 100% rename from src/dropdown/dropdown.js rename to src/dropdown/Dropdown.js diff --git a/src/dropdown/dropdownButton.js b/src/dropdown/DropdownButton.js similarity index 98% rename from src/dropdown/dropdownButton.js rename to src/dropdown/DropdownButton.js index 0fbf189c..1ecc062b 100644 --- a/src/dropdown/dropdownButton.js +++ b/src/dropdown/DropdownButton.js @@ -3,7 +3,7 @@ * @author fuqiangqiang@baidu.com */ import san, {DataTypes} from 'san'; -import Dropdown from './dropdown'; +import Dropdown from './Dropdown'; import {classCreator} from '../core/util'; import Icon from '../icon'; import Button from '../button'; diff --git a/src/dropdown/index.js b/src/dropdown/index.js index 5cfc97a8..e941b537 100644 --- a/src/dropdown/index.js +++ b/src/dropdown/index.js @@ -2,8 +2,8 @@ * @file Santd dropdown index file */ -import Dropdown from './dropdown'; -import DropdownButton from './dropdownButton'; +import Dropdown from './Dropdown'; +import DropdownButton from './DropdownButton'; Dropdown.Button = DropdownButton; export default Dropdown; diff --git a/src/form/form.js b/src/form/Form.js similarity index 100% rename from src/form/form.js rename to src/form/Form.js diff --git a/src/form/formItem.js b/src/form/FormItem.js similarity index 100% rename from src/form/formItem.js rename to src/form/FormItem.js diff --git a/src/form/index.js b/src/form/index.js index 8d977351..ec916ca3 100644 --- a/src/form/index.js +++ b/src/form/index.js @@ -3,8 +3,8 @@ * @author fuqiangqiang */ -import Form from './form'; -import FormItem from './formItem'; +import Form from './Form'; +import FormItem from './FormItem'; Form.FormItem = FormItem; diff --git a/src/icon/icon.js b/src/icon/Icon.js similarity index 100% rename from src/icon/icon.js rename to src/icon/Icon.js diff --git a/src/icon/iconfont.js b/src/icon/Iconfont.js similarity index 100% rename from src/icon/iconfont.js rename to src/icon/Iconfont.js diff --git a/src/icon/index.js b/src/icon/index.js index 5ed716f4..433f1f97 100644 --- a/src/icon/index.js +++ b/src/icon/index.js @@ -6,8 +6,8 @@ import san, {DataTypes} from 'san'; import './style/index.less'; import * as allIcons from '@ant-design/icons-svg'; import {classCreator} from '../core/util'; -import sanicon from './icon'; -import iconFont from './iconfont'; +import sanicon from './Icon'; +import iconFont from './Iconfont'; import {svgBaseProps, withThemeSuffix, removeTypeTheme, alias} from './utils'; import {getTwoToneColor, setTwoToneColor} from './twoTonePrimaryColor'; diff --git a/src/icon/twoTonePrimaryColor.js b/src/icon/twoTonePrimaryColor.js index 35faac26..0a683f5b 100644 --- a/src/icon/twoTonePrimaryColor.js +++ b/src/icon/twoTonePrimaryColor.js @@ -3,7 +3,7 @@ * @author mayihui@baidu.com **/ -import icon from './icon'; +import icon from './Icon'; export function setTwoToneColor(primaryColor) { return icon.setTwoToneColors({ diff --git a/src/input-number/inputHandler.js b/src/input-number/InputHandler.js similarity index 100% rename from src/input-number/inputHandler.js rename to src/input-number/InputHandler.js diff --git a/src/input-number/index.js b/src/input-number/index.js index 0f45e2d7..90df5525 100644 --- a/src/input-number/index.js +++ b/src/input-number/index.js @@ -5,7 +5,7 @@ import san, {DataTypes} from 'san'; import {classCreator} from '../core/util'; -import inputHandle from './inputHandler'; +import inputHandle from './InputHandler'; import './style/index.less'; const prefixCls = classCreator('input-number')(); diff --git a/src/input/base.js b/src/input/Base.js similarity index 100% rename from src/input/base.js rename to src/input/Base.js diff --git a/src/input/group.js b/src/input/Group.js similarity index 100% rename from src/input/group.js rename to src/input/Group.js diff --git a/src/input/input.js b/src/input/Input.js similarity index 99% rename from src/input/input.js rename to src/input/Input.js index 3a229db5..82311d9b 100644 --- a/src/input/input.js +++ b/src/input/Input.js @@ -6,7 +6,7 @@ import san, {DataTypes} from 'san'; import {classCreator} from '../core/util'; import './style/index.less'; -import BaseInput from './base'; +import BaseInput from './Base'; import Icon from '../icon'; const prefixCls = classCreator('input')(); diff --git a/src/input/input-password.js b/src/input/InputPassword.js similarity index 97% rename from src/input/input-password.js rename to src/input/InputPassword.js index 15918fd4..ce2f35d9 100644 --- a/src/input/input-password.js +++ b/src/input/InputPassword.js @@ -5,7 +5,7 @@ import san, {DataTypes} from 'san'; import {classCreator} from '../core/util'; -import BaseInput from './base'; +import BaseInput from './Base'; import Icon from '../icon'; const prefixCls = classCreator('input')(); diff --git a/src/input/input-search.js b/src/input/InputSearch.js similarity index 98% rename from src/input/input-search.js rename to src/input/InputSearch.js index 79b0e504..8074a10b 100644 --- a/src/input/input-search.js +++ b/src/input/InputSearch.js @@ -7,7 +7,7 @@ import san, {DataTypes} from 'san'; import {classCreator} from '../core/util'; import Icon from '../icon'; import Button from '../button'; -import BaseInput from './base'; +import BaseInput from './Base'; import './style/index.less'; const prefixCls = classCreator('input')(); diff --git a/src/input/textarea.js b/src/input/Textarea.js similarity index 100% rename from src/input/textarea.js rename to src/input/Textarea.js diff --git a/src/input/index.js b/src/input/index.js index 5fc44f6e..4f1827e6 100644 --- a/src/input/index.js +++ b/src/input/index.js @@ -2,11 +2,11 @@ * @file input 入口文件 */ -import Input from './input'; -import Search from './input-search'; -import TextArea from './textarea'; -import Group from './group'; -import Password from './input-password'; +import Input from './Input'; +import Search from './InputSearch'; +import TextArea from './Textarea'; +import Group from './Group'; +import Password from './InputPassword'; Input.Search = Search; Input.TextArea = TextArea; diff --git a/src/layout/layout.js b/src/layout/Layout.js similarity index 100% rename from src/layout/layout.js rename to src/layout/Layout.js diff --git a/src/layout/sider.js b/src/layout/Sider.js similarity index 100% rename from src/layout/sider.js rename to src/layout/Sider.js diff --git a/src/layout/index.js b/src/layout/index.js index 7199b94f..76431638 100644 --- a/src/layout/index.js +++ b/src/layout/index.js @@ -2,8 +2,8 @@ * @file Layout 入口文件 */ -import Layout from './layout'; -import Sider from './sider'; +import Layout from './Layout'; +import Sider from './Sider'; Layout.Sider = Sider; diff --git a/src/list/item.js b/src/list/Item.js similarity index 100% rename from src/list/item.js rename to src/list/Item.js diff --git a/src/list/index.js b/src/list/index.js index 963b52ee..083cbac8 100644 --- a/src/list/index.js +++ b/src/list/index.js @@ -8,7 +8,7 @@ import {classCreator} from '../core/util'; import Spin from '../spin'; import Pagination from '../pagination'; import Grid from '../grid'; -import Item from './item'; +import Item from './Item'; import './style/index'; diff --git a/src/mention/mention.js b/src/mention/Mention.js similarity index 99% rename from src/mention/mention.js rename to src/mention/Mention.js index bb297eba..6bd4bfe0 100644 --- a/src/mention/mention.js +++ b/src/mention/Mention.js @@ -5,8 +5,8 @@ import './style/index.less'; import san, {DataTypes} from 'san'; -import PlaceHolder from './placeHolder'; -import Suggestions from './suggestions'; +import PlaceHolder from './PlaceHolder'; +import Suggestions from './Suggestions'; import {getRegExp, insertString, setCursorPosition, getSearchWordPos} from './utils/index'; import {classCreator} from '../core/util'; diff --git a/src/mention/nav.js b/src/mention/Nav.js similarity index 100% rename from src/mention/nav.js rename to src/mention/Nav.js diff --git a/src/mention/placeHolder.js b/src/mention/PlaceHolder.js similarity index 100% rename from src/mention/placeHolder.js rename to src/mention/PlaceHolder.js diff --git a/src/mention/suggestions.js b/src/mention/Suggestions.js similarity index 98% rename from src/mention/suggestions.js rename to src/mention/Suggestions.js index 09ee1c34..431f9a9d 100644 --- a/src/mention/suggestions.js +++ b/src/mention/Suggestions.js @@ -6,7 +6,7 @@ import './style/index.less'; import san, {DataTypes} from 'san'; import Icon from '../icon'; -import Nav from './nav'; +import Nav from './Nav'; import {classCreator} from '../core/util'; const prefixCls = classCreator('suggestions')(); diff --git a/src/mention/index.js b/src/mention/index.js index 772c06f7..796f649f 100644 --- a/src/mention/index.js +++ b/src/mention/index.js @@ -1,8 +1,8 @@ /** * @file Santd metion component file **/ -import Mention from './mention'; -import Nav from './nav'; +import Mention from './Mention'; +import Nav from './Nav'; Mention.Nav = Nav; export default Mention; diff --git a/src/menu/divider.js b/src/menu/Divider.js similarity index 100% rename from src/menu/divider.js rename to src/menu/Divider.js diff --git a/src/menu/menu.js b/src/menu/Menu.js similarity index 99% rename from src/menu/menu.js rename to src/menu/Menu.js index 3080ed66..2f71f602 100644 --- a/src/menu/menu.js +++ b/src/menu/Menu.js @@ -7,7 +7,7 @@ import san, {DataTypes} from 'san'; import {classCreator} from '../core/util'; import './style/index.less'; import {getOffset, on, off} from '../core/util/dom'; -import SubMenu from './subMenu'; +import SubMenu from './SubMenu'; import Icon from '../icon'; import {MENU_FOLDED_ITEM_ID} from '../core/constants'; import throttle from 'lodash/throttle'; diff --git a/src/menu/menuItem.js b/src/menu/MenuItem.js similarity index 100% rename from src/menu/menuItem.js rename to src/menu/MenuItem.js diff --git a/src/menu/menuItemGroup.js b/src/menu/MenuItemGroup.js similarity index 100% rename from src/menu/menuItemGroup.js rename to src/menu/MenuItemGroup.js diff --git a/src/menu/subMenu.js b/src/menu/SubMenu.js similarity index 100% rename from src/menu/subMenu.js rename to src/menu/SubMenu.js diff --git a/src/menu/index.js b/src/menu/index.js index b92c69ee..82f07eba 100644 --- a/src/menu/index.js +++ b/src/menu/index.js @@ -2,11 +2,11 @@ * @file menu入口文件 * @author fuqiangqiang@baidu.com */ -import Menu from './menu'; -import MenuSub from './subMenu'; -import MenuItem from './menuItem'; -import MenuItemGroup from './menuItemGroup'; -import MenuDivider from './divider'; +import Menu from './Menu'; +import MenuSub from './SubMenu'; +import MenuItem from './MenuItem'; +import MenuItemGroup from './MenuItemGroup'; +import MenuDivider from './Divider'; Menu.Sub = MenuSub; Menu.Item = MenuItem; diff --git a/src/pagination/options.js b/src/pagination/Options.js similarity index 100% rename from src/pagination/options.js rename to src/pagination/Options.js diff --git a/src/pagination/pager.js b/src/pagination/Pager.js similarity index 100% rename from src/pagination/pager.js rename to src/pagination/Pager.js diff --git a/src/pagination/pagination.js b/src/pagination/Pagination.js similarity index 99% rename from src/pagination/pagination.js rename to src/pagination/Pagination.js index f912171f..5dcb594d 100644 --- a/src/pagination/pagination.js +++ b/src/pagination/Pagination.js @@ -5,8 +5,8 @@ import san, {DataTypes} from 'san'; import Input from '../input'; import KEYCODE from '../core/util/keyCode'; -import Pager from './pager'; -import Options from './options'; +import Pager from './Pager'; +import Options from './Options'; const prevTemplate = `
  • */ -import Radio from './radio'; -import Group from './group'; -import Button from './radioButton'; +import Radio from './Radio'; +import Group from './Group'; +import Button from './RadioButton'; Radio.Group = Group; Radio.Button = Button; diff --git a/src/rate/star.js b/src/rate/Star.js similarity index 100% rename from src/rate/star.js rename to src/rate/Star.js diff --git a/src/rate/index.js b/src/rate/index.js index 05825311..520022cd 100644 --- a/src/rate/index.js +++ b/src/rate/index.js @@ -10,7 +10,7 @@ import {classCreator} from '../core/util'; import {getOffset} from '../core/util/dom'; import icon from '../icon'; import tooltip from '../tooltip'; -import star from './star'; +import star from './Star'; const prefixCls = classCreator('rate')(); diff --git a/src/result/noFound.js b/src/result/NoFound.js similarity index 100% rename from src/result/noFound.js rename to src/result/NoFound.js diff --git a/src/result/serverError.js b/src/result/ServerError.js similarity index 100% rename from src/result/serverError.js rename to src/result/ServerError.js diff --git a/src/result/unauthorized.js b/src/result/Unauthorized.js similarity index 100% rename from src/result/unauthorized.js rename to src/result/Unauthorized.js diff --git a/src/result/index.js b/src/result/index.js index b8b4756e..3d53dead 100644 --- a/src/result/index.js +++ b/src/result/index.js @@ -7,9 +7,9 @@ import './style/index.less'; import san, {DataTypes} from 'san'; import Icon from '../icon'; import {classCreator} from '../core/util'; -import noFound from './noFound'; -import serverError from './serverError'; -import unauthorized from './unauthorized'; +import noFound from './NoFound'; +import serverError from './ServerError'; +import unauthorized from './Unauthorized'; const prefixCls = classCreator('result')(); export const IconMap = { diff --git a/src/statistic/statistic.js b/src/statistic/Statistic.js similarity index 100% rename from src/statistic/statistic.js rename to src/statistic/Statistic.js diff --git a/src/statistic/countdown.js b/src/statistic/countdown.js index 7ad9a8e9..8910199a 100644 --- a/src/statistic/countdown.js +++ b/src/statistic/countdown.js @@ -5,7 +5,7 @@ import './style/index.less'; import san from 'san'; -import Statistic from './statistic'; +import Statistic from './Statistic'; import moment from 'moment'; const timeUnits = [ diff --git a/src/statistic/index.js b/src/statistic/index.js index 9c08e840..5d4d67bb 100644 --- a/src/statistic/index.js +++ b/src/statistic/index.js @@ -3,7 +3,7 @@ * @author chenkai13 */ -import Statistic from './statistic'; +import Statistic from './Statistic'; import Countdown from './countdown'; Statistic.Countdown = Countdown; diff --git a/src/steps/step.js b/src/steps/Step.js similarity index 100% rename from src/steps/step.js rename to src/steps/Step.js diff --git a/src/steps/steps.js b/src/steps/Steps.js similarity index 100% rename from src/steps/steps.js rename to src/steps/Steps.js diff --git a/src/steps/index.js b/src/steps/index.js index 21806417..9c18c616 100644 --- a/src/steps/index.js +++ b/src/steps/index.js @@ -3,8 +3,8 @@ * @author fuqiangqiang@baidu.com */ -import Steps from './steps'; -import Step from './step'; +import Steps from './Steps'; +import Step from './Step'; Steps.Step = Step; diff --git a/src/table/table.js b/src/table/Table.js similarity index 99% rename from src/table/table.js rename to src/table/Table.js index 755f0f0b..ed77c6a1 100644 --- a/src/table/table.js +++ b/src/table/Table.js @@ -15,8 +15,8 @@ import Menu from '../menu'; import Radio from '../radio'; import Checkbox from '../checkbox'; import Button from '../button'; -import Tbody from './tbody'; -import Thead from './thead'; +import Tbody from './Tbody'; +import Thead from './Thead'; import Tooltip from '../tooltip'; import './style/index'; diff --git a/src/table/tbody.js b/src/table/Tbody.js similarity index 97% rename from src/table/tbody.js rename to src/table/Tbody.js index 436feccd..33d3a0f0 100644 --- a/src/table/tbody.js +++ b/src/table/Tbody.js @@ -4,7 +4,7 @@ **/ import {classCreator} from '../core/util'; -import Td from './td'; +import Td from './Td'; const prefixCls = classCreator('table')(); export default { diff --git a/src/table/td.js b/src/table/Td.js similarity index 100% rename from src/table/td.js rename to src/table/Td.js diff --git a/src/table/th.js b/src/table/Th.js similarity index 100% rename from src/table/th.js rename to src/table/Th.js diff --git a/src/table/thead.js b/src/table/Thead.js similarity index 99% rename from src/table/thead.js rename to src/table/Thead.js index 31eb7cfc..960f3176 100644 --- a/src/table/thead.js +++ b/src/table/Thead.js @@ -4,7 +4,7 @@ **/ import {classCreator} from '../core/util'; -import Th from './th'; +import Th from './Th'; const prefixCls = classCreator('table')(); const dropdownPrefixCls = classCreator('dropdown')(); diff --git a/src/table/index.js b/src/table/index.js index cc61d22f..5a3bf591 100644 --- a/src/table/index.js +++ b/src/table/index.js @@ -3,6 +3,6 @@ * @author fuqiangqiang */ -import Table from './table'; +import Table from './Table'; export default Table; diff --git a/src/tabs/scrollableInkTabBar.js b/src/tabs/ScrollableInkTabBar.js similarity index 98% rename from src/tabs/scrollableInkTabBar.js rename to src/tabs/ScrollableInkTabBar.js index 8d6b52b1..dbcaa7fe 100644 --- a/src/tabs/scrollableInkTabBar.js +++ b/src/tabs/ScrollableInkTabBar.js @@ -5,8 +5,8 @@ import san from 'san'; import Icon from '../icon'; -import ScrollableTabBarNode from './scrollableTabBarNode'; -import TabBarTabsNode from './tabBarTabsNode'; +import ScrollableTabBarNode from './ScrollableTabBarNode'; +import TabBarTabsNode from './TabBarTabsNode'; import { isTransform3dSupported, getLeft, diff --git a/src/tabs/scrollableTabBarNode.js b/src/tabs/ScrollableTabBarNode.js similarity index 100% rename from src/tabs/scrollableTabBarNode.js rename to src/tabs/ScrollableTabBarNode.js diff --git a/src/tabs/tabBarTabsNode.js b/src/tabs/TabBarTabsNode.js similarity index 100% rename from src/tabs/tabBarTabsNode.js rename to src/tabs/TabBarTabsNode.js diff --git a/src/tabs/tabPane.js b/src/tabs/TabPane.js similarity index 100% rename from src/tabs/tabPane.js rename to src/tabs/TabPane.js diff --git a/src/tabs/index.js b/src/tabs/index.js index 9e17b00d..9b34b92c 100644 --- a/src/tabs/index.js +++ b/src/tabs/index.js @@ -4,10 +4,10 @@ **/ import san, {DataTypes} from 'san'; -import TabPane from './tabPane'; +import TabPane from './TabPane'; import KeyCode from '../core/util/keyCode'; import {classCreator} from '../core/util'; -import ScrollableInkTabBar from './scrollableInkTabBar'; +import ScrollableInkTabBar from './ScrollableInkTabBar'; import './style/index'; diff --git a/src/tag/checkableTag.js b/src/tag/CheckableTag.js similarity index 100% rename from src/tag/checkableTag.js rename to src/tag/CheckableTag.js diff --git a/src/tag/index.js b/src/tag/index.js index 804af8ab..27e63c65 100644 --- a/src/tag/index.js +++ b/src/tag/index.js @@ -4,7 +4,7 @@ */ import san, {DataTypes} from 'san'; -import CheckableTag from './checkableTag'; +import CheckableTag from './CheckableTag'; import {classCreator} from '../core/util'; import Wave from '../core/util/wave'; import Icon from '../icon'; diff --git a/src/timeline/item.js b/src/timeline/Item.js similarity index 100% rename from src/timeline/item.js rename to src/timeline/Item.js diff --git a/src/timeline/timeline.js b/src/timeline/Timeline.js similarity index 99% rename from src/timeline/timeline.js rename to src/timeline/Timeline.js index 013d8bc4..730eea44 100644 --- a/src/timeline/timeline.js +++ b/src/timeline/Timeline.js @@ -6,7 +6,7 @@ import './style/index.less'; import san, {DataTypes} from 'san'; import {classCreator} from '../core/util'; -import Item from './item'; +import Item from './Item'; import Icon from '../icon'; const prefixCls = classCreator('timeline')(); diff --git a/src/timeline/index.js b/src/timeline/index.js index 865e51cf..c5b177d9 100644 --- a/src/timeline/index.js +++ b/src/timeline/index.js @@ -3,8 +3,8 @@ * @author chenkai13 */ -import Timeline from './timeline'; -import Item from './item'; +import Timeline from './Timeline'; +import Item from './Item'; Timeline.Item = Item; diff --git a/src/timepicker/combobox.js b/src/timepicker/Combobox.js similarity index 99% rename from src/timepicker/combobox.js rename to src/timepicker/Combobox.js index 67f869a4..35d146f6 100644 --- a/src/timepicker/combobox.js +++ b/src/timepicker/Combobox.js @@ -4,7 +4,7 @@ **/ import san, {DataTypes} from 'san'; -import Select from './select'; +import Select from './Select'; const formatOption = (option, disabledOptions) => { let value = `${option}`; diff --git a/src/timepicker/header.js b/src/timepicker/Header.js similarity index 100% rename from src/timepicker/header.js rename to src/timepicker/Header.js diff --git a/src/timepicker/panel.js b/src/timepicker/Panel.js similarity index 98% rename from src/timepicker/panel.js rename to src/timepicker/Panel.js index 713f9321..232de86d 100644 --- a/src/timepicker/panel.js +++ b/src/timepicker/Panel.js @@ -5,8 +5,8 @@ import san from 'san'; import moment from 'moment'; -import Header from './header'; -import ComboBox from './combobox'; +import Header from './Header'; +import ComboBox from './Combobox'; function generateOptions(length, disabledOptions, hideDisabledOptions, step = 1) { const arr = []; diff --git a/src/timepicker/select.js b/src/timepicker/Select.js similarity index 100% rename from src/timepicker/select.js rename to src/timepicker/Select.js diff --git a/src/timepicker/index.js b/src/timepicker/index.js index 45b234e3..6e56958a 100644 --- a/src/timepicker/index.js +++ b/src/timepicker/index.js @@ -9,7 +9,7 @@ import {classCreator} from '../core/util'; import Trigger from '../core/trigger'; import Placement from './placements'; import moment from 'moment'; -import Panel from './panel'; +import Panel from './Panel'; import Icon from '../icon'; import localeReceiver from '../localeprovider/receiver'; diff --git a/src/transfer/list.js b/src/transfer/List.js similarity index 99% rename from src/transfer/list.js rename to src/transfer/List.js index 1c655aab..788b1b90 100644 --- a/src/transfer/list.js +++ b/src/transfer/List.js @@ -5,7 +5,7 @@ import san, {DataTypes} from 'san'; import {classCreator} from '../core/util'; import Checkbox from '../checkbox'; -import defaultRenderList from './renderListBody'; +import defaultRenderList from './RenderListBody'; import Search from './search'; const prefixCls = classCreator('transfer')('list'); diff --git a/src/transfer/operation.js b/src/transfer/Operation.js similarity index 100% rename from src/transfer/operation.js rename to src/transfer/Operation.js diff --git a/src/transfer/renderListBody.js b/src/transfer/RenderListBody.js similarity index 100% rename from src/transfer/renderListBody.js rename to src/transfer/RenderListBody.js diff --git a/src/transfer/search.js b/src/transfer/Search.js similarity index 100% rename from src/transfer/search.js rename to src/transfer/Search.js diff --git a/src/transfer/index.js b/src/transfer/index.js index eaa3045e..684d11a7 100644 --- a/src/transfer/index.js +++ b/src/transfer/index.js @@ -6,8 +6,8 @@ import './style/index.less'; import san from 'san'; import {classCreator} from '../core/util'; import Empty from '../empty'; -import List from './list'; -import Operation from './operation'; +import List from './List'; +import Operation from './Operation'; import localeReceiver from '../localeprovider/receiver'; const prefixCls = classCreator('transfer')(); diff --git a/src/tree-select/input.js b/src/tree-select/Input.js similarity index 100% rename from src/tree-select/input.js rename to src/tree-select/Input.js diff --git a/src/tree-select/multiple-selector.js b/src/tree-select/MultipleSelector.js similarity index 100% rename from src/tree-select/multiple-selector.js rename to src/tree-select/MultipleSelector.js diff --git a/src/tree-select/selector.js b/src/tree-select/Selector.js similarity index 97% rename from src/tree-select/selector.js rename to src/tree-select/Selector.js index 87867663..6aa3d904 100644 --- a/src/tree-select/selector.js +++ b/src/tree-select/Selector.js @@ -6,8 +6,8 @@ import {Component, DataTypes} from 'san'; import {classCreator} from '../core/util'; import Input from './Input'; -import SingleSelector from './single-selector'; -import MultipleSelector from './multiple-selector'; +import SingleSelector from './SingleSelector'; +import MultipleSelector from './MultipleSelector'; const prefixCls = classCreator('select')(); export default class Selector extends Component { diff --git a/src/tree-select/single-selector.js b/src/tree-select/SingleSelector.js similarity index 100% rename from src/tree-select/single-selector.js rename to src/tree-select/SingleSelector.js diff --git a/src/tree-select/tree-select.js b/src/tree-select/TreeSelect.js similarity index 99% rename from src/tree-select/tree-select.js rename to src/tree-select/TreeSelect.js index 1a57bcae..2e60828f 100644 --- a/src/tree-select/tree-select.js +++ b/src/tree-select/TreeSelect.js @@ -7,7 +7,7 @@ import san, {DataTypes} from 'san'; import {classCreator} from '../core/util'; import Icon from '../icon'; import Tree from '../tree'; -import Selector from './selector'; +import Selector from './Selector'; import Dropdown from '../dropdown'; import Empty from '../empty'; import './style/index'; diff --git a/src/tree-select/index.js b/src/tree-select/index.js index e4408aaf..f92f83d1 100644 --- a/src/tree-select/index.js +++ b/src/tree-select/index.js @@ -4,8 +4,8 @@ */ import {SHOW_ALL, SHOW_PARENT, SHOW_CHILD} from './treeStrategies'; -import TreeSelect from './tree-select'; -import TreeNode from '../tree/treeNode'; +import TreeSelect from './TreeSelect'; +import TreeNode from '../tree/TreeNode'; TreeSelect.TreeNode = TreeNode; TreeSelect.SHOW_ALL = SHOW_ALL; diff --git a/src/tree/directoryTree.js b/src/tree/DirectoryTree.js similarity index 99% rename from src/tree/directoryTree.js rename to src/tree/DirectoryTree.js index 48e9075f..b9af8526 100644 --- a/src/tree/directoryTree.js +++ b/src/tree/DirectoryTree.js @@ -4,7 +4,7 @@ */ import san, {DataTypes} from 'san'; -import Tree, {traverseNodesKey} from './tree'; +import Tree, {traverseNodesKey} from './Tree'; import Icon from '../icon'; import './style/index'; diff --git a/src/tree/tree.js b/src/tree/Tree.js similarity index 99% rename from src/tree/tree.js rename to src/tree/Tree.js index 19dc3bd6..122f5b27 100644 --- a/src/tree/tree.js +++ b/src/tree/Tree.js @@ -8,7 +8,7 @@ import without from 'lodash/without'; import isPlainObject from 'lodash/isPlainObject'; import {classCreator} from '../core/util'; import './style/index'; -import treeNode from './treeNode'; +import treeNode from './TreeNode'; import {LINE_UNIT_OFFEST_V} from './commonConst'; const prefixCls = classCreator('tree')(); diff --git a/src/tree/treeNode.js b/src/tree/TreeNode.js similarity index 100% rename from src/tree/treeNode.js rename to src/tree/TreeNode.js diff --git a/src/tree/index.js b/src/tree/index.js index 336b25fa..a19b9656 100644 --- a/src/tree/index.js +++ b/src/tree/index.js @@ -2,9 +2,9 @@ * @file menu入口文件 * @author fuqiangqiang@baidu.com */ -import Tree from './tree'; -import TreeNode from './treeNode'; -import Directory from './directoryTree'; +import Tree from './Tree'; +import TreeNode from './TreeNode'; +import Directory from './DirectoryTree'; Tree.TreeNode = TreeNode; Tree.Directory = Directory; diff --git a/src/typography/base.js b/src/typography/Base.js similarity index 100% rename from src/typography/base.js rename to src/typography/Base.js diff --git a/src/typography/title.js b/src/typography/Title.js similarity index 97% rename from src/typography/title.js rename to src/typography/Title.js index 9335999b..d8e7330c 100644 --- a/src/typography/title.js +++ b/src/typography/Title.js @@ -6,7 +6,7 @@ import './style/index.less'; import san from 'san'; import {classCreator} from '../core/util'; -import base from './base'; +import base from './Base'; const prefixCls = classCreator('typography')(); diff --git a/src/typography/index.js b/src/typography/index.js index 89f4f67c..035ac528 100644 --- a/src/typography/index.js +++ b/src/typography/index.js @@ -4,8 +4,8 @@ */ import san from 'san'; -import Base from './base'; -import Title from './title'; +import Base from './Base'; +import Title from './Title'; import {classCreator} from '../core/util'; const prefixCls = classCreator('typography')(); diff --git a/src/upload/dragger.js b/src/upload/Dragger.js similarity index 100% rename from src/upload/dragger.js rename to src/upload/Dragger.js diff --git a/src/upload/upload.js b/src/upload/Upload.js similarity index 100% rename from src/upload/upload.js rename to src/upload/Upload.js diff --git a/src/upload/uploadlist.js b/src/upload/UploadList.js similarity index 100% rename from src/upload/uploadlist.js rename to src/upload/UploadList.js diff --git a/src/upload/index.js b/src/upload/index.js index 2e7b450f..fe8f2d8f 100644 --- a/src/upload/index.js +++ b/src/upload/index.js @@ -4,8 +4,8 @@ */ -import Upload from './upload'; -import Dragger from './dragger'; +import Upload from './Upload'; +import Dragger from './Dragger'; import './style/index'; Upload.Dragger = Dragger;