Skip to content

Commit

Permalink
fix(lib): ui:hidden 透传到widget组件
Browse files Browse the repository at this point in the history
fix #170
  • Loading branch information
lljj-x committed Apr 11, 2022
1 parent 60cac99 commit f63094e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/lib/utils/formUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ export function getUserUiOptions({
return { ...options, ...value };
}

if (key.indexOf('ui:') === 0) {
// https://github.com/lljj-x/vue-json-schema-form/issues/170
// ui:hidden需要作为内置属性使用,不能直接透传给widget组件,如果组件需要只能在ui:options 中使用hidden传递
if (key !== 'ui:hidden' && key.indexOf('ui:') === 0) {
// 只对 ui:xxx 配置形式支持表达式
return {
...options,
Expand Down

0 comments on commit f63094e

Please sign in to comment.