优化
This commit is contained in:
10
src/types.ts
10
src/types.ts
@@ -75,6 +75,10 @@ export interface TableCellData {
|
||||
textColor?: string;
|
||||
backgroundColor?: string;
|
||||
wordWrap?: boolean;
|
||||
/** 最大显示行数(横排为行、竖排为列);未设置或 0 表示不限制 */
|
||||
textMaxLines?: number;
|
||||
/** 超出最大行数时末行/末列显示省略号 */
|
||||
textEllipsis?: boolean;
|
||||
fontFamily?: 'sans' | 'serif' | 'mono';
|
||||
textFormat?: TextFormat;
|
||||
decimalPlaces?: number;
|
||||
@@ -116,6 +120,10 @@ export interface TemplateElement {
|
||||
verticalAlign?: 'top' | 'middle' | 'bottom';
|
||||
/** 是否自动换行,仅 type=text,默认 true */
|
||||
wordWrap?: boolean;
|
||||
/** 最大显示行数(横排为行、竖排为列);未设置或 0 表示不限制,仅 type=text */
|
||||
textMaxLines?: number;
|
||||
/** 超出最大行数时显示省略号,仅 type=text */
|
||||
textEllipsis?: boolean;
|
||||
/** 文本排列方向,仅 type=text,默认 horizontal */
|
||||
textWritingMode?: 'horizontal' | 'vertical';
|
||||
fontWeight: 'normal' | 'bold';
|
||||
@@ -145,6 +153,8 @@ export interface TemplateElement {
|
||||
paddingBottom?: number;
|
||||
paddingLeft?: number;
|
||||
locked?: boolean;
|
||||
/** 图层是否隐藏;隐藏后在预览、导出、打印及画布中均不显示 */
|
||||
hidden?: boolean;
|
||||
/** 图片缩放方式,仅 type=image 时有效 */
|
||||
imageFit?: 'contain' | 'cover' | 'fill';
|
||||
/** 默认图片 URL 或 data URI;主图加载失败时使用,仅 type=image 时有效 */
|
||||
|
||||
Reference in New Issue
Block a user