Showing
2 changed files
with
8 additions
and
5 deletions
... | ... | @@ -306,10 +306,13 @@ export const commonDataSourceSchemas = (): FormSchema[] => { |
306 | 306 | ? DataTypeEnum.BOOL |
307 | 307 | : undefined, |
308 | 308 | }); |
309 | - // 过滤只读属性 | |
310 | - option = option.filter( | |
311 | - (item) => item.accessMode !== ObjectModelAccessModeEnum.READ | |
312 | - ); | |
309 | + | |
310 | + if (isControlComponent(category)) { | |
311 | + // 过滤只读属性 | |
312 | + option = option.filter( | |
313 | + (item) => item.accessMode !== ObjectModelAccessModeEnum.READ | |
314 | + ); | |
315 | + } | |
313 | 316 | |
314 | 317 | // 选择控制组件4的时候只能选择属性且是(int double类型) |
315 | 318 | if ( | ... | ... |