Detailed explanation of the steps to use the vue mint-ui tabbar component

php中世界最好的语言
Release: 2018-05-14 10:14:59
Original
5124 people have browsed it

This time I will bring you a detailed explanation of the steps for using the vue mint-ui tabbar component. What are theprecautionswhen using the vue mint-ui tabbar component. Here are actual cases, let’s take a look.

New tabbar.vue

 
Copy after login

Introduce the component into the page where you need to use the tabbar component

import tabbar from '../../components/tabbar' export default { components:{tabbar}, data(){ return{ selected:"ShoppingList", tabs:[require("../../assets/images/icon/zhuye.png"),require("../../assets/images/icon/icon42-1.png"), require("../../assets/images/icon/weuquan1.png"),require("../../assets/images/icon/huijia.png")], } }, }
Copy after login

html

Copy after login

Supplement:

mint-ui ——tabbar example

Import

Import on demand:

import { Tabbar, TabItem } from 'mint-ui'; Vue.component(Tabbar.name, Tabbar); Vue.component(TabItem.name, TabItem);
Copy after login

Global import: No need to import again after global import

importMintfrom'mint-ui' import'mint-ui/lib/style.css' Vue.use(Mint);
Copy after login

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the PHP Chinese website!

Recommended reading:

Detailed explanation of JS Baidu search box effect function implementation case

Implementing web front-end internationalization based on jQuery.i18n change

The above is the detailed content of Detailed explanation of the steps to use the vue mint-ui tabbar component. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!