🌏 Translated with the assistance of DeepSeek and ChatGPT
Changelog
v0.1.0
- New Features:
- Added notice blue theme, corresponding to the
'notice'value of the'theme'property and some feedback components''type'property. - Added feedback components: Dialog, Popconfirm, Badge, Alert, Progress.
- Added navigation component: Menu, MenuItem, Submenu, MenuGroup, BackTop, DropDown, Breadcrumb, BreadcrumbItem, Pagination.
- Added the
cascadeproperty to Tooltip and Popover to maintain the display of nested floating windows. - Added multi-language internationalization module; text language for dialogs and confirmation popups can be adjusted via the exported
localefrom the entry file. - Added a new
variantproperty to Link with values'normal'and'underline'(default), controlling whether to display the'underline'. - VirtualList adds a new slot
'scroll-container'for customizing the scroll container. It's recommended to use with thehfunction or JSX.
- Added notice blue theme, corresponding to the
- Adjustment:
- ⚠️ Note ⚠️ Removed unused CSS variables in the form of --px-primary|success|warning|danger|sakura-light|dark-number, such as
--px-warning-light-1. In fact, component colors directly derive from the --px-color-light|dark-number CSS variables, for example:--px-orange-light-1. - ⚠️ Note ⚠️ To facilitate the use of higher-order components and due to limitations in Vue's mechanism, paired components such as Row and Col, Container and Aside, Grid and GridItem, ButtonGroup and Button, InputGroup and various data input components, etc., when receiving corresponding
providedata, will now no longer strictly require the type of the immediate parent component. - The
shapeproperty of ButtonGroup now accepts two additional optional values:squareandcircle, and its default value has been removed. When set tosquareorcircle, the child Button components will visually have equal height and width. This change will not affect existing code, as child Button components will default to usingrectwhen noshapevalue is provided for the ButtonGroup. - Add debouncing to the canvas rendering of the Switch component, change the slider position control to use
transform, and enhance the smoothness of animations (especially during high-frequency switching).
- ⚠️ Note ⚠️ Removed unused CSS variables in the form of --px-primary|success|warning|danger|sakura-light|dark-number, such as
- Optimizations:
- Provided more detailed type declarations for properties passed as props to internal components.
- Optimized code & improved test coverage.
- Added the
pollSizeChangeproperty to most components containing canvas for polling size changes to update rendering.
- Fixes:
- Incorrect setting of the
langattribute in Vue template<style>tags leads to style duplication. - Fix the issue of missing CSS for data font and font size in OptionList-based dropdown options.
- Fixed abnormal canvas rendering when toggling the button
loadingstate rapidly within micro tasks. - Fix the font size issue when button's size is
'small'. - Fixed the abnormal horizontal extension of input components within a FormItem.
- Unique IDs have been added to the keys used by InputGroup and ButtonGroup to propagate updates to child components, preventing interference with child components in other groups. Additionally, the frequency of positional checks has been reduced.
- Fix the issue where components such as Radio, Checkbox, Switch, Select, AutoComplete, Input, InputNumber, InputTag, Textarea, and Slider trigger
focusandblurevents when clicked internally. - Fixed an issue where a focus ring would appear when the icon inside an input control was focused.
- Fixed an issue where icons inside the Textarea component were not displayed correctly.
- Fixed the issue where Slider did not emit
focusandblurevents.
- Incorrect setting of the
v0.0.5
hotfix
- Fixes:
- ⚠️ Note ⚠️ Fix the issue where the
setPixelSizefunction incorrectly set CSS custom properties, and add adynamicComponentSizeparameter to control how pixel size affects size calculations for most components, preventing size differences before and after the fix. - Fixed an issue where the Tag component's
line-heightwas not set correctly, causing Tags withsize="small"to be taller than intended. - Fix the issue where the height is not correctly set when using Select
size="small". - Fix the problem where the CSS related to the height of the InputTag component is not properly configured (even though it appears visually correct).
- ⚠️ Note ⚠️ Fix the issue where the
v0.0.4
hotfix
- Fixes:
- Optimized the issue where input controls incorrectly triggered keyboard operation hint borders. Related styles have been improved. A more reasonable mechanism will be used to handle this logic in the future.
v0.0.3
- New features:
- Support switching pixel widths, supporting 2px and 4px.
- Improve form components: Form, FormItem, Switch, Slider, Radio, RadioGroup, Checkbox, CheckboxGroup.
- Add image display component Image and avatar component Avatar.
- Add virtual list component VirtualList.
- Add a utility function
pixelatefor image pixelation. - Added visual component TextOutline for text stroke effect.
- Added importable modern-normalize preset styles
- Adjustment:
- ⚠️ Note ⚠️ The
shapeproperty'default'is renamed to'rect','default'in existing components remains valid. - ⚠️ Note ⚠️ ButtonGroup now has a
themeproperty, and both ButtonGroup and Button treatreadonlyproperty injected from ancestor components (e.g., Form) asdisabled. - ⚠️ Note ⚠️ Default value implementation for
size,variant,theme,shapein some components changed fromwithDefaultstocomputedto support nested component property priority. - ⚠️ Note ⚠️ When importing icons on demand, component library common styles will no longer be automatically imported.
- ⚠️ Note ⚠️ The
- Optimizations:
- Add
labelslot to the Select component. - Add
readonlyproperty to InputGroup. - Add the
softproperty to the Main component to set a soft background. - Optimize the arc drawing algorithm.
- Add indentation to sub-options of option groups.
- Optimize the triggering of
focusandblurevents for the Select component. - Add a prop to dropdown and popup components to control whether content is destroyed when hidden.
- Optimize code & improve test cases.
- Add
- Fixes:
- Fix the rendering of Button components with
variant="text"in ButtonGroup and InputGroup. - Fix the bug where the
focusandblurevents of form controls are not being emitted. - Set
tabindexfor dropdown options.
- Fix the rendering of Button components with
v0.0.2
- New components added: Input, InputNumber, Textarea, InputGroup, Input, GroupLabel, Tag, InputTag, Tooltip, Popover, Empty, AutoComplete, Mask, Spin, Select.
- Integrated the pixelarticons icon library.
- Code optimization.