随笔分类 -  vue

vue相关问题
摘要:1.标签 <button v-copy="text">复制文本</button> text是要复制的内容,在data函数中 2.在main.js中注册copy指令 Vue.directive('copy', { bind: function(el, binding) { el.$copy = fun 阅读全文
posted @ 2023-10-21 15:37 干红 阅读(247) 评论(0) 推荐(0) 编辑
摘要:直接写到组件里面,使用组件传值返回数据,返回功能还没做 <template> <div class="scan"> <div id="bcid"> <div style="height:40%"></div> <p class="tip">...载入中...</p> </div> <footer> 阅读全文
posted @ 2023-10-20 15:43 干红 阅读(99) 评论(0) 推荐(0) 编辑
摘要:1.在命令行中执行:npm install animate.css --save 2.main.js 中: import animated from 'animate.css' // npm install animate.css --save安装Vue.use(animated) 3.使用 <di 阅读全文
posted @ 2023-09-06 10:35 干红 阅读(13) 评论(0) 推荐(0) 编辑
摘要:<div id="wrap" :style="{ height: screenHeight + 'px' }"> <div id="main" :style="{ top: nowTop + 'px' }"> <ul id="pageUl" type="circle"> <li id="pageUl 阅读全文
posted @ 2022-12-01 14:39 干红 阅读(285) 评论(0) 推荐(0) 编辑
摘要:1.申请key 2.新建文件夹bmpgl.js export function BMPGL(ak) { return new Promise(function(resolve, reject) { window.init = function() { // eslint-disable-next-l 阅读全文
posted @ 2022-10-31 14:57 干红 阅读(1133) 评论(0) 推荐(0) 编辑
摘要:1.安装 npm install swiper@3 --save-dev2.引入 import Vue from 'vue'import App from './App.vue'import router from './router'import store from './store' impo 阅读全文
posted @ 2022-10-27 10:55 干红 阅读(403) 评论(0) 推荐(0) 编辑
摘要:import axios from 'axios' import { Toast } from 'vant' import store from '../store' // 区分开发环境(development)下的测试接口与生产环境(production)下的真实(线上)接口基准路径 const 阅读全文
posted @ 2022-09-05 17:09 干红 阅读(34) 评论(0) 推荐(0) 编辑

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