jufubao-base 1.0.311-beta1 → 1.0.311-beta101
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/package.json +1 -1
- package/src/components/JfbBaseBlock/Attr.js +167 -34
- package/src/components/JfbBaseBlock/JfbBaseBlock.vue +12 -9
- package/src/components/JfbBaseCardDetail/Attr.js +0 -12
- package/src/components/JfbBaseCardDetail/JfbBaseCardDetail.vue +1 -162
- package/src/components/JfbBaseCardDetailEntry/Attr.js +0 -12
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +2 -163
- package/src/components/JfbBaseEntry/Attr.js +5 -72
- package/src/components/JfbBaseEntry/JfbBaseEntry.vue +183 -47
- package/src/components/JfbBaseEntry/cusAttr/content.js +77 -0
- package/src/components/JfbBaseEntry/cusAttr/style.js +288 -0
- package/src/components/JfbBaseImageBlock/Attr.js +150 -23
- package/src/components/JfbBaseImageBlock/JfbBaseImageBlock.vue +29 -27
- package/src/components/JfbBaseNotice/Attr.js +5 -512
- package/src/components/JfbBaseNotice/JfbBaseNotice.vue +188 -181
- package/src/components/JfbBaseNotice/cusAttr/content.js +308 -0
- package/src/components/JfbBaseNotice/cusAttr/cssOne.js +395 -0
- package/src/components/JfbBaseNotice/cusAttr/cssThree.js +101 -0
- package/src/components/JfbBaseNotice/cusAttr/cssTwo.js +208 -0
- package/src/components/JfbBaseNotice/cusAttr/style.js +31 -0
- package/src/components/JfbBaseVideo/Attr.js +5 -297
- package/src/components/JfbBaseVideo/JfbBaseVideo.vue +36 -62
- package/src/components/JfbBaseVideo/cusAttr/content.js +236 -0
- package/src/components/JfbBaseVideo/cusAttr/image.js +213 -0
- package/src/components/JfbBaseVideo/cusAttr/style.js +172 -0
|
@@ -1,526 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
import style from "./cusAttr/style";
|
|
4
|
+
import content from "./cusAttr/content";
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
6
8
|
*/
|
|
7
9
|
export default {
|
|
8
10
|
style: [],
|
|
9
|
-
content: (data
|
|
10
|
-
if (!data.style) data.style = '1';
|
|
11
|
-
const checkNotice = ()=>{
|
|
12
|
-
let temp = false;
|
|
13
|
-
if(data.notice && data.notice.type) temp = true
|
|
14
|
-
return temp;
|
|
15
|
-
};
|
|
11
|
+
content: (data, gValue, gColor, oldData) => {
|
|
16
12
|
|
|
17
|
-
const checkPop = ()=>{
|
|
18
|
-
return data.style !== '3'
|
|
19
|
-
}
|
|
20
13
|
|
|
21
|
-
const checkScroll = ()=>{
|
|
22
|
-
return data.style !== '2'
|
|
23
|
-
}
|
|
24
14
|
return [
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
ele: 'xd-site-news',
|
|
28
|
-
valueKey: 'notice',
|
|
29
|
-
value: data.notice || null,
|
|
30
|
-
groupKey:'content',
|
|
31
|
-
className: 'input70',
|
|
32
|
-
setting: {
|
|
33
|
-
config: {
|
|
34
|
-
sort: true,
|
|
35
|
-
maxlen: 100,
|
|
36
|
-
action: 'aliyun',
|
|
37
|
-
size: 5,
|
|
38
|
-
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
39
|
-
uploadType: 'aliyun',
|
|
40
|
-
type: ['jpg', 'png', 'jpeg']
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
handleCustom({action, data}) {
|
|
44
|
-
if (data && data.params) {
|
|
45
|
-
//当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
|
|
46
|
-
//data.params = Object.assign({}, data.params, {code: 'g_test_id'});
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
//获取返回参数(场景类型名称为必填)
|
|
50
|
-
let loading = { close(){}}
|
|
51
|
-
|
|
52
|
-
//获取显示内容
|
|
53
|
-
if (action === 'screen') {
|
|
54
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
|
|
55
|
-
.then(res => {
|
|
56
|
-
loading.close();
|
|
57
|
-
data.cb(res['list'])
|
|
58
|
-
})
|
|
59
|
-
.catch(error => {
|
|
60
|
-
console.error(error);
|
|
61
|
-
loading.close();
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
//获取返回参数(广告位高度必选项)
|
|
67
|
-
if (action === 'getNewsInfo') {
|
|
68
|
-
XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
|
|
69
|
-
.then(res => {
|
|
70
|
-
loading.close()
|
|
71
|
-
data.cb({list: res.list, selectId: res.selected})
|
|
72
|
-
})
|
|
73
|
-
.catch(error => {
|
|
74
|
-
loading.close()
|
|
75
|
-
console.error(error);
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
//获取产品业务线列表
|
|
80
|
-
if (action === 'namespace') {
|
|
81
|
-
XdBus.getParentApi('getOptionsNamespaces')({})
|
|
82
|
-
.then(res => {
|
|
83
|
-
loading.close()
|
|
84
|
-
data.cb(res['list'])
|
|
85
|
-
})
|
|
86
|
-
.catch(error => {
|
|
87
|
-
loading.close()
|
|
88
|
-
console.error(error);
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
//使用内容分类
|
|
93
|
-
if (action === 'cmsPublishEditxContent') {
|
|
94
|
-
loading = XdBus.getParentApi('loading')({});
|
|
95
|
-
XdBus.getParentApi('cmsPublishEditxContent')(data.params)
|
|
96
|
-
.then(res => {
|
|
97
|
-
console.log('cmsPublishEditxContent', res)
|
|
98
|
-
loading.close();
|
|
99
|
-
data.cb(res)
|
|
100
|
-
})
|
|
101
|
-
.catch(error => {
|
|
102
|
-
loading.close();
|
|
103
|
-
console.error(error);
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
//位置列表
|
|
108
|
-
if (action === 'getListPostion') {
|
|
109
|
-
loading = XdBus.getParentApi('loading')({});
|
|
110
|
-
XdBus.getParentApi('getListNewsPosition')(data.params)
|
|
111
|
-
.then(res => {
|
|
112
|
-
loading.close();
|
|
113
|
-
data.cb(res)
|
|
114
|
-
})
|
|
115
|
-
.catch(error => {
|
|
116
|
-
loading.close();
|
|
117
|
-
console.error(error);
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
//位置创建
|
|
122
|
-
if (action === 'addPostion') {
|
|
123
|
-
loading = XdBus.getParentApi('loading')({});
|
|
124
|
-
XdBus.getParentApi('addNewsPosition')(data.params)
|
|
125
|
-
.then(res => {
|
|
126
|
-
loading.close();
|
|
127
|
-
data.cb(true)
|
|
128
|
-
})
|
|
129
|
-
.catch(error => {
|
|
130
|
-
console.error(error);
|
|
131
|
-
loading.close();
|
|
132
|
-
data.cb(false)
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
//位置编辑
|
|
137
|
-
if (action === 'editPostion') {
|
|
138
|
-
loading = XdBus.getParentApi('loading')({});
|
|
139
|
-
XdBus.getParentApi('updateNewsPosition')(data.params)
|
|
140
|
-
.then(res => {
|
|
141
|
-
loading.close();
|
|
142
|
-
data.cb(true)
|
|
143
|
-
})
|
|
144
|
-
.catch(error => {
|
|
145
|
-
console.error(error);
|
|
146
|
-
loading.close();
|
|
147
|
-
data.cb(false)
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
//位置删除
|
|
152
|
-
if (action === 'deleltePostion') {
|
|
153
|
-
loading = XdBus.getParentApi('loading')({});
|
|
154
|
-
XdBus.getParentApi('deleteNewsPosition')(data.params)
|
|
155
|
-
.then(res => {
|
|
156
|
-
loading.close();
|
|
157
|
-
data.cb(true)
|
|
158
|
-
})
|
|
159
|
-
.catch(error => {
|
|
160
|
-
console.error(error);
|
|
161
|
-
loading.close();
|
|
162
|
-
data.cb(false)
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
//获取广告位内容列表
|
|
167
|
-
if (action === 'getListContent') {
|
|
168
|
-
loading = XdBus.getParentApi('loading')({});
|
|
169
|
-
XdBus.getParentApi('getListNewsContent')(data.params)
|
|
170
|
-
.then(res => {
|
|
171
|
-
loading.close();
|
|
172
|
-
data.cb(res)
|
|
173
|
-
})
|
|
174
|
-
.catch(error => {
|
|
175
|
-
loading.close();
|
|
176
|
-
console.error(error);
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
//广告内容创建
|
|
181
|
-
if (action === 'addContent') {
|
|
182
|
-
loading = XdBus.getParentApi('loading')({});
|
|
183
|
-
XdBus.getParentApi('addNewsContent')(data.params)
|
|
184
|
-
.then(res => {
|
|
185
|
-
loading.close();
|
|
186
|
-
data.cb(true)
|
|
187
|
-
})
|
|
188
|
-
.catch(error => {
|
|
189
|
-
console.error(error);
|
|
190
|
-
loading.close();
|
|
191
|
-
data.cb(false)
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
//广告内容编辑
|
|
196
|
-
if (action === 'editContent') {
|
|
197
|
-
loading = XdBus.getParentApi('loading')({});
|
|
198
|
-
XdBus.getParentApi('updateNewsContent')(data.params)
|
|
199
|
-
.then(res => {
|
|
200
|
-
loading.close();
|
|
201
|
-
data.cb(true)
|
|
202
|
-
})
|
|
203
|
-
.catch(error => {
|
|
204
|
-
console.error(error);
|
|
205
|
-
loading.close();
|
|
206
|
-
data.cb(false)
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
//广告内容删除
|
|
211
|
-
if (action === 'deleteContent') {
|
|
212
|
-
loading = XdBus.getParentApi('loading')({});
|
|
213
|
-
XdBus.getParentApi('deleteNewsContent')(data.params)
|
|
214
|
-
.then(res => {
|
|
215
|
-
loading.close();
|
|
216
|
-
data.cb(true)
|
|
217
|
-
})
|
|
218
|
-
.catch(error => {
|
|
219
|
-
console.error(error);
|
|
220
|
-
loading.close();
|
|
221
|
-
data.cb(false)
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
//内容发布
|
|
226
|
-
if (action === 'publish') {
|
|
227
|
-
loading = XdBus.getParentApi('loading')({});
|
|
228
|
-
console.log('publish', data.params)
|
|
229
|
-
XdBus.getParentApi('cmsPublishContent')(data.params)
|
|
230
|
-
.then(res => {
|
|
231
|
-
loading.close();
|
|
232
|
-
data.cb(res)
|
|
233
|
-
})
|
|
234
|
-
.catch(error => {
|
|
235
|
-
loading.close();
|
|
236
|
-
console.error(error);
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
//通知页面进行刷新
|
|
241
|
-
if (action === 'update') {
|
|
242
|
-
loading = XdBus.getParentApi('loading')({});
|
|
243
|
-
XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
|
|
244
|
-
loading.close()
|
|
245
|
-
}
|
|
246
|
-
},
|
|
247
|
-
inline: false,
|
|
248
|
-
notice: '',
|
|
249
|
-
rules: [
|
|
250
|
-
{required: true, message: '请配置温馨提示内容', trigger: 'change'},
|
|
251
|
-
],
|
|
252
|
-
},
|
|
253
|
-
checkNotice() && {
|
|
254
|
-
label: '显示样式:',
|
|
255
|
-
ele: 'xd-radio',
|
|
256
|
-
valueKey: 'style',
|
|
257
|
-
value: data['style'] || '1',
|
|
258
|
-
groupKey:'content',
|
|
259
|
-
list: [
|
|
260
|
-
{"label": "静态显示", "value": '1'},
|
|
261
|
-
{"label": "滚动显示", "value": '2'},
|
|
262
|
-
{"label": "弹窗显示", "value": '3'},
|
|
263
|
-
],
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
label: "是否显示提示图标:",
|
|
267
|
-
ele: "xd-radio",
|
|
268
|
-
valueKey: "show_tip_icon",
|
|
269
|
-
value: data['show_tip_icon'] || 'N',
|
|
270
|
-
groupKey: 'content',
|
|
271
|
-
list: [
|
|
272
|
-
{ label: '显示', value: 'Y' },
|
|
273
|
-
{ label: '不显示', value: 'N' }
|
|
274
|
-
],
|
|
275
|
-
hidden: data.style !== '1',
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
label: "提示图标:",
|
|
279
|
-
ele: 'xd-upload',
|
|
280
|
-
valueKey: 'staticTipIcon',
|
|
281
|
-
groupKey:'content',
|
|
282
|
-
value: data.staticTipIcon || {},
|
|
283
|
-
defaultValue: data.staticTipIcon || null,
|
|
284
|
-
slot: true,
|
|
285
|
-
tipsformet: '上传文件格式:@imageType@,不超过@size@MB。',
|
|
286
|
-
type: ['jpg', 'png', 'jpeg'],
|
|
287
|
-
styleType: 'one',
|
|
288
|
-
uploadType: 'aliyun',
|
|
289
|
-
size: .5,
|
|
290
|
-
action: 'action',
|
|
291
|
-
sort: true,
|
|
292
|
-
hidden: data.style !== '1' || data.show_tip_icon !== 'Y',
|
|
293
|
-
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
label: '是否隐藏弹框(仅预览模式生效):',
|
|
297
|
-
ele: 'xd-radio',
|
|
298
|
-
valueKey: 'is_hide_dailog',
|
|
299
|
-
groupKey:'content',
|
|
300
|
-
value: data['is_hide_dailog'] || 'N',
|
|
301
|
-
placeholder: '请选择是否隐藏弹框',
|
|
302
|
-
className: 'input60',
|
|
303
|
-
list: [
|
|
304
|
-
{ label: '是', value: 'Y' },
|
|
305
|
-
{ label: '否', value: 'N' },
|
|
306
|
-
]
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
label: "按钮长度:",
|
|
310
|
-
ele: "el-input",
|
|
311
|
-
valueKey: "btnConfirmWidth",
|
|
312
|
-
value: data['btnConfirmWidth'] || '',
|
|
313
|
-
placeholder: '请输入按钮长度',
|
|
314
|
-
className: 'input60',
|
|
315
|
-
groupKey: "content",
|
|
316
|
-
},
|
|
317
|
-
{
|
|
318
|
-
label: "按钮背景颜色:",
|
|
319
|
-
ele: "xd-color",
|
|
320
|
-
valueKey: "btnConfirmBgColor",
|
|
321
|
-
groupKey:'content',
|
|
322
|
-
value: data['btnConfirmBgColor'] || '',
|
|
323
|
-
placeholder: '请选择按钮背景颜色',
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
label: "按钮文字颜色:",
|
|
327
|
-
ele: "xd-color",
|
|
328
|
-
valueKey: "btnConfirmTextColor",
|
|
329
|
-
groupKey:'content',
|
|
330
|
-
value: data['btnConfirmTextColor'] || '',
|
|
331
|
-
placeholder: '请选择按钮文字颜色',
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
ele: 'title',
|
|
335
|
-
label: '静态显示',
|
|
336
|
-
size: 'small',
|
|
337
|
-
groupKey:'style',
|
|
338
|
-
},
|
|
339
|
-
data.style === '1' && {
|
|
340
|
-
label: '是否显示标题:',
|
|
341
|
-
ele: 'xd-switch',
|
|
342
|
-
valueKey: 'isTitle',
|
|
343
|
-
value: data['isTitle'],
|
|
344
|
-
groupKey:'style',
|
|
345
|
-
list: ['否', '是'],
|
|
346
|
-
backValueType: 2,
|
|
347
|
-
},
|
|
348
|
-
data.style === '1' && data['isTitle'] && {
|
|
349
|
-
label: '标题对其方式:',
|
|
350
|
-
ele: 'xd-select-list',
|
|
351
|
-
valueKey: 'textAlign',
|
|
352
|
-
groupKey:'style',
|
|
353
|
-
className: 'input80',
|
|
354
|
-
value: data['textAlign'] || '',
|
|
355
|
-
list: [
|
|
356
|
-
{"label": "左", "value": 'left'},
|
|
357
|
-
{"label": "中", "value": 'center'},
|
|
358
|
-
{"label": "右", "value": 'right'},
|
|
359
|
-
]
|
|
360
|
-
},
|
|
361
|
-
data.style === '1' && data.show_tip_icon === 'Y' && {
|
|
362
|
-
label: "提示图标的高度:",
|
|
363
|
-
ele: 'el-input',
|
|
364
|
-
valueKey: 'tipIconHeight',
|
|
365
|
-
groupKey:'style',
|
|
366
|
-
className: 'input80',
|
|
367
|
-
value: data['tipIconHeight'] || '50',
|
|
368
|
-
placeholder: '请输入提示图标的高度'
|
|
369
|
-
},
|
|
370
|
-
data.style === '1' && {
|
|
371
|
-
label: '内容圆角设置:',
|
|
372
|
-
ele: 'xd-site-select-list',
|
|
373
|
-
valueKey: 'radius',
|
|
374
|
-
value: data['radius'],
|
|
375
|
-
groupKey:'style',
|
|
376
|
-
placeholder: '请选择内容圆角设置',
|
|
377
|
-
multiple: false,
|
|
378
|
-
className: 'input80',
|
|
379
|
-
handleCustom({action, data}) {
|
|
380
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
381
|
-
.then(res => {
|
|
382
|
-
data.cb(res.list)
|
|
383
|
-
})
|
|
384
|
-
.catch(error => {
|
|
385
|
-
console.error(error);
|
|
386
|
-
});
|
|
387
|
-
},
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
label: '内容背景颜色:',
|
|
391
|
-
ele: 'xd-color',
|
|
392
|
-
valueKey: 'bgc',
|
|
393
|
-
groupKey:'style',
|
|
394
|
-
value: data.bgc || '',
|
|
395
|
-
placeholder: '请选择内容背景颜色',
|
|
396
|
-
classNmae: 'input80',
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
label: '内文字颜色:',
|
|
400
|
-
ele: 'xd-color',
|
|
401
|
-
groupKey:'style',
|
|
402
|
-
valueKey: 'textColor',
|
|
403
|
-
value: data.textColor || '',
|
|
404
|
-
placeholder: '请选择内文字颜色',
|
|
405
|
-
classNmae: 'input80',
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
label: '内容文字大小:',
|
|
409
|
-
ele: 'xd-site-select-list',
|
|
410
|
-
valueKey: 'fontSize',
|
|
411
|
-
value: data['fontSize'],
|
|
412
|
-
groupKey:'style',
|
|
413
|
-
placeholder: '请选择内容文字大小',
|
|
414
|
-
multiple: false,
|
|
415
|
-
className: 'input80',
|
|
416
|
-
handleCustom({action, data}) {
|
|
417
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
418
|
-
.then(res => {
|
|
419
|
-
data.cb(res.list)
|
|
420
|
-
})
|
|
421
|
-
.catch(error => {
|
|
422
|
-
console.error(error);
|
|
423
|
-
});
|
|
424
|
-
},
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
label: '边距设置:',
|
|
428
|
-
ele: 'xd-margin-padding',
|
|
429
|
-
groupKey:'style',
|
|
430
|
-
valueKey: 'margin',
|
|
431
|
-
value: data.margin || null,
|
|
432
|
-
setting: {
|
|
433
|
-
type: 'margin',
|
|
434
|
-
},
|
|
435
|
-
placeholder: '请设置内容边距设置',
|
|
436
|
-
inline: false,
|
|
437
|
-
notice: '内容边距设置,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
label: '标题填充设置:',
|
|
441
|
-
ele: 'xd-margin-padding',
|
|
442
|
-
valueKey: 'titlePadding',
|
|
443
|
-
groupKey:'style',
|
|
444
|
-
value: data.titlePadding || null,
|
|
445
|
-
setting: {
|
|
446
|
-
type: 'padding',
|
|
447
|
-
},
|
|
448
|
-
placeholder: '请内容填充设置',
|
|
449
|
-
inline: false,
|
|
450
|
-
notice: '内容填充设置,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
label: '内容填充设置:',
|
|
454
|
-
ele: 'xd-margin-padding',
|
|
455
|
-
valueKey: 'padding',
|
|
456
|
-
groupKey:'style',
|
|
457
|
-
value: data.padding || null,
|
|
458
|
-
setting: {
|
|
459
|
-
type: 'padding',
|
|
460
|
-
},
|
|
461
|
-
placeholder: '请内容填充设置',
|
|
462
|
-
inline: false,
|
|
463
|
-
notice: '内容填充设置,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
464
|
-
},
|
|
465
|
-
{
|
|
466
|
-
ele: 'title',
|
|
467
|
-
label: '滚动显示',
|
|
468
|
-
size: 'small',
|
|
469
|
-
groupKey:'style',
|
|
470
|
-
},
|
|
471
|
-
{
|
|
472
|
-
label: '滚动显示条数:',
|
|
473
|
-
ele: 'el-input',
|
|
474
|
-
groupKey:'style',
|
|
475
|
-
type: 'number',
|
|
476
|
-
valueKey: 'num',
|
|
477
|
-
value: data.num,
|
|
478
|
-
placeholder: '请输入滚动显示条数,默认:1',
|
|
479
|
-
className: 'input80',
|
|
480
|
-
unit: '条'
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
label: '滚动速度值:',
|
|
484
|
-
ele: 'el-input',
|
|
485
|
-
type: 'number',
|
|
486
|
-
groupKey:'style',
|
|
487
|
-
valueKey: 'speed',
|
|
488
|
-
value: data.speed,
|
|
489
|
-
placeholder: '请输入滚动速度值,默认:20',
|
|
490
|
-
className: 'input80',
|
|
491
|
-
inline: false,
|
|
492
|
-
notice: '滚动速度值,建议取值:20-60, 值越大越快',
|
|
493
|
-
},
|
|
494
|
-
{
|
|
495
|
-
label: '边距设置:',
|
|
496
|
-
ele: 'xd-margin-padding',
|
|
497
|
-
groupKey:'style',
|
|
498
|
-
valueKey: 'scrollMargin',
|
|
499
|
-
value: data.scrollMargin || null,
|
|
500
|
-
setting: {
|
|
501
|
-
type: 'margin',
|
|
502
|
-
},
|
|
503
|
-
placeholder: '请设置内容边距设置',
|
|
504
|
-
inline: false,
|
|
505
|
-
notice: '内容边距设置,<span style="color: red">单位:像素</span>。默认值:0像素',
|
|
506
|
-
},
|
|
507
|
-
{
|
|
508
|
-
ele: 'title',
|
|
509
|
-
label: '弹窗显示',
|
|
510
|
-
size: 'small',
|
|
511
|
-
groupKey:'style',
|
|
512
|
-
},
|
|
513
|
-
{
|
|
514
|
-
label: '弹窗间隔:',
|
|
515
|
-
ele: 'el-input',
|
|
516
|
-
type: 'text',
|
|
517
|
-
groupKey:'style',
|
|
518
|
-
valueKey: 'time',
|
|
519
|
-
value: data.time || '',
|
|
520
|
-
className: 'input80',
|
|
521
|
-
inline: false,
|
|
522
|
-
notice: '弹窗间隔,单位:小时。默认值:<span style="color: red">3</span>小时',
|
|
523
|
-
},
|
|
15
|
+
...content(data, gValue, gColor, oldData),
|
|
16
|
+
...style(data, gValue, gColor, oldData),
|
|
524
17
|
].filter(i=>i)
|
|
525
18
|
},
|
|
526
19
|
advanced: [
|