Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2798f3f

Browse files
committed
revert back
1 parent09f6c22 commit2798f3f

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
exportconstColumnValueTooltip=trans("table.columnValueTooltip");
1918

@@ -32,12 +31,9 @@ export const ButtonTypeOptions = [
3231
},
3332
]asconst;
3433

35-
constButtonEventOptions=[clickEvent]asconst;
36-
3734
constchildrenMap={
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
consthandleClick=useCallback((e:React.MouseEvent)=>{
5652
props.onClick?.();
57-
// props.onEvent?.("click");
58-
},[props.onClick,props.onEvent]);
53+
},[props.onClick]);
5954

6055
constbuttonStyle=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)

[8]ページ先頭

©2009-2025 Movatter.jp