@ng-nest/ui 12.0.10 → 12.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/alert/alert.component.d.ts +2 -1
  2. package/bundles/ng-nest-ui-alert.umd.js +6 -1
  3. package/bundles/ng-nest-ui-alert.umd.js.map +1 -1
  4. package/bundles/ng-nest-ui-carousel.umd.js +10 -10
  5. package/bundles/ng-nest-ui-carousel.umd.js.map +1 -1
  6. package/bundles/ng-nest-ui-core.umd.js.map +1 -1
  7. package/bundles/ng-nest-ui-dialog.umd.js +284 -32
  8. package/bundles/ng-nest-ui-dialog.umd.js.map +1 -1
  9. package/bundles/ng-nest-ui-drawer.umd.js +245 -14
  10. package/bundles/ng-nest-ui-drawer.umd.js.map +1 -1
  11. package/bundles/ng-nest-ui-find.umd.js +27 -3
  12. package/bundles/ng-nest-ui-find.umd.js.map +1 -1
  13. package/bundles/ng-nest-ui-input.umd.js +2 -1
  14. package/bundles/ng-nest-ui-input.umd.js.map +1 -1
  15. package/bundles/ng-nest-ui-menu.umd.js +1 -1
  16. package/bundles/ng-nest-ui-menu.umd.js.map +1 -1
  17. package/bundles/ng-nest-ui-message.umd.js +52 -16
  18. package/bundles/ng-nest-ui-message.umd.js.map +1 -1
  19. package/bundles/ng-nest-ui-popconfirm.umd.js +33 -4
  20. package/bundles/ng-nest-ui-popconfirm.umd.js.map +1 -1
  21. package/bundles/ng-nest-ui-popover.umd.js +13 -2
  22. package/bundles/ng-nest-ui-popover.umd.js.map +1 -1
  23. package/bundles/ng-nest-ui-portal.umd.js +8 -8
  24. package/bundles/ng-nest-ui-portal.umd.js.map +1 -1
  25. package/bundles/ng-nest-ui-progress.umd.js +235 -20
  26. package/bundles/ng-nest-ui-progress.umd.js.map +1 -1
  27. package/bundles/ng-nest-ui-select.umd.js +1 -1
  28. package/bundles/ng-nest-ui-steps.umd.js +19 -7
  29. package/bundles/ng-nest-ui-steps.umd.js.map +1 -1
  30. package/bundles/ng-nest-ui-table.umd.js +9 -5
  31. package/bundles/ng-nest-ui-table.umd.js.map +1 -1
  32. package/carousel/carousel-panel.component.d.ts +2 -3
  33. package/core/config/config.d.ts +7 -0
  34. package/core/interfaces/layout.type.d.ts +1 -1
  35. package/dialog/dialog-container.component.d.ts +18 -0
  36. package/dialog/dialog-container.directives.d.ts +24 -0
  37. package/dialog/dialog-ref.d.ts +9 -0
  38. package/dialog/dialog.module.d.ts +13 -11
  39. package/dialog/dialog.property.d.ts +84 -6
  40. package/dialog/dialog.service.d.ts +19 -0
  41. package/dialog/public-api.d.ts +4 -0
  42. package/drawer/drawer-container.component.d.ts +18 -0
  43. package/drawer/drawer-container.directives.d.ts +19 -0
  44. package/drawer/drawer-ref.d.ts +9 -0
  45. package/drawer/drawer.module.d.ts +8 -6
  46. package/drawer/drawer.property.d.ts +83 -2
  47. package/drawer/drawer.service.d.ts +19 -0
  48. package/drawer/public-api.d.ts +5 -0
  49. package/esm2015/alert/alert.component.js +8 -3
  50. package/esm2015/carousel/carousel-panel.component.js +12 -11
  51. package/esm2015/core/config/config.js +1 -1
  52. package/esm2015/core/interfaces/layout.type.js +1 -1
  53. package/esm2015/dialog/dialog-container.component.js +59 -0
  54. package/esm2015/dialog/dialog-container.directives.js +73 -0
  55. package/esm2015/dialog/dialog-ref.js +17 -0
  56. package/esm2015/dialog/dialog.component.js +2 -2
  57. package/esm2015/dialog/dialog.module.js +37 -7
  58. package/esm2015/dialog/dialog.property.js +17 -16
  59. package/esm2015/dialog/dialog.service.js +67 -0
  60. package/esm2015/dialog/public-api.js +5 -1
  61. package/esm2015/drawer/drawer-container.component.js +59 -0
  62. package/esm2015/drawer/drawer-container.directives.js +57 -0
  63. package/esm2015/drawer/drawer-ref.js +17 -0
  64. package/esm2015/drawer/drawer.component.js +2 -2
  65. package/esm2015/drawer/drawer.module.js +22 -6
  66. package/esm2015/drawer/drawer.property.js +22 -6
  67. package/esm2015/drawer/drawer.service.js +65 -0
  68. package/esm2015/drawer/public-api.js +6 -1
  69. package/esm2015/find/find.component.js +12 -3
  70. package/esm2015/find/find.property.js +18 -2
  71. package/esm2015/input/input.component.js +3 -2
  72. package/esm2015/menu/menu.component.js +2 -2
  73. package/esm2015/message/message-ref.js +12 -0
  74. package/esm2015/message/message.component.js +3 -3
  75. package/esm2015/message/message.property.js +2 -2
  76. package/esm2015/message/message.service.js +37 -15
  77. package/esm2015/message/public-api.js +2 -1
  78. package/esm2015/popconfirm/popconfirm.component.js +25 -4
  79. package/esm2015/popconfirm/popconfirm.property.js +10 -3
  80. package/esm2015/popover/popover.directive.js +8 -2
  81. package/esm2015/popover/popover.property.js +7 -2
  82. package/esm2015/portal/portal.module.js +4 -3
  83. package/esm2015/portal/portal.service.js +8 -9
  84. package/esm2015/progress/progress.component.js +177 -15
  85. package/esm2015/progress/progress.property.js +50 -3
  86. package/esm2015/select/select.component.js +1 -1
  87. package/esm2015/steps/steps.component.js +14 -7
  88. package/esm2015/steps/steps.property.js +8 -3
  89. package/esm2015/table/table-body.component.js +3 -3
  90. package/esm2015/table/table.component.js +2 -2
  91. package/esm2015/table/table.property.js +7 -3
  92. package/fesm2015/ng-nest-ui-alert.js +7 -2
  93. package/fesm2015/ng-nest-ui-alert.js.map +1 -1
  94. package/fesm2015/ng-nest-ui-carousel.js +9 -9
  95. package/fesm2015/ng-nest-ui-carousel.js.map +1 -1
  96. package/fesm2015/ng-nest-ui-core.js.map +1 -1
  97. package/fesm2015/ng-nest-ui-dialog.js +254 -25
  98. package/fesm2015/ng-nest-ui-dialog.js.map +1 -1
  99. package/fesm2015/ng-nest-ui-drawer.js +224 -13
  100. package/fesm2015/ng-nest-ui-drawer.js.map +1 -1
  101. package/fesm2015/ng-nest-ui-find.js +28 -3
  102. package/fesm2015/ng-nest-ui-find.js.map +1 -1
  103. package/fesm2015/ng-nest-ui-input.js +2 -1
  104. package/fesm2015/ng-nest-ui-input.js.map +1 -1
  105. package/fesm2015/ng-nest-ui-menu.js +1 -1
  106. package/fesm2015/ng-nest-ui-menu.js.map +1 -1
  107. package/fesm2015/ng-nest-ui-message.js +50 -17
  108. package/fesm2015/ng-nest-ui-message.js.map +1 -1
  109. package/fesm2015/ng-nest-ui-popconfirm.js +33 -5
  110. package/fesm2015/ng-nest-ui-popconfirm.js.map +1 -1
  111. package/fesm2015/ng-nest-ui-popover.js +13 -2
  112. package/fesm2015/ng-nest-ui-popover.js.map +1 -1
  113. package/fesm2015/ng-nest-ui-portal.js +10 -10
  114. package/fesm2015/ng-nest-ui-portal.js.map +1 -1
  115. package/fesm2015/ng-nest-ui-progress.js +225 -17
  116. package/fesm2015/ng-nest-ui-progress.js.map +1 -1
  117. package/fesm2015/ng-nest-ui-select.js +1 -1
  118. package/fesm2015/ng-nest-ui-steps.js +20 -8
  119. package/fesm2015/ng-nest-ui-steps.js.map +1 -1
  120. package/fesm2015/ng-nest-ui-table.js +9 -5
  121. package/fesm2015/ng-nest-ui-table.js.map +1 -1
  122. package/find/find.property.d.ts +31 -1
  123. package/message/message-ref.d.ts +8 -0
  124. package/message/message.component.d.ts +3 -3
  125. package/message/message.property.d.ts +24 -4
  126. package/message/message.service.d.ts +4 -1
  127. package/message/public-api.d.ts +1 -0
  128. package/package.json +1 -1
  129. package/popconfirm/popconfirm.component.d.ts +6 -2
  130. package/popconfirm/popconfirm.property.d.ts +13 -2
  131. package/popover/popover.property.d.ts +6 -1
  132. package/portal/portal.module.d.ts +1 -1
  133. package/portal/portal.service.d.ts +2 -3
  134. package/progress/progress.component.d.ts +31 -3
  135. package/progress/progress.property.d.ts +80 -5
  136. package/steps/steps.property.d.ts +7 -2
  137. package/table/table.property.d.ts +24 -3
@@ -46,13 +46,18 @@ export declare class XPopoverProperty extends XProperty {
46
46
  * @en_US Show/hide control
47
47
  */
48
48
  visible?: XBoolean;
49
+ /**
50
+ * @zh_CN 条件触发
51
+ * @en_US condition trigger
52
+ */
53
+ condition?: XBoolean;
49
54
  /**
50
55
  * @zh_CN 显示/隐藏改变的事件
51
56
  * @en_US Show/hide changed events
52
57
  */
53
58
  visibleChange: EventEmitter<XBoolean>;
54
59
  static ɵfac: i0.ɵɵFactoryDeclaration<XPopoverProperty, never>;
55
- static ɵdir: i0.ɵɵDirectiveDeclaration<XPopoverProperty, "[x-popover], x-popover", never, { "title": "title"; "content": "content"; "footer": "footer"; "placement": "placement"; "trigger": "trigger"; "width": "width"; "visible": "visible"; }, { "visibleChange": "visibleChange"; }, never>;
60
+ static ɵdir: i0.ɵɵDirectiveDeclaration<XPopoverProperty, "[x-popover], x-popover", never, { "title": "title"; "content": "content"; "footer": "footer"; "placement": "placement"; "trigger": "trigger"; "width": "width"; "visible": "visible"; "condition": "condition"; }, { "visibleChange": "visibleChange"; }, never>;
56
61
  }
57
62
  /**
58
63
  * @zh_CN 激活方式
@@ -3,6 +3,6 @@ import * as i1 from "@angular/cdk/overlay";
3
3
  import * as i2 from "@angular/cdk/portal";
4
4
  export declare class XPortalModule {
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<XPortalModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<XPortalModule, never, [typeof i1.OverlayModule, typeof i2.PortalModule], never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<XPortalModule, never, [typeof i1.OverlayModule, typeof i2.PortalModule], [typeof i1.OverlayModule, typeof i2.PortalModule]>;
7
7
  static ɵinj: i0.ɵɵInjectorDeclaration<XPortalModule>;
8
8
  }
@@ -1,6 +1,5 @@
1
- import { Injector, InjectionToken, ElementRef } from '@angular/core';
1
+ import { Injector, ElementRef, ViewContainerRef, StaticProvider } from '@angular/core';
2
2
  import { Overlay, OverlayRef, PositionStrategy, ConnectedPosition } from '@angular/cdk/overlay';
3
- import { PortalInjector } from '@angular/cdk/portal';
4
3
  import { XPortalProperty, XPortalOverlayRef } from './portal.property';
5
4
  import { XPlacement, XPosition, XPlace } from '@ng-nest/ui/core';
6
5
  import * as i0 from "@angular/core";
@@ -12,7 +11,7 @@ export declare class XPortalService {
12
11
  injector: Injector;
13
12
  constructor(overlay: Overlay, injector: Injector);
14
13
  attach<T>(option: XPortalProperty): XPortalOverlayRef<T>;
15
- createInjector(data: any, token: InjectionToken<any>): PortalInjector;
14
+ createInjector(providers: StaticProvider[], viewContainerRef?: ViewContainerRef): Injector;
16
15
  setPlacement(param?: {
17
16
  elementRef?: ElementRef;
18
17
  placement?: XPlace[] | XPlacement[];
@@ -1,19 +1,47 @@
1
- import { OnInit, Renderer2, ElementRef, ChangeDetectorRef, SimpleChanges, OnChanges } from '@angular/core';
1
+ import { Renderer2, ElementRef, ChangeDetectorRef, SimpleChanges, OnChanges } from '@angular/core';
2
2
  import { XProgressProperty } from './progress.property';
3
3
  import { XNumber, XConfigService } from '@ng-nest/ui/core';
4
4
  import * as i0 from "@angular/core";
5
- export declare class XProgressComponent extends XProgressProperty implements OnInit, OnChanges {
5
+ export declare class XProgressComponent extends XProgressProperty implements OnChanges {
6
6
  renderer: Renderer2;
7
7
  elementRef: ElementRef;
8
8
  cdr: ChangeDetectorRef;
9
9
  configService: XConfigService;
10
10
  currentColor: string;
11
+ linearGradient: string;
12
+ stepsArray: Array<boolean>;
13
+ circleClipPath: string;
14
+ dashboardClipPath: string;
15
+ dashboardRailClipPath: string;
16
+ subLinearGradient: string;
17
+ get maskWidth(): number;
11
18
  constructor(renderer: Renderer2, elementRef: ElementRef, cdr: ChangeDetectorRef, configService: XConfigService);
12
- ngOnInit(): void;
13
19
  ngOnChanges(simples: SimpleChanges): void;
14
20
  setClassMap(): void;
15
21
  setColor(): void;
16
22
  getLevelColor(percent: XNumber): string;
23
+ setGradient(): void;
24
+ sortGradient(percents: {
25
+ [percent: string]: string;
26
+ }): {
27
+ key: number;
28
+ value: string;
29
+ }[];
30
+ setSubLinearGradient(): void;
31
+ setSteps(): void;
32
+ setType(): void;
33
+ /**
34
+ * circle �е� 100% ���� clip-path �е� 400%
35
+ */
36
+ setCircleClipPath(): void;
37
+ /**
38
+ *
39
+ * 90 polygon(50% 50%, 0% 100%, 0% 0%, 100% 0%, 100% 100%);
40
+ * 180 polygon(50% 50%, 0% 50%, 0% 0%, 100% 0%, 100% 50%);
41
+ * 270 polygon(50% 50%, 0% 0%, 100% 0%);
42
+ */
43
+ setDashboardClipPath(): void;
44
+ setCircleClipPathValue(start: string, railValue: number): void;
17
45
  onFormat(percent: XNumber): any;
18
46
  static ɵfac: i0.ɵɵFactoryDeclaration<XProgressComponent, never>;
19
47
  static ɵcmp: i0.ɵɵComponentDeclaration<XProgressComponent, "x-progress", never, {}, {}, never, never>;
@@ -10,6 +10,11 @@ export declare const XProgressPrefix = "x-progress";
10
10
  * Progress Property
11
11
  */
12
12
  export declare class XProgressProperty extends XProperty {
13
+ /**
14
+ * @zh_CN 进度条类型
15
+ * @en_US Progress bar type
16
+ */
17
+ type: XProgressType;
13
18
  /**
14
19
  * @zh_CN 显示进度 0-100
15
20
  * @en_US Show progress 0-100
@@ -44,20 +49,90 @@ export declare class XProgressProperty extends XProperty {
44
49
  * @zh_CN 自定义颜色
45
50
  * @en_US Custom color
46
51
  */
47
- color?: string | {
48
- color: string;
49
- percent: number;
50
- }[] | Function;
52
+ color?: XProgressColor;
53
+ /**
54
+ * @zh_CN 渐变颜色
55
+ * @en_US Gradient color
56
+ */
57
+ gradient?: XProgressGradient;
58
+ /**
59
+ * @zh_CN 步骤进度条
60
+ * @en_US Steps progress bar
61
+ */
62
+ steps?: number;
63
+ /**
64
+ * @zh_CN 单个步骤的宽度
65
+ * @en_US Single step width
66
+ */
67
+ stepWidth?: string;
68
+ /**
69
+ * @zh_CN 单个步骤的宽度自适应
70
+ * @en_US Single step width flex
71
+ */
72
+ stepFlex?: XBoolean;
73
+ /**
74
+ * @zh_CN 圆环/仪表盘厚度
75
+ * @en_US Ring thickness
76
+ */
77
+ thickness?: string;
78
+ /**
79
+ * @zh_CN 圆环/仪表盘尺寸
80
+ * @en_US Ring size
81
+ */
82
+ size?: string;
83
+ /**
84
+ * @zh_CN 仪表盘缺口角度 0~300
85
+ * @en_US Dashboard notch angle
86
+ */
87
+ notchAngle?: number;
88
+ /**
89
+ * @zh_CN 分段显示颜色,只适用 type = 'line'
90
+ * @en_US Segmentation display color, only use of type = 'line'
91
+ */
92
+ subsection?: XBoolean;
51
93
  static ɵfac: i0.ɵɵFactoryDeclaration<XProgressProperty, never>;
52
- static ɵcmp: i0.ɵɵComponentDeclaration<XProgressProperty, "ng-component", never, { "percent": "percent"; "height": "height"; "status": "status"; "info": "info"; "inside": "inside"; "format": "format"; "color": "color"; }, {}, never, never>;
94
+ static ɵcmp: i0.ɵɵComponentDeclaration<XProgressProperty, "ng-component", never, { "type": "type"; "percent": "percent"; "height": "height"; "status": "status"; "info": "info"; "inside": "inside"; "format": "format"; "color": "color"; "gradient": "gradient"; "steps": "steps"; "stepWidth": "stepWidth"; "stepFlex": "stepFlex"; "thickness": "thickness"; "size": "size"; "notchAngle": "notchAngle"; "subsection": "subsection"; }, {}, never, never>;
53
95
  }
54
96
  /**
55
97
  * @zh_CN 进度条类型
56
98
  * @en_US Progress bar type
57
99
  */
58
100
  export declare type XProgressType = 'line' | 'circle' | 'dashboard';
101
+ /**
102
+ * @zh_CN 进度条颜色
103
+ * @en_US Progress bar color
104
+ */
105
+ export declare type XProgressColor = string | XProgressColorNode[] | Function;
106
+ /**
107
+ * @zh_CN 进度条节点颜色
108
+ * @en_US Progress bar node color
109
+ */
110
+ export interface XProgressColorNode {
111
+ /**
112
+ * @zh_CN 颜色
113
+ * @en_US Color
114
+ */
115
+ color: string;
116
+ /**
117
+ * @zh_CN 百分比
118
+ * @en_US Percent
119
+ */
120
+ percent: number;
121
+ }
59
122
  /**
60
123
  * @zh_CN 状态
61
124
  * @en_US Status
62
125
  */
63
126
  export declare type XProgressStatus = 'normal' | 'active' | 'success' | 'exception' | 'warning';
127
+ /**
128
+ * @zh_CN 渐变颜色
129
+ * @en_US Gradient color
130
+ */
131
+ export declare type XProgressGradient = {
132
+ direction?: string;
133
+ } & ({
134
+ from: string;
135
+ to: string;
136
+ } | {
137
+ [percent: string]: string;
138
+ });
@@ -1,4 +1,4 @@
1
- import { XData, XProperty, XParentIdentityProperty, XNumber, XTemplate } from '@ng-nest/ui/core';
1
+ import { XData, XProperty, XParentIdentityProperty, XNumber, XTemplate, XBoolean } from '@ng-nest/ui/core';
2
2
  import * as i0 from "@angular/core";
3
3
  /**
4
4
  * Steps
@@ -40,8 +40,13 @@ export declare class XStepsProperty extends XProperty {
40
40
  * @en_US Custom node
41
41
  */
42
42
  customTpl?: XTemplate;
43
+ /**
44
+ * @zh_CN 节点设置的状态优先,将不会自动计算当前节点,`activatedIndex` 和 `status` 将失效
45
+ * @en_US the status set by the node takes precedence, and the current node will not be calculated, `activatedIndex` and `status` will be invalidated
46
+ */
47
+ nodeStatus?: XBoolean;
43
48
  static ɵfac: i0.ɵɵFactoryDeclaration<XStepsProperty, never>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<XStepsProperty, "ng-component", never, { "data": "data"; "layout": "layout"; "activatedIndex": "activatedIndex"; "startIndex": "startIndex"; "status": "status"; "customTpl": "customTpl"; }, {}, never, never>;
49
+ static ɵcmp: i0.ɵɵComponentDeclaration<XStepsProperty, "ng-component", never, { "data": "data"; "layout": "layout"; "activatedIndex": "activatedIndex"; "startIndex": "startIndex"; "status": "status"; "customTpl": "customTpl"; "nodeStatus": "nodeStatus"; }, {}, never, never>;
45
50
  }
46
51
  export interface XStepsNode extends XParentIdentityProperty<XStepsNode> {
47
52
  /**
@@ -62,6 +62,13 @@ export declare class XTableProperty extends XPaginationProperty implements XTabl
62
62
  * @en_US Column content custom template
63
63
  */
64
64
  bodyColumnTpl: XTableTemplate;
65
+ /**
66
+ * @zh_CN 行条件样式
67
+ * @en_US Row condition class
68
+ */
69
+ rowClass?: (row: XTableRow, index: number) => {
70
+ [className: string]: boolean;
71
+ };
65
72
  /**
66
73
  * @zh_CN 排序点击的事件
67
74
  * @en_US Sort click events
@@ -143,7 +150,7 @@ export declare class XTableProperty extends XPaginationProperty implements XTabl
143
150
  */
144
151
  rowSize?: XSize;
145
152
  static ɵfac: i0.ɵɵFactoryDeclaration<XTableProperty, never>;
146
- static ɵcmp: i0.ɵɵComponentDeclaration<XTableProperty, "ng-component", never, { "data": "data"; "columns": "columns"; "rowHeight": "rowHeight"; "loading": "loading"; "bordered": "bordered"; "showHeader": "showHeader"; "activatedRow": "activatedRow"; "headColumnTpl": "headColumnTpl"; "bodyColumnTpl": "bodyColumnTpl"; "allowSelectRow": "allowSelectRow"; "virtualScroll": "virtualScroll"; "bodyHeight": "bodyHeight"; "itemSize": "itemSize"; "minBufferPx": "minBufferPx"; "maxBufferPx": "maxBufferPx"; "adaptionHeight": "adaptionHeight"; "docPercent": "docPercent"; "checkedRow": "checkedRow"; "manual": "manual"; "scroll": "scroll"; "cellConfig": "cellConfig"; "rowSize": "rowSize"; }, { "activatedRowChange": "activatedRowChange"; "sortChange": "sortChange"; "manualChange": "manualChange"; }, never, never>;
153
+ static ɵcmp: i0.ɵɵComponentDeclaration<XTableProperty, "ng-component", never, { "data": "data"; "columns": "columns"; "rowHeight": "rowHeight"; "loading": "loading"; "bordered": "bordered"; "showHeader": "showHeader"; "activatedRow": "activatedRow"; "headColumnTpl": "headColumnTpl"; "bodyColumnTpl": "bodyColumnTpl"; "rowClass": "rowClass"; "allowSelectRow": "allowSelectRow"; "virtualScroll": "virtualScroll"; "bodyHeight": "bodyHeight"; "itemSize": "itemSize"; "minBufferPx": "minBufferPx"; "maxBufferPx": "maxBufferPx"; "adaptionHeight": "adaptionHeight"; "docPercent": "docPercent"; "checkedRow": "checkedRow"; "manual": "manual"; "scroll": "scroll"; "cellConfig": "cellConfig"; "rowSize": "rowSize"; }, { "activatedRowChange": "activatedRowChange"; "sortChange": "sortChange"; "manualChange": "manualChange"; }, never, never>;
147
154
  }
148
155
  /**
149
156
  * Table Option
@@ -185,6 +192,13 @@ export interface XTableOption extends XPaginationOption {
185
192
  * @en_US Column content custom template
186
193
  */
187
194
  bodyColumnTpl?: XTableTemplate;
195
+ /**
196
+ * @zh_CN 行条件样式
197
+ * @en_US Row condition class
198
+ */
199
+ rowClass?: (row: XTableRow, index: number) => {
200
+ [className: string]: boolean;
201
+ };
188
202
  /**
189
203
  * @zh_CN 开启虚拟滚动
190
204
  * @en_US Turn on virtual scrolling
@@ -354,7 +368,7 @@ export interface XTableCell {
354
368
  * @zh_CN 宽度
355
369
  * @en_US Width
356
370
  */
357
- width?: string;
371
+ width?: number;
358
372
  /**
359
373
  * @zh_CN 固定列,距离左边的距离
360
374
  * @en_US Fixed column, distance from left
@@ -524,8 +538,15 @@ export declare class XTableBodyProperty extends XProperty {
524
538
  * @en_US Cell config rules
525
539
  */
526
540
  cellConfig?: XTableCellConfigRule;
541
+ /**
542
+ * @zh_CN 行条件样式
543
+ * @en_US Row condition class
544
+ */
545
+ rowClass?: (row: XTableRow, index: number) => {
546
+ [className: string]: boolean;
547
+ };
527
548
  static ɵfac: i0.ɵɵFactoryDeclaration<XTableBodyProperty, never>;
528
- static ɵcmp: i0.ɵɵComponentDeclaration<XTableBodyProperty, "ng-component", never, { "data": "data"; "columns": "columns"; "columnTpl": "columnTpl"; "activatedRow": "activatedRow"; "rowHeight": "rowHeight"; "bodyHeight": "bodyHeight"; "allowSelectRow": "allowSelectRow"; "virtualScroll": "virtualScroll"; "itemSize": "itemSize"; "minBufferPx": "minBufferPx"; "maxBufferPx": "maxBufferPx"; "adaptionHeight": "adaptionHeight"; "docPercent": "docPercent"; "scroll": "scroll"; "cellConfig": "cellConfig"; }, { "activatedRowChange": "activatedRowChange"; }, never, never>;
549
+ static ɵcmp: i0.ɵɵComponentDeclaration<XTableBodyProperty, "ng-component", never, { "data": "data"; "columns": "columns"; "columnTpl": "columnTpl"; "activatedRow": "activatedRow"; "rowHeight": "rowHeight"; "bodyHeight": "bodyHeight"; "allowSelectRow": "allowSelectRow"; "virtualScroll": "virtualScroll"; "itemSize": "itemSize"; "minBufferPx": "minBufferPx"; "maxBufferPx": "maxBufferPx"; "adaptionHeight": "adaptionHeight"; "docPercent": "docPercent"; "scroll": "scroll"; "cellConfig": "cellConfig"; "rowClass": "rowClass"; }, { "activatedRowChange": "activatedRowChange"; }, never, never>;
529
550
  }
530
551
  /**
531
552
  * Table Foot