feat: add page number format option
This commit is contained in:
@@ -1,10 +1,18 @@
|
||||
import { IPageNumber } from '../../interface/PageNumber'
|
||||
import { NumberType } from '../enum/Common'
|
||||
import { RowFlex } from '../enum/Row'
|
||||
|
||||
export const FORMAT_PLACEHOLDER = {
|
||||
PAGE_NO: '{pageNo}',
|
||||
PAGE_COUNT: '{pageCount}'
|
||||
}
|
||||
|
||||
export const defaultPageNumberOption: Readonly<Required<IPageNumber>> = {
|
||||
bottom: 60,
|
||||
size: 12,
|
||||
font: 'Yahei',
|
||||
color: '#000000',
|
||||
rowFlex: RowFlex.CENTER
|
||||
rowFlex: RowFlex.CENTER,
|
||||
format: FORMAT_PLACEHOLDER.PAGE_NO,
|
||||
numberType: NumberType.ARABIC
|
||||
}
|
||||
@@ -2,4 +2,9 @@ export enum MaxHeightRatio {
|
||||
HALF = 'half',
|
||||
ONE_THIRD = 'one-third',
|
||||
QUARTER = 'quarter'
|
||||
}
|
||||
|
||||
export enum NumberType {
|
||||
ARABIC = 'arabic',
|
||||
CHINESE = 'chinese'
|
||||
}
|
||||
Reference in New Issue
Block a user