This commit is contained in:
XXAY
2021-09-25 15:03:07 +08:00
parent ad40d66c70
commit 77406e40a3
4 changed files with 137 additions and 3 deletions

View File

@@ -352,7 +352,7 @@ class="layui-input" style="height: 25px; width:80px;margin-top: 6px">
parameter = ChartParameter(d)
print(parameter.input_type)
if parameter.input_type in ["rgb", "hex", 'color_name']:
code += f"""{parameter.name}:{parameter.name},
code += f"""{parameter.name}:{parameter.name}_,
"""
else:
code += f"""{parameter.name}: (document.getElementById("{parameter.name}").value),
@@ -384,7 +384,7 @@ class="layui-input" style="height: 25px; width:80px;margin-top: 6px">
});
})
""" % (i, random_color(), fl, i)
""" % (i, random_color(), fl, i + "_")
return code