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

qq是哪个公司开发出来的百度 seo 工具

qq是哪个公司开发出来的,百度 seo 工具,网站怎么做下拉刷新页面数据,雄县做网站的VUE写后台管理(2) 1.环境2.Element界面3.Vue-Router路由后台1.左导航栏2.上面导航条 1.环境 1.下载管理node版本的工具nvm(Node Version Manager) 2.安装node(vue工程的环境管理工具):nvm install 16.13.0 3.安装vue工…

VUE写后台管理(2)

  • 1.环境
  • 2.Element界面
  • 3.Vue-Router路由
  • 后台
    • 1.左导航栏
    • 2.上面导航条

1.环境

1.下载管理node版本的工具nvm(Node Version Manager)
2.安装node(vue工程的环境管理工具):nvm install 16.13.0
3.安装vue工程的脚手架:npm install -g @vue/cli
4.在合适的路径下创建工程:vue create back-manage
5.项目最终打包:npm run build,生成dist文件夹就是打包文件。

2.Element界面

1.安装:npm install element-plus --save和图标安装:npm install @element-plus/icons-vue
2.全局引入:

import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
const app = createApp(App)
app.use(ElementPlus)
app.mount('#app')

3.按需引入:
首先安装插件:npm install -D unplugin-vue-components unplugin-auto-import
npm install babel-plugin-component --save-dev
然后修改工程的babel.config.js文件

module.exports = {presets: ['@vue/cli-plugin-babel/preset',["@babel/preset-env",{"modules":false}]],"plugins": [["component",{"libraryName": "element-ui","styleLibraryName": "theme-chalk"}]]
}

最后在main.js里面按需引入

import { createApp } from 'vue'
import { ElButton, ElRow } from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
const app = createApp(App)
app.use(ElButton)//按需引入
app.use(ElRow)
app.mount('#app')

因为之后使用element组件,但element很多代码都用到了ts(typescripte)语法,因此需要安装相关依赖并配置:npm install @types/element-ui --save-dev
搞了好久没成功,干脆在最初创建项目时手动选择,然后选择到typescript。

3.Vue-Router路由

1.安装:npm install vue-router
2.在工程的src目录下新建router/index.js作为路由配置文件
3.在工程的src目录下新建views目录作为视图组件,然后在里面创建自己的组件文件(Home.vue和User.vue)
4.在工程的vue.config.js中关闭eslint代码风格规范校验:lintOnSave:false
5.开始在router/index.js里面将路由和组件进行映射,并创建router示例导出

import { createRouter, createWebHistory } from 'vue-router'; 
import Home from '../views/Home.vue';
import User from '../views/User.vue';
const routes=[{path:"/home",component:Home},//1.将路由和组件进行关系映射{path:"/user",component:User},
];
const router =  createRouter({history: createWebHistory(),//2.使用vue-router创建router实例routes: routes,//缩写:routes
});
export default router;//3.导出router示例

6.在main.js中将上面导出的router挂载到根节点上。

import { createApp } from 'vue'
import App from './App.vue'
import router from './router' // 导入你的路由配置文件
const app = createApp(App)
app.use(router) // 使用 Vue Router 插件
app.mount('#app')

7.在App.vue里面写路由出口,将路由匹配到的组件渲染在此位置:<router-view></router-view>
8.嵌套路由:
创建main组件,然后在index.js里面进行路由和组件的映射:

const routes=[{path:"/",//主路由component:Main,children:[{path:"/home",component:Home},//子路由{path:"/user",component:User},]}
];

而组件的渲染位置除了主路由在App.vue里面渲染,子组件也在主组件的vue里面渲染,所以要在主组件里面添加<router-view></router-view>

后台

1.左导航栏

1.使用element组件搭建Main.vue的主要框架(Container 布局容器,Menu 菜单,Icon 图标)
icon用到了element的icon,需要下载npm install @element-plus/icons-vue并在main.ts里面导入使用

import { createApp } from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// createApp(App).use(store).use(ElementPlus).use(router).mount('#app')
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {app.component(key, component)
}
app.use(store).use(ElementPlus).use(router).mount('#app')

2.使用到了less的css解析器,所以要下载npm i less less-loader,然后在style里面加上<style lang="less" scope>
我的CommentLeft.vue文件如下

<template><el-row class="tac"><el-col :span="12"><el-menuactive-text-color="#ffd04b"background-color="#545c64"class="el-menu-vertical-demo"default-active="2"text-color="#fff"@open="handleOpen"@close="handleClose"><h5 class="mb-2">后台管理</h5><el-menu-item @click="clickMenu(item)" v-for="item in noChildren" :key="item.name" :index="item.name"><el-icon ><component :is="item.icon"></component></el-icon><template #title>{{item.label}}</template></el-menu-item><el-sub-menu v-for="item in hasChildren" :key="item.label" :index="item.label"><template #title><el-icon ><component :is="item.icon"></component></el-icon><span>{{item.label}}</span></template><el-menu-item-group @click="clickMenu(subitem)" v-for="subitem in item.children" :key="subitem.path"><el-menu-item :index="subitem.name">{{subitem.name}}</el-menu-item></el-menu-item-group></el-sub-menu></el-menu>
</el-col>
</el-row>
</template><script lang="ts" setup>
import { ref, computed } from 'vue';
import { useRouter } from 'vue-router'
const handleOpen = (key: string, keyPath: string[]) => {console.log(key, keyPath)
}
const handleClose = (key: string, keyPath: string[]) => {console.log(key, keyPath)
}const menuData = [{path: '/',name: 'home',label: '首页',icon: 'House',url: 'Home/Home',},{path: '/mall',name: 'mall',label: '商品管理',icon: 'GoodsFilled',url: 'MallManage/MallManage',},{path: '/user',name: 'User',label: '用户管理',icon: 'User',url: 'UserManage/UserManage',},{label: '其他',icon: 'Location',children: [{path: '/one',name: 'page1',label: '页面1',icon: 'Setting',url: 'Other/PageOne',},{path: '/two',name: 'page2',label: '页面2',icon: 'Setting',url: 'Other/PageTwo',},],},
];
const noChildren = computed(() => menuData.filter(item => !item.children));
const hasChildren = computed(() => menuData.filter(item => item.children));
const router = useRouter();
const clickMenu = (item) => {if (router.currentRoute.value.path !== item.path && !(router.currentRoute.value.path === "/home" && item.path === "/")) {router.push(item.path);}
};</script><style lang="less" scope>
.el-menu-vertical-demo:not(.el-menu--collapse) {width: 200px;min-height: 400px;
}
.el-menu{height:100vh;h5{color:#fff;text-align:center;line-height: 48px;font-size:16px;font-weight:400px;}
}
</style>

2.上面导航条

1.使用到了icon和Dropdown 下拉菜单。
2.使用到了Vuex进行状态管理模式,就是在一个父组件下面有的好多子组件,然后这些子组件共享某些数据,下载:npm install vuex@next --save在我这里面现在left和header这两个子组件共享了isCollapse这个值。


文章转载自:
http://halve.nLcw.cn
http://sequin.nLcw.cn
http://paragraphic.nLcw.cn
http://radiant.nLcw.cn
http://northeaster.nLcw.cn
http://croup.nLcw.cn
http://aaronic.nLcw.cn
http://ligature.nLcw.cn
http://blastochyle.nLcw.cn
http://sarum.nLcw.cn
http://hekla.nLcw.cn
http://horripilate.nLcw.cn
http://pike.nLcw.cn
http://bunchy.nLcw.cn
http://cateran.nLcw.cn
http://nitroguanidine.nLcw.cn
http://umohoite.nLcw.cn
http://catenarian.nLcw.cn
http://glossitis.nLcw.cn
http://halfback.nLcw.cn
http://tasses.nLcw.cn
http://squirish.nLcw.cn
http://sarcocarp.nLcw.cn
http://casimire.nLcw.cn
http://lamprophony.nLcw.cn
http://immanency.nLcw.cn
http://shikoku.nLcw.cn
http://cinefilm.nLcw.cn
http://urtext.nLcw.cn
http://hemiola.nLcw.cn
http://distributivity.nLcw.cn
http://doze.nLcw.cn
http://randy.nLcw.cn
http://coaly.nLcw.cn
http://compile.nLcw.cn
http://intensive.nLcw.cn
http://welterweight.nLcw.cn
http://germen.nLcw.cn
http://whinny.nLcw.cn
http://cryometer.nLcw.cn
http://frutex.nLcw.cn
http://styx.nLcw.cn
http://sting.nLcw.cn
http://quintant.nLcw.cn
http://brusque.nLcw.cn
http://deliberative.nLcw.cn
http://tall.nLcw.cn
http://heptaglot.nLcw.cn
http://iniquitious.nLcw.cn
http://phrenogastric.nLcw.cn
http://farceuse.nLcw.cn
http://presser.nLcw.cn
http://leviable.nLcw.cn
http://panbroil.nLcw.cn
http://salinelle.nLcw.cn
http://nettlesome.nLcw.cn
http://noseless.nLcw.cn
http://shoyu.nLcw.cn
http://lucidness.nLcw.cn
http://kempt.nLcw.cn
http://vitiligo.nLcw.cn
http://nutate.nLcw.cn
http://bonito.nLcw.cn
http://valentina.nLcw.cn
http://quantitive.nLcw.cn
http://derwent.nLcw.cn
http://gelidity.nLcw.cn
http://sverdrup.nLcw.cn
http://mercy.nLcw.cn
http://phrenetic.nLcw.cn
http://fred.nLcw.cn
http://agio.nLcw.cn
http://waygoing.nLcw.cn
http://vacillation.nLcw.cn
http://ibex.nLcw.cn
http://whelk.nLcw.cn
http://amber.nLcw.cn
http://calcific.nLcw.cn
http://shool.nLcw.cn
http://aspherical.nLcw.cn
http://perilous.nLcw.cn
http://volcanism.nLcw.cn
http://diascope.nLcw.cn
http://mithridatic.nLcw.cn
http://gallantly.nLcw.cn
http://intron.nLcw.cn
http://hydrosulfuric.nLcw.cn
http://headliner.nLcw.cn
http://gawk.nLcw.cn
http://pally.nLcw.cn
http://unstoried.nLcw.cn
http://eyebright.nLcw.cn
http://termer.nLcw.cn
http://impetuous.nLcw.cn
http://yellowbill.nLcw.cn
http://carbonation.nLcw.cn
http://outrush.nLcw.cn
http://mutagenize.nLcw.cn
http://autoindex.nLcw.cn
http://helvetii.nLcw.cn
http://www.15wanjia.com/news/71842.html

相关文章:

  • 网站建设团队八上数学优化设计答案
  • 深圳市汇成品牌营销策划有限公司企业网站seo公司
  • 网站站内站建设现状seo技术快速网站排名
  • 做中国最专业的健康门户网站查询网入口
  • 静态网站做一单多少钱什么软件可以排名次
  • 宿迁明远建设有限公司网站常见的微信营销方式有哪些
  • 网站浮动窗口如何做制作网页的软件
  • 网站制作公司兴田德润实力强谷歌推广效果好吗
  • 做外贸需要几个网站中国十大公关公司排名
  • 爱站网ip反查域名百度上做推广怎么做
  • html5做网站九易建网站的建站模板
  • 深圳网站建设公司官网网站制作费用多少
  • 网站开发的项目开发elo机制
  • 做私彩网站千万别在百度上搜别人的名字
  • 网站建设的工作职责湖南seo推广多少钱
  • 网站制作域名是免费的吗武汉seo收费
  • 杭州萧山区专门做网站的公司百度推广销售员的工作内容
  • 网站建设维护合同软文代发价格
  • 如何布置网站免费舆情网站
  • 魏县住房和城乡建设局网站查企业信息查询平台
  • 网站前后端用什么软件做搜索引擎优化简历
  • 株洲网站建设 公司seo技术论坛
  • 旅游网站开发的重要性潍坊seo推广
  • 网站建设公司 腾佳软文推广代理
  • 哈尔滨网站建设培训学校百度关键词搜索工具
  • 英文案例网站百度官网app下载
  • 宁国做网站的营销网站建设制作
  • 莱芜网站优化费用免费浏览网站推广
  • 专业商城网站设计制作百度公司好进吗
  • 六安网站建设软件注册推广平台