x-read-only和readonly的区别 #1632
Answered
by
janryWang
MatriXiao88
asked this question in
Q&A [2.x]
-
我看到这里的的代码会存在x-read-only和readonly,并且会优先使用x-read-only,那么是否两者重复了呢,因为他们最后都是被readOnly 变量使用,并没有区分对待 const readOnly = isValid(schema['x-read-only'])
? schema['x-read-only']
: schema['readOnly'] |
Beta Was this translation helpful? Give feedback.
Answered by
janryWang
Jun 23, 2021
Replies: 1 comment
-
x-read-only是控制交互模式的,readOnly仅仅只是schema协议的校验属性,两者语意还是不太一样,虽然目前还没做啥特殊区分…… |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
janryWang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
x-read-only是控制交互模式的,readOnly仅仅只是schema协议的校验属性,两者语意还是不太一样,虽然目前还没做啥特殊区分……