Skip to content

Commit 2798f3f

Browse files
committed
revert back
1 parent 09f6c22 commit 2798f3f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

client/packages/lowcoder/src/comps/comps/tableComp/column/simpleColumnTypeComps.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import React, { useCallback, useEffect, useMemo } from "react";
1313
import { CSSProperties } from "react";
1414
import { RecordConstructorToComp } from "lowcoder-core";
1515
import { ToViewReturn } from "@lowcoder-ee/comps/generators/multi";
16-
import { clickEvent, eventHandlerControl } from "comps/controls/eventHandlerControl";
1716

1817
export 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-
3734
const 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

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy