From 1bdb4645b51fb670ec81ad037819d77e582b5ec5 Mon Sep 17 00:00:00 2001 From: liaoxuezhi <2betop.cn@gmail.com> Date: Wed, 19 Apr 2023 19:14:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20tabsTransfer=20tab=20title=20=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=A8=A1=E7=89=88=20(#6614)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis-ui/src/components/TabsTransfer.tsx | 10 +++++++--- packages/amis-ui/src/components/Tree.tsx | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/amis-ui/src/components/TabsTransfer.tsx b/packages/amis-ui/src/components/TabsTransfer.tsx index f7f18d466..468f9ca0e 100644 --- a/packages/amis-ui/src/components/TabsTransfer.tsx +++ b/packages/amis-ui/src/components/TabsTransfer.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import {autobind} from 'amis-core'; +import {autobind, createObject, filter} from 'amis-core'; import Tabs, {Tab} from './Tabs'; import InputBox from './InputBox'; import TableCheckboxes from './TableSelection'; @@ -256,7 +256,8 @@ export class TabsTransfer extends React.Component< placeholder, activeKey, classnames: cx, - translate: __ + translate: __, + data } = this.props; const showOptions = options.filter(item => item.visible !== false); @@ -279,7 +280,10 @@ export class TabsTransfer extends React.Component< {option.searchable ? ( diff --git a/packages/amis-ui/src/components/Tree.tsx b/packages/amis-ui/src/components/Tree.tsx index 378bbca37..d053745d1 100644 --- a/packages/amis-ui/src/components/Tree.tsx +++ b/packages/amis-ui/src/components/Tree.tsx @@ -1247,7 +1247,7 @@ export class TreeSelector extends React.Component< return (