fix: groups config type error

feat(unfinished): add proxy editor
This commit is contained in:
MystiPanda
2024-07-05 00:38:11 +08:00
parent c9f784e4fa
commit 149d482c7d
6 changed files with 698 additions and 14 deletions

View File

@@ -162,7 +162,12 @@ export const GroupsEditorViewer = (props: Props) => {
useEffect(() => {
if (prependSeq && appendSeq && deleteSeq)
setCurrData(
yaml.dump({ prepend: prependSeq, append: appendSeq, delete: deleteSeq })
yaml.dump(
{ prepend: prependSeq, append: appendSeq, delete: deleteSeq },
{
forceQuotes: true,
}
)
);
}, [prependSeq, appendSeq, deleteSeq]);
@@ -415,7 +420,9 @@ export const GroupsEditorViewer = (props: Props) => {
type="number"
size="small"
sx={{ minWidth: "240px" }}
{...field}
onChange={(e) => {
field.onChange(parseInt(e.target.value));
}}
/>
</Item>
)}
@@ -431,7 +438,9 @@ export const GroupsEditorViewer = (props: Props) => {
type="number"
size="small"
sx={{ minWidth: "240px" }}
{...field}
onChange={(e) => {
field.onChange(parseInt(e.target.value));
}}
/>
</Item>
)}
@@ -447,7 +456,9 @@ export const GroupsEditorViewer = (props: Props) => {
type="number"
size="small"
sx={{ minWidth: "240px" }}
{...field}
onChange={(e) => {
field.onChange(parseInt(e.target.value));
}}
/>
</Item>
)}
@@ -478,7 +489,9 @@ export const GroupsEditorViewer = (props: Props) => {
type="number"
size="small"
sx={{ minWidth: "240px" }}
{...field}
onChange={(e) => {
field.onChange(parseInt(e.target.value));
}}
/>
</Item>
)}
@@ -539,7 +552,9 @@ export const GroupsEditorViewer = (props: Props) => {
type="number"
size="small"
sx={{ minWidth: "240px" }}
{...field}
onChange={(e) => {
field.onChange(parseInt(e.target.value));
}}
/>
</Item>
)}