-
Notifications
You must be signed in to change notification settings - Fork 300
fix(notify): [notify, split] Dev update notifycrop split #2020
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(notify): [notify, split] Dev update notifycrop split #2020
Conversation
WalkthroughThe changes introduce a new Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant SplitComponent
participant RenderlessFunction
participant NotificationStyles
User->>SplitComponent: Interacts with Split
SplitComponent->>RenderlessFunction: Passes designConfig
RenderlessFunction->>SplitComponent: Updates state with triggerBarConWithLine
SplitComponent->>User: Displays appropriate trigger element
User->>NotificationStyles: Views notification
NotificationStyles->>User: Shows styled notification title
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? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
[e2e-test-warn] 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (6)
- packages/design/smb/index.ts (2 hunks)
- packages/design/smb/src/split/index.ts (1 hunks)
- packages/renderless/src/split/vue.ts (2 hunks)
- packages/theme/src/notify/index.less (1 hunks)
- packages/theme/src/split/index.less (1 hunks)
- packages/vue/src/split/src/pc.vue (3 hunks)
Files skipped from review due to trivial changes (1)
- packages/design/smb/src/split/index.ts
Additional comments not posted (8)
packages/design/smb/index.ts (2)
18-18
: Verify the import path for consistency.The import path for the
Split
component uses a capital 'S' in./src/Split
. Please verify that the file naming convention is consistent across the project, as other imports use lowercase.
43-43
: LGTM!The addition of the
Split
component to the exported object is consistent with the structure and formatting of the existing exports.packages/renderless/src/split/vue.ts (1)
31-31
: Review the changes in therenderless
function.The addition of
designConfig
to the parameter list enhances the function's flexibility by allowing it to access design-specific configurations. However, ensure thatdesignConfig
is properly initialized before use to avoid potential runtime errors.The new property
triggerBarConWithLine
allows for conditional rendering based on the configuration. This is a good use of reactive programming but verify that this behavior is covered by unit tests to ensure it works as expected under different configurations.Also applies to: 54-54
packages/theme/src/notify/index.less (1)
183-183
: LGTM!The addition of the
font-weight
property using the variable--ti-notify-title-font-weight
enhances the flexibility and maintainability of the styling. This change allows for easier adjustments and consistency across different themes or configurations.packages/theme/src/split/index.less (2)
81-95
: Approved: SVG transformation and fill changes.The changes to translate and fill SVG elements in both
.vertical
and.horizontal
orientations are approved. Ensure to verify the consistency of these transformations across different screen sizes and orientations to maintain a uniform user experience.Run the following script to verify the consistency:
74-74
: Approved: Background transparency change.The change to a transparent background for
&-bar-con
is approved. However, ensure to verify the visual impact on overlapping elements to maintain the intended aesthetics.Run the following script to verify the visual impact:
packages/vue/src/split/src/pc.vue (2)
170-177
: Approved: Import of new icon components.The import of new icon components
IconStretchUpright
andIconStretchCrosswise
is approved. Ensure to verify the proper usage and availability of these components within the project to avoid any runtime errors or missing dependencies.Run the following script to verify the proper usage and availability:
Verification successful
Usage of Icon Components Verified
The components
IconStretchUpright
andIconStretchCrosswise
are correctly imported and used within thepc.vue
file. Ensure that their limited usage to this file is intentional and that they are not required elsewhere in the project. If their usage is intended to be broader, consider reviewing other parts of the codebase for consistency.
- File:
packages/vue/src/split/src/pc.vue
- Components Used:
IconStretchUpright
,IconStretchCrosswise
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the proper usage and availability of new icon components. # Test: Search for the import statements of `IconStretchUpright` and `IconStretchCrosswise` in other Vue files. Expect: Proper usage and no missing dependencies. rg --type vue 'IconStretchUpright|IconStretchCrosswise'Length of output: 85
Script:
#!/bin/bash # Description: Verify the proper usage and availability of new icon components. # Test: Search for the import statements of `IconStretchUpright` and `IconStretchCrosswise` in .vue files. Expect: Proper usage and no missing dependencies. rg 'IconStretchUpright|IconStretchCrosswise' --glob '*.vue' -A 5Length of output: 1580
39-48
: Approved: Conditional rendering of trigger elements.The introduction of conditional rendering based on
state.triggerBarConWithLine
is approved. This enhances the component's flexibility. Ensure to verify the impact on user interaction and accessibility, especially considering the new icons that may convey different meanings or functionalities.Run the following script to verify the impact on user interaction and accessibility:
Also applies to: 114-123
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
notify 的标题变粗体

split的smb风格下, 拖手变为2个线条。
Summary by CodeRabbit
New Features
Split
component to enhance UI capabilities.Styling Improvements
Bug Fixes