![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Taro
waillyer
码云地址:https://gitee.com/waillyer
展开
-
Picker 多列选择器实现省市区联动
import React, { useState, useEffect } from 'react';import { View, Picker } from '@tarojs/components';import BaseInfo from '../../services/BaseInfo';// const DEFAULT_ITEM = {// value: 0,// label: '全部',// };const AreaSelect = ({ province, ci原创 2021-12-23 14:36:29 · 1241 阅读 · 0 评论 -
移动端taro中可视化探索实践
这里写目录标题一级目录二级目录三级目录技术栈组件库初探组件库对比一级目录二级目录三级目录技术栈react ,微信小程序,taro -taro-ui组件库初探官网https://antv.vision/zh地址https://github.com/antvis/g2组件库对比1.antvis/G2. star: 10.8k ,fork:1.2k...原创 2021-08-23 18:09:01 · 1024 阅读 · 3 评论 -
小程序树展示
import React, { useState, useEffect } from 'react';import { useRouter } from '@tarojs/taro';import { View, Text, Image } from '@tarojs/components';import Customer from '../../services/customerProfileList';import starIc from '../../assets/star.png';im.原创 2021-08-18 16:58:24 · 553 阅读 · 0 评论 -
【微信小程序】滑动手势处理
import React, { useState } from 'react';import { View } from '@tarojs/components';import { useDidShow } from '@tarojs/taro';const PageTouch = ({ children, handlePreviousPage, handleNextPage }) => { const [touchStart, setTouchStart] = useState([0原创 2021-08-16 18:00:15 · 2358 阅读 · 0 评论 -
taro微信小程序封装公共按钮组件
封装悬浮按钮组件新建组件src/components/AddButton/index.jsximport React from 'react';import { Button } from '@tarojs/components';import './index.scss';const AddButton = ({ title, show = true, style, onClick }) => { return ( <Button原创 2021-06-01 15:03:15 · 685 阅读 · 0 评论 -
taro 封装一个加载中组件
### 一.正常使用loading1.组件中引入import { AtSearchBar, AtActivityIndicator } from 'taro-ui'; const loading = useSelector(store => store.loading);return( {listParams?.page === 1 && loading.effects['shipOrderList/fetchShipOrderList'] ? (原创 2021-05-31 09:42:48 · 1562 阅读 · 0 评论 -
taro跳转到tabBar报错问题
{errMsg: “redirectTo:fail can not redirectTo a tabbar page”}改用解决Taro.switchTab(option)跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面if (res.code === 30000) { Taro.showToast({ title: "登录成功", icon: "success", }); Taro.swit.原创 2021-05-30 22:32:48 · 862 阅读 · 0 评论 -
taro-redux-dva微信小程序项目实践
基础项目请关注上一篇Taro-ui项目搭建一、初始化目录原创 2021-05-30 10:46:19 · 293 阅读 · 1 评论 -
taro时间packer
<View className="drawer-item"> <View className="drawer-item-key">登记时间</View> <View className="picker"> <Picker mode="date" value={filterParams.start_dt} onChange={onStartDateCh.原创 2021-05-29 15:47:38 · 118 阅读 · 0 评论 -
taro修改标题栏
根据不同业务调整title useEffect(() => { if (shipOrderApproveType) { let title = '工单审批'; switch (shipOrderApproveType) { case 'complete': title = '完成'; break;原创 2021-05-27 18:04:24 · 1062 阅读 · 0 评论