2024-10-12 22:41:08 +08:00
|
|
|
<template>
|
2024-10-12 22:41:52 +08:00
|
|
|
<div class="tool-detail-page">
|
|
|
|
|
|
|
|
<clock-element ref="clockRef" />
|
|
|
|
|
|
|
|
<!-- <genshin-button
|
|
|
|
icon-color="#F44336"
|
|
|
|
icon-name="mdi-close"
|
|
|
|
>取消</genshin-button> -->
|
|
|
|
|
|
|
|
<genshin-button
|
|
|
|
icon-color="#FFC107"
|
|
|
|
icon-name="mdi-circle-outline"
|
|
|
|
@click="handleConfirm"
|
|
|
|
>确认</genshin-button>
|
|
|
|
|
|
|
|
</div>
|
2024-10-12 22:41:08 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
2024-10-12 22:41:52 +08:00
|
|
|
import {
|
|
|
|
ref,
|
|
|
|
} from 'vue';
|
|
|
|
|
|
|
|
import ClockElement from './ClockElement.vue';
|
|
|
|
import GenshinButton from './GenshinButton.vue';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @desc 时钟元素 ref
|
|
|
|
* @type {VueRef<InstanceType<ClockElement>>}
|
|
|
|
*/
|
|
|
|
const clockRef = ref(null);
|
|
|
|
|
|
|
|
/** 处理点击确认按钮 */
|
|
|
|
function handleConfirm() {
|
|
|
|
|
|
|
|
let el = clockRef.value;
|
|
|
|
|
|
|
|
if (el) {
|
|
|
|
el.handleSubmitTime();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2024-10-12 22:41:08 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
2024-10-12 22:41:52 +08:00
|
|
|
.tool-detail-page {
|
|
|
|
background-color: #000;
|
|
|
|
}
|
2024-10-12 22:41:08 +08:00
|
|
|
</style>
|