tools
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user