(component): update

This commit is contained in:
就眠儀式 2022-10-21 21:24:47 +08:00
parent 9d46063321
commit 4393b1c1d2
8 changed files with 43 additions and 29 deletions

View File

@ -25,7 +25,7 @@ const emit = defineEmits(["update:modelValue"]);
const props = withDefaults(defineProps<ColorPicker>(), {
modelValue: { r: 255, g: 255, b: 255, a: 1 },
preset: ["#009688", "#1e9fff", "#ffb800", "#ff5722", "#5fb878"],
disabled: false
disabled: false,
});
const saturationValue = ref<null | HTMLElement>(null);
@ -409,7 +409,8 @@ function hex2rgba(s: any) {
:disabled="disabled"
:contentClass="contentClass"
:contentStyle="contentStyle"
updateAtScroll>
updateAtScroll
>
<div class="layui-unselect layui-colorpicker">
<span>
<span

View File

@ -86,7 +86,11 @@
</lay-dropdown>
<lay-dropdown ref="dropdownMonthPanelRefRight">
<span class="laydate-range-time"
>{{ startTime.month + 2 > 12 ? startTime.month - 10 : startTime.month + 2 }}</span
>{{
startTime.month + 2 > 12
? startTime.month - 10
: startTime.month + 2
}}</span
>
<template #content>
<MonthPanel

View File

@ -111,7 +111,15 @@ import { LayIcon } from "@layui/icons-vue";
import LayInput from "../input/index.vue";
import LayDropdown from "../dropdown/index.vue";
import { getMonth, getYear, getDay } from "./day";
import { ref, watch, defineProps, defineEmits, reactive, provide, StyleValue } from "vue";
import {
ref,
watch,
defineProps,
defineEmits,
reactive,
provide,
StyleValue,
} from "vue";
import DatePanel from "./components/DatePanel.vue";
import TimePanel from "./components/TimePanel.vue";
import YearPanel from "./components/YearPanel.vue";

View File

@ -143,7 +143,8 @@ const searchList = (str: string, container: any) => {
:disabled="disabled"
:contentClass="contentClass"
:contentStyle="contentStyle"
updateAtScroll>
updateAtScroll
>
<div
class="layui-inline layui-border-box layui-iconpicker layui-iconpicker-split"
>