arthub-table 0.2.83 → 0.2.84-next.0
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.
- package/dist/arthub-table.common.js +1 -1
- package/dist/arthub-table.common.js.map +1 -1
- package/dist/arthub-table.umd.js +1 -1
- package/dist/arthub-table.umd.js.map +1 -1
- package/dist/arthub-table.umd.min.js +1 -1
- package/dist/arthub-table.umd.min.js.map +1 -1
- package/dist/types/core/StyleManager.d.ts +6 -0
- package/dist/types/core/viewers/PersonViewer.d.ts +14 -0
- package/dist/types/core/viewers/types.d.ts +11 -0
- package/package.json +1 -1
|
@@ -165,6 +165,12 @@ export interface ThemeTokens {
|
|
|
165
165
|
bgViewerItem: string;
|
|
166
166
|
/** 默认 Tag 背景 */
|
|
167
167
|
bgTagDefault: string;
|
|
168
|
+
/** 「已离职 / 已离项」标签文字色(未设置时回退到内置橘红色) */
|
|
169
|
+
tagLeaveText?: string;
|
|
170
|
+
/** 「已离职 / 已离项」标签背景色(未设置时回退到内置深棕/浅红色) */
|
|
171
|
+
tagLeaveBg?: string;
|
|
172
|
+
/** 「已离职 / 已离项」标签边框色(未设置时回退到内置描边色) */
|
|
173
|
+
tagLeaveBorder?: string;
|
|
168
174
|
/** 进度条轨道色 */
|
|
169
175
|
bgProgressTrack: string;
|
|
170
176
|
/** 分组特殊标识(hook_mark/mark_bg_color)容器背景色 */
|
|
@@ -29,6 +29,20 @@ declare class PersonViewer implements CellViewer<PersonViewerData> {
|
|
|
29
29
|
* Handles string accountNames, objects with different shapes, etc.
|
|
30
30
|
*/
|
|
31
31
|
private normalizePersonInfo;
|
|
32
|
+
/**
|
|
33
|
+
* 人员状态标签文本。
|
|
34
|
+
* 「已离职」优先于「已离项」,与 DOM 表格 / 用户列表口径一致;无状态时返回空字符串。
|
|
35
|
+
*/
|
|
36
|
+
private getLeaveTagText;
|
|
37
|
+
/**
|
|
38
|
+
* 测量状态标签的宽度(不含与名字之间的间距)。
|
|
39
|
+
* 调用方需保证 ctx 状态可被 restore。
|
|
40
|
+
*/
|
|
41
|
+
private measureLeaveTagWidth;
|
|
42
|
+
/**
|
|
43
|
+
* 绘制人员状态标签(圆角矩形背景 + 描边 + 文本),左边缘对齐 x,垂直以 centerY 居中。
|
|
44
|
+
*/
|
|
45
|
+
private drawLeaveTag;
|
|
32
46
|
/**
|
|
33
47
|
* 根据 nameDisplayType 配置获取显示名称
|
|
34
48
|
* 对齐 DOM 表格 personViewer.ts 中 getAccountHTML 的逻辑
|
|
@@ -404,6 +404,17 @@ export interface PersonInfo {
|
|
|
404
404
|
qywxAlias?: string;
|
|
405
405
|
/** 邮箱地址 */
|
|
406
406
|
mail?: string;
|
|
407
|
+
/**
|
|
408
|
+
* 是否已离职(离职/注销账号)。
|
|
409
|
+
* 为 true 时在名字后绘制「已离职」状态标签。
|
|
410
|
+
*/
|
|
411
|
+
isResigned?: boolean;
|
|
412
|
+
/**
|
|
413
|
+
* 是否已离项(离开项目)。
|
|
414
|
+
* 仅当 isResigned 不为 true 时生效,绘制「已离项」状态标签。
|
|
415
|
+
* 「已离职」优先于「已离项」,与 DOM 表格 / 用户列表口径一致。
|
|
416
|
+
*/
|
|
417
|
+
isProjectLeaved?: boolean;
|
|
407
418
|
}
|
|
408
419
|
/**
|
|
409
420
|
* Progress viewer data
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arthub-table",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.84-next.0",
|
|
4
4
|
"description": "High-performance canvas-based table/grid component for Vue 3 with TypeScript support, featuring virtual scrolling, cell viewers, grouped rows, and nested grids.",
|
|
5
5
|
"main": "dist/arthub-table.common.js",
|
|
6
6
|
"module": "dist/arthub-table.umd.min.js",
|