上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 29 下一页
摘要: svelte & Polymer Project 阅读全文
posted @ 2019-11-22 13:56 彭成刚 阅读(195) 评论(0) 推荐(0)
摘要: this.baseInfoList = [...this.baseInfoList] 所有和数组有关的操作,最后一定都展开一次,否则就没有双向绑定!! this.baseInfoList = [...this.baseInfoList] 所有和数组有关的操作,最后一定都展开一次,否则就没有双向绑定! 阅读全文
posted @ 2019-11-20 16:28 彭成刚 阅读(221) 评论(0) 推荐(0)
摘要: https://www.liaoxuefeng.com/wiki/1022910821149312/1023024381818112 阅读全文
posted @ 2019-11-20 09:47 彭成刚 阅读(770) 评论(0) 推荐(0)
摘要: 1 创建变量 2.合并变量 上面两块都是创建变量部分 下面是页面引用 阅读全文
posted @ 2019-11-12 16:50 彭成刚 阅读(276) 评论(0) 推荐(0)
摘要: tableZen maxHeight 解决方案 如果数据条数小于N,不进行高度设置,超过N条,直接设置高度,解决原生iview Table 对于右侧固定列,不能计算出正确数值的解决方案 阅读全文
posted @ 2019-11-08 09:29 彭成刚 阅读(449) 评论(0) 推荐(0)
摘要: webstorm 开新项目 setting 设置@目录别名 add @ (languages & Framewors - Javascript - Webpack 4. setting eslint enable1. svn download2. add npm run dev(check add) 阅读全文
posted @ 2019-11-07 13:59 彭成刚 阅读(456) 评论(0) 推荐(0)
摘要: 重点1: 一但赋值内容,光标会失去,导致光标到第一位 解决方法 设置一个状态位isChange,编辑的时候不进行watch更新,因为emit会自动改变外层的值,触发watch 解决方法2 找回上一次的值进行替换 重点2:div可编辑 contenteditable="true" 重点3:div内只能 阅读全文
posted @ 2019-11-06 14:48 彭成刚 阅读(480) 评论(0) 推荐(0)
摘要: <Checkbox v-show="!disabledForm" ref="youwubianhuaRef" :value="youwubianhua" @input="youwubianhuaInputHandle">无变化</Checkbox> this.youwubianhua = false this.$refs.youwubianhuaRef.updateModel() 记得nextTi 阅读全文
posted @ 2019-10-24 15:13 彭成刚 阅读(591) 评论(0) 推荐(0)
摘要: 事件缘由:由于城市树会反复调用,所以不用api每次调用,改用数据缓存一次读取,各处使用。然后我把调用的数据放入treeselect,发现组件就崩溃了,但是api读取的数据就没问题。 查看不是props问题,也不是watch问题,因为是个数组,不是属性,所以怀疑一下。 最后发现是数据没有进行过滤导致。 阅读全文
posted @ 2019-10-22 10:42 彭成刚 阅读(1226) 评论(0) 推荐(0)
摘要: 两个div,高度都是100% 用 display:flex; 和 min-height 一边撑高了,另一边自动走 阅读全文
posted @ 2019-10-18 14:22 彭成刚 阅读(764) 评论(0) 推荐(0)
摘要: 数组传入 对象的话用{...obj} 对象数组传出 阅读全文
posted @ 2019-10-16 14:26 彭成刚 阅读(2181) 评论(0) 推荐(0)
摘要: { "dependencies": { "typescript": "^3.6.4" } } 阅读全文
posted @ 2019-10-15 19:28 彭成刚 阅读(426) 评论(0) 推荐(0)
摘要: react / config\webpack.config.js 编译后去掉map 减小体积 shouldUseSourceMap = false 阅读全文
posted @ 2019-10-11 18:39 彭成刚 阅读(456) 评论(0) 推荐(0)
摘要: https://reacttraining.com/react-router/web/api/Hooks/uselocation 阅读全文
posted @ 2019-10-11 15:54 彭成刚 阅读(8514) 评论(0) 推荐(0)
摘要: react 装 router yarn add react-router-dom@next 阅读全文
posted @ 2019-10-11 11:06 彭成刚 阅读(1546) 评论(0) 推荐(0)
摘要: git init git add . git commit -m 'init' npm run eject 或者 cnpm run eject 阅读全文
posted @ 2019-10-10 10:39 彭成刚 阅读(326) 评论(0) 推荐(0)
摘要: module.exports = { root: true, 'extends': [ 'plugin:vue/essential', '@vue/standard' ], rules: { 'object-curly-spacing': ["error", "always"], // allow async-await 'genera... 阅读全文
posted @ 2019-10-10 08:58 彭成刚 阅读(2335) 评论(0) 推荐(0)
摘要: display: flex; justify-content: space-between; align-items: center; 阅读全文
posted @ 2019-10-09 15:42 彭成刚 阅读(138) 评论(0) 推荐(0)
摘要: import { oneOf, isEmpty } from '@/libs/tools' export const isEmpty = (value) => { if (value == null) { return true } if (isArrayLike(value)) { return !value.length } else if (isPlainO... 阅读全文
posted @ 2019-10-09 10:08 彭成刚 阅读(576) 评论(0) 推荐(0)
摘要: Iconfont-阿里巴巴矢量图标库 登录账户是 github自动登录 阅读全文
posted @ 2019-09-29 18:08 彭成刚 阅读(3762) 评论(0) 推荐(0)
摘要: vue 阻止冒泡 @click.stop= 阅读全文
posted @ 2019-09-29 10:42 彭成刚 阅读(3290) 评论(0) 推荐(0)
摘要: react build相对目录 "homepage": ".", package.json 阅读全文
posted @ 2019-09-27 16:59 彭成刚 阅读(2999) 评论(0) 推荐(0)
摘要: header.php comm.php select.php update.php insert.php delete.php 字符集: utf8 -- UTF-8 Unicode 排序规则: utf8_general_ci 阅读全文
posted @ 2019-09-27 12:03 彭成刚 阅读(246) 评论(0) 推荐(0)
摘要: mysqli_query($conn, "set names utf8"); //**设置字符集*** 不设置插入数据库就是乱码 阅读全文
posted @ 2019-09-26 16:26 彭成刚 阅读(2923) 评论(0) 推荐(0)
摘要: https://github.com/iview/iview-admin/tree/template 阅读全文
posted @ 2019-09-25 17:20 彭成刚 阅读(1050) 评论(0) 推荐(0)
摘要: interceptors (instance, url) { // 请求拦截 instance.interceptors.request.use(config => { // 添加全局的loading... if (!Object.keys(this.queue).length) { // Spin.show() // 不建议开启,因为界面不友好 } this.queue[url] = true 阅读全文
posted @ 2019-09-25 14:57 彭成刚 阅读(581) 评论(0) 推荐(0)
摘要: mysql 如果没有密码 就不能远程连接 阅读全文
posted @ 2019-09-25 14:55 彭成刚 阅读(484) 评论(0) 推荐(0)
摘要: 后端框架 KOA NESTjs Think.js 阅读全文
posted @ 2019-09-24 16:25 彭成刚 阅读(701) 评论(0) 推荐(0)
摘要: 如果是 *.vue:html 就有style自动提示,但是eslint就会报格式格式化的不对 空格个数不对 阅读全文
posted @ 2019-09-23 17:26 彭成刚 阅读(337) 评论(0) 推荐(0)
摘要: 解决问题: 点击相同的链接,会有一个重复key的报错 放在router 的 index.js 里 阅读全文
posted @ 2019-09-23 15:37 彭成刚 阅读(748) 评论(0) 推荐(0)
摘要: ret.data[0]._highlight = true iview table表格高亮 阅读全文
posted @ 2019-09-20 17:37 彭成刚 阅读(823) 评论(0) 推荐(0)
摘要: 迷你记事本 https://vladocar.github.io/Minimal-Notes/ 阅读全文
posted @ 2019-09-19 15:52 彭成刚 阅读(170) 评论(0) 推荐(0)
摘要: tomcat 对 vue的history默认支持 tomcat 开启步骤 1.build文件放入webapps目录 2.进入conf目录修改server.xml端口号改成8088 3.进入bin目录运行startup.bat 4.浏览器 localhost:8088/workName 访问即可 阅读全文
posted @ 2019-09-19 14:20 彭成刚 阅读(200) 评论(0) 推荐(0)
摘要: vscode灰暗色主题和 左侧加图标 Spacegray VSCode vscode-icons 阅读全文
posted @ 2019-09-19 11:51 彭成刚 阅读(1125) 评论(0) 推荐(1)
摘要: "eslint.autoFixOnSave": true, "eslint.validate": [ "javascript", "javascriptreact", { "language": "vue", "autoFix": true } ], 阅读全文
posted @ 2019-09-19 09:04 彭成刚 阅读(2205) 评论(0) 推荐(0)
摘要: <div class="inputReportIndex"> <div class="inner"> <div class="left"> <Card :bordered="false" style="height: 48%;">1</Card> <div style="height: 4%;"></div> <Card :bordered="false" style 阅读全文
posted @ 2019-09-18 11:35 彭成刚 阅读(498) 评论(0) 推荐(0)
摘要: <keep-alive> 大量异步数据嵌入在循环体内,会有大量相同异步请求,可以缓存下拉用。 阅读全文
posted @ 2019-09-17 08:53 彭成刚 阅读(272) 评论(0) 推荐(0)
摘要: const routerList = [] function importAll (r) { r.keys().map(value => { r(value).default.map(item => { routerList.push(item) }) }) } importAll(require.context('.', true, /\.router\.js/)) 阅读全文
posted @ 2019-09-16 15:45 彭成刚 阅读(547) 评论(0) 推荐(0)
摘要: 某些时候 v-if 会导致 v-modal 内部数据获取不到 也watch不到,这个时候用v-show即可,另外提一下数组要整体赋值才有双向绑定 阅读全文
posted @ 2019-09-12 17:28 彭成刚 阅读(524) 评论(0) 推荐(0)
摘要: 表单配置项写法,表单写成JSON数组套对象,一行是一个数组单位,一列是一个对象单位,然后再写一个公共组件读取这个配置,循环加载slot,外层载入slot的自定义部分,比如input select等,这种写法就是把组件嵌套改为配置方式 阅读全文
posted @ 2019-09-12 16:06 彭成刚 阅读(166) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 29 下一页