随笔分类 - vue
vue使用
摘要:<div class="content-link"> <span id="link" class="content-link-url ellipsis">{{ userInfo?.user.referralUrl }}</span> <CopyIcon @click="copyUrl" class=
阅读全文
摘要:JS 部分为 Vue3 版本写法 <!--描述--> <div class="brand-info-desc"> <input id="btn-input" class="btn-input" v-model="checkbox" type="checkbox"> <div class="text"
阅读全文
摘要:template: <i18n path="totalBuy" tag="span" :for="item.purchaseMboxAmount"> <span class="item-text">{{ item.purchaseMboxAmount }}</span> </i18n> 翻译: {
阅读全文
摘要:{ path: '/:pathMatch(.*)', redirect: '/home', },
阅读全文
摘要:需求为data数据中,多个数组,数组中的项对应一个盒子,盒子需要有逐个开启的动画。如下例子为 Vue3 const itemArr = Array(15).fill(1) const itemArr2 = Array(10).fill(2) const dataArr = [ { title: 'C
阅读全文
摘要:<div class="create-btn-wrap"> <div class='border-bg'></div> <el-button class="create-button"> <el-image :src="require('@/assets/images/icons/plus.svg'
阅读全文
摘要:因为项目中引入了 @vue/composition-api ,因此以下代码为 vue3 + vue2 写法(因为vue-router 3版本不能在 steup 中使用),有好的建议可以提一下~~ import {onActivated, getCurrentInstance } from '@vue
阅读全文
摘要:在 module.exports 中加入以下代码,@ 代表 src 目录 module.exports = { css: { loaderOptions: { sass: { // 全局sass变量 additionalData: `@import "@/style/scss/common.scss
阅读全文

浙公网安备 33010602011771号