- 博客(11)
- 收藏
- 关注
原创 flex布局遇到多行单个列表最后一行对不齐的解决办法,解决写了justify-content:space-between之后还对不齐的办法
用ResizeObserver来解决,只不过不兼容ie,由于做的是混合app,所以不考虑ie,ie的话需要用到媒体查询或者其他办法,有更好的办法欢迎指教。代码源码// goods组件是要展示的数据<div class="flex flex-wrap justify-between match-goods-com goods-com" ref="goodsCom"> <goods v-for="(item, index) in productList" :.
2021-12-13 16:55:06
1286
2
原创 移动端H5局部出现横向滚动效果,纯css效果
移动端局部出现横向滚动效果<div class=" flex items-center justify-between overflow-x-scroll leading-36 " > <span v-for="item in categoryList" :key="item.id"
2021-12-06 15:54:27
708
原创 nuxt swiper和vue-awesome-swiper版本不对应的问题
ERROR in ./node_modules/swiper/css/swiper.min.css (./node_modules/@nuxt/postcss8/node_modules/css-loader/dist/cjs.js??ref--3-oneOf-1-1!./node_modules/@nuxt/postcss8/node_modules/postcss-loader/dist/cjs.js??ref--3-oneOf-1-2!./node_modules/swiper/css/swiper.
2021-11-10 15:54:08
1069
原创 eslint解析出现Parsing error: Unexpected token...
解决办法https://eslint.org/docs/user-guide/migrating-to-5.0.0#the-experimentalobjectrestspread-option-has-been-deprecated
2021-11-01 17:52:50
554
原创 commitlint.config.js:1 报错 yntaxError: Invalid or unexpected token
commitlint.config.js:1��mSyntaxError: Invalid or unexpected token at wrapSafe (internal/modules/cjs/loader.js:1001:16) at Module._compile (internal/modules/cjs/loader.js:1049:27) at Object.Module._extensions..js (internal/modules/cjs/loader
2021-11-01 17:19:40
1840
3
原创 electron+vue子窗口视图不更新
1、子窗口是通过主进程来创建的2、子窗口的数据需要从父窗口或者主进程拿到3、点击打开子窗口的按钮时:ipcRender.send(event, param);4、然后主进程通过ipcMain.on(event, param); // 监听到// 监听到的同时currentWindow.webContens.send(event. data) // 视图在哪个窗口则currentWindow就是哪个窗口需要通过第四步来转发一下才可以5、之后子窗口中的渲染进程就可以监听到。因为父窗口是
2021-03-19 18:26:22
860
原创 electron桌面端div写@click事件不生效
electron桌面端div写@click事件不生效给div加上这两行css样式即可user-select: none; -webkit-app-region:no-drag
2021-03-17 17:03:13
793
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人