How can vue, like the router-link component, set a tag attribute value and then generate the corresponding html tag?

how does vue, like the router-link component, set a tag attribute value and then generate the corresponding html tag?

for example:

<component tag="li"></component>

generate

  • tags

    Mar.16,2021

    just write it this way

    <component :is="'a'"></component>
    <component :is="'h2'"></component>
    <component :is="'li'"></component>
    MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
    MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4f4b0-65638.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
    MySQL Errno : 1021
    Message : Disk full (/tmp/#sql-temptable-64f5-1e4f4b0-65638.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
    Need Help?