@@ -13,7 +13,6 @@ import React, { useCallback, useEffect, useMemo } from "react";
13
13
import { CSSProperties } from "react" ;
14
14
import { RecordConstructorToComp } from "lowcoder-core" ;
15
15
import { ToViewReturn } from "@lowcoder-ee/comps/generators/multi" ;
16
- import { clickEvent , eventHandlerControl } from "comps/controls/eventHandlerControl" ;
17
16
18
17
export const ColumnValueTooltip = trans ( "table.columnValueTooltip" ) ;
19
18
@@ -32,12 +31,9 @@ export const ButtonTypeOptions = [
32
31
} ,
33
32
] as const ;
34
33
35
- const ButtonEventOptions = [ clickEvent ] as const ;
36
-
37
34
const childrenMap = {
38
35
text : StringControl ,
39
36
buttonType : dropdownControl ( ButtonTypeOptions , "primary" ) ,
40
- onEvent : eventHandlerControl ( ButtonEventOptions ) ,
41
37
onClick : ActionSelectorControlInContext ,
42
38
loading : BoolCodeControl ,
43
39
disabled : BoolCodeControl ,
@@ -54,8 +50,7 @@ const ButtonStyled = React.memo(({ props }: { props: ToViewReturn<RecordConstruc
54
50
55
51
const handleClick = useCallback ( ( e : React . MouseEvent ) => {
56
52
props . onClick ?.( ) ;
57
- // props.onEvent?.("click");
58
- } , [ props . onClick , props . onEvent ] ) ;
53
+ } , [ props . onClick ] ) ;
59
54
60
55
const buttonStyle = useMemo ( ( ) => ( {
61
56
margin : 0 ,
@@ -105,7 +100,6 @@ export const ButtonComp = (function () {
105
100
} ) }
106
101
{ loadingPropertyView ( children ) }
107
102
{ disabledPropertyView ( children ) }
108
- { /* {children.onEvent.propertyView()} */ }
109
103
{ children . onClick . propertyView ( {
110
104
label : trans ( "table.action" ) ,
111
105
placement : "table" ,
0 commit comments