n8n-nodes-wecom 0.3.14 → 0.3.15
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/nodes/WeCom/resources/message/execute.js +102 -168
- package/dist/nodes/WeCom/resources/message/execute.js.map +1 -1
- package/dist/nodes/WeCom/resources/message/sendTemplateCard.js +483 -61
- package/dist/nodes/WeCom/resources/message/sendTemplateCard.js.map +1 -1
- package/dist/nodes/WeCom/resources/message/updateTemplateCard.js +483 -61
- package/dist/nodes/WeCom/resources/message/updateTemplateCard.js.map +1 -1
- package/dist/nodes/WeCom/resources/passiveReply/execute.js +51 -84
- package/dist/nodes/WeCom/resources/passiveReply/execute.js.map +1 -1
- package/dist/nodes/WeCom/resources/passiveReply/index.js +469 -41
- package/dist/nodes/WeCom/resources/passiveReply/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -52,7 +52,6 @@ exports.updateTemplateCardDescription = [
|
|
|
52
52
|
description: '文本通知型模板卡片',
|
|
53
53
|
},
|
|
54
54
|
],
|
|
55
|
-
required: true,
|
|
56
55
|
default: 'text_notice',
|
|
57
56
|
displayOptions: {
|
|
58
57
|
show: showOnlyUpdateTemplateCard,
|
|
@@ -60,50 +59,172 @@ exports.updateTemplateCardDescription = [
|
|
|
60
59
|
description: '选择模板卡片的类型。<a href="https://developer.work.weixin.qq.com/document/path/94888" target="_blank">官方文档</a>',
|
|
61
60
|
},
|
|
62
61
|
{
|
|
63
|
-
displayName: '
|
|
62
|
+
displayName: '卡片来源',
|
|
64
63
|
name: 'source',
|
|
65
|
-
type: '
|
|
66
|
-
default:
|
|
67
|
-
placeholder: '
|
|
64
|
+
type: 'fixedCollection',
|
|
65
|
+
default: {},
|
|
66
|
+
placeholder: '添加来源信息',
|
|
68
67
|
displayOptions: {
|
|
69
68
|
show: showOnlyUpdateTemplateCard,
|
|
70
69
|
},
|
|
71
|
-
description: '
|
|
70
|
+
description: '可选。模板卡片来源样式信息',
|
|
71
|
+
options: [
|
|
72
|
+
{
|
|
73
|
+
name: 'sourceInfo',
|
|
74
|
+
displayName: '来源信息',
|
|
75
|
+
values: [
|
|
76
|
+
{
|
|
77
|
+
displayName: '来源图标URL',
|
|
78
|
+
name: 'icon_url',
|
|
79
|
+
type: 'string',
|
|
80
|
+
default: '',
|
|
81
|
+
placeholder: 'https://example.com/icon.png',
|
|
82
|
+
description: '来源图标的URL地址',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
displayName: '来源描述',
|
|
86
|
+
name: 'desc',
|
|
87
|
+
type: 'string',
|
|
88
|
+
default: '',
|
|
89
|
+
placeholder: '企业微信',
|
|
90
|
+
description: '来源的描述文字',
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
},
|
|
94
|
+
],
|
|
72
95
|
},
|
|
73
96
|
{
|
|
74
97
|
displayName: '一级标题',
|
|
75
98
|
name: 'main_title',
|
|
76
|
-
type: '
|
|
77
|
-
default:
|
|
78
|
-
placeholder: '
|
|
99
|
+
type: 'fixedCollection',
|
|
100
|
+
default: {},
|
|
101
|
+
placeholder: '添加标题',
|
|
79
102
|
displayOptions: {
|
|
80
103
|
show: showOnlyUpdateTemplateCard,
|
|
81
104
|
},
|
|
82
|
-
|
|
83
|
-
|
|
105
|
+
description: '模板卡片的主要内容,包含一级标题和标题辅助信息',
|
|
106
|
+
options: [
|
|
107
|
+
{
|
|
108
|
+
name: 'titleInfo',
|
|
109
|
+
displayName: '标题内容',
|
|
110
|
+
values: [
|
|
111
|
+
{
|
|
112
|
+
displayName: '标题',
|
|
113
|
+
name: 'title',
|
|
114
|
+
type: 'string',
|
|
115
|
+
default: '',
|
|
116
|
+
placeholder: '欢迎使用',
|
|
117
|
+
description: '一级标题文本',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
displayName: '副标题',
|
|
121
|
+
name: 'desc',
|
|
122
|
+
type: 'string',
|
|
123
|
+
default: '',
|
|
124
|
+
placeholder: '点击查看详情',
|
|
125
|
+
description: '标题辅助信息',
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
},
|
|
129
|
+
],
|
|
84
130
|
},
|
|
85
131
|
{
|
|
86
132
|
displayName: '关键数据样式',
|
|
87
133
|
name: 'emphasis_content',
|
|
88
|
-
type: '
|
|
89
|
-
default:
|
|
90
|
-
placeholder: '
|
|
134
|
+
type: 'fixedCollection',
|
|
135
|
+
default: {},
|
|
136
|
+
placeholder: '添加关键数据',
|
|
91
137
|
displayOptions: {
|
|
92
138
|
show: showOnlyUpdateTemplateCard,
|
|
93
139
|
},
|
|
94
|
-
description: '
|
|
140
|
+
description: '可选。关键数据样式',
|
|
141
|
+
options: [
|
|
142
|
+
{
|
|
143
|
+
name: 'emphasisInfo',
|
|
144
|
+
displayName: '关键数据',
|
|
145
|
+
values: [
|
|
146
|
+
{
|
|
147
|
+
displayName: '数据',
|
|
148
|
+
name: 'title',
|
|
149
|
+
type: 'string',
|
|
150
|
+
default: '',
|
|
151
|
+
placeholder: '100',
|
|
152
|
+
description: '关键数据内容',
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
displayName: '数据描述',
|
|
156
|
+
name: 'desc',
|
|
157
|
+
type: 'string',
|
|
158
|
+
default: '',
|
|
159
|
+
placeholder: '已完成',
|
|
160
|
+
description: '数据的描述说明',
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
},
|
|
164
|
+
],
|
|
95
165
|
},
|
|
96
166
|
{
|
|
97
167
|
displayName: '引用文献样式',
|
|
98
168
|
name: 'quote_area',
|
|
99
|
-
type: '
|
|
100
|
-
default:
|
|
101
|
-
placeholder: '
|
|
169
|
+
type: 'fixedCollection',
|
|
170
|
+
default: {},
|
|
171
|
+
placeholder: '添加引用',
|
|
102
172
|
displayOptions: {
|
|
103
173
|
show: showOnlyUpdateTemplateCard,
|
|
104
174
|
},
|
|
105
|
-
|
|
106
|
-
|
|
175
|
+
description: '可选。引用文献样式,建议不与关键数据共用',
|
|
176
|
+
options: [
|
|
177
|
+
{
|
|
178
|
+
name: 'quoteInfo',
|
|
179
|
+
displayName: '引用内容',
|
|
180
|
+
values: [
|
|
181
|
+
{
|
|
182
|
+
displayName: '引用类型',
|
|
183
|
+
name: 'type',
|
|
184
|
+
type: 'options',
|
|
185
|
+
options: [
|
|
186
|
+
{
|
|
187
|
+
name: '边框类型',
|
|
188
|
+
value: 1,
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
name: '卡片类型',
|
|
192
|
+
value: 2,
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
default: 1,
|
|
196
|
+
description: '引用文献的样式类型',
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
displayName: '引用链接',
|
|
200
|
+
name: 'url',
|
|
201
|
+
type: 'string',
|
|
202
|
+
default: '',
|
|
203
|
+
placeholder: 'https://example.com',
|
|
204
|
+
description: '点击引用后跳转的链接',
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
displayName: '引用标题',
|
|
208
|
+
name: 'title',
|
|
209
|
+
type: 'string',
|
|
210
|
+
default: '',
|
|
211
|
+
placeholder: '引用标题',
|
|
212
|
+
description: '引用文献的标题',
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
displayName: '引用文本',
|
|
216
|
+
name: 'quote_text',
|
|
217
|
+
type: 'string',
|
|
218
|
+
typeOptions: {
|
|
219
|
+
rows: 3,
|
|
220
|
+
},
|
|
221
|
+
default: '',
|
|
222
|
+
placeholder: '引用的具体内容',
|
|
223
|
+
description: '引用文献的具体文本内容',
|
|
224
|
+
},
|
|
225
|
+
],
|
|
226
|
+
},
|
|
227
|
+
],
|
|
107
228
|
},
|
|
108
229
|
{
|
|
109
230
|
displayName: '二级普通文本',
|
|
@@ -120,44 +241,169 @@ exports.updateTemplateCardDescription = [
|
|
|
120
241
|
{
|
|
121
242
|
displayName: '二级标题+文本列表',
|
|
122
243
|
name: 'horizontal_content_list',
|
|
123
|
-
type: '
|
|
244
|
+
type: 'fixedCollection',
|
|
124
245
|
typeOptions: {
|
|
125
|
-
|
|
246
|
+
multipleValues: true,
|
|
126
247
|
},
|
|
127
|
-
default:
|
|
128
|
-
placeholder: '
|
|
248
|
+
default: {},
|
|
249
|
+
placeholder: '添加列表项',
|
|
129
250
|
displayOptions: {
|
|
130
251
|
show: showOnlyUpdateTemplateCard,
|
|
131
252
|
},
|
|
132
|
-
|
|
133
|
-
|
|
253
|
+
description: '可选。二级标题+文本列表,列表长度不超过6',
|
|
254
|
+
options: [
|
|
255
|
+
{
|
|
256
|
+
name: 'items',
|
|
257
|
+
displayName: '列表项',
|
|
258
|
+
values: [
|
|
259
|
+
{
|
|
260
|
+
displayName: '标题',
|
|
261
|
+
name: 'keyname',
|
|
262
|
+
type: 'string',
|
|
263
|
+
default: '',
|
|
264
|
+
placeholder: '姓名',
|
|
265
|
+
description: '列表项的标题',
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
displayName: '内容',
|
|
269
|
+
name: 'value',
|
|
270
|
+
type: 'string',
|
|
271
|
+
default: '',
|
|
272
|
+
placeholder: '张三',
|
|
273
|
+
description: '列表项的内容',
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
displayName: '内容类型',
|
|
277
|
+
name: 'type',
|
|
278
|
+
type: 'options',
|
|
279
|
+
options: [
|
|
280
|
+
{
|
|
281
|
+
name: '普通文本',
|
|
282
|
+
value: 0,
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
name: '带跳转链接',
|
|
286
|
+
value: 1,
|
|
287
|
+
},
|
|
288
|
+
],
|
|
289
|
+
default: 0,
|
|
290
|
+
description: '内容的类型',
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
displayName: '跳转链接',
|
|
294
|
+
name: 'url',
|
|
295
|
+
type: 'string',
|
|
296
|
+
default: '',
|
|
297
|
+
placeholder: 'https://example.com',
|
|
298
|
+
description: '点击内容后跳转的链接(仅当类型为带跳转链接时有效)',
|
|
299
|
+
displayOptions: {
|
|
300
|
+
show: {
|
|
301
|
+
type: [1],
|
|
302
|
+
},
|
|
303
|
+
},
|
|
304
|
+
},
|
|
305
|
+
],
|
|
306
|
+
},
|
|
307
|
+
],
|
|
134
308
|
},
|
|
135
309
|
{
|
|
136
|
-
displayName: '
|
|
310
|
+
displayName: '跳转指引样式列表',
|
|
137
311
|
name: 'jump_list',
|
|
138
|
-
type: '
|
|
312
|
+
type: 'fixedCollection',
|
|
139
313
|
typeOptions: {
|
|
140
|
-
|
|
314
|
+
multipleValues: true,
|
|
141
315
|
},
|
|
142
|
-
default:
|
|
143
|
-
placeholder: '
|
|
316
|
+
default: {},
|
|
317
|
+
placeholder: '添加跳转指引',
|
|
144
318
|
displayOptions: {
|
|
145
319
|
show: showOnlyUpdateTemplateCard,
|
|
146
320
|
},
|
|
147
|
-
|
|
148
|
-
|
|
321
|
+
description: '可选。跳转指引样式的列表,列表长度不超过3',
|
|
322
|
+
options: [
|
|
323
|
+
{
|
|
324
|
+
name: 'items',
|
|
325
|
+
displayName: '跳转指引',
|
|
326
|
+
values: [
|
|
327
|
+
{
|
|
328
|
+
displayName: '跳转类型',
|
|
329
|
+
name: 'type',
|
|
330
|
+
type: 'options',
|
|
331
|
+
options: [
|
|
332
|
+
{
|
|
333
|
+
name: '跳转URL',
|
|
334
|
+
value: 1,
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
name: '跳转小程序',
|
|
338
|
+
value: 2,
|
|
339
|
+
},
|
|
340
|
+
],
|
|
341
|
+
default: 1,
|
|
342
|
+
description: '跳转目标的类型',
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
displayName: '标题',
|
|
346
|
+
name: 'title',
|
|
347
|
+
type: 'string',
|
|
348
|
+
default: '',
|
|
349
|
+
placeholder: '查看详情',
|
|
350
|
+
description: '跳转指引的标题',
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
displayName: '跳转链接',
|
|
354
|
+
name: 'url',
|
|
355
|
+
type: 'string',
|
|
356
|
+
default: '',
|
|
357
|
+
placeholder: 'https://example.com',
|
|
358
|
+
description: '跳转的URL地址',
|
|
359
|
+
},
|
|
360
|
+
],
|
|
361
|
+
},
|
|
362
|
+
],
|
|
149
363
|
},
|
|
150
364
|
{
|
|
151
|
-
displayName: '
|
|
365
|
+
displayName: '整体卡片点击跳转',
|
|
152
366
|
name: 'card_action',
|
|
153
|
-
type: '
|
|
154
|
-
default:
|
|
155
|
-
placeholder: '
|
|
367
|
+
type: 'fixedCollection',
|
|
368
|
+
default: {},
|
|
369
|
+
placeholder: '设置卡片跳转',
|
|
156
370
|
displayOptions: {
|
|
157
371
|
show: showOnlyUpdateTemplateCard,
|
|
158
372
|
},
|
|
159
|
-
|
|
160
|
-
|
|
373
|
+
description: '整体卡片的点击跳转事件(text_notice必填,news_notice不需要)',
|
|
374
|
+
options: [
|
|
375
|
+
{
|
|
376
|
+
name: 'actionInfo',
|
|
377
|
+
displayName: '跳转设置',
|
|
378
|
+
values: [
|
|
379
|
+
{
|
|
380
|
+
displayName: '跳转类型',
|
|
381
|
+
name: 'type',
|
|
382
|
+
type: 'options',
|
|
383
|
+
options: [
|
|
384
|
+
{
|
|
385
|
+
name: '跳转URL',
|
|
386
|
+
value: 1,
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
name: '跳转小程序',
|
|
390
|
+
value: 2,
|
|
391
|
+
},
|
|
392
|
+
],
|
|
393
|
+
default: 1,
|
|
394
|
+
description: '点击卡片后的跳转类型',
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
displayName: '跳转链接',
|
|
398
|
+
name: 'url',
|
|
399
|
+
type: 'string',
|
|
400
|
+
default: '',
|
|
401
|
+
placeholder: 'https://example.com',
|
|
402
|
+
description: '跳转的URL地址',
|
|
403
|
+
},
|
|
404
|
+
],
|
|
405
|
+
},
|
|
406
|
+
],
|
|
161
407
|
},
|
|
162
408
|
{
|
|
163
409
|
displayName: '任务ID',
|
|
@@ -173,20 +419,60 @@ exports.updateTemplateCardDescription = [
|
|
|
173
419
|
{
|
|
174
420
|
displayName: '按钮列表',
|
|
175
421
|
name: 'button_list',
|
|
176
|
-
type: '
|
|
422
|
+
type: 'fixedCollection',
|
|
177
423
|
typeOptions: {
|
|
178
|
-
|
|
424
|
+
multipleValues: true,
|
|
179
425
|
},
|
|
180
|
-
default:
|
|
181
|
-
placeholder: '
|
|
426
|
+
default: {},
|
|
427
|
+
placeholder: '添加按钮',
|
|
182
428
|
displayOptions: {
|
|
183
429
|
show: {
|
|
184
430
|
...showOnlyUpdateTemplateCard,
|
|
185
431
|
card_type: ['button_interaction'],
|
|
186
432
|
},
|
|
187
433
|
},
|
|
188
|
-
|
|
189
|
-
|
|
434
|
+
description: '按钮交互型卡片的按钮列表,列表长度不超过6',
|
|
435
|
+
options: [
|
|
436
|
+
{
|
|
437
|
+
name: 'buttons',
|
|
438
|
+
displayName: '按钮',
|
|
439
|
+
values: [
|
|
440
|
+
{
|
|
441
|
+
displayName: '按钮文本',
|
|
442
|
+
name: 'text',
|
|
443
|
+
type: 'string',
|
|
444
|
+
default: '',
|
|
445
|
+
placeholder: '同意',
|
|
446
|
+
description: '按钮上显示的文字',
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
displayName: '按钮样式',
|
|
450
|
+
name: 'style',
|
|
451
|
+
type: 'options',
|
|
452
|
+
options: [
|
|
453
|
+
{
|
|
454
|
+
name: '蓝色样式',
|
|
455
|
+
value: 1,
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
name: '灰色样式',
|
|
459
|
+
value: 2,
|
|
460
|
+
},
|
|
461
|
+
],
|
|
462
|
+
default: 1,
|
|
463
|
+
description: '按钮的样式类型',
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
displayName: '按钮Key',
|
|
467
|
+
name: 'key',
|
|
468
|
+
type: 'string',
|
|
469
|
+
default: '',
|
|
470
|
+
placeholder: 'btn_agree',
|
|
471
|
+
description: '按钮的唯一标识,用于回调事件',
|
|
472
|
+
},
|
|
473
|
+
],
|
|
474
|
+
},
|
|
475
|
+
],
|
|
190
476
|
},
|
|
191
477
|
{
|
|
192
478
|
displayName: '选择题Key值',
|
|
@@ -229,21 +515,43 @@ exports.updateTemplateCardDescription = [
|
|
|
229
515
|
{
|
|
230
516
|
displayName: '选项列表',
|
|
231
517
|
name: 'option_list',
|
|
232
|
-
type: '
|
|
518
|
+
type: 'fixedCollection',
|
|
233
519
|
typeOptions: {
|
|
234
|
-
|
|
520
|
+
multipleValues: true,
|
|
235
521
|
},
|
|
236
|
-
default:
|
|
237
|
-
placeholder: '
|
|
522
|
+
default: {},
|
|
523
|
+
placeholder: '添加选项',
|
|
238
524
|
displayOptions: {
|
|
239
525
|
show: {
|
|
240
526
|
...showOnlyUpdateTemplateCard,
|
|
241
527
|
card_type: ['vote_interaction', 'multiple_interaction'],
|
|
242
528
|
},
|
|
243
529
|
},
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
530
|
+
description: '选项列表,列表长度不超过10',
|
|
531
|
+
options: [
|
|
532
|
+
{
|
|
533
|
+
name: 'options',
|
|
534
|
+
displayName: '选项',
|
|
535
|
+
values: [
|
|
536
|
+
{
|
|
537
|
+
displayName: '选项ID',
|
|
538
|
+
name: 'id',
|
|
539
|
+
type: 'string',
|
|
540
|
+
default: '',
|
|
541
|
+
placeholder: 'option1',
|
|
542
|
+
description: '选项的唯一标识',
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
displayName: '选项文本',
|
|
546
|
+
name: 'text',
|
|
547
|
+
type: 'string',
|
|
548
|
+
default: '',
|
|
549
|
+
placeholder: '选项一',
|
|
550
|
+
description: '选项显示的文本',
|
|
551
|
+
},
|
|
552
|
+
],
|
|
553
|
+
},
|
|
554
|
+
],
|
|
247
555
|
},
|
|
248
556
|
{
|
|
249
557
|
displayName: '提交按钮文案',
|
|
@@ -272,34 +580,148 @@ exports.updateTemplateCardDescription = [
|
|
|
272
580
|
card_type: ['vote_interaction', 'multiple_interaction'],
|
|
273
581
|
},
|
|
274
582
|
},
|
|
275
|
-
required: true,
|
|
276
583
|
hint: '最长支持1024字节',
|
|
277
584
|
description: '提交按钮key值,用户提交选项后,会产生回调事件,回调事件会将本参数作为EventKey返回。<a href="https://developer.work.weixin.qq.com/document/path/94888" target="_blank">官方文档</a>',
|
|
278
585
|
},
|
|
279
586
|
{
|
|
280
587
|
displayName: '图片样式',
|
|
281
588
|
name: 'image_text_area',
|
|
282
|
-
type: '
|
|
283
|
-
default:
|
|
284
|
-
placeholder: '
|
|
589
|
+
type: 'fixedCollection',
|
|
590
|
+
default: {},
|
|
591
|
+
placeholder: '添加图片',
|
|
285
592
|
displayOptions: {
|
|
286
593
|
show: {
|
|
287
594
|
...showOnlyUpdateTemplateCard,
|
|
288
595
|
card_type: ['news_notice'],
|
|
289
596
|
},
|
|
290
597
|
},
|
|
291
|
-
description: '
|
|
598
|
+
description: '可选。左图右文样式',
|
|
599
|
+
options: [
|
|
600
|
+
{
|
|
601
|
+
name: 'imageTextInfo',
|
|
602
|
+
displayName: '图片内容',
|
|
603
|
+
values: [
|
|
604
|
+
{
|
|
605
|
+
displayName: '图片类型',
|
|
606
|
+
name: 'type',
|
|
607
|
+
type: 'options',
|
|
608
|
+
options: [
|
|
609
|
+
{
|
|
610
|
+
name: '普通图片',
|
|
611
|
+
value: 0,
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
name: '可点击图片',
|
|
615
|
+
value: 1,
|
|
616
|
+
},
|
|
617
|
+
],
|
|
618
|
+
default: 0,
|
|
619
|
+
description: '图片的类型',
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
displayName: '图片链接',
|
|
623
|
+
name: 'image_url',
|
|
624
|
+
type: 'string',
|
|
625
|
+
default: '',
|
|
626
|
+
placeholder: 'https://example.com/image.png',
|
|
627
|
+
description: '图片的URL地址',
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
displayName: '跳转链接',
|
|
631
|
+
name: 'url',
|
|
632
|
+
type: 'string',
|
|
633
|
+
default: '',
|
|
634
|
+
placeholder: 'https://example.com',
|
|
635
|
+
description: '点击图片后跳转的链接(仅当类型为可点击图片时有效)',
|
|
636
|
+
displayOptions: {
|
|
637
|
+
show: {
|
|
638
|
+
type: [1],
|
|
639
|
+
},
|
|
640
|
+
},
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
displayName: '标题',
|
|
644
|
+
name: 'title',
|
|
645
|
+
type: 'string',
|
|
646
|
+
default: '',
|
|
647
|
+
placeholder: '图片标题',
|
|
648
|
+
description: '图片的标题',
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
displayName: '描述',
|
|
652
|
+
name: 'desc',
|
|
653
|
+
type: 'string',
|
|
654
|
+
typeOptions: {
|
|
655
|
+
rows: 2,
|
|
656
|
+
},
|
|
657
|
+
default: '',
|
|
658
|
+
placeholder: '图片描述',
|
|
659
|
+
description: '图片的描述文字',
|
|
660
|
+
},
|
|
661
|
+
],
|
|
662
|
+
},
|
|
663
|
+
],
|
|
292
664
|
},
|
|
293
665
|
{
|
|
294
666
|
displayName: '卡片右上角更多操作按钮',
|
|
295
667
|
name: 'action_menu',
|
|
296
|
-
type: '
|
|
297
|
-
default:
|
|
298
|
-
placeholder: '
|
|
668
|
+
type: 'fixedCollection',
|
|
669
|
+
default: {},
|
|
670
|
+
placeholder: '添加操作菜单',
|
|
299
671
|
displayOptions: {
|
|
300
672
|
show: showOnlyUpdateTemplateCard,
|
|
301
673
|
},
|
|
302
|
-
description: '
|
|
674
|
+
description: '可选。卡片右上角更多操作按钮',
|
|
675
|
+
options: [
|
|
676
|
+
{
|
|
677
|
+
name: 'menuInfo',
|
|
678
|
+
displayName: '操作菜单',
|
|
679
|
+
values: [
|
|
680
|
+
{
|
|
681
|
+
displayName: '菜单描述',
|
|
682
|
+
name: 'desc',
|
|
683
|
+
type: 'string',
|
|
684
|
+
default: '',
|
|
685
|
+
placeholder: '更多操作',
|
|
686
|
+
description: '菜单的描述文字',
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
displayName: '操作列表',
|
|
690
|
+
name: 'action_list',
|
|
691
|
+
type: 'fixedCollection',
|
|
692
|
+
typeOptions: {
|
|
693
|
+
multipleValues: true,
|
|
694
|
+
},
|
|
695
|
+
default: {},
|
|
696
|
+
placeholder: '添加操作',
|
|
697
|
+
options: [
|
|
698
|
+
{
|
|
699
|
+
name: 'actions',
|
|
700
|
+
displayName: '操作',
|
|
701
|
+
values: [
|
|
702
|
+
{
|
|
703
|
+
displayName: '操作文本',
|
|
704
|
+
name: 'text',
|
|
705
|
+
type: 'string',
|
|
706
|
+
default: '',
|
|
707
|
+
placeholder: '删除',
|
|
708
|
+
description: '操作的文本',
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
displayName: '操作Key',
|
|
712
|
+
name: 'key',
|
|
713
|
+
type: 'string',
|
|
714
|
+
default: '',
|
|
715
|
+
placeholder: 'action_delete',
|
|
716
|
+
description: '操作的唯一标识',
|
|
717
|
+
},
|
|
718
|
+
],
|
|
719
|
+
},
|
|
720
|
+
],
|
|
721
|
+
},
|
|
722
|
+
],
|
|
723
|
+
},
|
|
724
|
+
],
|
|
303
725
|
},
|
|
304
726
|
{
|
|
305
727
|
displayName: '更新卡片所需要消费的按钮Key值',
|