This commit is contained in:
XXAY
2021-10-08 17:08:57 +08:00
parent 121baace73
commit 5913c7e0b5
29 changed files with 3 additions and 3678304 deletions

View File

@@ -136,7 +136,6 @@ class ChartParameter(object):
<div id="{parameter.name}" style="margin-left: 30px; display: inline-block"></div>
</div>
"""
if parameter.input_type == "rgb":
parameter.input_type = self.colors_dict[f"{parameter.name}"] = "rgb"
f"""
@@ -145,7 +144,6 @@ class ChartParameter(object):
</div>
"""
self.colors += 1
if parameter.input_type == "palettes":
parameter.input_type = f"""
<select {parameter.astrict} id="{parameter.name}" lay-verify="required" value="{parameter.value}" autocomplete="off"
@@ -254,7 +252,6 @@ class="layui-input" style="height: 25px; width:80px;margin-top: 6px">
<div id="{parameter.name}" style="margin-left: 30px; display: inline-block"></div>
</div>
"""
if parameter.input_type == "rgb":
self.colors_dict[f"{parameter.name}"] = "rgb"
parameter.input_type = f"""
@@ -262,7 +259,6 @@ class="layui-input" style="height: 25px; width:80px;margin-top: 6px">
<div id="{parameter.name}" style="margin-left: 30px; display: inline-block"></div>
</div>
"""
if parameter.input_type == "palettes":
parameter.input_type = f"""
<select {parameter.astrict} id="{parameter.name}" lay-verify="required" value="{parameter.value}" autocomplete="off"