clickgo 7.3.2 → 7.4.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/app/demo.cga +0 -0
- package/dist/app/task.cga +0 -0
- package/dist/control/common.cgc +0 -0
- package/dist/control/cube.cgc +0 -0
- package/dist/control/objviewer.cgc +0 -0
- package/dist/index.js +1 -1
- package/dist/lib/control.d.ts +24 -14
- package/dist/theme/cloud-dark.cgt +0 -0
- package/dist/theme/cloud.cgt +0 -0
- package/doc/clickgo-rag.md +206 -125
- package/package.json +4 -3
package/dist/lib/control.d.ts
CHANGED
|
@@ -819,18 +819,28 @@ export interface IFabricObjectchangeEvent {
|
|
|
819
819
|
'height': number;
|
|
820
820
|
};
|
|
821
821
|
}
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
'
|
|
827
|
-
|
|
828
|
-
'
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
'
|
|
835
|
-
|
|
822
|
+
/** --- 节点和连接的语义状态,不依赖主题的具体颜色 --- */
|
|
823
|
+
export type TObjviewerStatus = 'default' | 'online' | 'warning' | 'offline';
|
|
824
|
+
/** --- 按稳定节点 ID 声明的连接,节点暂不存在时不绘制,不保存 DOM 引用 --- */
|
|
825
|
+
export interface IObjviewerEdge {
|
|
826
|
+
'source': string;
|
|
827
|
+
'target': string;
|
|
828
|
+
'label'?: string;
|
|
829
|
+
/** --- 默认 default,连接状态由应用明确提供 --- */
|
|
830
|
+
'status'?: TObjviewerStatus;
|
|
831
|
+
/** --- 默认 none,dash 为流动虚线,dots 为静止底线上的移动圆点 --- */
|
|
832
|
+
'animation'?: 'none' | 'dash' | 'dots';
|
|
833
|
+
/** --- 默认 forward,沿 source 到 target;reverse 反向,both 双向 --- */
|
|
834
|
+
'direction'?: 'forward' | 'reverse' | 'both';
|
|
835
|
+
/** --- 动画周期,单位秒,默认 3,限制为 0.25–60;dots 为走完整条路径的时间 --- */
|
|
836
|
+
'duration'?: number;
|
|
837
|
+
/** --- dots 模式每个方向的圆点数,默认 3,取整并限制为 1–8 --- */
|
|
838
|
+
'dotCount'?: number;
|
|
839
|
+
}
|
|
840
|
+
/** --- 节点选择事件,仅通知选择,不在控件内执行业务跳转 --- */
|
|
841
|
+
export interface IObjviewerSelectEvent {
|
|
842
|
+
'detail': {
|
|
843
|
+
'nodeId': string;
|
|
844
|
+
'label': string;
|
|
845
|
+
};
|
|
836
846
|
}
|
|
Binary file
|
|
Binary file
|
package/doc/clickgo-rag.md
CHANGED
|
@@ -1186,6 +1186,16 @@ cell 之间的间距,默认 0。
|
|
|
1186
1186
|
|
|
1187
1187
|
是否使用与 Tag 相同的朴素模式,默认 false。语义色和主题色使用柔和底色、对应文字色及边框;最终外观由主题决定。
|
|
1188
1188
|
|
|
1189
|
+
#### pulse
|
|
1190
|
+
|
|
1191
|
+
`boolean` | `string`
|
|
1192
|
+
|
|
1193
|
+
是否启用同色扩散光圈,默认 false。光圈随 `type` 的语义色或主题色变化,实心与朴素模式均支持;圆点、内容及布局尺寸不参与缩放。启用系统“减少动态效果”时显示静态光圈。
|
|
1194
|
+
|
|
1195
|
+
这是布尔开关;`string` 仅兼容 XML 属性传值,并非动画名称或多种效果的枚举。可用 `pulse` 开启,或用 `:pulse="online"` 绑定布尔状态。
|
|
1196
|
+
|
|
1197
|
+
光圈向组件外侧绘制,放在 Flow 等滚动容器内时需在滚动区域内部留出空间,避免被 overflow 裁切。
|
|
1198
|
+
|
|
1189
1199
|
#### sub
|
|
1190
1200
|
|
|
1191
1201
|
`boolean` | `string`
|
|
@@ -1211,6 +1221,8 @@ cell 之间的间距,默认 0。
|
|
|
1211
1221
|
```xml
|
|
1212
1222
|
<circle type="primary" size="xl">A</circle>
|
|
1213
1223
|
<circle type="cg" size="xl" plain>A</circle>
|
|
1224
|
+
<circle type="primary" pulse></circle>
|
|
1225
|
+
<circle type="cg" :pulse="online"></circle>
|
|
1214
1226
|
```
|
|
1215
1227
|
|
|
1216
1228
|
|
|
@@ -1324,48 +1336,34 @@ cell 之间的间距,默认 0。
|
|
|
1324
1336
|
## cube
|
|
1325
1337
|
---
|
|
1326
1338
|
|
|
1327
|
-
|
|
1339
|
+
独立的立方体设备标识,可用于列表、概览卡片或 Objviewer 节点的 icon 插槽。固定占位内以三个 SVG 平面构成三维立方体,按统一视点投影;不监听内容尺寸,也不参与父空间的连接与布局。
|
|
1328
1340
|
|
|
1329
|
-
|
|
1341
|
+
鼠标悬停时立方体向上和向前抬升并轻微转动,顶面与侧面的边随透视共同变化;顶面插槽、扫光同步跟随,落地阴影留在原处并变得柔和。外层占位和连线端点保持不变。动效由 CSS 三维面结构管理,无计时器或动画回调依赖;减少动态效果时保持静止立体姿态并关闭扫光,仅保留色彩反馈。
|
|
1330
1342
|
|
|
1331
|
-
|
|
1343
|
+
### 参数
|
|
1332
1344
|
|
|
1333
|
-
|
|
1345
|
+
#### type
|
|
1334
1346
|
|
|
1335
|
-
|
|
1347
|
+
`'default' | 'primary' | 'info' | 'warning' | 'danger' | 'cg'`,默认 `cg`。使用框架语义色和用户主题色,三面明度随主题表面变化。
|
|
1336
1348
|
|
|
1337
1349
|
#### size
|
|
1338
1350
|
|
|
1339
|
-
`'
|
|
1340
|
-
|
|
1341
|
-
尺寸,默认 `s`。
|
|
1342
|
-
|
|
1343
|
-
### 事件
|
|
1344
|
-
|
|
1345
|
-
#### anistart
|
|
1346
|
-
|
|
1347
|
-
`() => void`
|
|
1348
|
-
|
|
1349
|
-
动画开始时触发。
|
|
1350
|
-
|
|
1351
|
-
#### aniend
|
|
1352
|
-
|
|
1353
|
-
`() => void`
|
|
1354
|
-
|
|
1355
|
-
动画结束时触发。
|
|
1351
|
+
`'s' | 'm' | 'l' | 'xl'`,默认 `m`,固定占位分别为 `32 / 48 / 64 / 88px`。插槽不会撑大占位,请使用适当尺寸的 Icon 或简短文字。
|
|
1356
1352
|
|
|
1357
|
-
###
|
|
1358
|
-
|
|
1359
|
-
使用 CSS 3D 变换实现立方体效果。顶面可通过插槽自定义内容。
|
|
1353
|
+
### 插槽
|
|
1360
1354
|
|
|
1361
|
-
|
|
1355
|
+
默认插槽显示在顶面中央。Cube 本身不承担选择或动画事件;点击与状态由外层 Button、列表项或 Objviewer-item 负责。
|
|
1362
1356
|
|
|
1363
1357
|
### 示例
|
|
1364
1358
|
|
|
1365
1359
|
```xml
|
|
1366
|
-
<cube
|
|
1360
|
+
<cube type="info" size="m"><icon name="cpu" size="s"></icon></cube>
|
|
1361
|
+
<objviewer-item node-id="server" variant="hub" label="Server" status="online">
|
|
1362
|
+
<template v-slot:icon><cube type="cg"><icon name="cpu" size="s"></icon></cube></template>
|
|
1363
|
+
</objviewer-item>
|
|
1367
1364
|
```
|
|
1368
1365
|
|
|
1366
|
+
|
|
1369
1367
|
## date
|
|
1370
1368
|
---
|
|
1371
1369
|
|
|
@@ -1383,7 +1381,7 @@ cell 之间的间距,默认 0。
|
|
|
1383
1381
|
|
|
1384
1382
|
`string[]` | `string`
|
|
1385
1383
|
|
|
1386
|
-
|
|
1384
|
+
禁用日期列表,date 模式使用 YYYYMMDD,month 模式使用 YYYYMM。
|
|
1387
1385
|
|
|
1388
1386
|
#### modelValue
|
|
1389
1387
|
|
|
@@ -1391,6 +1389,14 @@ cell 之间的间距,默认 0。
|
|
|
1391
1389
|
|
|
1392
1390
|
双向绑定,时间戳毫秒值。
|
|
1393
1391
|
|
|
1392
|
+
month 模式将值归一到所选时区的当月 1 日 00:00:00.000;外部传入日期也会归一并同步绑定值。固定 UTC 月初时传 `:tz="0"`,不依赖设备时区。
|
|
1393
|
+
|
|
1394
|
+
#### mode
|
|
1395
|
+
|
|
1396
|
+
`'date'` | `'month'`
|
|
1397
|
+
|
|
1398
|
+
选择粒度,默认 date。month 只显示年份和月份,不提供日格或时间选择,并忽略 date、time、hourminute 参数;zone 和 tz 仍按原有规则工作。
|
|
1399
|
+
|
|
1394
1400
|
#### tz
|
|
1395
1401
|
|
|
1396
1402
|
`number` | `string`
|
|
@@ -1413,13 +1419,13 @@ cell 之间的间距,默认 0。
|
|
|
1413
1419
|
|
|
1414
1420
|
`number` | `string`
|
|
1415
1421
|
|
|
1416
|
-
|
|
1422
|
+
可选开始时间,沿用 datepanel 的秒/毫秒约定;month 模式按所选时区的年月限制,包含边界所在月份。
|
|
1417
1423
|
|
|
1418
1424
|
#### end
|
|
1419
1425
|
|
|
1420
1426
|
`number` | `string`
|
|
1421
1427
|
|
|
1422
|
-
|
|
1428
|
+
可选结束时间,沿用 datepanel 的秒/毫秒约定;month 模式按所选时区的年月限制,包含边界所在月份。
|
|
1423
1429
|
|
|
1424
1430
|
#### date
|
|
1425
1431
|
|
|
@@ -1443,7 +1449,7 @@ cell 之间的间距,默认 0。
|
|
|
1443
1449
|
|
|
1444
1450
|
`boolean` | `string`
|
|
1445
1451
|
|
|
1446
|
-
|
|
1452
|
+
是否显示清空按钮,默认 true。
|
|
1447
1453
|
|
|
1448
1454
|
### 事件
|
|
1449
1455
|
|
|
@@ -1451,7 +1457,7 @@ cell 之间的间距,默认 0。
|
|
|
1451
1457
|
|
|
1452
1458
|
`(event: IDateChangedEvent) => void`
|
|
1453
1459
|
|
|
1454
|
-
值改变后触发,包含 `
|
|
1460
|
+
值改变后触发,包含 `before` 和 `value`。month 模式选中月份或清空时触发,归一化外部赋值不视为用户选择。
|
|
1455
1461
|
|
|
1456
1462
|
#### yearmonthchanged
|
|
1457
1463
|
|
|
@@ -1471,8 +1477,10 @@ cell 之间的间距,默认 0。
|
|
|
1471
1477
|
|
|
1472
1478
|
```xml
|
|
1473
1479
|
<date v-model="timestamp"></date>
|
|
1480
|
+
<date mode="month" v-model="monthTimestamp" :tz="0"></date>
|
|
1474
1481
|
```
|
|
1475
1482
|
|
|
1483
|
+
|
|
1476
1484
|
## datepanel
|
|
1477
1485
|
---
|
|
1478
1486
|
|
|
@@ -1496,7 +1504,7 @@ cell 之间的间距,默认 0。
|
|
|
1496
1504
|
|
|
1497
1505
|
`string[]` | `string`
|
|
1498
1506
|
|
|
1499
|
-
|
|
1507
|
+
禁用日期列表,date 模式使用 YYYYMMDD,month 模式使用 YYYYMM。
|
|
1500
1508
|
|
|
1501
1509
|
#### modelValue
|
|
1502
1510
|
|
|
@@ -1504,17 +1512,25 @@ cell 之间的间距,默认 0。
|
|
|
1504
1512
|
|
|
1505
1513
|
双向绑定,时间戳值(毫秒)。
|
|
1506
1514
|
|
|
1515
|
+
month 模式归一到所选时区的当月 1 日 00:00:00.000;外部传入日期也会归一并同步绑定值。
|
|
1516
|
+
|
|
1517
|
+
#### mode
|
|
1518
|
+
|
|
1519
|
+
`'date'` | `'month'`
|
|
1520
|
+
|
|
1521
|
+
选择粒度,默认 date。month 使用年份导航和十二个月份按钮,隐藏日格与时间选择,忽略 time、hourminute、range 和 cursor。月份按钮复用全部内置语种的月份名称。
|
|
1522
|
+
|
|
1507
1523
|
#### start
|
|
1508
1524
|
|
|
1509
1525
|
`number` | `string`
|
|
1510
1526
|
|
|
1511
|
-
可选开始时间(秒/毫秒)。
|
|
1527
|
+
可选开始时间(秒/毫秒)。month 模式按所选时区的年月限制,包含边界所在月份。
|
|
1512
1528
|
|
|
1513
1529
|
#### end
|
|
1514
1530
|
|
|
1515
1531
|
`number` | `string`
|
|
1516
1532
|
|
|
1517
|
-
可选结束时间(秒/毫秒)。
|
|
1533
|
+
可选结束时间(秒/毫秒)。month 模式按所选时区的年月限制,包含边界所在月份。
|
|
1518
1534
|
|
|
1519
1535
|
#### tz
|
|
1520
1536
|
|
|
@@ -1594,7 +1610,7 @@ cell 之间的间距,默认 0。
|
|
|
1594
1610
|
|
|
1595
1611
|
`(event: IDatepanelSelectedEvent) => void`
|
|
1596
1612
|
|
|
1597
|
-
选中日期时触发。
|
|
1613
|
+
选中日期时触发。month 模式的 date 固定为 1,month 仍从 0 开始,time 为所选时区的月初毫秒时间戳。
|
|
1598
1614
|
|
|
1599
1615
|
#### range
|
|
1600
1616
|
|
|
@@ -1614,8 +1630,10 @@ cell 之间的间距,默认 0。
|
|
|
1614
1630
|
|
|
1615
1631
|
```xml
|
|
1616
1632
|
<datepanel v-model="timestamp" time></datepanel>
|
|
1633
|
+
<datepanel mode="month" v-model="monthTimestamp" :tz="0"></datepanel>
|
|
1617
1634
|
```
|
|
1618
1635
|
|
|
1636
|
+
|
|
1619
1637
|
## daterange
|
|
1620
1638
|
---
|
|
1621
1639
|
|
|
@@ -6224,121 +6242,142 @@ noVNC 远程桌面组件。
|
|
|
6224
6242
|
## objviewer
|
|
6225
6243
|
---
|
|
6226
6244
|
|
|
6227
|
-
|
|
6245
|
+
节点关系空间。以稳定 ID 声明节点与连接,自动布局和尺寸测量在控件内部完成;平移、滚轮、双指缩放和视口适应复用 Panzoom。不是 3D 场景或流程编辑器。
|
|
6228
6246
|
|
|
6229
6247
|
### 参数
|
|
6230
6248
|
|
|
6231
|
-
####
|
|
6249
|
+
#### edges
|
|
6232
6250
|
|
|
6233
|
-
`
|
|
6251
|
+
`clickgo.control.IObjviewerEdge[]`,默认 `[]`。每条连接含 `source`、`target` 节点 ID,可选 `label`、`status`(`default / online / warning / offline`)。端点不存在时暂不绘制,恢复节点后自动出现。状态与是否启用动画均由应用提供,不从端点猜测。
|
|
6234
6252
|
|
|
6235
|
-
|
|
6253
|
+
每条连接可独立设置动画:
|
|
6254
|
+
|
|
6255
|
+
- `animation`:`none / dash / dots`,默认 `none`;分别为静止连接、流动虚线、静止底线上的多个移动圆点。颜色跟随连接状态,选中关联节点时使用主题色。
|
|
6256
|
+
- `direction`:`forward / reverse / both`,默认 `forward`;分别沿 source → target、target → source、同时双向流动。仅改变动画,不交换节点关系或改变布局。
|
|
6257
|
+
- `duration`:周期秒数,默认 `3`,限制为 `0.25–60`;dots 为圆点走完整条路径的时间,dash 为虚线纹理的一个动画周期。
|
|
6258
|
+
- `dotCount`:dots 模式每个方向的圆点数,默认 `3`,取整并限制为 `1–8`。圆点均匀错开,双向时两组错开半个间隔。
|
|
6259
|
+
|
|
6260
|
+
路径随节点、容器与布局变化更新;减少动态效果时隐藏移动圆点并停止虚线动画,保留静止连接。
|
|
6261
|
+
|
|
6262
|
+
#### layout
|
|
6263
|
+
|
|
6264
|
+
`'auto' | 'radial' | 'tree' | 'manual'`,默认 `auto`。自动模式在 600px 以下容器改为紧凑纵排与侧边关系线,宽容器使用环形。显式 radial 固定环形,以节点的可视标识中心定位;tree 分层适合设备树和依赖概览;manual 使用各节点的 x/y。支持环、孤立节点与多个连通分量,不持续运行力模拟。非紧凑布局使用直线;中心节点的标识与说明共同决定端点,连线遇到说明时止于说明外缘,不穿字或局部绕行。不提供通用避障路由或端口编辑。
|
|
6265
|
+
|
|
6266
|
+
#### root
|
|
6267
|
+
|
|
6268
|
+
`string`,默认空。优先根节点 ID;未提供时优先无入边节点,再选择连接较多的节点。
|
|
6269
|
+
|
|
6270
|
+
#### gap
|
|
6271
|
+
|
|
6272
|
+
`number | string`,默认 `48`,环形和分层布局的最小间隔,单位 CSS 像素,限制为 `24–400`。紧凑模式的纵向间隔固定为 24px。
|
|
6236
6273
|
|
|
6237
6274
|
#### bg
|
|
6238
6275
|
|
|
6239
|
-
`'dot'
|
|
6276
|
+
`'none' | 'dot' | 'grid'`,默认 `none`。
|
|
6277
|
+
|
|
6278
|
+
#### modelValue
|
|
6240
6279
|
|
|
6241
|
-
|
|
6280
|
+
`string`,当前选中节点 ID,默认空,可用 v-model。移除选中节点时清空绑定,不触发 select。
|
|
6242
6281
|
|
|
6243
|
-
####
|
|
6282
|
+
#### disabled
|
|
6244
6283
|
|
|
6245
|
-
`
|
|
6284
|
+
`boolean | string`,默认 false,禁用视图手势、工具栏和节点选择。
|
|
6246
6285
|
|
|
6247
|
-
|
|
6286
|
+
#### label
|
|
6248
6287
|
|
|
6249
|
-
|
|
6288
|
+
`string`,空间无障碍名称,由应用提供本地化文案。
|
|
6250
6289
|
|
|
6251
|
-
|
|
6290
|
+
### 事件
|
|
6252
6291
|
|
|
6253
|
-
|
|
6292
|
+
#### select
|
|
6254
6293
|
|
|
6255
|
-
|
|
6294
|
+
`clickgo.control.IObjviewerSelectEvent`:`detail: {nodeId, label}`。点击、Enter 或空格激活不同的可操作节点时触发;重复选择不触发。控件不执行业务跳转。
|
|
6256
6295
|
|
|
6257
|
-
|
|
6296
|
+
### 方法
|
|
6258
6297
|
|
|
6259
|
-
|
|
6298
|
+
- `fit()`:恢复完整显示,之后随视口缩放继续适应。
|
|
6299
|
+
- `zoom(factor)`:围绕视口中心按相对比例缩放,如 `1.2`。用户缩放/平移后调整窗口保持当前比例和中心;内容边界变化重新适应。
|
|
6260
6300
|
|
|
6261
|
-
###
|
|
6301
|
+
### 插槽与尺寸
|
|
6262
6302
|
|
|
6263
|
-
|
|
6303
|
+
默认插槽仅放直属 objviewer-item,可用 v-for/v-if。节点 ID 必须非空且唯一;无效项隐藏,重复 ID 只使用第一项。`empty` 插槽自定义空态。
|
|
6264
6304
|
|
|
6265
|
-
|
|
6305
|
+
给容器明确高度或 flex 剩余空间;场景按真实节点尺寸及 48px 留白计算,不用屏幕坐标反推,也无需 addLine、动画回调或延时 refresh。首次完整显示,大图可通过工具栏/手势放大查看文字。0 大小或隐藏视口恢复后自动适应;减少动态效果时连接静止。
|
|
6266
6306
|
|
|
6267
6307
|
### 示例
|
|
6268
6308
|
|
|
6269
6309
|
```xml
|
|
6270
|
-
<objviewer>
|
|
6271
|
-
<objviewer-item label="
|
|
6310
|
+
<objviewer :edges="[{source: 'gateway', target: 'device', status: 'online', animation: 'dots', direction: 'both', duration: 3, dotCount: 3}]" root="gateway" v-model="selected" style="height:420px;">
|
|
6311
|
+
<objviewer-item node-id="gateway" variant="hub" label="Gateway" status="online" icon="cpu"></objviewer-item>
|
|
6312
|
+
<objviewer-item node-id="device" label="Device" description="Branch office" status="online"></objviewer-item>
|
|
6272
6313
|
</objviewer>
|
|
6273
6314
|
```
|
|
6274
6315
|
|
|
6316
|
+
|
|
6275
6317
|
## objviewer-item
|
|
6276
6318
|
---
|
|
6277
6319
|
|
|
6278
|
-
|
|
6320
|
+
Objviewer 的直属节点。节点自己显示内容和状态,父空间负责位置与连接;不再承担通用 Layout 的职责。
|
|
6279
6321
|
|
|
6280
6322
|
### 参数
|
|
6281
6323
|
|
|
6282
|
-
####
|
|
6283
|
-
|
|
6284
|
-
`string`
|
|
6285
|
-
|
|
6286
|
-
色调值,默认 `255`。
|
|
6324
|
+
#### nodeId
|
|
6287
6325
|
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
`boolean` | `string`
|
|
6326
|
+
`string`,默认空,必填的稳定唯一 ID,用于连接和选择。不使用 ref 或 DOM 引用作为端点。
|
|
6291
6327
|
|
|
6292
|
-
|
|
6328
|
+
#### label
|
|
6293
6329
|
|
|
6294
|
-
|
|
6330
|
+
`string`,名称,默认空,空时显示 nodeId。
|
|
6295
6331
|
|
|
6296
|
-
|
|
6332
|
+
#### description
|
|
6297
6333
|
|
|
6298
|
-
|
|
6334
|
+
`string`,辅助说明,默认空,可显示地址、位置、数量等。
|
|
6299
6335
|
|
|
6300
|
-
####
|
|
6336
|
+
#### icon
|
|
6301
6337
|
|
|
6302
|
-
`
|
|
6338
|
+
`string`,框架图标名称,默认空。hub 未提供时显示 cpu。
|
|
6303
6339
|
|
|
6304
|
-
|
|
6340
|
+
#### status
|
|
6305
6341
|
|
|
6306
|
-
|
|
6342
|
+
`'default' | 'online' | 'warning' | 'offline'`,默认 `default`。状态通过圆点与本地化文字共同表达,不只依靠颜色;语义色跟随主题。
|
|
6307
6343
|
|
|
6308
|
-
|
|
6344
|
+
#### statusLabel
|
|
6309
6345
|
|
|
6310
|
-
|
|
6346
|
+
`string`,默认空,覆盖状态文字,应用可用于“维护中”等业务状态说明。
|
|
6311
6347
|
|
|
6312
|
-
####
|
|
6348
|
+
#### variant
|
|
6313
6349
|
|
|
6314
|
-
`
|
|
6350
|
+
`'card' | 'hub'`,默认 `card`。卡片为 184px 宽、自然高度;中心节点为 144px 宽,含 72px 圆形标识。名称/描述自动换行,自定义内容的尺寸变化自动通知空间。父空间自动切换紧凑模式时优先展示名称和状态,辅助说明及卡片图标收起;完整说明保留在无障碍描述,应用也可根据选中 ID 显示详情。
|
|
6315
6351
|
|
|
6316
|
-
|
|
6352
|
+
#### pulse
|
|
6317
6353
|
|
|
6318
|
-
|
|
6354
|
+
`boolean | string`,默认 true,仅 online 状态显示 Circle 的同色光圈;减少动态效果时静止。
|
|
6319
6355
|
|
|
6320
|
-
|
|
6356
|
+
#### disabled
|
|
6321
6357
|
|
|
6322
|
-
|
|
6358
|
+
`boolean | string`,默认 false,禁止鼠标和键盘选择,状态与内容仍可见。
|
|
6323
6359
|
|
|
6324
|
-
####
|
|
6360
|
+
#### x
|
|
6325
6361
|
|
|
6326
|
-
`string`
|
|
6362
|
+
`number | string`,默认 `0`,manual 布局下的内容水平坐标。
|
|
6327
6363
|
|
|
6328
|
-
|
|
6364
|
+
#### y
|
|
6329
6365
|
|
|
6330
|
-
|
|
6366
|
+
`number | string`,默认 `0`,manual 布局下的内容垂直坐标。坐标可为负数,空间统一归一化并留白。
|
|
6331
6367
|
|
|
6332
|
-
|
|
6368
|
+
### 插槽
|
|
6333
6369
|
|
|
6334
|
-
|
|
6370
|
+
`icon` 自定义标识,可放 Icon、Cube 或图片;默认插槽在说明下增加内容。节点内独立按钮/输入不触发节点选择。选择事件由 Objviewer 统一发出。
|
|
6335
6371
|
|
|
6336
6372
|
### 示例
|
|
6337
6373
|
|
|
6338
6374
|
```xml
|
|
6339
|
-
<objviewer-item label="
|
|
6375
|
+
<objviewer-item node-id="worker" label="Background worker" status="warning" description="Queue waiting">
|
|
6376
|
+
<tag type="warning" plain size="xs">12 jobs</tag>
|
|
6377
|
+
</objviewer-item>
|
|
6340
6378
|
```
|
|
6341
6379
|
|
|
6380
|
+
|
|
6342
6381
|
## page
|
|
6343
6382
|
---
|
|
6344
6383
|
|
|
@@ -14117,8 +14156,8 @@ lib/control/index.md
|
|
|
14117
14156
|
- [INavItemSelectEvent](interfaces/INavItemSelectEvent.md)
|
|
14118
14157
|
- [INumberBeforeChangeEvent](interfaces/INumberBeforeChangeEvent.md)
|
|
14119
14158
|
- [INumberMinMaxChangeEvent](interfaces/INumberMinMaxChangeEvent.md)
|
|
14120
|
-
- [
|
|
14121
|
-
- [
|
|
14159
|
+
- [IObjviewerEdge](interfaces/IObjviewerEdge.md)
|
|
14160
|
+
- [IObjviewerSelectEvent](interfaces/IObjviewerSelectEvent.md)
|
|
14122
14161
|
- [IPaletteChangedEvent](interfaces/IPaletteChangedEvent.md)
|
|
14123
14162
|
- [IPanelGoEvent](interfaces/IPanelGoEvent.md)
|
|
14124
14163
|
- [IPanelWentEvent](interfaces/IPanelWentEvent.md)
|
|
@@ -14154,6 +14193,7 @@ lib/control/index.md
|
|
|
14154
14193
|
- [TControlPackage](type-aliases/TControlPackage.md)
|
|
14155
14194
|
- [TDesktopLayoutReason](type-aliases/TDesktopLayoutReason.md)
|
|
14156
14195
|
- [TDesktopPositions](type-aliases/TDesktopPositions.md)
|
|
14196
|
+
- [TObjviewerStatus](type-aliases/TObjviewerStatus.md)
|
|
14157
14197
|
|
|
14158
14198
|
## Functions
|
|
14159
14199
|
|
|
@@ -16707,101 +16747,125 @@ Defined in: [lib/control.ts:971](https://github.com/maiyun/clickgo/blob/master/d
|
|
|
16707
16747
|
|
|
16708
16748
|
[`ICustomEvent`](ICustomEvent.md).[`preventDefault`](ICustomEvent.md#preventdefault)
|
|
16709
16749
|
|
|
16710
|
-
lib/control/interfaces/
|
|
16750
|
+
lib/control/interfaces/IObjviewerEdge.md
|
|
16711
16751
|
---
|
|
16712
16752
|
|
|
16713
16753
|
[**Documents for clickgo**](../../../index.md)
|
|
16714
16754
|
|
|
16715
16755
|
***
|
|
16716
16756
|
|
|
16717
|
-
[Documents for clickgo](../../../index.md) / [lib/control](../index.md) /
|
|
16757
|
+
[Documents for clickgo](../../../index.md) / [lib/control](../index.md) / IObjviewerEdge
|
|
16718
16758
|
|
|
16719
|
-
# Interface:
|
|
16759
|
+
# Interface: IObjviewerEdge
|
|
16720
16760
|
|
|
16721
|
-
Defined in: [lib/control.ts:
|
|
16761
|
+
Defined in: [lib/control.ts:1741](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1741)
|
|
16762
|
+
|
|
16763
|
+
按稳定节点 ID 声明的连接,节点暂不存在时不绘制,不保存 DOM 引用
|
|
16722
16764
|
|
|
16723
16765
|
## Properties
|
|
16724
16766
|
|
|
16725
|
-
###
|
|
16767
|
+
### animation?
|
|
16726
16768
|
|
|
16727
|
-
> **
|
|
16769
|
+
> `optional` **animation?**: `"none"` \| `"dash"` \| `"dots"`
|
|
16728
16770
|
|
|
16729
|
-
Defined in: [lib/control.ts:
|
|
16771
|
+
Defined in: [lib/control.ts:1748](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1748)
|
|
16772
|
+
|
|
16773
|
+
默认 none,dash 为流动虚线,dots 为静止底线上的移动圆点
|
|
16730
16774
|
|
|
16731
16775
|
***
|
|
16732
16776
|
|
|
16733
|
-
###
|
|
16777
|
+
### direction?
|
|
16734
16778
|
|
|
16735
|
-
> `optional` **
|
|
16779
|
+
> `optional` **direction?**: `"reverse"` \| `"forward"` \| `"both"`
|
|
16736
16780
|
|
|
16737
|
-
Defined in: [lib/control.ts:
|
|
16781
|
+
Defined in: [lib/control.ts:1750](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1750)
|
|
16738
16782
|
|
|
16739
|
-
默认
|
|
16783
|
+
默认 forward,沿 source 到 target;reverse 反向,both 双向
|
|
16740
16784
|
|
|
16741
16785
|
***
|
|
16742
16786
|
|
|
16743
|
-
###
|
|
16787
|
+
### dotCount?
|
|
16744
16788
|
|
|
16745
|
-
> `optional` **
|
|
16789
|
+
> `optional` **dotCount?**: `number`
|
|
16746
16790
|
|
|
16747
|
-
Defined in: [lib/control.ts:
|
|
16791
|
+
Defined in: [lib/control.ts:1754](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1754)
|
|
16748
16792
|
|
|
16749
|
-
|
|
16793
|
+
dots 模式每个方向的圆点数,默认 3,取整并限制为 1–8
|
|
16750
16794
|
|
|
16751
16795
|
***
|
|
16752
16796
|
|
|
16753
|
-
###
|
|
16797
|
+
### duration?
|
|
16754
16798
|
|
|
16755
|
-
> `optional` **
|
|
16799
|
+
> `optional` **duration?**: `number`
|
|
16800
|
+
|
|
16801
|
+
Defined in: [lib/control.ts:1752](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1752)
|
|
16802
|
+
|
|
16803
|
+
动画周期,单位秒,默认 3,限制为 0.25–60;dots 为走完整条路径的时间
|
|
16804
|
+
|
|
16805
|
+
***
|
|
16806
|
+
|
|
16807
|
+
### label?
|
|
16808
|
+
|
|
16809
|
+
> `optional` **label?**: `string`
|
|
16756
16810
|
|
|
16757
16811
|
Defined in: [lib/control.ts:1744](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1744)
|
|
16758
16812
|
|
|
16759
16813
|
***
|
|
16760
16814
|
|
|
16761
|
-
###
|
|
16815
|
+
### source
|
|
16762
16816
|
|
|
16763
|
-
> **
|
|
16817
|
+
> **source**: `string`
|
|
16764
16818
|
|
|
16765
|
-
Defined in: [lib/control.ts:
|
|
16819
|
+
Defined in: [lib/control.ts:1742](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1742)
|
|
16766
16820
|
|
|
16767
16821
|
***
|
|
16768
16822
|
|
|
16769
|
-
###
|
|
16823
|
+
### status?
|
|
16770
16824
|
|
|
16771
|
-
> `optional` **
|
|
16825
|
+
> `optional` **status?**: [`TObjviewerStatus`](../type-aliases/TObjviewerStatus.md)
|
|
16772
16826
|
|
|
16773
16827
|
Defined in: [lib/control.ts:1746](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1746)
|
|
16774
16828
|
|
|
16775
|
-
默认
|
|
16829
|
+
默认 default,连接状态由应用明确提供
|
|
16830
|
+
|
|
16831
|
+
***
|
|
16832
|
+
|
|
16833
|
+
### target
|
|
16776
16834
|
|
|
16777
|
-
|
|
16835
|
+
> **target**: `string`
|
|
16836
|
+
|
|
16837
|
+
Defined in: [lib/control.ts:1743](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1743)
|
|
16838
|
+
|
|
16839
|
+
lib/control/interfaces/IObjviewerSelectEvent.md
|
|
16778
16840
|
---
|
|
16779
16841
|
|
|
16780
16842
|
[**Documents for clickgo**](../../../index.md)
|
|
16781
16843
|
|
|
16782
16844
|
***
|
|
16783
16845
|
|
|
16784
|
-
[Documents for clickgo](../../../index.md) / [lib/control](../index.md) /
|
|
16846
|
+
[Documents for clickgo](../../../index.md) / [lib/control](../index.md) / IObjviewerSelectEvent
|
|
16847
|
+
|
|
16848
|
+
# Interface: IObjviewerSelectEvent
|
|
16785
16849
|
|
|
16786
|
-
|
|
16850
|
+
Defined in: [lib/control.ts:1758](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1758)
|
|
16787
16851
|
|
|
16788
|
-
|
|
16852
|
+
节点选择事件,仅通知选择,不在控件内执行业务跳转
|
|
16789
16853
|
|
|
16790
16854
|
## Properties
|
|
16791
16855
|
|
|
16792
|
-
###
|
|
16856
|
+
### detail
|
|
16793
16857
|
|
|
16794
|
-
> **
|
|
16858
|
+
> **detail**: `object`
|
|
16795
16859
|
|
|
16796
|
-
Defined in: [lib/control.ts:
|
|
16860
|
+
Defined in: [lib/control.ts:1759](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1759)
|
|
16797
16861
|
|
|
16798
|
-
|
|
16862
|
+
#### label
|
|
16799
16863
|
|
|
16800
|
-
|
|
16864
|
+
> **label**: `string`
|
|
16801
16865
|
|
|
16802
|
-
|
|
16866
|
+
#### nodeId
|
|
16803
16867
|
|
|
16804
|
-
|
|
16868
|
+
> **nodeId**: `string`
|
|
16805
16869
|
|
|
16806
16870
|
lib/control/interfaces/IPaletteChangedEvent.md
|
|
16807
16871
|
---
|
|
@@ -18307,6 +18371,23 @@ Defined in: [lib/control.ts:1321](https://github.com/maiyun/clickgo/blob/master/
|
|
|
18307
18371
|
|
|
18308
18372
|
图标 ID 到位置的映射,可独立保存和恢复
|
|
18309
18373
|
|
|
18374
|
+
lib/control/type-aliases/TObjviewerStatus.md
|
|
18375
|
+
---
|
|
18376
|
+
|
|
18377
|
+
[**Documents for clickgo**](../../../index.md)
|
|
18378
|
+
|
|
18379
|
+
***
|
|
18380
|
+
|
|
18381
|
+
[Documents for clickgo](../../../index.md) / [lib/control](../index.md) / TObjviewerStatus
|
|
18382
|
+
|
|
18383
|
+
# Type Alias: TObjviewerStatus
|
|
18384
|
+
|
|
18385
|
+
> **TObjviewerStatus** = `"default"` \| `"online"` \| `"warning"` \| `"offline"`
|
|
18386
|
+
|
|
18387
|
+
Defined in: [lib/control.ts:1738](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1738)
|
|
18388
|
+
|
|
18389
|
+
节点和连接的语义状态,不依赖主题的具体颜色
|
|
18390
|
+
|
|
18310
18391
|
lib/core/classes/AbstractApp.md
|
|
18311
18392
|
---
|
|
18312
18393
|
|
|
@@ -21856,7 +21937,7 @@ Defined in: [lib/dom.ts:1910](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
21856
21937
|
|
|
21857
21938
|
### pos
|
|
21858
21939
|
|
|
21859
|
-
`"b"` \| `"tr"` \| `"l"` \| `"
|
|
21940
|
+
`"b"` \| `"tr"` \| `"l"` \| `"rb"` \| `"lt"` \| `"t"` \| `"r"` \| `"bl"`
|
|
21860
21941
|
|
|
21861
21942
|
## Returns
|
|
21862
21943
|
|