💥 1.3.0-beta.1 Breaking Change #5037
Replies: 13 comments 18 replies
-
关于 About |
Beta Was this translation helpful? Give feedback.
-
强烈支持这次的改动,原来默认的尺寸确实太大了点,现在这样的改动显然是用起来更方便了 |
Beta Was this translation helpful? Give feedback.
-
现在的small太小了,不如原来的mini看着舒服 |
Beta Was this translation helpful? Give feedback.
-
国际化配置通过app.use 无效了 |
Beta Was this translation helpful? Give feedback.
-
If using 如果通过 |
Beta Was this translation helpful? Give feedback.
-
我就知道,但凡1个月不更新,肯定就是break change |
Beta Was this translation helpful? Give feedback.
-
吓得我赶紧换上了arco.design |
Beta Was this translation helpful? Give feedback.
-
更新完后,大变样,感觉字体大小之类的还有待优化 |
Beta Was this translation helpful? Give feedback.
-
低版本内核浏览器,文档进不去了,能不能解决一下 |
Beta Was this translation helpful? Give feedback.
-
每一次 breaking, 都是心的breaking |
Beta Was this translation helpful? Give feedback.
-
用了10天 用回1.2.0了 1.3.0bug也太多了 |
Beta Was this translation helpful? Give feedback.
-
我从1.2.0-beta.6 更新到 1.3.0-beta.1,提示如下错误: Module parse failed: Unexpected token (106:28)
| cell.start = calEndDate && calTime.isSame(calEndDate, "day"); @ ./node_modules/element-plus/es/components/date-picker/src/date-picker-com/panel-date-range.mjs 11:0-47 22:4-13 请问各位大佬怎么解决? |
Beta Was this translation helpful? Give feedback.
-
每次升级都心惊胆战,这次1.3的确实不敢升了,本身对各种按钮等组件做了定制化,还是老老实实等正式版吧。 |
Beta Was this translation helpful? Give feedback.
-
1.3.0-beta.1 带来的破坏性变动 | Breaking change introduced in 1.3.0-beta.1
app.config.globalProperties.$ELEMENT
| Remove global configapp.config.globalProperties.$ELEMENT
, Thanks to @sxzz refactor(utils)!: refactor global config #4793具体调整 | Detail
组件 size 体系由
default/medium/small/mini
切换为更自然的large/default/small
,以default
为基础,需要加大则选择large
,需要缩小则选择small
| The component size system is switched fromdefault/medium/small/mini
tolarge/default/small
.default
will be the default size, uselarge
if you need to increase it, or usesmall
to reduce the size.Padding 方面则优化为更通用的 4px体系,采用 4/8 px作为原子单位控制整个系统的 padding 一致性。即大组件 padding 也大,小组件 padding 也小 | In terms of Padding, it is optimized to a more general 4px system, using 4/8 px as the atomic unit to control the padding consistency of the entire system. That is, the padding of large components is also large, and the padding of small components is also small.
主要涉及的组件为 Button、Radio、Checkbox 、Input、Select、DateTimePicker、From等表单组件和Table、Tag 等其他有 size 属性的组件。主要涉及属性为 padding、 margin 等 padding 属性修改、 font-size 等字体和图标大小修改等。| The main components involved are Button, Radio, Checkbox, Input, Select, DateTimePicker, From, Table, Tag, and other components with size properties. It mainly involves the modification of padding properties such as padding and margin and the modification of font and icon size such as font size.
app.config.globalProperties.$ELEMENT
已移除,请使用app.use(ElementPlus, { /* opts */ })
或config-provider
|app.config.globalProperties.$ELEMENT
has been removed,please useapp.use(ElementPlus, { /* opts */ })
orconfig-provider
为什么带来这些变动 | Breaking change explained.
原因 | Reason
目标 | Target
ref: https://www.yuque.com/docs/share/1e50bcb3-225c-42e5-a517-716867a681f5#psGB7
Beta Was this translation helpful? Give feedback.
All reactions