会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yingzi__block
学如逆水行舟,不进则退
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
13
下一页
2021年9月6日
vue2-ace-editor自定义语法提示
摘要: vue2-ace-editor自定义语法提示 在网上找了很多,但都是推荐修改源文件,这里自己整理了一个,不需要修改源文件的,仅供参考 import ace from 'brace' methods: { // 初始化方法 initEditor () { const that = this const
阅读全文
posted @ 2021-09-06 15:19 yingzi__block
阅读(1750)
评论(0)
推荐(0)
2021年7月26日
vue2-ace-editor的使用
摘要: 最近开发中使用到了脚本编辑器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
阅读(6653)
评论(0)
推荐(0)
2021年7月23日
vue computed属性使用
摘要: 使用报错[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
阅读(463)
评论(0)
推荐(0)
2021年6月30日
js 对象数组根据字段去重
摘要: 前端对象数组,根据对象的某个字段进行去重 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
阅读(2307)
评论(0)
推荐(0)
2021年5月19日
jsplumb使用(二)
摘要: 三、jsplumb的使用 安装使用 npm install jsplumb 基本概念 Souce 源节点 Target 目标节点 Anchor 锚点 Endpoint 端点 Connector 连接 1、节点的拖动 <script> /* global jsPlumb */ jsPlumb.read
阅读全文
posted @ 2021-05-19 18:47 yingzi__block
阅读(3109)
评论(0)
推荐(0)
jsplum使用(一)
摘要: jsplumb的使用 功能:主要用于绘制图表,常见于工作流程图等的绘制 下面讲一下它的具体用法,会实现一个小demo 整体页面 左侧为节点配置 右侧为画布 首先代码结构如下: <div class="box-content"> <el-row> <el-col :span="6"> <div cla
阅读全文
posted @ 2021-05-19 18:45 yingzi__block
阅读(551)
评论(0)
推荐(0)
2021年4月7日
css position定位
摘要: 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
阅读(65)
评论(0)
推荐(0)
CSS锚点定位时被顶部固定导航栏遮住
摘要: 问题:使用锚点定位时,部分内容被顶部的固定导航栏遮住 锚点使用代码示例如下: <a href="#first">a</a> <div id="first"> hello </div> 解决方法: 一、使用padding+margin padding 影响锚点元素的定位,margin 不影响锚点元素的
阅读全文
posted @ 2021-04-07 10:33 yingzi__block
阅读(989)
评论(0)
推荐(0)
2021年3月30日
CSS3 @media媒体查询的使用
摘要: 需求:适配不同的屏幕大小 使用方法: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
阅读(408)
评论(0)
推荐(0)
2021年2月25日
js sort排序问题
摘要: 排序出问题 // *** 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
阅读(466)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
13
下一页
公告