diff --git a/packages/nc-gui/components/cell/DateTimePicker.vue b/packages/nc-gui/components/cell/DateTimePicker.vue index 173c063f0b..8a350bb0e1 100644 --- a/packages/nc-gui/components/cell/DateTimePicker.vue +++ b/packages/nc-gui/components/cell/DateTimePicker.vue @@ -253,6 +253,7 @@ useSelectedCellKeyupListener(active, (e: KeyboardEvent) => { const cellClickHook = inject(CellClickHookInj, null) const cellClickHandler = () => { + if (readOnly.value) return open.value = (active.value || editable.value) && !open.value } diff --git a/packages/nc-gui/components/cell/ReadOnlyDateTimePicker.vue b/packages/nc-gui/components/cell/ReadOnlyDateTimePicker.vue new file mode 100644 index 0000000000..ab932dc039 --- /dev/null +++ b/packages/nc-gui/components/cell/ReadOnlyDateTimePicker.vue @@ -0,0 +1,22 @@ + + + diff --git a/packages/nc-gui/components/smartsheet/Form.vue b/packages/nc-gui/components/smartsheet/Form.vue index cf419aba6a..6a95516f8d 100644 --- a/packages/nc-gui/components/smartsheet/Form.vue +++ b/packages/nc-gui/components/smartsheet/Form.vue @@ -34,7 +34,16 @@ provide(IsGalleryInj, ref(false)) // todo: generate hideCols based on default values const hiddenCols = ['created_at', 'updated_at'] -const hiddenColTypes = [UITypes.Rollup, UITypes.Lookup, UITypes.Formula, UITypes.QrCode, UITypes.Barcode, UITypes.SpecificDBType] +const hiddenColTypes = [ + UITypes.Rollup, + UITypes.Lookup, + UITypes.Formula, + UITypes.QrCode, + UITypes.Barcode, + UITypes.SpecificDBType, + UITypes.CreatedTime, + UITypes.LastModifiedTime, +] const { isMobileMode, user } = useGlobal() diff --git a/packages/nc-gui/components/smartsheet/VirtualCell.vue b/packages/nc-gui/components/smartsheet/VirtualCell.vue index b3f55d4666..51a0a03a87 100644 --- a/packages/nc-gui/components/smartsheet/VirtualCell.vue +++ b/packages/nc-gui/components/smartsheet/VirtualCell.vue @@ -1,5 +1,6 @@