fix: pick calendar with a wrong time range and set a unique value for dashboard grid key (#139)

This commit is contained in:
Fine0830
2022-08-18 16:29:36 +08:00
committed by GitHub
parent 9c0bb988e6
commit adb457d660
8 changed files with 28 additions and 24 deletions

View File

@@ -552,7 +552,7 @@ const ok = (info: any) => {
if (props.right && _time.getTime() / 100000 > start.value) {
emit("setDates", _time, "right");
}
if (!(props.left && props.right)) {
if (!(props.left || props.right)) {
emit("setDates", _time);
}
emit("ok", info === "h");

View File

@@ -29,9 +29,9 @@ limitations under the License. -->
>
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
:key="item.value || ''"
:label="item.label || ''"
:value="item.value || ''"
>
</el-option>
</el-select>