随笔分类 -  01-Vue

摘要:增加简体繁体转换按钮 1、增加工具栏按钮,neditor\neditor.config.js toolbars: [ [ "selectall", // 全选 ... 'simple', // 简体 'tradition', // 繁体 ] ] 2、添加按钮提示文字,neditor\i18n\zh- 阅读全文
posted @ 2022-07-19 15:35 翠微 编辑
摘要:安装 npm install --save vue-json-viewer 使用 import JsonViewer from 'vue-json-viewer' export default { name: 'logRecord', components:{ JsonViewer }, data( 阅读全文
posted @ 2022-07-14 14:26 翠微 编辑
摘要:confirm this.$confirm("是否继续删除", "警告", {type: 'warning'}) .then(() => { // 确认 }) .catch(()=>{ // 取消 }) 阅读全文
posted @ 2022-07-04 16:26 翠微 编辑
摘要:安装依赖 npm install -S file-saver npm install -S xlsx npm install -D script-loader 在src下信件excel文件夹,里面放入Blob.js和Export2excel.js https://github.com/eligrey 阅读全文
posted @ 2022-07-04 13:28 翠微 编辑
摘要:【VUE】错误记录 阅读全文
posted @ 2022-06-18 20:21 翠微 编辑
摘要:自定义一个组件 通过 Prop 向子组件传递数据 props: { value: { type: String, default: '' } } 监听子组件事件 子组件可以通过调用内建的 emitemit(' 阅读全文
posted @ 2022-04-11 15:18 翠微 编辑
摘要:1、visual-ui/public/index.html #visualApp { <div id="visualApp"> 2、visual-ui/src/App.vue #visualApp { <div id="visualApp"> 3、visual-ui/src/main.js }).$ 阅读全文
posted @ 2022-04-06 19:26 翠微 编辑
摘要:1. change 事件传参 @change="(val) => yourChange(val, index)" siteChange(val,index) { console.log("val",val); console.log("index",index); } 阅读全文
posted @ 2022-02-09 11:10 翠微 编辑
摘要:1、安装node8 32位 2、查看位数 3、安装套件 4、安装node-gyp 5、gyp ERR! 6、安装yarn 7、安装依赖 8、error Found incompatible module 9、FATAL ERROR: CALL_AND_RETRY_LAST Allocation fa 阅读全文
posted @ 2020-10-06 22:13 翠微 编辑
摘要:webpack devServer: { proxy: { '/manage': { target: 'http://localhost:8765', pathRewrite: { '^/manage': '/manage' } }, '/websocket': { target: 'ws://lo 阅读全文
posted @ 2020-08-21 14:36 翠微 编辑
摘要:百度地图API // enableMapClick 禁用地图上图标提示var map = new BMap.Map('map', {enableMapClick:false});var poi = new BMap.Point(116.307852,40.057031);map.centerAndZ 阅读全文
posted @ 2020-08-02 20:33 翠微 编辑
摘要:【ES5 ES6】使用学习 转载: 1、Promise 2、下划线转驼峰,驼峰转下划线 1、Promise 基本使用 const promise = new Promise(function (resolve, reject) { console.log('pending ...'); let ra 阅读全文
posted @ 2019-10-16 09:58 翠微 编辑
摘要:【VUE】自定义组件 转载: 阅读全文
posted @ 2019-09-18 13:28 翠微 编辑
摘要:【Html JS】使用问题记录 1、td 文字换行 2、正则表达式 1、td 文字换行 style=”word-wrap:break-word;word-break:break-all;” word-wrap:设置或检索当当前行超过指定容器的边界时是否断开转行,取值如下 normal:默认值。允许内 阅读全文
posted @ 2019-07-29 13:08 翠微 编辑
摘要:【VUE】使用问题记录 1、Vue.nextTick 修改数据之后更新DOM 2、修改了属性,视图没有刷新,或使用了this.$forceUpdate() 3、鼠标over和out 4、MSBUILD : error MSB3428: 未能加载 Visual C++ 组件“VCBuild.exe” 阅读全文
posted @ 2019-07-25 14:09 翠微 编辑
摘要:【Element UI】使用问题记录 转载:https://www.cnblogs.com/yangchongxing/p/10750994.html 下载地址: https://unpkg.com/browse/element-ui@2.11.1/ https://unpkg.com/elemen 阅读全文
posted @ 2019-04-22 16:37 翠微 编辑
摘要:【VUE】常用函数 转载:https://www.cnblogs.com/yangchongxing/p/10637087.html 目录 1、变异方法 2、替换数组 3、修改数组 1、变异方法 push() 方法可向数组的末尾添加一个或多个元素,并返回新的长度。 pop() 方法用于删除并返回数组 阅读全文
posted @ 2019-04-01 16:18 翠微 编辑

点击右上角即可分享
微信分享提示