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
6936adb2
Commit
6936adb2
authored
Nov 03, 2020
by
vben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(form): fix the form item setting not taking effect
parent
21a225c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+1
-0
FormItem.tsx
src/components/Form/src/FormItem.tsx
+3
-2
No files found.
CHANGELOG.zh_CN.md
View file @
6936adb2
...
...
@@ -17,6 +17,7 @@
-
修复升级之后 table 类型问题
-
修复分割菜单且左侧菜单没有数据时候,继续展示上一次子菜单的问题
-
修复
`useMessage`
类型问题
-
修复表单项设置
`disabled`
不生效问题
## 2.0.0-rc.8 (2020-11-2)
...
...
src/components/Form/src/FormItem.tsx
View file @
6936adb2
...
...
@@ -56,8 +56,9 @@ export default defineComponent({
const
getDisableRef
=
computed
(()
=>
{
const
{
disabled
:
globDisabled
}
=
props
.
formProps
;
const
{
dynamicDisabled
}
=
props
.
schema
;
let
disabled
=
!!
globDisabled
;
const
{
dynamicDisabled
,
componentProps
=
{}
}
=
props
.
schema
;
const
{
disabled
:
itemDisabled
=
false
}
=
componentProps
;
let
disabled
=
!!
globDisabled
||
itemDisabled
;
if
(
isBoolean
(
dynamicDisabled
))
{
disabled
=
dynamicDisabled
;
}
...
...
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