摘要:
因为产品需求需要一个table表头互相拖拽的例子,在对比了各种拖拽组件最后选择了Sortable。 下面是一个简版的例子,可以两个列表互相拖拽,也可以单个里面相互拖拽 1. 引入Sortable 访问地址: http://www.sortablejs.com/ yarn add sortablejs 阅读全文
摘要:
先引入swiper ,我直接引入的最新的包是10.2.0 pnpm add swiper or yarn add swiper 在vue页面引入 <script setup> import { Swiper, SwiperSlide } from 'swiper/vue'; import { Aut 阅读全文
摘要:
<div class='wrap'> <div class='header'></div> <div class='main'></div> <div class='footer></div> </div> /*设置html和body的高度为显示屏的高度*/ /*如果当前滚动页面最大父级是html, 阅读全文
摘要:
<div class="bars"> <div class="bar"></div> <div class="bar"></div> <div class="bar"></div> <div class="bar"></div> <div class="bar"></div> <div class= 阅读全文
摘要:
1. ios渐变色linear-gradient中使用的透明色transparent会发灰 ios对background: linear-gradient(to right, transparent, #fff 32%)这个透明渐变色会发灰,改成background: linear-gradient 阅读全文
摘要:
阅读全文
摘要:
这个绝对我花了我将近两个小时去解决这个问题,一直找不到原因,百度都是类似的 zsh: command not found: XXX 这些问题 但是我现在已经解决问题了(抖腿中),忘记截图了。害!怪我。。。。。。 我当时直接命令符 1.npm i -g egg-init 安装,安装成功,我还cd到安装 阅读全文
摘要:
场景:pc端需要头部搜索,并支持回车搜索。如下 下面就把代码放出来 <Button type="primary" @click="handleSearch" @keyup.enter="enterSearch">搜索</Button> 下面是js里面的代码,回车就可以了 created () { / 阅读全文
摘要:
最近在用iview开发,写了一个简单的form表单提交,是下拉提交,就一个值,但是一直选了值都报没有填写!很郁闷。 最后找到原因发现ivew的form表单验证默认是支持String类型的,Number类型的就会一直返回false, 所以不管是下拉选择框,还是输入框只要改成String类型或者验证规则 阅读全文