From cd6e29c9d3a49e5b0ea2a8dcbfd0253996ae9a6d Mon Sep 17 00:00:00 2001
From: hit-cxf <2024111082@stu.hit.edu.cn>
Date: Thu, 14 May 2026 11:10:05 +0800
Subject: [PATCH] 添加了多种风格提示词模版
---
aigc-director/aigc-claw/frontend/components/pipelines/PipelinePage.tsx | 45 +++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 43 insertions(+), 2 deletions(-)
diff --git a/aigc-director/aigc-claw/frontend/components/pipelines/PipelinePage.tsx b/aigc-director/aigc-claw/frontend/components/pipelines/PipelinePage.tsx
index 20f53ab..e6fde81 100644
--- a/aigc-director/aigc-claw/frontend/components/pipelines/PipelinePage.tsx
+++ b/aigc-director/aigc-claw/frontend/components/pipelines/PipelinePage.tsx
@@ -63,8 +63,30 @@
video: VIDEO_PROVIDERS.flatMap(p => p.models).find(m => m.default)?.id || VIDEO_PROVIDERS[0].models[0].id,
};
-const DEFAULT_STANDARD_STYLE_CONTROL =
- 'Minimalist black-and-white matchstick figure style illustration, clean lines, simple sketch style';
+const STANDARD_STYLE_PRESETS = [
+ {
+ label: '印象油画',
+ prompt:
+ 'Impressionist painting style, visible broken brushstrokes, pure colors juxtaposed. The scene is bathed in natural, fleeting light with a shimmering, grainy texture in the air. Soft, blurred outlines, emphasizing color contrast over precise lines. Slight oil paint canvas texture, warm and luminous tone.',
+ },
+ {
+ label: '极简线条',
+ prompt:
+ 'Minimalist black-and-white matchstick figure style illustration, clean lines, simple sketch style',
+ },
+ {
+ label: '中国水墨',
+ prompt:
+ 'Traditional Chinese ink wash painting style, visible xuan paper texture. Layered ink tones from deep black to pale gray, with dry brush strokes (feibai) and natural ink bleeding. Expressive and spontaneous brushwork, large negative space (liubai), interplay between solid and void. Wet and dry contrast, calligraphic rhythm in lines. Minimal color palette, a hint of light ochre or floral blue.',
+ },
+ {
+ label: '写实',
+ prompt:
+ 'Photorealistic cinematic style, 8K resolution, physically accurate. Natural or practical lighting with sharp shadow edges. Materials exhibit realistic specular reflection and roughness, subtle surface textures and imperfections visible. Natural depth of field (sharp foreground with blurred background or vice versa). Motion includes inertial easing, mimicking real human eye observation. No stylized filters, true-to-life color reproduction.',
+ },
+];
+
+const DEFAULT_STANDARD_STYLE_CONTROL = STANDARD_STYLE_PRESETS[0].prompt;
const TEMPLATE_TEXT_DEFAULTS = {
title: '山河入梦',
@@ -1174,6 +1196,25 @@
className="w-full min-h-[70px] resize-none rounded-lg border border-gray-200 bg-white px-3 py-2 text-sm text-gray-700 outline-none focus:border-blue-300"
/>
</label>
+ {pipeline === 'standard' && (
+ <div className="flex flex-wrap gap-2">
+ {STANDARD_STYLE_PRESETS.map(preset => (
+ <button
+ key={preset.label}
+ type="button"
+ onClick={() => setNegativePrompt(preset.prompt)}
+ className={clsx(
+ 'h-8 rounded-lg border px-3 text-xs font-medium transition-colors',
+ negativePrompt === preset.prompt
+ ? 'border-blue-300 bg-blue-50 text-blue-600'
+ : 'border-gray-200 bg-white text-gray-500 hover:border-blue-200 hover:bg-blue-50 hover:text-blue-600'
+ )}
+ >
+ {preset.label}
+ </button>
+ ))}
+ </div>
+ )}
</div>
)}
</section>
--
Gitblit v1.8.0