Skip to content

Commit 31445c6

Browse files
yangwei9012yangwei14
and
yangwei14
authored
fix: inputtable组件特定动作setvaalue的配置面板 行序号指定支持表达式输入 (#11909)
Co-authored-by: yangwei14 <yangwei14@baidu.com>
1 parent f00339b commit 31445c6

File tree

1 file changed

+10
-6
lines changed
  • packages/amis-editor/src/renderer/event-control

1 file changed

+10
-6
lines changed

packages/amis-editor/src/renderer/event-control/helper.tsx

+10-6
Original file line numberDiff line numberDiff line change
@@ -375,17 +375,21 @@ export const COMMON_ACTION_SCHEMA_MAP: {
375375
form.setValueByName('__valueInput', undefined);
376376
}
377377
},
378-
{
379-
type: 'input-number',
380-
required: true,
378+
getSchemaTpl('formulaControl', {
381379
name: 'index',
382-
mode: 'horizontal',
383380
label: '输入序号',
381+
required: true,
382+
rendererSchema: {
383+
type: 'input-number'
384+
},
385+
valueType: 'number',
386+
variables: '${variables}',
384387
size: 'lg',
388+
mode: 'horizontal',
385389
placeholder: '请输入待更新序号',
386390
visibleOn: `(this.__rendererName === 'input-table' || this.__rendererName === 'combo')
387-
&& this.__comboType === 'appoint'`
388-
},
391+
&& this.__comboType === 'appoint'`
392+
}),
389393
{
390394
type: 'combo',
391395
name: 'value',

0 commit comments

Comments
 (0)