Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-vue-admin
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-vue-admin
Commits
c8ef82b2
提交
c8ef82b2
authored
11月 18, 2020
作者:
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(form): fix baseColProps not work
上级
cd35d3e0
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
15 行增加
和
4 行删除
+15
-4
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+2
-0
FormItem.tsx
src/components/Form/src/FormItem.tsx
+5
-1
useAdvanced.ts
src/components/Form/src/hooks/useAdvanced.ts
+7
-2
BasicTable.vue
src/components/Table/src/BasicTable.vue
+1
-1
没有找到文件。
CHANGELOG.zh_CN.md
浏览文件 @
c8ef82b2
...
@@ -17,6 +17,8 @@
...
@@ -17,6 +17,8 @@
-
修复表单 inputNumber 校验错误
-
修复表单 inputNumber 校验错误
-
修复表单默认值设置错误
-
修复表单默认值设置错误
-
修复菜单折叠按钮隐藏时占位问题
-
修复表单 baseColProps 不生效
## 2.0.0-rc.10 (2020-11-13)
## 2.0.0-rc.10 (2020-11-13)
...
...
src/components/Form/src/FormItem.tsx
浏览文件 @
c8ef82b2
...
@@ -91,7 +91,11 @@ export default defineComponent({
...
@@ -91,7 +91,11 @@ export default defineComponent({
function
getShow
()
{
function
getShow
()
{
const
{
show
,
ifShow
}
=
props
.
schema
;
const
{
show
,
ifShow
}
=
props
.
schema
;
const
{
showAdvancedButton
}
=
props
.
formProps
;
const
{
showAdvancedButton
}
=
props
.
formProps
;
const
itemIsAdvanced
=
showAdvancedButton
?
!!
props
.
schema
.
isAdvanced
:
true
;
const
itemIsAdvanced
=
showAdvancedButton
?
isBoolean
(
props
.
schema
.
isAdvanced
)
?
props
.
schema
.
isAdvanced
:
true
:
true
;
let
isShow
=
true
;
let
isShow
=
true
;
let
isIfShow
=
true
;
let
isIfShow
=
true
;
...
...
src/components/Form/src/hooks/useAdvanced.ts
浏览文件 @
c8ef82b2
...
@@ -132,6 +132,8 @@ export default function ({
...
@@ -132,6 +132,8 @@ export default function ({
function
updateAdvanced
()
{
function
updateAdvanced
()
{
let
itemColSum
=
0
;
let
itemColSum
=
0
;
let
realItemColSum
=
0
;
let
realItemColSum
=
0
;
const
{
baseColProps
=
{}
}
=
unref
(
getProps
);
for
(
const
schema
of
unref
(
getSchema
))
{
for
(
const
schema
of
unref
(
getSchema
))
{
const
{
show
,
colProps
}
=
schema
;
const
{
show
,
colProps
}
=
schema
;
let
isShow
=
true
;
let
isShow
=
true
;
...
@@ -152,8 +154,11 @@ export default function ({
...
@@ -152,8 +154,11 @@ export default function ({
});
});
}
}
if
(
isShow
&&
colProps
)
{
if
(
isShow
&&
(
colProps
||
baseColProps
))
{
const
{
itemColSum
:
sum
,
isAdvanced
}
=
getAdvanced
(
colProps
,
itemColSum
);
const
{
itemColSum
:
sum
,
isAdvanced
}
=
getAdvanced
(
{
...
baseColProps
,
...
colProps
},
itemColSum
);
itemColSum
=
sum
||
0
;
itemColSum
=
sum
||
0
;
if
(
isAdvanced
)
{
if
(
isAdvanced
)
{
...
...
src/components/Table/src/BasicTable.vue
浏览文件 @
c8ef82b2
...
@@ -8,9 +8,9 @@
...
@@ -8,9 +8,9 @@
}"
}"
>
>
<BasicForm
<BasicForm
:submitOnReset=
"true"
v-bind=
"getFormProps"
v-bind=
"getFormProps"
v-if=
"getBindValues.useSearchForm"
v-if=
"getBindValues.useSearchForm"
:submitOnReset=
"true"
:submitButtonOptions=
"
{ loading }"
:submitButtonOptions=
"
{ loading }"
:tableAction="tableAction"
:tableAction="tableAction"
@register="registerForm"
@register="registerForm"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论