fix(form-item): more appropriate modification that aligns with the form-item's intent to influence the width of subordinate elements (#4208)

This commit is contained in:
申君健 2026-05-19 15:56:08 +08:00 committed by GitHub
parent d323362039
commit 48c18a7adc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -109,7 +109,8 @@
:class="[
'[&_[aria-label=checkbox-group]]:pl-0.5 sm:[&_[aria-label=checkbox-group]]:pl-0',
'[&_>:first-child[data-tag=tiny-checkbox]]:pl-0.5 sm:[&_>:first-child[data-tag=tiny-checkbox]]:pl-0',
'[&_[class^=tiny-autocomplete]]:w-full',
'[&_.tiny-autocomplete]:w-full',
'[&_.tiny-cascader]:w-full',
state.isDisplayOnly
? '[&_>*:not([data-tag^=tiny-],[class^=tiny-])]:leading-8 [&_>*:not([data-tag^=tiny-],[class^=tiny-])]:sm:leading-normal'
: ''