-
Notifications
You must be signed in to change notification settings - Fork 269
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
docs(form): [form] optimize demo and docs #2401
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
:hide-required-asterisk="hideRequiredAsterisk" | ||
:model="createData" | ||
:rules="rules" | ||
label-width="100px" | ||
label-width="108px" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Label width inconsistency detected The change to
Consider maintaining consistency by keeping the label width at 🔗 Analysis chainVerify label-width consistency across form demos The label width change from 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Search for label-width values in other form demos
rg -l 'label-width="(?!108px)' examples/sites/demos/pc/app/form/
Length of output: 305 Script: #!/bin/bash
# Search for label-width values in form demos using a simpler pattern
rg 'label-width="[^"]*"' examples/sites/demos/pc/app/form/ -A 1
Length of output: 7489 |
||
validate-type="text" | ||
message-type="block" | ||
> | ||
|
@@ -30,7 +30,7 @@ | |
</template> | ||
|
||
<script> | ||
import { Form, FormItem, Input, Button, Modal, Switch } from '@opentiny/vue' | ||
import { Form, FormItem, Input, Button, Switch } from '@opentiny/vue' | ||
|
||
export default { | ||
components: { | ||
|
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.
💡 Codebase verification
Label width change to 108px is inconsistent with other form demos
The change from 100px to 108px in
smb-required-composition-api.vue
creates inconsistency, as most form demos uselabel-width="100px"
. Only two files use 108px:This inconsistency should be addressed by either:
🔗 Analysis chain
LGTM! Verify label-width consistency across demos.
The label-width adjustment improves visual alignment. Let's verify this change is consistent across related demos.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 312
Script:
Length of output: 18284