jufubao-activity 1.0.1 → 1.0.2-beta2

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.
Files changed (26) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbActivityCompanyDetail/Attr.js +10 -309
  3. package/src/components/JfbActivityCompanyDetail/JfbActivityCompanyDetail.vue +83 -217
  4. package/src/components/JfbActivityCompanyDetail/cusAttr/advanced.js +51 -0
  5. package/src/components/JfbActivityCompanyDetail/cusAttr/content.js +65 -0
  6. package/src/components/JfbActivityCompanyDetail/cusAttr/style.js +126 -0
  7. package/src/components/JfbActivityCompanyWork/Attr.js +2 -1
  8. package/src/components/JfbActivityLand/Api.js +68 -0
  9. package/src/components/JfbActivityLand/Attr.js +18 -0
  10. package/src/components/JfbActivityLand/JfbActivityLand.vue +410 -0
  11. package/src/components/JfbActivityLand/JfbActivityLandLess.less +80 -0
  12. package/src/components/JfbActivityLand/JfbActivityLandMixin.js +30 -0
  13. package/src/components/JfbActivityLand/Mock.js +4 -0
  14. package/src/components/JfbActivityLand/cusAttr/advanced.js +17 -0
  15. package/src/components/JfbActivityLand/cusAttr/content.js +52 -0
  16. package/src/components/JfbActivityLand/cusAttr/style.js +487 -0
  17. package/src/components/JfbActivityRuleInfo/Api.js +19 -0
  18. package/src/components/JfbActivityRuleInfo/Attr.js +18 -0
  19. package/src/components/JfbActivityRuleInfo/JfbActivityRuleInfo.vue +156 -0
  20. package/src/components/JfbActivityRuleInfo/JfbActivityRuleInfoLess.less +80 -0
  21. package/src/components/JfbActivityRuleInfo/JfbActivityRuleInfoMixin.js +30 -0
  22. package/src/components/JfbActivityRuleInfo/Mock.js +13 -0
  23. package/src/components/JfbActivityRuleInfo/cusAttr/advanced.js +25 -0
  24. package/src/components/JfbActivityRuleInfo/cusAttr/content.js +17 -0
  25. package/src/components/JfbActivityRuleInfo/cusAttr/style.js +14 -0
  26. package/get.package.path.js +0 -22
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-activity",
3
- "version": "1.0.1",
3
+ "version": "1.0.2-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件活动插件包",
6
6
  "main": "index.js",
@@ -1,319 +1,20 @@
1
1
  'use strict';
2
+ import style from "./cusAttr/style";
3
+ import advanced from "./cusAttr/advanced";
4
+ import content from "./cusAttr/content";
2
5
 
3
6
  /**
4
7
  * @description 当表单组件中有联动操作时候,使用方法进行返回
5
8
  */
6
9
  export default {
7
10
  style: [],
8
- content: (data) => {
9
- return [
10
- {
11
- label: '作品详情路径:',
12
- groupKey: 'advanced',
13
- className: 'input100',
14
- ele: 'xd-select-pages-path',
15
- valueKey: 'detailPath',
16
- value: data['detailPath'] || null,
17
- setting: {
18
- router: XdBus.getParentApi('getPagesTree')
19
- },
20
- },
21
- {
22
- label: '添加作品路径:',
23
- groupKey: 'advanced',
24
- className: 'input100',
25
- ele: 'xd-select-pages-path',
26
- valueKey: 'addPath',
27
- value: data['addPath'] || null,
28
- setting: {
29
- router: XdBus.getParentApi('getPagesTree')
30
- },
31
- },
32
- {
33
- label: 'banner高度:', //label
34
- ele: 'el-input',
35
- type: 'number',
36
- valueKey: 'bannerHeight',
37
- value: data['bannerHeight'] || 280,
38
- groupKey: "style",
39
- placeholder: '请输入按钮高度',
40
- classNmae: 'input80',
41
- inline: false
42
- },
43
- {
44
- label: '切换tab(仅预览模式下生效):',
45
- ele: 'xd-radio',
46
- valueKey: 'previewShowTab',
47
- value: data.previewShowTab || 'works',
48
- groupKey: 'style',
49
- list: [
50
- { label: '作品集锦', value: 'works' },
51
- { label: '活动详情', value: 'detail' },
52
- { label: '我的作品', value: 'myworks' },
53
- ],
54
- },
55
- {
56
- label: '展示方式:',
57
- ele: 'xd-radio',
58
- valueKey: 'menuShowType',
59
- value: data.menuShowType || 'text',
60
- groupKey: 'style',
61
- list: [
62
- { label: '下划线展示', value: 'text' },
63
- { label: '按钮展示', value: 'button' },
64
- ],
65
- },
66
- {
67
- label: "菜单底部横线粗细:",
68
- ele: "el-input",
69
- valueKey: "menuBorderWidth",
70
- value: data.menuBorderWidth || 1,
71
- groupKey: "style",
72
- type: "number",
73
- },
74
- {
75
- label: '菜单单项内边距设置:',
76
- groupKey: 'style',
77
- ele: 'xd-margin-padding',
78
- valueKey: 'menuBtnPadding',
79
- value: data.menuBtnPadding || null,
80
- setting: {
81
- type: 'padding',
82
- },
83
- placeholder: '请设置边距',
84
- inline: false,
85
- notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
86
- },
87
- {
88
- label: '文字背景颜色设置:',
89
- ele: 'xd-text-and-bgc',
90
- groupKey: 'style',
91
- valueKey: 'menuTabColor',
92
- value: data['menuTabColor'] || null,
93
- setting: {
94
- fontSize: true, //字体大小选择
95
- color: true, //文字颜色选项
96
- bgColor: true, //背景选项
97
- weight: true, //文字粗细
98
- },
99
- handleCustom({ action, data }) {
100
- XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
101
- .then(res => {
102
- data.cb(res.list)
103
- })
104
- .catch(error => {
105
- console.error(error);
106
- data.cb([])
107
- });
108
- },
109
- },
110
- {
111
- label: '菜单外边距:',
112
- groupKey: 'style',
113
- ele: 'xd-margin-padding',
114
- valueKey: 'menuPadding',
115
- value: data.menuPadding || null,
116
- setting: {
117
- type: 'padding',
118
- },
119
- placeholder: '请设置边距',
120
- inline: false,
121
- notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
122
- },
123
- {
124
- label: '标题背景颜色:',
125
- ele: 'xd-color',
126
- valueKey: 'titleBgColor',
127
- value: data['titleBgColor'] || '',
128
- placeholder: '请选择标题背景颜色',
129
- classNmae: 'input80',
130
- groupKey: 'style',
131
- setting: {
132
- showAlpha: true,//是否显示透明色
133
- },
134
- inline: false, //提示文案是否一行显示
135
- labelInline: true, //是否一行显示
136
- indent: false, //是否首行缩进
137
- hidden: false,
138
- },
139
- {
140
- label: '标题背景投影设置:',
141
- ele: 'xd-shadow',
142
- groupKey: 'style',
143
- valueKey: 'titleShadow',
144
- value: data['titleShadow'] || null,
145
- setting: {
146
- selected: 'Y', //Y/N
147
- isDef: false, //设置为true时候,type新增D模式 {label: '默认', value:'D'}, 根据业务需要自行设置
148
- },
149
- handleCustom({ action, data }) {
150
- XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
151
- .then(res => {
152
- data.cb(res.list)
153
- })
154
- .catch(error => {
155
- console.error(error);
156
- data.cb([])
157
- });
158
- },
159
- inline: false, //提示文案是否一行显示
160
- labelInline: true, //是否一行显示
161
- indent: false, //是否首行缩进
162
- hidden: false,
163
- },
164
- {
165
- label: '标题边框设置:',
166
- ele: 'xd-border',
167
- groupKey: 'style',
168
- valueKey: 'titleBorder',
169
- value: data['titleBorder'] || null,
170
- setting: {
171
- selected: 'Y', //Y/N
172
- isDef: false, //设置为true时候,type新增D模式 {label: '默认', value:'D'}, 根据业务需要自行设置
173
- },
174
- inline: false, //提示文案是否一行显示
175
- labelInline: true, //是否一行显示
176
- indent: false, //是否首行缩进
177
- },
178
- {
179
- label: "标题文字样式设置:",
180
- ele: "xd-font",
181
- valueKey: "titleFont",
182
- value: data.titleFont || {},
183
- groupKey: 'style',
184
- setting: {
185
- color: true, //颜色
186
- fontSize: true, //字体大小
187
- decoration: false, //文字的装饰线,none |underline |line-through | overline
188
- weight: false,
189
- icon: false, //图标
190
- style: false, //字体:normal | italic
191
- align: false,//normal|left|right|center
192
- lineHeight: false, //行高
193
- isEmpty: true,
194
- default: {
195
- icon: '111',
196
- color: '#777',
197
- fontSize: '30rpx',
198
- style: 'normal',
199
- align: 'left',
200
- lineHeight: '30rpx',
201
- decoration: 'none',
202
- weight: 'normal'
203
- }
204
- },
205
- handleCustom({ action, data }) {
206
- XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
207
- .then(res => {
208
- data.cb(res.list)
209
- })
210
- .catch(error => {
211
- data.cb([])
212
- console.error(error);
213
- });
214
- },
215
- inline: false, //提示文案是否一行显示
216
- indent: false, //是否首行缩进
217
- hidden: false,
218
- },
11
+ advanced: [],
12
+ content: (data, gValue, gColor, oldData={})=>{
219
13
 
220
- {
221
- label: '文本背景颜色:',
222
- ele: 'xd-color',
223
- valueKey: 'contentBgColor',
224
- value: data['contentBgColor'] || '',
225
- placeholder: '请选择文本背景颜色',
226
- classNmae: 'input80',
227
- groupKey: 'style',
228
- setting: {
229
- showAlpha: true,//是否显示透明色
230
- },
231
- inline: false, //提示文案是否一行显示
232
- labelInline: true, //是否一行显示
233
- indent: false, //是否首行缩进
234
- hidden: false,
235
- },
236
- {
237
- label: '文本背景投影设置:',
238
- ele: 'xd-shadow',
239
- groupKey: 'style',
240
- valueKey: 'contentShadow',
241
- value: data['contentShadow'] || null,
242
- setting: {
243
- selected: 'Y', //Y/N
244
- isDef: false, //设置为true时候,type新增D模式 {label: '默认', value:'D'}, 根据业务需要自行设置
245
- },
246
- handleCustom({ action, data }) {
247
- XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
248
- .then(res => {
249
- data.cb(res.list)
250
- })
251
- .catch(error => {
252
- console.error(error);
253
- data.cb([])
254
- });
255
- },
256
- inline: false, //提示文案是否一行显示
257
- labelInline: true, //是否一行显示
258
- indent: false, //是否首行缩进
259
- hidden: false,
260
- },
261
- {
262
- label: '文本边框设置:',
263
- ele: 'xd-border',
264
- groupKey: 'style',
265
- valueKey: 'contentBorder',
266
- value: data['contentBorder'] || null,
267
- setting: {
268
- selected: 'Y', //Y/N
269
- isDef: false, //设置为true时候,type新增D模式 {label: '默认', value:'D'}, 根据业务需要自行设置
270
- },
271
- inline: false, //提示文案是否一行显示
272
- labelInline: true, //是否一行显示
273
- indent: false, //是否首行缩进
274
- },
275
- {
276
- label: "文本文字样式设置:",
277
- ele: "xd-font",
278
- valueKey: "contentFont",
279
- value: data.contentFont || {},
280
- groupKey: 'style',
281
- setting: {
282
- color: true, //颜色
283
- fontSize: true, //字体大小
284
- decoration: false, //文字的装饰线,none |underline |line-through | overline
285
- weight: false,
286
- icon: false, //图标
287
- style: false, //字体:normal | italic
288
- align: false,//normal|left|right|center
289
- lineHeight: false, //行高
290
- isEmpty: true,
291
- default: {
292
- icon: '111',
293
- color: '#777',
294
- fontSize: '30rpx',
295
- style: 'normal',
296
- align: 'left',
297
- lineHeight: '30rpx',
298
- decoration: 'none',
299
- weight: 'normal'
300
- }
301
- },
302
- handleCustom({ action, data }) {
303
- XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
304
- .then(res => {
305
- data.cb(res.list)
306
- })
307
- .catch(error => {
308
- data.cb([])
309
- console.error(error);
310
- });
311
- },
312
- inline: false, //提示文案是否一行显示
313
- indent: false, //是否首行缩进
314
- hidden: false,
315
- },
316
- ].filter(i => i)
14
+ return [
15
+ ...content(data, gValue,gColor,oldData),
16
+ ...style(data, gValue,gColor,oldData),
17
+ ...advanced(data),
18
+ ].filter(i=>i)
317
19
  },
318
- advanced: [],
319
20
  };