+ + + {template.installed ? ( + + + 已下载 + + ) : null} + + + + {template.title} + + + {meta} + + {template.summary ? ( + + {template.summary} + + ) : null} + {template.tags.length > 0 ? ( + + {template.tags.map((tag) => ( + + {tag} + + ))} + + ) : null} + + onUse(template)} + > + {busy && busyKind === 'create' ? ( + + ) : ( + + )} + 使用模板 + + {/* 已下载且版本一致时不再提供下载入口;只有缺包或版本落后才显示(落后时按「更新」)。 */} + {needsDownload ? ( + onDownload(template)} + > + {busy && busyKind === 'download' ? ( + + ) : ( + + )} + {template.installed ? '更新' : '下载'} + + ) : null} + {busyLabel ? ( + + {busyLabel} + + ) : null} + + +