Home  >  Article  >  Web Front-end  >  How to solve the problem of uniapp icon not displaying

How to solve the problem of uniapp icon not displaying

藏色散人
藏色散人Original
2020-12-09 10:27:1311569browse

The solution to the problem that the uniapp icon is not displayed: First, give the uni-icon an alias when referencing the component, such as "import uniIcons from '@/components/uni-icon'"; then modify uni-ui component or upgrade the component to the latest one.

How to solve the problem of uniapp icon not displaying

The operating environment of this tutorial: windows7 system, uni-app2.5.1 version, thinkpad t480 computer.

Recommended (free): uni-app development tutorial

The problem of uni-icon not displaying after upgrading HBuilderX 2.3.0

H5 platform has added a new built-in icon component. When using the uni-icon component of uni-ui in a project, the naming conflict with the built-in component will cause the user uni-icon upgraded from the old project to be unable to be displayed.

Solution:

When referencing components, give uni-icon an alias (such as import uniIcons from '@/components/uni-icon'), The new version of uni-ui has been renamed uni-icons

It should be noted that some uni-ui components depend on uni-icons, and the reference of this component also needs to be modified, or the component can be upgraded to the latest one.

The above is the detailed content of How to solve the problem of uniapp icon not displaying. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn