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

wap视频网站如何做360网站的排名

wap视频网站,如何做360网站的排名,桂林最新新闻,wordpress源代码插件需求#xff1a;直接使用element-plus未封装成组件的源码#xff0c;创建一个项目#xff0c;可以使用任意的element-plus组件#xff0c;可以深度研究组件的运行。例如研究某一个效果#xff0c;如果直接在node_modules修改elment-plus打包之后的那些js、mjs代码#xf…需求直接使用element-plus未封装成组件的源码创建一个项目可以使用任意的element-plus组件可以深度研究组件的运行。例如研究某一个效果如果直接在node_modules修改elment-plus打包之后的那些js、mjs代码不方便使用也没有效果。 第一步创建项目 采用vite创建一个test_use_elementplus_code选择vue和ts等等不在赘述之后安装element-plus后续替换掉element-plus组件直接使用源码的组件会出现无样式的问题需要使用element-plus的css样式不安装也可以直接引入源码的scss文件但是需要安装sass否则会报错在main.ts中全局引入在App.vue中做出一个效果 import { createApp } from vue; import ./style.css; import element-plus/dist/index.css; import element-plus/theme-chalk/index.css; import ElementPlus from element-plus; import App from ./App.vue;createApp(App).use(ElementPlus).mount(#app); templateElConfigProvider :localezhCnh1测试一下/h1!-- RouterView / --el-button text typeprimary clickdialogVisible trueclick to open the Dialog/el-buttonel-dialog v-modeldialogVisible titleTips width30%spanThis is a message/spantemplate #footerspan classdialog-footerel-button clickdialogVisible falseCancel/el-buttonel-button typeprimary clickdialogVisible falseConfirm/el-button/span/template/el-dialog/ElConfigProvider /templatescript setup langts import { ref } from vue; import zhCn from element-plus/es/locale/lang/zh-cn; const dialogVisible ref(false); /script不用安装element-plus引入样式的方法直接使用packages的scss文件但是需要安装sass依赖 // import element-plus/dist/index.css; // import element-plus/theme-chalk/index.css; import /packages/theme-chalk/src/index.scss 第二步下载element-plus源码复制代码 下载地址https://github.com/element-plus/element-plus 复制上面代码中的packages到自己的项目这里采用和src同级别的目录 这里做以下处理 1、处理路径问题element-plus源码中把element-plus指向了pachkages这个文件夹我们直接复制过来后代码中会把element-plus识别为node_modules中的内容要通过修改vite.comfig.ts文件把路径改成packages。 import { defineConfig } from vite; import vue from vitejs/plugin-vue; import { URL, fileURLToPath } from node:url; // https://vite.dev/config/ export default defineConfig({plugins: [vue()],resolve: {alias: {: fileURLToPath(new URL(./src, import.meta.url)),element-plus: fileURLToPath(new URL(packages, import.meta.url)),},}, });2、安装element-plus/icons-vue把node_modules的element-plus/icons-vue复制到packages中原因packages中的源码用到了这些图标没有icons-vue会报错。 3、安装下面的依赖方法可以直接复制下面的代码到package.json中的dependencies然后npm i 或者直接运行项目vite会提示有依赖没有安装直接去element-plus源码的package.json中找到复制进来后npm i ctrl/tinycolor: ^3.4.1,element-plus/icons-vue: ^2.3.1,floating-ui/dom: ^1.0.1,popperjs/core: npm:sxzz/popperjs-es^2.11.7,types/lodash: ^4.14.182,types/lodash-es: ^4.17.6,vueuse/core: ^9.1.0,async-validator: ^4.2.5,dayjs: ^1.11.3,escape-html: ^1.0.3,lodash: ^4.17.21,lodash-es: ^4.17.21,lodash-unified: ^1.0.2,memoize-one: ^6.0.0,normalize-wheel-es: ^1.2.0,vue/shared: ^3.2.37 第三步替换element-plus运行项目 原 import ElementPlus from element-plus; 新 import ElementPlus from /packages/element-plus;
http://www.hkea.cn/news/14403525/

相关文章:

  • 品牌建设网站有哪些百度400电话
  • 江门企业模板建站南昌高端网站建设
  • 汽车网站开发儿童摄影网站设计
  • 网站大学报名官网入口中企动力销售陪酒多吗
  • 汕头模版网站建设青岛公司网页设计
  • 邢台商城类网站建设深圳龙岗网站建设哪家好公司
  • 网站首页栏目设置南宁百度seo优化
  • 办公用品网站建设市场定位上城区商城网站建设
  • 2016年做网站能赚钱网站制作公司有哪些
  • 公司网站建设内容上市设计网站
  • wdcp备份的数据库网站文件在哪里外贸人常去的网站
  • 潍坊建设局网站wordpress 弹窗插件
  • 河北综合网站建设系列安徽专业做网站的大公司
  • 官方查企业信息的网站p2p理财网站建设
  • 网站注册商是什么微信朋友圈营销文案
  • 建设网站项目概述seo推广技术
  • 国内html5视频网站建设网站建设如何上传文件
  • 专门做护肤品网站网推渠道平台
  • 网站开发建设账务处理程序中山精品网站建设公司
  • 最好网站制作工具免费的网页域名
  • 请人代做谷歌外贸网站目前主流网站开发所用软件
  • 个人网站建设小江芜湖市建设工程质监站网站
  • 团购网站前景263企业邮箱报价
  • 新闻发布网站建设实训米枫网站怎么做分页
  • 做战袍网站app开发哪家好
  • 自己如何建设个网站首页wordpress安装分享插件
  • 电脑端网站和手机网站区别湖北联诺建设网站
  • 企业文化建设网站绥化供求世界在线看报
  • 做网站品牌公司搜索引擎营销的步骤
  • 南通通明建设监理有限公司网站前端开发能干到多少岁