Commit aab13fe7 authored by 邓超's avatar 邓超

fix: 修改月份下拉适配

parent d8a0f2d2
Pipeline #65698 passed with stages
......@@ -323,7 +323,14 @@ const Holidays = () => {
dropdownMatchSelectWidth={false}
className="my-year-select"
value={year}
defaultOpen
onDropdownVisibleChange={() => {
setTimeout(() => {
console.log(document.querySelectorAll('.ant-select-dropdown'));
document.querySelectorAll('.ant-select-dropdown').forEach(ele => {
ele.style.zoom = size.width / 1920;
});
}, 0);
}}
onChange={newYear => {
console.log(newYear);
const now = value.clone().year(newYear);
......@@ -357,6 +364,14 @@ const Holidays = () => {
<Select
style={{ margin: '0 5px', width: '80px' }}
dropdownMatchSelectWidth={false}
onDropdownVisibleChange={() => {
setTimeout(() => {
console.log(document.querySelectorAll('.ant-select-dropdown'));
document.querySelectorAll('.ant-select-dropdown').forEach(ele => {
ele.style.zoom = size.width / 1920;
});
}, 0);
}}
value={month}
onChange={newMonth => {
console.log(newMonth);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment