From e2ddf1d3196bd6f63d4f2f5224b921c5413c2cf8 Mon Sep 17 00:00:00 2001 From: yangwei14 Date: Tue, 22 Apr 2025 16:40:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20inputtable=E7=BB=84=E4=BB=B6=E7=89=B9?= =?UTF-8?q?=E5=AE=9A=E5=8A=A8=E4=BD=9Csetvaalue=E7=9A=84=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=9D=A2=E6=9D=BF=20=E8=A1=8C=E5=BA=8F=E5=8F=B7=E6=8C=87?= =?UTF-8?q?=E5=AE=9A=E6=94=AF=E6=8C=81=E8=A1=A8=E8=BE=BE=E5=BC=8F=E8=BE=93?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/renderer/event-control/helper.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/packages/amis-editor/src/renderer/event-control/helper.tsx b/packages/amis-editor/src/renderer/event-control/helper.tsx index 3f5a42c2b35..f145809abb3 100644 --- a/packages/amis-editor/src/renderer/event-control/helper.tsx +++ b/packages/amis-editor/src/renderer/event-control/helper.tsx @@ -375,17 +375,21 @@ export const COMMON_ACTION_SCHEMA_MAP: { form.setValueByName('__valueInput', undefined); } }, - { - type: 'input-number', - required: true, + getSchemaTpl('formulaControl', { name: 'index', - mode: 'horizontal', label: '输入序号', + required: true, + rendererSchema: { + type: 'input-number' + }, + valueType: 'number', + variables: '${variables}', size: 'lg', + mode: 'horizontal', placeholder: '请输入待更新序号', visibleOn: `(this.__rendererName === 'input-table' || this.__rendererName === 'combo') - && this.__comboType === 'appoint'` - }, + && this.__comboType === 'appoint'` + }), { type: 'combo', name: 'value',