Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f89f4f32
authored
Oct 17, 2024
by
Vben
Committed by
GitHub
Oct 17, 2024
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: form required style adjustment (#4668)
1 parent
c432e0ac
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
packages/@core/ui-kit/form-ui/src/form-render/form-field.vue
packages/@core/ui-kit/form-ui/src/form-render/form-label.vue
packages/effects/layouts/src/authentication/authentication.vue
packages/@core/ui-kit/form-ui/src/form-render/form-field.vue
View file @
f89f4f3
...
...
@@ -278,7 +278,7 @@ function autofocus() {
cn(
'flex leading-6',
{
'mr-2 flex-shrink-0': !isVertical,
'mr-2 flex-shrink-0
justify-end
': !isVertical,
'flex-row': isVertical,
},
!isVertical
&&
labelClass,
...
...
packages/@core/ui-kit/form-ui/src/form-render/form-label.vue
View file @
f89f4f3
<
script
setup
lang=
"ts"
>
import
{
FormLabel
,
VbenHelpTooltip
}
from
'@vben-core/shadcn-ui'
;
import
{
cn
}
from
'@vben-core/shared/utils'
;
interface
Props
{
class
?:
string
;
help
?:
string
;
required
?:
boolean
;
}
defineProps
<
Props
>
();
const
props
=
defineProps
<
Props
>
();
</
script
>
<
template
>
<FormLabel
class=
"flex flex-row-reverse items-center"
>
<FormLabel
:class=
"cn('mb-1 flex items-center', props.class)"
>
<span
v-if=
"required"
class=
"text-destructive mr-[2px]"
>
*
</span>
<slot></slot>
<VbenHelpTooltip
v-if=
"help"
trigger-class=
"size-3.5 ml-1"
>
{{
help
}}
</VbenHelpTooltip>
<slot></slot>
<span
v-if=
"required"
class=
"text-destructive mr-[2px]"
>
*
</span>
</FormLabel>
</
template
>
packages/effects/layouts/src/authentication/authentication.vue
View file @
f89f4f3
...
...
@@ -61,12 +61,12 @@ const { authPanelCenter, authPanelLeft, authPanelRight, isDark } =
</AuthenticationFormView>
<!-- 头部 Logo 和应用名称 -->
<div
class=
"absolute left-0 top-0 z-10 flex flex-1"
>
<div
v-if=
"logo || appName"
class=
"absolute left-0 top-0 z-10 flex flex-1"
>
<div
class=
"text-foreground lg:text-foreground ml-4 mt-4 flex flex-1 items-center sm:left-6 sm:top-6"
>
<img
:alt=
"appName"
:src=
"logo"
class=
"mr-2"
width=
"42"
/>
<p
class=
"text-xl font-medium"
>
<img
v-if=
"logo"
:alt=
"appName"
:src=
"logo"
class=
"mr-2"
width=
"42"
/>
<p
v-if=
"appName"
class=
"text-xl font-medium"
>
{{ appName }}
</p>
</div>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment