摘要: main.ts import { createApp } from 'vue' import App from './App.vue' const app = createApp(App) type Filter = { format: <T extends any>(str: T) => stri 阅读全文
posted @ 2022-03-26 21:30 ascertain 阅读(84) 评论(0) 推荐(0) 编辑
摘要: import { onMounted } from 'vue' type Options = { elem: string } const base64 = (elem: HTMLImageElement) => { const canvas = document.createElement('ca 阅读全文
posted @ 2022-03-26 12:44 ascertain 阅读(140) 评论(0) 推荐(0) 编辑
摘要: <template> <div v-move class="box"> <div class="header"> </div> <div>zax</div> </div> </template> <script lang="ts" setup> import { ref, DirectiveBind 阅读全文
posted @ 2022-03-26 11:58 ascertain 阅读(116) 评论(0) 推荐(0) 编辑
摘要: vite.config.ts import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import * as path from 'path' // https://vitejs.dev/config/ exp 阅读全文
posted @ 2022-03-26 10:28 ascertain 阅读(168) 评论(0) 推荐(0) 编辑