vue自定义指令两种方式,利用Vue自定义指令让你的开发变得更优雅
前段时间在用框架开发H5页面时,碰到框架中的组件内置了一个属性用于适配异形屏,虽然是组件内部实现的,但这个方式让我萌生一个想法:能不能自己写一个属性来实现这样的功能?经过一番思索,我发现Vue的指令模
顺晟科技
2021-09-15 13:12:57
28
.editor{ overflow:hidden; height:640px; padding:0 45px; border: 0 none; outline: none; } .editor::-webkit-scrollbar{ //设置整个滚动条宽高 width:6px; height:; } .editor::-webkit-scrollbar-thumb{ //设置滑块 width:4px; height:60px; background-color:#ccc; border-radius:3px; } .editor::-webkit-scrollbar-track { border-radius: 10px; background-color: rgba(255,255,255,.5); //设置背景透明 }
19
2022-10
15
2022-09
15
2022-09
15
2022-09
15
2022-09
15
2022-09