Skip to content

Commit 41624aa

Browse files
committed
[Release]同步 Element UI 至2.4.2版本
Merge commit 'b4ec3069cca414b912b9939898b1a5fe5b76c3e8' into current * commit 'b4ec3069cca414b912b9939898b1a5fe5b76c3e8': (59 commits) [release] 2.4.2 Changelog: update for 2.4.2 Loading: add missing definition of directive (ElemeFE#11749) DatePicker: guards common but incorrect usage (ElemeFE#11673) Chore: eslint ignore font files (ElemeFE#11696) Tabs: add activeName and oldActiveName parameters to before-leave hook (ElemeFE#11713) i18n: update ee.js (ElemeFE#11709) Select: remove empty option item when default value is null in single mode (ElemeFE#11731) Docs: fix link of element react (ElemeFE#11718) Table: fix highlightCurrentRow regression (ElemeFE#11691) Select: fix form change validation (ElemeFE#11672) Chore: add missing file when create new component (ElemeFE#11663) Menu: fix open method error when collapse is changed (ElemeFE#11646) Autocomplete: passes id to nested native input (ElemeFE#11643) Chore: delete unused file (ElemeFE#11641) Pagination: use setCurrentValue when reassigning input value (ElemeFE#11608) Tree: optimize not-allowed dropping cursor (ElemeFE#11631) Cascader: close when option clicked (ElemeFE#11623) Table: fix class-name & label-class-name prop not reactive (ElemeFE#11626) Pagination: add size to nested select (ElemeFE#11622) ... # Conflicts: # CHANGELOG.zh-CN.md # README.md # build/bin/new.js # examples/app.vue # examples/docs/zh-CN/dialog.md # examples/nav.config.json # examples/versions.json # package.json # packages/dialog/src/component.vue # packages/tabs/src/tabs.vue # packages/theme-chalk/package.json # packages/upload/src/index.vue # src/index.js # test/unit/specs/sync.spec.js
2 parents 4eed39c + b4ec306 commit 41624aa

File tree

113 files changed

+1314
-1292
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+1314
-1292
lines changed

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ lib
77
coverage
88
*.md
99
*.scss
10+
*.woff
11+
*.ttf

.github/CONTRIBUTING.en-US.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ npm run dist
5050
```
5151

5252
## Component Developing Guidelines
53-
- Run `make new <component-name>` to create project directory for a new component. Test codes, entry file, cooking config, documentation and `package.json` are included.
53+
- Run `make new <component-name>` to create project directory for a new component. Test codes, entry file and documentation are included.
5454
- Refer to `Button` for nested components.
5555
- Refer to `Select` for components that depend on other components.
5656

.github/CONTRIBUTING.es.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ npm run dist
5555
```
5656

5757
## Guía Para Desarrollo de Componentes
58-
- Corra el comando `make new <component-name>` para crear el directorio de su proyecto para un componente nuevo. Verifique su código fuente test, configuración para armar, documentación y `package.json` están incluidos.
58+
- Corra el comando `make new <component-name>` para crear el directorio de su proyecto para un componente nuevo. Verifique su código fuente test, archivo de entrada y documentación están incluidos.
5959
- Refiérase al `Button` para componentes anidados.
6060
- Refiérase al `Select` para componentes que dependen de otros componentes.
6161

.github/CONTRIBUTING.zh-CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ npm run dist
4848
```
4949

5050
## 组件开发规范
51-
- 通过 `make new` 创建组件目录结构,包含测试代码、入口文件、cooking 配置、package.json、文档
51+
- 通过 `make new` 创建组件目录结构,包含测试代码、入口文件、文档
5252
- 如果包含父子组件,需要更改目录结构,参考 `Button`
5353
- 组件内如果依赖了其他组件,需要在当前组件内引入,参考 `Select`
5454

CHANGELOG.en-US.md

+31
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
## Changelog
22

3+
### 2.4.2
4+
5+
*2018-06-26*
6+
7+
- Now `class-name` and `label-class-name` of Table are reactive, #11626
8+
- Fixed Table still highlighting clicked row when `highlight-current-row` is `false`, #11646
9+
- Fixed a style bug of ButtonGroup when it has only one `round` or `circle` Button, #11605
10+
- Fixed style of page size Select of Pagination, #11622
11+
- Fixed Menu's `open` method error when `collapse` is dynamically changed, #11646
12+
- Added `activeName` and `oldActiveName` parameters to the before-leave hook of Tabs, #11713
13+
- Fixed Cascader focused after outside clicked, #11588
14+
- Fixed Cascader not closing when option is clicked when `change-on-select` is true, #11623
15+
- Now updating Select's value programmatically will trigger form validation, #11672
16+
17+
### 2.4.1
18+
19+
*2018-06-08*
20+
21+
- Removed Autocomplete's duplicate type declaration, #11388
22+
- Fixed Select's dropdown arrow style in FireFox when nested in Form, #11427
23+
- Fixed clear icon of Select still showing when the initial value is `null`, #11460
24+
- Fixed disabled radio showing box-shadow when clicked, #11462
25+
- Added `iconClass` attribute for MessageBox, #11499
26+
- Added `stretch` attribute for Tabs, #11476
27+
- Fixed rendering order issue of TabPane when Tabs is `lazy`, #11461
28+
- Fixed Table not retaining current highlight row when expanded, #11464
29+
- Fixed focusing state when `before-leave` returns a resolved promise, #11386
30+
- Fixed disabled Popover still creating poppers, #11426
31+
- Fixed Tree's endless loop when a new node is added in lazy mode, #11430 (by @wangjingf)
32+
- Added `closed` event for Dialog, #11490
33+
334
### 2.4.0 Fullerene
435

536
*2018-05-28*

CHANGELOG.es.md

+56-25
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,80 @@
11
## Changelog
22

3+
### 2.4.2
4+
5+
*2018-06-26*
6+
7+
- Now `class-name` and `label-class-name` of Table are reactive, #11626
8+
- Fixed Table still highlighting clicked row when `highlight-current-row` is `false`, #11646
9+
- Fixed a style bug of ButtonGroup when it has only one `round` or `circle` Button, #11605
10+
- Fixed style of page size Select of Pagination, #11622
11+
- Fixed Menu's `open` method error when `collapse` is dynamically changed, #11646
12+
- Added `activeName` and `oldActiveName` parameters to the before-leave hook of Tabs, #11713
13+
- Fixed Cascader focused after outside clicked, #11588
14+
- Fixed Cascader not closing when option is clicked when `change-on-select` is true, #11623
15+
- Now updating Select's value programmatically will trigger form validation, #11672
16+
17+
### 2.4.1
18+
19+
*2018-06-08*
20+
21+
- Removida la declaración duplicada de type en Autocompletar, #11388
22+
- Corregido el estilo de flecha en el dropdown de Select en FireFox cuando se anidaba en el formulario, #11427
23+
- Corregido que el ícono `clear` de Select seguia apareciendo cuando el valor inicial era `null`, #11460
24+
- Arreglado que cuando el radio estaba `disabled` mostraba el box-shadow al hacer click, #11462
25+
- Añadido el atributo `iconClass` para MessageBox, #11499
26+
- Añadido el atributo `stretch` para Tabs, #11476
27+
- Arreglado el problema de orden de renderizado de TabPane cuando Tabs es `lazy`, #11461
28+
- Arreglado que Table no retenia la fila actual de resaltados cuando se expandia, #11464
29+
- Arreglado que focusing state cuando `before-leave` devolvia una promesa resuelta, #11386
30+
- Arreglado que Popover deshabilitado seguia creando poppers, #11426
31+
- Arreglado el bucle sin fin de Tree cuando se añadia un nuevo nodo en modo `lazy`, #11430 (por @wangjingf)
32+
- Añadido el evento `closed` para Dialog, #11490
33+
334
### 2.4.0 Fullerene
435

536
*2018-05-28*
637

7-
#### New features
8-
- General
9-
- Dev tool and bundler is switched to native webpack, #11216
10-
- Now you can globally set the initial z-index of popups, #11257
38+
#### Nuevas características
39+
- Generalidades
40+
- La herramienta de desarrollo y el empaquetador se cambiaron a webpack nativo, #11216
41+
- Ahora puede configurar globalmente el z-index inicial de los popups, #11257
1142
- Autocomplete
12-
- Added `hide-loading` attribute, #11260
43+
- Añadido el atributo `hide-loading`, #11260
1344
- Button
14-
- Now you can use the `size` attribute on circle buttons to control their sizes, #11275
45+
- Ahora se puede usar el atributo `size` en los botones circulares para controlar sus tamaños, #11275
1546
- InputNumber
16-
- Added `precision` attribute, #11281
47+
- Añadido el atributo `precision`, #11281
1748
- Tabs
18-
- Added `before-leave` attribute, #11259
19-
- Added `lazy` attribute, #11167(by @Kingwl
49+
- Añadido el atributo `before-leave`, #11259
50+
- Añadido el atributo `lazy`, #11167(by @Kingwl
2051
- Table
21-
- Added `sort` method to manually sort the table, #11311
52+
- Añadido el método `sort` para ordenar manualmente la tabla, #11311
2253

23-
#### Bug fixes
54+
#### Corrección de errores
2455
- Input
25-
- Fixed an issue that causes a re-render when using the Chinese IME to quickly input text, #11235 (by @STLighter)
56+
- Se ha corregido un problema que provocaba que se volviera a procesar al utilizar el IME chino para introducir texto rápidamente, #11235 (por @STLighter).
2657
- Popover
27-
- Fixed the console error when the triggering element is Radio or Checkbox, #11265
58+
- Corregido el error de la consola cuando el elemento disparador es Radio o Checkbox, #11265
2859
- Breadcrumb
29-
- Fixed the `to` attribute not supporting dynamic update, #11286
60+
- Arreglado el atributo `to` que no soportaba la actualización dinámica, #11286
3061
- Upload
31-
- Fixed the console error when a File is resolved in the returned Promise of the `beforeUpload` method, #11297 (by @qusiba)
62+
- Corregido el error de la consola cuando se resolvia el Archivo en la Promesa devuelta del método `beforeUpload`, #11297 (por @qusiba)
3263
- Tooltip
33-
- Fixed arrow not positioned correctly when content is empty, #11335
34-
- Autocomplete
35-
- Fixed incorrect input suggestions after deleting keyword quickly, #11323
64+
- Solucionado que la flecha no se posicionaba correctamente cuando el contenido estaba vacío, #11335
65+
- Autocompletar
66+
- Corregido que las sugerencias de entrada eran incorrectas después de eliminar la palabra clave rápidamente, #11323
3667
- ColorPicker
37-
- Fixed `active-change` event incorrectly triggering when picker dropdown is closed, #11304
68+
- Corregido el evento `active-change` que se disparaba incorrectamente cuando el menú desplegable del picker estaba cerrado, #11304
3869
- Table
39-
- Fixed style error of oversized filter panel, #11314
40-
- Fixed currently selected row not retained when the table is sorted, #11348
41-
- Checkbox
42-
- Fixed single checkbox not supporting validation, #11271
70+
- Corregido el error de estilo del panel de filtro cuando se sobredimensionaba, #11314
71+
- Corregida que la fila seleccionada actualmente no se retenia cuando se ordenaba la tabla, #11348
72+
- CheckBox
73+
- Arreglado que cuando el checkbox era único no soportaba validación, #11271
4374
- Radio
44-
- Fixed disabled Radio still being selected when pressing space key, #11303
75+
- Arreglado que el Radio desactivado seguia estando seleccionada cuando se pulsaba la tecla espaciadora, #11303
4576
- MessageBox
46-
- Fixed the `el-popup-parent--hidden` class not removed when opening MessageBox in succession, #11371
77+
- Corregida la clase `el-popup-parent--hidden` que no se eliminaba al abrir MessageBox sucesivamente, #11371
4778

4879
### 2.3.9
4980

CHANGELOG.zh-CN.md

+46
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,51 @@
11
## 更新日志
22

3+
### 1.4.3
4+
*2018-07-03*
5+
6+
同步至Element-UI 2.4.2版本
7+
8+
#### 新特性
9+
10+
- Dialog
11+
- 新增 `closed` 事件,#11490
12+
- MessageBox
13+
- 新增 `iconClass` 属性
14+
- Tabs
15+
- 新增 `stretch` 属性
16+
- Tabs 的 `before-leave` 钩子添加了 `activeName``oldActiveName` 参数,#11713
17+
18+
#### 修复:
19+
20+
- Autocomplete
21+
- 移除 Autocomplete 的重复类型声明
22+
- ButtonGroup
23+
- 修复 ButtonGroup 中只有一个 `round``circle` 的 Button 时的样式错误,#11605
24+
- Cascader
25+
- 修复在 `change-on-select` 状态下点击选项不关闭的问题,#11623
26+
- 修复 Cascader 关闭后的聚焦问题,#11588
27+
- Menu
28+
- 修复 `collapse` 属性变化后无法使用 `open` 方法的问题,#11646
29+
- Pagination
30+
- 修复在某些情况下 Pagination 的条目数选择器的样式错误,#11622
31+
- Popover
32+
- 修复禁用状态下创建弹出框的问题,#11426
33+
- Radio
34+
- 修复禁用的 Radio 在点击时显示 box-shadow 的问题,#11462
35+
- Select
36+
- 修复初始值为 `null` 时仍然显示清除图标的问题,#11460
37+
- 修复嵌套在 Form 内的 Select 在 FireFox 浏览器中下拉箭头错位的问题,#11427
38+
- 现在通过代码改变 Select 的值后会触发表单校验,与 Input 行为一致,#11672
39+
- Table
40+
- 修复展开行时无法保留选中行样式的问题,#11464
41+
- 修复 Table 在 `highlight-current-row``false` 时点击行也会触发高亮的问题,#11691 #11563
42+
- 修复 Table 的 `class-name``label-class-name` 属性不支持动态更新的问题,#11626
43+
- Tabs
44+
- 修复调用 `before-leave` 并返回 Promise 的时候,Tabs 会存在 focus 状态的问题,#11386
45+
- 修复开启 `lazy` 时渲染顺序异常的问题,#11461
46+
- Tree
47+
- 修复在懒加载状态下添加新节点造成无限循环的问题,#11430 (by @wangjingf
48+
349
### 1.4.2
450
*2018-06-01*
551

Makefile

-8
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,12 @@ new-lang:
2626
dist: install
2727
npm run dist
2828

29-
dist-all:
30-
npm run dist:all
31-
3229
deploy:
3330
@npm run deploy
3431

3532
pub:
3633
npm run pub
3734

38-
pub-all:
39-
npm run pub:all
40-
4135
test:
4236
npm run test:watch
4337

@@ -47,8 +41,6 @@ help:
4741
@echo " \033[35mmake new <component-name> [中文名]\033[0m\t--- 创建新组件 package. 例如 'make new button 按钮'"
4842
@echo " \033[35mmake dev\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 开发模式"
4943
@echo " \033[35mmake dist\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 编译项目,生成目标文件"
50-
@echo " \033[35mmake dist-all\033[0m\t\033[0m\t\033[0m\t--- 分别编译每个组件项目"
5144
@echo " \033[35mmake deploy\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 部署 demo"
5245
@echo " \033[35mmake pub\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 发布到 npm 上"
53-
@echo " \033[35mmake pub-all\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 发布各组件到 npm 上"
5446
@echo " \033[35mmake new-lang <lang>\033[0m\t\033[0m\t\033[0m\t--- 为网站添加新语言. 例如 'make new-lang fr'"

README.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@
33
44
Fork自[element-ui](https://github.com/ElemeFE/element)
55

6-
**同步至Element-UI 2.4.0**
6+
**同步至Element-UI 2.4.2**
77

88
基于Vue和Element UI,结合其他优秀组件库([Ant Design](https://ant.design/index-cn)[Material Deisgn](https://material.angular.io/)等),加速业务级应用页面开发。
99

1010
## Feature
11-
* [New]JSON Schema Dynamic Form [链接](https://bluejfox.github.io/setaria-ui/#/zh-CN/component/dynamic-form)
12-
* [New]Enterprise Base Search Template [链接](https://bluejfox.github.io/setaria-ui/#/zh-CN/component/template-base-search)
13-
* [New]List [链接](https://bluejfox.github.io/setaria-ui/#/zh-CN/component/list)
14-
* [New]JsonViewer [链接](https://bluejfox.github.io/setaria-ui/#/zh-CN/component/json-viewer)
15-
* [Update]Card [链接](https://bluejfox.github.io/setaria-ui/#/zh-CN/component/card)
16-
_增加标签支持_
11+
- [New]JSON Schema Dynamic Form [链接](https://bluejfox.github.io/setaria-ui/#/zh-CN/component/dynamic-form)
12+
- [New]Enterprise Base Search Template [链接](https://bluejfox.github.io/setaria-ui/#/zh-CN/component/template-base-search)
13+
- [New]List [链接](https://bluejfox.github.io/setaria-ui/#/zh-CN/component/list)
14+
- [New]JsonViewer [链接](https://bluejfox.github.io/setaria-ui/#/zh-CN/component/json-viewer)
15+
- [Update]Card [链接](https://bluejfox.github.io/setaria-ui/#/zh-CN/component/card)
16+
- 支持标签
17+
- [Update]Dialog [链接](https://bluejfox.github.io/setaria-ui/#/zh-CN/component/dialog)
18+
- 支持拖动
1719

1820
## Install
1921
```shell

build/bin/build-all.js

-26
This file was deleted.

build/bin/new.js

+16-28
Original file line numberDiff line numberDiff line change
@@ -28,34 +28,6 @@ ${ComponentName}.install = function(Vue) {
2828
};
2929
3030
export default ${ComponentName};`
31-
},
32-
{
33-
filename: 'cooking.conf.js',
34-
content: `var cooking = require('cooking');
35-
var gen = require('../../build/gen-single-config');
36-
37-
cooking.set(gen(__dirname, 'El${ComponentName}'));
38-
39-
module.exports = cooking.resolve();
40-
`
41-
},
42-
{
43-
filename: 'package.json',
44-
content: `{
45-
"name": "setaria-${componentname}",
46-
"version": "0.0.0",
47-
"description": "A ${componentname} component for Vue.js.",
48-
"keywords": [
49-
"setaria",
50-
"vue",
51-
"component"
52-
],
53-
"main": "./lib/index.js",
54-
"repository": "https://github.com/bluejfox/setaria-ui/tree/master/packages/${componentname}",
55-
"author": "elemefe",
56-
"license": "MIT",
57-
"dependencies": {}
58-
}`
5931
},
6032
{
6133
filename: 'src/main.vue',
@@ -94,6 +66,22 @@ describe('${ComponentName}', () => {
9466
});
9567
});
9668
`
69+
},
70+
{
71+
filename: path.join('../../packages/theme-chalk/src', `${componentname}.scss`),
72+
content: `@import "mixins/mixins";
73+
@import "common/var";
74+
75+
@include b(${componentname}) {
76+
}`
77+
},
78+
{
79+
filename: path.join('../../types', `${componentname}.d.ts`),
80+
content: `import { SetariaUIComponent } from './component'
81+
82+
/** ${ComponentName} Component */
83+
export declare class El${ComponentName} extends SetariaUIComponent {
84+
}`
9785
}
9886
];
9987

examples/components/footer.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<a href="https://github.com/ElementUI/element-starter" class="footer-main-link" target="_blank">{{ langConfig.starter }}</a>
1010
<a href="https://github.com/ElementUI/element-theme" class="footer-main-link" target="_blank">{{ langConfig.theme }}</a>
1111
<a href="https://github.com/ElementUI/theme-chalk-preview" class="footer-main-link" target="_blank">{{ langConfig.preview }}</a>
12-
<a href="https://github.com/eleme/element-react" class="footer-main-link" target="_blank">Element-React</a>
12+
<a href="https://github.com/elemefe/element-react" class="footer-main-link" target="_blank">Element-React</a>
1313
<a href="https://github.com/ElemeFE/element-angular" class="footer-main-link" target="_blank">Element-Angular</a>
1414
</div>
1515
<div class="footer-main">

examples/docs/en-US/dialog.md

+1
Original file line numberDiff line numberDiff line change
@@ -310,3 +310,4 @@ If the variable bound to `visible` is managed in Vuex store, the `.sync` can not
310310
|---------- |-------- |---------- |
311311
| open | triggers when the Dialog opens ||
312312
| close | triggers when the Dialog closes ||
313+
| closed | triggers when the Dialog closing animation ends ||

examples/docs/en-US/message-box.md

+1
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ The corresponding methods are: `MessageBox`, `MessageBox.alert`, `MessageBox.con
382382
| message | content of the MessageBox | string |||
383383
| dangerouslyUseHTMLString | whether `message` is treated as HTML string | boolean || false |
384384
| type | message type, used for icon display | string | success / info / warning / error ||
385+
| iconClass | custom icon's class, overrides `type` | string |||
385386
| customClass | custom class name for MessageBox | string |||
386387
| callback | MessageBox closing callback if you don't prefer Promise | function(action), where action can be 'confirm' or 'cancel', and `instance` is the MessageBox instance. You can access to that instance's attributes and methods |||
387388
| showClose | whether to show close icon of MessageBox | boolean || true |

examples/docs/en-US/tabs.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,8 @@ Only card type Tabs support addable & closeable.
376376
| editable | whether Tab is addable and closable | boolean || false |
377377
| value | name of the selected tab | string || name of first tab |
378378
| tab-position | position of tabs | string | top/right/bottom/left | top |
379-
| before-leave | hook function before switching tab. If `false` is returned or a `Promise` is returned and then is rejected, switching will be prevented | function |||
379+
| stretch | whether width of tab automatically fits its container | boolean | - | false |
380+
| before-leave | hook function before switching tab. If `false` is returned or a `Promise` is returned and then is rejected, switching will be prevented | Function(activeName, oldActiveName) |||
380381

381382
### Tabs Events
382383
| Event Name | Description | Parameters |

0 commit comments

Comments
 (0)