Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-vue-admin
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-vue-admin
Commits
a9bbed19
提交
a9bbed19
authored
7月 09, 2021
作者:
无木
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(form): fix `suffix` slot style
修复suffix插槽的样式问题
上级
0595a72d
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
39 行增加
和
37 行删除
+39
-37
FormAction.vue
src/components/Form/src/components/FormAction.vue
+36
-34
FormItem.vue
src/components/Form/src/components/FormItem.vue
+3
-3
没有找到文件。
src/components/Form/src/components/FormAction.vue
浏览文件 @
a9bbed19
<
template
>
<a-col
v-bind=
"actionColOpt"
:style=
"
{ textAlign: 'right' }" v-if="showActionButtonGroup">
<FormItem>
<slot
name=
"resetBefore"
></slot>
<Button
type=
"default"
class=
"mr-2"
v-bind=
"getResetBtnOptions"
@
click=
"resetAction"
v-if=
"showResetButton"
>
{{
getResetBtnOptions
.
text
}}
</Button>
<slot
name=
"submitBefore"
></slot>
<div
style=
"width: 100%; text-align: right"
>
<FormItem>
<slot
name=
"resetBefore"
></slot>
<Button
type=
"default"
class=
"mr-2"
v-bind=
"getResetBtnOptions"
@
click=
"resetAction"
v-if=
"showResetButton"
>
{{
getResetBtnOptions
.
text
}}
</Button>
<slot
name=
"submitBefore"
></slot>
<Button
type=
"primary"
class=
"mr-2"
v-bind=
"getSubmitBtnOptions"
@
click=
"submitAction"
v-if=
"showSubmitButton"
>
{{
getSubmitBtnOptions
.
text
}}
</Button>
<Button
type=
"primary"
class=
"mr-2"
v-bind=
"getSubmitBtnOptions"
@
click=
"submitAction"
v-if=
"showSubmitButton"
>
{{
getSubmitBtnOptions
.
text
}}
</Button>
<slot
name=
"advanceBefore"
></slot>
<Button
type=
"link"
size=
"small"
@
click=
"toggleAdvanced"
v-if=
"showAdvancedButton && !hideAdvanceBtn"
>
{{
isAdvanced
?
t
(
'component.form.putAway'
)
:
t
(
'component.form.unfold'
)
}}
<BasicArrow
class=
"ml-1"
:expand=
"!isAdvanced"
up
/>
</Button>
<slot
name=
"advanceAfter"
></slot>
</FormItem>
<slot
name=
"advanceBefore"
></slot>
<Button
type=
"link"
size=
"small"
@
click=
"toggleAdvanced"
v-if=
"showAdvancedButton && !hideAdvanceBtn"
>
{{
isAdvanced
?
t
(
'component.form.putAway'
)
:
t
(
'component.form.unfold'
)
}}
<BasicArrow
class=
"ml-1"
:expand=
"!isAdvanced"
up
/>
</Button>
<slot
name=
"advanceAfter"
></slot>
</FormItem>
</div>
</a-col>
</
template
>
<
script
lang=
"ts"
>
...
...
@@ -43,7 +45,7 @@
import
{
defineComponent
,
computed
,
PropType
}
from
'vue'
;
import
{
Form
,
Col
}
from
'ant-design-vue'
;
import
{
Button
,
ButtonProps
}
from
'/@/components/Button'
;
import
{
BasicArrow
}
from
'/@/components/Basic
/index
'
;
import
{
BasicArrow
}
from
'/@/components/Basic'
;
import
{
useFormContext
}
from
'../hooks/useFormContext'
;
import
{
useI18n
}
from
'/@/hooks/web/useI18n'
;
import
{
propTypes
}
from
'/@/utils/propTypes'
;
...
...
src/components/Form/src/components/FormItem.vue
浏览文件 @
a9bbed19
...
...
@@ -326,10 +326,10 @@
labelCol
=
{
labelCol
}
wrapperCol
=
{
wrapperCol
}
>
<>
{
getContent
()}
<
div
style
=
"display:flex"
>
<
div
style
=
"flex:1"
>
{
getContent
()}
<
/div
>
{
showSuffix
&&
<
span
class
=
"suffix"
>
{
getSuffix
}
<
/span>
}
<
/
>
<
/
div
>
<
/Form.Item
>
);
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论