feat: publish 0.4.0
This commit is contained in:
parent
1417247bbe
commit
42239dc507
@ -3,7 +3,6 @@
|
|||||||
<lay-dropdown>
|
<lay-dropdown>
|
||||||
<lay-input :value="dateValue || modelValue" readonly />
|
<lay-input :value="dateValue || modelValue" readonly />
|
||||||
<template #content>
|
<template #content>
|
||||||
|
|
||||||
<!-- 日期选择 -->
|
<!-- 日期选择 -->
|
||||||
<div class="layui-laydate" v-show="showPanel === 'date'">
|
<div class="layui-laydate" v-show="showPanel === 'date'">
|
||||||
<div class="layui-laydate-main laydate-main-list-0">
|
<div class="layui-laydate-main laydate-main-list-0">
|
||||||
@ -238,12 +237,12 @@ import LayDropdown from "../dropdown/index.vue";
|
|||||||
|
|
||||||
export interface LayDatePickerProps {
|
export interface LayDatePickerProps {
|
||||||
modelValue?: string;
|
modelValue?: string;
|
||||||
type: 'date' | 'datetime' | 'year' | 'time' | 'month';
|
type: "date" | "datetime" | "year" | "time" | "month";
|
||||||
}
|
}
|
||||||
|
|
||||||
const props = withDefaults(defineProps<LayDatePickerProps>(), {
|
const props = withDefaults(defineProps<LayDatePickerProps>(), {
|
||||||
modelValue: '',
|
modelValue: "",
|
||||||
type: 'date'
|
type: "date",
|
||||||
});
|
});
|
||||||
|
|
||||||
const $emits = defineEmits(["update:modelValue"]);
|
const $emits = defineEmits(["update:modelValue"]);
|
||||||
|
@ -59,7 +59,11 @@ const beforeLeave = (el: any) => {
|
|||||||
el.dataset.oldPaddingBottom = el.style.paddingBottom;
|
el.dataset.oldPaddingBottom = el.style.paddingBottom;
|
||||||
el.dataset.oldOverflow = el.style.overflow;
|
el.dataset.oldOverflow = el.style.overflow;
|
||||||
var computedStyle = getComputedStyle(el, null);
|
var computedStyle = getComputedStyle(el, null);
|
||||||
el.style.height = el.scrollHeight - parseInt(computedStyle.paddingTop) - parseInt(computedStyle.paddingBottom) + "px";
|
el.style.height =
|
||||||
|
el.scrollHeight -
|
||||||
|
parseInt(computedStyle.paddingTop) -
|
||||||
|
parseInt(computedStyle.paddingBottom) +
|
||||||
|
"px";
|
||||||
el.style.overflow = "hidden";
|
el.style.overflow = "hidden";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user