current position:Home>How to use H5 custom tags in Vue?

How to use H5 custom tags in Vue?

2022-05-15 02:13:54Maple moving forward

h5 It supports custom labels , And the custom label is an in-line element , namely display:inline;

If in vue Use custom labels in :

reason :

vue Suppose you forget to register the global component or misspell the component name

solve :

stay main.js Set in   Vue.config.ignoredElements = ['xxx','xxx'] , Array items are what you need vue Ignored custom element name , regular expression .

eg:Vue.config.ignoredElements = [/^dlb/]

copyright notice
author[Maple moving forward],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/132/202205120524479773.html

Random recommended