add thousands separator

This commit is contained in:
MaysWind
2020-11-10 00:46:58 +08:00
parent 66c71344da
commit a204b647be
5 changed files with 40 additions and 3 deletions
+12
View File
@@ -19,6 +19,10 @@
:value="locale">{{ lang.displayName }}</option>
</select>
</f7-list-item>
<f7-list-item>
<span>{{ $t('Enable Thousands Separator') }}</span>
<f7-toggle :checked="isEnableThousandsSeparator" @toggle:change="isEnableThousandsSeparator = $event"></f7-toggle>
</f7-list-item>
<f7-list-item
:title="$t('Currency Display Mode')"
smart-select :smart-select-params="{ openIn: 'sheet', closeOnSelect: true, sheetCloseLinkText: $t('Done') }">
@@ -67,6 +71,14 @@ export default {
this.$setLanguage(value);
}
},
isEnableThousandsSeparator: {
get: function () {
return this.$settings.isEnableThousandsSeparator();
},
set: function (value) {
this.$settings.setEnableThousandsSeparator(value);
}
},
currencyDisplayMode: {
get: function () {
return this.$settings.getCurrencyDisplayMode();