|
@@ -6,6 +6,7 @@
|
|
|
:showTime="isDatetime"
|
|
|
dropdownClassName="j-vxe-date-picker"
|
|
|
style="min-width: 0"
|
|
|
+ v-model:open="openPicker"
|
|
|
v-bind="cellProps"
|
|
|
@change="handleChange"
|
|
|
/>
|
|
@@ -14,7 +15,6 @@
|
|
|
<script lang="ts">
|
|
|
import { ref, computed, watch, defineComponent } from 'vue';
|
|
|
import dayjs from 'dayjs';
|
|
|
- import { dispatchEvent } from '/@/components/jeecg/JVxeTable/utils';
|
|
|
import { JVxeComponent, JVxeTypes } from '/@/components/jeecg/JVxeTable/types';
|
|
|
import { useJVxeComponent, useJVxeCompProps } from '/@/components/jeecg/JVxeTable/hooks';
|
|
|
import { isEmpty } from '/@/utils/is';
|
|
@@ -30,6 +30,7 @@
|
|
|
let format = originColumn.value.format;
|
|
|
return format ? format : isDatetime.value ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD';
|
|
|
});
|
|
|
+ const openPicker = ref(true);
|
|
|
watch(
|
|
|
innerValue,
|
|
|
(val) => {
|
|
@@ -51,24 +52,13 @@
|
|
|
isDatetime,
|
|
|
dateFormat,
|
|
|
innerDateValue,
|
|
|
+ openPicker,
|
|
|
handleChange,
|
|
|
};
|
|
|
},
|
|
|
// 【组件增强】注释详见:JVxeComponent.Enhanced
|
|
|
enhanced: {
|
|
|
aopEvents: {
|
|
|
- editActived({ $event, row, column }) {
|
|
|
- dispatchEvent({
|
|
|
- $event,
|
|
|
- row,
|
|
|
- column,
|
|
|
- props: this.props,
|
|
|
- instance: this,
|
|
|
- className: '.ant-calendar-picker',
|
|
|
- isClick: false,
|
|
|
- handler: (el) => el.children[0].click(),
|
|
|
- });
|
|
|
- },
|
|
|
},
|
|
|
} as JVxeComponent.EnhancedPartial,
|
|
|
});
|