表达式如下: `groovyScript("def str = _1;def labels = str.split(' ').findAll { it != ''};def mappedLabels = labels.collect { it -> \"{\\ntitle: '${it}',\\ndataIndex: ''\\n}\\n\" };def joinedLabels = mappedLabels.join(',\\n');def columns = \"[\\n${joinedLabels}\\n]\";def result = \"const columns: ProColumnDetectType<any>[] = ${columns};\";return result;", clipboard())`
| 表达式如下: `groovyScript("def str = _1;def labels = str.split(' ').findAll { it != ''};def mappedLabels = labels.collect { it -> \"{\\ntitle: '${it}',\\ndataIndex: ''\\n}\\n\" };def joinedLabels = mappedLabels.join(',\\n');def columns = \"[\\n${joinedLabels}\\n]\";def result = \"const columns: ProColumnDetectType<any>[] = ${columns};\";return result;", clipboard())`
|