上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 52 下一页
摘要: 当分享按钮在子组件时,子组件不是页面,没有配置pages,所以在子组件设置enableShareAppMessage:true无效 所以父组件设置enableShareAppMessage:true,子组件使用 useShareAppMessage((res) => { console.log("u 阅读全文
posted @ 2020-10-21 18:14 Nyan 阅读(1249) 评论(0) 推荐(0) 编辑
摘要: .text { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 3; } 阅读全文
posted @ 2020-10-21 14:50 Nyan 阅读(4552) 评论(0) 推荐(0) 编辑
摘要: 使用ScrollView,onScroll,scrollTop属性设置Math.random()(0-1)之间实现 import React, { useState } from 'react' import { View, Input, ScrollView, Text } from '@taro 阅读全文
posted @ 2020-10-21 14:26 Nyan 阅读(2223) 评论(0) 推荐(0) 编辑
摘要: const __html = ` <p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei& 阅读全文
posted @ 2020-10-20 15:35 Nyan 阅读(476) 评论(0) 推荐(0) 编辑
摘要: tsx: import React, { useState } from 'react' import Taro from '@tarojs/taro' import { View, Text, Input } from '@tarojs/components' import './index.sc 阅读全文
posted @ 2020-10-15 09:10 Nyan 阅读(722) 评论(0) 推荐(0) 编辑
摘要: import React, { useEffect, useState } from 'react' import Taro from '@tarojs/taro' import { View, Text, ScrollView, Image } from '@tarojs/components' 阅读全文
posted @ 2020-10-13 14:51 Nyan 阅读(975) 评论(0) 推荐(0) 编辑
摘要: 获取sessionKey及解密数据: import api from '@services/api' import app from '@services/request' import storage from '@utils/storage' export const fetchSessionK 阅读全文
posted @ 2020-10-09 17:52 Nyan 阅读(1477) 评论(0) 推荐(0) 编辑
摘要: tsx: import React, { useState } from 'react' import Taro, { getCurrentInstance } from '@tarojs/taro' import { Textarea, View, Text, Image } from '@tar 阅读全文
posted @ 2020-09-29 16:16 Nyan 阅读(773) 评论(0) 推荐(0) 编辑
摘要: 分页参数: export interface IPage { currentPage: number totalCount: number totalPage: number } export const INIT_PAGE: IPage = { currentPage: 1, totalCount 阅读全文
posted @ 2020-09-29 10:17 Nyan 阅读(896) 评论(0) 推荐(0) 编辑
摘要: 子组件sandCommon: import React, { useEffect, useState } from 'react' import Taro from '@tarojs/taro' import { View, MovableArea, MovableView, Image, Text 阅读全文
posted @ 2020-09-28 11:55 Nyan 阅读(872) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 52 下一页