@tongfun/ui 0.0.1-alpha.5 → 0.0.1-alpha.7
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/index.d.ts +373 -1
- package/dist/index.js +162138 -92379
- package/dist/lowcode-agent/icons.js +3 -0
- package/dist/lowcode-agent/index.js +3026 -26
- package/dist/lowcode-agent/types.d.ts +2 -0
- package/dist/style.css +10 -1
- package/package.json +6 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const q = "0.1.0",
|
|
1
|
+
const q = "0.1.0", T = {
|
|
2
2
|
name: "tongfang-ui-kit",
|
|
3
3
|
importPath: "tf-ui",
|
|
4
4
|
framework: "vue3",
|
|
5
5
|
description: "低代码平台与后端 agent 消费的组件元数据样例,当前覆盖 10 个代表组件。"
|
|
6
|
-
},
|
|
6
|
+
}, w = [
|
|
7
7
|
{
|
|
8
8
|
id: "layout",
|
|
9
9
|
title: "布局容器",
|
|
@@ -398,7 +398,16 @@ const q = "0.1.0", w = {
|
|
|
398
398
|
id: "basic-components",
|
|
399
399
|
title: "basic-components",
|
|
400
400
|
components: [
|
|
401
|
-
"TfAiFab"
|
|
401
|
+
"TfAiFab",
|
|
402
|
+
"TfAiAnalysisCard",
|
|
403
|
+
"TfReportCanvas",
|
|
404
|
+
"TfSystemDock",
|
|
405
|
+
"TfDimensionSwitch",
|
|
406
|
+
"TfEllipsis",
|
|
407
|
+
"TfRate",
|
|
408
|
+
"TfScoreMetric",
|
|
409
|
+
"TfVoiceButton",
|
|
410
|
+
"TfPrintRender"
|
|
402
411
|
]
|
|
403
412
|
}
|
|
404
413
|
]
|
|
@@ -4062,6 +4071,18 @@ const q = "0.1.0", w = {
|
|
|
4062
4071
|
required: !1,
|
|
4063
4072
|
default: null,
|
|
4064
4073
|
description: "鍐呭鍖哄煙鏄惁濉厖鍓╀綑绌洪棿"
|
|
4074
|
+
},
|
|
4075
|
+
{
|
|
4076
|
+
name: "headerDensity",
|
|
4077
|
+
title: "headerDensity",
|
|
4078
|
+
type: "CardHeaderDensity",
|
|
4079
|
+
control: "text",
|
|
4080
|
+
bindable: !1,
|
|
4081
|
+
advanced: !1,
|
|
4082
|
+
hidden: !1,
|
|
4083
|
+
required: !1,
|
|
4084
|
+
default: "default",
|
|
4085
|
+
description: "头部密度,default 保持历史观感;compact 仅压缩头部(去分割线、标题 13px 次要色),不影响 body,用于报表板块等高密场景 */"
|
|
4065
4086
|
}
|
|
4066
4087
|
],
|
|
4067
4088
|
events: [
|
|
@@ -16198,6 +16219,18 @@ const q = "0.1.0", w = {
|
|
|
16198
16219
|
advanced: !0,
|
|
16199
16220
|
hidden: !1,
|
|
16200
16221
|
required: !1
|
|
16222
|
+
},
|
|
16223
|
+
{
|
|
16224
|
+
name: "showAfter",
|
|
16225
|
+
title: "showAfter",
|
|
16226
|
+
type: "number",
|
|
16227
|
+
control: "number",
|
|
16228
|
+
bindable: !1,
|
|
16229
|
+
advanced: !1,
|
|
16230
|
+
hidden: !1,
|
|
16231
|
+
required: !1,
|
|
16232
|
+
default: 0,
|
|
16233
|
+
description: "延迟显示的毫秒数,0 表示不延迟 /"
|
|
16201
16234
|
}
|
|
16202
16235
|
],
|
|
16203
16236
|
events: [
|
|
@@ -17455,6 +17488,17 @@ const q = "0.1.0", w = {
|
|
|
17455
17488
|
advanced: !1,
|
|
17456
17489
|
hidden: !1,
|
|
17457
17490
|
required: !1
|
|
17491
|
+
},
|
|
17492
|
+
{
|
|
17493
|
+
name: "placement",
|
|
17494
|
+
title: "位置",
|
|
17495
|
+
type: "BadgePlacement",
|
|
17496
|
+
control: "text",
|
|
17497
|
+
bindable: !1,
|
|
17498
|
+
advanced: !1,
|
|
17499
|
+
hidden: !1,
|
|
17500
|
+
required: !1,
|
|
17501
|
+
description: "徽标相对插槽内容的位置:top-right/top-left/bottom-right/bottom-left /"
|
|
17458
17502
|
}
|
|
17459
17503
|
],
|
|
17460
17504
|
events: [
|
|
@@ -17946,7 +17990,8 @@ const q = "0.1.0", w = {
|
|
|
17946
17990
|
canvasSlots: [
|
|
17947
17991
|
"extra",
|
|
17948
17992
|
"footer",
|
|
17949
|
-
"description"
|
|
17993
|
+
"description",
|
|
17994
|
+
"icon"
|
|
17950
17995
|
],
|
|
17951
17996
|
defaultEnabledSlots: []
|
|
17952
17997
|
},
|
|
@@ -18208,9 +18253,62 @@ const q = "0.1.0", w = {
|
|
|
18208
18253
|
hidden: !1,
|
|
18209
18254
|
required: !1,
|
|
18210
18255
|
description: "指标补充说明位置:bottom(默认,数值下方靠左)、inline-end(数值同行右侧) */"
|
|
18256
|
+
},
|
|
18257
|
+
{
|
|
18258
|
+
name: "to",
|
|
18259
|
+
title: "to",
|
|
18260
|
+
type: "DrillTarget",
|
|
18261
|
+
control: "text",
|
|
18262
|
+
bindable: !1,
|
|
18263
|
+
advanced: !1,
|
|
18264
|
+
hidden: !1,
|
|
18265
|
+
required: !1,
|
|
18266
|
+
description: "穿透目标;传入后卡片呈链接态,可点击/键盘触发,组件仅透传不执行跳转 */"
|
|
18267
|
+
},
|
|
18268
|
+
{
|
|
18269
|
+
name: "clickable",
|
|
18270
|
+
title: "clickable",
|
|
18271
|
+
type: "boolean",
|
|
18272
|
+
control: "switch",
|
|
18273
|
+
bindable: !1,
|
|
18274
|
+
advanced: !1,
|
|
18275
|
+
hidden: !1,
|
|
18276
|
+
required: !1,
|
|
18277
|
+
description: "是否可点击;默认由 to 决定,允许无 to 但响应 click 的纯事件场景 */"
|
|
18278
|
+
},
|
|
18279
|
+
{
|
|
18280
|
+
name: "icon",
|
|
18281
|
+
title: "图标",
|
|
18282
|
+
type: "Component",
|
|
18283
|
+
control: "text",
|
|
18284
|
+
bindable: !1,
|
|
18285
|
+
advanced: !1,
|
|
18286
|
+
hidden: !1,
|
|
18287
|
+
required: !1,
|
|
18288
|
+
default: null,
|
|
18289
|
+
description: "前导图标组件(如 lucide-vue-next 的图标);传入后在卡片左侧渲染主题色浅底图标方块;与 #icon 插槽共存时插槽优先 */"
|
|
18290
|
+
},
|
|
18291
|
+
{
|
|
18292
|
+
name: "iconPlacement",
|
|
18293
|
+
title: "iconPlacement",
|
|
18294
|
+
type: "MetricIconPlacement",
|
|
18295
|
+
control: "text",
|
|
18296
|
+
bindable: !1,
|
|
18297
|
+
advanced: !1,
|
|
18298
|
+
hidden: !1,
|
|
18299
|
+
required: !1,
|
|
18300
|
+
default: "left",
|
|
18301
|
+
description: "图标位置,默认 left;top 保留 */"
|
|
18302
|
+
}
|
|
18303
|
+
],
|
|
18304
|
+
events: [
|
|
18305
|
+
{
|
|
18306
|
+
name: "click",
|
|
18307
|
+
eventName: "click",
|
|
18308
|
+
title: "click",
|
|
18309
|
+
payload: {}
|
|
18211
18310
|
}
|
|
18212
18311
|
],
|
|
18213
|
-
events: [],
|
|
18214
18312
|
slots: [
|
|
18215
18313
|
{
|
|
18216
18314
|
name: "extra",
|
|
@@ -18260,6 +18358,24 @@ const q = "0.1.0", w = {
|
|
|
18260
18358
|
defaultVisible: !1
|
|
18261
18359
|
},
|
|
18262
18360
|
kind: "canvas"
|
|
18361
|
+
},
|
|
18362
|
+
{
|
|
18363
|
+
name: "icon",
|
|
18364
|
+
title: "图标",
|
|
18365
|
+
accepts: [
|
|
18366
|
+
"basic",
|
|
18367
|
+
"layout",
|
|
18368
|
+
"form",
|
|
18369
|
+
"display"
|
|
18370
|
+
],
|
|
18371
|
+
multiple: !0,
|
|
18372
|
+
required: !1,
|
|
18373
|
+
editor: {
|
|
18374
|
+
droppable: !0,
|
|
18375
|
+
canvasVisible: !0,
|
|
18376
|
+
defaultVisible: !1
|
|
18377
|
+
},
|
|
18378
|
+
kind: "canvas"
|
|
18263
18379
|
}
|
|
18264
18380
|
],
|
|
18265
18381
|
customTypes: {
|
|
@@ -18269,6 +18385,33 @@ const q = "0.1.0", w = {
|
|
|
18269
18385
|
default: "—",
|
|
18270
18386
|
description: " 卡片内部 padding 尺寸 /"
|
|
18271
18387
|
}
|
|
18388
|
+
},
|
|
18389
|
+
DrillTarget: {
|
|
18390
|
+
name: {
|
|
18391
|
+
type: "string",
|
|
18392
|
+
default: "—",
|
|
18393
|
+
description: "路由名称(优先)"
|
|
18394
|
+
},
|
|
18395
|
+
path: {
|
|
18396
|
+
type: "string",
|
|
18397
|
+
default: "—",
|
|
18398
|
+
description: "路由路径(name 缺省时使用)"
|
|
18399
|
+
},
|
|
18400
|
+
params: {
|
|
18401
|
+
type: "Record<string, string|number>",
|
|
18402
|
+
default: "—",
|
|
18403
|
+
description: "路径参数"
|
|
18404
|
+
},
|
|
18405
|
+
query: {
|
|
18406
|
+
type: "Record<string, string|number|boolean>",
|
|
18407
|
+
default: "—",
|
|
18408
|
+
description: "查询参数;穿透携带的筛选条件放这里"
|
|
18409
|
+
},
|
|
18410
|
+
label: {
|
|
18411
|
+
type: "string",
|
|
18412
|
+
default: "—",
|
|
18413
|
+
description: "目标可读名称,用于无障碍播报"
|
|
18414
|
+
}
|
|
18272
18415
|
}
|
|
18273
18416
|
}
|
|
18274
18417
|
},
|
|
@@ -26425,6 +26568,17 @@ const q = "0.1.0", w = {
|
|
|
26425
26568
|
},
|
|
26426
26569
|
valueShape: '{ library: "lucide", name: string } | null',
|
|
26427
26570
|
runtimeTransform: "icon-value-to-lucide-name"
|
|
26571
|
+
},
|
|
26572
|
+
{
|
|
26573
|
+
name: "labelTip",
|
|
26574
|
+
title: "labelTip",
|
|
26575
|
+
type: "string",
|
|
26576
|
+
control: "text",
|
|
26577
|
+
bindable: !1,
|
|
26578
|
+
advanced: !1,
|
|
26579
|
+
hidden: !1,
|
|
26580
|
+
required: !1,
|
|
26581
|
+
description: "字段注释:字段名后问号图标,鼠标悬停复用 TfTooltip 气泡展示该字段用途;与控件下方常驻 tip 互斥/可选。"
|
|
26428
26582
|
}
|
|
26429
26583
|
],
|
|
26430
26584
|
events: [
|
|
@@ -27108,6 +27262,17 @@ const q = "0.1.0", w = {
|
|
|
27108
27262
|
required: !1,
|
|
27109
27263
|
description: "类型:(ctx: { prompt: string; value: any; label?: string }) => any | Promise<any>",
|
|
27110
27264
|
default: ""
|
|
27265
|
+
},
|
|
27266
|
+
{
|
|
27267
|
+
name: "labelTip",
|
|
27268
|
+
title: "labelTip",
|
|
27269
|
+
type: "string",
|
|
27270
|
+
control: "text",
|
|
27271
|
+
bindable: !1,
|
|
27272
|
+
advanced: !1,
|
|
27273
|
+
hidden: !1,
|
|
27274
|
+
required: !1,
|
|
27275
|
+
description: "字段注释:字段名后问号图标,鼠标悬停复用 TfTooltip 气泡展示该字段用途;与控件下方常驻 tip 互斥/可选。"
|
|
27111
27276
|
}
|
|
27112
27277
|
],
|
|
27113
27278
|
events: [
|
|
@@ -27841,6 +28006,17 @@ const q = "0.1.0", w = {
|
|
|
27841
28006
|
required: !1,
|
|
27842
28007
|
default: {},
|
|
27843
28008
|
description: "下拉选择配置对象,作为组件配置透传给内部 TfSelect。"
|
|
28009
|
+
},
|
|
28010
|
+
{
|
|
28011
|
+
name: "labelTip",
|
|
28012
|
+
title: "labelTip",
|
|
28013
|
+
type: "string",
|
|
28014
|
+
control: "text",
|
|
28015
|
+
bindable: !1,
|
|
28016
|
+
advanced: !1,
|
|
28017
|
+
hidden: !1,
|
|
28018
|
+
required: !1,
|
|
28019
|
+
description: "字段注释:字段名后问号图标,鼠标悬停复用 TfTooltip 气泡展示该字段用途;与控件下方常驻 tip 互斥/可选。"
|
|
27844
28020
|
}
|
|
27845
28021
|
],
|
|
27846
28022
|
events: [
|
|
@@ -28570,6 +28746,17 @@ const q = "0.1.0", w = {
|
|
|
28570
28746
|
required: !1,
|
|
28571
28747
|
description: "类型:(ctx: { prompt: string; value: any; label?: string }) => any | Promise<any>",
|
|
28572
28748
|
default: ""
|
|
28749
|
+
},
|
|
28750
|
+
{
|
|
28751
|
+
name: "labelTip",
|
|
28752
|
+
title: "labelTip",
|
|
28753
|
+
type: "string",
|
|
28754
|
+
control: "text",
|
|
28755
|
+
bindable: !1,
|
|
28756
|
+
advanced: !1,
|
|
28757
|
+
hidden: !1,
|
|
28758
|
+
required: !1,
|
|
28759
|
+
description: "字段注释:字段名后问号图标,鼠标悬停复用 TfTooltip 气泡展示该字段用途;与控件下方常驻 tip 互斥/可选。"
|
|
28573
28760
|
}
|
|
28574
28761
|
],
|
|
28575
28762
|
events: [
|
|
@@ -29172,6 +29359,17 @@ const q = "0.1.0", w = {
|
|
|
29172
29359
|
required: !1,
|
|
29173
29360
|
description: "类型:(ctx: { prompt: string; value: any; label?: string }) => any | Promise<any>",
|
|
29174
29361
|
default: ""
|
|
29362
|
+
},
|
|
29363
|
+
{
|
|
29364
|
+
name: "labelTip",
|
|
29365
|
+
title: "labelTip",
|
|
29366
|
+
type: "string",
|
|
29367
|
+
control: "text",
|
|
29368
|
+
bindable: !1,
|
|
29369
|
+
advanced: !1,
|
|
29370
|
+
hidden: !1,
|
|
29371
|
+
required: !1,
|
|
29372
|
+
description: "字段注释:字段名后问号图标,鼠标悬停复用 TfTooltip 气泡展示该字段用途;与控件下方常驻 tip 互斥/可选。"
|
|
29175
29373
|
}
|
|
29176
29374
|
],
|
|
29177
29375
|
events: [
|
|
@@ -29768,6 +29966,17 @@ const q = "0.1.0", w = {
|
|
|
29768
29966
|
required: !1,
|
|
29769
29967
|
description: "类型:(ctx: { prompt: string; value: any; label?: string }) => any | Promise<any>",
|
|
29770
29968
|
default: ""
|
|
29969
|
+
},
|
|
29970
|
+
{
|
|
29971
|
+
name: "labelTip",
|
|
29972
|
+
title: "labelTip",
|
|
29973
|
+
type: "string",
|
|
29974
|
+
control: "text",
|
|
29975
|
+
bindable: !1,
|
|
29976
|
+
advanced: !1,
|
|
29977
|
+
hidden: !1,
|
|
29978
|
+
required: !1,
|
|
29979
|
+
description: "字段注释:字段名后问号图标,鼠标悬停复用 TfTooltip 气泡展示该字段用途;与控件下方常驻 tip 互斥/可选。"
|
|
29771
29980
|
}
|
|
29772
29981
|
],
|
|
29773
29982
|
events: [
|
|
@@ -30361,6 +30570,17 @@ const q = "0.1.0", w = {
|
|
|
30361
30570
|
required: !1,
|
|
30362
30571
|
description: "类型:(ctx: { prompt: string; value: any; label?: string }) => any | Promise<any>",
|
|
30363
30572
|
default: ""
|
|
30573
|
+
},
|
|
30574
|
+
{
|
|
30575
|
+
name: "labelTip",
|
|
30576
|
+
title: "labelTip",
|
|
30577
|
+
type: "string",
|
|
30578
|
+
control: "text",
|
|
30579
|
+
bindable: !1,
|
|
30580
|
+
advanced: !1,
|
|
30581
|
+
hidden: !1,
|
|
30582
|
+
required: !1,
|
|
30583
|
+
description: "字段注释:字段名后问号图标,鼠标悬停复用 TfTooltip 气泡展示该字段用途;与控件下方常驻 tip 互斥/可选。"
|
|
30364
30584
|
}
|
|
30365
30585
|
],
|
|
30366
30586
|
events: [
|
|
@@ -31051,6 +31271,17 @@ const q = "0.1.0", w = {
|
|
|
31051
31271
|
required: !1,
|
|
31052
31272
|
description: "类型:(ctx: { prompt: string; value: any; label?: string }) => any | Promise<any>",
|
|
31053
31273
|
default: ""
|
|
31274
|
+
},
|
|
31275
|
+
{
|
|
31276
|
+
name: "labelTip",
|
|
31277
|
+
title: "labelTip",
|
|
31278
|
+
type: "string",
|
|
31279
|
+
control: "text",
|
|
31280
|
+
bindable: !1,
|
|
31281
|
+
advanced: !1,
|
|
31282
|
+
hidden: !1,
|
|
31283
|
+
required: !1,
|
|
31284
|
+
description: "字段注释:字段名后问号图标,鼠标悬停复用 TfTooltip 气泡展示该字段用途;与控件下方常驻 tip 互斥/可选。"
|
|
31054
31285
|
}
|
|
31055
31286
|
],
|
|
31056
31287
|
events: [
|
|
@@ -31731,6 +31962,17 @@ const q = "0.1.0", w = {
|
|
|
31731
31962
|
required: !1,
|
|
31732
31963
|
description: "类型:(ctx: { prompt: string; value: any; label?: string }) => any | Promise<any>",
|
|
31733
31964
|
default: ""
|
|
31965
|
+
},
|
|
31966
|
+
{
|
|
31967
|
+
name: "labelTip",
|
|
31968
|
+
title: "labelTip",
|
|
31969
|
+
type: "string",
|
|
31970
|
+
control: "text",
|
|
31971
|
+
bindable: !1,
|
|
31972
|
+
advanced: !1,
|
|
31973
|
+
hidden: !1,
|
|
31974
|
+
required: !1,
|
|
31975
|
+
description: "字段注释:字段名后问号图标,鼠标悬停复用 TfTooltip 气泡展示该字段用途;与控件下方常驻 tip 互斥/可选。"
|
|
31734
31976
|
}
|
|
31735
31977
|
],
|
|
31736
31978
|
events: [
|
|
@@ -32378,6 +32620,17 @@ const q = "0.1.0", w = {
|
|
|
32378
32620
|
required: !1,
|
|
32379
32621
|
description: "类型:(ctx: { prompt: string; value: any; label?: string }) => any | Promise<any>",
|
|
32380
32622
|
default: ""
|
|
32623
|
+
},
|
|
32624
|
+
{
|
|
32625
|
+
name: "labelTip",
|
|
32626
|
+
title: "labelTip",
|
|
32627
|
+
type: "string",
|
|
32628
|
+
control: "text",
|
|
32629
|
+
bindable: !1,
|
|
32630
|
+
advanced: !1,
|
|
32631
|
+
hidden: !1,
|
|
32632
|
+
required: !1,
|
|
32633
|
+
description: "字段注释:字段名后问号图标,鼠标悬停复用 TfTooltip 气泡展示该字段用途;与控件下方常驻 tip 互斥/可选。"
|
|
32381
32634
|
}
|
|
32382
32635
|
],
|
|
32383
32636
|
events: [
|
|
@@ -33022,6 +33275,17 @@ const q = "0.1.0", w = {
|
|
|
33022
33275
|
required: !1,
|
|
33023
33276
|
description: "类型:(ctx: { prompt: string; value: any; label?: string }) => any | Promise<any>",
|
|
33024
33277
|
default: ""
|
|
33278
|
+
},
|
|
33279
|
+
{
|
|
33280
|
+
name: "labelTip",
|
|
33281
|
+
title: "labelTip",
|
|
33282
|
+
type: "string",
|
|
33283
|
+
control: "text",
|
|
33284
|
+
bindable: !1,
|
|
33285
|
+
advanced: !1,
|
|
33286
|
+
hidden: !1,
|
|
33287
|
+
required: !1,
|
|
33288
|
+
description: "字段注释:字段名后问号图标,鼠标悬停复用 TfTooltip 气泡展示该字段用途;与控件下方常驻 tip 互斥/可选。"
|
|
33025
33289
|
}
|
|
33026
33290
|
],
|
|
33027
33291
|
events: [
|
|
@@ -33662,6 +33926,17 @@ const q = "0.1.0", w = {
|
|
|
33662
33926
|
required: !1,
|
|
33663
33927
|
description: "类型:(ctx: { prompt: string; value: any; label?: string }) => any | Promise<any>",
|
|
33664
33928
|
default: ""
|
|
33929
|
+
},
|
|
33930
|
+
{
|
|
33931
|
+
name: "labelTip",
|
|
33932
|
+
title: "labelTip",
|
|
33933
|
+
type: "string",
|
|
33934
|
+
control: "text",
|
|
33935
|
+
bindable: !1,
|
|
33936
|
+
advanced: !1,
|
|
33937
|
+
hidden: !1,
|
|
33938
|
+
required: !1,
|
|
33939
|
+
description: "字段注释:字段名后问号图标,鼠标悬停复用 TfTooltip 气泡展示该字段用途;与控件下方常驻 tip 互斥/可选。"
|
|
33665
33940
|
}
|
|
33666
33941
|
],
|
|
33667
33942
|
events: [
|
|
@@ -34279,6 +34554,17 @@ const q = "0.1.0", w = {
|
|
|
34279
34554
|
required: !1,
|
|
34280
34555
|
description: "类型:(ctx: { prompt: string; value: any; label?: string }) => any | Promise<any>",
|
|
34281
34556
|
default: ""
|
|
34557
|
+
},
|
|
34558
|
+
{
|
|
34559
|
+
name: "labelTip",
|
|
34560
|
+
title: "labelTip",
|
|
34561
|
+
type: "string",
|
|
34562
|
+
control: "text",
|
|
34563
|
+
bindable: !1,
|
|
34564
|
+
advanced: !1,
|
|
34565
|
+
hidden: !1,
|
|
34566
|
+
required: !1,
|
|
34567
|
+
description: "字段注释:字段名后问号图标,鼠标悬停复用 TfTooltip 气泡展示该字段用途;与控件下方常驻 tip 互斥/可选。"
|
|
34282
34568
|
}
|
|
34283
34569
|
],
|
|
34284
34570
|
events: [
|
|
@@ -34878,6 +35164,17 @@ const q = "0.1.0", w = {
|
|
|
34878
35164
|
required: !1,
|
|
34879
35165
|
description: "类型:(ctx: { prompt: string; value: any; label?: string }) => any | Promise<any>",
|
|
34880
35166
|
default: ""
|
|
35167
|
+
},
|
|
35168
|
+
{
|
|
35169
|
+
name: "labelTip",
|
|
35170
|
+
title: "labelTip",
|
|
35171
|
+
type: "string",
|
|
35172
|
+
control: "text",
|
|
35173
|
+
bindable: !1,
|
|
35174
|
+
advanced: !1,
|
|
35175
|
+
hidden: !1,
|
|
35176
|
+
required: !1,
|
|
35177
|
+
description: "字段注释:字段名后问号图标,鼠标悬停复用 TfTooltip 气泡展示该字段用途;与控件下方常驻 tip 互斥/可选。"
|
|
34881
35178
|
}
|
|
34882
35179
|
],
|
|
34883
35180
|
events: [
|
|
@@ -36096,6 +36393,17 @@ const q = "0.1.0", w = {
|
|
|
36096
36393
|
required: !1,
|
|
36097
36394
|
description: "类型:FormSize",
|
|
36098
36395
|
default: "sm"
|
|
36396
|
+
},
|
|
36397
|
+
{
|
|
36398
|
+
name: "labelTip",
|
|
36399
|
+
title: "labelTip",
|
|
36400
|
+
type: "string",
|
|
36401
|
+
control: "text",
|
|
36402
|
+
bindable: !1,
|
|
36403
|
+
advanced: !1,
|
|
36404
|
+
hidden: !1,
|
|
36405
|
+
required: !1,
|
|
36406
|
+
description: "字段注释:字段名后问号图标,鼠标悬停复用 TfTooltip 气泡展示该字段用途;与控件下方常驻 tip 互斥/可选。"
|
|
36099
36407
|
}
|
|
36100
36408
|
],
|
|
36101
36409
|
events: [
|
|
@@ -36794,6 +37102,17 @@ const q = "0.1.0", w = {
|
|
|
36794
37102
|
required: !1,
|
|
36795
37103
|
description: "类型:FormSize",
|
|
36796
37104
|
default: "sm"
|
|
37105
|
+
},
|
|
37106
|
+
{
|
|
37107
|
+
name: "labelTip",
|
|
37108
|
+
title: "labelTip",
|
|
37109
|
+
type: "string",
|
|
37110
|
+
control: "text",
|
|
37111
|
+
bindable: !1,
|
|
37112
|
+
advanced: !1,
|
|
37113
|
+
hidden: !1,
|
|
37114
|
+
required: !1,
|
|
37115
|
+
description: "字段注释:字段名后问号图标,鼠标悬停复用 TfTooltip 气泡展示该字段用途;与控件下方常驻 tip 互斥/可选。"
|
|
36797
37116
|
}
|
|
36798
37117
|
],
|
|
36799
37118
|
events: [
|
|
@@ -37405,6 +37724,17 @@ const q = "0.1.0", w = {
|
|
|
37405
37724
|
required: !1,
|
|
37406
37725
|
description: "类型:FormSize",
|
|
37407
37726
|
default: "sm"
|
|
37727
|
+
},
|
|
37728
|
+
{
|
|
37729
|
+
name: "labelTip",
|
|
37730
|
+
title: "labelTip",
|
|
37731
|
+
type: "string",
|
|
37732
|
+
control: "text",
|
|
37733
|
+
bindable: !1,
|
|
37734
|
+
advanced: !1,
|
|
37735
|
+
hidden: !1,
|
|
37736
|
+
required: !1,
|
|
37737
|
+
description: "字段注释:字段名后问号图标,鼠标悬停复用 TfTooltip 气泡展示该字段用途;与控件下方常驻 tip 互斥/可选。"
|
|
37408
37738
|
}
|
|
37409
37739
|
],
|
|
37410
37740
|
events: [
|
|
@@ -38004,6 +38334,17 @@ const q = "0.1.0", w = {
|
|
|
38004
38334
|
required: !1,
|
|
38005
38335
|
description: "类型:FormSize",
|
|
38006
38336
|
default: "sm"
|
|
38337
|
+
},
|
|
38338
|
+
{
|
|
38339
|
+
name: "labelTip",
|
|
38340
|
+
title: "labelTip",
|
|
38341
|
+
type: "string",
|
|
38342
|
+
control: "text",
|
|
38343
|
+
bindable: !1,
|
|
38344
|
+
advanced: !1,
|
|
38345
|
+
hidden: !1,
|
|
38346
|
+
required: !1,
|
|
38347
|
+
description: "字段注释:字段名后问号图标,鼠标悬停复用 TfTooltip 气泡展示该字段用途;与控件下方常驻 tip 互斥/可选。"
|
|
38007
38348
|
}
|
|
38008
38349
|
],
|
|
38009
38350
|
events: [
|
|
@@ -38611,6 +38952,25 @@ const q = "0.1.0", w = {
|
|
|
38611
38952
|
displayMode: "readonly",
|
|
38612
38953
|
description: "主实体 ID,由业务对象或 BOS 页面上下文自动注入,用于确定列表主数据来源,设计态不建议手动修改。"
|
|
38613
38954
|
},
|
|
38955
|
+
{
|
|
38956
|
+
bindable: !0,
|
|
38957
|
+
advanced: !1,
|
|
38958
|
+
hidden: !1,
|
|
38959
|
+
required: !1,
|
|
38960
|
+
name: "bizType",
|
|
38961
|
+
title: "业务类型ID",
|
|
38962
|
+
type: [
|
|
38963
|
+
"string",
|
|
38964
|
+
"number"
|
|
38965
|
+
],
|
|
38966
|
+
control: "text",
|
|
38967
|
+
group: "context",
|
|
38968
|
+
order: 25,
|
|
38969
|
+
description: "业务类型 ID,由页面或业务对象上下文自动注入,作为通用列表的业务上下文,设计态不建议手动修改。",
|
|
38970
|
+
source: "system",
|
|
38971
|
+
readonly: !0,
|
|
38972
|
+
displayMode: "readonly"
|
|
38973
|
+
},
|
|
38614
38974
|
{
|
|
38615
38975
|
bindable: !0,
|
|
38616
38976
|
advanced: !1,
|
|
@@ -39417,17 +39777,21 @@ const q = "0.1.0", w = {
|
|
|
39417
39777
|
},
|
|
39418
39778
|
{
|
|
39419
39779
|
name: "subTableConfig",
|
|
39420
|
-
title: "
|
|
39780
|
+
title: "子表配置",
|
|
39421
39781
|
type: "SubTableConfig",
|
|
39422
|
-
control: "
|
|
39782
|
+
control: "object-editor",
|
|
39423
39783
|
bindable: !1,
|
|
39424
39784
|
advanced: !1,
|
|
39425
39785
|
hidden: !1,
|
|
39426
|
-
required: !1
|
|
39786
|
+
required: !1,
|
|
39787
|
+
group: "body",
|
|
39788
|
+
order: 10,
|
|
39789
|
+
description: "子表显示、编辑、分页和行操作配置。",
|
|
39790
|
+
inspectorTab: "business"
|
|
39427
39791
|
},
|
|
39428
39792
|
{
|
|
39429
39793
|
name: "useExternalFilter",
|
|
39430
|
-
title: "
|
|
39794
|
+
title: "启用外挂筛选条",
|
|
39431
39795
|
type: "boolean",
|
|
39432
39796
|
control: "switch",
|
|
39433
39797
|
bindable: !1,
|
|
@@ -39435,23 +39799,29 @@ const q = "0.1.0", w = {
|
|
|
39435
39799
|
hidden: !1,
|
|
39436
39800
|
required: !1,
|
|
39437
39801
|
default: !1,
|
|
39438
|
-
description: "
|
|
39802
|
+
description: "启用后使用 filter-bar 插槽承载外部筛选控件,并隐藏内置过滤交互。",
|
|
39803
|
+
group: "query",
|
|
39804
|
+
order: 40,
|
|
39805
|
+
inspectorTab: "business"
|
|
39439
39806
|
},
|
|
39440
39807
|
{
|
|
39441
39808
|
name: "complexFilter",
|
|
39442
|
-
title: "
|
|
39809
|
+
title: "外挂复杂筛选条件",
|
|
39443
39810
|
type: "Array<Record<string, unknown>>",
|
|
39444
39811
|
control: "json",
|
|
39445
|
-
bindable: !
|
|
39812
|
+
bindable: !0,
|
|
39446
39813
|
advanced: !1,
|
|
39447
39814
|
hidden: !1,
|
|
39448
39815
|
required: !1,
|
|
39449
39816
|
default: [],
|
|
39450
|
-
description: "
|
|
39817
|
+
description: "外挂筛选条件;启用 useExternalFilter 后作为 complexFilterList 传给后端。",
|
|
39818
|
+
group: "query",
|
|
39819
|
+
order: 50,
|
|
39820
|
+
inspectorTab: "business"
|
|
39451
39821
|
},
|
|
39452
39822
|
{
|
|
39453
39823
|
name: "useApiTableBodies",
|
|
39454
|
-
title: "
|
|
39824
|
+
title: "使用接口表体配置",
|
|
39455
39825
|
type: "boolean",
|
|
39456
39826
|
control: "switch",
|
|
39457
39827
|
bindable: !1,
|
|
@@ -39459,7 +39829,200 @@ const q = "0.1.0", w = {
|
|
|
39459
39829
|
hidden: !1,
|
|
39460
39830
|
required: !1,
|
|
39461
39831
|
default: !1,
|
|
39462
|
-
description: "
|
|
39832
|
+
description: "是否使用接口返回的 data.tableBodies 作为表体和列配置。",
|
|
39833
|
+
group: "context",
|
|
39834
|
+
order: 25,
|
|
39835
|
+
inspectorTab: "business"
|
|
39836
|
+
},
|
|
39837
|
+
{
|
|
39838
|
+
name: "groupPanelTitle",
|
|
39839
|
+
title: "groupPanelTitle",
|
|
39840
|
+
type: "string",
|
|
39841
|
+
control: "text",
|
|
39842
|
+
bindable: !1,
|
|
39843
|
+
advanced: !1,
|
|
39844
|
+
hidden: !1,
|
|
39845
|
+
required: !1,
|
|
39846
|
+
default: "目录导航",
|
|
39847
|
+
description: "左侧分组面板标题栏文字"
|
|
39848
|
+
},
|
|
39849
|
+
{
|
|
39850
|
+
name: "groupPanelMultiSelect",
|
|
39851
|
+
title: "groupPanelMultiSelect",
|
|
39852
|
+
type: "boolean",
|
|
39853
|
+
control: "switch",
|
|
39854
|
+
bindable: !1,
|
|
39855
|
+
advanced: !1,
|
|
39856
|
+
hidden: !1,
|
|
39857
|
+
required: !1,
|
|
39858
|
+
default: !1,
|
|
39859
|
+
description: "左侧分组面板是否开启多条件筛选模式(单选 ⇄ 多选)。支持 v-model:group-panel-multi-select"
|
|
39860
|
+
},
|
|
39861
|
+
{
|
|
39862
|
+
name: "groupPanelSelectedIds",
|
|
39863
|
+
title: "groupPanelSelectedIds",
|
|
39864
|
+
type: "string[]",
|
|
39865
|
+
control: "json",
|
|
39866
|
+
bindable: !1,
|
|
39867
|
+
advanced: !1,
|
|
39868
|
+
hidden: !1,
|
|
39869
|
+
required: !1,
|
|
39870
|
+
default: [],
|
|
39871
|
+
description: "左侧分组面板多选模式下选中的子分组 id 列表。支持 v-model:group-panel-selected-ids"
|
|
39872
|
+
},
|
|
39873
|
+
{
|
|
39874
|
+
name: "groupPanelAllLabel",
|
|
39875
|
+
title: "groupPanelAllLabel",
|
|
39876
|
+
type: "string",
|
|
39877
|
+
control: "text",
|
|
39878
|
+
bindable: !1,
|
|
39879
|
+
advanced: !1,
|
|
39880
|
+
hidden: !1,
|
|
39881
|
+
required: !1,
|
|
39882
|
+
default: "全部",
|
|
39883
|
+
description: '左侧分组面板顶部"全部"复位行文字。单选下点击清空筛选;多选下仅占位不可交互'
|
|
39884
|
+
},
|
|
39885
|
+
{
|
|
39886
|
+
name: "groupPanelAllCount",
|
|
39887
|
+
title: "groupPanelAllCount",
|
|
39888
|
+
type: "number",
|
|
39889
|
+
control: "number",
|
|
39890
|
+
bindable: !1,
|
|
39891
|
+
advanced: !1,
|
|
39892
|
+
hidden: !1,
|
|
39893
|
+
required: !1,
|
|
39894
|
+
default: 0,
|
|
39895
|
+
description: '"全部" 分组对应的单据总数,在名称后以 (n) 显示,未提供时按 0 处理'
|
|
39896
|
+
},
|
|
39897
|
+
{
|
|
39898
|
+
name: "initialGroups",
|
|
39899
|
+
title: "initialGroups",
|
|
39900
|
+
type: "GroupNode[]",
|
|
39901
|
+
control: "json",
|
|
39902
|
+
bindable: !1,
|
|
39903
|
+
advanced: !1,
|
|
39904
|
+
hidden: !1,
|
|
39905
|
+
required: !1,
|
|
39906
|
+
description: "初始分组数据。传入后挂载时用它覆盖本地存储读取到的 groups(demo/前端 mock 用)"
|
|
39907
|
+
},
|
|
39908
|
+
{
|
|
39909
|
+
name: "toolbarButtons",
|
|
39910
|
+
title: "顶部自定义按钮",
|
|
39911
|
+
type: "GeneralListButtonConfig[]",
|
|
39912
|
+
control: "button-list-editor",
|
|
39913
|
+
bindable: !1,
|
|
39914
|
+
advanced: !1,
|
|
39915
|
+
hidden: !1,
|
|
39916
|
+
required: !1,
|
|
39917
|
+
default: [],
|
|
39918
|
+
description: "直接显示在通用列表顶部按钮栏中的自定义按钮;点击后触发 button-command。",
|
|
39919
|
+
fallbackControl: "json",
|
|
39920
|
+
group: "actions",
|
|
39921
|
+
order: 35,
|
|
39922
|
+
inspectorTab: "business",
|
|
39923
|
+
itemSchema: {
|
|
39924
|
+
type: "object",
|
|
39925
|
+
required: [
|
|
39926
|
+
"key",
|
|
39927
|
+
"label"
|
|
39928
|
+
],
|
|
39929
|
+
uniqueBy: "key",
|
|
39930
|
+
persistableFields: [
|
|
39931
|
+
"key",
|
|
39932
|
+
"label",
|
|
39933
|
+
"type",
|
|
39934
|
+
"disabled"
|
|
39935
|
+
],
|
|
39936
|
+
runtimeOnlyFields: [
|
|
39937
|
+
"callback"
|
|
39938
|
+
],
|
|
39939
|
+
properties: {
|
|
39940
|
+
key: {
|
|
39941
|
+
name: "key",
|
|
39942
|
+
title: "按钮标识",
|
|
39943
|
+
type: "string",
|
|
39944
|
+
control: "text",
|
|
39945
|
+
required: !0,
|
|
39946
|
+
unique: !0,
|
|
39947
|
+
description: "按钮唯一标识,点击事件 payload.key 将使用该值。"
|
|
39948
|
+
},
|
|
39949
|
+
label: {
|
|
39950
|
+
name: "label",
|
|
39951
|
+
title: "按钮文字",
|
|
39952
|
+
type: "string",
|
|
39953
|
+
control: "text",
|
|
39954
|
+
required: !0
|
|
39955
|
+
},
|
|
39956
|
+
type: {
|
|
39957
|
+
name: "type",
|
|
39958
|
+
title: "按钮类型",
|
|
39959
|
+
type: "'primary' | 'success' | 'warning' | 'error' | 'default'",
|
|
39960
|
+
control: "select",
|
|
39961
|
+
required: !1,
|
|
39962
|
+
default: "default"
|
|
39963
|
+
},
|
|
39964
|
+
disabled: {
|
|
39965
|
+
name: "disabled",
|
|
39966
|
+
title: "禁用",
|
|
39967
|
+
type: "boolean",
|
|
39968
|
+
control: "switch",
|
|
39969
|
+
required: !1,
|
|
39970
|
+
default: !1
|
|
39971
|
+
}
|
|
39972
|
+
}
|
|
39973
|
+
},
|
|
39974
|
+
editor: {
|
|
39975
|
+
capabilities: [
|
|
39976
|
+
"add",
|
|
39977
|
+
"delete",
|
|
39978
|
+
"reorder",
|
|
39979
|
+
"edit"
|
|
39980
|
+
],
|
|
39981
|
+
uniqueFields: [
|
|
39982
|
+
"key"
|
|
39983
|
+
],
|
|
39984
|
+
persistableFields: [
|
|
39985
|
+
"key",
|
|
39986
|
+
"label",
|
|
39987
|
+
"type",
|
|
39988
|
+
"disabled"
|
|
39989
|
+
],
|
|
39990
|
+
runtimeOnlyFields: [
|
|
39991
|
+
"callback"
|
|
39992
|
+
]
|
|
39993
|
+
},
|
|
39994
|
+
persistence: {
|
|
39995
|
+
fields: [
|
|
39996
|
+
"key",
|
|
39997
|
+
"label",
|
|
39998
|
+
"type",
|
|
39999
|
+
"disabled"
|
|
40000
|
+
],
|
|
40001
|
+
runtimeOnlyFields: [
|
|
40002
|
+
"callback"
|
|
40003
|
+
],
|
|
40004
|
+
uniqueFields: [
|
|
40005
|
+
"key"
|
|
40006
|
+
]
|
|
40007
|
+
}
|
|
40008
|
+
}
|
|
40009
|
+
],
|
|
40010
|
+
methods: [
|
|
40011
|
+
{
|
|
40012
|
+
name: "refresh",
|
|
40013
|
+
title: "刷新列表",
|
|
40014
|
+
callable: !0,
|
|
40015
|
+
returnType: "Promise<void>",
|
|
40016
|
+
actionType: "component.method",
|
|
40017
|
+
description: "重新请求通用列表数据,保留当前筛选、搜索、分页、排序和列配置状态。"
|
|
40018
|
+
},
|
|
40019
|
+
{
|
|
40020
|
+
name: "exportDataList",
|
|
40021
|
+
title: "按个人配置导出数据列表",
|
|
40022
|
+
callable: !0,
|
|
40023
|
+
returnType: "Promise<void>",
|
|
40024
|
+
actionType: "component.method",
|
|
40025
|
+
description: "按当前列表状态和个人列配置调用列表导出接口;第一版仅发送请求,不处理异步任务结果。"
|
|
39463
40026
|
}
|
|
39464
40027
|
],
|
|
39465
40028
|
events: [
|
|
@@ -39622,6 +40185,30 @@ const q = "0.1.0", w = {
|
|
|
39622
40185
|
},
|
|
39623
40186
|
group: "table",
|
|
39624
40187
|
order: 120
|
|
40188
|
+
},
|
|
40189
|
+
{
|
|
40190
|
+
name: "update:groupPanelMultiSelect",
|
|
40191
|
+
eventName: "update:groupPanelMultiSelect",
|
|
40192
|
+
title: "update:groupPanelMultiSelect",
|
|
40193
|
+
payload: {
|
|
40194
|
+
params: "boolean"
|
|
40195
|
+
}
|
|
40196
|
+
},
|
|
40197
|
+
{
|
|
40198
|
+
name: "update:groupPanelSelectedIds",
|
|
40199
|
+
eventName: "update:groupPanelSelectedIds",
|
|
40200
|
+
title: "update:groupPanelSelectedIds",
|
|
40201
|
+
payload: {
|
|
40202
|
+
params: "string[]"
|
|
40203
|
+
}
|
|
40204
|
+
},
|
|
40205
|
+
{
|
|
40206
|
+
name: "groupPanelMultiSelectChange",
|
|
40207
|
+
eventName: "group-panel-multi-select-change",
|
|
40208
|
+
title: "group-panel-multi-select-change",
|
|
40209
|
+
payload: {
|
|
40210
|
+
params: "Array<{ id: string; name: string; conditions: FilterCondition[] }>"
|
|
40211
|
+
}
|
|
39625
40212
|
}
|
|
39626
40213
|
],
|
|
39627
40214
|
slots: [
|
|
@@ -40199,7 +40786,8 @@ const q = "0.1.0", w = {
|
|
|
40199
40786
|
hidden: "hiddenButtons",
|
|
40200
40787
|
disabled: "disabledButtons",
|
|
40201
40788
|
customBusiness: "businessButtons",
|
|
40202
|
-
customOption: "optionButtons"
|
|
40789
|
+
customOption: "optionButtons",
|
|
40790
|
+
customToolbar: "toolbarButtons"
|
|
40203
40791
|
},
|
|
40204
40792
|
columns: [
|
|
40205
40793
|
{
|
|
@@ -40278,6 +40866,11 @@ const q = "0.1.0", w = {
|
|
|
40278
40866
|
default: "false",
|
|
40279
40867
|
description: "是否禁用"
|
|
40280
40868
|
},
|
|
40869
|
+
children: {
|
|
40870
|
+
type: "GeneralListButtonConfig[]",
|
|
40871
|
+
default: "[]",
|
|
40872
|
+
description: "递归下拉子菜单"
|
|
40873
|
+
},
|
|
40281
40874
|
callback: {
|
|
40282
40875
|
type: "function",
|
|
40283
40876
|
default: "—",
|
|
@@ -40379,6 +40972,33 @@ const q = "0.1.0", w = {
|
|
|
40379
40972
|
rowSelection: {
|
|
40380
40973
|
type: "'single' | 'multiple' | 'none'"
|
|
40381
40974
|
}
|
|
40975
|
+
},
|
|
40976
|
+
GeneralListButtonConfig: {
|
|
40977
|
+
key: {
|
|
40978
|
+
type: "string",
|
|
40979
|
+
default: "—",
|
|
40980
|
+
description: "按钮唯一标识,必须唯一"
|
|
40981
|
+
},
|
|
40982
|
+
label: {
|
|
40983
|
+
type: "string",
|
|
40984
|
+
default: "—",
|
|
40985
|
+
description: "按钮显示文字"
|
|
40986
|
+
},
|
|
40987
|
+
type: {
|
|
40988
|
+
type: "'primary' | 'success' | 'warning' | 'error' | 'default'",
|
|
40989
|
+
default: "—",
|
|
40990
|
+
description: "TfButton 类型"
|
|
40991
|
+
},
|
|
40992
|
+
disabled: {
|
|
40993
|
+
type: "boolean",
|
|
40994
|
+
default: "false",
|
|
40995
|
+
description: "是否禁用"
|
|
40996
|
+
},
|
|
40997
|
+
children: {
|
|
40998
|
+
type: "GeneralListButtonConfig[]",
|
|
40999
|
+
default: "[]",
|
|
41000
|
+
description: "递归下拉子菜单"
|
|
41001
|
+
}
|
|
40382
41002
|
}
|
|
40383
41003
|
}
|
|
40384
41004
|
},
|
|
@@ -40399,7 +41019,8 @@ const q = "0.1.0", w = {
|
|
|
40399
41019
|
"如果 BOS 字段项包含 id,应写入列项 fieldId;fieldId 只表示字段来源 ID,不替代作为行数据路径的 field。",
|
|
40400
41020
|
"顶层 columns 仅为历史兼容,不作为新页面通用列表主列配置入口。",
|
|
40401
41021
|
"隐藏或禁用内置按钮使用 hiddenButtons / disabledButtons,扩展按钮使用 businessButtons / optionButtons。",
|
|
40402
|
-
"不要在低代码事件系统里硬编码通用查询接口,只监听 button-command 做业务扩展。"
|
|
41022
|
+
"不要在低代码事件系统里硬编码通用查询接口,只监听 button-command 做业务扩展。",
|
|
41023
|
+
"顶部自定义按钮使用 toolbarButtons,点击后监听 button-command。"
|
|
40403
41024
|
]
|
|
40404
41025
|
}
|
|
40405
41026
|
},
|
|
@@ -40781,7 +41402,7 @@ const q = "0.1.0", w = {
|
|
|
40781
41402
|
required: !1,
|
|
40782
41403
|
group: "actions",
|
|
40783
41404
|
order: 10,
|
|
40784
|
-
description: "
|
|
41405
|
+
description: "控制按钮显隐、文案、禁用等 UI 行为;详情页 Excel 动作使用 actionMenu 中声明的嵌套动作树。通用保存、提交等接口逻辑由组件内部处理。",
|
|
40785
41406
|
source: "design",
|
|
40786
41407
|
displayMode: "advanced"
|
|
40787
41408
|
},
|
|
@@ -41826,7 +42447,60 @@ const q = "0.1.0", w = {
|
|
|
41826
42447
|
updateEvent: "update:modelValue"
|
|
41827
42448
|
},
|
|
41828
42449
|
triggers: [],
|
|
41829
|
-
actions: []
|
|
42450
|
+
actions: [],
|
|
42451
|
+
actionMenu: {
|
|
42452
|
+
root: "option-group",
|
|
42453
|
+
title: "选项",
|
|
42454
|
+
tree: [
|
|
42455
|
+
{
|
|
42456
|
+
key: "import",
|
|
42457
|
+
title: "引入",
|
|
42458
|
+
executable: !1,
|
|
42459
|
+
children: [
|
|
42460
|
+
{
|
|
42461
|
+
key: "downloadImportTemplate",
|
|
42462
|
+
title: "模板下载",
|
|
42463
|
+
executable: !0,
|
|
42464
|
+
endpoint: "/api/lowcode/excel/downloadImportTemplate",
|
|
42465
|
+
excelTypes: {
|
|
42466
|
+
XLSX: 1,
|
|
42467
|
+
XLS: 2
|
|
42468
|
+
}
|
|
42469
|
+
},
|
|
42470
|
+
{
|
|
42471
|
+
key: "importData",
|
|
42472
|
+
title: "数据导入",
|
|
42473
|
+
executable: !0,
|
|
42474
|
+
endpoint: "/api/lowcode/excel/importData",
|
|
42475
|
+
accepts: [
|
|
42476
|
+
".xlsx",
|
|
42477
|
+
".xls"
|
|
42478
|
+
],
|
|
42479
|
+
partialSuccessDefault: !0
|
|
42480
|
+
}
|
|
42481
|
+
]
|
|
42482
|
+
},
|
|
42483
|
+
{
|
|
42484
|
+
key: "export",
|
|
42485
|
+
title: "引出",
|
|
42486
|
+
executable: !0,
|
|
42487
|
+
endpoint: "/api/lowcode/excel/exportDataList",
|
|
42488
|
+
payload: [
|
|
42489
|
+
"pageId",
|
|
42490
|
+
"entityId",
|
|
42491
|
+
"dataId",
|
|
42492
|
+
"excelType"
|
|
42493
|
+
],
|
|
42494
|
+
fixedExcelType: 1
|
|
42495
|
+
}
|
|
42496
|
+
],
|
|
42497
|
+
compatibilityAliases: {
|
|
42498
|
+
"export-group": "export",
|
|
42499
|
+
"export-list": "export",
|
|
42500
|
+
"export-template": "export"
|
|
42501
|
+
},
|
|
42502
|
+
asyncResultHandling: "initial-request-only"
|
|
42503
|
+
}
|
|
41830
42504
|
},
|
|
41831
42505
|
agent: {
|
|
41832
42506
|
semanticType: "document_form_shell",
|
|
@@ -45482,7 +46156,7 @@ const q = "0.1.0", w = {
|
|
|
45482
46156
|
},
|
|
45483
46157
|
{
|
|
45484
46158
|
name: "useApiTableBodies",
|
|
45485
|
-
title: "
|
|
46159
|
+
title: "使用接口表体配置",
|
|
45486
46160
|
type: "boolean",
|
|
45487
46161
|
control: "switch",
|
|
45488
46162
|
bindable: !1,
|
|
@@ -46348,6 +47022,17 @@ const q = "0.1.0", w = {
|
|
|
46348
47022
|
advanced: !1,
|
|
46349
47023
|
hidden: !1,
|
|
46350
47024
|
required: !1
|
|
47025
|
+
},
|
|
47026
|
+
{
|
|
47027
|
+
name: "labelTip",
|
|
47028
|
+
title: "labelTip",
|
|
47029
|
+
type: "string",
|
|
47030
|
+
control: "text",
|
|
47031
|
+
bindable: !1,
|
|
47032
|
+
advanced: !1,
|
|
47033
|
+
hidden: !1,
|
|
47034
|
+
required: !1,
|
|
47035
|
+
description: "字段注释:字段名后问号图标,鼠标悬停复用 TfTooltip 气泡展示该字段用途;与控件下方常驻 tip 互斥/可选。"
|
|
46351
47036
|
}
|
|
46352
47037
|
],
|
|
46353
47038
|
events: [
|
|
@@ -48105,6 +48790,17 @@ const q = "0.1.0", w = {
|
|
|
48105
48790
|
required: !1,
|
|
48106
48791
|
default: {},
|
|
48107
48792
|
description: "整数输入配置对象,作为组件配置透传给内部 TfNumberInput。"
|
|
48793
|
+
},
|
|
48794
|
+
{
|
|
48795
|
+
name: "labelTip",
|
|
48796
|
+
title: "labelTip",
|
|
48797
|
+
type: "string",
|
|
48798
|
+
control: "text",
|
|
48799
|
+
bindable: !1,
|
|
48800
|
+
advanced: !1,
|
|
48801
|
+
hidden: !1,
|
|
48802
|
+
required: !1,
|
|
48803
|
+
description: "字段注释:字段名后问号图标,鼠标悬停复用 TfTooltip 气泡展示该字段用途;与控件下方常驻 tip 互斥/可选。"
|
|
48108
48804
|
}
|
|
48109
48805
|
],
|
|
48110
48806
|
events: [
|
|
@@ -48699,6 +49395,17 @@ const q = "0.1.0", w = {
|
|
|
48699
49395
|
required: !1,
|
|
48700
49396
|
default: {},
|
|
48701
49397
|
description: "小数输入配置对象,作为组件配置透传给内部 TfDecimalInput。"
|
|
49398
|
+
},
|
|
49399
|
+
{
|
|
49400
|
+
name: "labelTip",
|
|
49401
|
+
title: "labelTip",
|
|
49402
|
+
type: "string",
|
|
49403
|
+
control: "text",
|
|
49404
|
+
bindable: !1,
|
|
49405
|
+
advanced: !1,
|
|
49406
|
+
hidden: !1,
|
|
49407
|
+
required: !1,
|
|
49408
|
+
description: "字段注释:字段名后问号图标,鼠标悬停复用 TfTooltip 气泡展示该字段用途;与控件下方常驻 tip 互斥/可选。"
|
|
48702
49409
|
}
|
|
48703
49410
|
],
|
|
48704
49411
|
events: [
|
|
@@ -49258,6 +49965,17 @@ const q = "0.1.0", w = {
|
|
|
49258
49965
|
hidden: !1,
|
|
49259
49966
|
required: !1,
|
|
49260
49967
|
default: !1
|
|
49968
|
+
},
|
|
49969
|
+
{
|
|
49970
|
+
name: "labelTip",
|
|
49971
|
+
title: "labelTip",
|
|
49972
|
+
type: "string",
|
|
49973
|
+
control: "text",
|
|
49974
|
+
bindable: !1,
|
|
49975
|
+
advanced: !1,
|
|
49976
|
+
hidden: !1,
|
|
49977
|
+
required: !1,
|
|
49978
|
+
description: "字段注释:字段名后问号图标,鼠标悬停复用 TfTooltip 气泡展示该字段用途;与控件下方常驻 tip 互斥/可选。"
|
|
49261
49979
|
}
|
|
49262
49980
|
],
|
|
49263
49981
|
events: [
|
|
@@ -50753,7 +51471,7 @@ const q = "0.1.0", w = {
|
|
|
50753
51471
|
},
|
|
50754
51472
|
{
|
|
50755
51473
|
name: "useApiTableBodies",
|
|
50756
|
-
title: "
|
|
51474
|
+
title: "使用接口表体配置",
|
|
50757
51475
|
type: "boolean",
|
|
50758
51476
|
control: "switch",
|
|
50759
51477
|
bindable: !1,
|
|
@@ -57585,6 +58303,17 @@ const q = "0.1.0", w = {
|
|
|
57585
58303
|
advanced: !1,
|
|
57586
58304
|
hidden: !1,
|
|
57587
58305
|
required: !1
|
|
58306
|
+
},
|
|
58307
|
+
{
|
|
58308
|
+
name: "height",
|
|
58309
|
+
title: "高度",
|
|
58310
|
+
type: "string | number",
|
|
58311
|
+
control: "number",
|
|
58312
|
+
bindable: !1,
|
|
58313
|
+
advanced: !1,
|
|
58314
|
+
hidden: !1,
|
|
58315
|
+
required: !1,
|
|
58316
|
+
description: "网格容器高度(透传给 TfDataGrid);显式传入时网格按该高度渲染(如 100% 填满容器),未传时保持 TfDataGrid 的 size 预设高度行为 */"
|
|
57588
58317
|
}
|
|
57589
58318
|
],
|
|
57590
58319
|
events: [
|
|
@@ -65248,6 +65977,50 @@ const q = "0.1.0", w = {
|
|
|
65248
65977
|
hidden: !1,
|
|
65249
65978
|
required: !1,
|
|
65250
65979
|
description: "跳转链接配置,用于打开完整页面 /"
|
|
65980
|
+
},
|
|
65981
|
+
{
|
|
65982
|
+
name: "helpConfig",
|
|
65983
|
+
title: "helpConfig",
|
|
65984
|
+
type: "HelpConfig",
|
|
65985
|
+
control: "text",
|
|
65986
|
+
bindable: !1,
|
|
65987
|
+
advanced: !1,
|
|
65988
|
+
hidden: !1,
|
|
65989
|
+
required: !1,
|
|
65990
|
+
description: "帮助中心抽屉数据(常见问题 faqs / 快速链接 quickLinks / 联系方式 support),不传使用内置示例 /"
|
|
65991
|
+
},
|
|
65992
|
+
{
|
|
65993
|
+
name: "insightConfig",
|
|
65994
|
+
title: "insightConfig",
|
|
65995
|
+
type: "InsightConfig",
|
|
65996
|
+
control: "text",
|
|
65997
|
+
bindable: !1,
|
|
65998
|
+
advanced: !1,
|
|
65999
|
+
hidden: !1,
|
|
66000
|
+
required: !1,
|
|
66001
|
+
description: "智能洞察抽屉数据(metrics / anomalies / trends / suggestions),不传使用内置示例或按页面上下文生成 /"
|
|
66002
|
+
},
|
|
66003
|
+
{
|
|
66004
|
+
name: "ticketConfig",
|
|
66005
|
+
title: "ticketConfig",
|
|
66006
|
+
type: "TicketConfig",
|
|
66007
|
+
control: "text",
|
|
66008
|
+
bindable: !1,
|
|
66009
|
+
advanced: !1,
|
|
66010
|
+
hidden: !1,
|
|
66011
|
+
required: !1,
|
|
66012
|
+
description: "工单与反馈抽屉数据(最近提交 history),不传使用内置示例 /"
|
|
66013
|
+
},
|
|
66014
|
+
{
|
|
66015
|
+
name: "versionConfig",
|
|
66016
|
+
title: "versionConfig",
|
|
66017
|
+
type: "VersionConfig",
|
|
66018
|
+
control: "text",
|
|
66019
|
+
bindable: !1,
|
|
66020
|
+
advanced: !1,
|
|
66021
|
+
hidden: !1,
|
|
66022
|
+
required: !1,
|
|
66023
|
+
description: "版本管理抽屉数据(更新日志 releases / 系统信息 systemInfo),不传使用内置示例 /"
|
|
65251
66024
|
}
|
|
65252
66025
|
],
|
|
65253
66026
|
events: [
|
|
@@ -65280,6 +66053,36 @@ const q = "0.1.0", w = {
|
|
|
65280
66053
|
eventName: "open-link",
|
|
65281
66054
|
title: "open-link",
|
|
65282
66055
|
payload: {}
|
|
66056
|
+
},
|
|
66057
|
+
{
|
|
66058
|
+
name: "askAi",
|
|
66059
|
+
eventName: "ask-ai",
|
|
66060
|
+
title: "ask-ai",
|
|
66061
|
+
payload: {}
|
|
66062
|
+
},
|
|
66063
|
+
{
|
|
66064
|
+
name: "suggestion",
|
|
66065
|
+
eventName: "suggestion",
|
|
66066
|
+
title: "suggestion",
|
|
66067
|
+
payload: {}
|
|
66068
|
+
},
|
|
66069
|
+
{
|
|
66070
|
+
name: "submitTicket",
|
|
66071
|
+
eventName: "submit-ticket",
|
|
66072
|
+
title: "submit-ticket",
|
|
66073
|
+
payload: {}
|
|
66074
|
+
},
|
|
66075
|
+
{
|
|
66076
|
+
name: "submitFeedback",
|
|
66077
|
+
eventName: "submit-feedback",
|
|
66078
|
+
title: "submit-feedback",
|
|
66079
|
+
payload: {}
|
|
66080
|
+
},
|
|
66081
|
+
{
|
|
66082
|
+
name: "checkUpdate",
|
|
66083
|
+
eventName: "check-update",
|
|
66084
|
+
title: "check-update",
|
|
66085
|
+
payload: {}
|
|
65283
66086
|
}
|
|
65284
66087
|
],
|
|
65285
66088
|
slots: [],
|
|
@@ -65307,6 +66110,85 @@ const q = "0.1.0", w = {
|
|
|
65307
66110
|
"feedback?": "string",
|
|
65308
66111
|
"version?": "string",
|
|
65309
66112
|
"help?": "string"
|
|
66113
|
+
},
|
|
66114
|
+
VersionRelease: {
|
|
66115
|
+
version: "string",
|
|
66116
|
+
date: "string",
|
|
66117
|
+
"features?": "string[]",
|
|
66118
|
+
"fixes?": "string[]",
|
|
66119
|
+
"improvements?": "string[]"
|
|
66120
|
+
},
|
|
66121
|
+
VersionSystemInfo: {
|
|
66122
|
+
"environment?": "string",
|
|
66123
|
+
"browser?": "string",
|
|
66124
|
+
"os?": "string",
|
|
66125
|
+
"resolution?": "string",
|
|
66126
|
+
"lastUpdate?": "string"
|
|
66127
|
+
},
|
|
66128
|
+
VersionConfig: {
|
|
66129
|
+
"releases?": "VersionRelease[]",
|
|
66130
|
+
"systemInfo?": "VersionSystemInfo"
|
|
66131
|
+
},
|
|
66132
|
+
HelpFaq: {
|
|
66133
|
+
category: "string",
|
|
66134
|
+
question: "string",
|
|
66135
|
+
answer: "string (HTML)"
|
|
66136
|
+
},
|
|
66137
|
+
HelpLink: {
|
|
66138
|
+
title: "string",
|
|
66139
|
+
"description?": "string",
|
|
66140
|
+
url: "string",
|
|
66141
|
+
"icon?": "Component"
|
|
66142
|
+
},
|
|
66143
|
+
HelpSupport: {
|
|
66144
|
+
"email?": "string",
|
|
66145
|
+
"phone?": "string",
|
|
66146
|
+
"workTime?": "string"
|
|
66147
|
+
},
|
|
66148
|
+
HelpConfig: {
|
|
66149
|
+
"faqs?": "HelpFaq[]",
|
|
66150
|
+
"quickLinks?": "HelpLink[]",
|
|
66151
|
+
"support?": "HelpSupport"
|
|
66152
|
+
},
|
|
66153
|
+
InsightTone: "'success' | 'primary' | 'warning' | 'error'",
|
|
66154
|
+
InsightMetric: {
|
|
66155
|
+
label: "string",
|
|
66156
|
+
value: "string",
|
|
66157
|
+
trend: "number"
|
|
66158
|
+
},
|
|
66159
|
+
InsightTrend: {
|
|
66160
|
+
label: "string",
|
|
66161
|
+
value: "number (0-100)",
|
|
66162
|
+
status: "'good' | 'warning'",
|
|
66163
|
+
"tone?": "InsightTone"
|
|
66164
|
+
},
|
|
66165
|
+
InsightAnomaly: {
|
|
66166
|
+
level: "'warning' | 'error' | 'info'",
|
|
66167
|
+
title: "string",
|
|
66168
|
+
description: "string",
|
|
66169
|
+
"icon?": "Component"
|
|
66170
|
+
},
|
|
66171
|
+
InsightSuggestion: {
|
|
66172
|
+
title: "string",
|
|
66173
|
+
description: "string",
|
|
66174
|
+
action: "string",
|
|
66175
|
+
"icon?": "Component"
|
|
66176
|
+
},
|
|
66177
|
+
InsightConfig: {
|
|
66178
|
+
"metrics?": "InsightMetric[]",
|
|
66179
|
+
"anomalies?": "InsightAnomaly[]",
|
|
66180
|
+
"trends?": "InsightTrend[]",
|
|
66181
|
+
"suggestions?": "InsightSuggestion[]"
|
|
66182
|
+
},
|
|
66183
|
+
TicketHistoryItem: {
|
|
66184
|
+
id: "string",
|
|
66185
|
+
title: "string",
|
|
66186
|
+
type: "'ticket' | 'feedback'",
|
|
66187
|
+
status: "'pending' | 'processing' | 'completed'",
|
|
66188
|
+
time: "string"
|
|
66189
|
+
},
|
|
66190
|
+
TicketConfig: {
|
|
66191
|
+
"history?": "TicketHistoryItem[]"
|
|
65310
66192
|
}
|
|
65311
66193
|
},
|
|
65312
66194
|
editor: {
|
|
@@ -66470,6 +67352,2124 @@ const q = "0.1.0", w = {
|
|
|
66470
67352
|
defaultEnabledSlots: []
|
|
66471
67353
|
}
|
|
66472
67354
|
}
|
|
67355
|
+
},
|
|
67356
|
+
{
|
|
67357
|
+
name: "TfAiAnalysisCard",
|
|
67358
|
+
title: "TfAiAnalysisCard",
|
|
67359
|
+
category: "basic",
|
|
67360
|
+
group: "basic-components",
|
|
67361
|
+
source: {
|
|
67362
|
+
exportName: "TfAiAnalysisCard",
|
|
67363
|
+
importPath: "tf-ui",
|
|
67364
|
+
path: "packages/ui/components/business/ai-analysis-card"
|
|
67365
|
+
},
|
|
67366
|
+
lowcode: {
|
|
67367
|
+
palette: {
|
|
67368
|
+
icon: "Mic",
|
|
67369
|
+
order: 100,
|
|
67370
|
+
draggable: !0,
|
|
67371
|
+
recommended: !1
|
|
67372
|
+
},
|
|
67373
|
+
props: [
|
|
67374
|
+
{
|
|
67375
|
+
name: "title",
|
|
67376
|
+
title: "标题",
|
|
67377
|
+
type: "string",
|
|
67378
|
+
control: "text",
|
|
67379
|
+
bindable: !1,
|
|
67380
|
+
advanced: !1,
|
|
67381
|
+
hidden: !1,
|
|
67382
|
+
required: !1,
|
|
67383
|
+
default: "AI 智能分析",
|
|
67384
|
+
description: "卡片标题"
|
|
67385
|
+
},
|
|
67386
|
+
{
|
|
67387
|
+
name: "analysisType",
|
|
67388
|
+
title: "analysisType",
|
|
67389
|
+
type: "string",
|
|
67390
|
+
control: "text",
|
|
67391
|
+
bindable: !1,
|
|
67392
|
+
advanced: !1,
|
|
67393
|
+
hidden: !1,
|
|
67394
|
+
required: !1,
|
|
67395
|
+
default: "",
|
|
67396
|
+
description: "分析类型,显示为标题旁的 AI 色 tag,如「销售洞察」「性能诊断」"
|
|
67397
|
+
},
|
|
67398
|
+
{
|
|
67399
|
+
name: "defaultExpanded",
|
|
67400
|
+
title: "defaultExpanded",
|
|
67401
|
+
type: "boolean",
|
|
67402
|
+
control: "switch",
|
|
67403
|
+
bindable: !1,
|
|
67404
|
+
advanced: !1,
|
|
67405
|
+
hidden: !1,
|
|
67406
|
+
required: !1,
|
|
67407
|
+
default: !0,
|
|
67408
|
+
description: "初始是否展开"
|
|
67409
|
+
},
|
|
67410
|
+
{
|
|
67411
|
+
name: "collapsible",
|
|
67412
|
+
title: "可折叠",
|
|
67413
|
+
type: "boolean",
|
|
67414
|
+
control: "switch",
|
|
67415
|
+
bindable: !1,
|
|
67416
|
+
advanced: !1,
|
|
67417
|
+
hidden: !1,
|
|
67418
|
+
required: !1,
|
|
67419
|
+
default: !0,
|
|
67420
|
+
description: "是否可收起"
|
|
67421
|
+
},
|
|
67422
|
+
{
|
|
67423
|
+
name: "loading",
|
|
67424
|
+
title: "加载中",
|
|
67425
|
+
type: "boolean",
|
|
67426
|
+
control: "switch",
|
|
67427
|
+
bindable: !1,
|
|
67428
|
+
advanced: !1,
|
|
67429
|
+
hidden: !1,
|
|
67430
|
+
required: !1,
|
|
67431
|
+
default: !1,
|
|
67432
|
+
description: "加载中,显示骨架与「正在分析…」"
|
|
67433
|
+
},
|
|
67434
|
+
{
|
|
67435
|
+
name: "ariaLabel",
|
|
67436
|
+
title: "ariaLabel",
|
|
67437
|
+
type: "string",
|
|
67438
|
+
control: "text",
|
|
67439
|
+
bindable: !1,
|
|
67440
|
+
advanced: !1,
|
|
67441
|
+
hidden: !1,
|
|
67442
|
+
required: !1,
|
|
67443
|
+
default: "AI 分析卡片",
|
|
67444
|
+
description: "无障碍标签"
|
|
67445
|
+
}
|
|
67446
|
+
],
|
|
67447
|
+
events: [
|
|
67448
|
+
{
|
|
67449
|
+
name: "update:collapsed",
|
|
67450
|
+
eventName: "update:collapsed",
|
|
67451
|
+
title: "update:collapsed",
|
|
67452
|
+
payload: {}
|
|
67453
|
+
},
|
|
67454
|
+
{
|
|
67455
|
+
name: "collapse",
|
|
67456
|
+
eventName: "collapse",
|
|
67457
|
+
title: "collapse",
|
|
67458
|
+
payload: {}
|
|
67459
|
+
},
|
|
67460
|
+
{
|
|
67461
|
+
name: "refresh",
|
|
67462
|
+
eventName: "refresh",
|
|
67463
|
+
title: "refresh",
|
|
67464
|
+
payload: {}
|
|
67465
|
+
}
|
|
67466
|
+
],
|
|
67467
|
+
slots: [
|
|
67468
|
+
{
|
|
67469
|
+
name: "default",
|
|
67470
|
+
title: "default",
|
|
67471
|
+
accepts: [
|
|
67472
|
+
"basic",
|
|
67473
|
+
"layout",
|
|
67474
|
+
"form",
|
|
67475
|
+
"display"
|
|
67476
|
+
],
|
|
67477
|
+
multiple: !0,
|
|
67478
|
+
required: !1,
|
|
67479
|
+
editor: {
|
|
67480
|
+
droppable: !0,
|
|
67481
|
+
canvasVisible: !0,
|
|
67482
|
+
defaultVisible: !0
|
|
67483
|
+
},
|
|
67484
|
+
kind: "canvas"
|
|
67485
|
+
},
|
|
67486
|
+
{
|
|
67487
|
+
name: "extra",
|
|
67488
|
+
title: "extra",
|
|
67489
|
+
accepts: [
|
|
67490
|
+
"basic",
|
|
67491
|
+
"layout",
|
|
67492
|
+
"form",
|
|
67493
|
+
"display"
|
|
67494
|
+
],
|
|
67495
|
+
multiple: !0,
|
|
67496
|
+
required: !1,
|
|
67497
|
+
editor: {
|
|
67498
|
+
droppable: !0,
|
|
67499
|
+
canvasVisible: !0,
|
|
67500
|
+
defaultVisible: !1
|
|
67501
|
+
},
|
|
67502
|
+
kind: "canvas"
|
|
67503
|
+
},
|
|
67504
|
+
{
|
|
67505
|
+
name: "icon",
|
|
67506
|
+
title: "图标",
|
|
67507
|
+
accepts: [
|
|
67508
|
+
"basic",
|
|
67509
|
+
"layout",
|
|
67510
|
+
"form",
|
|
67511
|
+
"display"
|
|
67512
|
+
],
|
|
67513
|
+
multiple: !0,
|
|
67514
|
+
required: !1,
|
|
67515
|
+
editor: {
|
|
67516
|
+
droppable: !0,
|
|
67517
|
+
canvasVisible: !0,
|
|
67518
|
+
defaultVisible: !1
|
|
67519
|
+
},
|
|
67520
|
+
kind: "canvas"
|
|
67521
|
+
}
|
|
67522
|
+
],
|
|
67523
|
+
customTypes: {},
|
|
67524
|
+
editor: {
|
|
67525
|
+
canvasSlots: [
|
|
67526
|
+
"default",
|
|
67527
|
+
"extra",
|
|
67528
|
+
"icon"
|
|
67529
|
+
],
|
|
67530
|
+
defaultEnabledSlots: [
|
|
67531
|
+
"default"
|
|
67532
|
+
]
|
|
67533
|
+
}
|
|
67534
|
+
}
|
|
67535
|
+
},
|
|
67536
|
+
{
|
|
67537
|
+
name: "TfReportCanvas",
|
|
67538
|
+
title: "TfReportCanvas",
|
|
67539
|
+
category: "basic",
|
|
67540
|
+
group: "basic-components",
|
|
67541
|
+
source: {
|
|
67542
|
+
exportName: "TfReportCanvas",
|
|
67543
|
+
importPath: "tf-ui",
|
|
67544
|
+
path: "packages/ui/components/business/report-canvas"
|
|
67545
|
+
},
|
|
67546
|
+
lowcode: {
|
|
67547
|
+
palette: {
|
|
67548
|
+
icon: "Ellipsis",
|
|
67549
|
+
order: 100,
|
|
67550
|
+
draggable: !0,
|
|
67551
|
+
recommended: !1
|
|
67552
|
+
},
|
|
67553
|
+
props: [
|
|
67554
|
+
{
|
|
67555
|
+
name: "blocks",
|
|
67556
|
+
title: "blocks",
|
|
67557
|
+
type: "TfReportBlockConfig[]",
|
|
67558
|
+
control: "json",
|
|
67559
|
+
bindable: !1,
|
|
67560
|
+
advanced: !1,
|
|
67561
|
+
hidden: !1,
|
|
67562
|
+
required: !1,
|
|
67563
|
+
default: [],
|
|
67564
|
+
description: "板块配置数组(v-model:blocks),每项含 id/type/title/span/datasetId/dimensions/metrics/viewMore/payload"
|
|
67565
|
+
},
|
|
67566
|
+
{
|
|
67567
|
+
name: "editable",
|
|
67568
|
+
title: "可编辑",
|
|
67569
|
+
type: "boolean",
|
|
67570
|
+
control: "switch",
|
|
67571
|
+
bindable: !1,
|
|
67572
|
+
advanced: !1,
|
|
67573
|
+
hidden: !1,
|
|
67574
|
+
required: !1,
|
|
67575
|
+
default: !1,
|
|
67576
|
+
description: "是否允许编辑(显示编辑切换、添加板块、重置)"
|
|
67577
|
+
},
|
|
67578
|
+
{
|
|
67579
|
+
name: "storageKey",
|
|
67580
|
+
title: "storageKey",
|
|
67581
|
+
type: "string",
|
|
67582
|
+
control: "text",
|
|
67583
|
+
bindable: !1,
|
|
67584
|
+
advanced: !1,
|
|
67585
|
+
hidden: !1,
|
|
67586
|
+
required: !1,
|
|
67587
|
+
description: "localStorage 持久化 key;persist 为 true 时必填"
|
|
67588
|
+
},
|
|
67589
|
+
{
|
|
67590
|
+
name: "title",
|
|
67591
|
+
title: "标题",
|
|
67592
|
+
type: "string",
|
|
67593
|
+
control: "text",
|
|
67594
|
+
bindable: !1,
|
|
67595
|
+
advanced: !1,
|
|
67596
|
+
hidden: !1,
|
|
67597
|
+
required: !1,
|
|
67598
|
+
default: "",
|
|
67599
|
+
description: "画布顶部标题"
|
|
67600
|
+
},
|
|
67601
|
+
{
|
|
67602
|
+
name: "persist",
|
|
67603
|
+
title: "persist",
|
|
67604
|
+
type: "boolean",
|
|
67605
|
+
control: "switch",
|
|
67606
|
+
bindable: !1,
|
|
67607
|
+
advanced: !1,
|
|
67608
|
+
hidden: !1,
|
|
67609
|
+
required: !1,
|
|
67610
|
+
default: !1,
|
|
67611
|
+
description: "是否把布局变更持久化到 localStorage(带 schema 版本,版本不符回退默认)"
|
|
67612
|
+
}
|
|
67613
|
+
],
|
|
67614
|
+
events: [
|
|
67615
|
+
{
|
|
67616
|
+
name: "update:blocks",
|
|
67617
|
+
eventName: "update:blocks",
|
|
67618
|
+
title: "update:blocks",
|
|
67619
|
+
payload: {}
|
|
67620
|
+
},
|
|
67621
|
+
{
|
|
67622
|
+
name: "blockViewMore",
|
|
67623
|
+
eventName: "block-view-more",
|
|
67624
|
+
title: "block-view-more",
|
|
67625
|
+
payload: {}
|
|
67626
|
+
},
|
|
67627
|
+
{
|
|
67628
|
+
name: "blockDrill",
|
|
67629
|
+
eventName: "block-drill",
|
|
67630
|
+
title: "block-drill",
|
|
67631
|
+
payload: {}
|
|
67632
|
+
},
|
|
67633
|
+
{
|
|
67634
|
+
name: "editChange",
|
|
67635
|
+
eventName: "edit-change",
|
|
67636
|
+
title: "edit-change",
|
|
67637
|
+
payload: {}
|
|
67638
|
+
}
|
|
67639
|
+
],
|
|
67640
|
+
slots: [
|
|
67641
|
+
{
|
|
67642
|
+
name: "toolbar-actions",
|
|
67643
|
+
title: "toolbar-actions",
|
|
67644
|
+
accepts: [
|
|
67645
|
+
"basic",
|
|
67646
|
+
"layout",
|
|
67647
|
+
"form",
|
|
67648
|
+
"display"
|
|
67649
|
+
],
|
|
67650
|
+
multiple: !0,
|
|
67651
|
+
required: !1,
|
|
67652
|
+
editor: {
|
|
67653
|
+
droppable: !0,
|
|
67654
|
+
canvasVisible: !0,
|
|
67655
|
+
defaultVisible: !1
|
|
67656
|
+
},
|
|
67657
|
+
kind: "canvas"
|
|
67658
|
+
}
|
|
67659
|
+
],
|
|
67660
|
+
customTypes: {
|
|
67661
|
+
ReportBlockType: "'kpi-group' | 'bar-chart' | 'line-chart' | 'donut-chart' | 'pie-chart' | 'gauge-chart' | 'radar-chart' | 'funnel-chart' | 'progress' | 'insight-list' | 'attribution' | 'data-table' | 'table-group' | 'rich'",
|
|
67662
|
+
ReportBlockGroup: "'指标' | '图表' | '列表' | '其他'",
|
|
67663
|
+
TfReportBlockConfig: "{ id: string; type: ReportBlockType; title: string; span?: 1|2|3; datasetId?: string; dimensions?: string[]; metrics?: string[]; viewMore?: DrillTarget; payload?: Record<string, unknown> }",
|
|
67664
|
+
BlockDefinition: "{ type; label; icon; group; isSystemDefault; createConfig() }",
|
|
67665
|
+
CanvasDrillPayload: "{ block: TfReportBlockConfig; data: ChartDatum | MetricGridItem }",
|
|
67666
|
+
DrillTarget: "复用 metric:{ name?: string; path?: string; label?: string; query?: Record<string, unknown> }",
|
|
67667
|
+
DatasetDescriptor: "AddBlockModal 入参:{ id; label; dimensions: {key,label}[]; metrics: {key,label}[] }"
|
|
67668
|
+
},
|
|
67669
|
+
editor: {
|
|
67670
|
+
canvasSlots: [
|
|
67671
|
+
"toolbar-actions"
|
|
67672
|
+
],
|
|
67673
|
+
defaultEnabledSlots: []
|
|
67674
|
+
}
|
|
67675
|
+
}
|
|
67676
|
+
},
|
|
67677
|
+
{
|
|
67678
|
+
name: "TfSystemDock",
|
|
67679
|
+
title: "TfSystemDock",
|
|
67680
|
+
category: "basic",
|
|
67681
|
+
group: "basic-components",
|
|
67682
|
+
source: {
|
|
67683
|
+
exportName: "TfSystemDock",
|
|
67684
|
+
importPath: "tf-ui",
|
|
67685
|
+
path: "packages/ui/components/business/system-dock"
|
|
67686
|
+
},
|
|
67687
|
+
lowcode: {
|
|
67688
|
+
palette: {
|
|
67689
|
+
icon: "Heart",
|
|
67690
|
+
order: 100,
|
|
67691
|
+
draggable: !0,
|
|
67692
|
+
recommended: !1
|
|
67693
|
+
},
|
|
67694
|
+
props: [
|
|
67695
|
+
{
|
|
67696
|
+
name: "right",
|
|
67697
|
+
title: "right",
|
|
67698
|
+
type: "number | string",
|
|
67699
|
+
control: "number",
|
|
67700
|
+
bindable: !1,
|
|
67701
|
+
advanced: !1,
|
|
67702
|
+
hidden: !1,
|
|
67703
|
+
required: !1,
|
|
67704
|
+
default: 40,
|
|
67705
|
+
description: "距视口右边距"
|
|
67706
|
+
},
|
|
67707
|
+
{
|
|
67708
|
+
name: "bottom",
|
|
67709
|
+
title: "bottom",
|
|
67710
|
+
type: "number | string",
|
|
67711
|
+
control: "number",
|
|
67712
|
+
bindable: !1,
|
|
67713
|
+
advanced: !1,
|
|
67714
|
+
hidden: !1,
|
|
67715
|
+
required: !1,
|
|
67716
|
+
default: 40,
|
|
67717
|
+
description: "距视口下边距"
|
|
67718
|
+
},
|
|
67719
|
+
{
|
|
67720
|
+
name: "visibleCount",
|
|
67721
|
+
title: "visibleCount",
|
|
67722
|
+
type: "number",
|
|
67723
|
+
control: "number",
|
|
67724
|
+
bindable: !1,
|
|
67725
|
+
advanced: !1,
|
|
67726
|
+
hidden: !1,
|
|
67727
|
+
required: !1,
|
|
67728
|
+
default: 5,
|
|
67729
|
+
description: "常驻区显示的功能项数量,超出项收入展开区"
|
|
67730
|
+
},
|
|
67731
|
+
{
|
|
67732
|
+
name: "features",
|
|
67733
|
+
title: "features",
|
|
67734
|
+
type: "SystemDockFeatures",
|
|
67735
|
+
control: "text",
|
|
67736
|
+
bindable: !1,
|
|
67737
|
+
advanced: !1,
|
|
67738
|
+
hidden: !1,
|
|
67739
|
+
required: !1,
|
|
67740
|
+
default: {},
|
|
67741
|
+
description: "各功能项开关,全默认 true,可设 false 关闭"
|
|
67742
|
+
},
|
|
67743
|
+
{
|
|
67744
|
+
name: "aiConfig",
|
|
67745
|
+
title: "aiConfig",
|
|
67746
|
+
type: "DockAiConfig",
|
|
67747
|
+
control: "text",
|
|
67748
|
+
bindable: !1,
|
|
67749
|
+
advanced: !1,
|
|
67750
|
+
hidden: !1,
|
|
67751
|
+
required: !1,
|
|
67752
|
+
default: {},
|
|
67753
|
+
description: "AI 对话面板配置,透传给 TfAiAssistant(visible/fabVisible 由 dock 控制)"
|
|
67754
|
+
},
|
|
67755
|
+
{
|
|
67756
|
+
name: "feedbackTypes",
|
|
67757
|
+
title: "feedbackTypes",
|
|
67758
|
+
type: "FeedbackTypeOption[]",
|
|
67759
|
+
control: "json",
|
|
67760
|
+
bindable: !1,
|
|
67761
|
+
advanced: !1,
|
|
67762
|
+
hidden: !1,
|
|
67763
|
+
required: !1,
|
|
67764
|
+
description: "反馈类型选项"
|
|
67765
|
+
},
|
|
67766
|
+
{
|
|
67767
|
+
name: "feedbackBusinessOptions",
|
|
67768
|
+
title: "feedbackBusinessOptions",
|
|
67769
|
+
type: "{ label: string; value: string }[]",
|
|
67770
|
+
control: "json",
|
|
67771
|
+
bindable: !1,
|
|
67772
|
+
advanced: !1,
|
|
67773
|
+
hidden: !1,
|
|
67774
|
+
required: !1,
|
|
67775
|
+
default: [],
|
|
67776
|
+
description: "反馈类型为业务问题时的关联业务选项"
|
|
67777
|
+
},
|
|
67778
|
+
{
|
|
67779
|
+
name: "versions",
|
|
67780
|
+
title: "versions",
|
|
67781
|
+
type: "VersionLog[]",
|
|
67782
|
+
control: "json",
|
|
67783
|
+
bindable: !1,
|
|
67784
|
+
advanced: !1,
|
|
67785
|
+
hidden: !1,
|
|
67786
|
+
required: !1,
|
|
67787
|
+
default: [],
|
|
67788
|
+
description: "版本日志列表,最新版本在前"
|
|
67789
|
+
},
|
|
67790
|
+
{
|
|
67791
|
+
name: "analyticsRanges",
|
|
67792
|
+
title: "analyticsRanges",
|
|
67793
|
+
type: "AnalyticsRange[]",
|
|
67794
|
+
control: "json",
|
|
67795
|
+
bindable: !1,
|
|
67796
|
+
advanced: !1,
|
|
67797
|
+
hidden: !1,
|
|
67798
|
+
required: !1,
|
|
67799
|
+
description: "使用分析时间维度选项"
|
|
67800
|
+
},
|
|
67801
|
+
{
|
|
67802
|
+
name: "analyticsRange",
|
|
67803
|
+
title: "analyticsRange",
|
|
67804
|
+
type: "string",
|
|
67805
|
+
control: "text",
|
|
67806
|
+
bindable: !1,
|
|
67807
|
+
advanced: !1,
|
|
67808
|
+
hidden: !1,
|
|
67809
|
+
required: !1,
|
|
67810
|
+
default: "",
|
|
67811
|
+
description: "当前分析维度 key(v-model:analytics-range)"
|
|
67812
|
+
},
|
|
67813
|
+
{
|
|
67814
|
+
name: "analyticsData",
|
|
67815
|
+
title: "analyticsData",
|
|
67816
|
+
type: "AnalyticsData",
|
|
67817
|
+
control: "text",
|
|
67818
|
+
bindable: !1,
|
|
67819
|
+
advanced: !1,
|
|
67820
|
+
hidden: !1,
|
|
67821
|
+
required: !1,
|
|
67822
|
+
description: "分析面板的 KPI/图表数据,透传给 TfMetricGrid/TfLineChart/TfBarChart/TfDonutChart"
|
|
67823
|
+
},
|
|
67824
|
+
{
|
|
67825
|
+
name: "helpItems",
|
|
67826
|
+
title: "helpItems",
|
|
67827
|
+
type: "HelpItem[]",
|
|
67828
|
+
control: "json",
|
|
67829
|
+
bindable: !1,
|
|
67830
|
+
advanced: !1,
|
|
67831
|
+
hidden: !1,
|
|
67832
|
+
required: !1,
|
|
67833
|
+
description: "帮助中心 FAQ 条目;不传时使用内置常见问题"
|
|
67834
|
+
},
|
|
67835
|
+
{
|
|
67836
|
+
name: "backTopVisibilityHeight",
|
|
67837
|
+
title: "backTopVisibilityHeight",
|
|
67838
|
+
type: "number",
|
|
67839
|
+
control: "number",
|
|
67840
|
+
bindable: !1,
|
|
67841
|
+
advanced: !1,
|
|
67842
|
+
hidden: !1,
|
|
67843
|
+
required: !1,
|
|
67844
|
+
default: 200,
|
|
67845
|
+
description: "回到顶部按钮出现的滚动阈值(px)"
|
|
67846
|
+
},
|
|
67847
|
+
{
|
|
67848
|
+
name: "submitting",
|
|
67849
|
+
title: "submitting",
|
|
67850
|
+
type: "boolean",
|
|
67851
|
+
control: "switch",
|
|
67852
|
+
bindable: !1,
|
|
67853
|
+
advanced: !1,
|
|
67854
|
+
hidden: !1,
|
|
67855
|
+
required: !1,
|
|
67856
|
+
default: !1,
|
|
67857
|
+
description: "反馈提交中状态,控制反馈弹窗确认按钮 loading"
|
|
67858
|
+
},
|
|
67859
|
+
{
|
|
67860
|
+
name: "labels",
|
|
67861
|
+
title: "labels",
|
|
67862
|
+
type: "DockLabels",
|
|
67863
|
+
control: "text",
|
|
67864
|
+
bindable: !1,
|
|
67865
|
+
advanced: !1,
|
|
67866
|
+
hidden: !1,
|
|
67867
|
+
required: !1,
|
|
67868
|
+
default: {},
|
|
67869
|
+
description: "各按钮文案覆盖,默认中文"
|
|
67870
|
+
}
|
|
67871
|
+
],
|
|
67872
|
+
events: [
|
|
67873
|
+
{
|
|
67874
|
+
name: "aiSend",
|
|
67875
|
+
eventName: "ai-send",
|
|
67876
|
+
title: "ai-send",
|
|
67877
|
+
payload: {}
|
|
67878
|
+
},
|
|
67879
|
+
{
|
|
67880
|
+
name: "aiNewConversation",
|
|
67881
|
+
eventName: "ai-new-conversation",
|
|
67882
|
+
title: "ai-new-conversation",
|
|
67883
|
+
payload: {}
|
|
67884
|
+
},
|
|
67885
|
+
{
|
|
67886
|
+
name: "aiSelectConversation",
|
|
67887
|
+
eventName: "ai-select-conversation",
|
|
67888
|
+
title: "ai-select-conversation",
|
|
67889
|
+
payload: {}
|
|
67890
|
+
},
|
|
67891
|
+
{
|
|
67892
|
+
name: "aiDeleteConversation",
|
|
67893
|
+
eventName: "ai-delete-conversation",
|
|
67894
|
+
title: "ai-delete-conversation",
|
|
67895
|
+
payload: {}
|
|
67896
|
+
},
|
|
67897
|
+
{
|
|
67898
|
+
name: "update:aiConfig",
|
|
67899
|
+
eventName: "update:aiConfig",
|
|
67900
|
+
title: "update:aiConfig",
|
|
67901
|
+
payload: {}
|
|
67902
|
+
},
|
|
67903
|
+
{
|
|
67904
|
+
name: "feedbackSubmit",
|
|
67905
|
+
eventName: "feedback-submit",
|
|
67906
|
+
title: "feedback-submit",
|
|
67907
|
+
payload: {}
|
|
67908
|
+
},
|
|
67909
|
+
{
|
|
67910
|
+
name: "changelogExpand",
|
|
67911
|
+
eventName: "changelog-expand",
|
|
67912
|
+
title: "changelog-expand",
|
|
67913
|
+
payload: {}
|
|
67914
|
+
},
|
|
67915
|
+
{
|
|
67916
|
+
name: "update:analyticsRange",
|
|
67917
|
+
eventName: "update:analyticsRange",
|
|
67918
|
+
title: "update:analyticsRange",
|
|
67919
|
+
payload: {}
|
|
67920
|
+
},
|
|
67921
|
+
{
|
|
67922
|
+
name: "analyticsRangeChange",
|
|
67923
|
+
eventName: "analytics-range-change",
|
|
67924
|
+
title: "analytics-range-change",
|
|
67925
|
+
payload: {}
|
|
67926
|
+
},
|
|
67927
|
+
{
|
|
67928
|
+
name: "helpContact",
|
|
67929
|
+
eventName: "help-contact",
|
|
67930
|
+
title: "help-contact",
|
|
67931
|
+
payload: {}
|
|
67932
|
+
},
|
|
67933
|
+
{
|
|
67934
|
+
name: "panelChange",
|
|
67935
|
+
eventName: "panel-change",
|
|
67936
|
+
title: "panel-change",
|
|
67937
|
+
payload: {}
|
|
67938
|
+
}
|
|
67939
|
+
],
|
|
67940
|
+
slots: [],
|
|
67941
|
+
customTypes: {
|
|
67942
|
+
DockFeatureKey: "'ai' | 'feedback' | 'changelog' | 'analytics' | 'help'",
|
|
67943
|
+
SystemDockFeatures: "{ ai?: boolean; feedback?: boolean; changelog?: boolean; analytics?: boolean; help?: boolean }",
|
|
67944
|
+
DockAiConfig: "Omit<AiAssistantProps, 'visible' | 'fabVisible'>",
|
|
67945
|
+
FeedbackTypeOption: "{ value: string; label: string }",
|
|
67946
|
+
FeedbackPayload: "{ type; businessKey?; rating; content; attachments?; contact? }",
|
|
67947
|
+
VersionLog: "{ version; date; title?; highlights; expanded? }",
|
|
67948
|
+
ChangelogItem: "{ type: 'feature'|'fix'|'improvement'|'breaking'; text: string }",
|
|
67949
|
+
AnalyticsRange: "{ key: string; label: string }",
|
|
67950
|
+
AnalyticsData: "{ metrics; trend; ranking; donut }",
|
|
67951
|
+
HelpItem: "{ id?; category; question; answer; keywords? }",
|
|
67952
|
+
DockLabels: "各按钮文案覆盖"
|
|
67953
|
+
},
|
|
67954
|
+
editor: {
|
|
67955
|
+
canvasSlots: [],
|
|
67956
|
+
defaultEnabledSlots: []
|
|
67957
|
+
}
|
|
67958
|
+
}
|
|
67959
|
+
},
|
|
67960
|
+
{
|
|
67961
|
+
name: "TfDimensionSwitch",
|
|
67962
|
+
title: "TfDimensionSwitch",
|
|
67963
|
+
category: "basic",
|
|
67964
|
+
group: "basic-components",
|
|
67965
|
+
source: {
|
|
67966
|
+
exportName: "TfDimensionSwitch",
|
|
67967
|
+
importPath: "tf-ui",
|
|
67968
|
+
path: "packages/ui/components/dimension-switch"
|
|
67969
|
+
},
|
|
67970
|
+
lowcode: {
|
|
67971
|
+
palette: {
|
|
67972
|
+
icon: "Bookmark",
|
|
67973
|
+
order: 100,
|
|
67974
|
+
draggable: !0,
|
|
67975
|
+
recommended: !1
|
|
67976
|
+
},
|
|
67977
|
+
props: [
|
|
67978
|
+
{
|
|
67979
|
+
name: "modelValue",
|
|
67980
|
+
title: "绑定值",
|
|
67981
|
+
type: "string | number",
|
|
67982
|
+
control: "data-binding",
|
|
67983
|
+
bindable: !0,
|
|
67984
|
+
advanced: !1,
|
|
67985
|
+
hidden: !1,
|
|
67986
|
+
required: !1,
|
|
67987
|
+
description: "当前选中值(v-model);未绑定时取首项"
|
|
67988
|
+
},
|
|
67989
|
+
{
|
|
67990
|
+
name: "options",
|
|
67991
|
+
title: "选项",
|
|
67992
|
+
type: "DimensionSwitchOption[]",
|
|
67993
|
+
control: "json",
|
|
67994
|
+
bindable: !1,
|
|
67995
|
+
advanced: !1,
|
|
67996
|
+
hidden: !1,
|
|
67997
|
+
required: !1,
|
|
67998
|
+
default: [],
|
|
67999
|
+
description: "选项列表,每项 { label, value, disabled? }"
|
|
68000
|
+
},
|
|
68001
|
+
{
|
|
68002
|
+
name: "size",
|
|
68003
|
+
title: "尺寸",
|
|
68004
|
+
type: "DimensionSwitchSize",
|
|
68005
|
+
control: "text",
|
|
68006
|
+
bindable: !1,
|
|
68007
|
+
advanced: !1,
|
|
68008
|
+
hidden: !1,
|
|
68009
|
+
required: !1,
|
|
68010
|
+
default: "sm",
|
|
68011
|
+
description: "尺寸:sm(24px,适合卡片 header)/ md(28px)"
|
|
68012
|
+
},
|
|
68013
|
+
{
|
|
68014
|
+
name: "ariaLabel",
|
|
68015
|
+
title: "ariaLabel",
|
|
68016
|
+
type: "string",
|
|
68017
|
+
control: "text",
|
|
68018
|
+
bindable: !1,
|
|
68019
|
+
advanced: !1,
|
|
68020
|
+
hidden: !1,
|
|
68021
|
+
required: !1,
|
|
68022
|
+
default: "维度切换",
|
|
68023
|
+
description: "无障碍标签"
|
|
68024
|
+
}
|
|
68025
|
+
],
|
|
68026
|
+
events: [
|
|
68027
|
+
{
|
|
68028
|
+
name: "update:modelValue",
|
|
68029
|
+
eventName: "update:modelValue",
|
|
68030
|
+
title: "update:modelValue",
|
|
68031
|
+
payload: {}
|
|
68032
|
+
}
|
|
68033
|
+
],
|
|
68034
|
+
slots: [],
|
|
68035
|
+
customTypes: {
|
|
68036
|
+
DimensionSwitchOption: {
|
|
68037
|
+
label: {
|
|
68038
|
+
type: "string",
|
|
68039
|
+
default: "—",
|
|
68040
|
+
description: "显示文案"
|
|
68041
|
+
},
|
|
68042
|
+
value: {
|
|
68043
|
+
type: "string | number",
|
|
68044
|
+
default: "—",
|
|
68045
|
+
description: "值"
|
|
68046
|
+
},
|
|
68047
|
+
disabled: {
|
|
68048
|
+
type: "boolean",
|
|
68049
|
+
default: "false",
|
|
68050
|
+
description: "是否禁用"
|
|
68051
|
+
}
|
|
68052
|
+
}
|
|
68053
|
+
},
|
|
68054
|
+
editor: {
|
|
68055
|
+
canvasSlots: [],
|
|
68056
|
+
defaultEnabledSlots: []
|
|
68057
|
+
}
|
|
68058
|
+
}
|
|
68059
|
+
},
|
|
68060
|
+
{
|
|
68061
|
+
name: "TfEllipsis",
|
|
68062
|
+
title: "TfEllipsis",
|
|
68063
|
+
category: "basic",
|
|
68064
|
+
group: "basic-components",
|
|
68065
|
+
source: {
|
|
68066
|
+
exportName: "TfEllipsis",
|
|
68067
|
+
importPath: "tf-ui",
|
|
68068
|
+
path: "packages/ui/components/ellipsis"
|
|
68069
|
+
},
|
|
68070
|
+
lowcode: {
|
|
68071
|
+
palette: {
|
|
68072
|
+
icon: "Lock",
|
|
68073
|
+
order: 100,
|
|
68074
|
+
draggable: !0,
|
|
68075
|
+
recommended: !1
|
|
68076
|
+
},
|
|
68077
|
+
props: [
|
|
68078
|
+
{
|
|
68079
|
+
name: "text",
|
|
68080
|
+
title: "text",
|
|
68081
|
+
type: "string",
|
|
68082
|
+
control: "text",
|
|
68083
|
+
bindable: !1,
|
|
68084
|
+
advanced: !1,
|
|
68085
|
+
hidden: !1,
|
|
68086
|
+
required: !1,
|
|
68087
|
+
default: "",
|
|
68088
|
+
description: "要展示的文本;长文本模式用,也可用默认插槽传入,插槽优先"
|
|
68089
|
+
},
|
|
68090
|
+
{
|
|
68091
|
+
name: "tip",
|
|
68092
|
+
title: "tip",
|
|
68093
|
+
type: "string",
|
|
68094
|
+
control: "text",
|
|
68095
|
+
bindable: !1,
|
|
68096
|
+
advanced: !1,
|
|
68097
|
+
hidden: !1,
|
|
68098
|
+
required: !1,
|
|
68099
|
+
default: "",
|
|
68100
|
+
description: "悬浮注释文案;传入后进入注释模式(不截断、悬停始终弹),默认插槽放触发元素(如图标按钮),用于图标注释"
|
|
68101
|
+
},
|
|
68102
|
+
{
|
|
68103
|
+
name: "placement",
|
|
68104
|
+
title: "位置",
|
|
68105
|
+
type: "EllipsisPlacement",
|
|
68106
|
+
control: "text",
|
|
68107
|
+
bindable: !1,
|
|
68108
|
+
advanced: !1,
|
|
68109
|
+
hidden: !1,
|
|
68110
|
+
required: !1,
|
|
68111
|
+
description: "tooltip 弹出位置:top / bottom / left / right"
|
|
68112
|
+
},
|
|
68113
|
+
{
|
|
68114
|
+
name: "showAfter",
|
|
68115
|
+
title: "showAfter",
|
|
68116
|
+
type: "number",
|
|
68117
|
+
control: "number",
|
|
68118
|
+
bindable: !1,
|
|
68119
|
+
advanced: !1,
|
|
68120
|
+
hidden: !1,
|
|
68121
|
+
required: !1,
|
|
68122
|
+
default: 300,
|
|
68123
|
+
description: "悬停多少毫秒后弹出,全库悬浮提示统一标准延迟"
|
|
68124
|
+
},
|
|
68125
|
+
{
|
|
68126
|
+
name: "maxWidth",
|
|
68127
|
+
title: "maxWidth",
|
|
68128
|
+
type: "string",
|
|
68129
|
+
control: "text",
|
|
68130
|
+
bindable: !1,
|
|
68131
|
+
advanced: !1,
|
|
68132
|
+
hidden: !1,
|
|
68133
|
+
required: !1,
|
|
68134
|
+
default: "100%",
|
|
68135
|
+
description: "截断区域最大宽度(CSS 长度,如 '240px');为 '100%' 时需父容器约束宽度;注释模式(tip)下不生效"
|
|
68136
|
+
}
|
|
68137
|
+
],
|
|
68138
|
+
events: [],
|
|
68139
|
+
slots: [
|
|
68140
|
+
{
|
|
68141
|
+
name: "default",
|
|
68142
|
+
title: "default",
|
|
68143
|
+
accepts: [
|
|
68144
|
+
"basic",
|
|
68145
|
+
"layout",
|
|
68146
|
+
"form",
|
|
68147
|
+
"display"
|
|
68148
|
+
],
|
|
68149
|
+
multiple: !0,
|
|
68150
|
+
required: !1,
|
|
68151
|
+
editor: {
|
|
68152
|
+
droppable: !0,
|
|
68153
|
+
canvasVisible: !0,
|
|
68154
|
+
defaultVisible: !0
|
|
68155
|
+
},
|
|
68156
|
+
kind: "canvas"
|
|
68157
|
+
}
|
|
68158
|
+
],
|
|
68159
|
+
customTypes: {
|
|
68160
|
+
EllipsisPlacement: "'top' | 'bottom' | 'left' | 'right'"
|
|
68161
|
+
},
|
|
68162
|
+
editor: {
|
|
68163
|
+
canvasSlots: [
|
|
68164
|
+
"default"
|
|
68165
|
+
],
|
|
68166
|
+
defaultEnabledSlots: [
|
|
68167
|
+
"default"
|
|
68168
|
+
]
|
|
68169
|
+
}
|
|
68170
|
+
}
|
|
68171
|
+
},
|
|
68172
|
+
{
|
|
68173
|
+
name: "TfRate",
|
|
68174
|
+
title: "TfRate",
|
|
68175
|
+
category: "basic",
|
|
68176
|
+
group: "basic-components",
|
|
68177
|
+
source: {
|
|
68178
|
+
exportName: "TfRate",
|
|
68179
|
+
importPath: "tf-ui",
|
|
68180
|
+
path: "packages/ui/components/form/base/rate"
|
|
68181
|
+
},
|
|
68182
|
+
lowcode: {
|
|
68183
|
+
palette: {
|
|
68184
|
+
icon: "Unlock",
|
|
68185
|
+
order: 100,
|
|
68186
|
+
draggable: !0,
|
|
68187
|
+
recommended: !1
|
|
68188
|
+
},
|
|
68189
|
+
props: [
|
|
68190
|
+
{
|
|
68191
|
+
name: "modelValue",
|
|
68192
|
+
title: "绑定值",
|
|
68193
|
+
type: "number",
|
|
68194
|
+
control: "data-binding",
|
|
68195
|
+
bindable: !0,
|
|
68196
|
+
advanced: !1,
|
|
68197
|
+
hidden: !1,
|
|
68198
|
+
required: !1,
|
|
68199
|
+
default: 0,
|
|
68200
|
+
description: "当前分值(v-model)"
|
|
68201
|
+
},
|
|
68202
|
+
{
|
|
68203
|
+
name: "count",
|
|
68204
|
+
title: "count",
|
|
68205
|
+
type: "number",
|
|
68206
|
+
control: "number",
|
|
68207
|
+
bindable: !1,
|
|
68208
|
+
advanced: !1,
|
|
68209
|
+
hidden: !1,
|
|
68210
|
+
required: !1,
|
|
68211
|
+
default: 5,
|
|
68212
|
+
description: "星星总数"
|
|
68213
|
+
},
|
|
68214
|
+
{
|
|
68215
|
+
name: "allowHalf",
|
|
68216
|
+
title: "allowHalf",
|
|
68217
|
+
type: "boolean",
|
|
68218
|
+
control: "switch",
|
|
68219
|
+
bindable: !1,
|
|
68220
|
+
advanced: !1,
|
|
68221
|
+
hidden: !1,
|
|
68222
|
+
required: !1,
|
|
68223
|
+
default: !1,
|
|
68224
|
+
description: "是否允许半选"
|
|
68225
|
+
},
|
|
68226
|
+
{
|
|
68227
|
+
name: "readonly",
|
|
68228
|
+
title: "readonly",
|
|
68229
|
+
type: "boolean",
|
|
68230
|
+
control: "switch",
|
|
68231
|
+
bindable: !1,
|
|
68232
|
+
advanced: !1,
|
|
68233
|
+
hidden: !1,
|
|
68234
|
+
required: !1,
|
|
68235
|
+
default: !1,
|
|
68236
|
+
description: "是否只读"
|
|
68237
|
+
},
|
|
68238
|
+
{
|
|
68239
|
+
name: "clearable",
|
|
68240
|
+
title: "clearable",
|
|
68241
|
+
type: "boolean",
|
|
68242
|
+
control: "switch",
|
|
68243
|
+
bindable: !1,
|
|
68244
|
+
advanced: !1,
|
|
68245
|
+
hidden: !1,
|
|
68246
|
+
required: !1,
|
|
68247
|
+
default: !0,
|
|
68248
|
+
description: "再次点击当前分值是否清零"
|
|
68249
|
+
},
|
|
68250
|
+
{
|
|
68251
|
+
name: "size",
|
|
68252
|
+
title: "尺寸",
|
|
68253
|
+
type: "RateSize",
|
|
68254
|
+
control: "text",
|
|
68255
|
+
bindable: !1,
|
|
68256
|
+
advanced: !1,
|
|
68257
|
+
hidden: !1,
|
|
68258
|
+
required: !1,
|
|
68259
|
+
default: "md",
|
|
68260
|
+
description: "尺寸:sm/md/lg"
|
|
68261
|
+
},
|
|
68262
|
+
{
|
|
68263
|
+
name: "color",
|
|
68264
|
+
title: "颜色",
|
|
68265
|
+
type: "string",
|
|
68266
|
+
control: "text",
|
|
68267
|
+
bindable: !1,
|
|
68268
|
+
advanced: !1,
|
|
68269
|
+
hidden: !1,
|
|
68270
|
+
required: !1,
|
|
68271
|
+
description: "激活态颜色"
|
|
68272
|
+
},
|
|
68273
|
+
{
|
|
68274
|
+
name: "voidColor",
|
|
68275
|
+
title: "voidColor",
|
|
68276
|
+
type: "string",
|
|
68277
|
+
control: "text",
|
|
68278
|
+
bindable: !1,
|
|
68279
|
+
advanced: !1,
|
|
68280
|
+
hidden: !1,
|
|
68281
|
+
required: !1,
|
|
68282
|
+
description: "未激活颜色"
|
|
68283
|
+
},
|
|
68284
|
+
{
|
|
68285
|
+
name: "showValue",
|
|
68286
|
+
title: "showValue",
|
|
68287
|
+
type: "boolean",
|
|
68288
|
+
control: "switch",
|
|
68289
|
+
bindable: !1,
|
|
68290
|
+
advanced: !1,
|
|
68291
|
+
hidden: !1,
|
|
68292
|
+
required: !1,
|
|
68293
|
+
default: !1,
|
|
68294
|
+
description: "是否在星星右侧显示数值"
|
|
68295
|
+
},
|
|
68296
|
+
{
|
|
68297
|
+
name: "valueFormatter",
|
|
68298
|
+
title: "valueFormatter",
|
|
68299
|
+
type: "(value: number) => string",
|
|
68300
|
+
control: "number",
|
|
68301
|
+
bindable: !1,
|
|
68302
|
+
advanced: !1,
|
|
68303
|
+
hidden: !1,
|
|
68304
|
+
required: !1,
|
|
68305
|
+
description: "数值格式化函数"
|
|
68306
|
+
},
|
|
68307
|
+
{
|
|
68308
|
+
name: "disabled",
|
|
68309
|
+
title: "禁用",
|
|
68310
|
+
type: "boolean",
|
|
68311
|
+
control: "switch",
|
|
68312
|
+
bindable: !1,
|
|
68313
|
+
advanced: !1,
|
|
68314
|
+
hidden: !1,
|
|
68315
|
+
required: !1,
|
|
68316
|
+
default: !1,
|
|
68317
|
+
description: "是否禁用"
|
|
68318
|
+
}
|
|
68319
|
+
],
|
|
68320
|
+
events: [
|
|
68321
|
+
{
|
|
68322
|
+
name: "update:modelValue",
|
|
68323
|
+
eventName: "update:modelValue",
|
|
68324
|
+
title: "update:modelValue",
|
|
68325
|
+
payload: {}
|
|
68326
|
+
},
|
|
68327
|
+
{
|
|
68328
|
+
name: "change",
|
|
68329
|
+
eventName: "change",
|
|
68330
|
+
title: "change",
|
|
68331
|
+
payload: {}
|
|
68332
|
+
},
|
|
68333
|
+
{
|
|
68334
|
+
name: "hoverChange",
|
|
68335
|
+
eventName: "hover-change",
|
|
68336
|
+
title: "hover-change",
|
|
68337
|
+
payload: {}
|
|
68338
|
+
}
|
|
68339
|
+
],
|
|
68340
|
+
slots: [
|
|
68341
|
+
{
|
|
68342
|
+
name: "item",
|
|
68343
|
+
title: "item",
|
|
68344
|
+
accepts: [
|
|
68345
|
+
"basic",
|
|
68346
|
+
"layout",
|
|
68347
|
+
"form",
|
|
68348
|
+
"display"
|
|
68349
|
+
],
|
|
68350
|
+
multiple: !0,
|
|
68351
|
+
required: !1,
|
|
68352
|
+
editor: {
|
|
68353
|
+
droppable: !0,
|
|
68354
|
+
canvasVisible: !0,
|
|
68355
|
+
defaultVisible: !1
|
|
68356
|
+
},
|
|
68357
|
+
kind: "canvas"
|
|
68358
|
+
}
|
|
68359
|
+
],
|
|
68360
|
+
customTypes: {
|
|
68361
|
+
RateSize: "'sm' | 'md' | 'lg'"
|
|
68362
|
+
},
|
|
68363
|
+
editor: {
|
|
68364
|
+
canvasSlots: [
|
|
68365
|
+
"item"
|
|
68366
|
+
],
|
|
68367
|
+
defaultEnabledSlots: []
|
|
68368
|
+
}
|
|
68369
|
+
}
|
|
68370
|
+
},
|
|
68371
|
+
{
|
|
68372
|
+
name: "TfScoreMetric",
|
|
68373
|
+
title: "TfScoreMetric",
|
|
68374
|
+
category: "basic",
|
|
68375
|
+
group: "basic-components",
|
|
68376
|
+
source: {
|
|
68377
|
+
exportName: "TfScoreMetric",
|
|
68378
|
+
importPath: "tf-ui",
|
|
68379
|
+
path: "packages/ui/components/score-metric"
|
|
68380
|
+
},
|
|
68381
|
+
lowcode: {
|
|
68382
|
+
palette: {
|
|
68383
|
+
icon: "Languages",
|
|
68384
|
+
order: 100,
|
|
68385
|
+
draggable: !0,
|
|
68386
|
+
recommended: !1
|
|
68387
|
+
},
|
|
68388
|
+
props: [
|
|
68389
|
+
{
|
|
68390
|
+
name: "value",
|
|
68391
|
+
title: "value",
|
|
68392
|
+
type: "number | string",
|
|
68393
|
+
control: "number",
|
|
68394
|
+
bindable: !1,
|
|
68395
|
+
advanced: !1,
|
|
68396
|
+
hidden: !1,
|
|
68397
|
+
required: !1,
|
|
68398
|
+
description: "评分值(必填)"
|
|
68399
|
+
},
|
|
68400
|
+
{
|
|
68401
|
+
name: "label",
|
|
68402
|
+
title: "标签",
|
|
68403
|
+
type: "string",
|
|
68404
|
+
control: "text",
|
|
68405
|
+
bindable: !1,
|
|
68406
|
+
advanced: !1,
|
|
68407
|
+
hidden: !1,
|
|
68408
|
+
required: !1,
|
|
68409
|
+
default: "",
|
|
68410
|
+
description: "指标标签"
|
|
68411
|
+
},
|
|
68412
|
+
{
|
|
68413
|
+
name: "icon",
|
|
68414
|
+
title: "图标",
|
|
68415
|
+
type: "Component",
|
|
68416
|
+
control: "text",
|
|
68417
|
+
bindable: !1,
|
|
68418
|
+
advanced: !1,
|
|
68419
|
+
hidden: !1,
|
|
68420
|
+
required: !1,
|
|
68421
|
+
description: "图标组件(传入时优先显示图标,否则显示 value 文本)"
|
|
68422
|
+
},
|
|
68423
|
+
{
|
|
68424
|
+
name: "thresholds",
|
|
68425
|
+
title: "thresholds",
|
|
68426
|
+
type: "ScoreThreshold[]",
|
|
68427
|
+
control: "json",
|
|
68428
|
+
bindable: !1,
|
|
68429
|
+
advanced: !1,
|
|
68430
|
+
hidden: !1,
|
|
68431
|
+
required: !1,
|
|
68432
|
+
description: "数值型阈值配置,从高到低排列;低于最低阈值自动使用 error"
|
|
68433
|
+
},
|
|
68434
|
+
{
|
|
68435
|
+
name: "valueThemes",
|
|
68436
|
+
title: "valueThemes",
|
|
68437
|
+
type: "ValueThemeMapping[]",
|
|
68438
|
+
control: "json",
|
|
68439
|
+
bindable: !1,
|
|
68440
|
+
advanced: !1,
|
|
68441
|
+
hidden: !1,
|
|
68442
|
+
required: !1,
|
|
68443
|
+
description: "值→主题精确映射,用于非数值场景(如布尔状态);优先级高于 thresholds"
|
|
68444
|
+
},
|
|
68445
|
+
{
|
|
68446
|
+
name: "defaultTheme",
|
|
68447
|
+
title: "defaultTheme",
|
|
68448
|
+
type: "MetricTheme",
|
|
68449
|
+
control: "text",
|
|
68450
|
+
bindable: !1,
|
|
68451
|
+
advanced: !1,
|
|
68452
|
+
hidden: !1,
|
|
68453
|
+
required: !1,
|
|
68454
|
+
default: "error",
|
|
68455
|
+
description: "未匹配 valueThemes 时的默认主题"
|
|
68456
|
+
},
|
|
68457
|
+
{
|
|
68458
|
+
name: "size",
|
|
68459
|
+
title: "尺寸",
|
|
68460
|
+
type: "MetricSize",
|
|
68461
|
+
control: "text",
|
|
68462
|
+
bindable: !1,
|
|
68463
|
+
advanced: !1,
|
|
68464
|
+
hidden: !1,
|
|
68465
|
+
required: !1,
|
|
68466
|
+
default: "xs",
|
|
68467
|
+
description: "卡片尺寸"
|
|
68468
|
+
},
|
|
68469
|
+
{
|
|
68470
|
+
name: "accent",
|
|
68471
|
+
title: "accent",
|
|
68472
|
+
type: "boolean",
|
|
68473
|
+
control: "switch",
|
|
68474
|
+
bindable: !1,
|
|
68475
|
+
advanced: !1,
|
|
68476
|
+
hidden: !1,
|
|
68477
|
+
required: !1,
|
|
68478
|
+
default: !0,
|
|
68479
|
+
description: "是否显示左侧色条"
|
|
68480
|
+
},
|
|
68481
|
+
{
|
|
68482
|
+
name: "level",
|
|
68483
|
+
title: "level",
|
|
68484
|
+
type: "1 | 2 | 3 | 4 | 5",
|
|
68485
|
+
control: "text",
|
|
68486
|
+
bindable: !1,
|
|
68487
|
+
advanced: !1,
|
|
68488
|
+
hidden: !1,
|
|
68489
|
+
required: !1,
|
|
68490
|
+
description: "标题级别"
|
|
68491
|
+
},
|
|
68492
|
+
{
|
|
68493
|
+
name: "valueSize",
|
|
68494
|
+
title: "valueSize",
|
|
68495
|
+
type: "string",
|
|
68496
|
+
control: "text",
|
|
68497
|
+
bindable: !1,
|
|
68498
|
+
advanced: !1,
|
|
68499
|
+
hidden: !1,
|
|
68500
|
+
required: !1,
|
|
68501
|
+
description: "数值字体大小"
|
|
68502
|
+
},
|
|
68503
|
+
{
|
|
68504
|
+
name: "labelSize",
|
|
68505
|
+
title: "labelSize",
|
|
68506
|
+
type: "string",
|
|
68507
|
+
control: "text",
|
|
68508
|
+
bindable: !1,
|
|
68509
|
+
advanced: !1,
|
|
68510
|
+
hidden: !1,
|
|
68511
|
+
required: !1,
|
|
68512
|
+
description: "标签字体大小"
|
|
68513
|
+
}
|
|
68514
|
+
],
|
|
68515
|
+
events: [],
|
|
68516
|
+
slots: [],
|
|
68517
|
+
customTypes: {
|
|
68518
|
+
Component: {
|
|
68519
|
+
type: "import('vue').Component",
|
|
68520
|
+
default: "—",
|
|
68521
|
+
description: "Vue 组件实例(如 lucide-vue-next 图标)"
|
|
68522
|
+
},
|
|
68523
|
+
ScoreThreshold: {
|
|
68524
|
+
type: "{ value: number; theme: MetricTheme }",
|
|
68525
|
+
default: "—",
|
|
68526
|
+
description: "数值型阈值条目"
|
|
68527
|
+
},
|
|
68528
|
+
ValueThemeMapping: {
|
|
68529
|
+
type: "{ value: any; theme: MetricTheme }",
|
|
68530
|
+
default: "—",
|
|
68531
|
+
description: "值→主题映射条目"
|
|
68532
|
+
}
|
|
68533
|
+
},
|
|
68534
|
+
editor: {
|
|
68535
|
+
canvasSlots: [],
|
|
68536
|
+
defaultEnabledSlots: []
|
|
68537
|
+
}
|
|
68538
|
+
}
|
|
68539
|
+
},
|
|
68540
|
+
{
|
|
68541
|
+
name: "TfVoiceButton",
|
|
68542
|
+
title: "TfVoiceButton",
|
|
68543
|
+
category: "basic",
|
|
68544
|
+
group: "basic-components",
|
|
68545
|
+
source: {
|
|
68546
|
+
exportName: "TfVoiceButton",
|
|
68547
|
+
importPath: "tf-ui",
|
|
68548
|
+
path: "packages/ui/components/voice-input"
|
|
68549
|
+
},
|
|
68550
|
+
lowcode: {
|
|
68551
|
+
palette: {
|
|
68552
|
+
icon: "Zap",
|
|
68553
|
+
order: 100,
|
|
68554
|
+
draggable: !0,
|
|
68555
|
+
recommended: !1
|
|
68556
|
+
},
|
|
68557
|
+
props: [
|
|
68558
|
+
{
|
|
68559
|
+
name: "text",
|
|
68560
|
+
title: "text",
|
|
68561
|
+
type: "string",
|
|
68562
|
+
control: "text",
|
|
68563
|
+
bindable: !1,
|
|
68564
|
+
advanced: !1,
|
|
68565
|
+
hidden: !1,
|
|
68566
|
+
required: !1,
|
|
68567
|
+
default: "",
|
|
68568
|
+
description: "宿主输入框当前文本(v-model:text),识别结果追加到其后"
|
|
68569
|
+
},
|
|
68570
|
+
{
|
|
68571
|
+
name: "lang",
|
|
68572
|
+
title: "lang",
|
|
68573
|
+
type: "string",
|
|
68574
|
+
control: "text",
|
|
68575
|
+
bindable: !1,
|
|
68576
|
+
advanced: !1,
|
|
68577
|
+
hidden: !1,
|
|
68578
|
+
required: !1,
|
|
68579
|
+
default: "zh-CN",
|
|
68580
|
+
description: "识别语言(BCP-47),默认中文"
|
|
68581
|
+
},
|
|
68582
|
+
{
|
|
68583
|
+
name: "disabled",
|
|
68584
|
+
title: "禁用",
|
|
68585
|
+
type: "boolean",
|
|
68586
|
+
control: "switch",
|
|
68587
|
+
bindable: !1,
|
|
68588
|
+
advanced: !1,
|
|
68589
|
+
hidden: !1,
|
|
68590
|
+
required: !1,
|
|
68591
|
+
default: !1,
|
|
68592
|
+
description: "禁用按钮(如发送中)"
|
|
68593
|
+
},
|
|
68594
|
+
{
|
|
68595
|
+
name: "size",
|
|
68596
|
+
title: "尺寸",
|
|
68597
|
+
type: "VoiceButtonSize",
|
|
68598
|
+
control: "text",
|
|
68599
|
+
bindable: !1,
|
|
68600
|
+
advanced: !1,
|
|
68601
|
+
hidden: !1,
|
|
68602
|
+
required: !1,
|
|
68603
|
+
default: "sm",
|
|
68604
|
+
description: "按钮尺寸:sm / md"
|
|
68605
|
+
}
|
|
68606
|
+
],
|
|
68607
|
+
events: [
|
|
68608
|
+
{
|
|
68609
|
+
name: "update:text",
|
|
68610
|
+
eventName: "update:text",
|
|
68611
|
+
title: "update:text",
|
|
68612
|
+
payload: {}
|
|
68613
|
+
},
|
|
68614
|
+
{
|
|
68615
|
+
name: "result",
|
|
68616
|
+
eventName: "result",
|
|
68617
|
+
title: "result",
|
|
68618
|
+
payload: {}
|
|
68619
|
+
},
|
|
68620
|
+
{
|
|
68621
|
+
name: "listening",
|
|
68622
|
+
eventName: "listening",
|
|
68623
|
+
title: "listening",
|
|
68624
|
+
payload: {}
|
|
68625
|
+
},
|
|
68626
|
+
{
|
|
68627
|
+
name: "error",
|
|
68628
|
+
eventName: "error",
|
|
68629
|
+
title: "error",
|
|
68630
|
+
payload: {}
|
|
68631
|
+
}
|
|
68632
|
+
],
|
|
68633
|
+
slots: [],
|
|
68634
|
+
customTypes: {
|
|
68635
|
+
VoiceButtonSize: "'sm' | 'md'"
|
|
68636
|
+
},
|
|
68637
|
+
editor: {
|
|
68638
|
+
canvasSlots: [],
|
|
68639
|
+
defaultEnabledSlots: []
|
|
68640
|
+
}
|
|
68641
|
+
}
|
|
68642
|
+
},
|
|
68643
|
+
{
|
|
68644
|
+
name: "TfPrintRender",
|
|
68645
|
+
title: "TfPrintRender",
|
|
68646
|
+
category: "basic",
|
|
68647
|
+
group: "basic-components",
|
|
68648
|
+
source: {
|
|
68649
|
+
exportName: "TfPrintRender",
|
|
68650
|
+
importPath: "tf-ui",
|
|
68651
|
+
path: "packages/ui/components/business/print-render"
|
|
68652
|
+
},
|
|
68653
|
+
lowcode: {
|
|
68654
|
+
palette: {
|
|
68655
|
+
icon: "PrinterCheck",
|
|
68656
|
+
order: 100,
|
|
68657
|
+
draggable: !0,
|
|
68658
|
+
recommended: !1
|
|
68659
|
+
},
|
|
68660
|
+
props: [
|
|
68661
|
+
{
|
|
68662
|
+
name: "template",
|
|
68663
|
+
title: "template",
|
|
68664
|
+
type: "PrintRuntimeTemplate",
|
|
68665
|
+
control: "text",
|
|
68666
|
+
bindable: !1,
|
|
68667
|
+
advanced: !1,
|
|
68668
|
+
hidden: !1,
|
|
68669
|
+
required: !1,
|
|
68670
|
+
description: "版本化打印运行时模板,包含纸张尺寸、边距和元素/表格配置"
|
|
68671
|
+
},
|
|
68672
|
+
{
|
|
68673
|
+
name: "data",
|
|
68674
|
+
title: "data",
|
|
68675
|
+
type: "PrintRuntimeRecord",
|
|
68676
|
+
control: "data-binding",
|
|
68677
|
+
bindable: !0,
|
|
68678
|
+
advanced: !1,
|
|
68679
|
+
hidden: !1,
|
|
68680
|
+
required: !1,
|
|
68681
|
+
default: {},
|
|
68682
|
+
description: "当前单据或主记录对象"
|
|
68683
|
+
},
|
|
68684
|
+
{
|
|
68685
|
+
name: "records",
|
|
68686
|
+
title: "records",
|
|
68687
|
+
type: "PrintRuntimeRecord[]",
|
|
68688
|
+
control: "json",
|
|
68689
|
+
bindable: !1,
|
|
68690
|
+
advanced: !1,
|
|
68691
|
+
hidden: !1,
|
|
68692
|
+
required: !1,
|
|
68693
|
+
default: [],
|
|
68694
|
+
description: "动态明细记录数组"
|
|
68695
|
+
},
|
|
68696
|
+
{
|
|
68697
|
+
name: "mode",
|
|
68698
|
+
title: "mode",
|
|
68699
|
+
type: '"preview" | "print"',
|
|
68700
|
+
control: "select",
|
|
68701
|
+
bindable: !1,
|
|
68702
|
+
advanced: !1,
|
|
68703
|
+
hidden: !1,
|
|
68704
|
+
required: !1,
|
|
68705
|
+
options: [
|
|
68706
|
+
{
|
|
68707
|
+
value: "preview",
|
|
68708
|
+
label: "preview"
|
|
68709
|
+
},
|
|
68710
|
+
{
|
|
68711
|
+
value: "print",
|
|
68712
|
+
label: "print"
|
|
68713
|
+
}
|
|
68714
|
+
],
|
|
68715
|
+
default: "preview",
|
|
68716
|
+
description: "预览或打印样式模式;两种模式都不自动调用打印服务"
|
|
68717
|
+
},
|
|
68718
|
+
{
|
|
68719
|
+
name: "loading",
|
|
68720
|
+
title: "加载中",
|
|
68721
|
+
type: "boolean",
|
|
68722
|
+
control: "switch",
|
|
68723
|
+
bindable: !1,
|
|
68724
|
+
advanced: !1,
|
|
68725
|
+
hidden: !1,
|
|
68726
|
+
required: !1,
|
|
68727
|
+
default: !1,
|
|
68728
|
+
description: "是否展示加载状态"
|
|
68729
|
+
},
|
|
68730
|
+
{
|
|
68731
|
+
name: "class",
|
|
68732
|
+
title: "自定义类名",
|
|
68733
|
+
type: "string",
|
|
68734
|
+
control: "text",
|
|
68735
|
+
bindable: !1,
|
|
68736
|
+
advanced: !0,
|
|
68737
|
+
hidden: !1,
|
|
68738
|
+
required: !1,
|
|
68739
|
+
default: "",
|
|
68740
|
+
description: "根节点自定义类名"
|
|
68741
|
+
}
|
|
68742
|
+
],
|
|
68743
|
+
events: [
|
|
68744
|
+
{
|
|
68745
|
+
name: "render",
|
|
68746
|
+
eventName: "render",
|
|
68747
|
+
title: "render",
|
|
68748
|
+
payload: {
|
|
68749
|
+
params: "PrintRenderResult"
|
|
68750
|
+
}
|
|
68751
|
+
},
|
|
68752
|
+
{
|
|
68753
|
+
name: "error",
|
|
68754
|
+
eventName: "error",
|
|
68755
|
+
title: "error",
|
|
68756
|
+
payload: {
|
|
68757
|
+
params: "PrintRuntimeError[]"
|
|
68758
|
+
}
|
|
68759
|
+
},
|
|
68760
|
+
{
|
|
68761
|
+
name: "ready",
|
|
68762
|
+
eventName: "ready",
|
|
68763
|
+
title: "ready",
|
|
68764
|
+
payload: {
|
|
68765
|
+
params: "PrintPage[]"
|
|
68766
|
+
}
|
|
68767
|
+
}
|
|
68768
|
+
],
|
|
68769
|
+
slots: [
|
|
68770
|
+
{
|
|
68771
|
+
name: "loading",
|
|
68772
|
+
title: "加载中",
|
|
68773
|
+
accepts: [
|
|
68774
|
+
"basic",
|
|
68775
|
+
"layout",
|
|
68776
|
+
"form",
|
|
68777
|
+
"display"
|
|
68778
|
+
],
|
|
68779
|
+
multiple: !0,
|
|
68780
|
+
required: !1,
|
|
68781
|
+
editor: {
|
|
68782
|
+
droppable: !0,
|
|
68783
|
+
canvasVisible: !0,
|
|
68784
|
+
defaultVisible: !1
|
|
68785
|
+
},
|
|
68786
|
+
kind: "canvas"
|
|
68787
|
+
},
|
|
68788
|
+
{
|
|
68789
|
+
name: "empty",
|
|
68790
|
+
title: "empty",
|
|
68791
|
+
accepts: [
|
|
68792
|
+
"basic",
|
|
68793
|
+
"layout",
|
|
68794
|
+
"form",
|
|
68795
|
+
"display"
|
|
68796
|
+
],
|
|
68797
|
+
multiple: !0,
|
|
68798
|
+
required: !1,
|
|
68799
|
+
editor: {
|
|
68800
|
+
droppable: !0,
|
|
68801
|
+
canvasVisible: !0,
|
|
68802
|
+
defaultVisible: !1
|
|
68803
|
+
},
|
|
68804
|
+
kind: "canvas"
|
|
68805
|
+
},
|
|
68806
|
+
{
|
|
68807
|
+
name: "error",
|
|
68808
|
+
title: "error",
|
|
68809
|
+
accepts: [
|
|
68810
|
+
"basic",
|
|
68811
|
+
"layout",
|
|
68812
|
+
"form",
|
|
68813
|
+
"display"
|
|
68814
|
+
],
|
|
68815
|
+
multiple: !0,
|
|
68816
|
+
required: !1,
|
|
68817
|
+
editor: {
|
|
68818
|
+
droppable: !0,
|
|
68819
|
+
canvasVisible: !0,
|
|
68820
|
+
defaultVisible: !1
|
|
68821
|
+
},
|
|
68822
|
+
kind: "canvas"
|
|
68823
|
+
},
|
|
68824
|
+
{
|
|
68825
|
+
name: "element",
|
|
68826
|
+
title: "element",
|
|
68827
|
+
accepts: [
|
|
68828
|
+
"basic",
|
|
68829
|
+
"layout",
|
|
68830
|
+
"form",
|
|
68831
|
+
"display"
|
|
68832
|
+
],
|
|
68833
|
+
multiple: !0,
|
|
68834
|
+
required: !1,
|
|
68835
|
+
editor: {
|
|
68836
|
+
droppable: !0,
|
|
68837
|
+
canvasVisible: !0,
|
|
68838
|
+
defaultVisible: !1
|
|
68839
|
+
},
|
|
68840
|
+
kind: "canvas"
|
|
68841
|
+
},
|
|
68842
|
+
{
|
|
68843
|
+
name: "cell",
|
|
68844
|
+
title: "cell",
|
|
68845
|
+
accepts: [
|
|
68846
|
+
"basic",
|
|
68847
|
+
"layout",
|
|
68848
|
+
"form",
|
|
68849
|
+
"display"
|
|
68850
|
+
],
|
|
68851
|
+
multiple: !0,
|
|
68852
|
+
required: !1,
|
|
68853
|
+
editor: {
|
|
68854
|
+
droppable: !0,
|
|
68855
|
+
canvasVisible: !0,
|
|
68856
|
+
defaultVisible: !1
|
|
68857
|
+
},
|
|
68858
|
+
kind: "canvas"
|
|
68859
|
+
}
|
|
68860
|
+
],
|
|
68861
|
+
customTypes: {
|
|
68862
|
+
PrintPaperSize: {
|
|
68863
|
+
kind: "interface",
|
|
68864
|
+
fields: {
|
|
68865
|
+
widthMm: {
|
|
68866
|
+
type: "number",
|
|
68867
|
+
description: "纸张宽度(毫米)"
|
|
68868
|
+
},
|
|
68869
|
+
heightMm: {
|
|
68870
|
+
type: "number",
|
|
68871
|
+
description: "纸张高度(毫米)"
|
|
68872
|
+
}
|
|
68873
|
+
}
|
|
68874
|
+
},
|
|
68875
|
+
PrintRuntimeTemplate: {
|
|
68876
|
+
kind: "interface",
|
|
68877
|
+
fields: {
|
|
68878
|
+
protocol: {
|
|
68879
|
+
type: '"tongfun.print-runtime"',
|
|
68880
|
+
description: "运行时协议标识"
|
|
68881
|
+
},
|
|
68882
|
+
version: {
|
|
68883
|
+
type: "number",
|
|
68884
|
+
description: "运行时协议版本,目前为 1"
|
|
68885
|
+
},
|
|
68886
|
+
paper: {
|
|
68887
|
+
type: "PrintPaperSize",
|
|
68888
|
+
description: "纸张毫米尺寸"
|
|
68889
|
+
},
|
|
68890
|
+
margins: {
|
|
68891
|
+
type: "PrintMargins",
|
|
68892
|
+
description: "纸张边距"
|
|
68893
|
+
},
|
|
68894
|
+
layout: {
|
|
68895
|
+
type: "PrintRuntimePageLayout",
|
|
68896
|
+
description: "页眉、主体和页脚区域配置"
|
|
68897
|
+
},
|
|
68898
|
+
pageLayout: {
|
|
68899
|
+
type: "PrintRuntimePageLayout",
|
|
68900
|
+
description: "layout 的兼容别名"
|
|
68901
|
+
},
|
|
68902
|
+
elements: {
|
|
68903
|
+
type: "PrintRuntimeElement[]",
|
|
68904
|
+
description: "固定内容元素"
|
|
68905
|
+
},
|
|
68906
|
+
tables: {
|
|
68907
|
+
type: "PrintRuntimeTable[]",
|
|
68908
|
+
description: "按设计坐标顺序消费的动态或静态表格配置"
|
|
68909
|
+
}
|
|
68910
|
+
}
|
|
68911
|
+
},
|
|
68912
|
+
PrintRuntimeElement: {
|
|
68913
|
+
kind: "interface",
|
|
68914
|
+
fields: {
|
|
68915
|
+
id: {
|
|
68916
|
+
type: "string",
|
|
68917
|
+
description: "元素标识"
|
|
68918
|
+
},
|
|
68919
|
+
type: {
|
|
68920
|
+
type: "PrintRuntimeElementType",
|
|
68921
|
+
description: "元素类型"
|
|
68922
|
+
},
|
|
68923
|
+
rect: {
|
|
68924
|
+
type: "PrintRuntimeRect",
|
|
68925
|
+
description: "绝对毫米几何"
|
|
68926
|
+
},
|
|
68927
|
+
field: {
|
|
68928
|
+
type: "string | PrintRuntimeBinding",
|
|
68929
|
+
description: "字段路径或字段绑定"
|
|
68930
|
+
},
|
|
68931
|
+
repeatPerPage: {
|
|
68932
|
+
type: "boolean",
|
|
68933
|
+
description: "是否每页重复"
|
|
68934
|
+
},
|
|
68935
|
+
region: {
|
|
68936
|
+
type: "PrintRuntimeElementRegion",
|
|
68937
|
+
description: "元素所在页面区域或表格前后关系"
|
|
68938
|
+
},
|
|
68939
|
+
tableAnchor: {
|
|
68940
|
+
type: '"before" | "after" | { tableId?: string; position: "before" | "after" }',
|
|
68941
|
+
description: "与动态表格的前后锚点"
|
|
68942
|
+
}
|
|
68943
|
+
}
|
|
68944
|
+
},
|
|
68945
|
+
PrintRuntimeTable: {
|
|
68946
|
+
kind: "interface",
|
|
68947
|
+
fields: {
|
|
68948
|
+
id: {
|
|
68949
|
+
type: "string",
|
|
68950
|
+
description: "表格标识"
|
|
68951
|
+
},
|
|
68952
|
+
mode: {
|
|
68953
|
+
type: '"static" | "dynamic"',
|
|
68954
|
+
description: "静态固定布局或动态明细表格;省略时为 dynamic"
|
|
68955
|
+
},
|
|
68956
|
+
dataPath: {
|
|
68957
|
+
type: "string",
|
|
68958
|
+
description: "从主记录读取明细数组的路径"
|
|
68959
|
+
},
|
|
68960
|
+
recordsPath: {
|
|
68961
|
+
type: "string",
|
|
68962
|
+
description: "dataPath 的兼容别名;配置路径时优先于组件 records"
|
|
68963
|
+
},
|
|
68964
|
+
columns: {
|
|
68965
|
+
type: "PrintRuntimeColumn[]",
|
|
68966
|
+
description: "列定义"
|
|
68967
|
+
},
|
|
68968
|
+
rowHeightMm: {
|
|
68969
|
+
type: "number",
|
|
68970
|
+
description: "明细行高"
|
|
68971
|
+
},
|
|
68972
|
+
headerHeightMm: {
|
|
68973
|
+
type: "number",
|
|
68974
|
+
description: "表头行高"
|
|
68975
|
+
},
|
|
68976
|
+
subtotalHeightMm: {
|
|
68977
|
+
type: "number",
|
|
68978
|
+
description: "本页小计行高"
|
|
68979
|
+
},
|
|
68980
|
+
totalHeightMm: {
|
|
68981
|
+
type: "number",
|
|
68982
|
+
description: "全部合计行高"
|
|
68983
|
+
},
|
|
68984
|
+
repeatHeader: {
|
|
68985
|
+
type: "boolean",
|
|
68986
|
+
description: "跨页是否重复表头"
|
|
68987
|
+
},
|
|
68988
|
+
showSubtotal: {
|
|
68989
|
+
type: "boolean",
|
|
68990
|
+
description: "是否显示本页小计"
|
|
68991
|
+
},
|
|
68992
|
+
showTotal: {
|
|
68993
|
+
type: "boolean",
|
|
68994
|
+
description: "是否显示全部合计"
|
|
68995
|
+
},
|
|
68996
|
+
emptyDisplay: {
|
|
68997
|
+
type: '"header-only" | "placeholder" | "hidden"',
|
|
68998
|
+
description: "空明细展示语义,默认 header-only"
|
|
68999
|
+
},
|
|
69000
|
+
emptyText: {
|
|
69001
|
+
type: "string",
|
|
69002
|
+
description: "空明细占位文本,默认暂无明细"
|
|
69003
|
+
}
|
|
69004
|
+
}
|
|
69005
|
+
},
|
|
69006
|
+
PrintFlowBlock: {
|
|
69007
|
+
kind: "interface",
|
|
69008
|
+
summary: "统一分页队列中的普通元素、静态表格或动态表格块",
|
|
69009
|
+
fields: {
|
|
69010
|
+
id: {
|
|
69011
|
+
type: "string",
|
|
69012
|
+
description: "块标识"
|
|
69013
|
+
},
|
|
69014
|
+
kind: {
|
|
69015
|
+
type: '"element" | "static-table" | "dynamic-table"',
|
|
69016
|
+
description: "块类型"
|
|
69017
|
+
},
|
|
69018
|
+
order: {
|
|
69019
|
+
type: "number",
|
|
69020
|
+
description: "模板稳定顺序"
|
|
69021
|
+
},
|
|
69022
|
+
xMm: {
|
|
69023
|
+
type: "number",
|
|
69024
|
+
description: "设计横坐标"
|
|
69025
|
+
},
|
|
69026
|
+
yMm: {
|
|
69027
|
+
type: "number",
|
|
69028
|
+
description: "设计纵坐标"
|
|
69029
|
+
},
|
|
69030
|
+
widthMm: {
|
|
69031
|
+
type: "number",
|
|
69032
|
+
description: "块宽度"
|
|
69033
|
+
},
|
|
69034
|
+
heightMm: {
|
|
69035
|
+
type: "number",
|
|
69036
|
+
description: "块高度"
|
|
69037
|
+
}
|
|
69038
|
+
}
|
|
69039
|
+
},
|
|
69040
|
+
PrintTableFragment: {
|
|
69041
|
+
kind: "interface",
|
|
69042
|
+
summary: "动态表格在单页上的记录片段",
|
|
69043
|
+
fields: {
|
|
69044
|
+
tableId: {
|
|
69045
|
+
type: "string",
|
|
69046
|
+
description: "表格标识"
|
|
69047
|
+
},
|
|
69048
|
+
fragmentIndex: {
|
|
69049
|
+
type: "number",
|
|
69050
|
+
description: "片段序号"
|
|
69051
|
+
},
|
|
69052
|
+
recordStart: {
|
|
69053
|
+
type: "number",
|
|
69054
|
+
description: "起始记录索引"
|
|
69055
|
+
},
|
|
69056
|
+
recordEnd: {
|
|
69057
|
+
type: "number",
|
|
69058
|
+
description: "结束记录索引(不含)"
|
|
69059
|
+
},
|
|
69060
|
+
pageIndex: {
|
|
69061
|
+
type: "number",
|
|
69062
|
+
description: "页面索引"
|
|
69063
|
+
},
|
|
69064
|
+
continued: {
|
|
69065
|
+
type: "boolean",
|
|
69066
|
+
description: "是否为续页片段"
|
|
69067
|
+
},
|
|
69068
|
+
recordCount: {
|
|
69069
|
+
type: "number",
|
|
69070
|
+
description: "片段记录数"
|
|
69071
|
+
}
|
|
69072
|
+
}
|
|
69073
|
+
},
|
|
69074
|
+
PrintRuntimeEmptyDisplay: {
|
|
69075
|
+
kind: "type",
|
|
69076
|
+
summary: "header-only、placeholder 或 hidden"
|
|
69077
|
+
},
|
|
69078
|
+
PrintRuntimeColumn: {
|
|
69079
|
+
kind: "interface",
|
|
69080
|
+
fields: {
|
|
69081
|
+
title: {
|
|
69082
|
+
type: "string",
|
|
69083
|
+
description: "列标题"
|
|
69084
|
+
},
|
|
69085
|
+
field: {
|
|
69086
|
+
type: "string",
|
|
69087
|
+
description: "明细字段路径"
|
|
69088
|
+
},
|
|
69089
|
+
widthMm: {
|
|
69090
|
+
type: "number",
|
|
69091
|
+
description: "列宽"
|
|
69092
|
+
},
|
|
69093
|
+
align: {
|
|
69094
|
+
type: '"left" | "center" | "right"',
|
|
69095
|
+
description: "列对齐"
|
|
69096
|
+
},
|
|
69097
|
+
format: {
|
|
69098
|
+
type: "PrintFieldFormat",
|
|
69099
|
+
description: "文本、数字或日期格式化配置"
|
|
69100
|
+
},
|
|
69101
|
+
subtotal: {
|
|
69102
|
+
type: "boolean",
|
|
69103
|
+
description: "是否参与本页小计;省略时兼容 aggregate"
|
|
69104
|
+
},
|
|
69105
|
+
total: {
|
|
69106
|
+
type: "boolean",
|
|
69107
|
+
description: "是否参与全部合计;省略时兼容 aggregate"
|
|
69108
|
+
},
|
|
69109
|
+
aggregate: {
|
|
69110
|
+
type: '"sum"',
|
|
69111
|
+
description: "旧版兼容汇总别名,同时参与小计和合计"
|
|
69112
|
+
}
|
|
69113
|
+
}
|
|
69114
|
+
},
|
|
69115
|
+
PrintDataContext: {
|
|
69116
|
+
kind: "interface",
|
|
69117
|
+
fields: {
|
|
69118
|
+
data: {
|
|
69119
|
+
type: "PrintRuntimeRecord",
|
|
69120
|
+
description: "主记录"
|
|
69121
|
+
},
|
|
69122
|
+
records: {
|
|
69123
|
+
type: "PrintRuntimeRecord[]",
|
|
69124
|
+
description: "明细记录"
|
|
69125
|
+
}
|
|
69126
|
+
}
|
|
69127
|
+
},
|
|
69128
|
+
PrintPage: {
|
|
69129
|
+
kind: "interface",
|
|
69130
|
+
fields: {
|
|
69131
|
+
currentPage: {
|
|
69132
|
+
type: "number",
|
|
69133
|
+
description: "当前页码,从 1 开始"
|
|
69134
|
+
},
|
|
69135
|
+
pageCount: {
|
|
69136
|
+
type: "number",
|
|
69137
|
+
description: "最终总页数"
|
|
69138
|
+
},
|
|
69139
|
+
widthMm: {
|
|
69140
|
+
type: "number",
|
|
69141
|
+
description: "页面宽度"
|
|
69142
|
+
},
|
|
69143
|
+
heightMm: {
|
|
69144
|
+
type: "number",
|
|
69145
|
+
description: "页面高度"
|
|
69146
|
+
},
|
|
69147
|
+
contentArea: {
|
|
69148
|
+
type: "PrintContentArea",
|
|
69149
|
+
description: "页面主体内容区"
|
|
69150
|
+
},
|
|
69151
|
+
headerArea: {
|
|
69152
|
+
type: "PrintPageRegion",
|
|
69153
|
+
description: "页面页眉区域"
|
|
69154
|
+
},
|
|
69155
|
+
footerArea: {
|
|
69156
|
+
type: "PrintPageRegion",
|
|
69157
|
+
description: "页面页脚区域"
|
|
69158
|
+
},
|
|
69159
|
+
elements: {
|
|
69160
|
+
type: "PrintResolvedElement[]",
|
|
69161
|
+
description: "页面固定元素"
|
|
69162
|
+
},
|
|
69163
|
+
tables: {
|
|
69164
|
+
type: "PrintPageTable[]",
|
|
69165
|
+
description: "页面表格"
|
|
69166
|
+
},
|
|
69167
|
+
items: {
|
|
69168
|
+
type: "PrintPageItem[]",
|
|
69169
|
+
description: "按页面位置排序的可渲染项目"
|
|
69170
|
+
}
|
|
69171
|
+
}
|
|
69172
|
+
},
|
|
69173
|
+
PrintPageContext: {
|
|
69174
|
+
kind: "interface",
|
|
69175
|
+
fields: {
|
|
69176
|
+
currentPage: {
|
|
69177
|
+
type: "number",
|
|
69178
|
+
description: "当前页码"
|
|
69179
|
+
},
|
|
69180
|
+
pageIndex: {
|
|
69181
|
+
type: "number",
|
|
69182
|
+
description: "从 0 开始的页面索引"
|
|
69183
|
+
},
|
|
69184
|
+
pageCount: {
|
|
69185
|
+
type: "number",
|
|
69186
|
+
description: "最终总页数"
|
|
69187
|
+
},
|
|
69188
|
+
totalPages: {
|
|
69189
|
+
type: "number",
|
|
69190
|
+
description: "最终总页数别名"
|
|
69191
|
+
}
|
|
69192
|
+
}
|
|
69193
|
+
},
|
|
69194
|
+
PrintMargins: {
|
|
69195
|
+
kind: "interface",
|
|
69196
|
+
fields: {
|
|
69197
|
+
topMm: {
|
|
69198
|
+
type: "number",
|
|
69199
|
+
description: "上边距"
|
|
69200
|
+
},
|
|
69201
|
+
rightMm: {
|
|
69202
|
+
type: "number",
|
|
69203
|
+
description: "右边距"
|
|
69204
|
+
},
|
|
69205
|
+
bottomMm: {
|
|
69206
|
+
type: "number",
|
|
69207
|
+
description: "下边距"
|
|
69208
|
+
},
|
|
69209
|
+
leftMm: {
|
|
69210
|
+
type: "number",
|
|
69211
|
+
description: "左边距"
|
|
69212
|
+
}
|
|
69213
|
+
}
|
|
69214
|
+
},
|
|
69215
|
+
PrintRuntimeRecord: {
|
|
69216
|
+
kind: "type",
|
|
69217
|
+
summary: "主记录或明细记录对象"
|
|
69218
|
+
},
|
|
69219
|
+
PrintRuntimeRecordPath: {
|
|
69220
|
+
kind: "type",
|
|
69221
|
+
summary: "从主记录读取动态表格数组的点路径"
|
|
69222
|
+
},
|
|
69223
|
+
PrintLayoutDiagnostic: {
|
|
69224
|
+
kind: "interface",
|
|
69225
|
+
summary: "流式分页布局诊断信息",
|
|
69226
|
+
fields: {
|
|
69227
|
+
code: {
|
|
69228
|
+
type: "string",
|
|
69229
|
+
description: "诊断编码"
|
|
69230
|
+
},
|
|
69231
|
+
message: {
|
|
69232
|
+
type: "string",
|
|
69233
|
+
description: "可读诊断信息"
|
|
69234
|
+
},
|
|
69235
|
+
path: {
|
|
69236
|
+
type: "string",
|
|
69237
|
+
description: "协议路径"
|
|
69238
|
+
},
|
|
69239
|
+
severity: {
|
|
69240
|
+
type: '"error" | "warning"',
|
|
69241
|
+
description: "诊断级别"
|
|
69242
|
+
},
|
|
69243
|
+
blockId: {
|
|
69244
|
+
type: "string",
|
|
69245
|
+
description: "相关流式块标识"
|
|
69246
|
+
},
|
|
69247
|
+
pageIndex: {
|
|
69248
|
+
type: "number",
|
|
69249
|
+
description: "相关页面索引"
|
|
69250
|
+
}
|
|
69251
|
+
}
|
|
69252
|
+
},
|
|
69253
|
+
PrintRuntimeElementType: {
|
|
69254
|
+
kind: "type",
|
|
69255
|
+
summary: "text、field、image、barcode、qrcode、pageNumber"
|
|
69256
|
+
},
|
|
69257
|
+
PrintRuntimeTableMode: {
|
|
69258
|
+
kind: "type",
|
|
69259
|
+
summary: "static 或 dynamic"
|
|
69260
|
+
},
|
|
69261
|
+
PrintRuntimeElementRegion: {
|
|
69262
|
+
kind: "type",
|
|
69263
|
+
summary: "header、body、footer、beforeTable、afterTable"
|
|
69264
|
+
},
|
|
69265
|
+
PrintRuntimePageRegion: {
|
|
69266
|
+
kind: "interface",
|
|
69267
|
+
fields: {
|
|
69268
|
+
enabled: {
|
|
69269
|
+
type: "boolean",
|
|
69270
|
+
description: "区域是否启用"
|
|
69271
|
+
},
|
|
69272
|
+
xMm: {
|
|
69273
|
+
type: "number",
|
|
69274
|
+
description: "区域横坐标"
|
|
69275
|
+
},
|
|
69276
|
+
yMm: {
|
|
69277
|
+
type: "number",
|
|
69278
|
+
description: "区域纵坐标"
|
|
69279
|
+
},
|
|
69280
|
+
widthMm: {
|
|
69281
|
+
type: "number",
|
|
69282
|
+
description: "区域宽度"
|
|
69283
|
+
},
|
|
69284
|
+
heightMm: {
|
|
69285
|
+
type: "number",
|
|
69286
|
+
description: "区域高度"
|
|
69287
|
+
}
|
|
69288
|
+
}
|
|
69289
|
+
},
|
|
69290
|
+
PrintRuntimePageLayout: {
|
|
69291
|
+
kind: "interface",
|
|
69292
|
+
fields: {
|
|
69293
|
+
header: {
|
|
69294
|
+
type: "PrintRuntimePageRegion",
|
|
69295
|
+
description: "页眉配置"
|
|
69296
|
+
},
|
|
69297
|
+
body: {
|
|
69298
|
+
type: "PrintRuntimePageRegion",
|
|
69299
|
+
description: "主体配置"
|
|
69300
|
+
},
|
|
69301
|
+
footer: {
|
|
69302
|
+
type: "PrintRuntimePageRegion",
|
|
69303
|
+
description: "页脚配置"
|
|
69304
|
+
}
|
|
69305
|
+
}
|
|
69306
|
+
},
|
|
69307
|
+
PrintContentArea: {
|
|
69308
|
+
kind: "interface",
|
|
69309
|
+
fields: {
|
|
69310
|
+
xMm: {
|
|
69311
|
+
type: "number",
|
|
69312
|
+
description: "主体横坐标"
|
|
69313
|
+
},
|
|
69314
|
+
yMm: {
|
|
69315
|
+
type: "number",
|
|
69316
|
+
description: "主体纵坐标"
|
|
69317
|
+
},
|
|
69318
|
+
widthMm: {
|
|
69319
|
+
type: "number",
|
|
69320
|
+
description: "主体宽度"
|
|
69321
|
+
},
|
|
69322
|
+
heightMm: {
|
|
69323
|
+
type: "number",
|
|
69324
|
+
description: "主体高度"
|
|
69325
|
+
}
|
|
69326
|
+
}
|
|
69327
|
+
},
|
|
69328
|
+
PrintPageItem: {
|
|
69329
|
+
kind: "type",
|
|
69330
|
+
summary: "按位置排序的普通元素或表格项目"
|
|
69331
|
+
},
|
|
69332
|
+
PrintRuntimeRect: {
|
|
69333
|
+
kind: "interface",
|
|
69334
|
+
fields: {
|
|
69335
|
+
xMm: {
|
|
69336
|
+
type: "number",
|
|
69337
|
+
description: "横坐标"
|
|
69338
|
+
},
|
|
69339
|
+
yMm: {
|
|
69340
|
+
type: "number",
|
|
69341
|
+
description: "纵坐标"
|
|
69342
|
+
},
|
|
69343
|
+
widthMm: {
|
|
69344
|
+
type: "number",
|
|
69345
|
+
description: "宽度"
|
|
69346
|
+
},
|
|
69347
|
+
heightMm: {
|
|
69348
|
+
type: "number",
|
|
69349
|
+
description: "高度"
|
|
69350
|
+
}
|
|
69351
|
+
}
|
|
69352
|
+
},
|
|
69353
|
+
PrintRuntimeBinding: {
|
|
69354
|
+
kind: "interface",
|
|
69355
|
+
fields: {
|
|
69356
|
+
path: {
|
|
69357
|
+
type: "string",
|
|
69358
|
+
description: "点路径字段"
|
|
69359
|
+
},
|
|
69360
|
+
source: {
|
|
69361
|
+
type: '"data" | "record"',
|
|
69362
|
+
description: "字段来源"
|
|
69363
|
+
},
|
|
69364
|
+
format: {
|
|
69365
|
+
type: "PrintFieldFormat",
|
|
69366
|
+
description: "格式化配置"
|
|
69367
|
+
}
|
|
69368
|
+
}
|
|
69369
|
+
},
|
|
69370
|
+
PrintFieldFormat: {
|
|
69371
|
+
kind: "interface",
|
|
69372
|
+
fields: {
|
|
69373
|
+
type: {
|
|
69374
|
+
type: '"text" | "number" | "date"',
|
|
69375
|
+
description: "格式类型"
|
|
69376
|
+
},
|
|
69377
|
+
decimals: {
|
|
69378
|
+
type: "number",
|
|
69379
|
+
description: "数字小数位"
|
|
69380
|
+
},
|
|
69381
|
+
minimumFractionDigits: {
|
|
69382
|
+
type: "number",
|
|
69383
|
+
description: "数字最少小数位"
|
|
69384
|
+
},
|
|
69385
|
+
maximumFractionDigits: {
|
|
69386
|
+
type: "number",
|
|
69387
|
+
description: "数字最多小数位"
|
|
69388
|
+
},
|
|
69389
|
+
locale: {
|
|
69390
|
+
type: "string",
|
|
69391
|
+
description: "Intl locale"
|
|
69392
|
+
},
|
|
69393
|
+
dateStyle: {
|
|
69394
|
+
type: '"full" | "long" | "medium" | "short"',
|
|
69395
|
+
description: "日期显示样式"
|
|
69396
|
+
},
|
|
69397
|
+
prefix: {
|
|
69398
|
+
type: "string",
|
|
69399
|
+
description: "值前缀"
|
|
69400
|
+
},
|
|
69401
|
+
suffix: {
|
|
69402
|
+
type: "string",
|
|
69403
|
+
description: "值后缀"
|
|
69404
|
+
},
|
|
69405
|
+
emptyText: {
|
|
69406
|
+
type: "string",
|
|
69407
|
+
description: "空值或非法值显示文本"
|
|
69408
|
+
}
|
|
69409
|
+
}
|
|
69410
|
+
},
|
|
69411
|
+
PrintRuntimeError: {
|
|
69412
|
+
kind: "interface",
|
|
69413
|
+
fields: {
|
|
69414
|
+
code: {
|
|
69415
|
+
type: "string",
|
|
69416
|
+
description: "错误编码"
|
|
69417
|
+
},
|
|
69418
|
+
message: {
|
|
69419
|
+
type: "string",
|
|
69420
|
+
description: "可诊断错误信息"
|
|
69421
|
+
},
|
|
69422
|
+
path: {
|
|
69423
|
+
type: "string",
|
|
69424
|
+
description: "协议路径"
|
|
69425
|
+
},
|
|
69426
|
+
severity: {
|
|
69427
|
+
type: '"error" | "warning"',
|
|
69428
|
+
description: "诊断级别;无效记录路径可作为 warning 返回"
|
|
69429
|
+
},
|
|
69430
|
+
blockId: {
|
|
69431
|
+
type: "string",
|
|
69432
|
+
description: "相关流式块标识"
|
|
69433
|
+
},
|
|
69434
|
+
pageIndex: {
|
|
69435
|
+
type: "number",
|
|
69436
|
+
description: "相关页面索引"
|
|
69437
|
+
}
|
|
69438
|
+
}
|
|
69439
|
+
},
|
|
69440
|
+
PrintRenderResult: {
|
|
69441
|
+
kind: "interface",
|
|
69442
|
+
fields: {
|
|
69443
|
+
valid: {
|
|
69444
|
+
type: "boolean",
|
|
69445
|
+
description: "模板是否有效"
|
|
69446
|
+
},
|
|
69447
|
+
pages: {
|
|
69448
|
+
type: "PrintPage[]",
|
|
69449
|
+
description: "分页页面模型"
|
|
69450
|
+
},
|
|
69451
|
+
pageCount: {
|
|
69452
|
+
type: "number",
|
|
69453
|
+
description: "页面数量"
|
|
69454
|
+
},
|
|
69455
|
+
errors: {
|
|
69456
|
+
type: "PrintRuntimeError[]",
|
|
69457
|
+
description: "错误集合"
|
|
69458
|
+
}
|
|
69459
|
+
}
|
|
69460
|
+
}
|
|
69461
|
+
},
|
|
69462
|
+
editor: {
|
|
69463
|
+
canvasSlots: [
|
|
69464
|
+
"loading",
|
|
69465
|
+
"empty",
|
|
69466
|
+
"error",
|
|
69467
|
+
"element",
|
|
69468
|
+
"cell"
|
|
69469
|
+
],
|
|
69470
|
+
defaultEnabledSlots: []
|
|
69471
|
+
}
|
|
69472
|
+
}
|
|
66473
69473
|
}
|
|
66474
69474
|
], k = {
|
|
66475
69475
|
app_header: [
|
|
@@ -67469,8 +70469,8 @@ const q = "0.1.0", w = {
|
|
|
67469
70469
|
}
|
|
67470
70470
|
}, N = {
|
|
67471
70471
|
schemaVersion: q,
|
|
67472
|
-
library:
|
|
67473
|
-
groups:
|
|
70472
|
+
library: T,
|
|
70473
|
+
groups: w,
|
|
67474
70474
|
components: x,
|
|
67475
70475
|
agentCapabilityIndex: k,
|
|
67476
70476
|
sceneTemplates: S,
|
|
@@ -67478,7 +70478,7 @@ const q = "0.1.0", w = {
|
|
|
67478
70478
|
controlContract: C,
|
|
67479
70479
|
registryConventions: V,
|
|
67480
70480
|
formFieldContract: A
|
|
67481
|
-
}, g = /* @__PURE__ */ new Set(["object", "collection", "scalar", "tree", "options", "pagination", "status"]),
|
|
70481
|
+
}, g = /* @__PURE__ */ new Set(["object", "collection", "scalar", "tree", "options", "pagination", "status"]), P = /* @__PURE__ */ new Set(["controlled", "runtime-only", "disabled"]), F = /* @__PURE__ */ new Set(["external", "prop", "slot"]);
|
|
67482
70482
|
function c(e) {
|
|
67483
70483
|
return { valid: e.length === 0, diagnostics: e };
|
|
67484
70484
|
}
|
|
@@ -67511,8 +70511,8 @@ function j(e) {
|
|
|
67511
70511
|
y(u, m, a), u.path.startsWith(`${n.prop}.`) || a.push({ path: `${m}.path`, message: "nested path must stay under its parent prop" });
|
|
67512
70512
|
});
|
|
67513
70513
|
const f = n.errorChannel;
|
|
67514
|
-
f && !
|
|
67515
|
-
}) : a.push({ path: "lowcode.data.bindings", message: "bindings must be an array" }), !t.design || !
|
|
70514
|
+
f && !F.has(f.consumer) && a.push({ path: `${i}.errorChannel.consumer`, message: `Unknown error consumer: ${f.consumer}` });
|
|
70515
|
+
}) : a.push({ path: "lowcode.data.bindings", message: "bindings must be an array" }), !t.design || !P.has(t.design.requestPolicy))
|
|
67516
70516
|
a.push({ path: "lowcode.data.design.requestPolicy", message: "requestPolicy is required and must be known" });
|
|
67517
70517
|
else
|
|
67518
70518
|
for (const [n, l] of Object.entries(t.design.emptyStateProps ?? {})) {
|