Closed DesignHhuang closed 2 days ago
Latest commit: 0d53fa577475a139bf1eefcfef57018f08b42d3c
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
The changes in the form-actions.vue
component focus on the handleRangeTimeValue
function, where a new condition was added to clear the startTimeKey
and endTimeKey
values when both are defined and the main field value is null
. The component's overall structure, interface, and core logic, including computed properties and form handling functions, remain unchanged. The watch
function for the collapsed
state continues to function as before, ensuring responsiveness.
File Path | Change Summary |
---|---|
packages/@core/ui-kit/form-ui/src/components/form-actions.vue | Modified handleRangeTimeValue to clear startTimeKey and endTimeKey if both are defined and the main field is null . No changes to overall structure or public entity declarations. |
handleRangeTimeValue
function in form-actions.vue
, which is directly related to the changes made in the main PR that also involves modifications to the same function, specifically adding a condition for clearing time values.🐇 In the meadow, time does play,
With fields of values, bright and gay.
When the main field's empty, oh so clear,
We tidy up, bring time fields near.
A hop, a skip, all's in line,
In our form's dance, everything's fine! 🌼
[!WARNING] There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure.
🔧 eslint
> If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.packages/@core/ui-kit/form-ui/src/components/form-actions.vue
Oops! Something went wrong! :( ESLint: 9.14.0 Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/node_modules/@vben/eslint-config/dist/index.mjs' imported from /eslint.config.mjs at finalizeResolution (node:internal/modules/esm/resolve:257:11) at moduleResolve (node:internal/modules/esm/resolve:914:10) at defaultResolve (node:internal/modules/esm/resolve:1038:11) at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:557:12) at ModuleLoader.resolve (node:internal/modules/esm/loader:525:25) at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:246:38) at ModuleJob._link (node:internal/modules/esm/module_job:126:49)
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?
Description
fixed #4892
4904 的方式可能引起别的bug , 这边重新修改提了 PR
Type of change
Please delete options that are not relevant.
Summary by CodeRabbit
Bug Fixes
Refactor