You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce icon functions from the <code>@opentiny/vue-icon</code> icon library. The execution of the icon function generates a valid <code> Vue </code> icon component that can be used in the template. <br>
27
+
Introduce icon functions from the <code>@opentiny/vue-icon</code> icon library. The execution of the icon function generates a valid <code> Vue </code> icon component that can be used in the template.Save the icon component variables for binding within the component. Avoid directly binding the icon function execution on the template. <br>
27
28
Specify the size of the icon by modifying the <code>font-size</code> style, and specify the color of the icon by modifying <code>fill</code>.
28
29
<div class="tip custom-block">
29
30
<p class="custom block title"> Common icon usage </p>
30
31
Take the <code>Shared</code> icon component as an example: <br>
31
32
1. Import labels in the template. For example, <code> < tiny-shared /> </code> <br>
32
33
2, in the template by <code> < component> The </code> component is introduced. For example, <code> < component :is="tinyShared" /> </code> <br>
33
34
3. Pass in component properties. For example, <code> < tiny-button :icon="tinyShared" > </code> <br>
0 commit comments