@fastspace/schema-form 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/schema-form-lib.js +192 -188
- package/dist/schema-form-lib.umd.cjs +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -157,6 +157,7 @@ type OptionItem = {
|
|
|
157
157
|
{ label: 'User B', value: 'b' }
|
|
158
158
|
]
|
|
159
159
|
},
|
|
160
|
+
// 使用 ui.props 或 fieldProps 都可以透传属性
|
|
160
161
|
fieldProps: {
|
|
161
162
|
// 这里的 onChange 会在表单值更新后触发
|
|
162
163
|
onChange: (event, option) => {
|
|
@@ -170,6 +171,9 @@ type OptionItem = {
|
|
|
170
171
|
}
|
|
171
172
|
```
|
|
172
173
|
|
|
174
|
+
> **注意**:在 v0.0.14 之前,`fieldProps` 需要写在 `ui.props` 中。从 v0.0.14 开始,支持直接在 Schema 顶层使用 `fieldProps`,这与 `ui.props` 是等效的。
|
|
175
|
+
|
|
176
|
+
|
|
173
177
|
### 日期时间组件
|
|
174
178
|
|
|
175
179
|
| 组件名 | 说明 | 数据类型 |
|