会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
番茄西红柿
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
12
下一页
2022年12月26日
垮组件方法调用
摘要: 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)
2022年11月18日
mockjs
摘要: 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)
2022年9月23日
汇总
摘要: 见:http://pgs98.com/ 无缝滚动: vue3-seamless-scroll
阅读全文
posted @ 2022-09-23 16:45 番茄西红柿u
阅读(15)
评论(0)
推荐(0)
2022年8月25日
隐藏无权限按钮 通过自定义指令
摘要: 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)
vue接口获取路由菜单
摘要: 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)
2022年7月15日
vue-picture-bd-marker 图片添加标注
摘要: 文档地址: 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)
2022年5月18日
小程序查询条件组件部任意时候都展示顶部
摘要: 当组件在屏幕范围内时,会按照正常的布局排列,当组件滚出屏幕范围时,始终会固定在屏幕顶部。 具体使用见微信开发文档 sticky npm install @miniprogram-component-plus/sticky // page.json { "usingComponents": { "mp
阅读全文
posted @ 2022-05-18 12:00 番茄西红柿u
阅读(50)
评论(0)
推荐(0)
2022年5月11日
微信小程序回到顶部
摘要: wx.pageScrollTo({ scrollTop: 0, duration: 300 })
阅读全文
posted @ 2022-05-11 14:03 番茄西红柿u
阅读(24)
评论(0)
推荐(0)
2022年4月1日
vue3 setup语法糖
摘要: 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)
2022年3月29日
监听数据变化
摘要: 自定义组件中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
下一页
公告