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
237f41da
Commit
237f41da
authored
Mar 26, 2021
by
Vben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(form): ensure that the hidden fields of the form are verified properly, fix #413
parent
5c57a1dd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
3 deletions
+12
-3
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+1
-0
FormItem.vue
src/components/Form/src/components/FormItem.vue
+2
-2
index.less
src/design/ant/index.less
+1
-1
RuleForm.vue
src/views/demo/form/RuleForm.vue
+8
-0
No files found.
CHANGELOG.zh_CN.md
View file @
237f41da
...
...
@@ -20,6 +20,7 @@
-
确保 progress 进度条正确关闭
-
修复表格勾选列配置失效问题
-
确保一级菜单可以被隐藏
-
确保表单隐藏字段校验正常
### 🎫 Chores
...
...
src/components/Form/src/components/FormItem.vue
View file @
237f41da
...
...
@@ -156,9 +156,9 @@
if
(
!
isShow
)
{
rule
.
required
=
false
;
}
if
(
rule
.
required
&&
component
)
{
if
(
component
)
{
if
(
!
Reflect
.
has
(
rule
,
'
type
'
))
{
rule
.
type
=
'
string
'
;
rule
.
type
=
component
===
'
InputNumber
'
?
'
number
'
:
'
string
'
;
}
const
joinLabel
=
Reflect
.
has
(
props
.
schema
,
'
rulesMessageJoinLabel
'
)
?
rulesMessageJoinLabel
...
...
src/design/ant/index.less
View file @
237f41da
...
...
@@ -14,7 +14,7 @@
}
span.anticon:not(.app-iconify) {
vertical-align: 0.1
35em
;
vertical-align: 0.1
25em !important
;
}
.ant-back-top {
...
...
src/views/demo/form/RuleForm.vue
View file @
237f41da
...
...
@@ -38,6 +38,14 @@
},
required
:
true
,
},
{
field
:
'
id
'
,
label
:
'
id
'
,
required
:
true
,
defaultValue
:
0
,
component
:
'
InputNumber
'
,
show
:
false
,
},
{
field
:
'
field3
'
,
component
:
'
DatePicker
'
,
...
...
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