From d3d1b6622dc08138e9f234e84ccf27a14b996746 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Mon, 1 Aug 2022 13:19:32 +0800 Subject: [PATCH] feat(gui-v2): add isPercent --- packages/nc-gui-v2/composables/useColumn.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/nc-gui-v2/composables/useColumn.ts b/packages/nc-gui-v2/composables/useColumn.ts index 9eb65f1195..f694981884 100644 --- a/packages/nc-gui-v2/composables/useColumn.ts +++ b/packages/nc-gui-v2/composables/useColumn.ts @@ -31,6 +31,7 @@ export default (column: ColumnType) => { const isRating = uiDatatype === UITypes.Rating const isCurrency = uiDatatype === 'Currency' const isDuration = uiDatatype === UITypes.Duration + const isPercent = uiDatatype === UITypes.Percent const isAutoSaved = [ UITypes.SingleLineText, UITypes.LongText, @@ -72,5 +73,6 @@ export default (column: ColumnType) => { isManualSaved, isSingleSelect, isMultiSelect, + isPercent, } }