参考: https://www.imooc.com/article/263899
https://developers.weixin.qq.com/miniprogram/dev/reference/api/Component.html
1.在根目录创建components文件夹在components下创建watermark文件夹再在其下面创建page得到watermark.jswatermark.jsonwatermark.wxmlwatermark.wxss;2.使用规…
1.在components自定义文件夹,文件夹里分别包含wxml,wxss,js,json文件(componetns文件是自己手写的)2.wxml与wxss文件按照平常的来就好3.js文件Component({properties:{页面上…
swiper默认最小高度150要求:swiper高度自适应wxml<viewclass='swiper'><swiperindicator-dots="{{indicatorDots}}"vertical="{{verti…
废话不多说,直接上方法:首先npm安装mpvue-wxparsenpmimpvue-wxparse接下来:使用<template><div><wxParse:content="article"@preview=…
首先先看官网:https://developers.weixin.qq.com/miniprogram/dev/framework/ability/custom-tabbar.html详细官方都有介绍,下面具体介绍用法:在tabBar组件的…
微信小程序可以通过在app.json文件中定义官方的tabBar,但是实际项目中往往会遇到一些业务需求官方的tabBar无法做到。比如说底部的tabBar个数是根据不同角色来显示,这个时候我们需要自定义tabBar。在自定义tabBar的时…
wepy-CLI安装npminstall-gwepy-cliwepyinitstandardmy-projecthttps://github.com/Tencent/wepy特性:类Vue开发风格支持自定义组件开发支持引入NPM包支持Pro…
答案:https://taro-ui.aotu.io/#/docs/questionstaro-ui自定义样式覆盖小程序组件样式使用到了globalClass这个微信小程序特性,由于微信小程序的限制,自定义的样式需要在page页面内使用,不…