ant-design / pro-components

🏆 Use Ant Design like a Pro!
https://pro-components.antdigital.dev
MIT License
4.3k stars 1.36k forks source link

🐛[BUG] ProTable filterType:'light'时,时间区间相关组件展示与valueType 不符合 #8453

Open faner11 opened 5 months ago

faner11 commented 5 months ago

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🐛 bug 描述

当我将valueType设为dateMonthRange时,选择弹窗回显是正常的 image 但是外一层回显就变成了yyyy-mm-dd image

📷 复现步骤

正常操作即可

🏞 期望结果

外一层回显展示与valueType一致

💻 复现代码

import { ProTable } from "@ant-design/pro-components";
import dayjs from "dayjs";

function App() {
  return (
    <>
      <ProTable
        search={{
          filterType: "light",
        }}
        columns={[
          {
            dataIndex: "dates",
            valueType: "dateMonthRange",
            // valueType: "dateQuarterRange",
            // valueType: "dateYearRange",
            // valueType: "dateWeekRange",
            hideInTable: true,
            initialValue: [dayjs().startOf("month"), dayjs().endOf("month")],
            fieldProps: {
              allowClear: false,
            },

          },
        ]}
      />
    </>
  );
}
export default App;

© 版本信息

🚑 其他信息

以下类型均有此问题 dateMonthRange dateQuarterRange dateYearRange dateWeekRange