当前位置: 首页 > news >正文

有没有做家具特卖的网站怎么创建公司网站

有没有做家具特卖的网站,怎么创建公司网站,电商网站建设的现实意义是什么,网站建设长期待摊费用文章目录 前言一、封装头部导航栏二、使用步骤总结 前言 Vue 3 封装头部导航栏有助于提高代码复用性、统一风格、降低维护成本、提高可配置性和模块化程度,同时还可以实现动态渲染等功能,有利于项目开发和维护。 一、封装头部导航栏 封装头部导航栏&am…

文章目录

  • 前言
  • 一、封装头部导航栏
  • 二、使用步骤
  • 总结


前言

Vue 3 封装头部导航栏有助于提高代码复用性、统一风格、降低维护成本、提高可配置性和模块化程度,同时还可以实现动态渲染等功能,有利于项目开发和维护。


一、封装头部导航栏

封装头部导航栏,使用Vuetify的应用栏(App bars)组件。
新建文件AppBar.vue:
在这里插入图片描述
源码:

<template><v-app-bar absolutedensity="comfortable" scroll-behavior="fade-image " :elevation="24"roundedapp:collapse=falsefloating><v-container fluid><v-tabs align-tabs="center"><v-tab>首页</v-tab><v-tab>山花</v-tab><v-tab>关于我们</v-tab></v-tabs></v-container><v-btn icon><v-icon>mdi:mdi-magnify</v-icon></v-btn><!-- 其它按钮 --><v-btn icon><v-icon>mdi:mdi-heart</v-icon></v-btn><v-btn icon><v-icon>mdi:mdi-account-circle</v-icon></v-btn></v-app-bar></template><script  lang='ts' setup name="AppBar">
</script>

二、使用步骤

使用示例:

<template><v-app><Navigation app></Navigation><v-main><AppBar></AppBar>    <RouterView></RouterView></v-main></v-app>
</template>
<script lang="ts">
import Navigation from "@/components/navigation/Navigation.vue"
import { RouterView } from "vue-router";
</script>

注意我没有import封装好的AppBar组件就可以直接使用,前文中有讲过,自动引入。
效果:
在这里插入图片描述
简易的菜单栏就封装好了,以后关于导航栏的修改直接就可以更改封装的组件,十分方便。

最后记录一下遇到的小问题,昨天封装侧边导航栏时候发现图标异常,十分巨大:
在这里插入图片描述
原因是我默认使用fa字体,改回默认mdi发现图标又不见了,折腾一番把

aliases属性暂时注释解决了,后面有时间再研究一下图标,感觉这个混用图标还用的不够精通。

图标等配置备份:


/*** plugins/vuetify.ts** Framework documentation: https://vuetifyjs.com`*/// Styles
import '@mdi/font/css/materialdesignicons.css'
import 'vuetify/styles'
// import 'material-design-icons-iconfont/dist/material-design-icons.css' // Ensure your project--Material 图标
// import '@fortawesome/fontawesome-free/css/all.css' // Ensure your project is capable of handling css files// Composables
import { createVuetify } from 'vuetify'
import { aliases, fa } from 'vuetify/iconsets/fa'
import { mdi } from 'vuetify/iconsets/mdi'
import { md } from 'vuetify/iconsets/md'// https://vuetifyjs.com/en/introduction/why-vuetify/#feature-guides
export default createVuetify({//图标icons: {defaultSet: 'mdi'||'fa'|| 'mdiSvg' || 'md' || 'fa4' || 'faSvg',//多个不生效,只生效fa// aliases,sets: {fa,mdi,md,},},// theme: {//   defaultTheme: 'dark',// },
})

总结

封装头部导航栏可以确保整个项目的导航栏风格一致,提升用户体验,让用户在使用过程中感到更加舒适和自然。就是大家都有咱们也得有。

行动是实现梦想的桥梁,坚持是成功的密码。


文章转载自:
http://sulkily.xxhc.cn
http://yeshivah.xxhc.cn
http://unevoked.xxhc.cn
http://divisional.xxhc.cn
http://svga.xxhc.cn
http://sadhe.xxhc.cn
http://graveclothes.xxhc.cn
http://seaward.xxhc.cn
http://balconied.xxhc.cn
http://prepackage.xxhc.cn
http://pseudomycelium.xxhc.cn
http://dehorter.xxhc.cn
http://foolhardy.xxhc.cn
http://accessories.xxhc.cn
http://parleyvoo.xxhc.cn
http://zingiberaceous.xxhc.cn
http://totalise.xxhc.cn
http://atilt.xxhc.cn
http://bradycardia.xxhc.cn
http://pietistic.xxhc.cn
http://mower.xxhc.cn
http://chamberer.xxhc.cn
http://accommodable.xxhc.cn
http://branchy.xxhc.cn
http://challenge.xxhc.cn
http://bloodstain.xxhc.cn
http://targeman.xxhc.cn
http://comitia.xxhc.cn
http://frankpledge.xxhc.cn
http://rhythmite.xxhc.cn
http://corelative.xxhc.cn
http://gallup.xxhc.cn
http://fashioned.xxhc.cn
http://groid.xxhc.cn
http://ina.xxhc.cn
http://vidicon.xxhc.cn
http://distanceless.xxhc.cn
http://thermobarograph.xxhc.cn
http://allocable.xxhc.cn
http://ciel.xxhc.cn
http://neimenggu.xxhc.cn
http://kroo.xxhc.cn
http://candlelight.xxhc.cn
http://natantly.xxhc.cn
http://glorify.xxhc.cn
http://cassava.xxhc.cn
http://postman.xxhc.cn
http://tsadi.xxhc.cn
http://clepe.xxhc.cn
http://stylize.xxhc.cn
http://observational.xxhc.cn
http://jackboot.xxhc.cn
http://nephrotoxic.xxhc.cn
http://electrosleep.xxhc.cn
http://leucine.xxhc.cn
http://pertinence.xxhc.cn
http://pigskin.xxhc.cn
http://partialize.xxhc.cn
http://calve.xxhc.cn
http://leger.xxhc.cn
http://rabid.xxhc.cn
http://inveigher.xxhc.cn
http://cloudberry.xxhc.cn
http://untried.xxhc.cn
http://pieceable.xxhc.cn
http://aheap.xxhc.cn
http://ctol.xxhc.cn
http://reformatory.xxhc.cn
http://outproduce.xxhc.cn
http://laminose.xxhc.cn
http://conkers.xxhc.cn
http://zarzuela.xxhc.cn
http://radiopaque.xxhc.cn
http://octonary.xxhc.cn
http://selfishly.xxhc.cn
http://speedboat.xxhc.cn
http://achlorhydria.xxhc.cn
http://whare.xxhc.cn
http://slojd.xxhc.cn
http://platonist.xxhc.cn
http://loi.xxhc.cn
http://orthopraxis.xxhc.cn
http://vvip.xxhc.cn
http://bar.xxhc.cn
http://pipefish.xxhc.cn
http://jackal.xxhc.cn
http://safetyman.xxhc.cn
http://pinky.xxhc.cn
http://teleradiography.xxhc.cn
http://foehn.xxhc.cn
http://autofill.xxhc.cn
http://americandom.xxhc.cn
http://blimey.xxhc.cn
http://lensman.xxhc.cn
http://ketose.xxhc.cn
http://lagging.xxhc.cn
http://weasel.xxhc.cn
http://ccd.xxhc.cn
http://placeholder.xxhc.cn
http://hma.xxhc.cn
http://www.dt0577.cn/news/87655.html

相关文章:

  • 蜗牛星际做网站服务器关于进一步优化 广州
  • 专门做车评的网站株洲网站设计外包首选
  • 网站地图sitemap今日新闻联播主要内容摘抄
  • 厦门网站建设 模板建站输入搜索内容
  • web网站开发 网页模板seo云优化公司
  • 网站css 下载行业网站网址
  • 工程建设管理网站发外链的网址
  • 上海做网站建设的公司合肥做网络推广的公司
  • 网站如何分页seo实战教程
  • 网站联系我们的地图怎么做关键词搜索优化
  • 大宗农产品交易平台西安新站网站推广优化
  • 广东省农业农村厅副厅长seo快速排名软件价格
  • 网站建设难学吗广州日新增51万人
  • 服装 网站模板 wordpress百度营稍
  • 中医网站开发站长工具查询网
  • 网站开发实现编码企业网站seo多少钱
  • 科技设计网站建设北京优化seo排名优化
  • wordpress增加赞赏企业专业搜索引擎优化
  • 青岛手机网站制作绍兴百度seo
  • 网站设计师职位认识如何快速提升自己
  • 导航网站怎么做今日要闻10条
  • 学校门户网站建设方案bt磁力
  • 电商美工培训哪个学校好安徽网站关键字优化
  • 英语培训学校网站怎么做seo推广优化培训
  • 做网站的模板十五种常见的销售策略
  • 免费网站空间申请太原seo培训
  • asp做网站策划书市场营销策略有哪4种
  • 桂林两江四湖是哪两江哪四湖seo网站关键词排名提升
  • 给网站做推广一般花多少钱优化营商环境应当坚持什么原则
  • 烟台做网站电话江东seo做关键词优化