上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: eventBus.js import Vue from 'vue'; const EventBus = new Vue() export { EventBus } navHead.vue(收到通知 触发orderService.vue中的列表) import {EventBus} from '@/u 阅读全文
posted @ 2022-12-26 11:39 番茄西红柿u 阅读(32) 评论(0) 推荐(0)
摘要: Mock 文件夹下新建 mockServe.js import Mock from "mockjs"; import testData from './test.js' import goodData from './goods.js' import infoData from './info.js 阅读全文
posted @ 2022-11-18 10:40 番茄西红柿u 阅读(45) 评论(0) 推荐(0)
摘要: 见:http://pgs98.com/ 无缝滚动: vue3-seamless-scroll 阅读全文
posted @ 2022-09-23 16:45 番茄西红柿u 阅读(15) 评论(0) 推荐(0)
摘要: main.js Vue.directive('has', { inserted: function (el, binding, vnode) { let btnPermissions = vnode.context.$route.meta.btnPermissions if (!Vue.protot 阅读全文
posted @ 2022-08-25 15:33 番茄西红柿u 阅读(35) 评论(0) 推荐(0)
摘要: menuFormat.js(格式化路由表) export const initMenu = (data) => { let list = []; data.forEach(router => { let { path, component, name, meta, // icon, children 阅读全文
posted @ 2022-08-25 15:19 番茄西红柿u 阅读(711) 评论(0) 推荐(0)
摘要: 文档地址: https://vmarker.sagocloud.com/about/?spm=a2c6h.24755359.0.0.1b6441e4HwmruJ 实现效果: 清空画布: this.$refs['aiPanel-editor'].clearData() <template> <div 阅读全文
posted @ 2022-07-15 11:28 番茄西红柿u 阅读(5023) 评论(3) 推荐(0)
摘要: 当组件在屏幕范围内时,会按照正常的布局排列,当组件滚出屏幕范围时,始终会固定在屏幕顶部。 具体使用见微信开发文档 sticky npm install @miniprogram-component-plus/sticky // page.json { "usingComponents": { "mp 阅读全文
posted @ 2022-05-18 12:00 番茄西红柿u 阅读(50) 评论(0) 推荐(0)
摘要: wx.pageScrollTo({ scrollTop: 0, duration: 300 }) 阅读全文
posted @ 2022-05-11 14:03 番茄西红柿u 阅读(24) 评论(0) 推荐(0)
摘要: 0. 路由跳转 a.vue <script setup> //引入路由 import { useRouter } from 'vue-router' // 定义路由 const router = useRouter() // 编辑 let editBtn = (info) => { router.p 阅读全文
posted @ 2022-04-01 10:27 番茄西红柿u 阅读(747) 评论(0) 推荐(0)
摘要: 自定义组件中observers方法 等价vue中watch observers: { 'yData': function (data) { var option = lineOption(this.data.xData, data) moduleEchart.setOption(option); } 阅读全文
posted @ 2022-03-29 10:54 番茄西红柿u 阅读(37) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 12 下一页