wireless-desc-converter 1.0.9 → 1.0.10

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.
@@ -557,7 +557,6 @@ function buildRichTextModule(params) {
557
557
  props: [inputField('text', params.html || ''), inputField('width', ''), inputField('height', '')]
558
558
  }},
559
559
  { id: 'sample', type: 'multiComplex', values: [] }
560
- // id 字段(groupId)不传:淘宝接口标记为只读字段,提交时不可携带
561
560
  ]
562
561
  }
563
562
  };
@@ -555,7 +555,6 @@ function buildRichTextModule(params) {
555
555
  props: [inputField('text', params.html || ''), inputField('width', ''), inputField('height', '')]
556
556
  }},
557
557
  { id: 'sample', type: 'multiComplex', values: [] }
558
- // id 字段(groupId)不传:淘宝接口标记为只读字段,提交时不可携带
559
558
  ]
560
559
  }
561
560
  };
@@ -561,7 +561,6 @@
561
561
  props: [inputField('text', params.html || ''), inputField('width', ''), inputField('height', '')]
562
562
  }},
563
563
  { id: 'sample', type: 'multiComplex', values: [] }
564
- // id 字段(groupId)不传:淘宝接口标记为只读字段,提交时不可携带
565
564
  ]
566
565
  }
567
566
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wireless-desc-converter",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "淘宝新版图文编辑器 wirelessDesc 适配工具 - HTML 富文本转换为结构化 JSON",
5
5
  "type": "module",
6
6
  "main": "dist/wireless-desc-converter.umd.js",
package/src/index.js CHANGED
@@ -484,9 +484,9 @@ function buildTextModule(params) {
484
484
  { id: 'images', type: 'multiComplex', values: imageValues },
485
485
  singleCheckField('enable', 'true'),
486
486
  singleCheckField('countHeight', 'false'),
487
+ inputField('id', groupId),
487
488
  { id: 'textStyle', type: 'complex', value: { props: textStyleProps } }
488
489
  // sample(示意图)不传:官方文档确认为可选字段,缺省不报错
489
- // id 字段(groupId)不传:淘宝接口标记为只读字段,提交时不可携带
490
490
  ]
491
491
  }
492
492
  };
@@ -532,8 +532,8 @@ function buildImageModule(params) {
532
532
  singleCheckField('enable', 'true'),
533
533
  singleCheckField('countHeight', 'true'),
534
534
  { id: 'hot_area', type: 'multiComplex', values: hotAreaValues },
535
+ inputField('id', groupId),
535
536
  { id: 'sample', type: 'multiComplex', values: sampleValues }
536
- // id 字段(groupId)不传:淘宝接口标记为只读字段,提交时不可携带
537
537
  ]
538
538
  }
539
539
  };
@@ -550,11 +550,11 @@ function buildRichTextModule(params) {
550
550
  props: [
551
551
  singleCheckField('enable', 'false'),
552
552
  singleCheckField('countHeight', 'false'),
553
+ inputField('id', groupId),
553
554
  { id: 'html', type: 'complex', value: {
554
555
  props: [inputField('text', params.html || ''), inputField('width', ''), inputField('height', '')]
555
556
  }},
556
557
  { id: 'sample', type: 'multiComplex', values: [] }
557
- // id 字段(groupId)不传:淘宝接口标记为只读字段,提交时不可携带
558
558
  ]
559
559
  }
560
560
  };