mirror of https://github.com/ElemeFE/element
Changelog: update for 2.0.0-rc.1
parent
25e8503d65
commit
768981c1aa
|
@ -1,47 +1,81 @@
|
|||
## Changelog
|
||||
|
||||
### 2.0.0-rc.1
|
||||
|
||||
*2017-10-25*
|
||||
|
||||
#### 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
|
||||
|
||||
#### 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
|
||||
- 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
|
||||
- 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
|
||||
- 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
|
||||
- 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
|
||||
- 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
|
||||
- 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
|
||||
- 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
|
||||
- `sort-method` now aligns with `Array.sort`. It should return a number instead of a boolean
|
||||
|
||||
### 2.0.0-alpha.3
|
||||
|
||||
|
@ -219,685 +253,4 @@ in `lazy` mode #6235
|
|||
- Now the Steps will fill its parent container by default
|
||||
|
||||
##
|
||||
<i><sup>*</sup> 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.</i>
|
||||
|
||||
### 1.4.8
|
||||
|
||||
*2017-10-24*
|
||||
|
||||
- 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)
|
||||
|
||||
### 1.4.7
|
||||
|
||||
*2017-10-16*
|
||||
|
||||
- Fixed compatibility of Autocomplete and Vue 2.5.x, #6942 (by @rennai)
|
||||
- Added `allow-focus` attribute for Switch, #7494 (by @breadadams)
|
||||
|
||||
### 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)
|
||||
- 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
|
||||
- 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
|
||||
- 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 `<body>`, not `<el-autocomplete>` 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.
|
||||
<i><sup>*</sup> 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.</i>
|
|
@ -1,5 +1,38 @@
|
|||
## 更新日志
|
||||
|
||||
### 2.0.0-rc.1
|
||||
*2017-10-25*
|
||||
|
||||
#### 新特性
|
||||
- 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` 属性,用于自定义索引值
|
||||
|
||||
#### 修复
|
||||
- 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*
|
||||
|
||||
|
@ -211,817 +244,4 @@
|
|||
- 现在步骤条将默认充满父容器
|
||||
|
||||
##
|
||||
<i><sup>*</sup> 在网站上动态渲染任意 HTML 是非常危险的,因为容易导致 [XSS 攻击](https://en.wikipedia.org/wiki/Cross-site_scripting)。因此请在 `dangerouslyUseHTMLString` 打开的情况下,确保 `message` 的内容是可信的,**永远不要**将用户提交的内容赋值给 `message` 属性。</i>
|
||||
|
||||
### 1.4.8
|
||||
*2017-10-24*
|
||||
|
||||
- 修复鼠标在折叠的 Menu 子菜单中快速移动时会将菜单收起的问题,#7579
|
||||
- 修复 DateTimePicker 的快捷菜单过长时,最后一项会被隐藏的问题,#7567(by @DuLinRain)
|
||||
- 新增 Dropdown 的 `show-timeout` 和 `hide-timeout` 属性,#7621(by @phongkt-dev)
|
||||
|
||||
### 1.4.7
|
||||
*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)
|
||||
- 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
|
||||
- Upload
|
||||
- 新增 `disabled` 属性,#4473
|
||||
- `on-change` 事件现在也会在添加文件后触发,#4447
|
||||
- 新增 `abort` 方法,#4575
|
||||
- Switch 新增 `on-value` 和 `off-value` 属性,支持自定义两种状态的值,#4403
|
||||
- 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 下拉列表现在直接插入到 `<body>` 标签下,而不是 `<el-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
|
||||
|
||||
#### 非兼容性更新
|
||||
|
||||
- Upload on-error 钩子函数参数变更为 function(err, response, file), on-success 钩子函数参数变更为 function(response, file, fileList)
|
||||
|
||||
### 1.0.0-rc.8
|
||||
|
||||
*2016-10-28*
|
||||
|
||||
- 修复 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 的支持
|
||||
|
||||
#### 非兼容性更新
|
||||
|
||||
- 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` 属性,用于组件内 `<button>` 标签的原生 `type` 属性,默认值为 `button`
|
||||
- 修复 Table 自定义模板中渲染静态数据错误
|
||||
- 修复 Table 中被固定列的高度不与其他列的高度协调的问题
|
||||
- 修复 Time Picker 的 `picker-options` 属性
|
||||
- 修复一些组件图标丢失的问题
|
||||
- 修复 远程搜索的 Select 在 Form 中的显示问题
|
||||
- 修复 Input Number 输入小数和非数字值时的问题
|
||||
- 修复 Select 选中 value 为 0 的值时绑定值不更新的问题
|
||||
- 修复 Tree 取消选择某节点后,其同级节点均被取消的问题
|
||||
- 修复 Upload 的 headers 属性设置无效
|
||||
- 修复 Pagination 包含 sizes 子组件时 page-size 无效的问题
|
||||
- 优化 增加打包成 commonjs 且不压缩的文件,默认引入 commonjs
|
||||
|
||||
#### 非兼容性更新
|
||||
- Menu 组件 `mode` 属性默认值修改为 `vertical`
|
||||
- Progress 组件升级,增加环形进度条的类型,以及增加了诸多属性,详细请查阅文档
|
||||
- Popover 现在可以通过 slot 指定 reference
|
||||
|
||||
### 1.0.0-rc.1
|
||||
|
||||
*2016-08-30*
|
||||
|
||||
- Element 1.0.0-rc.1 发布
|
||||
<i><sup>*</sup> 在网站上动态渲染任意 HTML 是非常危险的,因为容易导致 [XSS 攻击](https://en.wikipedia.org/wiki/Cross-site_scripting)。因此请在 `dangerouslyUseHTMLString` 打开的情况下,确保 `message` 的内容是可信的,**永远不要**将用户提交的内容赋值给 `message` 属性。</i>
|
|
@ -1,6 +1,6 @@
|
|||
var fs = require('fs');
|
||||
var path = require('path');
|
||||
var version = process.env.VERSION || require('../../package.json').version;
|
||||
var content = { '1.0.9': '1.0', '1.1.6': '1.1', '1.2.9': '1.2', '1.3.7': '1.3', '1.4.7': '1.4' };
|
||||
var content = { '1.0.9': '1.0', '1.1.6': '1.1', '1.2.9': '1.2', '1.3.7': '1.3', '1.4.8': '1.4' };
|
||||
if (!content[version]) content[version] = '2.0';
|
||||
fs.writeFileSync(path.resolve(__dirname, '../../examples/versions.json'), JSON.stringify(content));
|
||||
|
|
|
@ -1,8 +1,55 @@
|
|||
## Custom theme
|
||||
Element uses BEM-styled CSS so that you can override styles easily. But if you need to replace styles at a large scale, e.g. change the theme color from blue to orange or green, maybe overriding them one by one is not a good idea, and this is where our theme customization tools kick in.
|
||||
Element uses BEM-styled CSS so that you can override styles easily. But if you need to replace styles at a large scale, e.g. change the theme color from blue to orange or green, maybe overriding them one by one is not a good idea. We provide three ways to change the style variables.
|
||||
|
||||
### Changing theme color
|
||||
Under construction.
|
||||
If you just want to change the theme color of Element, the [theme preview website](https://elementui.github.io/theme-chalk-preview/#/en-US) is recommended. The theme color of Element is bright and friendly blue. By changing it, you can make Element more visually connected to specific projects.
|
||||
|
||||
The above website enables you to preview theme of a new theme color in real-time, and it can generate a complete style package based on the new theme color for you to download directly (to import new style files in your project, please refer to the 'Import custom theme' or 'Import component theme on demand' part of this section).
|
||||
|
||||
### Update SCSS variables in your project
|
||||
`theme-chalk` is written in SCSS. If your project also uses SCSS, you can directly change Element style variables. Create a new style file, e.g. `element-variables.scss`:
|
||||
|
||||
```html
|
||||
/* theme color */
|
||||
$--color-primary: teal;
|
||||
|
||||
/* icon font path, required */
|
||||
$--font-path: '../node_modules/element-ui/lib/theme-chalk/fonts';
|
||||
|
||||
@import "../node_modules/element-ui/packages/theme-chalk/src/index";
|
||||
```
|
||||
|
||||
Then in the entry file of your project, import this style file instead of Element's built CSS:
|
||||
```JS
|
||||
import Vue from 'vue'
|
||||
import Element from 'element-ui'
|
||||
import './element-variables.scss'
|
||||
|
||||
Vue.use(Element)
|
||||
```
|
||||
|
||||
Note that it is required to override icon font path to the relative path of Element's font files. You can edit the following variables in this way:
|
||||
|
||||
| Variable | Description | Default value |
|
||||
| ------ | ---- | ------ |
|
||||
| $--sm | `sm` breakpoint for responsive layout | 768px |
|
||||
| $--md | `md` breakpoint for responsive layout | 992px |
|
||||
| $--lg | `lg` breakpoint for responsive layout | 1200px |
|
||||
| $--xl | `xl` breakpoint for responsive layout | 1920px |
|
||||
| $--color-primary | theme color | #409EFF |
|
||||
| $--color-success | color for success | #67C23A |
|
||||
| $--color-warning | color for warning | #EB9E05 |
|
||||
| $--color-danger | color for danger | #FA5555 |
|
||||
| $--color-info | color for info | #878D99 |
|
||||
| $--color-text-primary | color for primary texts | #2D2F33 |
|
||||
| $--color-text-regular | color for regular texts | #5A5E66 |
|
||||
| $--color-text-secondary | color for secondary texts | #878D99 |
|
||||
| $--color-text-placeholder | color for placeholder texts | #B4BCCC |
|
||||
| $--border-color-base | base border color | #D8DCE5 |
|
||||
| $--border-color-light | light border color | #DFE4ED |
|
||||
| $--border-color-lighter | lighter border color | #E6EBF5 |
|
||||
| $--border-color-extra-light | extra light border color | #EDF2FC |
|
||||
| $--font-path | icon font file path | 'fonts' |
|
||||
|
||||
### More customizations
|
||||
If you need more customization than just changing the theme color, please follow these steps:
|
||||
|
|
|
@ -1849,10 +1849,10 @@ Configuring rowspan and colspan allows you to merge cells
|
|||
```
|
||||
:::
|
||||
|
||||
### 自定义索引
|
||||
### Custom index
|
||||
|
||||
自定义 `type=index` 列的行号。
|
||||
:::demo 通过给 `type=index` 的列传入 `index` 属性,可以自定义索引。该属性传入数字时,将作为索引的起始值。也可以传入一个方法,它提供当前行的行号(从 `0` 开始)作为参数,返回值将作为索引展示。
|
||||
You can customize row index in `type=index` columns.
|
||||
:::demo To customize row indices, use `index` attribute on <el-table-column> with `type=index`. If it is assigned to a number, all indices will have an offset of that number. It also accepts a method with each index (starting from `0`) as parameter, and the returned value will be displayed as index.
|
||||
|
||||
```html
|
||||
<template>
|
||||
|
@ -1865,23 +1865,60 @@ Configuring rowspan and colspan allows you to merge cells
|
|||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="date"
|
||||
label="日期"
|
||||
label="Date"
|
||||
width="180">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="name"
|
||||
label="姓名"
|
||||
label="Name"
|
||||
width="180">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="address"
|
||||
label="地址">
|
||||
label="Address">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
tableData: [{
|
||||
date: '2016-05-03',
|
||||
name: 'Tom',
|
||||
state: 'California',
|
||||
city: 'Los Angeles',
|
||||
address: 'No. 189, Grove St, Los Angeles',
|
||||
zip: 'CA 90036',
|
||||
tag: 'Home'
|
||||
}, {
|
||||
date: '2016-05-02',
|
||||
name: 'Tom',
|
||||
state: 'California',
|
||||
city: 'Los Angeles',
|
||||
address: 'No. 189, Grove St, Los Angeles',
|
||||
zip: 'CA 90036',
|
||||
tag: 'Office'
|
||||
}, {
|
||||
date: '2016-05-04',
|
||||
name: 'Tom',
|
||||
state: 'California',
|
||||
city: 'Los Angeles',
|
||||
address: 'No. 189, Grove St, Los Angeles',
|
||||
zip: 'CA 90036',
|
||||
tag: 'Home'
|
||||
}, {
|
||||
date: '2016-05-01',
|
||||
name: 'Tom',
|
||||
state: 'California',
|
||||
city: 'Los Angeles',
|
||||
address: 'No. 189, Grove St, Los Angeles',
|
||||
zip: 'CA 90036',
|
||||
tag: 'Office'
|
||||
}],
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
indexMethod(index) {
|
||||
return index * 2;
|
||||
|
@ -1906,13 +1943,13 @@ Configuring rowspan and colspan allows you to merge cells
|
|||
| highlight-current-row | whether current row is highlighted | boolean | — | false |
|
||||
| current-row-key | key of current row, a set only prop | string,number | — | — |
|
||||
| row-class-name | function that returns custom class names for a row, or a string assigning class names for every row | Function({row, rowIndex})/String | — | — |
|
||||
| row-style | function that returns custom style for a row, or a string assigning custom style for every row | Function({row, rowIndex})/Object | — | — |
|
||||
| row-style | function that returns custom style for a row, or an object assigning custom style for every row | Function({row, rowIndex})/Object | — | — |
|
||||
| cell-class-name | function that returns custom class names for a cell, or a string assigning class names for every cell | Function({row, rowIndex})/String | — | — |
|
||||
| cell-style | function that returns custom style for a cell, or a string assigning custom style for every cell | Function({row, rowIndex})/Object | — | — |
|
||||
| cell-style | function that returns custom style for a cell, or an object assigning custom style for every cell | Function({row, rowIndex})/Object | — | — |
|
||||
| header-row-class-name | function that returns custom class names for a row in table header, or a string assigning class names for every row in table header | Function({row, rowIndex})/String | — | — |
|
||||
| header-row-style | function that returns custom style for a row in table header, or a string assigning custom style for every row in table header | Function({row, rowIndex})/Object | — | — |
|
||||
| header-row-style | function that returns custom style for a row in table header, or an object assigning custom style for every row in table header | Function({row, rowIndex})/Object | — | — |
|
||||
| header-cell-class-name | function that returns custom class names for a cell in table header, or a string assigning class names for every cell in table header | Function({row, rowIndex})/String | — | — |
|
||||
| header-cell-style | function that returns custom style for a cell in table header, or a string assigning custom style for every cell in table header | Function({row, rowIndex})/Object | — | — |
|
||||
| header-cell-style | function that returns custom style for a cell in table header, or an object assigning custom style for every cell in table header | Function({row, rowIndex})/Object | — | — |
|
||||
| row-key | key of row data, used for optimizing rendering. Required if `reserve-selection` is on. When its type is String, multi-level access is supported, e.g. `user.info.id`, but `user.info[0].id` is not supported, in which case `Function` should be used. | Function(row)/String | — | — |
|
||||
| empty-text | Displayed text when data is empty. You can customize this area with `slot="empty"` | String | — | No Data |
|
||||
| default-expand-all | whether expand all rows by default, only works when the table has a column type="expand" | Boolean | — | false |
|
||||
|
@ -1949,7 +1986,7 @@ Configuring rowspan and colspan allows you to merge cells
|
|||
|------|--------|-------|
|
||||
| clearSelection | used in multiple selection Table, clear selection, might be useful when `reserve-selection` is on | selection |
|
||||
| toggleRowSelection | used in multiple selection Table, toggle if a certain row is selected. With the second parameter, you can directly set if this row is selected | row, selected |
|
||||
| toggleRowExpanded | used in expand Table, toggle if a certain row is expanded. With the second parameter, you can directly set if this row is expanded | row, expanded |
|
||||
| toggleRowExpansion | used in expandable Table, toggle if a certain row is expanded. With the second parameter, you can directly set if this row is expanded or collapsed | row, expanded |
|
||||
| setCurrentRow | used in single selection Table, set a certain row selected. If called without any parameter, it will clear selection. | row |
|
||||
| clearSort | clear sorting, restore data to the original order | — |
|
||||
| clearFilter | clear filter | — |
|
||||
|
@ -1963,7 +2000,7 @@ Configuring rowspan and colspan allows you to merge cells
|
|||
| Attribute | Description | Type | Accepted Values | Default |
|
||||
|---------- |-------------- |---------- |-------------------------------- |-------- |
|
||||
| type | type of the column. If set to `selection`, the column will display checkbox. If set to `index`, the column will display index of the row (staring from 1). If set to `expand`, the column will display expand icon. | string | selection/index/expand | — |
|
||||
| index | 如果设置了 `type=index`,可以通过传递 `index` 属性来自定义索引 | string, Function(index) | - | - |
|
||||
| index | customize indices for each row, works on columns with `type=index` | string, Function(index) | - | - |
|
||||
| label | column label | string | — | — |
|
||||
| column-key | column's key. If you need to use the filter-change event, you need this attribute to identify which column is being filtered | string | string | — | — |
|
||||
| prop | field name. You can also use its alias: `property` | string | — | — |
|
||||
|
|
|
@ -1,11 +1,57 @@
|
|||
## 自定义主题
|
||||
Element 默认提供一套主题,CSS 命名采用 BEM 的风格方便使用者覆盖样式。如果你想完全替换主题色或者部分样式,可以使用下面的方法。
|
||||
Element 默认提供一套主题,CSS 命名采用 BEM 的风格,方便使用者覆盖样式。我们提供了三种方法,可以进行不同程度的样式自定义。
|
||||
|
||||
### 仅替换主题色
|
||||
整理中。
|
||||
如果仅希望更换 Element 的主题色,推荐使用[在线主题生成工具](https://elementui.github.io/theme-chalk-preview)。Element 默认的主题色是鲜艳、友好的蓝色。通过替换主题色,能够让 Element 的视觉更加符合具体项目的定位。
|
||||
|
||||
使用上述工具,可以很方便地实时预览主题色改变之后的视觉,同时它还可以基于新的主题色生成完整的样式文件包,供直接下载使用(关于如何使用下载的主题包,请参考本节「引入自定义主题」和「搭配插件按需引入组件主题」部分)。
|
||||
|
||||
### 在项目中改变 SCSS 变量
|
||||
Element 的 theme-chalk 使用 SCSS 编写,如果你的项目也使用了 SCSS,那么可以直接在项目中改变 Element 的样式变量。新建一个样式文件,例如 `element-variables.scss`,写入以下内容:
|
||||
```html
|
||||
/* 改变主题色变量 */
|
||||
$--color-primary: teal;
|
||||
|
||||
/* 改变 icon 字体路径变量,必需 */
|
||||
$--font-path: '../node_modules/element-ui/lib/theme-chalk/fonts';
|
||||
|
||||
@import "../node_modules/element-ui/packages/theme-chalk/src/index";
|
||||
```
|
||||
|
||||
之后,在项目的入口文件中,直接引入以上样式文件即可(无需引入 Element 编译好的 CSS 文件):
|
||||
```JS
|
||||
import Vue from 'vue'
|
||||
import Element from 'element-ui'
|
||||
import './element-variables.scss'
|
||||
|
||||
Vue.use(Element)
|
||||
```
|
||||
|
||||
需要注意的是,覆盖字体路径变量是必需的,将其赋值为 Element 中 icon 图标所在的相对路径即可。使用这种方式可以自定义的变量为:
|
||||
|
||||
| 变量名 | 含义 | 默认值 |
|
||||
| ------ | ---- | ------ |
|
||||
| $--sm | 响应式布局中 `sm` 的断点值 | 768px |
|
||||
| $--md | 响应式布局中 `md` 的断点值 | 992px |
|
||||
| $--lg | 响应式布局中 `lg` 的断点值 | 1200px |
|
||||
| $--xl | 响应式布局中 `xl` 的断点值 | 1920px |
|
||||
| $--color-primary | 主题色 | #409EFF |
|
||||
| $--color-success | 表示「成功」的状态色 | #67C23A |
|
||||
| $--color-warning | 表示「警告」的状态色 | #EB9E05 |
|
||||
| $--color-danger | 表示「危险」的状态色 | #FA5555 |
|
||||
| $--color-info | 表示「信息」的状态色 | #878D99 |
|
||||
| $--color-text-primary | 主要文字色 | #2D2F33 |
|
||||
| $--color-text-regular | 常规文字色 | #5A5E66 |
|
||||
| $--color-text-secondary | 次要文字色 | #878D99 |
|
||||
| $--color-text-placeholder | 占位文字色 | #B4BCCC |
|
||||
| $--border-color-base | 一级边框 | #D8DCE5 |
|
||||
| $--border-color-light | 二级边框 | #DFE4ED |
|
||||
| $--border-color-lighter | 三级边框 | #E6EBF5 |
|
||||
| $--border-color-extra-light | 四级边框 | #EDF2FC |
|
||||
| $--font-path | icon 字体图标路径 | 'fonts' |
|
||||
|
||||
### 深层次的定制
|
||||
如果仅仅改变主题色不能满足你的需求,请按以下步骤进行更深层次的主题定制:
|
||||
如果仅仅改变以上变量不能满足你的需求,请按以下步骤进行更深层次的主题定制:
|
||||
|
||||
#### <strong>安装工具</strong>
|
||||
首先安装「主题生成工具」,可以全局安装或者安装在当前项目下,推荐安装在项目里,方便别人 clone 项目时能直接安装依赖并启动,这里以全局安装做演示。
|
||||
|
|
|
@ -1945,6 +1945,43 @@
|
|||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
tableData: [{
|
||||
date: '2016-05-03',
|
||||
name: '王小虎',
|
||||
province: '上海',
|
||||
city: '普陀区',
|
||||
address: '上海市普陀区金沙江路 1518 弄',
|
||||
zip: 200333,
|
||||
tag: '家'
|
||||
}, {
|
||||
date: '2016-05-02',
|
||||
name: '王小虎',
|
||||
province: '上海',
|
||||
city: '普陀区',
|
||||
address: '上海市普陀区金沙江路 1518 弄',
|
||||
zip: 200333,
|
||||
tag: '公司'
|
||||
}, {
|
||||
date: '2016-05-04',
|
||||
name: '王小虎',
|
||||
province: '上海',
|
||||
city: '普陀区',
|
||||
address: '上海市普陀区金沙江路 1518 弄',
|
||||
zip: 200333,
|
||||
tag: '家'
|
||||
}, {
|
||||
date: '2016-05-01',
|
||||
name: '王小虎',
|
||||
province: '上海',
|
||||
city: '普陀区',
|
||||
address: '上海市普陀区金沙江路 1518 弄',
|
||||
zip: 200333,
|
||||
tag: '公司'
|
||||
}],
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
indexMethod(index) {
|
||||
return index * 2;
|
||||
|
@ -2005,14 +2042,14 @@
|
|||
| filter-change | 当表格的筛选条件发生变化的时候会触发该事件,参数的值是一个对象,对象的 key 是 column 的 columnKey,对应的 value 为用户选择的筛选条件的数组。 | filters |
|
||||
| current-change | 当表格的当前行发生变化的时候会触发该事件,如果要高亮当前行,请打开表格的 highlight-current-row 属性 | currentRow, oldCurrentRow |
|
||||
| header-dragend | 当拖动表头改变了列的宽度的时候会触发该事件 | newWidth, oldWidth, column, event |
|
||||
| expand-change | 当用户对某一行展开或者关闭的时候会触发该事件 | row, expanded |
|
||||
| expand-change | 当用户对某一行展开或者关闭的时候会触发该事件 | row, expandedRows |
|
||||
|
||||
### Table Methods
|
||||
| 方法名 | 说明 | 参数 |
|
||||
| ---- | ---- | ---- |
|
||||
| clearSelection | 用于多选表格,清空用户的选择,当使用 reserve-selection 功能的时候,可能会需要使用此方法 | selection |
|
||||
| toggleRowSelection | 用于多选表格,切换某一行的选中状态,如果使用了第二个参数,则是设置这一行选中与否(selected 为 true 则选中) | row, selected |
|
||||
| toggleRowExpanded | 用于可展开表格,切换某一行的展开状态,如果使用了第二个参数,则是设置这一行展开与否(expanded 为 true 则展开) | row, expanded |
|
||||
| toggleRowExpansion | 用于可展开表格,切换某一行的展开状态,如果使用了第二个参数,则是设置这一行展开与否(expanded 为 true 则展开) | row, expanded |
|
||||
| setCurrentRow | 用于单选表格,设定某一行为选中行,如果调用时不加参数,则会取消目前高亮行的选中状态。 | row |
|
||||
| clearSort | 用于清空排序条件,数据会恢复成未排序的状态 | — |
|
||||
| clearFilter | 用于清空过滤条件,数据会恢复成未过滤的状态 | — |
|
||||
|
|
|
@ -38,7 +38,10 @@
|
|||
</i>
|
||||
</span>
|
||||
<!-- 后置内容 -->
|
||||
<span class="el-input__suffix" v-if="$slots.suffix || suffixIcon || validateState" :style="suffixOffset">
|
||||
<span
|
||||
class="el-input__suffix"
|
||||
v-if="$slots.suffix || suffixIcon || validateState && needStatusIcon"
|
||||
:style="suffixOffset">
|
||||
<span class="el-input__suffix-inner">
|
||||
<slot name="suffix"></slot>
|
||||
<i class="el-input__icon"
|
||||
|
@ -87,6 +90,9 @@
|
|||
mixins: [emitter, Focus('input'), Migrating],
|
||||
|
||||
inject: {
|
||||
elForm: {
|
||||
default: ''
|
||||
},
|
||||
elFormItem: {
|
||||
default: ''
|
||||
}
|
||||
|
@ -149,11 +155,14 @@
|
|||
validateState() {
|
||||
return this.elFormItem ? this.elFormItem.validateState : '';
|
||||
},
|
||||
needStatusIcon() {
|
||||
return this.elForm ? this.elForm.statusIcon : false;
|
||||
},
|
||||
validateIcon() {
|
||||
return {
|
||||
validating: 'el-icon-loading',
|
||||
success: 'el-icon-circle-check',
|
||||
error: 'el-icon-circle-cross'
|
||||
error: 'el-icon-circle-close'
|
||||
}[this.validateState];
|
||||
},
|
||||
textareaStyle() {
|
||||
|
|
|
@ -400,7 +400,7 @@ export default {
|
|||
},
|
||||
|
||||
handleExpandClick(row) {
|
||||
this.store.toggleRowExpanded(row);
|
||||
this.store.toggleRowExpansion(row);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -44,7 +44,7 @@ const toggleRowSelection = function(states, row, selected) {
|
|||
return changed;
|
||||
};
|
||||
|
||||
const toggleRowExpanded = function(states, row, expanded) {
|
||||
const toggleRowExpansion = function(states, row, expanded) {
|
||||
let changed = false;
|
||||
const expandRows = states.expandRows;
|
||||
if (typeof expanded !== 'undefined') {
|
||||
|
@ -391,8 +391,8 @@ TableStore.prototype.toggleRowSelection = function(row, selected) {
|
|||
}
|
||||
};
|
||||
|
||||
TableStore.prototype.toggleRowExpanded = function(row, expanded) {
|
||||
const changed = toggleRowExpanded(this.states, row, expanded);
|
||||
TableStore.prototype.toggleRowExpansion = function(row, expanded) {
|
||||
const changed = toggleRowExpansion(this.states, row, expanded);
|
||||
if (changed) {
|
||||
this.table.$emit('expand-change', row, this.states.expandRows);
|
||||
}
|
||||
|
|
|
@ -255,7 +255,7 @@
|
|||
getMigratingConfig() {
|
||||
return {
|
||||
events: {
|
||||
expand: 'expand is renamed to `expand-change`'
|
||||
expand: 'expand is renamed to expand-change'
|
||||
}
|
||||
};
|
||||
},
|
||||
|
@ -269,8 +269,8 @@
|
|||
this.store.updateAllSelected();
|
||||
},
|
||||
|
||||
toggleRowExpanded(row, expanded) {
|
||||
this.store.toggleRowExpanded(row, expanded);
|
||||
toggleRowExpansion(row, expanded) {
|
||||
this.store.toggleRowExpansion(row, expanded);
|
||||
},
|
||||
|
||||
clearSelection() {
|
||||
|
|
|
@ -499,9 +499,9 @@ $--popover-fill: $--color-white;
|
|||
$--popover-font-size: $--font-size-base;
|
||||
$--popover-border-color: $--border-color-lighter;
|
||||
$--popover-arrow-size: 6px;
|
||||
$--popover-padding: 10px;
|
||||
$--popover-padding-large: 28px 34px;
|
||||
$--popover-title-font-size: 18px;
|
||||
$--popover-padding: 12px;
|
||||
$--popover-padding-large: 18px 20px;
|
||||
$--popover-title-font-size: 16px;
|
||||
$--popover-title-color: $--color-text-primary;
|
||||
|
||||
/* Tooltip
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
padding: $--popover-padding;
|
||||
z-index: $--index-popper;
|
||||
color: $--color-text-regular;
|
||||
line-height: 1.7;
|
||||
line-height: 1.4;
|
||||
text-align: justify;
|
||||
word-break: break-all;
|
||||
font-size: $--popover-font-size;
|
||||
|
@ -24,7 +24,7 @@
|
|||
color: $--popover-title-color;
|
||||
font-size: $--popover-title-font-size;
|
||||
line-height: 1;
|
||||
margin-bottom: 15px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -232,6 +232,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
th:first-child .cell, td:first-child .cell {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
// 拥有多级表头
|
||||
@include m((group, border)) {
|
||||
border: $--table-border;
|
||||
|
@ -269,6 +273,10 @@
|
|||
|
||||
th, td {
|
||||
border-right: $--table-border;
|
||||
|
||||
&:first-child .cell {
|
||||
padding-left: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.has-gutter {
|
||||
|
|
Loading…
Reference in New Issue