File tree Expand file tree Collapse file tree 3 files changed +18
-7
lines changed
Expand file tree Collapse file tree 3 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @kne-components/components-core" ,
3- "version" : " 0.4.0 " ,
3+ "version" : " 0.4.1 " ,
44 "files" : [
55 " build"
66 ],
Original file line number Diff line number Diff line change 11import { hooks } from "@kne/react-form-antd" ;
2- import { ColorPicker as ColorPickerField } from 'antd' ;
2+ import { ColorPicker as ColorPickerFieldAntd } from 'antd' ;
33
44const { useOnChange} = hooks ;
55
6+ const ColorPickerField = ( props ) => {
7+ return < ColorPickerFieldAntd { ...props } onChange = { ( value ) => {
8+ return props . onChange ( value . toHexString ( ) ) ;
9+ } } /> ;
10+ } ;
11+
612const ColorPicker = ( props ) => {
7- const render = useOnChange ( Object . assign ( { } , { placeholder : "请选择" + props . label } , props ) ) ;
13+ const render = useOnChange ( Object . assign ( { } , props ) ) ;
814 return render ( ColorPickerField ) ;
915} ;
1016
Original file line number Diff line number Diff line change 44 &.react- form--inner--large .react- form__field,
55 &.react- form--inner--small .react- form__field {
66 margin-bottom : 16px ;
7+
8+ .react-form__field-label {
9+ line-height : 20px ;
10+ height : 20px ;
11+ margin-bottom : 8px ;
12+ }
713 }
814 }
915
3743
3844 color : var (--font-color-grey );
3945 font-size : 14px ;
40- line-height : 20px ;
41- height : 20px ;
42- margin-bottom : 8px ;
46+ line-height : 32px ;
47+ height : 32px ;
4348 font-weight : normal !important ;
4449 }
4550
4853 }
4954
5055 .ant-input-number ,
51- .ant-input-number-group-wrapper {
56+ .ant-input-number-group-wrapper , .ant-input-number-affix-wrapper {
5257 width : 100% ;
5358 }
5459
You can’t perform that action at this time.
0 commit comments