mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 09:14:27 +08:00
modify style
This commit is contained in:
@@ -68,10 +68,12 @@ const allDigitGroupingSymbolMap = {
|
|||||||
const allDigitGroupingType = {
|
const allDigitGroupingType = {
|
||||||
None: {
|
None: {
|
||||||
type: 1,
|
type: 1,
|
||||||
|
enabled: false,
|
||||||
name: 'None'
|
name: 'None'
|
||||||
},
|
},
|
||||||
ThousandsSeparator: {
|
ThousandsSeparator: {
|
||||||
type: 2,
|
type: 2,
|
||||||
|
enabled: true,
|
||||||
name: 'Thousands Separator'
|
name: 'Thousands Separator'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -726,6 +726,7 @@ function getAllDigitGroupingTypes(translateFn) {
|
|||||||
|
|
||||||
ret.push({
|
ret.push({
|
||||||
type: numeralConstants.defaultValue,
|
type: numeralConstants.defaultValue,
|
||||||
|
enabled: defaultDigitGroupingType.enabled,
|
||||||
displayName: `${translateFn('Language Default')} (${translateFn('numeral.' + defaultDigitGroupingType.name)})`
|
displayName: `${translateFn('Language Default')} (${translateFn('numeral.' + defaultDigitGroupingType.name)})`
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -734,6 +735,7 @@ function getAllDigitGroupingTypes(translateFn) {
|
|||||||
|
|
||||||
ret.push({
|
ret.push({
|
||||||
type: type.type,
|
type: type.type,
|
||||||
|
enabled: type.enabled,
|
||||||
displayName: translateFn('numeral.' + type.name)
|
displayName: translateFn('numeral.' + type.name)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -159,7 +159,11 @@
|
|||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
</v-card-text>
|
||||||
|
|
||||||
|
<v-divider />
|
||||||
|
|
||||||
|
<v-card-text>
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col cols="12" md="6">
|
<v-col cols="12" md="6">
|
||||||
<v-select
|
<v-select
|
||||||
@@ -213,7 +217,11 @@
|
|||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
</v-card-text>
|
||||||
|
|
||||||
|
<v-divider />
|
||||||
|
|
||||||
|
<v-card-text>
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col cols="12" md="6">
|
<v-col cols="12" md="6">
|
||||||
<v-select
|
<v-select
|
||||||
@@ -221,23 +229,10 @@
|
|||||||
item-value="type"
|
item-value="type"
|
||||||
persistent-placeholder
|
persistent-placeholder
|
||||||
:disabled="loading || saving"
|
:disabled="loading || saving"
|
||||||
:label="$t('Decimal Separator')"
|
:label="$t('Currency Display Mode')"
|
||||||
:placeholder="$t('Decimal Separator')"
|
:placeholder="$t('Currency Display Mode')"
|
||||||
:items="allDecimalSeparators"
|
:items="allCurrencyDisplayTypes"
|
||||||
v-model="newProfile.decimalSeparator"
|
v-model="newProfile.currencyDisplayType"
|
||||||
/>
|
|
||||||
</v-col>
|
|
||||||
|
|
||||||
<v-col cols="12" md="6">
|
|
||||||
<v-select
|
|
||||||
item-title="displayName"
|
|
||||||
item-value="type"
|
|
||||||
persistent-placeholder
|
|
||||||
:disabled="loading || saving"
|
|
||||||
:label="$t('Digit Grouping Symbol')"
|
|
||||||
:placeholder="$t('Digit Grouping Symbol')"
|
|
||||||
:items="allDigitGroupingSymbols"
|
|
||||||
v-model="newProfile.digitGroupingSymbol"
|
|
||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
@@ -259,14 +254,33 @@
|
|||||||
item-title="displayName"
|
item-title="displayName"
|
||||||
item-value="type"
|
item-value="type"
|
||||||
persistent-placeholder
|
persistent-placeholder
|
||||||
:disabled="loading || saving"
|
:disabled="loading || saving || !getNameByKeyValue(allDigitGroupingTypes, newProfile.digitGrouping, 'type', 'enabled')"
|
||||||
:label="$t('Currency Display Mode')"
|
:label="$t('Digit Grouping Symbol')"
|
||||||
:placeholder="$t('Currency Display Mode')"
|
:placeholder="$t('Digit Grouping Symbol')"
|
||||||
:items="allCurrencyDisplayTypes"
|
:items="allDigitGroupingSymbols"
|
||||||
v-model="newProfile.currencyDisplayType"
|
v-model="newProfile.digitGroupingSymbol"
|
||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
|
<v-col cols="12" md="6">
|
||||||
|
<v-select
|
||||||
|
item-title="displayName"
|
||||||
|
item-value="type"
|
||||||
|
persistent-placeholder
|
||||||
|
:disabled="loading || saving"
|
||||||
|
:label="$t('Decimal Separator')"
|
||||||
|
:placeholder="$t('Decimal Separator')"
|
||||||
|
:items="allDecimalSeparators"
|
||||||
|
v-model="newProfile.decimalSeparator"
|
||||||
|
/>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
</v-card-text>
|
||||||
|
|
||||||
|
<v-divider />
|
||||||
|
|
||||||
|
<v-card-text>
|
||||||
|
<v-row>
|
||||||
<v-col cols="12" md="6">
|
<v-col cols="12" md="6">
|
||||||
<v-select
|
<v-select
|
||||||
item-title="displayName"
|
item-title="displayName"
|
||||||
|
|||||||
@@ -25,14 +25,23 @@
|
|||||||
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="Default Language" title="Language" link="#"></f7-list-item>
|
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="Default Language" title="Language" link="#"></f7-list-item>
|
||||||
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="Default Currency" title="Currency" link="#"></f7-list-item>
|
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="Default Currency" title="Currency" link="#"></f7-list-item>
|
||||||
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="First Day of Week" title="Week Day" link="#"></f7-list-item>
|
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="First Day of Week" title="Week Day" link="#"></f7-list-item>
|
||||||
|
</f7-list>
|
||||||
|
|
||||||
|
<f7-list strong inset dividers class="margin-vertical skeleton-text" v-if="loading">
|
||||||
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="Long Date Format" title="YYYY-MM-DD" link="#"></f7-list-item>
|
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="Long Date Format" title="YYYY-MM-DD" link="#"></f7-list-item>
|
||||||
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="Short Date Format" title="YYYY-MM-DD" link="#"></f7-list-item>
|
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="Short Date Format" title="YYYY-MM-DD" link="#"></f7-list-item>
|
||||||
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="Long Time Format" title="HH:mm:ss" link="#"></f7-list-item>
|
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="Long Time Format" title="HH:mm:ss" link="#"></f7-list-item>
|
||||||
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="Short Time Format" title="HH:mm" link="#"></f7-list-item>
|
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="Short Time Format" title="HH:mm" link="#"></f7-list-item>
|
||||||
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="Decimal Separator" title="Dot (.)" link="#"></f7-list-item>
|
</f7-list>
|
||||||
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="Digit Grouping Symbol" title="Comma (,)" link="#"></f7-list-item>
|
|
||||||
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="Digit Grouping" title="Thousands Separator" link="#"></f7-list-item>
|
<f7-list strong inset dividers class="margin-vertical skeleton-text" v-if="loading">
|
||||||
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="Currency Display Mode" title="Currency Symbol" link="#"></f7-list-item>
|
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="Currency Display Mode" title="Currency Symbol" link="#"></f7-list-item>
|
||||||
|
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="Digit Grouping" title="Thousands Separator" link="#"></f7-list-item>
|
||||||
|
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="Digit Grouping Symbol" title="Comma (,)" link="#"></f7-list-item>
|
||||||
|
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="Decimal Separator" title="Dot (.)" link="#"></f7-list-item>
|
||||||
|
</f7-list>
|
||||||
|
|
||||||
|
<f7-list strong inset dividers class="margin-vertical skeleton-text" v-if="loading">
|
||||||
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="Expense Amount Color" title="Amount Color" link="#"></f7-list-item>
|
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="Expense Amount Color" title="Amount Color" link="#"></f7-list-item>
|
||||||
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="Income Amount Color" title="Amount Color" link="#"></f7-list-item>
|
<f7-list-item class="list-item-with-header-and-title list-item-no-item-after" header="Income Amount Color" title="Amount Color" link="#"></f7-list-item>
|
||||||
</f7-list>
|
</f7-list>
|
||||||
@@ -159,7 +168,9 @@
|
|||||||
v-for="weekDay in allWeekDays">{{ weekDay.displayName }}</option>
|
v-for="weekDay in allWeekDays">{{ weekDay.displayName }}</option>
|
||||||
</select>
|
</select>
|
||||||
</f7-list-item>
|
</f7-list-item>
|
||||||
|
</f7-list>
|
||||||
|
|
||||||
|
<f7-list form strong inset dividers class="margin-vertical" v-if="!loading">
|
||||||
<f7-list-item
|
<f7-list-item
|
||||||
class="list-item-with-header-and-title list-item-no-item-after"
|
class="list-item-with-header-and-title list-item-no-item-after"
|
||||||
:header="$t('Long Date Format')"
|
:header="$t('Long Date Format')"
|
||||||
@@ -211,30 +222,19 @@
|
|||||||
v-for="format in allShortTimeFormats">{{ format.displayName }}</option>
|
v-for="format in allShortTimeFormats">{{ format.displayName }}</option>
|
||||||
</select>
|
</select>
|
||||||
</f7-list-item>
|
</f7-list-item>
|
||||||
|
</f7-list>
|
||||||
|
|
||||||
|
<f7-list form strong inset dividers class="margin-vertical" v-if="!loading">
|
||||||
<f7-list-item
|
<f7-list-item
|
||||||
class="list-item-with-header-and-title list-item-no-item-after"
|
class="list-item-with-header-and-title list-item-no-item-after"
|
||||||
:header="$t('Decimal Separator')"
|
:header="$t('Currency Display Mode')"
|
||||||
:title="getNameByKeyValue(allDecimalSeparators, newProfile.decimalSeparator, 'type', 'displayName')"
|
:title="getNameByKeyValue(allCurrencyDisplayTypes, newProfile.currencyDisplayType, 'type', 'displayName')"
|
||||||
smart-select :smart-select-params="{ openIn: 'popup', popupPush: true, closeOnSelect: true, scrollToSelectedItem: true, searchbar: true, searchbarPlaceholder: $t('Decimal Separator'), searchbarDisableText: $t('Cancel'), appendSearchbarNotFound: $t('No results'), pageTitle: $t('Decimal Separator'), popupCloseLinkText: $t('Done') }"
|
smart-select :smart-select-params="{ openIn: 'popup', popupPush: true, closeOnSelect: true, scrollToSelectedItem: true, searchbar: true, searchbarPlaceholder: $t('Currency Display Mode'), searchbarDisableText: $t('Cancel'), appendSearchbarNotFound: $t('No results'), pageTitle: $t('Currency Display Mode'), popupCloseLinkText: $t('Done') }"
|
||||||
>
|
>
|
||||||
<select v-model="newProfile.decimalSeparator">
|
<select v-model="newProfile.currencyDisplayType">
|
||||||
<option :value="format.type"
|
<option :value="format.type"
|
||||||
:key="format.type"
|
:key="format.type"
|
||||||
v-for="format in allDecimalSeparators">{{ format.displayName }}</option>
|
v-for="format in allCurrencyDisplayTypes">{{ format.displayName }}</option>
|
||||||
</select>
|
|
||||||
</f7-list-item>
|
|
||||||
|
|
||||||
<f7-list-item
|
|
||||||
class="list-item-with-header-and-title list-item-no-item-after"
|
|
||||||
:header="$t('Digit Grouping Symbol')"
|
|
||||||
:title="getNameByKeyValue(allDigitGroupingSymbols, newProfile.digitGroupingSymbol, 'type', 'displayName')"
|
|
||||||
smart-select :smart-select-params="{ openIn: 'popup', popupPush: true, closeOnSelect: true, scrollToSelectedItem: true, searchbar: true, searchbarPlaceholder: $t('Digit Grouping Symbol'), searchbarDisableText: $t('Cancel'), appendSearchbarNotFound: $t('No results'), pageTitle: $t('Digit Grouping Symbol'), popupCloseLinkText: $t('Done') }"
|
|
||||||
>
|
|
||||||
<select v-model="newProfile.digitGroupingSymbol">
|
|
||||||
<option :value="format.type"
|
|
||||||
:key="format.type"
|
|
||||||
v-for="format in allDigitGroupingSymbols">{{ format.displayName }}</option>
|
|
||||||
</select>
|
</select>
|
||||||
</f7-list-item>
|
</f7-list-item>
|
||||||
|
|
||||||
@@ -253,17 +253,33 @@
|
|||||||
|
|
||||||
<f7-list-item
|
<f7-list-item
|
||||||
class="list-item-with-header-and-title list-item-no-item-after"
|
class="list-item-with-header-and-title list-item-no-item-after"
|
||||||
:header="$t('Currency Display Mode')"
|
:disabled="!getNameByKeyValue(allDigitGroupingTypes, newProfile.digitGrouping, 'type', 'enabled')"
|
||||||
:title="getNameByKeyValue(allCurrencyDisplayTypes, newProfile.currencyDisplayType, 'type', 'displayName')"
|
:header="$t('Digit Grouping Symbol')"
|
||||||
smart-select :smart-select-params="{ openIn: 'popup', popupPush: true, closeOnSelect: true, scrollToSelectedItem: true, searchbar: true, searchbarPlaceholder: $t('Currency Display Mode'), searchbarDisableText: $t('Cancel'), appendSearchbarNotFound: $t('No results'), pageTitle: $t('Currency Display Mode'), popupCloseLinkText: $t('Done') }"
|
:title="getNameByKeyValue(allDigitGroupingSymbols, newProfile.digitGroupingSymbol, 'type', 'displayName')"
|
||||||
|
smart-select :smart-select-params="{ openIn: 'popup', popupPush: true, closeOnSelect: true, scrollToSelectedItem: true, searchbar: true, searchbarPlaceholder: $t('Digit Grouping Symbol'), searchbarDisableText: $t('Cancel'), appendSearchbarNotFound: $t('No results'), pageTitle: $t('Digit Grouping Symbol'), popupCloseLinkText: $t('Done') }"
|
||||||
>
|
>
|
||||||
<select v-model="newProfile.currencyDisplayType">
|
<select v-model="newProfile.digitGroupingSymbol">
|
||||||
<option :value="format.type"
|
<option :value="format.type"
|
||||||
:key="format.type"
|
:key="format.type"
|
||||||
v-for="format in allCurrencyDisplayTypes">{{ format.displayName }}</option>
|
v-for="format in allDigitGroupingSymbols">{{ format.displayName }}</option>
|
||||||
</select>
|
</select>
|
||||||
</f7-list-item>
|
</f7-list-item>
|
||||||
|
|
||||||
|
<f7-list-item
|
||||||
|
class="list-item-with-header-and-title list-item-no-item-after"
|
||||||
|
:header="$t('Decimal Separator')"
|
||||||
|
:title="getNameByKeyValue(allDecimalSeparators, newProfile.decimalSeparator, 'type', 'displayName')"
|
||||||
|
smart-select :smart-select-params="{ openIn: 'popup', popupPush: true, closeOnSelect: true, scrollToSelectedItem: true, searchbar: true, searchbarPlaceholder: $t('Decimal Separator'), searchbarDisableText: $t('Cancel'), appendSearchbarNotFound: $t('No results'), pageTitle: $t('Decimal Separator'), popupCloseLinkText: $t('Done') }"
|
||||||
|
>
|
||||||
|
<select v-model="newProfile.decimalSeparator">
|
||||||
|
<option :value="format.type"
|
||||||
|
:key="format.type"
|
||||||
|
v-for="format in allDecimalSeparators">{{ format.displayName }}</option>
|
||||||
|
</select>
|
||||||
|
</f7-list-item>
|
||||||
|
</f7-list>
|
||||||
|
|
||||||
|
<f7-list form strong inset dividers class="margin-vertical" v-if="!loading">
|
||||||
<f7-list-item
|
<f7-list-item
|
||||||
class="list-item-with-header-and-title list-item-no-item-after"
|
class="list-item-with-header-and-title list-item-no-item-after"
|
||||||
:header="$t('Expense Amount Color')"
|
:header="$t('Expense Amount Color')"
|
||||||
|
|||||||
Reference in New Issue
Block a user