feat(docs): add component documentation entries and refactor dialog
rendering
This commit is contained in:
@@ -150,19 +150,12 @@ const DocContent: Component<{ entry: DocEntry }> = (props) => {
|
||||
</div>
|
||||
</Show>
|
||||
|
||||
<div class="mb-6">
|
||||
<div class="prose-sm max-w-none">
|
||||
<h3 class="text-sm font-semibold text-gray-500 uppercase mb-2">示例</h3>
|
||||
<div class="bg-gray-50 border border-gray-200 rounded-lg p-4 text-sm leading-relaxed whitespace-pre-wrap font-mono text-gray-800">
|
||||
{e.examples}
|
||||
{e.body}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h3 class="text-sm font-semibold text-gray-500 uppercase mb-2">
|
||||
使用场景
|
||||
</h3>
|
||||
<p class="text-sm text-gray-600">{e.usage}</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user