Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
najiu-frontend
najiu-admin-template
Commits
a9bbed19
Commit
a9bbed19
authored
Jul 09, 2021
by
无木
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(form): fix `suffix` slot style
修复suffix插槽的样式问题
parent
0595a72d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
37 deletions
+39
-37
FormAction.vue
src/components/Form/src/components/FormAction.vue
+36
-34
FormItem.vue
src/components/Form/src/components/FormItem.vue
+3
-3
No files found.
src/components/Form/src/components/FormAction.vue
View file @
a9bbed19
<
template
>
<
template
>
<a-col
v-bind=
"actionColOpt"
:style=
"
{ textAlign: 'right' }" v-if="showActionButtonGroup">
<a-col
v-bind=
"actionColOpt"
:style=
"
{ textAlign: 'right' }" v-if="showActionButtonGroup">
<div
style=
"width: 100%; text-align: right"
>
<FormItem>
<FormItem>
<slot
name=
"resetBefore"
></slot>
<slot
name=
"resetBefore"
></slot>
<Button
<Button
...
@@ -35,6 +36,7 @@
...
@@ -35,6 +36,7 @@
</Button>
</Button>
<slot
name=
"advanceAfter"
></slot>
<slot
name=
"advanceAfter"
></slot>
</FormItem>
</FormItem>
</div>
</a-col>
</a-col>
</
template
>
</
template
>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
...
@@ -43,7 +45,7 @@
...
@@ -43,7 +45,7 @@
import
{
defineComponent
,
computed
,
PropType
}
from
'
vue
'
;
import
{
defineComponent
,
computed
,
PropType
}
from
'
vue
'
;
import
{
Form
,
Col
}
from
'
ant-design-vue
'
;
import
{
Form
,
Col
}
from
'
ant-design-vue
'
;
import
{
Button
,
ButtonProps
}
from
'
/@/components/Button
'
;
import
{
Button
,
ButtonProps
}
from
'
/@/components/Button
'
;
import
{
BasicArrow
}
from
'
/@/components/Basic
/index
'
;
import
{
BasicArrow
}
from
'
/@/components/Basic
'
;
import
{
useFormContext
}
from
'
../hooks/useFormContext
'
;
import
{
useFormContext
}
from
'
../hooks/useFormContext
'
;
import
{
useI18n
}
from
'
/@/hooks/web/useI18n
'
;
import
{
useI18n
}
from
'
/@/hooks/web/useI18n
'
;
import
{
propTypes
}
from
'
/@/utils/propTypes
'
;
import
{
propTypes
}
from
'
/@/utils/propTypes
'
;
...
...
src/components/Form/src/components/FormItem.vue
View file @
a9bbed19
...
@@ -326,10 +326,10 @@
...
@@ -326,10 +326,10 @@
labelCol
=
{
labelCol
}
labelCol
=
{
labelCol
}
wrapperCol
=
{
wrapperCol
}
wrapperCol
=
{
wrapperCol
}
>
>
<>
<
div
style
=
"
display:flex
"
>
{
getContent
()}
<
div
style
=
"
flex:1
"
>
{
getContent
()}
<
/div
>
{
showSuffix
&&
<
span
class
=
"
suffix
"
>
{
getSuffix
}
<
/span>
}
{
showSuffix
&&
<
span
class
=
"
suffix
"
>
{
getSuffix
}
<
/span>
}
<
/
>
<
/
div
>
<
/Form.Item
>
<
/Form.Item
>
);
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment