export-view.html 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>导出动画</title>
  7. <link rel="stylesheet" href="../../css/export-view/export-view.css">
  8. </head>
  9. <body>
  10. <!-- 黑色背景遮罩 -->
  11. <div class="export-overlay" id="exportOverlay">
  12. <!-- 弹出框容器 -->
  13. <div class="export-modal" id="exportModal">
  14. <!-- 关闭按钮(在弹窗右上角) -->
  15. <button class="modal-close-btn" id="exportCancelBtn" title="关闭">
  16. <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  17. <path d="M15 5L5 15M5 5l10 10" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
  18. </svg>
  19. </button>
  20. <!-- 图片预览区域 - 左右两个图框 -->
  21. <div class="export-preview-container">
  22. <!-- 左侧:参考图上传 -->
  23. <div class="export-reference-section">
  24. <div class="export-preview-box export-reference-box" id="referenceBox">
  25. <input type="file" id="referenceInput" accept="image/*" style="display: none;">
  26. <div class="reference-upload-area" id="referenceUploadArea">
  27. <div class="upload-icon">+</div>
  28. <div class="upload-text">点击上传参考图</div>
  29. </div>
  30. <div class="reference-image-wrapper" id="referenceImageWrapper" style="display: none;">
  31. <img id="referenceImage" alt="参考图" class="reference-image" />
  32. <button class="reference-remove-btn" id="referenceRemoveBtn" title="删除参考图">
  33. <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
  34. <path d="M12 4L4 12M4 4l8 8" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
  35. </svg>
  36. </button>
  37. </div>
  38. </div>
  39. </div>
  40. <!-- 右侧:Spritesheet 预览 -->
  41. <div class="export-spritesheet-section">
  42. <div class="export-preview-box export-spritesheet-box" id="spritesheetBox">
  43. <img id="previewImage" alt="Spritesheet预览" />
  44. <div class="preview-placeholder" id="previewPlaceholder">
  45. <div class="loading-spinner"></div>
  46. <div class="loading-text">正在生成预览图...</div>
  47. </div>
  48. <!-- 下载按钮 - 悬浮在右下角 -->
  49. <button class="floating-download-btn" id="exportConfirmBtn" title="下载" disabled>
  50. <svg width="22" height="22" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
  51. <path d="M12 3v12m0 0l-4-4m4 4l4-4M5 21h14" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
  52. </svg>
  53. </button>
  54. </div>
  55. </div>
  56. </div>
  57. <!-- 提示词配置区域(默认隐藏,上传参考图后显示) -->
  58. <div class="prompt-config-section" id="promptConfigSection" style="display: none;">
  59. <div class="config-row">
  60. <textarea id="additionalPromptInput" class="config-textarea" placeholder="输入额外的提示词指令..."></textarea>
  61. </div>
  62. <!-- 操作按钮区域 -->
  63. <div class="prompt-actions">
  64. <button class="action-btn replace-action-btn" id="replaceBtn" title="替换角色">
  65. <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  66. <path d="M10 2L12 6H8L10 2Z" fill="currentColor"/>
  67. <path d="M2 10L6 8V12L2 10Z" fill="currentColor"/>
  68. <path d="M10 18L8 14H12L10 18Z" fill="currentColor"/>
  69. <path d="M18 10L14 8V12L18 10Z" fill="currentColor"/>
  70. <circle cx="10" cy="10" r="2" fill="currentColor"/>
  71. </svg>
  72. <span>替换</span>
  73. </button>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. <!-- 下载确认对话框 -->
  79. <div class="download-confirm-overlay" id="downloadConfirmOverlay" style="display: none;">
  80. <div class="download-confirm-modal">
  81. <div class="download-confirm-header">
  82. <h3>选择下载方式</h3>
  83. <button class="download-confirm-close" id="downloadConfirmClose">
  84. <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  85. <path d="M15 5L5 15M5 5l10 10" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
  86. </svg>
  87. </button>
  88. </div>
  89. <div class="download-confirm-content">
  90. <div class="download-option" data-option="original">
  91. <div class="download-option-icon">📄</div>
  92. <div class="download-option-info">
  93. <div class="download-option-title">源文件下载</div>
  94. <div class="download-option-desc">直接下载原始图片,不进行抠图处理</div>
  95. </div>
  96. </div>
  97. <div class="download-option" data-option="normal">
  98. <div class="download-option-icon">✂️</div>
  99. <div class="download-option-info">
  100. <div class="download-option-title">普通抠图下载</div>
  101. <div class="download-option-desc">使用 rembg 进行抠图处理</div>
  102. </div>
  103. </div>
  104. <div class="download-option" data-option="vip">
  105. <div class="download-option-icon">✨</div>
  106. <div class="download-option-info">
  107. <div class="download-option-title">VIP抠图下载</div>
  108. <div class="download-option-desc">使用 BiRefNet 进行高质量抠图处理</div>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. <script src="../../js/export-view/export-view.js"></script>
  115. </body>
  116. </html>