diff --git a/.travis.yml b/.travis.yml index bb0371783..7068abe66 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,9 @@ sudo: false language: node_js node_js: stable before_install: +- export CHROME_BIN=chromium-browser +- export DISPLAY=:99.0 +- sh -e /etc/init.d/xvfb start - export TRAVIS_COMMIT_MSG="[deploy] $(git log --format='%h - %B' --no-merges -n 1)" - export TRAVIS_COMMIT_USER="$(git log --no-merges -n 1 --format=%an)" - export TRAVIS_COMMIT_EMAIL="$(git log --no-merges -n 1 --format=%ae)" diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 148532443..ba08690f2 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -1,682 +1,256 @@ ## Changelog -### 1.4.8 +### 2.0.0-rc.1 -*2017-10-24* +*2017-10-25* -- Fixed SubMenu retracting when moving the mouse rapidly on the SubMenu of collapsed Menu, #7579 -- Fixed hidden last shortcut of DateTimePicker when the shortcut menu is long, #7567 (by @DuLinRain) -- Added `show-timeout` and `hide-timeout` attributes for Dropdown, #7621 (by @phongkt-dev) +#### New features +- Form + - Added `clearValidate` method for clearing validating results for all form items, #7623 +- MessageBox + - Added `inputType` attribute to assign type for the inner input box, #7651 +- Table + - Added `size` attribute + - Added `toggleRowExpansion` method to expand or collapse expandable rows programmatically + - Added `cell-class-name` attribute to assign class name for cells + - Added `cell-style` attribute to style cells + - Added `header-row-class-name` attribute to assign class name for header rows + - Added `header-row-style` attribute to style header rows + - Added `header-cell-class-name` attribute to assign class name for header cells + - Added `header-cell-style` attribute to style header cells + - TableColumn's `prop` attribute now accepts `object[key]` notations + - Added `index` attribute for TableColumn to customize row indices -### 1.4.7 +#### Fixes +- Table + - Fixed a dynamic `max-height` bug + - Fixed some style calculation errors + +#### Breaking changes +- Autocomplete + - Removed `props` attribute. Now you can use `value-key` attribute to designate key name of the input suggestion +object for display +- Table + - `append` slot is moved outside the `tbody` element to avoid multiple rendering + - `expand` event is renamed to `expand-change` + - The params of `row-class-name` and `row-style` method is now an object + +### 2.0.0-beta.1 + +*2017-10-20* + +#### New features +- General + - Added TypeScript typings + - All existing icons are redesigned. Some new icons are added. + - To help you migrate from Element 1.x, we added some console warnings against deprecated APIs. When you use a removed or renamed attribute or event in your project, you'll get a warning like this: + ``` + [Element Migrating][ElSwitch][Attribute]: on-color is renamed to active-color. + ``` + - Added a series of breakpoint-based utility classes that hide elements when the viewport size meets certain conditions +- Layout + - Added a new breakpoint `xl` for viewport wider than 1920px +- Table + - Added `span-method` attribute for merging cells + - Added `clearSort` method to clear sorting programmatically + - Added `clearFilter` method to clear filter programmatically + - For expandable rows, when a row is expanded, a `.expanded` class will be added to its class list, so that you can customize its styles +- DatePicker + - Added `unlink-panels` attribute to unlink the two date panels when selecting a date range +- Select + - Added `reserve-keyword` attribute for reserving current search keyword after selecting an option + +#### Fixes +- Table + - Now `header-align` of TableColumn works properly + - Fixed a bug that Table remains hiding when its parent element appears from `display: none` + - Fixed Table expanding its width when its parent element has `display: flex` + - Fixed a bug that fixed columns of a Table with `append` slot would disappear when data is dynamically fetched + - Fixed `expand-row-keys` attribute not working with initial value + - Fixed filter failing when `data` updates + - Fixed a calculation error of fixed columns layout with grouped headers + +#### Breaking changes +- Switch + - Attributes starting with `on-*` will be parsed to events in JSX, making all `on-*` attributes of Switch not +able to work in JSX. So `on-*` attributes are renamed to `active-*`, and accordingly `off-*` attributes are renamed to `inactive-*`. This change affects the following attributes: `on-icon-class`, `off-icon-class`, `on-text`, `off-text`, `on-color`, `off-color`, `on-value`, `off-value` +- Table + - `sort-method` now aligns with `Array.sort`. It should return a number instead of a boolean + +### 2.0.0-alpha.3 *2017-10-16* -- Fixed compatibility of Autocomplete and Vue 2.5.x, #6942 (by @rennai) -- Added `allow-focus` attribute for Switch, #7494 (by @breadadams) +#### New features +- General +- Configure component sizes globally. Now when you import Element, you can add a global config object with a `size` prop to configure default sizes for all components. For fully import: +```JS +import Vue from 'vue' +import Element from 'element-ui' +Vue.use(Element, { size: 'small' }) +``` +For partial import: +```JS +import Vue from 'vue' +import { Button } from 'element-ui' -### 1.4.6 - -*2017-09-27* - -- Fixed Slider's button jumping to previous position when clicked, #7190 -- Fixed Tooltip `disabled` regression, #7198 -- Fixed Cascader not correctly filter options when `props` is set, #7225 -- Fixed an error when range typed DatePicker has an initial value of `[]`, #7233 - -### 1.4.5 - -*2017-09-24* - -- Rate's `colors` attribute now supports dynamic updates, #6872 @lukaszb -- Fixed Tree not highlighting tree node whose value of `node-key` is 0, #6917 -- Fixed initially disabled Dropdown not showing menu when it's enabled, #6969 -- Added `hide-after` attribute for Tooltip, #6401 @ryatziv -- Fixed cancel button of TimePicker not cancel picked value when clicked, #7028 -- Added `selectWhenUnmatched` attribute for Autocomplete, #6428 @ryatziv -- Fixed when `beforeUpload` of a file returns false, other files are aborted by Upload, #7077 -- Fixed disabled dates of DatePicker in month view and year view not displayed correctly in the west hemisphere, #7114 -- `default-value` of DatePicker now supports daterange type, #7073 @wacky6 - -### 1.4.4 - -*2017-09-05* - -- Fixed all months disabled in DatePicker month view when `disabledDate` is set, #6768 @qingdengyue -- Added `debounce` attribute for Slider, #6820 @langgo -- Fixed value of Pagination jumper can be bigger than the total page count, #6842 @huguangju -- Fixed TimePicker's focus slipping away when selecting hour to 23 with mouse scroll, #6719 @qingdengyue - -### 1.4.3 - -*2017-08-25* - -- Fixed style bug when Progress's `percentage` is `0`, #6551 @Kingwl -- Fixed Carousel items flashing when switching, #6394 -- Fixed disabled Button not prevent event propagation when clicked on its text area, #6421 -- Fixed disabled dates calculation in DatePicker's month view, #6363 -- Fixed key enter event being stopped propagation in Autocomplete, #6499 @leezng -- Fixed `amPm` not supported in DatePicker i18n, #6574 -- Fixed clicking or dragging error of Slider when it switches from invisible to visible, #6593 -- Fixed Alert using small icons when its `description` is passed via default slot, #6612 @leezng - -### 1.4.2 - -*2017-08-09* - -- Fixed Select marking option of `value` equal to `0` as selected when the initial value is null and bound to an object-typed value, #6143 -- Fixed Step style issue when `status` is `error`, #6155 @wacky6 -- Fixed Cascader selecting parent item when moving mouse quickly after clicking a leaf item, #6199 -- Fixed Menu not hiding submenus when collapsed, #6200 -- Fixed status of the inner native input of Switch not syncing with the component, #6205 @wacky6 -- Fixed wrong button positioning of Slider after window is resized, #6263 -- Fixed Autocomplete not hiding dropdown menu on blur, #6256 -- Fixed hitting enter on jumper of Pagination not trigger page change event in IE, #6306 @qingdengyue -- Fixed InputNumber style issue when its `size` is `large` or `small`, #6310 @JeremyWuuuuu -- Fixed i18n failure for some texts in DatePicker, #6328 -- Fixed Slider value changing to minimum when its button is clicked, #6359 - -### 1.4.1 - -*2017-07-28* - -- Fixed child nodes expanding when checking parent node in Tree, #6029 -- Fixed checking behavior error of Tree, #6034 -- Fixed FormItem not inheriting `label-width` as a Form's direct child, #6044 -- Fixed Menu incorrectly showing SubMenu in collapse mode, #6111 -- Fixed render order error of `v-if` controlled dynamic TabPanes, #6066 -- Fixed Popover still popping up after mouse leaves within `open-delay`, #6058 (by @laobubu) -- Fixed delete buttons still rendered in file list of disabled Upload, #6091 -- Fixed background color error on hover of striped Table, #6024 (by @xtongs) - -### 1.4.0 Boron - -*2017-07-21* - -#### New features: -- Message - - `message` attribute now supports VNode, #5463 (by @egyptik) -- ColorPicker - - Added `active-change` event, #5775 -- Popover - - Added `open-delay` attribute, #5842 (by @kaungmyatlwin) -- Table - - A third parameter `value` is passed to `formatter`, #5709 (by @haledeng) -- Tree - - Added `disabled` attribute, #5937 -- Menu - - Added `collapse` attribute, #5941 -- Select - - Added `value-key` attribute, #5897 - -#### Fixes: -- DatePicker - - i18n failure for some texts, #5485 - - returning a non-zero millisecond value when initial value is empty, #5663 - - `disabledDate` affecting undesired date, #4946 (by @liyangworld) -- Steps - - style problems when a step is dynamically added or removed, #5456 (by @elfman) -- Table - - highlight row misplaced when an expandable Table has fixed table columns, #5471 (by @elfman) - - `classList` not supported in some browsers, #5613 (by @flynntsc) -- Select - - single Select unable to scroll to the selected item when the dropdown menu pops up, #5564(by @wacky6) -- Radio - - border radius lost in RadioGroups with only one Radio, #5646 (by @YYvanYang) -- Upload - - unable to reselect previously deleted file when `auto-upload` is false, #5706 - - delete button still visible and functioning when `disabled`, #5841 - - compatibility issue with Vue 2.4 `key`, #5872 -- MessageBox - - clicking cancel buttons getting resolved when not invoked as a `confirm` or `prompt`, #5658 -- Rate - - active icons not reflecting decimal part of initial value, #5785 -- Pagination - - compatibility issue of total page display with vue-i18n@6.x, #5796 (by @mario56) - - apostrophe incorrectly showing up when current page is one page less than total page, #5861 (by @openks) +Vue.prototype.$ELEMENT = { size: 'small' } +Vue.use(Button) +``` +With the above config, the default size of all components that have `size` attribute will be 'small'. - Loading - - style problems when bound to invisible elements, #5649 (by @xiongzixiao) -- Cascader - - text in the input box not vertically aligned, #5819 (by @jianzhi92) -- Tree - - `setCheckedKeys` and `setCheckedNodes` in lazy mode, #5937 - - loading all descendent nodes when a parent node is checked in lazy mode, #5963 -- Form - - label named slot not working when `label` is not assigned on FormItem, #5921 -- Tooltip - - not working in Vue 2.4.x when the triggering element is a custom component, #5916 - -#### Breaking changes: -- Select - - when value is an object, `value-key` is required as its unique identity key, #5897 - -### 1.3.7 - -*2017-06-18* - -- Fixed Table with async data not showing summary row, #5318 -- Fixed Pagination's jumper value not sync with current page, #5377 -- Fixed DatePicker's shortcut panel overflow issue, #5297 (by @alashow) -- Fixed clicking Switch not responding when some text on the page is selected, #5411 -- The red wildcard indicating required field of Form is now responsive, #5403 -- Fixed initial-index of Carousel not working, #5334 -- Fixed Popover enable to be focused when nested in a Dialog, #5336 - -### 1.3.6 - -*2017-06-09* - -- Fixed inconsistency of ColorPicker's default value and panel value, #5183 (by @Kingwl) -- Fixed ColorPicker not able to change hue in the panel when its default value is white, #5184 (by @Kingwl) -- Fixed Select's dropdown taking multiple clicks to expand when nested in a Dialog after scrolling, #5226 -- Added `props` property for Autocomplete, #5282 -- Fixed dropdown of DatePicker not hiding when Tab key is pressed after manual input, #5149 (by @ChuckFields) - -### 1.3.5 - -*2017-06-03* - -- Fixed `default-first-option` of Select not working in remote filtering, #5084 -- Fixed InputNumber not aligning with other form components, #5127 -- Fixed inline FormItem having no effect on mixed Input, #5151 -- Fixed height of FormItem being different in Firefox from other browsers, #5152 -- Fixed items with a `value` of 0 in Cascader can not be expanded, #5172 (by @Kingwl) -- Fixed Autocomplete not triggering native `keydown` and `keyup` events, #5129 -- Added `clear` event for Select, #5112 -- Fixed Cascader's dropdown menu not updating its position in some situations, #5064 -- Better accessibility for Dialog and MessageBox, #4786 - -### 1.3.4 - -*2017-05-23* - -- Fixed highlight and stripe effects of Table with expandable rows, #4871 (by @mu-yu) -- Added `default-first-option` for Select, #4838 (by @wacky6) -- Fixed Select with no options not displaying "No data" text when `allow-create` is true, #4977 - -### 1.3.3 - -*2017-05-14* - -- Added `visible-change` event for Dropdown, #4818 (by @luciy) -- Added `tag` attribute for Col and Row, #4799 -- Fixed Cascader search functionality regression, #4812 -- Fixed DatePicker triggering watch when `type` is range, #4837 (by @wacky6) -- Fixed numbers in TimePicker not align vertically, #4847 (by @pengchongfu) -- Fixed Dialog not triggering `before-close` hook when ESC is pressed, #4819 (by @patriciussanctus) -- Fixed multiple MessageBox not rendering content correctly when some of the `message` is a VNode -- Fixed Checkbox not focused when navigating with tab - -### 1.3.2 - -*2017-05-10* - -- Fixed undefined custom component `el-collapse-transition` error when importing some components on demand, #4728 -- Fixed vertical alignment issue of Pagination in FireFox, #4756 -- Fixed dropdown panel view not updating after binding value of DatePicker is programmatically changed when `type` is week, #4739 -- Fixed height calculation errors of Table with summary rows, #4736 -- Added `before-filter` attribute for Cascader, #4774 -- Added `debounce` attribute for InputNumber, #4712(by @pengchongfu) - -### 1.3.1 - -*2017-05-06* - -- Fixed Autocomplete clearing input box when typing Chinese, #4718 -- Fixed async Table's summary row not scroll with Table, #4717 -- Fixed Dialog not closing correctly after pressing ESC when `close-on-press-esc` is true, #4706 -- Fixed wrong parameter in `change` event of Switch when `on-value` and `off-value` are assigned, #4675 - -### 1.3.0 Beryllium - -*2017-05-05* - -#### New features: -- New component: Transfer -- Now you can use our pre-defined transitions -- Vertical mode for Slider, can be activated by the `vertical` attribute, #4410 (by @devange) -- Button style for CheckboxGroup, #3697 (by @mdartic) -- Table - - Added `setCurrentRow` method, #4390 - - Added summary row, with three attributes: `show-summary`, `sum-text` and `summary-method`, #4484 - - Added `filter-placement` attribute for TableColumn, #4491 -- Dialog - - Added a `before-close` hook, #4432 - - Added `visible` attribute, which supports the `.sync` modifier, #4539 +- Now you can customize spinner icon and background color with `spinner` and `background` prop, #7390 +- Autocomplete +- Added `debounce` attribute, #7413 - Upload - - Added `disabled` attribute, #4473 - - `on-change` now also triggers when a file is added, #4447 - - Added `abort` method -- Switch now supports `on-value` and `off-value`, so that you can customize its values, #4403 +- Added `limit` and `on-exceed` attributes to limit the amount of files, #7405 +- Menu +- Added `open` and `close` methods to open and close SubMenu programmatically, #7412 - DatePicker - - Added `default-value` attribute for initially displayed date in the dropdown, #4222 (by @wacky6) - - `type` now supports dynamic updates, #4417 (by @coffeedeveloper) - - Added `label` attribute for CarouselItem, #4317 (by @paul-blundell) -- `message` of MessageBox now supports VNode, #4550 -- `current-page` of Pagination `current-page` now supports `.sync`, #4539 -- Added `label` slot for Form, so you can customize label's content, #4634 - -#### Fixes: -- Compatibility issues of Select and Table with Vue 2.3.x, #4518 -- `disabledDate` of DatePicker having no effect on typed value in the input box, #4309 -- An issue when the key of a Tree node is number 0, #4415 -- TimePicker number not align when picked, #4425 (by @pengchongfu) -- Autocomplete frequently triggering searching method when typing Chinese, #4393 (by @qazbnm456) -- Upload - - not able to select the same file multiple times, #4461 - - not displaying preview image when is `auto-upload` false, #4572 - - some style errors, #4643 -- Style bug of RadioGroup when nested in a FormItem, #4336 -- ColorPicker not clear the color panel when bound value is emptied, #4668 (by @pengchongfu) -- `show-overflow-tooltip` of Table not working in Safari, #4157 (by @renxia) - -#### Breaking changes: -- Only compatible with Vue 2.3.0+ - -### 1.2.9 - -*2017-04-19* - -- Fixed RadioButton not working properly when some texts on the page are selected, #4217 -- Fixed the toggle-all checkbox of Tree not working in some browsers, #4107 (by @pengchongfu) -- Fixed Cascader clear button not working, #4167 (by @pengchongfu) -- Fixed router switching error when the page has a Table with Tooltips, #4085 -- Fixed Upload not able to remove selected files, #4233 -- Added `onClick` attribute for Notification, #4221 (by @amouillard) -- Fixed binding value of DatePicker becoming undefined when cleared, #4186 (by @pengchongfu) -- Fixed style error of ColorPicker when nested in a FormItem, #4303 -- Added `enterable` attribute for Tooltip, #4210 - -### 1.2.8 - -*2017-04-07* - -- Fixed `resetFields` of Form reassigning form items, #3840 (by @pengchongfu) -- Added `max` and `min` attributes for CheckboxGroup, #3700 (by @mdartic) -- Fixed DatePicker adding one to picked month in some specific days, #3935 -- Added `closeAll` method for Message, #3966 (by @pengchongfu) -- Added `format-tooltip` attribute for Slider, #3657 (by @liyanlong) -- Fixed filter panel of Table being when nested in a Dialog, #4023 (by @liyanlong) -- Fixed single Select unable to create new items in Vue 2.2.x, #3984 -- Fixed Row disappearing in all breakpoints if its `span` is set to 0 in some breakpoints, #4053 - -### 1.2.7 - -*2017-03-29* - -- Fixed Select not compatible with Vue 2.2.6, #3797 -- Improve performance for rendering tooltip in Table, #3478 -- Add `tooltip-effect` property for Table - -### 1.2.6 - -*2017-03-28* - -- Fixed Switch compatible with SSR, #3752 -- Fixed the time of TimePicker calculating incorrectly, #3479 -- Fixed the week of DatePicker formatting incorrectly, #2774 -- Fixed the week of DatePicker initializing incorrectly, #3058 -- Fixed the events of Popover destroying incorrectly, #3555 -- Fixed InputNumber setInterval, #3514 (by @pengchongfu) -- Fixed RadioButton css files, #3276 -- Fixed hover style on striped Table, #3696 (by @nicoeg) -- Fixed Slider's button jumping left issue, #3664 (by @gabrielboliveira) -- Added `delete-tag` event for Select, #3663 (by @pengchongfu) -- Added `onPick` option for DatePicker, #2921 -- Added `status` for Step, #3722 -- Added full example for on-demand importing, #3302 - -### 1.2.5 - -*2017-03-19* - -- Added `show-tooltip` property for Slider, #3430 (by @gabrielboliveira) -- Fixed Slider precision not updating when `step` is updated, #3475 (by @gabrielboliveira) -- Fixed a bug that when the window is at the criticality of showing the scrollbar, the popup of Tooltip inside a Table will cause the Table to shake horizontally, #3549 -- Fixed Table automatically shrinking vertically in some conditions, #3539 -- Fixed popup components inside a Popover not hiding when blank area is clicked, #3451 (by @nicoeg) -- Now Col will hide itself if its `xs`, `sm`, `md` or `lg` is set to 0, #3564 - -### 1.2.4 - -*2017-03-09* - -- Fixed Carousel not responding to dynamic data updates, #3159 -- Fixed `cell-dblclick` of Table not firing issue, #3305 -- Fixed disabled Cascader not displaying initial value, #3297 -- Fixed Slider not correctly displaying initial value when `show-input` is true, #3281 -- Fixed Tooltip error in server-side rendering, #3214 -- Fixed `range-separator` of DatePicker not working issue, #3378 -- Added support for dynamically update loading text of Loading directive, #3345 (by @imyzf) -- Added `http-request` attribute for Upload, #3387 -- Added support for hiding col if its `span` is 0, #3313 - -### 1.2.3 -*2017-03-01* -- Fixed Tooltip, #3152 - - -### 1.2.2 - -*2017-02-28* - -- Fixed compatibility issues with Vue 2.2, #3002 #3067 #3097 -- Fixed Cascader's dropdown hiding behind Dialog when nested in a Dialog, #3035 -- Fixed incorrect parameter of `change` event of Cascader, #3014 -- Add `change` event for ColorPicker, #3049 (by @nicoeg) -- Fixed `setCheckedKeys` method of Tree not working on non-leaf nodes, #2967 (by @rainyLeo) -- Fixed Tooltip not compatible with `router-link`, #3143 - -### 1.2.1 - -*2017-02-23* - -- Fixed SSR regression in version 1.2.0, #2982 -- Fixed horizontal scroll buttons not showing in Tabs, #2974 -- Fixed wrong calculation of height after the `height` attribute is updated dynamically in Table, #2979 -- Added `cell-dblclick` and `header-dragend` events for Table, #2983 #2988 -- Fixed form items showing a left padding inside an inline Form with a specified `label-width`, #2990 -- Fixed Cascader's dropdown misplaces in some conditions, #2992 - -### 1.2.0 Lithium - -*2017-02-22* - -#### New features: -- Two brand new components: Cascader and ColorPicker -- New attributes `editable` and `addable`, and new events `tab-add` and `edit` for Tabs -- Language config files in UMD format -- New events `node-expand` and `node-collapse` for Tree, #2507 (by @masterzhang) -- New attribute `indent` for Tree, #2713 -- Dialog's title now supports named slot, #2657 -- New attribute `range` for Slider, #2751 -- Upload - - Attribute `auto-upload` that controls if files are uploaded immediately after selecting, and its default value is `true` - - Event `on-change` that fires when file status changes - - Attribute `list-type` that configures the appearance of file list -- Scroll bars in Autocomplete are made prettier - -#### Fixes: -- Carousel not responding to contents' update, #2775 -- Numbers in TimePicker not align in some conditions, #2948 -- TimePicker only responding to odd clicks in some conditions, #2884 (by @k55k32) -- Tabs' display order error when tab-pane is dynamically changed, #2898 -- Menu highlighting menu-item when `default-active` is assigned to an non-existent item -- Collapse's style issue when nested - -#### Breaking changes: -- Tooltip is refactored, no additional HTML tags will be rendered so that the structures of nested component stay unchanged, #2459 -- The backdrop of Dialog now inserts to body element by default, #2556 -- Tabs don't maintain tab instances internally any more, so they should be handled externally via events emitted by Tabs, #2567 -- Upload is refactored - - `default-file-list` renamed to `file-list`, and `show-upload-list` renamed to `show-file-list` - - `thumbnail-mode` removed - -### 1.1.6 - -*2017-01-23* - -- Fixed `customClass` of MessageBox affecting follow-up instances, #2472 -- Fixed style issue of Select after being activated when located in a non-default-activated tab pane inside Tabs, #2466 -- Fixed style missing issue for some components when imported on demand -- Fixed disabled filterable multiple Select still showing dropdown when clicked on a certain area, #2540 -- Restored returning to original sorting in sortable Table columns, #2491 -- Added `reset.css` in `theme-default`, #2378 -- Added `range-separator` attribute for DatePicker, #2579 -- Published individual component packages: Table, DatePicker, Loading, Upload and Carousel -- Add Finnish (@groenroos) - -### 1.1.5 - -*2017-01-17* - -- Fixed Menu not activating corresponding menu item after router switching in router mode, #2451 -- Fixed `value` attribute of Collapse not supporting `Number` typed value, #2455 - -### 1.1.4 - -*2017-01-16* - -- Fixed Input Number triggering `change` event when bound value is changed programmatically, #2329 -- Fixed Menu not responding to `$router` changing in router mode, #2391 -- Fixed Menu and Tree expanding state malfunctioning when clicked multiple times quickly, #2354 -- Fixed `change` event triggering mechanism of Input Number and Checkbox Group, now they do not fire when bound value is changed programmatically -- Added `on-icon-click` attribute for Input, #2414 -- Added `disabled` attribute for Radio Group, #2411 -- Added `accordion` attribute for Tree, #2408 -- Added `show-message` attribute for Form, #2356 -- Fixed sort clicking area of Table, updated default sorting related APIs, #2309 #2405 (by @njleonzhang) -- Fixed `firstDayOfWeek` not working in ranged typed of DatePicker, #2353 -- Fixed DatePicker displaying 1970 when initial value is null, #2388 -- Fixed `filteredValue` attribute for Table, #2348 -- Fixed scrollable Table's style with empty data, #2396 -- Added `beforeClose` attribute for MessageBox, #2204 -- Fixed filterable Select not showing dropdown when triangle icon is clicked, #2389 - -Breaking change -- The `default-sort-prop` and `default-sort-order` attributes added in 1.1.3 are now merged into an object-typed attribute - -### 1.1.3 - -*2017-01-09* - -- Fixed DatePicker not firing change event when cleared for the first time upon page load, #2167 -- Fixed DatePicker year calculating error when choosing the next year, #2152 -- Added `default-sort-prop` and `default-sort-order` attributes for Table, #2182 (by @njleonzhang) -- Fixed filterable Select filtering other options with initial value, #2196 -- Added custom i18n processing, making Element compatible with i18n plugins other than `vue-i18n`, #2129 -- Added `resize` attribute for Input, #2263 (by @Kingwl) -- Fixed Autocomplete not hiding dropdown when blurred, #2247 -- Fixed style issues with nested Tabs, #2212 (by @Kingwl) -- Fixed Tabs' tab bar locating error when non-first item is initially activated, #2192 - -### 1.1.2 - -*2016-12-30* - -- Fixed `sortable` and `fixed` attribute of Table not working in Vue 2.1.7+ -- Fixed Input Number not resetting on blur when input with illegal values, #2098 -- Removed `title` scoped slot of Collapse, and added `title` named slot, #2100 -- Fixed range selection in TimePicker not working issue -- Fixed Tabs' active tab switching when a non-active tab is removed, #2106 -- Fixed console error reporting when navigating Select with arrow keys, #2120 -- Fixed incorrect validation timing of filterable Select in Form, #2120 - -### 1.1.1 - -*2016-12-29* - -- Fixed compatibility issue with latest Vue due to compilation - -### 1.1.0 Helium - -*2016-12-29* - -#### New features: -- Two brand new components: Carousel and Collapse -- SSR supported -- Scrollbars' style inside components is upgraded -- Table now supports custom templates via [scoped slots](http://vuejs.org/v2/guide/components.html#Scoped-Slots); the good old `inline-template` is still compatible, but it's no longer recommended and is likely to be removed in the future -- Table now supports expandable rows -- DatePicker now supports specifying the first day of week -- TimeSelect now supports `maxTime` -- Autocomplete now supports `popper-class` -- To customize template of Tab-Pane, now you can use the `slot` named `label` - -#### Fixes: -- `change` event of DatePicker incorrectly triggering multiple times, #2070 -- Width shaking of tab-pane while initializing, #1883 - -#### Breaking changes: -- Only compatible with Vue 2.1.6 and beyond -- Parameters of Form validateField() methods are updated -- Alert's render-content attribute is removed, and now you can pass your custom template via default slot -- The box models of Input and Select are updated from `block` to `inline-block` -- The box model of Tabs is updated from `inline-block` to `block`, and Tab-Pane's `label-content` attribute is removed -- The dropdown of Autocomplete now inserts directly to ``, not `` any more - -### 1.0.9 - -*2016-12-27* - -- Fixed DatePicker incorrectly triggering input event, #1834 -- Fixed Tree reporting `event is undefined` error in Firefox, #1945 -- Added `change` event for DatePicker, whose parameter is the formatted value, #1841 -- Added `header-align` attribute for Table, #1424 -- Fixed single select Table's highlight style not removing when data is removed, #1890 -- Fixed filterable Select lagging issue with more options, #1933 -- Fixed multiple disabled Select not disabling removing selected options issue, #2001 -- Fixed Col style not working in `xs`, #2011 -- Added `value` attribute for Tab, #2008 -- Fixed InputNumber `change` event incorrectly firing multiple times in some conditions, #1999 -- Added `clearable` attribute for DatePicker, #1994 -- Fixed Form always passing validation in async mode, #1936 - -### 1.0.8 - -*2016-12-20* - -- Fixed nested Popup from event bubbling, #1677 -- Fixed the issue that datetimerange-typed DatePicker can not select time, #1758 -- Fixed `change` event not firing correctly of Slider, #1809 -- Fixed Loading's spinner splitting while animating in some conditions, #1786 -- Added `loading-text`, `no-data-text`, `no-match-text` properties and `visible-change` event for Select, #1849 -- Added `popper-class` property for DatePicker, Select and Tooltip, #1806 -- Added `expand-on-click-node`, `current-node-key` properties and `current-change` event for Tree, #1805 #1807 -- Added the third parameter `column` for Table's `row-click` event, #1808 -- Fixed an error when pages with Checkbox switching routes due to `computed` property being cached, #1860 -- Added the tab instance as a parameter for TabPanel's `label-content` render function, #1857 -- Added infinite submenus support for NavMenu in vertical mode, #1851 -- Updated Checkbox so that it works without a binding value, #1818 -- Added `onProgress` hook for Progress, #1782 -- Fixed Tab not updating active bar with dynamic label, #1761 -- Added `filter-change` event for Table, and `column-key` property for TableColumn, #1876 -- Added `hide-on-click` property for Dropdown, #1879 - -### 1.0.7 - -*2016-12-14* - -- Fixed DatePicker dropdown appears when hovering on the clear button -- Fixed DatePicker displays a wrong date when its initial value is null -- Added `row-contextmenu` event and `max-height` attribute for Table, #1663 #1674 -- Added `customClass` attribute for MessageBox, #1707 -- Added `iconClass` and `customClass` attributes for Message and Notification, #1671 -- Added empty slot for Table, #1737 -- Added old value as a second parameter in change event for InputNumber - -### 1.0.6 - -*2016-12-09* - -- Added `disabled` attribute for Tabs, #1620 -- Added `size` attribute for DatePicker input, #1440 -- Fixed `datetimerange` DatePicker's panel not showing correct date if initial value is present, #1129 -- Fixed DatePicker display error when switching year, #1607 -- Fixed DatePicker not triggering clickoutside when its icon is clicked, #1604 -- Fixed TimePicker not refreshing value after clicking the clear button, #1583 -- Fixed remote filterable Select display error when its value is an object, #1593 -- Fixed Select's clear button still working bug when it's `disabled`, #1619 -- Fixed Switch's background color error when its `disabled` attribute is dynamically changed, #1627 -- Fixed some style bugs of Table - -### 1.0.5 - -*2016-12-06* - -- Fixed Select with async options and binding value displaying value instead of label, #1537 -- Fixed Select reports an error when initial binding value is an empty object, #1533 -- Fixed remote filtering Select not showing dropdown in some conditions, #1531 -- Fixed Slider sometimes drifting a small distance after releasing dragging, #1546 -- Fixed Steps style in IE9, #1543 -- Added Upload generating URL for all file types, #1530 -- Fixed TimeSelect style, removed flexbox, #1335 - -### 1.0.4 - -*2016-12-02* - -- Added `controls` attribute for Input Number, #1473 -- Fixed Checkbox Group and Radio Group async issue, #1511 #1514 -- Added `offset` attribute for Notification, #1419 -- Fixed Slider's value not accurate issue when dragging rapidly, #1458 -- Fixed Slider incorrectly showing multiple decimal digits issue, #1450 -- Fixed Select's binding value and displayed value not in sync in some conditions -- Added `multiple-limit` and `allow-create` attributes for Select -- Fixed Tree leaf nodes' triangle icon not disappear when expanded, #1438 -- Fixed Tree's view not updating issue after fetching child nodes' data, #1439 -- Fixed some Table's style issues in windows system, #1464 #1507 -- Fixed Table's first column's label not showing issue when grouping table head is used with fixed columns, #1451 -- Added `row-dblclick` event for Table, #1362 - -### 1.0.3 - -*2016-11-28* - -- Fixed `currentPage` of Pagination not working in some cases, #1336 -- Fixed `month` and `disabledDate` DatePicker's view not refreshing issue when switching year, #1158 -- Fixed `readonly` DatePicker clear button not disabled issue, #1238 -- Fixed Slider not working when binding value is `NaN` or `step` is smaller than 1, #1239 #1282 -- Added multi-header for Table, #1312 -- Added `rowStyle` for Table, #1348 -- Fixed some attributes of TableColumn can not dynamically assigned issue, #1314 -- Added `filter-node-method` attribute and `filter` method for Tree, #1257 -- Added `getCheckedKeys` and `setCheckedKeys` methods for Tree, #1254 -- Added deep nesting support for Checkbox/Radio inside Checkbox/Radio Group, #1152 -- Fixed Popper not triggering destroy issue when keep-alive, #1359 -- Added object deep validation for Form, #1363 -- Added `append` and `prepend` for Autocomplete, #1369 -- Added dynamic `pageSizes` support for Pagination, #1372 -- Added custom style API for checked buttons in Radio Button, #1380 -- Added assigning title via slot for Menu Group, #1382 -- Fixed DatePicker year switching bug, #1385 -- Added uploaded file list API for Upload, #1393 -- Added multi-type support for `label` attribute of Checkbox, #1400 -- Added `setChecked` method for Tree, #1422 - -### 1.0.2 - -*2016-11-18* - -- Added `context` for Table to specify which context to access inside of table columns, #1161 -- Added multiple languages -- Fixed language's dynamic switching issue, #1160 -- Added `render-content` for Alert, #568 -- Added styles for focused Button, #982 -- Fixed `change` triggering timing in Switch, #1162 -- Fixed TimeSelect being disabled when start time is set to `00:00`, #676 -- Added `show-header` attribute and `header-click` method for Table, #1195 -- Improved `height` attribute for Table when set to a string, #1195 -- Fixed `selection-change` of Table not triggering in some cases, #1198 -- Fixed Table's fixed columns not disappear when `fixed` attribute is dynamically changed, #1182 - -### 1.0.1 - -*2016-11-16* - -- Fixed Pagination improperly triggering multiple `current-change` events -- Fixed Switch style when nested in a Form, #967 -- Fixed Loading locks scroll of `body` in specific scenarios, #968 -- `span` of Col is no longer a required attribute, and its default value is `24` if omitted -- Added `disabled` and `editable` attribute for DatePicker, #976 -- Fixed DatePicker readonly with native behavior, #976 -- Added `close` method for Message and Notification to manually close an instance -- Added clear value feature for DatePicker, #759 -- Fixed Form reports an error when resetting a Date typed field, #937 -- Fixed Table render error using vue-loader 9.9.0 -- Added `align-center` attribute for Step, #994 -- Fixed Upload missing Progress component, #1013 -- Layout now supports responsive layout -- Added `show-close` for Dialog -- Fixed an error when `vue-i18n` is imported but not configured, #973 -- Fixed DatePicker not refresh view with an initial value, #1050 -- Fixed DiatePicker not refresh year when switched in month picker, #1070 -- Added $loading service -- Added `manual` trigger in Popover -- Added props: `nodeKey`, `emptyText`, `checkStrictly`, `defaultExpandAll`, `autoExpandParent`, `defaultCheckedKeys`, `defaultExpandedKeys` and method: `setCheckedNodes` for Tree - -### 1.0.0 - -*2016-11-9* - -Element 1.0.0 released. +- Added `value-format` attribute to customize the format of the binding value, #7367 +- TimePicker +- Added `arrow-control` attribute to spin the time with arrows #7438 +- DateTimePicker +- Added `time-arrow-control` attribute to activate `arrow-control` of the nesting TimePicker, #7438 +- Form +- Form and Form-item now have a `size` attribute. Inner components will inherit this size if not specified on themselves, #7428 +- `validate` method will now return a promise if the callback is omitted, #7405 + +#### Fixes +- Fixed the console warning `Injection "elFormItem" not found` of some components + +#### Breaking changes +- The params of DatePicker's `change` event is now the binding value itself. Its format is controlled by `value-format` +- Input's `change` event now behaves like the native input element, which triggers only on blur or pressing enter. If you need to respond to user input in real time, you can use `input` event. +- Only compatible with Vue 2.5.2 and beyond + +### 2.0.0-alpha.2 + +*2017-10-05* + +- Updated the primary color of `theme-chalk`, #7351 +- Fixed console error when using Dropdown, #7322 +- Fixed console error when using Menu, #7321 +- Added `popper-class` attribute for ColorPicker, #7351 +- Now Button's `disabled` attribute works correctly, #7352 + +### 2.0.0-alpha.1 + +*2017-09-30* + +#### New features +- General +- A new theme: `theme-chalk` +- Accessibility of the following components are improved: Alert, AutoComplete, Breadcrumb, Button, Checkbox, Collapse, Input, InputNumber, Menu, Progress, Radio, Rate, Slider, Switch, Upload +- Layout components: Container, Header, Aside, Main, Footer +- Button +- Added `round` attribute. It's used for round-cornered Buttons #6643 +- TimeSelect +- Now can be navigated by `Up` and `Down`, and hitting `Enter` selects the time #6023 +- TimePicker +- Now can be navigated by arrow keys, and hitting `Enter` selects the time #6050 +- Added `start-placeholder` and `end-placeholder`. They're placeholders for the two input boxes in range mode #7169 +- Tree +- Now child nodes don't render before the first expand #6257 +- Added `check-descendants` attribute. It determines if child nodes are checked when checking their parent node +in `lazy` mode #6235 +- Tag +- Added `size` attribute #7203 +- Datepicker +- Now `timeFormat` can format the TimePicker when type is set to `datetimerange` #6052 +- Added `start-placeholder` and `end-placeholder`. They're placeholders for the two input boxes in range mode #7169 +- MessageBox +- Added `closeOnHashChange` attribute #6043 +- Added `center` attribute so that the content can be centered #7029 +- Added `roundButton` attribute to display round Buttons #7029 +- Added `dangerouslyUseHTMLString` attribute. When set to `true`, `message` will be parsed as HTML string* #6043 +- Dialog +- Added `width`、`fullscreen`、`append-to-body` attributes. Now Dialog can be nested +- Added `center` attribute so that the content can be centered #7042 +- Added `focus-after-closed`、`focus-after-open` to improve accessibility #6511 +- ColorPicker +- Now you can type colors in the input box #6167 +- Added `size` and `disabled` attributes #7026 +- Message +- Now color of the icons can be overridden by CSS #6207 +- Added `dangerouslyUseHTMLString` attribute. When set to `true`, `message` will be parsed as HTML string* #6207 +- Added `center` attribute so that the content can be centered #6875 +- Notification +- Added `position` attribute to configure where Notification pops up #6231 +- Added `dangerouslyUseHTMLString` attribute. When set to `true`, `message` will be parsed as HTML string* #6231 +- Added `showClose` attribute to hide the close button #6402 +- Rate +- Added `show-score` attribute to determine if current score is displayed #6295 +- Tabs +- Added `tab-position` attribute #6096 +- Radio +- Improved accessibility #6101 +- Added `border` and `size` attributes #6690 +- Checkbox +- Added `border` and `size` attributes #6690 +- Alert +- Added `center` attribute so that the content can be centered #6876 +- Menu +- Added `background-color`, `text-color` and `active-text-color` attributes #7064 +- Form +- Added `inline-message` attribute to determine if the validation message is displayed in inline style #7032 +- Added `status-icon` attribute to display a feedback icon when validated #7032 +- Input +- Added `suffix` and `prefix` named slots, `suffixIcon` and `prefixIcon` attributes to add contents inside the input box #7032 +- Breadcrumb +- Added `separator-class` attribute to support icons as item separators #7203 +- Steps +- Added `simple` attribute to activate simple-styled Steps #7274 +- Pagination +- Added `prev-text` and `next-text` attributes to customize texts of prev page and next page #7005 + +#### Bug fixes +- DatePicker +- Fixed `v-model` returning the second day of the selected week in week mode #6038 +- Fixed the first input being cleared in `daterange` type #6021 +- DateTimePicker +- Fixed DateTimePicker and TimePicker affecting each other when picked #6090 +- Fixed hour and second can be beyond limit when selecting time #6076 +- TimePicker +- Fixed `v-model` not update correctly when blurred #6023 +- Dialog +- Fixed texts having blurry edges when opening and closing nesting dropdowns #6088 +- Select +- Improved performance. Now Vue dev-tool won't crash when a large number of Selects are destroyed #6151 + +#### Breaking changes +- General +- Removed `theme-default` +- `change` event of form components and `current-change` event of Pagination now only trigger on user interaction +- `size` attribute of Button and form components can no longer be set to `large`. Now they accept `medium`, `small` and `mini` +- To facilitate the use of third-party icons, `icon` attribute of Button and Steps, `prefix-icon` and `suffix-icon` attributes of Input now require a full class name +- Dialog +- Removed `size` attribute. Now the size of Dialog can be configured by `width` and `fullscreen` +- Now the visibility of Dialog cannot be controlled by `v-model` +- Rate +- `text-template` is renamed to `score-template` +- Dropdown +- `menu-align` is renamed to `placement`. Now it supports more positions +- Transfer +- `footer-format` is renamed to `format` +- Switch +- `on-text` and `off-text` attributes now don't have default values +- Tag +- `type` attribute now accepts `success`, `info`, `warning` and `danger` +- `close-transition` is renamed to `disable-transitions` +- Menu +- Removed `theme` attribute. The color of Menu can be configured using `background-color`, `text-color` and `active-text-color` +- Input +- Removed `icon` attribute. Now the suffix icon can be configured using `suffix-icon` attribute or `suffix` named slot +- Removed `on-icon-click` attribute and `click` event. Now to add click handler on icons, please use named slots +- Autocomplete +- Removed `icon` and `on-icon-click` attributes. Now the icons can be configured using `prefix` or `suffix` named slot +- Removed `custom-item` attribute. Now the template of input suggestions can be customized using `scoped slot` +- Table +- Removed support for customizing column template using `inline-template` +- Steps +- Removed `center` attribute +- Now the Steps will fill its parent container by default + +## +* Dynamically rendering arbitrary HTML on your website can be very dangerous because it can easily lead to [XSS attacks](https://en.wikipedia.org/wiki/Cross-site_scripting). So when `dangerouslyUseHTMLString` is on, please make sure the content of `message` is trusted, and **never** assign `message` to user-provided content. \ No newline at end of file diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index ee2695717..90f94bb75 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -1,814 +1,247 @@ ## 更新日志 -### 1.4.8 -*2017-10-24* +### 2.0.0-rc.1 +*2017-10-25* -- 修复鼠标在折叠的 Menu 子菜单中快速移动时会将菜单收起的问题,#7579 -- 修复 DateTimePicker 的快捷菜单过长时,最后一项会被隐藏的问题,#7567(by @DuLinRain) -- 新增 Dropdown 的 `show-timeout` 和 `hide-timeout` 属性,#7621(by @phongkt-dev) +#### 新特性 +- Form + - 新增 `clearValidate` 方法,用于清空所有表单项的验证信息,#7623 +- MessageBox + - 新增 `inputType` 属性,用户指定内部输入框的类型,#7651 +- Table + - 新增 `size` 属性,用于控制表格尺寸 + - 新增 `toggleRowExpansion` 方法,用于手动展开或关闭行 + - 新增 `cell-class-name` 属性,用于指定单元格的类名 + - 新增 `cell-style` 属性,用于指定单元格的样式 + - 新增 `header-row-class-name` 属性,用于指定表头行的类名 + - 新增 `header-row-style` 属性,用于指定表头行的样式 + - 新增 `header-cell-class-name` 属性,用于指定表头单元格的类名 + - 新增 `header-cell-style` 属性,用于指定表头单元格的样式 + - TableColumn 的 `prop` 属性支持 `object[key]` 格式 + - TableColumn 新增 `index` 属性,用于自定义索引值 -### 1.4.7 +#### 修复 +- Table + - 修复 `max-height` 变更后无法恢复的问题 + - 修复一些样式上的计算错误 + +#### 非兼容性更新 +- Autocomplete + - 移除 `props` 属性,现在使用 `value-key` 属性指定输入建议对象中用于显示的键名 +- Table + - 将 `append` slot 移至 `tbody` 元素以外,以保证其只被渲染一次 + - `expand` 事件更名为 `expand-change`,以保证 API 的命名一致性 + - `row-class-name` 和 `row-style` 的函数参数改为对象,以保证 API 的一致性 + +### 2.0.0-beta.1 +*2017-10-20* + +#### 新特性 +- 综合 + - 新增 TypeScript 类型声明 + - 重绘了全部图标,并新增了部分图标 + - 为部分非兼容性更新增加控制台警告,方便迁移项目。当你在项目中使用了被移除或更名了的属性或事件时,控制台会出现一条警告,例如: + ``` + [Element Migrating][ElSwitch][Attribute]: on-color is renamed to active-color. + ``` + - 新增了一系列基于断点的工具类,用于当视口尺寸满足一定条件时隐藏元素 +- Layout + - 新增断点 `xl`,适用于宽度大于 1920px 的视口 +- Table + - 新增 `span-method` 属性,用于合并行或列 + - 新增 `clearSort` 方法,用于清空排序状态 + - 新增 `clearFilter` 方法,用于清空过滤状态 + - 对于可展开行,当该行展开时会获得一个 `.expanded` 类名,方便自定义样式 +- DatePicker + - 新增 `unlink-panels` 属性,用于在选择日期范围时取消两个日期面板之间的联动 +- Select + - 新增 `reserve-keyword` 属性,用于在选择某个选项后保留当前的搜索关键词 + +#### 修复 +- Table + - 修复 TableColumn 的 `header-align` 属性失效的问题 + - 修复 Table 在父元素从 `display: none` 变成其他状态时会隐藏的问题 + - 修复 Table 在父元素为 `display: flex` 时可能出现的宽度逐渐变大的问题 + - 修复 `append` 具名 slot 和固定列并存时,动态获取表格数据会导致固定列消失的问题 + - 修复 `expand-row-keys` 属性初始化无效的问题 + - 修复 `data` 改变时过滤条件失效的问题 + - 修复多级表头时固定列隐藏情况计算错误的问题 + +#### 非兼容性更新 +- Switch + - 由于 `on-*` 属性在 JSX 中会被识别为事件,导致 Switch 所有 `on-*` 属性在 JSX 中无法正常工作,所以 `on-*` 属性更名为 `active-*`,对应地,`off-*` 属性更名为 `inactive-*`。受到影响的属性有:`on-icon-class`、`off-icon-class`、`on-text`、`off-text`、`on-color`、`off-color`、`on-value`、`off-value` +- Table + - `sort-method` 现在和 `Array.sort` 保持一致的逻辑,要求返回一个数字。 + +### 2.0.0-alpha.3 *2017-10-16* -- 修复 Autocomplete 与 Vue 2.5.x 不兼容的问题,#6942(by @rennai) -- Switch 新增 `allow-focus` 属性,#7494(by @breadadams) - -### 1.4.6 -*2017-09-27* - -- 修复点击 Slider 的按钮会使其返回上一个位置的问题,#7190 -- 修复 Tooltip 无法正确切换 `disabled` 的问题,#7198 -- 修复 Cascader 的过滤功能在配置了 `props` 的情况下的异常问题,#7225 -- 修复 DatePicker 的范围选择在初始值为空数组时会报错的问题,#7233 - -### 1.4.5 -*2017-09-24* - -- Rate 的 `colors` 属性现在可以动态更新了,#6872 @lukaszb -- 修复 Tree 无法高亮 `node-key` 值为 0 的节点的问题,#6917 -- 修复初始状态被禁用的 Dropdown 在取消禁用后无法弹出下拉菜单的问题,#6969 -- Tooltip 新增 `hide-after` 属性,#6401 @ryatziv -- 修复 TimePicker 取消按钮无法正确取消所选值的问题,#7028 -- Autocomplete 新增 `selectWhenUnmatched` 属性,#6428 @ryatziv -- 修复 Upload 中某个文件的 `beforeUpload` 返回 `false` 时会错误地取消其他文件上传的问题,#7077 -- 修复 DatePicker 在西半球使用时月视图和年视图禁用日期显示错误的问题,#7114 -- DatePicker 的 `default-value` 属性支持 daterange 模式,#7073 @wacky6 - -### 1.4.4 -*2017-09-05* - -- 修复设置了 `disabledDate` 的 DatePicker 在月视图下全部不可选的问题,#6768 @qingdengyue -- Slider 新增 `debounce` 属性,#6820 @langgo -- 修复 Pagination 的 jumper 中可以输入比最大页数更大的数字的问题,#6842 @huguangju -- 修复 TimePicker 的小时数难以通过滚动的方式选中 23 时的问题,#6719 @qingdengyue - -### 1.4.3 -*2017-08-25* - -- 修复 Progress 百分比为 `0` 时的样式问题,#6551 @Kingwl -- 修复 Carousel 在切换时幻灯片闪烁的问题,#6394 -- 修复禁用的 Button 在点击文字部分时未阻止事件传播的问题,#6421 -- 修复 DatePicker 的月视图错误计算禁用日期的问题,#6363 -- 修复 Autocomplete 键盘回车被阻止传播的问题,#6499 @leezng -- 修复 DatePicker 的 i18n 不支持 `amPm` 的问题,#6574 -- 修复 Slider 由隐藏变为可见时交互错误的问题,#6593 -- 修复通过默认 slot 传递 `description` 的 Alert 错误地使用小图标的问题,#6612 @leezng - -### 1.4.2 -*2017-08-09* - -- 修复绑定值为对象类型时,初始值为 null 的 Select 会选中 value 为 `0` 的问题,#6143 -- 修复 `status` 为 `error` 的 Step 样式问题,#6155 @wacky6 -- 修复当 Cascader 的 `expand-trigger` 为 `hover` 时,点击选择条目后快速移动会再次选到父级元素的问题,#6199 -- 修复 Menu 在 collaspse 时不能收起子级菜单的问题,#6200 -- 修复 Switch 内部的原生 input 状态与组件不同步的问题,#6205 @wacky6 -- 修复 Slider 在 resize 窗口后滑块位置不准的问题,#6263 -- 修复 Autocomplete 在 blur 时不会收起下拉框的问题,#6256 -- 修复 Pagination 的 jumper 在 IE 下敲击回车无法触发翻页的问题,#6306 @qingdengyue -- 修复 InputNumber 当 `size` 为 `large` 和 `small` 时的样式问题,#6310 @JeremyWuuuuu -- 修复 DatePicker 的部分格式化文字 i18n 不生效的问题,#6328 -- 修复点击 Slider 的滑块会使其移动至起点的问题,#6359 - -### 1.4.1 -*2017-07-28* - -- 修复 Tree 勾选父节点会弹出子节点的问题,#6029 -- 修复 Tree 勾选逻辑错误,#6034 -- 修复作为 Form 直接子元素的 FormItem 不继承 `label-width` 的问题,#6044 -- 修复 collapse 模式下的 Menu 自动弹出子菜单的问题,#6111 -- 修复使用 `v-if` 的动态 TabPane 顺序错误的问题,#6066 -- 修复鼠标在 `open-delay` 时间内移开元素后,仍然会弹出 Popover 的问题,#6058(by @laobubu) -- 修复禁用的 Upload 的文件列表仍然显示删除按钮并可操作的问题,#6091 -- 修复斑马纹的 Table 的背景色在 hover 时不正确的问题,#6024(by @xtongs) - -### 1.4.0 Boron -*2017-07-21* - -#### 新特性: -- Message - - `message` 属性支持 VNode,#5463(by @egyptik) -- ColorPicker - - 新增 `active-change` 事件,#5775 -- Popover - - 新增 `open-delay` 属性,#5842(by @kaungmyatlwin) -- Table - - `formatter` 新增 `value` 参数,#5709(by @haledeng) -- Tree - - 新增 `disabled` 属性,#5937 -- Menu - - 新增 `collapse` 属性,#5941 -- Select - - 新增 `value-key` 属性,#5897 - -#### 修复: -- DatePicker - - 部分内部文案不受 i18n 控制的问题,#5485 - - 初始值为空时,选择时间后的返回值毫秒部分不为零的问题,#5663 - - `disabledDate` 范围被扩大的问题,#4946(by @liyangworld) -- Steps - - 动态增减步骤后的样式错误,#5456(by @elfman) -- Table - - 带有固定列且可展开时,鼠标 hover 高亮行错位的问题,#5471(by @elfman) - - 部分浏览器不支持 `classList` 的问题,#5613(by @flynntsc) -- Select - - 单选时打开下拉框有时无法定位到已选中项的问题,#5564(by @wacky6) - - 多选时 Vue 2.4.x 报错的问题,#5897 -- Radio - - RadioGroup 内只有一个 Radio 时的圆角丢失问题,#5646(by @YYvanYang) -- Upload - - `auto-upload` 为 false 时,无法选择之前删除的文件的问题,#5706 - - `disabled` 时删除按钮仍可见并可操作的问题,#5841 - - 兼容 Vue 2.4 `key` 不能是对象的问题,#5872 -- MessageBox - - 非 `confirm` 或 `prompt` 情况下点击取消按钮仍然被 resolve 的问题,#5658 -- Rate - - 初始值带有小数时,激活的 icon 不显示小数部分的问题,#5785 -- Pagination - - 总页数的 i18n 不与 vue-i18n@6.x 兼容的问题,#5796(by @mario56) - - 当前页为最大页数减一时,错误地显示省略号的问题,#5861(by @openks) +#### 新特性 +- 综合 + - 新增全局配置组件尺寸的功能:在引入 Element 时,配置 `size` 字段可以改变所有组件的默认尺寸。当完整引入 Element 时: + ```JS + import Vue from 'vue' + import Element from 'element-ui' + Vue.use(Element, { size: 'small' }) + ``` + 当按需引入 Element 时: + ```JS + import Vue from 'vue' + import { Button } from 'element-ui' + Vue.prototype.$ELEMENT = { size: 'small' } + Vue.use(Button) + ``` + 按照以上设置,项目中所有拥有 `size` 属性的组件的默认尺寸均为 'small'。 - Loading - - 不可见元素绑定 Loading 时的样式错误,#5649(by @xiongzixiao) -- Cascader - - 输入框中的文字未垂直居中的问题,#5819(by @jianzhi92) -- Tree - - 在 lazy 模式下 `setCheckedKeys` 和 `setCheckedNodes` 方法的 bug,#5937 - - 在 lazy 模式下勾选父级节点会一次性加载全部后代节点的问题,#5963 -- Form - - 未在 FormItem 上指定 `label` 时,label 的具名 slot 失效的问题,#5921 -- Tooltip - - Vue 2.4.x 下触发元素为自定义组件时不工作的问题,#5916 - -#### 非兼容性更新: -- Select - - 值为对象类型时,需要提供一个 `value-key` 作为唯一性标识,#5897 - -### 1.3.7 -*2017-06-18* - -- 修复异步加载数据的 Table 不显示合计行的问题,#5318 -- 修复 Pagination 的输入框数值与当前页不同步的问题,#5377 -- 修复 DatePicker 的 shortcut 面板过长时的溢出问题,#5297(by @alashow) -- 修复当页面上有被选中的文本时点击 Switch 无效的问题,#5411 -- Form 中表示必填项的小红点现在可以动态更新了,#5403 -- 修复 Carousel 的 initial-index 属性无效的问题,#5334 -- 修复嵌套于 Dialog 中的 Popover 无法被 focus 的问题,#5336 - -### 1.3.6 -*2017-06-09* - -- 修复 ColorPicker 的默认值有时与面板中的值不一致的问题,#5183(by @Kingwl) -- 修复默认值为白色的 ColorPicker 无法通过面板改变 hue 的问题,#5184(by @Kingwl) -- 修复 Dialog 在滚动后,其嵌套的 Select 需多次点击才能呼出的问题,#5226 -- 新增 Autocomplete 的 `props` 属性,#5282 -- 修复 DatePicker 在手动输入值后按 Tab 切换焦点时下拉框不消失的问题,#5149(by @ChuckFields) - -### 1.3.5 -*2017-06-03* - -- 修复 Select 的 `default-first-option` 属性在远程搜索时不生效的问题,#5084 -- 修复 InputNumber 与其他表单组件同行显示时不能对齐的问题,#5127 -- 修复行内 FormItem 对复合型 Input 失效的问题,#5151 -- 修复 FormItem 在 Firefox 中的高度与其他浏览器不一致的问题,#5152 -- 修复 Cascader 中 `value` 为 0 的数据不能展开下一级的问题,#5172(by @Kingwl) -- 修复 Autocomplete 无法触发原生 `keydown` 和 `keyup` 事件的问题,#5129 -- 新增 Select 的 `clear` 事件,#5112 -- 修复 Cascader 在某些情况下下拉框的位置没有及时更新的问题,#5064 -- 提升 Dialog 和 MessageBox 的可访问性,#4786 - -### 1.3.4 -*2017-05-23* - -- 修复带展开行的 Table 在高亮和斑马纹效果下的问题,#4871(by @mu-yu) -- 新增 Select 的 `default-first-option` 属性,#4838(by @wacky6) -- 修复可创建选项的 Select 在没有选项数据时不显示「无数据」文本的问题,#4977 - -### 1.3.3 -*2017-05-14* - -- 新增 Dropdown 的 `visible-change` 事件,#4818(by @luciy) -- 新增 Col 和 Row 的 `tag` 属性,#4799 -- 修复上个版本中 Cascader 搜索功能不可用的问题,#4812 -- 修复 `type` 为 range 的 DatePicker 错误地触发 watch 的问题,#4837(by @wacky6) -- 修复 TimePicker 在某些浏览器上数字不居中的问题,#4847(by @pengchongfu) -- 修复当按下 ESC 关闭 Dialog 时不触发 `before-close` 钩子的问题,#4819(by @patriciussanctus) -- 修复当多个 MessageBox 中存在 VNode 格式的 `message` 时渲染不正确的问题 -- 修复按下 tab 键无法使 Checkbox 获得焦点的问题 - -### 1.3.2 -*2017-05-10* - -- 修复在按需引入某些组件时,报 `el-collapse-transition` 未找到的错,#4728 -- 修复 Pagination 在 FireFox 中的垂直居中问题,#4756 -- 修复 `type` 为 week 时的 DatePicker 在更新绑定值后面板视图不更新的问题,#4739 -- 修复 `show-summary` 的 Table 的一些高度计算错误,#4736 -- 新增 Cascader 的 `before-filter` 属性,#4774 -- 新增 InputNumber 的 `debounce` 属性,#4712(by @pengchongfu) - -### 1.3.1 -*2017-05-06* - -- 修复 Autocomplete 输入中文时会清空输入框的问题,#4718 -- 修复异步获取数据的 Table 的合计行不随表格其余部分滚动的问题,#4717 -- 修复 `close-on-press-esc` 为 true 的 Dialog 在按下 ESC 时无法正确关闭的问题,#4706 -- 修复设置了 `on-value` 和 `off-value` 的 Switch `change` 事件参数不正确的问题,#4675 - -### 1.3.0 Beryllium -*2017-05-05* - -#### 新特性: -- 新增 Transfer 组件 -- 新增 transition 的文档,现在用户可以使用内置 transition 了 -- Slider 新增垂直模式,使用 `vertical` 属性即可打开,#4410(by @devange) -- CheckboxGroup 新增按钮模式,#3697(by @mdartic) -- Table - - 新增 `setCurrentRow` 方法,#4390 - - 新增表尾合计行的功能,提供 `show-summary`、`sum-text` 和 `summary-method`,#4484 - - TableColumn 新增 `filter-placement` 属性,#4491 -- Dialog - - 新增 `before-close` 属性,#4432 - - 新增 `visible` 属性,且支持 `.sync` 修饰符,#4539 + - 配置对象新增 `spinner` 和 `background` 字段,支持自定义加载图标和背景色,#7390 +- Autocomplete + - 新增 `debounce` 属性,#7413 - Upload - - 新增 `disabled` 属性,#4473 - - `on-change` 事件现在也会在添加文件后触发,#4447 - - 新增 `abort` 方法,#4575 -- Switch 新增 `on-value` 和 `off-value` 属性,支持自定义两种状态的值,#4403 + - 新增 `limit` 和 `on-exceed` 属性,支持对上传文件的个数进行限制,#7405 +- Menu + - 新增 `open` 和 `close` 方法,支持手动打开和关闭 SubMenu,#7412 - DatePicker - - 新增 `default-value` 属性,用于设定下拉框初次弹出时显示的日期,#4222(by @wacky6) - - 支持动态改变 `type`,#4417(by @coffeedeveloper) -- CarouselItem 新增 `label` 属性,#4317(by @paul-blundell) -- MessageBox 的 `message` 属性增加对 VNode 的支持,#4550 -- Pagination 的 `current-page` 增加对 `.sync` 的支持,#4539 -- Form 新增名为 label 的 slot,用于自定义标签文本的内容,#4634 - -#### 修复: -- Select 和 Table 的某些功能与 Vue 2.3.x 不兼容的问题,#4518 -- DatePicker 的 `disabledDate` 对手动在输入框中输入的值无效的问题,#4309 -- Tree 的树节点 ID 为数字 0 时的一些问题,#4415 -- TimePicker 在完成选择后数字不居中显示的问题,#4425(by @pengchongfu) -- Autocomplete 在输入中文时频繁触发搜索方法的问题,#4393(by @qazbnm456) -- Upload - - 不能选择同一个文件的问题,#4461 - - `auto-upload` 为 false 时不显示预览图片的问题,#4572 - - 一些样式问题,#4643 -- 嵌套在 FormItem 中的按钮样式的 RadioGroup 的样式问题,#4336 -- ColorPicker 修复将绑定值赋值为空不会清空颜色面板的问题,#4668(by @pengchongfu) -- Table 修复在 Safari 下 `show-overflow-tooltip` 无效的问题,#4157(by @renxia) - -#### 非兼容性更新: -- 最低兼容 Vue 2.3.0 - -### 1.2.9 -*2017-04-19* - -- 修复在有文本选中的情况下,RadioButton 需要多次点击才能生效的问题,#4217 -- 修复 Tree 的多选框在某些浏览器下不能全选的问题,#4107(by @pengchongfu) -- 修复可清空的 Cascader 清空按钮无效的问题,#4167(by @pengchongfu) -- 修复带有 Tooltip 的 Table 在路由切换时有时会报错的问题,#4085 -- 修复 Upload 无法移除待上传的文件的问题,#4233 -- 新增 Notification 的 `onClick` 属性,#4221(by @amouillard) -- 修复 DatePicker 在清空后值变为 undefined 的问题,#4186(by @pengchongfu) -- 修复 FormItem 中 ColorPicker 的样式错误,#4303 -- 新增 Tooltip 的 `enterable` 属性,#4210 - -### 1.2.8 -*2017-04-07* - -- 修复 Form 的 `resetFields` 会给表单项重新赋值的问题,#3840(by @pengchongfu) -- 新增 CheckboxGroup 的 `max` 和 `min` 属性,#3700(by @mdartic) -- 修复 DatePicker 在一些特定的日期会导致月份 +1 的问题,#3935 -- 新增 Message 的 `closeAll` 方法,#3966(by @pengchongfu) -- 新增 Slider 的 `format-tooltip` 属性,#3657(by @liyanlong) -- 修复内嵌于 Dialog 中的 Table 的筛选面板被遮挡的问题,#4023(by @liyanlong) -- 修复单选的 Select 在 Vue 2.2.x 下无法创建条目的问题,#3984 -- 修复某些断点下 `span` 为 0 的 Row 在其他断点下也会消失的问题,#4053 - -### 1.2.7 -*2017-03-29* - -- 修复 Select 不兼容 Vue 2.2.6 的问题,#3797 -- 优化 Table 的 Tooltip 渲染性能,#3478 -- 新增 Table `tooltip-effect` 属性 - -### 1.2.6 -*2017-03-28* - -- 修复 Switch 样式不兼容 vue SSR,#3752 -- 修复 TimePicker 日期计算错误,#3479 -- 修复 DatePicker 格式化 week 类型错误,#2774 -- 修复 DatePicker 周选择器默认值,#3058 -- 修复 Popover 销毁时未正确清除事件,#3555 -- 修复 InputNumber 鼠标左右键一起按下会导致值一直自增加,#3514(by @pengchongfu) -- 修复 RadioButton 样式文件引入但无样式,#3276 -- 修复 Table 的 hover 样式,#3696(by @nicoeg) -- 修复 Slider 跳动问题,#3664(by @gabrielboliveira) -- 新增 Select `delete-tag` 事件 #3663(by @pengchongfu) -- 新增 DatePicker 的 `onPick` 选项,#2921 -- 新增 Steps 可分别设置 step 的状态(status)和样式调整,#3722 -- 新增完整的按需引入组件的文档,#3302 - -### 1.2.5 -*2017-03-19* - -- 新增 Slider 的 `show-tooltip` 属性,#3430(by @gabrielboliveira) -- 修复动态改变 Slider `step` 的精度时,其值的精度不随之改变的问题,#3475(by @gabrielboliveira) -- 修复含有 Tooltip 的 Table 在当前窗口高度临界于出现滚动条时,弹出 Tooltip 会导致 Table 宽度抖动的问题,#3549 -- 修复 Table 在某些情况下高度自动往复变小的问题,#3539 -- 修复 Popover 中的弹出类组件在点击 Popover 的空白区域时不隐藏的问题,#3451(by @nicoeg) -- 现在 `xs`、`sm`、`md`、`lg` 值为 0 的 Col 会被正确隐藏,#3564 - -### 1.2.4 -*2017-03-09* - -- 修复 Carousel 有时不响应数据动态更新的问题,#3159 -- 修复 Table 的 `cell-dblclick` 事件无法触发的问题,#3305 -- 修复禁用的 Cascader 不显示默认值的问题,#3297 -- 修复 Slider 在 `show-input` 时初始值不正确的问题,#3281 -- 修复 Tooltip 在服务端渲染时报错的问题,#3214 -- 修复 DatePicker 的 `range-separator` 属性有时无效的问题,#3378 -- 新增指令式调用 Loading 时响应动态加载文案的功能,#3345(by @imyzf) -- 新增 Upload 的 `http-request` 参数,用于实现覆盖默认的上传行为,#3387 -- 新增 Col 支持将 `span` 值设为 0 时隐藏该列的功能,#3313 - -### 1.2.3 -*2017-03-01* -- 修复 Tooltip, #3152 - -### 1.2.2 -*2017-02-28* - -- 修复若干组件与 Vue 2.2 不兼容的问题,#3002 #3067 #3097 -- 修复嵌套在 Dialog 内的 Cascader 下拉框有时出现在 Dialog 之后的问题,#3035 -- 修复 Cascader 的 `change` 事件参数在某些情况下不正确的问题,#3014 -- 新增 ColorPicker 的 `change` 事件,#3049(by @nicoeg) -- 修复 Tree 的 `setCheckedKeys` 方法对非叶子节点无效的问题,#2967(by @rainyLeo) -- 修复 Tooltip 和 `router-link` 共用报错的问题,#3143 - -### 1.2.1 -*2017-02-23* - -- 修复用于 SSR 时报错的问题,#2982 -- 修复 Tabs 左右滚动按钮无法出现的问题,#2974 -- 修复 Table 在动态改变 `height` 属性后高度计算错误的问题,#2979 -- 新增 Table 的 `cell-dblclick` 和 `header-dragend` 事件,#2983 #2988 -- 修复行内表单在指定 `label-width` 时表单元素出现左边距的问题,#2990 -- 修复 Cascader 在某些情况下弹出框位置不正确的问题,#2992 - -### 1.2.0 Lithium -*2017-02-22* - -#### 新特性: -- 新增 Cascader、ColorPicker 组件 -- Tabs 新增 `editable` 和 `addable` 属性以及 `tab-add` 和 `edit` 事件 -- 新增 UMD 格式的语言包文件 -- Tree 新增 `node-expand` 和 `node-collapse` 事件,#2507(by @masterzhang) -- Tree 新增 `indent` 属性,#2713 -- Dialog 的标题支持以具名 slot 的方式传入,#2657 -- Slider 新增 `range` 属性,支持范围选择,#2751 -- Upload - - 新增 `auto-upload` 属性,用以控制是否在选择图片后自动上传,默认为开启 - - 新增 `on-change` 钩子函数在文件状态改变时会调用 - - 新增 `list-type` 设置文件列表展示外观 -- Autocomplete 滚动条使用 el-scrollbar - -#### 修复: -- Carousel 不响应内容动态更新的问题,#2775 -- TimePicker 在某些情况下数字位置不居中的问题,#2948 -- TimePicker 在某些情况下范围选择时仅响应偶数次点击的问题,#2884(by @k55k32) -- Tab 修复 tab-pane 动态显示时插入顺序问题, #2898 -- Menu 修复将 `default-active` 设置为不存在的 index 时 menu-item 还会高亮的问题 -- Collapse 修复嵌套使用时的样式问题 - -#### 非兼容性更新: -- 重构 Tooltip,不再生成额外的 HTML 标签,确保被 tooltip 包裹的组件的结构不变,#2459 -- Dialog 的遮罩层现在默认插入至 body 元素上,#2556 -- Tabs 现在内部不再维护 tab 实例,需要在外部通过相关事件去处理, #2567 -- Upload 重构升级 - - `default-file-list` 属性更名为 `file-list`, `show-upload-list` 属性更名为 `show-file-list` - - `thumbnail-mode` 属性被移除 - -### 1.1.6 -*2017-01-23* - -- 修复 MessageBox 的 `customClass` 会影响后续实例的问题,#2472 -- 修复位于 Tabs 非默认激活页中的 Select 在激活后样式不正确的问题,#2466 -- 修复一些组件在单独引入时样式缺失的问题 -- 修复被禁用的可搜索多选 Select 点击特定区域仍能打开下拉框的问题,#2540 -- 修复 Table 排序支持返回原始顺序,#2491 -- 新增 `reset.css` 在 `theme-default` 内,#2378 -- 新增 DatePicker 的 `range-separator` 属性,#2579 -- 发布单独组件包:Table,DatePicker,Loading,Upload,Carousel -- 新增芬兰语(@groenroos) - -### 1.1.5 -*2017-01-17* - -- 修复 Menu 在启用 router 模式下点击菜单跳转后没有激活对应菜单项的问题,#2451 -- 新增 Collapse `value` 属性增加对 `Number` 类型的支持,#2455 - -### 1.1.4 -*2017-01-16* - -- 修复 Input Number 在主动改变绑定值时也会触发 change 事件的问题,#2329 -- 修复 Menu 在启用 router 模式后没有对 `$route` 变化进行响应的问题,#2391 -- 修复 Menu、Tree 在快速点击时出现展开状态错误的问题,#2354 -- 修复 Input Number 和 Checkbox Group 的 change 事件触发时机,现在主动改变绑定值时不触发该事件。 -- 新增 Input 增加点击图标后的钩子函数属性,#2414 -- 新增 Radio Group 的 `disabled` 属性,#2411 -- 新增 Tree 增加 `accordion` 属性,#2408 -- 新增 Form 增加 `show-message` 属性,#2356 -- 修复 Table 排序点击区域,调整默认排序的 API,#2309 #2405(by @njleonzhang) -- 修复 DatePicker firstDayOfWeek 在范围类型中无法使用,#2353 -- 修复 DatePicker 初始值为 null 显示 1970,#2388 -- 修复 Table 缺少 filteredValue 属性,#2348 -- 修复 Table 空数据时且存在滚动条时的样式,#2396 -- 新增 MessageBox 的 `beforeClose` 属性,#2204 -- 修复可过滤的 Select 点击三角图标不显示下拉框的问题,#2389 - -非兼容性更新 -- 1.1.3 新增的 `default-sort-prop` 和 `default-sort-order` 属性现在合并为一个对象类型属性 - -### 1.1.3 -*2017-01-09* - -- 修复 DatePicker 页面加载后首次清空不会触发 `change` 事件,#2167 -- 修复 DatePicker 选择下一年时,年份计算错误,#2152 -- 新增 Table 的 `default-sort-prop` 和 `default-sort-order` 属性,#2182(by @njleonzhang) -- 修复有默认值的可搜索 Select 其他数据被过滤的问题,#2196 -- 新增自定义 i18n 处理方法,方便和除了 `vue-i18n` 之外的插件使用,#2129 -- 新增 Input `resize` 属性,#2263(by @Kingwl) -- 修复 Autocomplete 在 blur 事件触发时没有隐藏下拉列表的问题,#2247 -- 修复 Tabs 嵌套使用时的样式问题,#2212(by @Kingwl) -- 修复 Tabs 默认激活非第一项时 tabBar 的显示位置不正确的问题,#2192 - -### 1.1.2 -*2016-12-30* - -- 修复 Vue 2.1.7 升级导致的 Table `sortable` 和 `fixed` 无法使用的问题 -- 修正 Input Number 在手动输入越界值时,blur 触发时没有重置为原来的值的问题,#2098 -- 移除 Collapse 的 `title` scoped slot, 并新增 `title` named slot,#2100 -- 修复 TimePicker 范围选择无法使用的问题 -- 修复 Tabs 删除非当前激活的 tab 后,当前激活的 tab 变化的问题,#2106 -- 修复 Select 在使用方向键导航时控制台报错的问题,#2120 -- 修复 Form 中可搜索的 Select 验证时机错误的问题,#2120 - -### 1.1.1 -*2016-12-29* - -- 修复由于编译而出现的不兼容新版 Vue 的问题 - -### 1.1.0 Helium -*2016-12-29* - -#### 新特性: -- 新增 Carousel、Collapse 组件 -- 支持 SSR -- 组件内的滚动条样式优化 -- Table 支持通过 [Scoped Slots](http://vuejs.org/v2/guide/components.html#Scoped-Slots) 传入模板;原来的 `inline-template` 仍然兼容,但是不再推荐使用,未来可能会被移除 -- Table 支持展开行功能(Expandable rows) -- DatePicker 支持指定周起始日(first day of week) -- TimeSelect 支持设置 `maxTime` -- Autocomplete 新增 `popper-class`属性 -- Tab-Pane 新增 name 为 label 的具名 `slot`,用于实现自定义标签内容 - -#### 修复: -- DatePicker 的 `change` 事件错误地触发多次的问题,#2070 -- Tabs 组件内 tab-pane 初始化时宽度抖动的问题,#1883 - -#### 非兼容性更新: -- 最低兼容 Vue 2.1.6 -- Form validateField() 方法回调的参数更新 -- Alert 取消了 render-content 属性,现在自定义模板需要通过默认 slot 传入 -- Input 和 Select 盒模型从 `block` 修改为 `inline-block` -- Tabs 盒模型从 `inline-block` 修改为 `block`,Tab-Pane 移除 `label-content` 属性 -- Autocomplete 下拉列表现在直接插入到 `` 标签下,而不是 `` 下 - -### 1.0.9 -*2016-12-27* - -- 修复 DatePicker 不能正确触发 input 事件的问题,现在只有当日期改变时才触发,#1834 -- 修复 Tree 在 Firefox 下会提示 event is undefined 的问题,#1945 -- 新增 DatePicker 的 `change` 事件,返回和输入框一致的格式化后的值,#1841 -- 新增 Table 的 `header-align` 属性,#1424 -- 修复单选的 Table 在数据移除时,高亮状态仍然存在的问题,#1890 -- 修复可搜索的 Select 在选项较多时的卡顿问题,#1933 -- 修复多选的 Select 在禁用状态下仍然能够手动删除选中项的问题,#2001 -- 修复 Col `xs` 分辨率下样式无效的问题,#2011 -- 新增 Tab 组件的 `value` 属性并支持 `v-model` 用法,#2008 -- 修复 Input Number 在某些条件下 change 事件被触发多次的问题,#1999 -- 新增 DatePicker 的 `clearable` 属性,#1994 -- 修复 Form 异步验证时某些条件下总是验证通过的问题,#1936 - -### 1.0.8 -*2016-12-20* - -- 修复 Popup 在叠加使用时阻止事件冒泡,#1677 -- 修复 DatePicker 类型为 datetimerange 时无法选择时间的问题,#1758 -- 修复 Slider 的 `change` 事件不能正确触发的问题,#1809 -- 修复 Loading 的 spinner 在某些情况下转动时出现碎片的问题,#1786 -- 新增 Select 的 `loading-text`、`no-data-text`、`no-match-text` 属性和 `visible-change` 事件,#1849 -- 新增 DatePicker、Select 和 Tooltip 的 `popper-class` 属性,#1806 -- 新增 Tree 的 `expand-on-click-node`、`current-node-key` 属性和 `current-change` 事件,#1805 #1807 -- 新增 Table `row-click` 事件的第三个参数 `column`,#1808 -- 修复 Checkbox 的在路由切换时因为 computed 属性被缓存导致的bug,#1860 -- 新增 TabPanel `label-content` 渲染钩子方法中增加 tab 实例的参数,#1857 -- 新增 NavMenu 组件增加无限级子菜单(vertical模式)的支持,#1851 -- 新增 Checkbox 现在支持不绑定 value 也可以正常使用,#1818 -- 新增 Progress 的 `onProgress` 钩子函数,#1782 -- 修复 Tab 组件 active bar 在动态 label 下没有更新的问题,#1761 -- 新增 Table 的 `filter-change` 事件和 TableColumn 的 `column-key` 属性,#1876 -- 新增 Dropdown `hide-on-click` 属性,#1879 - -### 1.0.7 -*2016-12-14* - -- 修复 DatePicker 在有值的情况下 hover 清空按钮时会错误地显示弹框 -- 修复 DatePicker 设置默认值为 null 会错误地显示时间值 -- 新增 Table 的 `row-contextmenu` 事件和 `max-height` 属性,#1663 #1674 -- 新增 MessageBox 的 `customClass` 属性,#1707 -- 新增 Message 和 Notification 的 `iconClass` 和 `customClass` 属性,#1671 -- 新增 Table 支持 empty slot,#1737 -- 改进 InputNumber change 事件增加 old value 的参数 - -### 1.0.6 -*2016-12-09* - -- 新增 Tabs 组件的 `disabled` 属性,#1620 -- 新增 DatePicker 的 input 支持 `size`,#1440 -- 修复 DatePicker 为 `datetimerange` 类型并设置初始值时,面板未显示正确日期的问题,#1129 -- 修复 DatePicker 切换年份时显示异常的问题,#1607 -- 修复 DatePicker 点击 icon 未触发 clickoutside 的问题,#1604 -- 修复 TimePicker 点击清空按钮后再次点击不会更新初始值的问题,#1583 -- 修复 Select 远程搜索且 value 为对象类型时的显示问题,#1593 -- 修复 Select 为 `disabled` 时,`clearable` 仍然可以工作的问题,#1619 -- 修复 自定义背景颜色的 Switch 在动态切换 `disabled` 时,背景颜色错误的问题,#1627 -- 修复 Table 的一些样式问题 - -### 1.0.5 -*2016-12-06* - -- 修复 Select 异步获取选项和绑定值时,输入框中显示 value 而不是 label 的问题,#1537 -- 修复 Select 的初始值为一个空对象时会报错的问题,#1533 -- 修复 Select 远程搜索有时不显示下拉框的问题,#1531 -- 修复 Slider 拖动释放后,滑块有几率产生一小段位移的问题,#1546 -- 修复 IE9 下 Steps 的样式问题,#1543 -- 新增 Upload 对所有文件类型生成 URL 的功能,#1530 -- 修复 TimeSelect 的样式,移除 flexbox, #1335 - -### 1.0.4 -*2016-12-02* - -- 新增 Input Number 的 `controls` 属性,#1473 -- 修复 Checkbox Group、Radio Group 在异步赋值时出现的问题,#1511 #1514 -- 增加 Notification 的 `offset` 属性,#1419 -- 修复 Slider 在快速拖动时取值不准确的问题,#1458 -- 修复 Slider 在某些情况下绑定值为多位小数的问题,#1450 -- 修复 Select 在某些情况下绑定值和显示值不同步的问题 -- 新增 Select 的 `multiple-limit` 和 `allow-create` 属性 -- 修复 Tree 的叶子节点在点击展开后三角图标不消失的问题,#1438 -- 修复 Tree 有时在获取子级数据后视图不更新的问题,#1439 -- 修复 Table 在 windows 系统下的若干样式问题,#1464 #1507 -- 修复 Table 多级表头与固定列同时使用时,多级表头第一列 label 不显示的问题,#1451 -- 新增 Table 的 `row-dblclick` 事件,#1362 - -### 1.0.3 -*2016-11-28* - -- 修复 Pagination 的 `currentPage` 在某些情况下设置无效的情况,#1336 -- 修复 DatePicker 为 `month` 且设置了 `disabledDate` 的情况下切换年份时界面未更新的问题,#1158 -- 修复 DatePicker readonly 时未禁用清除按钮的问题,#1238 -- 修复 Slider 绑定值为 `NaN` 以及 `step` 小于 1 时无法正常工作的问题,#1239 #1282 -- 增加 Table 的多表头功能,#1312 -- 增加 Table 的 `rowStyle` 属性,#1348 -- 修复 TableColumn 的某些属性无法动态设置的问题,#1314 -- 增加 Tree 的 `filter-node-method` 属性和 `filter` 方法,#1257 -- 增加 Tree 的 `getCheckedKeys` 和 `setCheckedKeys` 方法,#1254 -- 重构 Checkbox/Radio 支持嵌套 Group 绑定值,#1152 -- 修复 Popper 在 keep-alive 下无法触发销毁的问题,#1359 -- 增加 Form 中深对象验证的支持,#1363 -- 增加 Autocomplete 里的 `append` 和 `prepend` API,#1369 -- 增加 Pagination `pageSizes` 属性的动态支持,#1372 -- 增加 Radio Button 自定义选中按钮样式的 API,#1380 -- 增加 Menu Group 支持通过 slot 来设置 title,#1382 -- 修复 DatePicker 选择年的 bug,#1385 -- 新增 Upload 默认已上传的文件列表 API,#1393 -- 增加 Checkbox `label` 属性绑定的多类型支持,#1400 -- 增加 Tree 的 `setChecked` 方法,#1422 - -### 1.0.2 -*2016-11-18* - -- 新增 Table `context` 属性,可以指定自定义 column 内部可获取的上下文,#1161 -- 新增 多种语言支持 -- 修复 没有正确动态渲染语言的问题,#1160 -- 新增 Alert 的 `render-content` 属性,#568 -- 新增 Button 的 focus 样式,#982 -- 修复 Switch 的 `change` 事件触发时机错误的问题,#1162 -- 修复 TimeSelect 开始时间设置 `00:00` 后会被禁用的问题,#676 -- 新增 Table `show-header` 属性,`header-click` 事件。#1195 -- 完善 Table 的 `height` 属性,当 `height` 属性为字符串的时候,表示 Table 的高度受外部样式控制,#1195 -- 修复 Table 的 `selection-change` 在某些情况下不触发的问题,#1198 -- 修复 Table 动态修改 `fixed` 属性可能会造成锁定列不消失的问题,#1182 - -### 1.0.1 -*2016-11-16* - -- 修复 Pagination 错误地多次触发 `current-change` 事件的问题 -- 修复 Switch 在 Form 中的样式错误,#967 -- 修复 Loading 在某些情况下错误地锁定 `body` 滚动的问题,#968 -- Col 组件的 `span` 属性不再是必填属性,在省略的情况下其默认值为 `24` -- 新增 DatePicker `disabled` 和 `editable` 属性,#976 -- 修复 DatePicker 的 `readonly` 与原生行为一致,现在通过设置 editable=false 禁止输入但是可通过弹框选日期,#976 -- 新增 Message 和 Notification 的 `close` 方法,用于手动关闭实例 -- 新增 DatePicker 清除功能,#759 -- 修复 Form 重置日期报错,#937 -- 修复 Tab 设置active-name不是首个tab时的样式问题,#1034 -- 修复 Table 的 inline-template 在 vue-loader 9.9.0 渲染报错 -- 新增 Step 支持内容居中对齐,#994 -- 修复 Upload 单独引入时提示 Progress 组件不存在,#1013 -- Layout 支持响应式布局 -- 新增 Dialog `show-close` 属性 -- 修复 和 `vue-i18n` 一起使用时,未初始化 i18n 会报错,#973 -- 修复 DatePicker 设置初始值后界面未更新 #1050 -- 修复 DatePicker 月份选择器直接切换年份并未更新年份数据 #1070 -- 新增 $loading 服务,用以调用 Loading -- 新增 Popover 可手动控制显示隐藏,将 trigger 设置为 `manual` -- 新增 Tree 的 `nodeKey`、`emptyText`、`checkStrictly`、`defaultExpandAll`、`autoExpandParent`、`defaultCheckedKeys`、`defaultExpandedKeys` 属性,`setCheckedNodes` 方法。 - - -### 1.0.0 - -*2016-11-9* - -- 修复 TimePicker 选择范围时结束时间小于开始时间会重置开始时间, #894 -- 修复结合 `vue-i18n` 使用时会提示不能覆盖 `$t` 方法的问题 -- 新增 Loading 自定义加载文案的功能,并优化了视觉表现 -- 修复 Input blur 事件的参数不是 event 对象的问题 -- `window.ELEMENT.locale.use` 改成 `window.ELEMENT.locale` - -### 1.0.0-rc.9 - -*2016-11-07* - -- 新增 MessageBox 确定按钮自动获取焦点, #721 -- 修复 Popover focus 失效, #734 -- 修复 Clickoutside 报错, #729 -- 修复 DatePicker 选择日期范围时当选中同一天再调整时间会出错 -- 更新 TimePicker 滚动条在 IE10+ 下隐藏 -- 新增 Dropdown 的 command api #432 -- 修复 Slider 在 Form 中的显示问题 -- 修复 Upload 在 onSuccess、onError 钩子无法拿到服务端返回信息的问题 -- 改善 tabs 现在支持动态更新 -- Table 新增 highlightCurrentRow 属性、新增 current-change 事件 -- TableColumn 的 showTooltipWhenOverflow 更名为 showOverflowTooltip(两个属性均可用) -- TableColumn 新增属性 render-header -- Pagination 新增属性 pageCount -- DatePicker 修复重置 value 后默认选中日期没有重置, #878 + - 新增 `value-format` 属性,支持对绑定值的格式进行自定义,#7367 +- TimePicker + - 新增 `arrow-control` 属性,提供另一种交互形式,#7438 +- DateTimePicker + - 新增 `time-arrow-control` 属性,用于开启时间选择器的 `arrow-control`,#7438 +- Form + - Form 和 Form-item 新增 `size` 属性,用于控制表单内组件的尺寸,#7428 + - `validate` 方法在不传入 callback 的情况下返回 promise,#7405 + +#### 修复 + - 修复部分组件的 `Injection "elFormItem" not found` 报错 #### 非兼容性更新 + - DatePicker 的 `change` 事件参数现在为组件的绑定值,格式由 `value-format` 控制 + - Input 组件的 `change` 事件现在仅在输入框失去焦点或用户按下回车时触发,与原生 input 元素一致。如果需要实时响应用户的输入,可以使用 `input` 事件 + - 最低兼容 Vue 2.5.2 版本 -- Upload on-error 钩子函数参数变更为 function(err, response, file), on-success 钩子函数参数变更为 function(response, file, fileList) +### 2.0.0-alpha.2 +*2017-10-05* -### 1.0.0-rc.8 +- 修正 `theme-chalk` 的主色,#7351 +- 修复使用 Dropdown 时控制台报错的问题,#7322 +- 修复使用 Menu 时控制台报错的问题,#7321 +- ColorPicker 新增 `popper-class` 属性,#7351 +- 修复 Button 的 `disabled` 属性无效的问题,#7352 -*2016-10-28* +### 2.0.0-alpha.1 +*2017-09-30* -- 修复 Form reset method 对日期控件不起效的问题 -- 修复 Dialog/Message Box/Tooltip/Popover/... 等若干组件的样式错误 -- 修复 Message Box 的 prompt 在打开时会携带之前的验证状态的问题 -- 修复 Autocomplete 的弹出框不会消失 #439 -- 新增 Input 图标的点击事件 #444 -- 修复 Loading 关闭后有几率滚动失效的问题 -- 修复 远程搜索的 Select 不能正确渲染默认初始值的问题 -- 修复 Switch 的 width 属性无效的问题 -- Table 增加 rowClassName 属性 -- TableColumn 增加 fixed 属性,可选值:true, false, left, right -- TableColumn 增加属性:filters、filterMultiple、filterMethod、filteredValue -- TableColumn[type="selection"] 增加 selectable 属性 -- 修复 Input textarea 在动态赋值时 autosize 没有触发的问题 -- 修复 Input Number min max 属性设置后点击加减出现的崩溃的bug -- 优化 TimePicker/DatePicker 输入日期行为 -- 修复 DatePicker 输入禁用状态的日期却生效的问题 #484 -- 新增 Slider 的 disabled 属性 -- 新增 Menu 的 menu-trigger 属性 -- 新增 i18n 的支持 +#### 新特性 +- 综合 + - 新增 `theme-chalk` 主题 + - 增强以下组件的可访问性:Alert、AutoComplete、Breadcrumb、Button、Checkbox、Collapse、Input、InputNumber、Menu、Progress、Radio、Rate、Slider、Switch 和 Upload + - 新增布局组件 Container、Header、Aside、Main 和 Footer +- Button + - 新增 `round` 属性,用于圆角按钮 #6643 +- TimeSelect + - 可以用 `Up`、`Down` 导航,用 `Enter` 选中时间 #6023 +- TimePicker + - 可以用方向键导航,用 `Enter` 选中时间 #6050 + - 新增 `start-placeholder` 和 `end-placeholder`,用于设置范围选择时两个输入框的占位符 #7169 +- Tree + - 子节点在首次被展开之前不进行渲染 #6257 + - 新增 `check-descendants` 属性,设置 `lazy` 模式下勾选节点时,是否完全展开整个子树 #6235 +- Tag + - 新增 `size` 属性 #7203 +- Datepicker + - type 为 `datetimerange` 时可以使用 `timeFormat` 格式化时间选择器 #6052 + - 新增 `start-placeholder` 和 `end-placeholder`,用于设置范围选择时两个输入框的占位符 #7169 +- MessageBox + - 新增 `closeOnHashChange` 属性 #6043 + - 新增 `center` 属性,提供居中布局 #7029 + - 新增 `roundButton` 属性,使得内部按钮为圆角按钮 #7029 + - 新增 `dangerouslyUseHTMLString` 属性,使得 `message` 支持传入 HTML 字符串* #6043 +- Dialog + - 新增 `width`、`fullscreen`、`append-to-body` 属性,支持嵌套使用 + - 新增 `center` 属性,提供居中布局 #7042 + - 新增 `focus-after-closed`、`focus-after-open`属性,支持无障碍访问 #6511 +- ColorPicker + - 增加手动输入色值的支持 #6167 + - 新增 `size` 属性,用于控制组件的大小 #7026 + - 新增 `disabled` 属性,用于禁用组件 #7026 +- Message + - 图标部分使用 icon 代替图片,从而支持通过 CSS 修改图标背景色 #6207 + - 新增 `dangerouslyUseHTMLString` 属性,使得 `message` 属性支持传入 HTML 字符串* #6207 + - 新增 `center` 属性,提供居中布局 #6875 +- Notification + - 新增 `position` 属性,用于配置 Notification 出现的位置 #6231 + - 新增 `dangerouslyUseHTMLString` 属性,使得 `message` 属性支持传入 HTML 字符串* #6231 + - 新增 `showClose` 属性,用于隐藏关闭按钮 #6402 +- Rate + - 新增 `show-score` 属性,控制是否在右侧显示当前分数 #6295 +- Tabs + - 新增 `tab-position` 属性,控制选项面板内容显示的上、下、左、右四个方向 #6096 +- Radio + - 增加 `border` 属性和 `size` 属性 #6690 +- Checkbox + - 增加 `border` 属性和 `size` 属性 #6690 +- Alert + - 新增 `center` 属性,提供居中布局 #6876 +- Menu + - 新增 `background-color`、`text-color` 和 `active-text-color` 属性,分别用于设置菜单的背景色、菜单的文字颜色和当前激活菜单的文字颜色 #7064 +- Form + - 新增 `inline-message` 属性,设置后校验信息会以行内样式显示 #7032 + - 新增 `status-icon` 属性,用于在输入框中显示校验结果反馈图标 #7032 +- Input + - 新增 `suffix`、`prefix` 的 slot,以及 `suffixIcon`、`prefixIcon` 属性,用于给输入框内部增加前置和后置内容 #7032 +- Breadcrumb + - 新增 `separator-class` 属性,可使用图标作为分隔符 #7203 +- Steps + - 新增 `simple` 属性,用于开启简洁风格的步骤条 #7274 +- Pagination + - 新增 `prev-text` 和 `next-text` 属性,用于自定义上一页和下一页的文本 #7005 + +#### 修复 +- DatePicker + - 选择周数时,`v-model` 结果返回该周第二天的问题 #6038 + - 在 `daterange` 类型中,第一次的输入会被清空的问题 #6021 +- DateTimePicker + - 和 TimePicker 相互影响的问题 #6090 + - 选择时间小时和秒可超出限制的问题 #6076 +- TimePicker + - 失去焦点时无法正确改变 `v-model` 值的问题 #6023 +- Dialog + - 当含有下拉框时,下拉框的打开和关闭会造成文字虚晃的问题 #6088 +- Select + - 提升性能,修复组件销毁时可能导致 Vue dev-tool 卡死的问题 #6151 #### 非兼容性更新 +- 综合 + - 移除 `theme-default` + - 表单组件的 `change` 事件和 Pagination 的 `current-change` 事件现在仅响应用户交互 + - Button 和表单组件的 `size` 属性不再接受 `large` 值,可接受 `medium`、`small` 和 `mini` + - 为了方便使用第三方图标,Button 的 `icon` 属性、Input 的 `prefix-icon` 和 `suffix-icon` 属性、Steps 的 `icon` 属性现在需要传入完整的图标类名 +- Dialog + - 移除 `size` 属性。现在 Dialog 的尺寸由 `width` 和 `fullscreen` 控制 + - 移除通过 `v-model` 控制 Dialog 显示和隐藏的功能 +- Rate + - `text-template` 属性更名为 `score-template` +- Dropdown + - `menu-align` 属性变更为 `placement`,增加更多方位属性 +- Transfer + - `footer-format` 属性更名为 `format` +- Switch + - `on-text` 和 `off-text` 属性不再有默认值 +- Tag + - `type` 属性现在支持 `success`、`info`、`warning` 和 `danger` 四个值 + - `close-transition` 属性更名为 `disable-transitions` +- Menu + - 移除 `theme` 属性。现在通过 `background-color`、`text-color` 和 `active-text-color` 属性进行颜色的自定义 +- Input + - 移除 `icon` 属性。现在通过 `suffix-icon` 属性或者 `suffix` 具名 slot 来加入尾部图标 + - 移除 `on-icon-click` 属性和 `click` 事件。现在如果需要为输入框中的图标添加点击事件,请以具名 slot 的方式添加图标 +- Autocomplete + - 移除 `icon` 和 `on-icon-click` 属性。现在通过 `prefix` 和 `suffix` 具名 slot 来加入图标 + - 移除 `custom-item` 属性。现在通过 `scoped slot` 自定义输入建议列表项的内容 +- Table + - 移除通过 `inline-template` 自定义列模板的功能 +- Steps + - 移除 `center` 属性 + - 现在步骤条将默认充满父容器 -- Tabs 组件的 click 和 remove 事件回调参数从 name 改为事件对应的 tab 组件实例 -- 全屏 Loading 现在默认不再锁定屏幕滚动。如果需要的话,可添加 `lock` 修饰符 -- Table 删除属性 fixedColumnCount、customCriteria、customBackgroundColors、selectionMode -- Table 的 selectionchange、cellmouseenter、cellmouseleave、cellclick 事件更名为 selection-change、cell-mouse-enter、cell-mouse-leave、cell-click。 -- Pagination 的 currentchange、sizechange 事件更名为 current-change、size-change - -### 1.0.0-rc.7 - -*2016-10-13* - -- Upload 新增 Data 属性支持额外数据的传输 -- DatePicker 修复 `$t` 报错 -- Popper 重构 vue-popper -- Pagination 修复输入后再点击切换,输入框的值不更新 -- Step: 修复自定义 icon 的样式 -- 修复 Tree 组件 checkbox 点击失效的问题 -- Breadcrumb 增加路由跳转的功能 -- 修复 可清空的 Select 中清空按钮的不恰当动画 -- DatePicker 修复使用 Tab 键切换时弹出框未隐藏 - -### 1.0.0-rc.6 - -*2016-10-11* - -- 修复 Tabs 切换后 Tab-panel 被销毁的问题 -- 修复 TimePicker 错误的隐藏面板 -- 修复 Table Cell 的样式, #204 -- 修复 Menu default-active 属性不能为空的问题, #200 -- 修复 Menu unique-opened 开启后无法展开子菜单的问题, #200 -- 为 Notification 和 Message 的不同 type 添加独立的调用方法 -- 为 Message Box 和 Dialog 添加 lockScroll 属性,用于定义是否在弹框出现时将 body 滚动锁定 -- 新增 Input textarea 类型的 rows, autosize 属性 -- 为 Tree 添加 getCheckedNodes 方法和 node-click、check-change 回调 -- 新增 DatePicker 禁用日期功能 #253 -- 修复 多选可搜索的 Select 下拉选项自动展开的问题 -- 为 Dialog 添加 top 属性 -- 修复 Menu 组件垂直模式下开启 router 属性会立刻跳转的问题 #295 -- Checkbox change 事件现在只能被人为的交互操作所触发 -- 新增 Checkbox checked 属性 -- 修复 Select 远程搜索时使用键盘选择选项无法更新 v-model 的问题 - -#### 非兼容性更新 - -- Dropdown 组件重构,现在可以以更加的灵活方便的形式来自定义触发下拉的元素,以及可以定义下菜单的样式 - -### 1.0.0-rc.5 - -*2016-09-30* - -- 修复 Table 头部不同步的问题 -- 修复 Menu 组件 default-active 绑定动态值无法更新的问题 -- 新增特性 Menu 组件中若选中子菜单项现在会自动展开所有父级菜单 -- 修复 vue-popper 引入 popper 路径错误 -- 修复 DatePicker 初始值是合法时间类型但无法设置成功的问题 -- 修复 Pagination 的图标没有正确切换样式, #163 -- 修复 Row 组件 align 属性不生效的问题 -- 修复 Tabs 关闭标签页时对应 Tab-panel 没有移除的问题 -- 新增 Menu 组件中 MenuItem 的 route 属性 - -#### 非兼容性更新 -- Menu 组件的 `unique-opend` 属性修正为 `unique-opened` - -### 1.0.0-rc.4 - -*2016-09-21* - -- 修复 Select 多选时选项变为空数组后 placeholder 不出现的问题 -- 修复 Time Picker 时间选择可滚动 -- 修复 Tooltip 有时会错位的问题 -- 修复 丢失的组件 css 文件 -- 修复 Table 在 Safari 下边框没对齐 -- 修复 TimePicker 图标样式被默认图标样式覆盖 -- 修复 在 mounted 钩子函数中改变 Select 绑定值不生效的问题 -- 修复 在多个依次出现的 Dialog 或 Message Box 全部关闭后页面有几率不可滚动的问题 -- 修复 Table 初次渲染时宽度重新计算 #78 -- 新增 时间、日期选择器增加 align 属性,可设置对齐方式 -- 新增 TableColumn 的 align 属性 -- 新增 autocomplete 的 select 事件 - -#### 非兼容性更新 -- Select 组件样式的 `display` 属性默认值修改为 `block` - -### 1.0.0-rc.3 - -*2016-09-09* - -- 修复 Slider 存在输入框时,输入框与 Slider 的值不同步的问题 -- 修复 Steps 样式 -- 修复 无法安装的问题 - -### 1.0.0-rc.2 - -*2016-09-09* - -- 修复 Upload 上传的问题,并增加上传成功和失败的钩子函数 -- Button 组件增加 `nativeType` 属性,用于组件内 `