-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
bugSomething isn't workingSomething isn't working
Description
(必填)请填写问题描述或截图:
按 文档 配置如下:
vxe-cloumn 属性配置 editRender: { name: 'ADatePicker', props: { type: 'date', format: 'YYYY/MM/DD' } }
vxe-table-plugin-antd/index.ts
Lines 203 to 211 in a5bd07d
| function getDatePickerCellValue (renderOpts: VxeGlobalRendererHandles.RenderOptions, params: VxeGlobalRendererHandles.RenderCellParams | VxeGlobalRendererHandles.ExportMethodParams, defaultFormat: string) { | |
| const { props = {} } = renderOpts | |
| const { row, column } = params | |
| let cellValue = XEUtils.get(row, column.property) | |
| if (cellValue) { | |
| cellValue = cellValue.format(props.format || defaultFormat) | |
| } | |
| return cellValue | |
| } |
传入值为 string 时,getDatePickerCellValue 中 cellValue.format 报错
(必填)请填在线链接:
https://jsrun.net/dr8Kp/edit
在 控制台可 查看报错信息
(必填)请填写期望的结果:
正常使用 ADatePicker
(必填)请填写以下信息:
- OS: Windows 10
- Browser: Chrome 91.0.4472.164
- vue: 3.2.2
- vxe-table: 4.0.25
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working