
小程序
一只小小的蜗牛
这个作者很懒,什么都没留下…
展开
-
小程序 自定义tabbar
父页面 wxml json “usingComponents”: { “TabBar”: “/components/TabBar/TabBar” }, js Page({ data: { msg: ‘’, loading: false, count: 0, }, checkTab() { this.triggerEvent(‘goTo’, app.globalData.tabId) } } 子页面 wxml {{item.name}} wxss .footer-tab{ width: 100%原创 2021-06-11 14:42:47 · 144 阅读 · 1 评论 -
小程序 wepy 多行文本溢出显示省略号
index.scss index.wpy js原创 2020-09-13 01:04:04 · 214 阅读 · 0 评论 -
小程序自定义tabBar组件 父子通信原理
创建一个tabBar文件 tabBar.wxml tabBar.wxss .tab-bar { position: fixed; bottom: 0; left: 0; right: 0; height: 48px; background: white; display: flex; padding-bottom: env(safe-area-inset-bottom); } .tab-bar-border { background-color: rgba(0, 0, 0, 0.33); position原创 2020-09-05 12:30:58 · 421 阅读 · 0 评论