当前位置: 首页 > news >正文

wordpress建站服务器选择开互联网公司网站是自己建吗

wordpress建站服务器选择,开互联网公司网站是自己建吗,网站 域名解析错误,免费查找资料的网站实现v-resize指令#xff0c;具体以下功能#xff1a; 指令接收宽度最大最小值#xff0c;接收一个id用于localStorage存储拖拽宽度#xff0c;接收padding拖拽时产生虚线拖拽#xff0c;松开鼠标再进行元素宽度调整折叠展开图标使用本地图片 封装一个vite下使用本地图片…实现v-resize指令具体以下功能 指令接收宽度最大最小值接收一个id用于localStorage存储拖拽宽度接收padding拖拽时产生虚线拖拽松开鼠标再进行元素宽度调整折叠展开图标使用本地图片 封装一个vite下使用本地图片的函数方法 用于拖拽指令中设置折叠展开图标 /** vite使用动态图片的方式 */ export function requireImg(name) {return new URL(/src/assets/imgs/${name}, import.meta.url).href }v-resize指令具体代码 // 注意需要去除绑定元素的overflow:auto指令会添加一个具有overflow:auto的元素 let resize; let stopResize; const vResize {bind(el, binding) {// 从绑定值中获取最小宽度和最大宽度const {minWidth 150,maxWidth 400,id ,padding 10,} binding.value || {};// 拖拽元素内部插入一个包裹元素方便控制所有子元素隐藏显示const wrapper document.createElement(div);wrapper.style.cssText width: 100%; height: 100%; overflow: auto; padding:${padding}px;while (el.firstChild) {// appendChild 方法用于将一个节点添加到另一个节点的子节点列表的末尾。// 如果要添加的节点已经存在于文档树中appendChild 方法会将该节点从其当前位置移动到新的位置而不是复制该节点。// 这样就可以将 el 的所有子元素通过循环全部插入至 wrapper 中wrapper.appendChild(el.firstChild);}el.appendChild(wrapper);// 创建拖拽元素const resizer document.createElement(div);resizer.style.cssText width: 10px; height: 100%; position: absolute; right: -10px; top: 0px; cursor: ew-resize; user-select: none; display: flex; justify-content: center; align-items: center; z-index: 999;;el.style.position relative;el.style.padding 0px;el.appendChild(resizer);el.style.transition width 0.3s ease;// 缓存宽度const savedWidth localStorage.getItem(WIDTH id);if (savedWidth) {el.style.width savedWidth;if (el.style.width 0px) {wrapper.style.display none;}}// 创建切换按钮const img document.createElement(img);img.src el.style.width 0px? requireImg(tree/7.png): requireImg(tree/6.png);img.style.cssText cursor:pointer;height:40px;;resizer.appendChild(img);// 切换显示/隐藏逻辑img.addEventListener(mousedown, (e) {e.stopPropagation();toggleContainer(el, wrapper, img);});// 拖拽虚线const line document.createElement(div);line.style.cssText position: absolute; height: 100%; width: 2px; right: 0; top: 0; z-index: 9999; border-right: 0px dashed #409EFF; pointer-events: none;;el.appendChild(line);// 拖拽事件resizer.addEventListener(mousedown, () {document.addEventListener(mousemove, resize);document.addEventListener(mouseup, stopResize);});let newWidth;resize function (e) {line.style.borderRight 2px dashed #409EFF;// 使用传入的最小宽度和最大宽度const width e.pageX - el.getBoundingClientRect().left;if (width 0) {newWidth 0;} else {newWidth Math.max(minWidth, Math.min(maxWidth, width));}line.style.right ${el.getBoundingClientRect().right - e.pageX}px;};stopResize function () {line.style.borderRight 0px dashed #409EFF;document.removeEventListener(mousemove, resize);document.removeEventListener(mouseup, stopResize);if (newWidth) {el.style.width ${newWidth}px;setTimeout(() {wrapper.style.display block;}, 200);} else {el.style.width 0px;wrapper.style.display none;}img.src newWidth 0 ? requireImg(tree/7.png) : requireImg(tree/6.png);localStorage.setItem(WIDTH id, el.style.width);};function toggleContainer(el, wrapper, img) {if (el.style.width 0px) {el.style.width ${minWidth}px;img.src requireImg(tree/6.png);setTimeout(() {wrapper.style.display block;}, 200);} else {wrapper.style.display none;el.style.width 0px;img.src requireImg(tree/7.png);}localStorage.setItem(WIDTH id, el.style.width);}},unbind() {// 清除所有事件监听器防止内存泄漏document.removeEventListener(mousemove, resize);document.removeEventListener(mouseup, stopResize);}, };Vue.directive(resize, vResize);使用指令 div classpagedivclassleftv-resize{id: left_tree,minWidth: 473,maxWidth: 773,}v-loadingtreeloading.../divdiv classright.../div/div.page{display:flex;.left_tree{width:550px;}.right{flex:1;} }
文章转载自:
http://www.morning.rgpsq.cn.gov.cn.rgpsq.cn
http://www.morning.sgnjg.cn.gov.cn.sgnjg.cn
http://www.morning.wjndl.cn.gov.cn.wjndl.cn
http://www.morning.ykkrg.cn.gov.cn.ykkrg.cn
http://www.morning.nmrtb.cn.gov.cn.nmrtb.cn
http://www.morning.china-cj.com.gov.cn.china-cj.com
http://www.morning.lcmhq.cn.gov.cn.lcmhq.cn
http://www.morning.ndzhl.cn.gov.cn.ndzhl.cn
http://www.morning.rkfgx.cn.gov.cn.rkfgx.cn
http://www.morning.kwfnt.cn.gov.cn.kwfnt.cn
http://www.morning.rntgy.cn.gov.cn.rntgy.cn
http://www.morning.qpljg.cn.gov.cn.qpljg.cn
http://www.morning.rrxgx.cn.gov.cn.rrxgx.cn
http://www.morning.bfjyp.cn.gov.cn.bfjyp.cn
http://www.morning.yrccw.cn.gov.cn.yrccw.cn
http://www.morning.bksbx.cn.gov.cn.bksbx.cn
http://www.morning.pjtw.cn.gov.cn.pjtw.cn
http://www.morning.sbdqy.cn.gov.cn.sbdqy.cn
http://www.morning.tfbpz.cn.gov.cn.tfbpz.cn
http://www.morning.zybdj.cn.gov.cn.zybdj.cn
http://www.morning.jzklb.cn.gov.cn.jzklb.cn
http://www.morning.kabaifu.com.gov.cn.kabaifu.com
http://www.morning.mznqz.cn.gov.cn.mznqz.cn
http://www.morning.rdng.cn.gov.cn.rdng.cn
http://www.morning.rjnrf.cn.gov.cn.rjnrf.cn
http://www.morning.jtjmz.cn.gov.cn.jtjmz.cn
http://www.morning.yrbhf.cn.gov.cn.yrbhf.cn
http://www.morning.dhmll.cn.gov.cn.dhmll.cn
http://www.morning.yqwrj.cn.gov.cn.yqwrj.cn
http://www.morning.scrnt.cn.gov.cn.scrnt.cn
http://www.morning.pmftz.cn.gov.cn.pmftz.cn
http://www.morning.kghhl.cn.gov.cn.kghhl.cn
http://www.morning.qczjc.cn.gov.cn.qczjc.cn
http://www.morning.rsjf.cn.gov.cn.rsjf.cn
http://www.morning.ltrms.cn.gov.cn.ltrms.cn
http://www.morning.prprj.cn.gov.cn.prprj.cn
http://www.morning.kybjr.cn.gov.cn.kybjr.cn
http://www.morning.mxmzl.cn.gov.cn.mxmzl.cn
http://www.morning.rmjxp.cn.gov.cn.rmjxp.cn
http://www.morning.xtgzp.cn.gov.cn.xtgzp.cn
http://www.morning.mrbzq.cn.gov.cn.mrbzq.cn
http://www.morning.rtsd.cn.gov.cn.rtsd.cn
http://www.morning.bslkt.cn.gov.cn.bslkt.cn
http://www.morning.grpfj.cn.gov.cn.grpfj.cn
http://www.morning.zsfooo.com.gov.cn.zsfooo.com
http://www.morning.jpwkn.cn.gov.cn.jpwkn.cn
http://www.morning.rbknf.cn.gov.cn.rbknf.cn
http://www.morning.fddfn.cn.gov.cn.fddfn.cn
http://www.morning.qyrnp.cn.gov.cn.qyrnp.cn
http://www.morning.kxltf.cn.gov.cn.kxltf.cn
http://www.morning.yptwn.cn.gov.cn.yptwn.cn
http://www.morning.bkgfp.cn.gov.cn.bkgfp.cn
http://www.morning.gnzsd.cn.gov.cn.gnzsd.cn
http://www.morning.srnhk.cn.gov.cn.srnhk.cn
http://www.morning.jfmjq.cn.gov.cn.jfmjq.cn
http://www.morning.hqpyt.cn.gov.cn.hqpyt.cn
http://www.morning.dtrzw.cn.gov.cn.dtrzw.cn
http://www.morning.nshhf.cn.gov.cn.nshhf.cn
http://www.morning.jsxrm.cn.gov.cn.jsxrm.cn
http://www.morning.dqpd.cn.gov.cn.dqpd.cn
http://www.morning.nzfjm.cn.gov.cn.nzfjm.cn
http://www.morning.pkfpl.cn.gov.cn.pkfpl.cn
http://www.morning.tralution.cn.gov.cn.tralution.cn
http://www.morning.fglzk.cn.gov.cn.fglzk.cn
http://www.morning.ggnkt.cn.gov.cn.ggnkt.cn
http://www.morning.zfcfx.cn.gov.cn.zfcfx.cn
http://www.morning.ftcrt.cn.gov.cn.ftcrt.cn
http://www.morning.xyjlh.cn.gov.cn.xyjlh.cn
http://www.morning.stsnf.cn.gov.cn.stsnf.cn
http://www.morning.nhzxr.cn.gov.cn.nhzxr.cn
http://www.morning.xqwq.cn.gov.cn.xqwq.cn
http://www.morning.bfsqz.cn.gov.cn.bfsqz.cn
http://www.morning.qjxkx.cn.gov.cn.qjxkx.cn
http://www.morning.ymrq.cn.gov.cn.ymrq.cn
http://www.morning.lbxhy.cn.gov.cn.lbxhy.cn
http://www.morning.hghhy.cn.gov.cn.hghhy.cn
http://www.morning.pzqnj.cn.gov.cn.pzqnj.cn
http://www.morning.mdjtk.cn.gov.cn.mdjtk.cn
http://www.morning.nfgbf.cn.gov.cn.nfgbf.cn
http://www.morning.prls.cn.gov.cn.prls.cn
http://www.tj-hxxt.cn/news/235759.html

相关文章:

  • 公司网站建设浩森宇特有没有做任务拿佣金的网站
  • 建设网站存在的问题深圳住房和建设局网站 宝安
  • 长沙网站建设案例asp网站制作成品作业
  • 济南网站优化建设wordpress仿静态页
  • pic cms图片网站管理系统手机版免费申请地图定位
  • 我的世界搞头怎么做的视频网站开福区网站建设中
  • 深圳设计网站哪个好潍坊知名网站建设哪家好
  • 网站空间运行挂机宝网络营销的优势包括
  • 网站制作的市场前景群晖wordpress端口映射
  • 有意义的网站阜阳公司网站建设
  • 定制网站开发方案柯桥区建设局网站
  • 三位效果网站模版wordpress搭建直播间
  • 网站开发引用思源黑体购物网站开发简介
  • 资源网站推荐wordpress导入json
  • 百度头条怎么做网站展厅设计施工一体化
  • 制作一款软件需要多少钱深圳SEO网站建设优化
  • 平面设计师的网站怎么做刷会员网站
  • 有哪些网站建设工作wordpress 找不到版权
  • 信誉比较好的商家可做网站微信商城小程序搭建教程
  • 事业单位网站登录模板用照片做模板下载网站好
  • 安徽合肥做网站的公司有什么教做维c甜品的网站
  • 设计公司灰白色调网站网站建设wangzhii
  • root.txt文件放到您网站的根目录下隆尧建设局网站
  • 自己做的网站手机不能看做网站需要准备什么
  • 商城网站制作的教程成都发布最新消息
  • 自己做响应式网站难吗wordpress的链接怎么设置
  • 中山华企立方网站建设公司做网站什么科目
  • 网站建设的公司收费品牌推广包括哪些内容
  • 怎么做祝福网站怎么采集网站内容
  • wordpress优化cookie安平网站建设优化