随笔分类 -  Taro

摘要:const inquirer = require('inquirer'); const chalk = require('chalk'); const DEFAULT_TEMPLATE_SRC = 'github:NervJS/taro-project-templates#v3.1' const D 阅读全文
posted @ 2022-02-24 15:12 远方的少年🐬 阅读(98) 评论(0) 推荐(0) 编辑
摘要:@tarojs/taro import Taro, { useDidShow } from '@tarojs/taro' 我们用的最频繁的包就是 @tarojs/taro // taro/index.js const { CurrentReconciler } = require('@tarojs/ 阅读全文
posted @ 2022-02-18 18:15 远方的少年🐬 阅读(312) 评论(0) 推荐(0) 编辑
摘要:通过阅读 Taro 源码后可以知道,Taro 是在@tarojs/mini-runner/dist/index.js 文件中,调用了 webpack 进行打包。 export default async function build (appPath: string, config: IBuildC 阅读全文
posted @ 2022-02-16 11:32 远方的少年🐬 阅读(1532) 评论(0) 推荐(0) 编辑
摘要:taro-plugin-skeleton 配合index.config使用 单独写骨架屏页面,与原有业务耦合度较低。 当页面渲染固定元素,骨架屏会被遮挡 原理:拦截原有小程序底层页面,使用骨架屏页面替换。 当小程序View 没有渲染的时候展示骨架屏,小程序View展示会遮挡住骨架屏页面。 缺点: 上 阅读全文
posted @ 2022-02-07 18:36 远方的少年🐬 阅读(850) 评论(2) 推荐(0) 编辑

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