mirror of https://github.com/ElemeFE/element
Changelog: update for 1.3.0-beta.1
parent
ec3895fdba
commit
bc5b7b23c4
|
@ -1,5 +1,38 @@
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
### 1.3.0-beta.1
|
||||||
|
|
||||||
|
*2017-04-28*
|
||||||
|
|
||||||
|
#### 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
|
||||||
|
- Dialog now has a `before-close` hook, #4432
|
||||||
|
- Upload
|
||||||
|
- Added `disabled` attribute, #4473
|
||||||
|
- `on-change` now also triggers when a file is added, #4447
|
||||||
|
- 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)
|
||||||
|
|
||||||
|
#### 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
|
||||||
|
- Style bug of RadioGroup when nested in a FormItem, #4336
|
||||||
|
|
||||||
|
#### Breaking changes:
|
||||||
|
- Only compatible with Vue 2.3.0+
|
||||||
|
|
||||||
### 1.2.9
|
### 1.2.9
|
||||||
|
|
||||||
*2017-04-19*
|
*2017-04-19*
|
||||||
|
|
|
@ -1,5 +1,37 @@
|
||||||
## 更新日志
|
## 更新日志
|
||||||
|
|
||||||
|
### 1.3.0-beta.1
|
||||||
|
*2017-04-28*
|
||||||
|
|
||||||
|
#### 新特性:
|
||||||
|
- 新增 Transfer 组件
|
||||||
|
- 新增 transition 的文档,现在用户可以使用内置 transition 了
|
||||||
|
- Slider 新增垂直模式,使用 `vertical` 属性即可打开,#4410(by @devange)
|
||||||
|
- CheckboxGroup 新增按钮模式,#3697(by @mdartic)
|
||||||
|
- Table
|
||||||
|
- 新增 `setCurrentRow` 方法,#4390
|
||||||
|
- 新增表尾合计行的功能,提供 `show-summary`、`sum-text` 和 `summary-method`,#4484
|
||||||
|
- Dialog 新增 `before-close` 属性,#4432
|
||||||
|
- Upload
|
||||||
|
- 新增 `disabled` 属性,#4473
|
||||||
|
- `on-change` 事件现在也会在添加文件后触发,#4447
|
||||||
|
- Switch 新增 `on-value` 和 `off-value` 属性,支持自定义两种状态的值,#4403
|
||||||
|
- DatePicker
|
||||||
|
- 新增 `default-value` 属性,用于设定下拉框初次弹出时显示的日期,#4222(by @wacky6)
|
||||||
|
- 支持动态改变 `type`,#4417(by @coffeedeveloper)
|
||||||
|
|
||||||
|
#### 修复:
|
||||||
|
- Select 和 Table 的某些功能与 Vue 2.3.x 不兼容的问题,#4518
|
||||||
|
- DatePicker 的 `disabledDate` 对手动在输入框中输入的值无效的问题,#4309
|
||||||
|
- Tree 的树节点 ID 为数字 0 时的一些问题,#4415
|
||||||
|
- TimePicker 在完成选择后数字不居中显示的问题,#4425(by @pengchongfu)
|
||||||
|
- Autocomplete 在输入中文时频繁触发搜索方法的问题,#4393(by @qazbnm456)
|
||||||
|
- Upload 不能选择同一个文件的问题,#4461
|
||||||
|
- 嵌套在 FormItem 中的按钮样式的 RadioGroup 的样式问题,#4336
|
||||||
|
|
||||||
|
#### 非兼容性更新:
|
||||||
|
- 最低兼容 Vue 2.3.0
|
||||||
|
|
||||||
### 1.2.9
|
### 1.2.9
|
||||||
*2017-04-19*
|
*2017-04-19*
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
var version = process.env.VERSION || require('../../package.json').version;
|
var version = process.env.VERSION || require('../../package.json').version;
|
||||||
var content = { '1.0.9': '1.0', '1.1.6': '1.1' };
|
var content = { '1.0.9': '1.0', '1.1.6': '1.1', '1.2.9': '1.2' };
|
||||||
if (!content[version]) content[version] = '1.2';
|
if (!content[version]) content[version] = '1.3';
|
||||||
fs.writeFileSync(path.resolve(__dirname, '../../examples/versions.json'), JSON.stringify(content));
|
fs.writeFileSync(path.resolve(__dirname, '../../examples/versions.json'), JSON.stringify(content));
|
||||||
|
|
|
@ -42,7 +42,7 @@ if [ "$TRAVIS_TAG" ]; then
|
||||||
export SUB_FOLDER=$(echo "$TRAVIS_TAG" | grep -o -E "\d+\.\d+")
|
export SUB_FOLDER=$(echo "$TRAVIS_TAG" | grep -o -E "\d+\.\d+")
|
||||||
echo $SUB_FOLDER
|
echo $SUB_FOLDER
|
||||||
|
|
||||||
SUB_FOLDER='1.2'
|
SUB_FOLDER='1.3'
|
||||||
mkdir $SUB_FOLDER
|
mkdir $SUB_FOLDER
|
||||||
rm -rf *.js *.css *.map static
|
rm -rf *.js *.css *.map static
|
||||||
rm -rf $SUB_FOLDER/**
|
rm -rf $SUB_FOLDER/**
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
"throttle-debounce": "^1.0.1"
|
"throttle-debounce": "^1.0.1"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"vue": "^2.1.6"
|
"vue": "^2.3.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-cli": "^6.14.0",
|
"babel-cli": "^6.14.0",
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
class="el-transfer-panel__item"
|
class="el-transfer-panel__item"
|
||||||
:label="item[keyProp]"
|
:label="item[keyProp]"
|
||||||
:disabled="item[disabledProp]"
|
:disabled="item[disabledProp]"
|
||||||
|
:key="item[keyProp]"
|
||||||
v-for="item in filteredData">
|
v-for="item in filteredData">
|
||||||
<option-content :option="item"></option-content>
|
<option-content :option="item"></option-content>
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
|
|
|
@ -126,8 +126,8 @@ const components = [
|
||||||
Collapse,
|
Collapse,
|
||||||
CollapseItem,
|
CollapseItem,
|
||||||
Cascader,
|
Cascader,
|
||||||
Transfer,
|
|
||||||
ColorPicker,
|
ColorPicker,
|
||||||
|
Transfer,
|
||||||
CollapseTransition
|
CollapseTransition
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue