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

电玩网站开发网站seo优化价格

电玩网站开发,网站seo优化价格,专业网站建设公司兴田德润简介,网站建设公司 南京更多ruoyi-nbcio功能请看演示系统 gitee源代码地址 前后端代码: https://gitee.com/nbacheng/ruoyi-nbcio 演示地址:RuoYi-Nbcio后台管理系统 更多nbcio-boot功能请看演示系统 gitee源代码地址 后端代码: https://gitee.com/nbacheng/n…

更多ruoyi-nbcio功能请看演示系统

gitee源代码地址

前后端代码: https://gitee.com/nbacheng/ruoyi-nbcio

演示地址:RuoYi-Nbcio后台管理系统

更多nbcio-boot功能请看演示系统

gitee源代码地址

后端代码: https://gitee.com/nbacheng/nbcio-boot

前端代码:https://gitee.com/nbacheng/nbcio-vue.git

在线演示(包括H5) : http://122.227.135.243:9888

上面代码按钮显示相应的代码与界面

<el-button icon="el-icon-view" type="text" @click="Code">代码</el-button>
Code() {this.operationType = 'Code'let data = {fileName: undefined,type: 'file'}this.generate(data);},
generate(data) {const func = this[`exec${titleCase(this.operationType)}`]this.generateConf = datafunc && func(data)},

上面实现是调用了下面的方法,就是execCode方法

ƒ execCode(data) {
      this.AssembleFormData();
      this.drawerVisible = true;
    }

其中AssembleFormData就把配置信息与要显示的字段放进去

AssembleFormData() {this.formData = {...this.formConf,fields: deepClone(this.drawingList)}},

通过开关显示这个下面的组件

<form-drawer:visible.sync="drawerVisible":form-data="formData"size="100%":generate-conf="generateConf"/>

这个页面主要用到了两个组件,样式优化组件beautifier和显示组件monaco-editor,在打开el-drawer的时候就进行初始化了

onOpen() {const { type } = this.generateConfthis.htmlCode = makeUpHtml(this.formData, type)this.jsCode = makeUpJs(this.formData, type)this.cssCode = makeUpCss(this.formData)this.key = +new Date()loadBeautifier(btf => {beautifier = btfthis.htmlCode = beautifier.html(this.htmlCode, beautifierConf.html)this.jsCode = beautifier.js(this.jsCode, beautifierConf.js)this.cssCode = beautifier.css(this.cssCode, beautifierConf.html)loadMonaco(val => {monaco = valthis.setEditorValue('editorHtml', 'html', this.htmlCode)this.setEditorValue('editorJs', 'js', this.jsCode)this.setEditorValue('editorCss', 'css', this.cssCode)if (!this.isInitcode) {this.isParser = truethis.isParser && (this.isInitcode = true) && this.runCode()}})})},

对于左边代码显示部分,主要是下面部分处理,为了避免一些问题,下面注释了一些没用的信息

setEditorValue(id, type, codeStr) {// if (editorObj[type]) {//   editorObj[type].setValue(codeStr)// } else {editorObj[type] = monaco.editor.create(document.getElementById(id), {value: codeStr,theme: 'vs-dark',language: mode[type],automaticLayout: true})//}// ctrl + s 刷新editorObj[type].onKeyDown(e => {if (e.keyCode === 49 && (e.metaKey || e.ctrlKey)) {this.runCode()}})},

之前说过,原来模拟显示采用iframe 加载的是提前写好的 html,但这种方式对于新加的组件就不怎么友好了,所以修改成如下方式了

<div class="view-border"><parser v-show="isParser" :form-conf="formData" @submit="submitForm" :key="key" ref="previewForm" /></div>

效果图如下:

http://www.r43.cn/news/149760.html

相关文章:

  • 程序员做兼职的网站免费开网店免费供货
  • 做税务申报去哪个网站做seo排名好的公司
  • pdf动态网站开发seo网站推广软件排名
  • 微信网站怎么制作短视频seo排名系统
  • wordpress装在xampp深圳seo优化公司排名
  • 太原建站的模板产品如何在网上推广
  • 塘厦网站仿做20个排版漂亮的网页设计
  • 东莞 网站 建设 汽车域名权重是什么意思
  • 做360效果图网站济南seo优化外包
  • 如何建立互联网公司网站广州网站设计制作
  • 网站建设最新流行小网站搜什么关键词好
  • 中国电子网我们seo
  • 网站建设报什么专业图片外链工具
  • 网站的跳出率中国十大网站有哪些
  • 几款免费流程图制作软件沈阳seo公司
  • 秦皇岛在线青海百度关键词seo
  • 化妆品电商网站模板国内广告投放平台
  • 设计网站的收费图是怎么做的宁波正规seo快速排名公司
  • 做机械设备销售的那个网站好资源猫
  • 镇江网站优化推广漯河网站seo
  • 工程建设信息官方网站营销型网站建设多少钱
  • 徐州做网站谁家最专业安卓优化软件
  • 白云网站 建设信科网络seo专业培训费用
  • 做旅游攻略网站好国内重大新闻十条
  • 酒类网站建设方案电商是做什么的
  • 做淘宝网站java代码吗看广告赚钱的平台
  • 做动态二维码的网站云搜索
  • 个人网站开发工具免费网站代理访问
  • 合肥网站建设司图百度seo按天计费
  • 网站建设开发费怎么做账seo友情链接