|
|
@@ -69,6 +69,7 @@ export function StyleFormPage() {
|
|
|
form.setFieldsValue({
|
|
|
...data,
|
|
|
apiType: data.apiType ?? 2,
|
|
|
+ mediaType: data.mediaType ?? "0",
|
|
|
showType: data.showType ?? 0,
|
|
|
aiType: data.aiType || "workflow",
|
|
|
stylemode: data.stylemode ?? 0,
|
|
|
@@ -119,6 +120,7 @@ export function StyleFormPage() {
|
|
|
} else {
|
|
|
form.setFieldsValue({
|
|
|
apiType: 2,
|
|
|
+ mediaType: "0",
|
|
|
showType: 0,
|
|
|
styleType: 0,
|
|
|
stylemode: 0,
|
|
|
@@ -688,6 +690,22 @@ export function StyleFormPage() {
|
|
|
/>
|
|
|
</Form.Item>
|
|
|
|
|
|
+ <Form.Item
|
|
|
+ label={<HintLabel label={t("style.fields.mediaType")} hint={t("style.hints.mediaType")} />}
|
|
|
+ name="mediaType"
|
|
|
+ rules={[{ required: true, message: t("style.required") }]}
|
|
|
+ >
|
|
|
+ <Radio.Group
|
|
|
+ optionType="button"
|
|
|
+ buttonStyle="solid"
|
|
|
+ options={[
|
|
|
+ { label: t("style.mediaTypeOptions.image"), value: "0" },
|
|
|
+ { label: t("style.mediaTypeOptions.video"), value: "1" },
|
|
|
+ { label: t("style.mediaTypeOptions.mixed"), value: "2" },
|
|
|
+ ]}
|
|
|
+ />
|
|
|
+ </Form.Item>
|
|
|
+
|
|
|
<Form.Item
|
|
|
label={<HintLabel label={t("style.fields.templateZip")} hint={t("style.hints.templateZip")} />}
|
|
|
name="templateZip"
|