alibaba / alibaba/x-render

form-render-mobile 中 picker类的表单项设置disabled无效

Open
#1,490 0 comments 0 reactions 1 assignee Claimed by @lhbxs View on GitHub
Dominant language
TypeScript
Stars
7.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

**1.依赖仓库的版本**:

- antd-mobile 5.34.0
- form-render-mobile 1.0.14

**2. picker类的表单项设置disabled无效**:

**3.出现问题的 schema demo**:
```js
const schema = {
type: 'object',
properties: {
cascader: {
title: '级联',
type: 'array',
widget: 'cascader',
props: {
disabled: true,
options: [
{
label: '浙江',
value: 1,
children: [{ label: '杭州', value: 2 }],
},
],
},
},
picker: {
title: '选择',
type: 'string',
widget: 'picker',
props: {
disabled: true,
options: [
{ label: '火车', value: 1 },
{ label: '飞机', value: 2 },
{ label: '火箭', value: 3 },
],
},
},
date: {
title: '日期',
type: 'string',
widget: 'datePicker',
props: {
disabled: true,
precision: 'month',
},
},
},
}
```

**4.复现 demo**:
https://stackblitz.com/edit/react-anszig?file=App.tsx

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.