Commit 7ebafe76 authored by 张晨辰's avatar 张晨辰

feat: scripts type -> enum

parent c04cd69a
......@@ -252,10 +252,10 @@ export default {
},
getScriptProps(item, index) {
let _type = item.type;
let _options = {};
if (_.isArray(_type)) {
let _options = [];
if (type === 'enum') {
// 如果脚本选项对应的类型是数组,说明是枚举类型
_options = item.type.map(i => {
_options = item.enum.map(i => {
return {
label: i,
value: i
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment