gxd-uni-library-editx 1.0.80 → 1.0.81

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gxd-uni-library-editx",
3
- "version": "1.0.80",
3
+ "version": "1.0.81",
4
4
  "private": false,
5
5
  "description": "聚福宝基础插件专用库",
6
6
  "main": "index.js",
@@ -20,8 +20,9 @@ class StyleForm {
20
20
  * @param fn
21
21
  * @param mode
22
22
  * @param isGroup
23
+ * @param groupType
23
24
  */
24
- constructor(options,fn, mode='',isGroup=false){
25
+ constructor(options,fn, mode='',isGroup=false, groupType='style'){
25
26
  this.keyObj = {
26
27
  border: true,
27
28
  shadow: true,
@@ -39,6 +40,7 @@ class StyleForm {
39
40
  this.margin = {top: 0, left: 0, bottom: 0, right: 0};
40
41
  this.options = Object.assign({}, options);
41
42
  this.isGroup = isGroup || false
43
+ this.groupType = groupType || 'style'
42
44
  }
43
45
 
44
46
  getKey(key) {
@@ -171,7 +173,7 @@ class StyleForm {
171
173
  valueKey: bgColor,
172
174
  value: data[bgColor] || this.options['bgColor'],
173
175
  placeholder: '请选择背景颜色',
174
- classNmae: 'input80',
176
+ className: 'input80',
175
177
  },
176
178
  this.getShow('bgActColor') && {
177
179
  label: '选中背景颜色:',
@@ -179,7 +181,7 @@ class StyleForm {
179
181
  valueKey: bgActColor,
180
182
  value: data[bgActColor] || this.options['bgActColor'],
181
183
  placeholder: '请选择选中背景颜色',
182
- classNmae: 'input80',
184
+ className: 'input80',
183
185
  },
184
186
  this.getShow('color') && {
185
187
  label: '文字颜色:',
@@ -187,7 +189,7 @@ class StyleForm {
187
189
  valueKey: color,
188
190
  value: data[color] || this.options['color'],
189
191
  placeholder: '请选择文字颜色',
190
- classNmae: 'input80',
192
+ className: 'input80',
191
193
  },
192
194
  this.getShow('actColor') && {
193
195
  label: '选中文字颜色:',
@@ -195,16 +197,18 @@ class StyleForm {
195
197
  valueKey: actColor,
196
198
  value: data[actColor] || this.options['actColor'],
197
199
  placeholder: '请选择选中文字颜色',
198
- classNmae: 'input80',
200
+ className: 'input80',
199
201
  },
200
202
  this.getShow('spacing') && {
201
203
  label: '间距:',
202
204
  ele: 'el-input',
203
205
  type: 'number',
204
206
  valueKey: spacing,
205
- value: data[spacing] || this.options['spacing'],
207
+ value: data[spacing] || '',
206
208
  placeholder: '请输入间距',
207
209
  className: 'input60',
210
+ inline:false,
211
+ notice:this.options['spacing']?`设置间距,单位:像素,默认值为:<span style="color:red">${this.options['spacing']}</span>像素`:'',
208
212
  },
209
213
  this.getShow('radius') && {
210
214
  label: '圆角:',
@@ -231,7 +235,7 @@ class StyleForm {
231
235
  value: data[padding] || null,
232
236
  disabled: false,
233
237
  setting: {
234
- type: 'paddiing',
238
+ type: 'padding',
235
239
  },
236
240
  placeholder: '请设置内边距',
237
241
  inline: false,
@@ -324,7 +328,7 @@ class StyleForm {
324
328
  ].filter(i=>i).map(item=>{
325
329
  if(this.isGroup) return {
326
330
  ...item,
327
- groupKey: 'style',
331
+ groupKey: this.groupType,
328
332
  }
329
333
  return item
330
334
  })
@@ -1134,7 +1134,7 @@ class Helpers {
1134
1134
  */
1135
1135
  redirectTo(obj, redirect, notHistory=false) {
1136
1136
  this.specialApiTransform(obj,(res)=>{
1137
- this.handleTo(res, redirect,notHistory);
1137
+ this.handleTo(res, redirect, false, notHistory);
1138
1138
  })
1139
1139
  }
1140
1140