antvis / component

🍱 AntV UI component based on G render engine.
https://github.com/antvis/component
MIT License
59 stars 39 forks source link

Checkbox doesn't have "Check" Icon in it? #324

Open TheStarkster opened 2 months ago

TheStarkster commented 2 months ago

I was rendering checkbox component in my AntV S2 table and i see when the checkbox is checked, there's just color fill, but no icon in it, Is that normal? Or am i doing something wrong?

Screenshot 2024-08-24 at 2 11 32 PM
this.append(new Checkbox({
                style: {
                    boxX: this.meta.x + 10,
                    boxY: this.meta.y + 10,
                    checked: this.selectedRows?.includes(Number(this.meta.rowIndex)),
                    checkedX: this.meta.x + 10,
                    checkedY: this.meta.y + 10,
                },
            }))
TheStarkster commented 2 months ago

On further investigation it seems no property starting with prefix "checked" are working checkedX, checkedY etc. but individual boolean property checked works fine as you can also see in the screenshot in the comment before