完善模型库界面和开发配置
This commit is contained in:
@@ -231,7 +231,7 @@ function renderModelCard(item: ModelItem) {
|
||||
const prop = item.properties ?? {};
|
||||
const thumb = item.thumbnail_url
|
||||
? `<img src="${item.thumbnail_url}" alt="" />`
|
||||
: `<div class="thumb-placeholder">GLB</div>`;
|
||||
: `<div class="thumb-placeholder">暂无预览图</div>`;
|
||||
return `
|
||||
<article class="model-card" data-model-id="${item.id}">
|
||||
<div class="model-info">
|
||||
@@ -391,6 +391,7 @@ async function openUploadModelDialog() {
|
||||
title: "增加模型",
|
||||
width: 560,
|
||||
height: 520,
|
||||
blockPage: false,
|
||||
body: `
|
||||
<form id="modelUploadPopupForm" class="popup-form upload-popup-form">
|
||||
<label>
|
||||
@@ -466,6 +467,7 @@ export async function openProcessModelUploadDialog(input?: {
|
||||
title: "上传工艺模型",
|
||||
width: 640,
|
||||
height: 650,
|
||||
blockPage: false,
|
||||
body: `
|
||||
<form id="processModelUploadPopupForm" class="popup-form upload-popup-form">
|
||||
<div class="upload-target-path">
|
||||
@@ -656,6 +658,7 @@ async function editModel(id: number) {
|
||||
title: "编辑模型",
|
||||
width: 520,
|
||||
height: 390,
|
||||
blockPage: false,
|
||||
body: `
|
||||
<form id="modelEditPopupForm" class="popup-form">
|
||||
<label><span>模型名称</span><input name="name" value="${escapeHtml(oldName)}" /></label>
|
||||
|
||||
Reference in New Issue
Block a user