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

健身网站开发背景及意义美食网页设计论文5000字

健身网站开发背景及意义,美食网页设计论文5000字,wordpress 建站对比,公司备案 网站主办者名称项目引入Element-UI 一、引入Element-UI二、注册组件1、vue2使用element-ui2、vue3使用element-ui 三、使用Element组件1、轻微改造2、验证element是否生效 一、引入Element-UI npm i element-ui --save npm install element-ui -S等待安装完成 二、注册组件 1、vue2使用ele… 项目引入Element-UI 一、引入Element-UI二、注册组件1、vue2使用element-ui2、vue3使用element-ui 三、使用Element组件1、轻微改造2、验证element是否生效 一、引入Element-UI npm i element-ui --save npm install element-ui -S等待安装完成 二、注册组件 1、vue2使用element-ui 在main.js中注册 import ElementUI from element-ui; import element-ui/lib/theme-chalk/index.css; // Vue3不是这种语法请注意 Vue.use(ElementUI);vue2全部main.js代码 import Vue from vue import App from ./App.vueimport ElementUI from element-ui; import element-ui/lib/theme-chalk/index.css;Vue.config.productionTip false Vue.use(ElementUI);new Vue({render: h h(App), }).$mount(#app) 注意在使用Vue3全局注册element的时候发现错误如下 Uncaught TypeError: Cannot read properties of undefined (reading ‘prototype’) at eval (webpack-internal:///./node_modules/element-ui/lib/utils/types.js:39) at Object…/node_modules/element-ui/lib/utils/types.js (chunk-vendors.js:2923) at webpack_require (app.js:849) at fn (app.js:151) at eval (webpack-internal:///./node_modules/element-ui/lib/utils/util.js:19) at Object…/node_modules/element-ui/lib/utils/util.js (chunk-vendors.js:2935) at webpack_require (app.js:849) at fn (app.js:151) at eval (webpack-internal:///./node_modules/element-ui/lib/locale/format.js:49) at Object…/node_modules/element-ui/lib/locale/format.js (chunk-vendors.js:2526) 那么如何解决呢继续往下看… 2、vue3使用element-ui vue3中使用element-plus它对Vue3进行了支持。 npm install element-plus --savevue3 在main.js注册element-plus 注意这里与Vue2的注册有些不一样比如 const app createApp(App);先创建app 在用 use import { createApp } from vue import App from ./App.vueimport ElementPlus from element-plus import element-plus/dist/index.css const app createApp(App); app.use(ElementPlus);app.mount(#app)三、使用Element组件 1、轻微改造 启动项目正常显示即代表项目运行正常 改造项目代码 位置HelloWorld.vue templatediv classhelloh1{{ msg }}/h1/div /templatescript export default {name: HelloWorld,props: {msg: String} } /scriptstyle scoped /style这样代码看上去比较简单干净 2、验证element是否生效 templatediv classhelloh1{{ msg }}/h1el-button这是一个按钮/el-button/div /templatescript export default {name: HelloWorld,props: {msg: String} } /scriptstyle scoped /style从上面的页面可以看到element注册成功了
http://www.pierceye.com/news/666729/

相关文章:

  • 建设工程中标查询网站北京建设质量协会网站
  • 做公司网站要素做关于灯饰的网站
  • 网站编辑工具软件单位发购物或电影卡有哪些app
  • dw网站导航怎么做3免费网站建站
  • 用jsp做网站的代码句容网站建设制作
  • 宁国新站seo网页版微信登录提示二维码已失效
  • 深圳英文网站建设去哪家公司电商网站开发
  • 黑色网站后台出库入库管理软件app
  • 网站建设公司团队简介国外有网站备案制度吗
  • 怎么让公司网站随便就搜的到wordpress后台卡顿
  • 网站怎么做图片动态图片不显示报价单模板怎么做
  • 怎么建一个公司运营网站江西网站建设哪家专业
  • 网站后期维护费用网站开发学徒工作如何
  • 网站建站程序一站式网站建设服务
  • 滨州内做网站系统的公司购物网站开发用什么软件
  • 网站建设静态部分报告总结在合肥哪里学网站建设
  • 建站行业现状网易与暴雪合作
  • 网站中添加百度地图购物网站产品做促销能赚钱吗
  • 金融公司 网站开发怎么样建网站卖东西
  • 网站导航栏垂直如何提高你的网站的粘性
  • 直播网站开发接入视频中国建筑招聘官网2022
  • 大连专业企业建站找哪家wordpress 保护wp-login.php
  • 微网站建设哪家便宜想要找个网站做环评公示
  • 建设银行网银网站激活个人简历模板电子版可填写
  • 肃州区建设局网站宁夏百度seo
  • 关于做电影的网站设计西安网站建设制作 熊掌号
  • idc网站建设怎么自己做一个网页链接
  • 网站开发安全模块方案个人网站搭建软件
  • 重庆建设招标造价信息网站个人网站建设与维护
  • 网站备案用户名忘了怎么办嘉兴做外贸网站的公司