Browse Source

feat: add isPercent

test/percent
Wing-Kam Wong 2 years ago
parent
commit
cbdd31ce1d
  1. 7
      packages/nc-gui/components/project/spreadsheet/mixins/cell.js

7
packages/nc-gui/components/project/spreadsheet/mixins/cell.js

@ -71,6 +71,9 @@ export default {
isDuration() { isDuration() {
return this.uiDatatype === UITypes.Duration return this.uiDatatype === UITypes.Duration
}, },
isPercent() {
return this.uiDatatype === UITypes.Percent
},
isAutoSaved() { isAutoSaved() {
return [ return [
UITypes.SingleLineText, UITypes.SingleLineText,
@ -79,7 +82,6 @@ export default {
UITypes.Email, UITypes.Email,
UITypes.URL, UITypes.URL,
UITypes.Number, UITypes.Number,
UITypes.Decimal,
UITypes.Percent, UITypes.Percent,
UITypes.Count, UITypes.Count,
UITypes.AutoNumber, UITypes.AutoNumber,
@ -92,7 +94,8 @@ export default {
UITypes.Currency, UITypes.Currency,
UITypes.Year, UITypes.Year,
UITypes.Time, UITypes.Time,
UITypes.Duration UITypes.Duration,
UITypes.Decimal
].includes(this.uiDatatype) ].includes(this.uiDatatype)
} }
} }

Loading…
Cancel
Save