去掉el-date-picker弹窗默认回显当前月份的方法

打开日期弹窗,默认会显示当前月份,如图在这里插入图片描述
会发现加了穿透::v-deep 样式也不生效

.el-month-table .today .cell {
		color: pink;
		font-weight: 400;
	}

要让 popper-class=“xclass” :append-to-body=“false” 这俩配合着使用
在这里插入图片描述
注意这时候弹窗会挪动到屏幕右下角 ,加上left和 top 即可 ,代码如下:

<el-date-picker v-model="month" value-format="yyyy-MM" type="month" popper-class="dataClass" :append-to-body="false"></el-date-picker>

::v-deep .xclass {
	left: 100px !important;
	top: 60px !important;
	.el-month-table .today .cell {
		color: #56575a;
		font-weight: 400;
	}
}

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-04-15 07:46:03       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-04-15 07:46:03       106 阅读
  3. 在Django里面运行非项目文件

    2024-04-15 07:46:03       87 阅读
  4. Python语言-面向对象

    2024-04-15 07:46:03       96 阅读

热门阅读

  1. python递归统计文件夹下pdf文件的数量

    2024-04-15 07:46:03       37 阅读
  2. LeetCode1题:两数之和(python3)

    2024-04-15 07:46:03       43 阅读
  3. transformer上手(5) —— 必要的 Pytorch 知识

    2024-04-15 07:46:03       34 阅读
  4. LINUX【网络编程】UDP程序绑定发送主机IP及端口

    2024-04-15 07:46:03       36 阅读
  5. 【计算机网络】(一)计算机网络概述

    2024-04-15 07:46:03       34 阅读
  6. excel表导入导出

    2024-04-15 07:46:03       38 阅读