@winner-fed/winner-deploy 3.4.0 → 3.4.1
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/see.js +2 -2
package/package.json
CHANGED
package/src/see.js
CHANGED
|
@@ -3,7 +3,7 @@ const path = require('path')
|
|
|
3
3
|
const tpl = require('lodash.template')
|
|
4
4
|
const xml = require('xml')
|
|
5
5
|
const babel = require('@babel/core')
|
|
6
|
-
const { unEscapeForXML,
|
|
6
|
+
const { unEscapeForXML, formatComplexSelectXml, findTemplateVariableItem } = require('./utils')
|
|
7
7
|
|
|
8
8
|
// 支持的类型
|
|
9
9
|
// input - 普通文本输入框。
|
|
@@ -46,7 +46,7 @@ const generateField = (attr) => {
|
|
|
46
46
|
const children = attr.children
|
|
47
47
|
defaultValue = children.map(attr => generateField(attr)).join('\n ')
|
|
48
48
|
} else if (type === 'complexSelect') {
|
|
49
|
-
return
|
|
49
|
+
return formatComplexSelectXml(attr)
|
|
50
50
|
} else {
|
|
51
51
|
defaultValue = [defaultValue]
|
|
52
52
|
}
|