diff --git a/packages/nc-gui-v2/components/cell/YearPicker.vue b/packages/nc-gui-v2/components/cell/YearPicker.vue new file mode 100644 index 0000000000..3d07f68184 --- /dev/null +++ b/packages/nc-gui-v2/components/cell/YearPicker.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/packages/nc-gui-v2/components/smartsheet/Cell.vue b/packages/nc-gui-v2/components/smartsheet/Cell.vue index 28691fcdbb..78550bdf39 100644 --- a/packages/nc-gui-v2/components/smartsheet/Cell.vue +++ b/packages/nc-gui-v2/components/smartsheet/Cell.vue @@ -32,6 +32,7 @@ const { isEmail, isJSON, isDate, + isYear, isDateTime, isTime, isBoolean, @@ -175,6 +176,7 @@ todo : + diff --git a/packages/nc-gui-v2/composables/useColumn.ts b/packages/nc-gui-v2/composables/useColumn.ts index decddd5778..9eb65f1195 100644 --- a/packages/nc-gui-v2/composables/useColumn.ts +++ b/packages/nc-gui-v2/composables/useColumn.ts @@ -17,6 +17,7 @@ export default (column: ColumnType) => { const isInt = abstractType === 'integer' const isFloat = abstractType === 'float' const isDate = abstractType === 'date' || uiDatatype === 'Date' + const isYear = abstractType === 'year' || uiDatatype === 'Year' const isTime = abstractType === 'time' || uiDatatype === 'Time' const isDateTime = abstractType === 'datetime' || uiDatatype === 'DateTime' const isJSON = uiDatatype === 'JSON' @@ -55,6 +56,7 @@ export default (column: ColumnType) => { isInt, isFloat, isDate, + isYear, isTime, isDateTime, isJSON,