Commit aab13fe7 authored by 邓超's avatar 邓超

fix: 修改月份下拉适配

parent d8a0f2d2
Pipeline #65698 passed with stages
...@@ -323,7 +323,14 @@ const Holidays = () => { ...@@ -323,7 +323,14 @@ const Holidays = () => {
dropdownMatchSelectWidth={false} dropdownMatchSelectWidth={false}
className="my-year-select" className="my-year-select"
value={year} 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 => { onChange={newYear => {
console.log(newYear); console.log(newYear);
const now = value.clone().year(newYear); const now = value.clone().year(newYear);
...@@ -357,6 +364,14 @@ const Holidays = () => { ...@@ -357,6 +364,14 @@ const Holidays = () => {
<Select <Select
style={{ margin: '0 5px', width: '80px' }} style={{ margin: '0 5px', width: '80px' }}
dropdownMatchSelectWidth={false} 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} value={month}
onChange={newMonth => { onChange={newMonth => {
console.log(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