mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-07-11 02:13:11 +00:00
fix(finalmask): treat sudoku customTables as array of tables
customTables is the plural array form of customTable, so default it to [""] and edit it with a tags Select instead of binding a text Input to an array value.
This commit is contained in:
parent
0706b0b3a8
commit
5b9db13e55
1 changed files with 4 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ function defaultTcpMaskSettings(type: string): Record<string, unknown> {
|
|||
return { packets: '1-3', length: '', delay: '', maxSplit: '' };
|
||||
case 'sudoku':
|
||||
return {
|
||||
password: '', ascii: '', customTable: '', customTables: '',
|
||||
password: '', ascii: '', customTable: '', customTables: [''],
|
||||
paddingMin: 0, paddingMax: 0,
|
||||
};
|
||||
case 'header-custom':
|
||||
|
|
@ -228,7 +228,9 @@ function TcpMaskItem({
|
|||
<Form.Item label="Password" name={[fieldName, 'settings', 'password']}><Input /></Form.Item>
|
||||
<Form.Item label="ASCII" name={[fieldName, 'settings', 'ascii']}><Input /></Form.Item>
|
||||
<Form.Item label="Custom Table" name={[fieldName, 'settings', 'customTable']}><Input /></Form.Item>
|
||||
<Form.Item label="Custom Tables" name={[fieldName, 'settings', 'customTables']}><Input /></Form.Item>
|
||||
<Form.Item label="Custom Tables" name={[fieldName, 'settings', 'customTables']}>
|
||||
<Select mode="tags" style={{ width: '100%' }} tokenSeparators={[',']} />
|
||||
</Form.Item>
|
||||
<Form.Item label="Padding Min" name={[fieldName, 'settings', 'paddingMin']}>
|
||||
<InputNumber min={0} />
|
||||
</Form.Item>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue