上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页
摘要: vue2-ace-editor自定义语法提示 在网上找了很多,但都是推荐修改源文件,这里自己整理了一个,不需要修改源文件的,仅供参考 import ace from 'brace' methods: { // 初始化方法 initEditor () { const that = this const 阅读全文
posted @ 2021-09-06 15:19 yingzi__block 阅读(1507) 评论(0) 推荐(0) 编辑
摘要: 最近开发中使用到了脚本编辑器vue2-ace-editor,这里介绍一下其简单的用法 一、安装 npm install vue2-ace-editor --save 二、简单组件封装 <div class="editor-box"> <ace ref="editor" :value="content 阅读全文
posted @ 2021-07-26 16:57 yingzi__block 阅读(6220) 评论(0) 推荐(0) 编辑
摘要: 使用报错[Vue warn]: Computed property "localValue" was assigned to but it has no setter. 代码: <a-input class="search-input" v-model.trim="localValue" :allo 阅读全文
posted @ 2021-07-23 16:13 yingzi__block 阅读(394) 评论(0) 推荐(0) 编辑
摘要: 前端对象数组,根据对象的某个字段进行去重 datas: [ { name: 'liu', type: '1' }, { name: 'wang', type: '2' }, { name: 'wang', type: '1' } ] const rr = new Map() const datas 阅读全文
posted @ 2021-06-30 10:37 yingzi__block 阅读(2173) 评论(0) 推荐(0) 编辑
摘要: 三、jsplumb的使用 安装使用 npm install jsplumb 基本概念 Souce 源节点 Target 目标节点 Anchor 锚点 Endpoint 端点 Connector 连接 1、节点的拖动 <script> /* global jsPlumb */ jsPlumb.read 阅读全文
posted @ 2021-05-19 18:47 yingzi__block 阅读(2406) 评论(0) 推荐(0) 编辑
摘要: jsplumb的使用 功能:主要用于绘制图表,常见于工作流程图等的绘制 下面讲一下它的具体用法,会实现一个小demo 整体页面 左侧为节点配置 右侧为画布 首先代码结构如下: <div class="box-content"> <el-row> <el-col :span="6"> <div cla 阅读全文
posted @ 2021-05-19 18:45 yingzi__block 阅读(476) 评论(0) 推荐(0) 编辑
摘要: position定位 使用: 代码如下: <div style="background-color: #42B983; width: 200px; height: 200px;"> 1 </div> <div style="background-color: aquamarine; width: 2 阅读全文
posted @ 2021-04-07 11:09 yingzi__block 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 问题:使用锚点定位时,部分内容被顶部的固定导航栏遮住 锚点使用代码示例如下: <a href="#first">a</a> <div id="first"> hello </div> 解决方法: 一、使用padding+margin padding 影响锚点元素的定位,margin 不影响锚点元素的 阅读全文
posted @ 2021-04-07 10:33 yingzi__block 阅读(892) 评论(0) 推荐(0) 编辑
摘要: 需求:适配不同的屏幕大小 使用方法:screen用于电脑屏幕,平板电脑,智能手机等。 1、屏幕小于800 @media screen and (max-width: 800px) { // css 样式 } 2、屏幕大于700 @media screen and (min-width: 700px) 阅读全文
posted @ 2021-03-30 09:30 yingzi__block 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 排序出问题 // *** this.tableData = res.data.sort(this.sortDesc('size')) // *** sortDesc (key) { return function (obj1, obj2) { const val1 = obj1[key] const 阅读全文
posted @ 2021-02-25 14:58 yingzi__block 阅读(391) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页