docs(core): [SITE-04] document template and icon contracts

This commit is contained in:
Harvey Zhao committed 2026-09-16 05:00:45 +08:00
1 parent a1488f11bb
commit 5910c3f179
96 files changed
+4873 -2458

No files matched your search

@@ -125,6 +125,8 @@ Returns the `html` string required by the player.
console.info(Artplayer.html);
```
This is the current version's static base markup, including required classes and media/control nodes, not a snapshot of an instance's current DOM. When reusing preinserted markup through `useSSR: true`, keep its complete structure and version aligned. The option does not make construction work outside a browser. Actual template instances have no `html` member; the historical root type retains that member for compatibility, but it does not replace the static entry.
## `option`
Returns the default options of the player.