随笔分类 -  Vue

摘要:App.vue <template> <div id="heart" @click="toggleFlag"> <span :class="{active:flag}"></span> <span :class="{active:flag}"></span> </div> </template> < 阅读全文
posted @ 2022-03-28 15:11 ascertain 阅读(278) 评论(0) 推荐(0) 编辑
摘要:main.ts import { createApp } from 'vue' import App from './App.vue' import { createPinia } from 'pinia' const store = createPinia() const app = create 阅读全文
posted @ 2022-03-27 23:31 ascertain 阅读(92) 评论(0) 推荐(0) 编辑
摘要: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 阅读(88) 评论(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 阅读(144) 评论(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 阅读(118) 评论(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 阅读(171) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="description" content=""> <meta name="keywords" content="bait bark"> <meta h 阅读全文
posted @ 2022-03-15 16:01 ascertain 阅读(26) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="description" content=""> <meta name="keywords" content="bait bark"> <meta h 阅读全文
posted @ 2022-03-15 13:34 ascertain 阅读(18) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="description" content=""> <meta name="keywords" content="bait bark"> <meta h 阅读全文
posted @ 2022-03-14 22:27 ascertain 阅读(23) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="description" content=""> <meta name="keywords" content="bait bark"> <meta h 阅读全文
posted @ 2022-03-13 22:36 ascertain 阅读(51) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示