Closed Youyou-smiles closed 1 week ago
The changes in this pull request involve significant modifications to the Card
component's API and related Vue components. Properties and events have been removed from the Card
component's API definition, simplifying its interface. Additionally, several demo entries have been eliminated from the documentation. The styling of the card components has been updated, including changes to class names and the introduction of new styles. Overall, the modifications streamline the component's structure, reducing complexity and improving clarity.
File Path | Change Summary |
---|---|
examples/sites/demos/apis/card.js |
Removed multiple properties (check-type , disabled , icon-more , label , options , size , status , v-model , check-mode ) and events (change , icon-click , click ). Updated footer slot description. Commented out types array including IOptions interface. |
examples/sites/demos/pc/app/card/custom-class-composition-api.vue |
Changed wrapper class from card-wrap to a plain div . Updated tiny-card component's custom-class from my-card to demo-card-custom-class . Removed several imports and the options reactive array. Introduced new styles for .demo-card-custom-class . |
examples/sites/demos/pc/app/card/custom-class.vue |
Simplified outer <div> by removing card-wrap class. Updated tiny-card component's custom-class from my-card to demo-card-custom-class . Removed second tiny-card instance and associated options data structure. |
examples/sites/demos/pc/app/card/webdoc/card.js |
Removed multiple demo entries (card-size , card-disabled , card-group , card-status , check-type-checkbox , check-mode , card-select , operate-bar , card-events ). |
packages/theme/src/card/index.less |
Added border-radius: 8px; to the main card class, commented out existing border-radius properties for various card sizes. Hover effect remains unchanged. |
Card
component's API.Card
component.Card
component.Card
.enhancement
🐰 "In the garden where cards once bloomed,
Properties vanished, and events were entombed.
With styles refined and classes anew,
The Card stands simpler, a fresh view!
A hop and a skip, we celebrate this change,
In our code's meadow, let’s rearrange!" 🐇
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?
[e2e-test-warn] The component to be tested is missing.
The title of the Pull request should look like "fix(vue-renderless): [action-menu, alert] fix xxx bug".
Please make sure you've read our contributing guide
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
Card
component's API to streamline properties and events for improved usability.demo-card-custom-class
to enhance visual appeal.Bug Fixes
Style
border-radius
for a more modern look.Refactor