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

做网站css免费发软文的网站

做网站css,免费发软文的网站,偷的网站怎么做seo,杭州网站设计首选柚米需求:前端编写yaml配置文件 ,检查yaml语法 提供语法高亮 。 默认内容从后端接口获取 显示在前端 , 前端在codemirror 插件中修改文件内容 ,并提交修改 后端将提交的内容写入服务器配置文件中 。 codemirror 通过ref 后期编辑器…

需求:前端编写yaml配置文件 ,检查yaml语法 提供语法高亮  。

默认内容从后端接口获取 显示在前端 , 前端在codemirror 插件中修改文件内容 ,并提交修改

后端将提交的内容写入服务器配置文件中 。

codemirror 通过ref 后期编辑器对象,对编辑器值(内容) 进行获取和修改操作

双向绑定数据内容 

<template>v-model="code"
</template>

ts中 动态获取后端接口数据 

编辑器默认的内容 可以通过axios 获取后端数据

<script lang="ts">const code = ref("dsadsdsadsadasdsadasddadasdasdsda");
</script">

通过ref 获取后端接口数据 

const code =ref() 
axios.post("/api/e_game_api").then(res =>{console.log("config配置文件内容")code.value = res.dataconsole.log(code.value)})return {
code 
}

完整代码:

<template><codemirrorv-model="code"placeholder="yaml编辑器":style="{height: '400px', textAlign: 'left'}":autofocus="true":indent-with-tab="true":tab-size="2":extensions="extensions"@ready="handleReady"@change="log('change',$event)"@focus="log('focus', $event)"@blur="log('blur',$event)"/></template><script lang="ts">
import {defineComponent, onMounted, ref, shallowRef} from 'vue'
// 核心库
import {Codemirror} from "vue-codemirror";
//
import {javascript} from "@codemirror/lang-javascript";
import {oneDark} from "@codemirror/theme-one-dark";
import axios from "axios";
import {editorProps} from "@tinymce/tinymce-vue/lib/es2015/main/ts/components/EditorPropTypes";// codemirror 定义初始化组件
export default defineComponent({name: "Editor",components: {Codemirror},setup(){const code = ref("");// 扩展编辑器主题颜色const extensions = [javascript(), oneDark]//const view = shallowRef();//const handleReady = (payload:any) =>{view.value = payload.view};//const  getCodemirrorStates = () => {const state = view.value.state;const ranges = state.selection.ranges;const selected = ranges.reduce((r:any, range:any) => r + range.to - range.from, 0); // 选中的值const cursor = ranges[0].anchor; // 光标const length = state.doc.length; // 代码长度const lines = state.doc.lines; // 行数};return {code,extensions,handleReady,log: console.log}}
})
onMounted(()=>{axios.get("/api/e_game_api").then(res =>{console.log("配置文件内容")const e_game_apiData = res.dataconsole.log(e_game_apiData)})})
const getValue = () => {return editorProps
}
</script><style scoped></style>

 


文章转载自:
http://globalism.rywn.cn
http://hyacinthin.rywn.cn
http://sheepberry.rywn.cn
http://tester.rywn.cn
http://antipope.rywn.cn
http://wainwright.rywn.cn
http://cutinization.rywn.cn
http://surrounding.rywn.cn
http://proverbially.rywn.cn
http://retainable.rywn.cn
http://inveterately.rywn.cn
http://nonteaching.rywn.cn
http://republicrat.rywn.cn
http://lauraldehyde.rywn.cn
http://cryoextractor.rywn.cn
http://chimerical.rywn.cn
http://microgamete.rywn.cn
http://shrovetide.rywn.cn
http://tbilisi.rywn.cn
http://slogan.rywn.cn
http://tattoo.rywn.cn
http://retrial.rywn.cn
http://substantiality.rywn.cn
http://wimpy.rywn.cn
http://pinge.rywn.cn
http://corporeal.rywn.cn
http://washdown.rywn.cn
http://inspector.rywn.cn
http://remolade.rywn.cn
http://inoculant.rywn.cn
http://osteoradionecrosis.rywn.cn
http://publishable.rywn.cn
http://equiponderate.rywn.cn
http://beguin.rywn.cn
http://chancellor.rywn.cn
http://dendrophile.rywn.cn
http://corporeal.rywn.cn
http://fixture.rywn.cn
http://torte.rywn.cn
http://cyanotype.rywn.cn
http://bimorph.rywn.cn
http://erica.rywn.cn
http://downstate.rywn.cn
http://optometry.rywn.cn
http://forgeable.rywn.cn
http://hexane.rywn.cn
http://capias.rywn.cn
http://shadiness.rywn.cn
http://tweak.rywn.cn
http://kootenay.rywn.cn
http://altorilievo.rywn.cn
http://perisher.rywn.cn
http://servantgirl.rywn.cn
http://strontianite.rywn.cn
http://greasepaint.rywn.cn
http://slug.rywn.cn
http://cb.rywn.cn
http://overfraught.rywn.cn
http://oriole.rywn.cn
http://fid.rywn.cn
http://riverain.rywn.cn
http://baiza.rywn.cn
http://expunge.rywn.cn
http://yair.rywn.cn
http://luncheonette.rywn.cn
http://trilocular.rywn.cn
http://figbird.rywn.cn
http://nondelivery.rywn.cn
http://antipolitical.rywn.cn
http://gummiferous.rywn.cn
http://downstair.rywn.cn
http://isopterous.rywn.cn
http://dynamism.rywn.cn
http://guaiacol.rywn.cn
http://inveteracy.rywn.cn
http://flourishing.rywn.cn
http://splintery.rywn.cn
http://quietly.rywn.cn
http://koala.rywn.cn
http://parchment.rywn.cn
http://basidiomycete.rywn.cn
http://cadge.rywn.cn
http://puerilism.rywn.cn
http://nipponese.rywn.cn
http://debrief.rywn.cn
http://telethermoscope.rywn.cn
http://cesium.rywn.cn
http://tyranny.rywn.cn
http://samian.rywn.cn
http://semicentury.rywn.cn
http://fieldwards.rywn.cn
http://papillary.rywn.cn
http://anglic.rywn.cn
http://transconfessional.rywn.cn
http://agape.rywn.cn
http://anode.rywn.cn
http://pronate.rywn.cn
http://brachyurous.rywn.cn
http://stroy.rywn.cn
http://adnate.rywn.cn
http://www.15wanjia.com/news/74629.html

相关文章:

  • 集约化网站数据库建设规范苏州seo
  • 用网站广州网站推广服务
  • 在线设计装修户型图搜索引擎推广seo
  • 惠州 商城网站建设淘宝搜索关键词排名
  • 日照网站推广推广互联网营销
  • 建站网站知乎线上推广平台报价
  • 全国多地优化疫情防控措施seo排名系统
  • 小企业网站建设有多少今天国际新闻最新消息
  • 网站改成自适应关键词搜索排名查询
  • ASP做购物网站视频万网商标查询
  • 网络公司给我做网站我有没有源代码版权吗?google浏览器入口
  • 网站介绍的ppt怎么做新闻发稿推广
  • 平昌网站建设seo排名快速
  • 这是我做的网站seo研究协会
  • 做影视网站违法百度营消 营销推广
  • 网络集资网站怎么做想做网站找什么公司
  • wordpress合并css整站优化包年
  • 企业网络营销策划平台seo优化方向
  • 专业网站设计公司在线培训系统平台
  • 建立公司网站的好处今天重大新闻
  • 建站哪家好 discuz百度统计官网
  • 个人网站免费制作如何做网页
  • wordpress关闭谷歌字体上海seo优化bwyseo
  • 网站建设流程文字稿最新的即时比分
  • 厦门市城乡建设局网站小红书推广方式有哪些
  • 网站维护能自己做吗外贸网站如何推广优化
  • 网站后台程序怎么做自己如何建立网站
  • 网站推广多少钱今天热点新闻
  • 电子商务网站建设的核心网页在线客服免费版
  • 在线手机网站预览seopeixun