随笔 - 135  文章 - 0  评论 - 2  阅读 - 17万
03 2023 档案
点击某个元素查看有没有指定的父元素
摘要:mounted() { document.addEventListener("click", (e) => this.fintParent(e)); }, methods: { fintParent(e) { const clickNode = e.srcElement; let parent = 阅读全文
posted @ 2023-03-31 15:59 稳住别慌 阅读(40) 评论(0) 推荐(0) 编辑
更改placeholder颜色
摘要:/deep/ input::-webkit-input-placeholder{ color:#fff; } /deep/ input::-moz-placeholder{ /* Mozilla Firefox 19+ */ color:#fff; } /deep/ input:-moz-place 阅读全文
posted @ 2023-03-30 18:50 稳住别慌 阅读(14) 评论(0) 推荐(0) 编辑
ant radio选中样式偏移
摘要:.ant-radio-inner::after { position: absolute; left: 50%; top: 50%; margin-top: -4px; margin-left: -4px; } 阅读全文
posted @ 2023-03-30 10:39 稳住别慌 阅读(179) 评论(0) 推荐(0) 编辑
去除滚动条
摘要:document.getElementsByTagName('body')[0].setAttribute('style', 'overflow:hidden') 阅读全文
posted @ 2023-03-27 15:51 稳住别慌 阅读(2) 评论(0) 推荐(0) 编辑
滚动到指定位置
摘要://滚动到选中定位的位置 selectedRegion() { // 通过Id获取到对应的dom元素 const node = document.getElementById(this.sertCurrnetKey) setTimeout(() => { if (node) { this.$next 阅读全文
posted @ 2023-03-25 10:52 稳住别慌 阅读(99) 评论(0) 推荐(0) 编辑
echarts实现X轴或Y轴名称过长展示省略号,并鼠标移入展示全称
摘要:Y轴 yAxis: { type: 'category', data: nameList, axisLine: { show: false // 是否显示坐标轴 }, axisTick: { show: false // 是否显示坐标轴刻度 }, // 必须要进行设置 triggerEvent: t 阅读全文
posted @ 2023-03-10 18:27 稳住别慌 阅读(1917) 评论(0) 推荐(0) 编辑
监听浏览器窗口大小
摘要:mounted() { this.$nextTick(this.getBodyHeight) window.addEventListener('resize', this.getBodyHeight) }, methods: { getBodyHeight() { this.bodyHeight = 阅读全文
posted @ 2023-03-06 17:01 稳住别慌 阅读(26) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示