Skip to content

Commit 3ca594c

Browse files
committed
event handler added
1 parent eb244e1 commit 3ca594c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

client/packages/lowcoder/src/comps/comps/layout/mobileTabLayout.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import { ThemeContext } from "@lowcoder-ee/comps/utils/themeContext";
3030
import { AlignCenter } from "lowcoder-design";
3131
import { AlignLeft } from "lowcoder-design";
3232
import { AlignRight } from "lowcoder-design";
33+
import { LayoutActionComp } from "./layoutActionComp";
3334

3435
const TabBar = React.lazy(() => import("antd-mobile/es/components/tab-bar"));
3536
const TabBarItem = React.lazy(() =>
@@ -250,6 +251,7 @@ const TabOptionComp = (function () {
250251
return new MultiCompBuilder(
251252
{
252253
app: AppSelectComp,
254+
action: LayoutActionComp,
253255
label: StringControl,
254256
icon: IconControl,
255257
hidden: BoolCodeControl,
@@ -261,12 +263,17 @@ const TabOptionComp = (function () {
261263
.setPropertyViewFn((children, dispatch) => {
262264
return (
263265
<>
266+
{children.action.propertyView({
267+
onAppChange: (label:any) => {
268+
label && children.label.dispatchChangeValueAction(label);
269+
},
270+
})}
264271
{children.app.propertyView({})}
265272
{children.label.propertyView({ label: trans("label") })}
266273
{hiddenPropertyView(children)}
267274
{children.icon.propertyView({
268-
label: trans("icon"),
269-
tooltip: trans("aggregation.iconTooltip"),
275+
label: trans('icon'),
276+
tooltip: trans('aggregation.iconTooltip'),
270277
})}
271278
</>
272279
);

0 commit comments

Comments
 (0)