📝(component): 调整 ripple 文档

This commit is contained in:
就眠儀式
2022-07-23 01:18:21 +08:00
parent 8ea7b205cb
commit 4d503fc8f0
2 changed files with 17 additions and 31 deletions

View File

@@ -21,12 +21,7 @@
:data-value="index.toString().padStart(2, '0')"
:data-type="item.type"
:key="it"
:class="[
'num',
index == hms[item.type]
? 'layui-this'
: '',
]"
:class="['num', index == hms[item.type] ? 'layui-this' : '']"
>
{{ index.toString().padStart(2, "0") }}
</li>
@@ -79,7 +74,7 @@ const els = [
{ count: 60, type: "ss" },
];
const hms = ref<hmsType>({
hh:props.modelValue.hh,
hh: props.modelValue.hh,
mm: props.modelValue.mm,
ss: props.modelValue.ss,
});
@@ -100,12 +95,12 @@ watch(
() => props.modelValue,
() => {
hms.value = {
hh:props.modelValue.hh,
hh: props.modelValue.hh,
mm: props.modelValue.mm,
ss: props.modelValue.ss
ss: props.modelValue.ss,
};
},
{ deep: true}
{ deep: true }
);
const scrollTo = () => {
nextTick(() => {