Skip to content

Commit 05130d1

Browse files
committed
feat: 1.3.7
1 parent 7fcdd47 commit 05130d1

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

Diff for: docs/types/demo/index.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ export default () => {
1818
<YForm onFinish={onFinish} onFinishFailed={onFinishFailed} onSave={onSave}>
1919
{[
2020
{ type: 'input', label: '文本', name: 'input' },
21+
{
22+
type: 'datePicker',
23+
label: '日期',
24+
name: 'date',
25+
componentProps: { picker: 'date', mode: 'date' },
26+
},
2127
{ type: 'money', label: '金额', name: 'money' },
2228
{
2329
type: 'textarea',

Diff for: packages/yforms/src/YForm/ItemsTypeModify.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { noData } from './component/ComponentView';
2323

2424
const dateFormat = (
2525
value?: any,
26-
props?: { picker?: PickerMode; format?: string | string[] },
26+
props?: { picker?: PickerMode; format?: any },
2727
type?: string,
2828
pureValue?: boolean,
2929
) => {

Diff for: packages/yforms/src/YForm/component/CheckboxGroup.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ export default forwardRef<any, YCheckGroupProps>((props, ref) => {
3939
);
4040
}
4141
});
42+
React.useImperativeHandle(ref, () => props);
43+
4244
return (
43-
<Checkbox.Group value={value} {...rest} ref={ref}>
45+
<Checkbox.Group value={value} {...rest}>
4446
{children}
4547
</Checkbox.Group>
4648
);

0 commit comments

Comments
 (0)