From cbdd31ce1daa4f08f9d006fccc361680c6101b5b Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 5 Jul 2022 19:15:08 +0800 Subject: [PATCH] feat: add isPercent --- .../nc-gui/components/project/spreadsheet/mixins/cell.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/project/spreadsheet/mixins/cell.js b/packages/nc-gui/components/project/spreadsheet/mixins/cell.js index a74521150f..7a9474ba91 100644 --- a/packages/nc-gui/components/project/spreadsheet/mixins/cell.js +++ b/packages/nc-gui/components/project/spreadsheet/mixins/cell.js @@ -71,6 +71,9 @@ export default { isDuration() { return this.uiDatatype === UITypes.Duration }, + isPercent() { + return this.uiDatatype === UITypes.Percent + }, isAutoSaved() { return [ UITypes.SingleLineText, @@ -79,7 +82,6 @@ export default { UITypes.Email, UITypes.URL, UITypes.Number, - UITypes.Decimal, UITypes.Percent, UITypes.Count, UITypes.AutoNumber, @@ -92,7 +94,8 @@ export default { UITypes.Currency, UITypes.Year, UITypes.Time, - UITypes.Duration + UITypes.Duration, + UITypes.Decimal ].includes(this.uiDatatype) } }