ant-design-vue/breakChange-2.x.md

122 lines
2.0 KiB
Markdown
Raw Normal View History

# break change
2020-07-07 05:57:11 +00:00
## global api
2020-07-17 09:46:44 +00:00
所有 dom 原生属性由驼峰改成全小写,涉及 API
####
maxLength -> maxlength tabIndex => tabindex readOnly => readonly autoComplete => autocomplete
2020-06-12 05:50:59 +00:00
## Tag
### CheckableTag
v-model -> v-model:checked
### Tag
v-model -> v-model:visible
移除 afterClose 属性
## Radio
radioGroup radio v-model -> v-model:value
## popconfirm
okButtonProps、cancelButtonProps 扁平化处理
v-model -> v-model:visible
## popover
v-model -> v-model:visible
## Tooltip
v-model -> v-model:visible
2020-06-16 14:55:02 +00:00
## Modal
v-model -> v-model:visible
okButtonProps、cancelButtonProps 扁平化处理
2020-06-20 02:08:45 +00:00
## Mentions
v-model -> v-model:value
2020-06-21 03:28:07 +00:00
## menu
v-model -> v-model:selectedKeys :openKeys.sync -> v-mdoel:openKeys
2020-06-21 14:45:30 +00:00
## dropdown
v-model -> v-model:visible
## Steps
v-model -> v-model:current
2020-06-22 14:27:40 +00:00
## checkbox
v-model -> v-model:checked
checkboxGroup
v-model -> v-model:value
## Switch
v-model -> v-model:checked
2020-06-24 08:07:03 +00:00
## tabs
v-model -> v-model:activeKey
renderTabBar({props, on, style, class}, DefaultTabBar) -> {DefaultTabBar, ...props} 多参数改成单参数并且扁平化处理
2020-06-24 09:25:47 +00:00
## card
tabList[{scopedSlots}] -> tabList[{slots}]
2020-06-27 06:02:30 +00:00
## rate
v-model -> v-model:value
2020-07-15 07:27:35 +00:00
## Collapse
v-model -> v-model:activeKey
2020-07-16 08:24:44 +00:00
## List
renderItem(item, index) => renderItem({item, index}) 该用单参数
2020-07-18 13:40:26 +00:00
## TreeSelect
treeData 中 scopedSlots => slots , v-model => v-model:value
2020-07-23 07:15:38 +00:00
## datePicker
dateRender
(current: moment.Moment, today: moment.Moment) => ({current: moment.Moment, today: moment.Moment})
monthCellContentRender (date, locale) => ({date, locale})
2020-07-23 14:52:04 +00:00
## table
customRender( text, record, index, column ); => customRender({ text, record, index, column });
expandedRowRender(record, index, indent, expanded) => expandedRowRender({ record, index, indent, expanded })
filterIcon(filtered, column) => filterIcon({ filtered, column })
2020-07-27 08:04:37 +00:00
## calendar
dateCellRender、dateFullCellRender、monthCellRender、monthFullCellRender
function (date, today?) => function({current, today?})