element-plus/packages
Herrington Darkholme 8f519cfbef
fix: respect format props and default value (#2034)
* fix: respect format props and default value

Vue 3 props will always have all keys defined, regardless if users pass props when using the component.
So {format, ...props} will always overwrite the default format because props has format defined on it.
When users do not pass format, the code breaks.

* fix: null-coalescing operator(??) requires parens

* fix: capture reactivity
2021-05-20 16:15:40 +08:00
..
__mocks__/lodash feat(cascader): refactor done (#435) 2020-10-30 23:26:33 +08:00
affix build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
alert build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
aside build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
autocomplete build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
avatar fix(avatar): fix src attributes default value (#1770) 2021-04-11 21:06:38 +08:00
backtop build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
badge build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
breadcrumb build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
breadcrumb-item build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
button refactor(Button): setup props add type (#1879) 2021-04-21 15:13:40 +08:00
button-group build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
calendar build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
card refactor(card): remove needless div tag (#1732) 2021-04-01 09:27:38 +08:00
carousel build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
carousel-item build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
cascader build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
cascader-panel build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
check-tag build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
checkbox fix(Checkbox): activeStyle boxShadow error (#1829) 2021-04-14 15:49:00 +08:00
checkbox-button build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
checkbox-group build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
col build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
collapse build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
collapse-item build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
collapse-transition build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
color-picker fix: use more reasonable type inference (#1963) 2021-05-09 10:46:11 +08:00
container build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
date-picker fix: respect format props and default value (#2034) 2021-05-20 16:15:40 +08:00
descriptions Feat/descriptions (#1856) 2021-04-19 18:05:48 +08:00
descriptions-item Feat/descriptions (#1856) 2021-04-19 18:05:48 +08:00
dialog build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
directives fix(picker): add focus (#1475) 2021-04-06 13:28:57 +08:00
divider build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
drawer build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
dropdown fix(dropdown): fix click disabled still trigger (#1865) 2021-04-20 10:39:17 +08:00
dropdown-item build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
dropdown-menu build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
element-plus Feat/descriptions (#1856) 2021-04-19 18:05:48 +08:00
empty build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
footer build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
form [fixed] validate types error 2021-05-06 19:20:54 +08:00
form-item build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
header build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
hooks style: using 'Array.prototype.forEach()' (#1826) 2021-04-13 17:52:51 +08:00
icon build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
image fix(image): fix image Add the dom of the preview picture to the body (#1577) 2021-04-26 11:54:22 +08:00
image-viewer fix(image-viewer): fix image src attribute error #1791 (#1819) 2021-04-13 10:40:03 +08:00
infinite-scroll build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
input fix(input): add keydown event listener for textarea (#1723) 2021-03-31 16:24:42 +08:00
input-number build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
link build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
loading fix: use more reasonable type inference (#1963) 2021-05-09 10:46:11 +08:00
locale build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
main build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
menu build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
menu-item build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
menu-item-group build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
message build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
message-box fix: use more reasonable type inference (#1963) 2021-05-09 10:46:11 +08:00
notification refactor(notification): avoid magic numbers (#1928) 2021-05-09 10:40:33 +08:00
option build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
option-group build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
overlay fix(drawer): add modal false div class (#1932) 2021-05-06 19:35:29 +08:00
page-header feat(page-header): add icon props and slots (#1882) 2021-04-25 21:17:39 +08:00
pagination refactor(notification): avoid magic numbers (#1928) 2021-05-09 10:40:33 +08:00
popconfirm build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
popover style: using 'Array.prototype.forEach()' (#1826) 2021-04-13 17:52:51 +08:00
popper style: using 'Array.prototype.forEach()' (#1826) 2021-04-13 17:52:51 +08:00
progress feat(progress): indeterminate progress bar (#1832) 2021-04-21 13:47:29 +08:00
radio build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
radio-button build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
radio-group build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
rate fix(rate): remove the confusing this (#1910) 2021-05-01 23:09:47 +08:00
result feat(result): new componet Result (#1818) 2021-04-14 10:18:29 +08:00
row build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
scrollbar feat(scrollbar): perf behavior of scrollbar (#1869) 2021-04-21 15:28:46 +08:00
select fix(select): fix select with filterable has wrong dropdown options (#1811) 2021-04-11 20:58:58 +08:00
skeleton build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
skeleton-item build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
slider fix(slider): fix input event and style (#1786) 2021-04-09 10:40:50 +08:00
space fix(space): fix/1839-el-space-string-spacer-style-issue (#1845) 2021-04-15 11:33:52 +08:00
step build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
steps build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
submenu build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
switch fix: judging by activeColor / inactiveColor (#1966) 2021-05-09 10:40:18 +08:00
tab-pane build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
table refactor(table): refactored the type definition of table (#1997) 2021-05-13 17:55:04 +08:00
table-column build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
tabs build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
tag fix: keep the same with property name (#1940) 2021-05-06 19:06:51 +08:00
test-utils build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
theme-chalk fix: add addtional css in dropdown (#1998) 2021-05-13 18:12:52 +08:00
time-picker fix(date-picker): fix/date-picker-popper-options-expose (#1982) 2021-05-11 10:57:15 +08:00
time-select fix: lint (#1760) 2021-04-06 15:56:01 +08:00
timeline build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
timeline-item build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
tooltip tooltip:fix tooltip component tabindex prop (#1621) 2021-04-06 11:41:53 +08:00
transfer build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
transition build(project): project/bumping-vue-version (#1702) 2021-03-28 12:46:58 +08:00
tree fix: use more reasonable type inference (#1963) 2021-05-09 10:46:11 +08:00
upload fix: use more reasonable type inference (#1963) 2021-05-09 10:46:11 +08:00
utils refactor(table): refactored the type definition of table (#1997) 2021-05-13 17:55:04 +08:00
virtual-list fix: use more reasonable type inference (#1963) 2021-05-09 10:46:11 +08:00