@@ -13,7 +13,6 @@ import React, { useCallback, useEffect, useMemo } from "react";
1313import { CSSProperties } from "react" ;
1414import { RecordConstructorToComp } from "lowcoder-core" ;
1515import { ToViewReturn } from "@lowcoder-ee/comps/generators/multi" ;
16- import { clickEvent , eventHandlerControl } from "comps/controls/eventHandlerControl" ;
1716
1817export const ColumnValueTooltip = trans ( "table.columnValueTooltip" ) ;
1918
@@ -32,12 +31,9 @@ export const ButtonTypeOptions = [
3231 } ,
3332] as const ;
3433
35- const ButtonEventOptions = [ clickEvent ] as const ;
36-
3734const childrenMap = {
3835 text : StringControl ,
3936 buttonType : dropdownControl ( ButtonTypeOptions , "primary" ) ,
40- onEvent : eventHandlerControl ( ButtonEventOptions ) ,
4137 onClick : ActionSelectorControlInContext ,
4238 loading : BoolCodeControl ,
4339 disabled : BoolCodeControl ,
@@ -54,8 +50,7 @@ const ButtonStyled = React.memo(({ props }: { props: ToViewReturn<RecordConstruc
5450
5551 const handleClick = useCallback ( ( e : React . MouseEvent ) => {
5652 props . onClick ?.( ) ;
57- // props.onEvent?.("click");
58- } , [ props . onClick , props . onEvent ] ) ;
53+ } , [ props . onClick ] ) ;
5954
6055 const buttonStyle = useMemo ( ( ) => ( {
6156 margin : 0 ,
@@ -105,7 +100,6 @@ export const ButtonComp = (function () {
105100 } ) }
106101 { loadingPropertyView ( children ) }
107102 { disabledPropertyView ( children ) }
108- { /* {children.onEvent.propertyView()} */ }
109103 { children . onClick . propertyView ( {
110104 label : trans ( "table.action" ) ,
111105 placement : "table" ,
0 commit comments