business logic, customer communication.
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
标签到指定的图标元素。
|
||||
</p>
|
||||
<h2>createIcon</h2>
|
||||
<code>function createIcon(type: string, id: string): SVGElement</code>
|
||||
<code>function createIcon(type: string, id: string, style?: { [key: string]: string }): SVGElement</code>
|
||||
<h3>type: string</h3>
|
||||
<p>
|
||||
图标类型,可选值目前有 <code>fa-regular</code>、<code>fa-light</code>、<code>fa-solid</code>
|
||||
@ -16,6 +16,10 @@
|
||||
图形 id,例如
|
||||
<code>user-edit</code>、<code>address-card</code>、<code>frog</code>……
|
||||
</p>
|
||||
<h3>style?: { [key: string]: string }</h3>
|
||||
<p>
|
||||
自定义样式的对象
|
||||
</p>
|
||||
<h2>resolveIcon</h2>
|
||||
<code>function resolveIcon(container: HTMLElement): HTMLElement</code>
|
||||
<h3>container: HTMLElement</h3>
|
||||
|
Reference in New Issue
Block a user