diff --git a/package/component/src/component/datePicker/components/TimePanel.vue b/package/component/src/component/datePicker/components/TimePanel.vue index 4476d605..053a6fca 100644 --- a/package/component/src/component/datePicker/components/TimePanel.vue +++ b/package/component/src/component/datePicker/components/TimePanel.vue @@ -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") }} @@ -79,7 +74,7 @@ const els = [ { count: 60, type: "ss" }, ]; const hms = ref({ - 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(() => { diff --git a/package/document-component/src/document/zh-CN/components/ripple.md b/package/document-component/src/document/zh-CN/components/ripple.md index 064c6dd2..18a8ba0e 100644 --- a/package/document-component/src/document/zh-CN/components/ripple.md +++ b/package/document-component/src/document/zh-CN/components/ripple.md @@ -7,20 +7,19 @@ ::: describe 为组件添加水波纹动画。 ::: -::: title 内部水波纹 +::: title 基础使用 ::: -::: demo 使用 `lay-ripple` 标签, 添加水波纹。 +::: demo 使用 `lay-ripple` 标签, 为目标元素新增水波纹。 @@ -38,23 +37,15 @@ export default { ::: -::: title 外部水波纹 +::: title 触发时机 ::: -::: demo 使用 `lay-ripple` 标签, 添加水波纹。 +::: demo 通过 `trigger` 属性, 设置 `ripple` 触发时机。