笔记
m0_56187277
这个作者很懒,什么都没留下…
展开
-
class样式根据不同的文字内容进行切换
html: <div :class="merchantPlatform === 'Merchant' ? 'coupon-left-top-s' : 'coupon-left-top-p' "> {{ merchantPlatform }} </div> ...原创 2022-03-02 15:36:16 · 157 阅读 · 0 评论 -
el-table表格出现滚动条样式修改成迷你
/*滚动条样式*/ ::v-deep ::-webkit-scrollbar { /*滚动条整体样式*/ width: 8px; /*高宽分别对应横竖滚动条的尺寸*/ height: 8px; } ::v-deep ::-webkit-scrollbar-thumb { /*滚动条里面小方块*/ border-radius: 8px; // box-shadow: inset 5px 0px 5px #f0f0f0; background: #d9d.原创 2022-01-15 16:30:10 · 358 阅读 · 0 评论 -
页面加载时子组件的dom还没获取
监听延时加载 watch: { show() { this.visible = this.show; this.$nextTick(()=>{ setTimeout(()=>{ this.getEcharts() }, 500) }) // this.dialogForm...原创 2022-01-14 17:59:10 · 358 阅读 · 0 评论 -
表格map遍历
原创 2022-01-14 17:56:31 · 120 阅读 · 0 评论 -
时间戳转时间格式
new Date(1642144593000).toLocaleString() '2022/1/14 下午3:16:33'原创 2022-01-14 17:54:27 · 70 阅读 · 0 评论 -
一行内显示,不换行
限制旨在一行内显示,即使缩小屏幕也不会挤到下一行 ::v-deep .el-form-item__label { white-space: nowrap; }原创 2021-12-27 17:41:07 · 1063 阅读 · 0 评论 -
input自适应
父级设置百分百 子级设置30% 孙级设置79%原创 2021-12-27 17:38:43 · 90 阅读 · 0 评论 -
jnpm安装后显示不存在
解决方案: 打开 powerShell 用管理员身份运行 输入命令: Set-ExecutionPolicy Unrestricted -Scope CurrentUser 输入A 再输入 vue -V (搞定) 打开vscode还是不行,就在vscode中输入命令 Set-ExecutionPolicy Unrestricted -Scope CurrentUser 再运行 jnpm i 就可以了 ...原创 2021-11-19 17:28:03 · 350 阅读 · 0 评论