✨(component): release 1.4.4
This commit is contained in:
parent
0b05559d87
commit
98c4327000
@ -294,11 +294,20 @@ watch(
|
|||||||
if (unWatch) {
|
if (unWatch) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let initModelValue = props.range && props.modelValue ? (props.modelValue as string[])[0] || "" : (props.modelValue as string);
|
let initModelValue =
|
||||||
|
props.range && props.modelValue
|
||||||
hms.value.hh = isNaN(dayjs(initModelValue).hour()) ? 0 : dayjs(initModelValue).hour();
|
? (props.modelValue as string[])[0] || ""
|
||||||
hms.value.mm = isNaN(dayjs(initModelValue).minute()) ? 0 : dayjs(initModelValue).minute();
|
: (props.modelValue as string);
|
||||||
hms.value.ss = isNaN(dayjs(initModelValue).second()) ? 0 : dayjs(initModelValue).second();
|
|
||||||
|
hms.value.hh = isNaN(dayjs(initModelValue).hour())
|
||||||
|
? 0
|
||||||
|
: dayjs(initModelValue).hour();
|
||||||
|
hms.value.mm = isNaN(dayjs(initModelValue).minute())
|
||||||
|
? 0
|
||||||
|
: dayjs(initModelValue).minute();
|
||||||
|
hms.value.ss = isNaN(dayjs(initModelValue).second())
|
||||||
|
? 0
|
||||||
|
: dayjs(initModelValue).second();
|
||||||
|
|
||||||
if (initModelValue.length === 8 && props.type === "time") {
|
if (initModelValue.length === 8 && props.type === "time") {
|
||||||
let modelValue = initModelValue;
|
let modelValue = initModelValue;
|
||||||
|
@ -858,7 +858,7 @@ onBeforeUnmount(() => {
|
|||||||
</div>
|
</div>
|
||||||
<div class="layui-table-footer" v-if="slot.footer">
|
<div class="layui-table-footer" v-if="slot.footer">
|
||||||
<slot name="footer"></slot>
|
<slot name="footer"></slot>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="page" class="layui-table-page">
|
<div v-if="page" class="layui-table-page">
|
||||||
|
Loading…
Reference in New Issue
Block a user