上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 28 下一页
摘要: E:\xxx\xxx\xxx\../../../../../../../E:/xxx/xxx/xxx/node_modules/_iview@3.5.4@iview/src/styles/common/iconfont/fonts/ionicons.svg?v=3.0.0 in ./node_mod 阅读全文
posted @ 2019-12-10 09:57 彭成刚 阅读(777) 评论(0) 推荐(0) 编辑
摘要: 1 创建 public/config.js 2 index.html 加入 <script type='text/javascript' src='/viewDesignAdmin/config.js?${Math.random().toString(36).substr(2)}'></script 阅读全文
posted @ 2019-12-09 16:55 彭成刚 阅读(252) 评论(0) 推荐(0) 编辑
摘要: router/index.js const router = new Router({ routes, base: '/viewDesignAdmin/', mode: 'history' }) vue.config.js const BASE_URL = process.env.NODE_ENV 阅读全文
posted @ 2019-12-09 16:53 彭成刚 阅读(229) 评论(0) 推荐(0) 编辑
摘要: phpStudy 阅读全文
posted @ 2019-12-09 14:09 彭成刚 阅读(189) 评论(0) 推荐(0) 编辑
摘要: rimraf node_modules 突然不能用了 怀疑是yarn的问题,从环境变量将yarn删掉,能用了 阅读全文
posted @ 2019-12-09 09:20 彭成刚 阅读(1137) 评论(0) 推荐(0) 编辑
摘要: this.current = params.page || 1 (前提是params对象一定要存在) 阅读全文
posted @ 2019-11-27 14:07 彭成刚 阅读(296) 评论(0) 推荐(0) 编辑
摘要: export const warning = (str, callback = _ => {}, outCallback = () => {}) => { Modal.warning({ // onOk: callback, onOk: () => { callback(outCallback) }, title: '提示', content: str }) } 阅读全文
posted @ 2019-11-27 09:41 彭成刚 阅读(694) 评论(0) 推荐(0) 编辑
摘要: 由于 ant-design-pro 的 mock 是一个单独的服务,所以没有办法整合到一起打包。暂时我是没有找到。 所以解决方案就是不用 mock 。 由于 系统有异步调取,所以一旦有异步调取就会失败,所以也不能有异步。 方案如下 1.删除路由权限 2.删除基本框架异步代码 3.删除基本框架权限代码 阅读全文
posted @ 2019-11-26 13:48 彭成刚 阅读(2161) 评论(0) 推荐(0) 编辑
摘要: main.js // 实际打包时应该不引入mock /* eslint-disable */ // if (process.env.NODE_ENV !== 'production') require('@/mock') require('@/mock') // 实际打包时应该不引入mock /*  阅读全文
posted @ 2019-11-25 17:17 彭成刚 阅读(414) 评论(0) 推荐(0) 编辑
摘要: svelte & Polymer Project 阅读全文
posted @ 2019-11-22 13:56 彭成刚 阅读(189) 评论(0) 推荐(0) 编辑
摘要: this.baseInfoList = [...this.baseInfoList] 所有和数组有关的操作,最后一定都展开一次,否则就没有双向绑定!! this.baseInfoList = [...this.baseInfoList] 所有和数组有关的操作,最后一定都展开一次,否则就没有双向绑定! 阅读全文
posted @ 2019-11-20 16:28 彭成刚 阅读(211) 评论(0) 推荐(0) 编辑
摘要: https://www.liaoxuefeng.com/wiki/1022910821149312/1023024381818112 阅读全文
posted @ 2019-11-20 09:47 彭成刚 阅读(765) 评论(0) 推荐(0) 编辑
摘要: 1 创建变量 2.合并变量 上面两块都是创建变量部分 下面是页面引用 阅读全文
posted @ 2019-11-12 16:50 彭成刚 阅读(269) 评论(0) 推荐(0) 编辑
摘要: tableZen maxHeight 解决方案 如果数据条数小于N,不进行高度设置,超过N条,直接设置高度,解决原生iview Table 对于右侧固定列,不能计算出正确数值的解决方案 阅读全文
posted @ 2019-11-08 09:29 彭成刚 阅读(443) 评论(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 彭成刚 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 重点1: 一但赋值内容,光标会失去,导致光标到第一位 解决方法 设置一个状态位isChange,编辑的时候不进行watch更新,因为emit会自动改变外层的值,触发watch 解决方法2 找回上一次的值进行替换 重点2:div可编辑 contenteditable="true" 重点3:div内只能 阅读全文
posted @ 2019-11-06 14:48 彭成刚 阅读(454) 评论(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 彭成刚 阅读(569) 评论(0) 推荐(0) 编辑
摘要: 事件缘由:由于城市树会反复调用,所以不用api每次调用,改用数据缓存一次读取,各处使用。然后我把调用的数据放入treeselect,发现组件就崩溃了,但是api读取的数据就没问题。 查看不是props问题,也不是watch问题,因为是个数组,不是属性,所以怀疑一下。 最后发现是数据没有进行过滤导致。 阅读全文
posted @ 2019-10-22 10:42 彭成刚 阅读(1209) 评论(0) 推荐(0) 编辑
摘要: 两个div,高度都是100% 用 display:flex; 和 min-height 一边撑高了,另一边自动走 阅读全文
posted @ 2019-10-18 14:22 彭成刚 阅读(746) 评论(0) 推荐(0) 编辑
摘要: 数组传入 对象的话用{...obj} 对象数组传出 阅读全文
posted @ 2019-10-16 14:26 彭成刚 阅读(2176) 评论(0) 推荐(0) 编辑
摘要: { "dependencies": { "typescript": "^3.6.4" } } 阅读全文
posted @ 2019-10-15 19:28 彭成刚 阅读(420) 评论(0) 推荐(0) 编辑
摘要: react / config\webpack.config.js 编译后去掉map 减小体积 shouldUseSourceMap = false 阅读全文
posted @ 2019-10-11 18:39 彭成刚 阅读(450) 评论(0) 推荐(0) 编辑
摘要: https://reacttraining.com/react-router/web/api/Hooks/uselocation 阅读全文
posted @ 2019-10-11 15:54 彭成刚 阅读(8490) 评论(0) 推荐(0) 编辑
摘要: react 装 router yarn add react-router-dom@next 阅读全文
posted @ 2019-10-11 11:06 彭成刚 阅读(1536) 评论(0) 推荐(0) 编辑
摘要: git init git add . git commit -m 'init' npm run eject 或者 cnpm run eject 阅读全文
posted @ 2019-10-10 10:39 彭成刚 阅读(319) 评论(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 彭成刚 阅读(2294) 评论(0) 推荐(0) 编辑
摘要: display: flex; justify-content: space-between; align-items: center; 阅读全文
posted @ 2019-10-09 15:42 彭成刚 阅读(132) 评论(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 彭成刚 阅读(538) 评论(0) 推荐(0) 编辑
摘要: Iconfont-阿里巴巴矢量图标库 登录账户是 github自动登录 阅读全文
posted @ 2019-09-29 18:08 彭成刚 阅读(3711) 评论(0) 推荐(0) 编辑
摘要: vue 阻止冒泡 @click.stop= 阅读全文
posted @ 2019-09-29 10:42 彭成刚 阅读(3275) 评论(0) 推荐(0) 编辑
摘要: react build相对目录 "homepage": ".", package.json 阅读全文
posted @ 2019-09-27 16:59 彭成刚 阅读(2972) 评论(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 彭成刚 阅读(236) 评论(0) 推荐(0) 编辑
摘要: mysqli_query($conn, "set names utf8"); //**设置字符集*** 不设置插入数据库就是乱码 阅读全文
posted @ 2019-09-26 16:26 彭成刚 阅读(2892) 评论(0) 推荐(0) 编辑
摘要: https://github.com/iview/iview-admin/tree/template 阅读全文
posted @ 2019-09-25 17:20 彭成刚 阅读(1037) 评论(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 彭成刚 阅读(574) 评论(0) 推荐(0) 编辑
摘要: mysql 如果没有密码 就不能远程连接 阅读全文
posted @ 2019-09-25 14:55 彭成刚 阅读(476) 评论(0) 推荐(0) 编辑
摘要: 后端框架 KOA NESTjs Think.js 阅读全文
posted @ 2019-09-24 16:25 彭成刚 阅读(693) 评论(0) 推荐(0) 编辑
摘要: 如果是 *.vue:html 就有style自动提示,但是eslint就会报格式格式化的不对 空格个数不对 阅读全文
posted @ 2019-09-23 17:26 彭成刚 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 解决问题: 点击相同的链接,会有一个重复key的报错 放在router 的 index.js 里 阅读全文
posted @ 2019-09-23 15:37 彭成刚 阅读(735) 评论(0) 推荐(0) 编辑
摘要: ret.data[0]._highlight = true iview table表格高亮 阅读全文
posted @ 2019-09-20 17:37 彭成刚 阅读(809) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 28 下一页