🐛: 修复 date-picker 无法解析的问题

This commit is contained in:
就眠儀式
2022-05-23 17:13:21 +08:00
parent 539af99222
commit 7eed198d10
4 changed files with 17 additions and 97 deletions

View File

@@ -261,15 +261,20 @@
</div>
</template>
<script lang="ts" setup>
import { ref, watch, computed, defineProps, defineEmits, onMounted } from "vue";
<script lang="ts">
export default {
name: "LayDatePicker"
}
</script>
<script lang="ts" setup>
import "./index.less";
import dayjs from "dayjs";
import { LayIcon } from "@layui/icons-vue";
import LayInput from "../input/index.vue";
import LayDropdown from "../dropdown/index.vue";
import { getDayLength, getYears, getMonth, getYear } from "./day";
import { ref, watch, computed, defineProps, defineEmits, onMounted } from "vue";
export interface LayDatePickerProps {
modelValue?: string;
@@ -312,6 +317,7 @@ const hms = ref({
mm: dayjs(props.modelValue).minute(),
ss: dayjs(props.modelValue).second(),
});
const els = [
{ count: 24, type: "hh" },
{ count: 60, type: "mm" },