@@ -19,10 +19,12 @@ import { AnimationStyle, CheckboxStyle, CheckboxStyleType, InputFieldStyle, Labe
1919import { RadioLayoutOptions , RadioPropertyView } from "./radioCompConstants" ;
2020import { dropdownControl } from "../../controls/dropdownControl" ;
2121import { ValueFromOption , lightenColor } from "lowcoder-design" ;
22+ import { EllipsisTextCss } from "lowcoder-design" ;
2223import { trans } from "i18n" ;
2324import { RefControl } from "comps/controls/refControl" ;
2425import { migrateOldData } from "comps/generators/simpleGenerators" ;
2526import { fixOldInputCompData } from "../textInputComp/textInputConstants" ;
27+ import Tooltip from "antd/es/tooltip" ;
2628import { useCallback , useRef , useEffect , memo } from "react" ;
2729
2830export const getStyle = ( style : CheckboxStyleType ) => {
@@ -32,10 +34,7 @@ export const getStyle = (style: CheckboxStyleType) => {
3234 max-width : calc (100% - 8px );
3335
3436 span : not (.ant-checkbox ) {
35- text-overflow : ellipsis;
36- overflow : hidden;
37- white-space : nowrap;
38- }
37+ ${ EllipsisTextCss } ;
3938 }
4039
4140 .ant-checkbox .ant-checkbox-checked > .ant-checkbox-inner {
@@ -80,6 +79,8 @@ export const getStyle = (style: CheckboxStyleType) => {
8079 ${ style . hoverBackground && `border-color: ${ style . hoverBackground } ` } ;
8180 }
8281
82+
83+
8384 & : hover .ant-checkbox-inner ,
8485 .ant-checkbox : hover .ant-checkbox-inner ,
8586 .ant-checkbox-input : focus + .ant-checkbox-inner {
@@ -93,6 +94,8 @@ export const getStyle = (style: CheckboxStyleType) => {
9394 }
9495 }
9596
97+
98+
9699 .ant-checkbox-group-item {
97100 font-family : ${ style . fontFamily } ;
98101 font-size : ${ style . textSize } ;
0 commit comments