1
0
mirror of synced 2025-12-08 22:58:56 +08:00

fix: 输入框类型切换后值无法更新问题 #1588

This commit is contained in:
xuliangzhan
2021-12-06 21:04:51 +08:00
parent 6f27794b4d
commit d4173f35be
3 changed files with 7 additions and 3 deletions

1
.gitignore vendored
View File

@@ -1,4 +1,5 @@
.DS_Store
.history
node_modules
/dist
/es

View File

@@ -1,6 +1,6 @@
{
"name": "vxe-table",
"version": "4.1.16",
"version": "4.1.17-beta.0",
"description": "一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟列表、虚拟树、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、弹窗、自定义模板、渲染器、贼灵活的配置项、扩展接口等...",
"scripts": {
"serve": "vue-cli-service serve",

View File

@@ -2163,8 +2163,11 @@ export default defineComponent({
})
watch(computeDateLabelFormat, () => {
dateParseValue(reactData.datePanelValue)
reactData.inputValue = reactData.datePanelLabel
const isDatePickerType = computeIsDatePickerType.value
if (isDatePickerType) {
dateParseValue(reactData.datePanelValue)
reactData.inputValue = reactData.datePanelLabel
}
})
nextTick(() => {