✏️ 完善其余函数式组件类型

This commit is contained in:
BTMuli
2023-10-13 23:09:08 +08:00
parent 980b420eb1
commit 7dedcc4ea9
4 changed files with 50 additions and 21 deletions

View File

@@ -8,16 +8,9 @@
</transition>
</template>
<script lang="ts" setup>
// vue
import { ref, reactive, onMounted } from "vue";
interface SnackbarProps {
text: string;
color?: string;
timeout?: number;
}
const props = withDefaults(defineProps<SnackbarProps>(), {
const props = withDefaults(defineProps<TGApp.Component.Snackbar.Params>(), {
text: "",
color: "success",
timeout: 1500,