v2.3.0
版本发布时间: 2023-06-05 19:00:38
nuxt/ui最新发布版本:v3.0.0-alpha.6(2024-10-09 22:34:23)
✨ Highlights
- New
Table
component: https://ui.nuxtlabs.com/data/table
🚨 Breaking Changes
Toggle
-
icon-on
/icon-off
props have been renamed toon-icon
/off-icon
-
ui.toggle.default.iconOn
/ui.toggle.default.iconOff
have been renamed toui.toggle.default. onIcon
/ui.toggle.default.offIcon
in preset
CommandPalette
-
close
prop has been renamed toclose-button
-
ui.commandPalette.default.close
has been renamed toui.commandPalette.default.closeButton
in preset -
empty
prop has been renamed toempty-state
-
ui.commandPalette.default.empty
has been renamed toui.commandPalette.default.emptyState
in preset
Notification
-
close
prop has been renamed toclose-button
-
ui.notification.default.close
has been renamed toui.notification.default.closeButton
in preset -
ui.notification.default.action
has been renamed toui.notification.default. actionButton
in preset
Input
-
pointer-events-none
class has been moved fromui.input.icon.leading.wrapper
/ui.input.icon.trailing.wrapper
toui.input.icon.leading.pointer
/ui.input.icon.trailing.pointer
in preset
SelectMenu
-
inline-flex
class has been removed from wrapper so it might cause some alignment issues
🚀 What's Changed
- chore(Toggle): improve component display
-
chore(SelectMenu): handle
multiple
default display -
fix(Button): invalid padding when using
square
prop -
chore(Toggle)!: rename icons to
onIcon
/offIcon
for consistency -
chore(CommandPalette)!: rename props to
emptyState
andcloseButton
for consistency -
chore(Notification)!: rename to
closeButton
andactionButton
for consistency - feat: add
Table
component by @benjamincanac in https://github.com/nuxtlabs/ui/pull/237 - chore(Dropdown):
hover
mode with padding instead of offset by @smarroufin in https://github.com/nuxtlabs/ui/pull/242 -
chore(SelectMenu)!: remove
inline-flex
from wrapper to behave like other form elements -
chore: uniformize icons in
Button
/Input
/Select
/SelectMenu
+loading
state inSelect
/SelectMenu
-
chore: add
leading
andtrailing
slots inButton
/Input
/Select
/SelectMenu
-
fix(defineShortcuts): err with input autocomplete that triggers
keydown
events - chore(Input)!: move pointer class inside its own preset class
-
chore(Badge): handle
color
override like buttons - fix(Avatar): placeholder font size
-
fix(Table): override of
sortButton
andemptyState
props -
fix(CommandPalette): override of
closeButton
andemptyState
props -
fix: use
cloneVNode
when altering props in render functions
New Contributors
- @oritwoen made their first contribution in https://github.com/nuxtlabs/ui/pull/250
Full Changelog: https://github.com/nuxtlabs/ui/compare/v2.2.1...v2.3.0