@hw-component/form 1.10.11 → 1.10.12
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/package.json
CHANGED
|
@@ -35,7 +35,12 @@ const HTimePicker:React.FC<HTimeRangePickerProps>=({value,format="HH:mm:ss",addF
|
|
|
35
35
|
},
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
return <TimePicker.RangePicker value={value}
|
|
38
|
+
return <TimePicker.RangePicker value={value}
|
|
39
|
+
onChange={onChange}
|
|
40
|
+
order={order}
|
|
41
|
+
format={format}
|
|
42
|
+
style={{ width: '100%' }}
|
|
43
|
+
{...props}/>;
|
|
39
44
|
}
|
|
40
45
|
|
|
41
46
|
const Index=HFormConnect(HTimePicker);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Space } from "antd";
|
|
2
|
-
import {
|
|
2
|
+
import {HDatePicker, HRangePicker, HTimePicker, HTimeRangePicker} from "../../components";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
export default () => {
|
|
5
5
|
const [timeVal, setTimeVal] = useState({
|
|
@@ -36,6 +36,7 @@ export default () => {
|
|
|
36
36
|
console.log(val);
|
|
37
37
|
}}
|
|
38
38
|
/>
|
|
39
|
+
<HTimeRangePicker format="HH:mm"/>
|
|
39
40
|
</Space>
|
|
40
41
|
</div>
|
|
41
42
|
);
|
package/src/pages/Form/index.tsx
CHANGED
|
@@ -98,11 +98,14 @@ export default () => {
|
|
|
98
98
|
// },
|
|
99
99
|
// },
|
|
100
100
|
// },
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
{
|
|
102
|
+
label: "文字1",
|
|
103
|
+
name: "wz1",
|
|
104
|
+
type:"timeRangePicker",
|
|
105
|
+
itemProps:{
|
|
106
|
+
format:"HH:mm"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
106
109
|
// {
|
|
107
110
|
// label: "inputSelect",
|
|
108
111
|
// type: "richEditor",
|