Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Element 1.3.0 版本预览 #4508

Closed
Leopoldthecoder opened this issue Apr 28, 2017 · 12 comments
Closed

Element 1.3.0 版本预览 #4508

Leopoldthecoder opened this issue Apr 28, 2017 · 12 comments

Comments

@Leopoldthecoder
Copy link
Contributor

开始之前,有一件事需要说明。在 Vue 2.3.0 发布后,我们陆续收到了一些关于 Element 兼容性的问题报告,它们是:

如果你也遇到了上述问题,请将 Vue 降级至 2.2.x,并等待我们发布新版。如果你遇到的问题没有在上面列出,请给我们提 issue。

Element 的下一个 minor 版本会带来很多新特性,简要介绍如下:

以下内容仍可能发生变动,请以正式发布的 1.3.0 为准。

新组件

Transfer

Transfer 可以用来方便地在两个分类里交换项目:
image

新特性

内置 transition 动画

内置 transition 动画现在开放给大家使用,这意味着你可以在项目中直接使用我们预先定义好的动画。

垂直模式 Slider

感谢 @devange 实现了垂直模式的 Slider。

按钮样式的 CheckboxGroup

感谢 @mdartic 实现了按钮样式的 CheckboxGroup。

支持任意值的 Switch

Switch 一直以来仅支持布尔型的值,感谢 @liyanlong 实现了支持任意值的 Switch。

Table 的表尾合计行

当需要在表格的最后一行显示各列数值的总和时,可以使用表尾合计行。值得指出的是,你不必自己去计算各列的总和,合计行会为你做这件事。

Bug 修复和更多新特性会在 1.3.0 的更新日志中详细列出。

兼容性

我们调查了开头列出的兼容性问题的原因,初步结论是:Element 1.3.0 将仅兼容 Vue 2.3.0 及以上版本。各位在升级的时候请注意这一点。

发布日期

为了让版本更加稳定,从 1.3.0 开始,在正式发布每个 minor 版本之前,我们会先发布一些测试版本。Element 的下一个版本将会是 1.3.0-beta.1,预计会很快推出。

One more thing

我司的另一个团队实现了 React 版的 Element。如果你是 React 用户,欢迎使用!

@element-bot element-bot changed the title Element 1.3.0 版本预览 Element 1.3.0 Preview Apr 28, 2017
@Leopoldthecoder Leopoldthecoder changed the title Element 1.3.0 Preview Element 1.3.0 版本预览 Apr 28, 2017
@arzcl
Copy link

arzcl commented Apr 28, 2017

感谢,期待1.3.0的发布~

@aleksejevski
Copy link

昨天Vue突然被更新到2.3.0真是一场冲击啊

It was a shock that we were being updated Vue to 2.3.0.

@liril-net
Copy link
Contributor

Can your robot translate these word into Chinese?

@Vic-tsunami
Copy link

官网tree组件的demo有bug,check状态切换逻辑有错误https://jsfiddle.net/10e04t4L/ check父节点子节点不会被全选

@Leopoldthecoder
Copy link
Contributor Author

@Vic-tsunami 感谢告知,已经在 1.3.0-beta.1 修复。

@Leopoldthecoder
Copy link
Contributor Author

由于 Element 1.3.0 最低兼容 2.3.0 版本的 Vue,这也使我们有机会把 Vue 在 2.2 和 2.3 中加入的新功能体现在 Element 中。具体来说,它们是:

  • Dialog 新增 visible 属性。从语义上说,目前 Dialog 通过 v-model 来绑定显示变量的做法是不太对的。好在 Vue 2.3.0 加入了一个新的修饰符 .sync(详见文档),非常适合 Dialog 的使用场景。因此,我们增加了更为语义化的 visible 属性,同时它支持 .sync,可以在 Dialog 显示/消失时同步更新父组件的相应变量。之前 v-model 的写法仍然支持,但是不再提倡。
  • Pagination 的 current-page 添加 .sync 支持。之前需要在 current-change 事件中对绑定在 current-page 的变量进行手动更新,现在如果使用了 .sync 修饰符,Element 就会帮你完成这件事。
  • 更多特性稍后揭晓

@Creabine
Copy link
Contributor

Creabine commented May 2, 2017

谢谢你们,另外请关注一下下边这个Feature Request,目前有好几位小伙伴都有这个需求,希望能早日实现这个特性,谢谢
#4159 (comment)

@transtone
Copy link

一直关注element的发展。但从组件上来看,借鉴 ant.design 比较多,为何还要开发一个 react 版,不直接用 ant.design 呢?

@Vic-tsunami
Copy link

请问, transition 组件能够内嵌tree组件使用么?

@lnxueyu
Copy link

lnxueyu commented May 5, 2017

更新到1.3.0版本,dialog的open和close事件无法触发。这是怎么回事

@SirM2z
Copy link

SirM2z commented May 5, 2017

现在1.3.0版本已经发布,好像文档还没有更新

@liuliagn
Copy link

liuliagn commented Jun 8, 2017

image
image
image
列表2 没有选择value1中的值???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants