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

望牛墩镇网站建设公司企业网站视频栏目建设方案

望牛墩镇网站建设公司,企业网站视频栏目建设方案,国内很多网站不是响应式,网站模板之家免费下载html通过CDN引入Vue组件抽出复用 近期遇到个需求#xff0c;就是需要在.net MVC的项目中#xff0c;对已有的项目的首页进行优化#xff0c;也就是写原生html和js。但是咱是一个写前端的#xff0c;写html还可以#xff0c;.net的话#xff0c;开发也不方便#xff0c;还…html通过CDN引入Vue组件抽出复用 近期遇到个需求就是需要在.net MVC的项目中对已有的项目的首页进行优化也就是写原生html和js。但是咱是一个写前端的写html还可以.net的话开发也不方便还得安装Visual Studio启动项目。所以就计划在html文件中开发然后移植到.net的项目中。 功能说明需要开发一个dashboard也就是大屏可视化多个模块然后由图表作为主要内容。那么就需要组件封装了html如何封装组件呢父组件又如何使用子组件呢 效果图 代码实现 子组件js var link document.createElement(link); link.rel stylesheet; link.href ./son.css; document.head.appendChild(link);let htmlstr divdiv classson-box{{ title }} - {{ content }} - {{str}}/divdiv classechart22/div/div // my-component.js Vue.component(my-component, {props: [title, content],template: htmlstr,data(){return{str:1}},mounted(){this.initEchart()},methods:{initEchart(){var option {xAxis: {type: category,data: [Mon, Tue, Wed, Thu, Fri, Sat, Sun]},yAxis: {type: value},series: [{data: [150, 230, 224, 218, 135, 147, 260],type: line}]};setTimeout((){let chartDom2 document.getElementsByClassName(echart2)[0]var myChart2 echarts.init(chartDom2);myChart2.setOption(option);})}} });父组件html !DOCTYPE html html langzh-CN headmeta charsetUTF-8meta nameviewport contentwidthdevice-width, initial-scale1.0titleVue Grid Layout 示例/title!-- 引入样式 --link relstylesheet hrefhttps://unpkg.com/element-ui/lib/theme-chalk/index.cssstyle#loader-wrapper { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 999999; }#loader {display: block; position: relative; left: 50%; top: 40%; z-index: 1001; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; border: 3px solid transparent;border-top-color: #fe9501; -webkit-animation: spin 2s linear infinite;-ms-animation: spin 2s linear infinite;-moz-animation: spin 2s linear infinite;-o-animation: spin 2s linear infinite;animation: spin 2s linear infinite;}#loader:before {content: ; position: absolute; top: 5px; left: 5px; right: 5px; bottom: 5px; border-radius: 50%; border: 3px solid transparent; border-top-color: #fe9501;-webkit-animation: spin 3s linear infinite;-moz-animation: spin 3s linear infinite;-o-animation: spin 3s linear infinite;-ms-animation: spin 3s linear infinite;animation: spin 3s linear infinite;}#loader:after {content: ; position: absolute; top: 15px; left: 15px; right: 15px; bottom: 15px; border-radius: 50%; border: 3px solid transparent; border-top-color: #fe9501;-moz-animation: spin 1.5s linear infinite;-o-animation: spin 1.5s linear infinite;-ms-animation: spin 1.5s linear infinite;-webkit-animation: spin 1.5s linear infinite;animation: spin 1.5s linear infinite;}-webkit-keyframes spin {0% { -webkit-transform: rotate(0deg); -ms-transform: rotate(0deg); transform: rotate(0deg); }100% { -webkit-transform: rotate(360deg); -ms-transform: rotate(360deg); transform: rotate(360deg); }}keyframes spin {0% { -webkit-transform: rotate(0deg); -ms-transform: rotate(0deg); transform: rotate(0deg); }100% { -webkit-transform: rotate(360deg); -ms-transform: rotate(360deg); transform: rotate(360deg); }}.load-text{color: #fe9501;text-align: center;position: relative;top: 55%;transform: translateY(-50%);}html {font-size: 100%; /*100 ÷ 16 × 100% 625%*/}media screen and (min-width:800px) and (max-width:999px) {html { font-size: 65%; }}media screen and (min-width:1000px) and (max-width:1024px) {html { font-size: 70%; }}media screen and (min-width:1025px) and (max-width:1280px) {html { font-size: 90%; }}media screen and (min-width:1281px) and (max-width:1680px) {html { font-size: 100%; }}media screen and (min-width:1681px) and (max-width:1920px) {html { font-size: 100%; }}media screen and (min-width:1921px) and (max-width:2240px) {html { font-size: 150%; }}media screen and (min-width:2241px){html { font-size: 150%; }}.vue-grid-layout {background: #eee;}.vue-grid-item:not(.vue-grid-placeholder) {background: #ccc;border: 1px solid black;}.vue-grid-item .resizing {opacity: 0.9;}.vue-grid-item .static {background: #cce;}.vue-grid-item .text {font-size: 24px;text-align: center;position: absolute;top: 0;bottom: 0;left: 0;right: 0;margin: auto;height: 100%;width: 100%;}.vue-grid-item .no-drag {height: 100%;width: 100%;}.vue-grid-item .minMax {font-size: 12px;}.vue-grid-item .add {cursor: pointer;}.vue-draggable-handle {position: absolute;width: 20px;height: 20px;top: 0;left: 0;background: url(data:image/svgxml;utf8,svg xmlnshttp://www.w3.org/2000/svg width10 height10circle cx5 cy5 r5 fill#999999//svg) no-repeat;background-position: bottom right;padding: 0 8px 8px 0;background-repeat: no-repeat;background-origin: content-box;box-sizing: border-box;cursor: pointer;}.vue-grid-item{display: flex;}.echart{width: 100%;height: 100%;min-height: 5rem;}/style /head bodydiv idappmy-component title标题 content我是子组件/my-componentmy-component title标题 content我是子组件/my-componentmy-component title标题 content我是子组件/my-componentmy-component title标题 content我是子组件/my-componentmy-component title标题 content我是子组件/my-component/div!-- 引入Vue --script srchttps://cdn.jsdelivr.net/npm/vue/dist/vue.js/script!-- 引入Vuex --script srchttps://unpkg.com/vuex3.6.2/dist/vuex.js/script!-- 引入gird组件 --script src./vue-grid-layout.common.js/scriptscript src./vue-grid-layout.umd.min.js/script!-- 引入组件库 --script srchttps://unpkg.com/element-ui/lib/index.js/scriptscript srchttps://cdnjs.cloudflare.com/ajax/libs/echarts/5.4.3/echarts.min.js/script!-- 引入子组件 --script src./son.js/script!-- 引入vuex --script src./store.js/scriptscriptnew Vue({el: #app,store,data: {draggable: true,resizable: false,index: 0,visible:false,},mounted(){},methods: {} });/script /body /html
http://wiki.neutronadmin.com/news/280209/

相关文章:

  • oracle 网站开发有限公司和公司哪个好
  • 凤岗网站建设西安seo工作室
  • 网站续费会计分录怎样做网站模板和定制的区别
  • 成都网站建设索q479185700内容营销的4个主要方式
  • 扁平化网站下载网络版微信
  • 广州开发区投资集团有限公司海外广告优化师
  • dw5怎样做网站建网站要花多少钱
  • 上海网站建设 普送wordpress主题模板下载
  • 快设计网站官网物流网站建设费用
  • 安徽海鹏建设工程有限公司网站精品建站
  • 石家庄做网站价格台州建设局网站信息价
  • 大良网站建设价位谷歌网站
  • 网站建设分金手指专业十时事新闻热点摘抄
  • 2021年十大购物网站排名自己开个网站
  • 网站系统运行环境网站建设前端需要看什么书
  • 电商网站开发参考文献织梦可以做英文网站吗
  • 驾校网站建设费用建设银行官方个人网站
  • ui怎样做网站pc版网站生成App
  • 福建建设执业资格注册管理中心网站外贸需要网站做生产车间展示
  • 北京天津网站设计制作多少钱网站优化
  • 四川欧瑞建设集团网站安卓app开发培训
  • 常熟做网站推广的吉林省建设工程信息网站
  • 做韩服的视频网站室内建筑设计
  • 上海网站建设报价方案嘉兴网站定制公司
  • 网站程序源码上传到空间打开网站首页还是显示的程序原源代码专业的公司网页制作
  • 如何做律所网站Wordpress不能修改导航名称
  • 网站开发工作室简介wordpress点击才弹窗插件
  • 水头做网站的公司减肥网站开发目的
  • 广西建设厅网站地址asp企业营销型网站建设
  • 做网站基本东西中山 家居 骏域网站建设专家