Closed gimmyhehe closed 1 month ago
The changes in this pull request encompass modifications to form configurations across multiple files, including updates to default values, the addition of new properties, and the removal of deprecated components. Key alterations involve the introduction of an icons
property, adjustments to error handling mechanisms, and a restructuring of CSS variables for improved theming. The overall aim is to enhance the configuration capabilities and styling consistency of form components.
File | Change Summary |
---|---|
examples/sites/demos/apis/form.js |
Updated default values for hide-required-asterisk , label-width , and message-type . |
packages/design/aurora/src/form/index.ts , packages/design/saas/src/form/index.ts |
Added icons , hideRequiredAsterisk , and messageType properties to exported default objects. |
packages/design/smb/index.ts |
Removed Form component from exports. |
packages/design/smb/src/form/index.ts |
Deleted configuration object for form component. |
packages/renderless/src/form/index.ts |
Modified computed properties: computedHideRequiredAsterisk , computedValidateIcon , computedIsErrorInline , and computedIsErrorBlock . |
packages/renderless/src/form/vue.ts |
Updated default value for labelWidth . |
packages/theme/src/form-item/index.less |
Simplified styles, removed prefix class variables, and consolidated validation styles. |
packages/theme/src/form-item/old-theme.js , packages/theme/src/form/aurora-theme.js |
Modified naming convention of keys in theme objects. |
packages/theme/src/form/vars.less |
Removed old CSS variables and introduced new ones for icon sizes and colors. |
examples/sites/demos/pc/app/form/message-type-composition-api.vue , examples/sites/demos/pc/app/form/message-type.vue |
Updated messageType initialization and modified messageTypeList . |
examples/sites/demos/pc/app/form/label-align-composition-api.vue , examples/sites/demos/pc/app/form/label-align.vue |
Added :hide-required-asterisk prop to <tiny-form> components. |
examples/sites/demos/pc/app/form/message-type.spec.ts , examples/sites/demos/pc/app/form/size.spec.ts , examples/sites/demos/pc/app/form/slot-label.spec.ts , examples/sites/demos/pc/app/form/smb-required.spec.ts |
Various updates to test cases reflecting changes in form properties and expected outcomes. |
form.js
.form.js
changes.form.js
modifications.vars.less
, relating to form component theming.vars.less
, relevant to theming adjustments.🐰 In the fields where bunnies play,
New forms are hopping in today.
With icons bright and styles so neat,
Our code's a treat, oh what a feat!
So let us cheer, with joy we sing,
For every change, new life they bring! 🥕✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit
Release Notes
New Features
hideRequiredAsterisk
,labelWidth
, and expandedmessageType
.Bug Fixes
Style
Chores