当前位置: 首页 > news >正文

在哪里个网站找专业做ps的人做网站现在好弄么

在哪里个网站找专业做ps的人,做网站现在好弄么,华威桥网站建设,表格制作教程入门视频备注#xff1a; 使用 TypeScript 和 React的函数式组件语法。此组件的目的是显示文本#xff0c;如果文本内容超出了指定的行数#xff0c;它将显示一个“查看更多”的按钮。当用户点击这个按钮时#xff0c;将展示全部的文本内容。组件使用了自定义的钩子 useBoundingCli… 备注 使用 TypeScript 和 React的函数式组件语法。此组件的目的是显示文本如果文本内容超出了指定的行数它将显示一个“查看更多”的按钮。当用户点击这个按钮时将展示全部的文本内容。组件使用了自定义的钩子 useBoundingClientRect 来确定是否需要显示这个按钮 //index.tsx文件 import type { FC, JSX } from react; import { Fragment, useState } from react; import type { StandardProps } from tarojs/components; import { Image, Text, View } from tarojs/components;import iconDropDown from /assets/icons/icon-dorpdown-primary.svg; import useBoundingClientRect from /hooks/useBoundingClientRect;import ./index.less;interface EllipsisProps {rows?: number;/*** 收起节点*/foldRender?: JSX.Element;/*** 是否显示收取按钮*/showFold?: boolean;/*** 展开节点*/unfoldRender?: JSX.Element;/*** 是否显示展开按钮*/showUnfold?: boolean;onChange?: (val: boolean) void; }const Ellipsis: FCEllipsisProps StandardProps ({rows 1,children,className,showUnfold,unfoldRender, }) {const [show, setShow] useState(false);const [rectAssist] useBoundingClientRect(#rectAssist, [children]);const [rectActual] useBoundingClientRect(#rectActual, [children]);const style {lineClamp: rows,webkitLineClamp: rows,};const showMoreBtn !show showUnfold rectActual?.height rectAssist?.height Number(rectActual?.height) ! Number(rectAssist?.height);return (FragmentViewstyle{{ position: absolute, left: 0, top: -999999, opacity: 0 }}className{className}idrectAssist{children}/ViewViewclassName{lineClamp__1 ${className}}style{!show ? style : { display: block }}idrectActual{children}{!!showMoreBtn (View classNameunfold-wrap idunfoldWrap onClick{() setShow(true)}{unfoldRender || (View classNameunfold-btnText查看更多/TextImage src{iconDropDown} //View)}/View)}/View/Fragment); };export default Ellipsis; css样式index.less .lineClamp(row) {display: -webkit-box;overflow: hidden;line-clamp: row;-webkit-line-clamp: row;-webkit-box-orient: vertical;position: relative; }.lineClamp__1 {.lineClamp(1);::after {color: red;position: absolute;right: 0;bottom: 5px;} }.lineClamp__2 {.lineClamp(2); }.lineClamp__3 {.lineClamp(3); }.unfold-wrap {position: absolute;right: 0;bottom: 0;display: flex;background: linear-gradient(to left, #fff, #fff, #fff, rgba(255, 255, 255, 0.4)); }.unfold-btn {display: flex;flex-direction: row;align-items: center;min-width: 32px;padding: 4px 10px 4px 30px;line-height: 1;text {color: #b89962;font-size: 12px;font-style: normal;font-weight: 400;line-height: 12px; /* 100% */}image {width: 13px;height: 12px;} } 使用组件 ViewEllipsis className{styles.name}{未知文字文字文字}/Ellipsis /View
http://www.pierceye.com/news/775858/

相关文章:

  • 黑龙江省建设网官方网站erp系统软件免费版
  • 网站建设案例算命网站百度搜索站长平台网站
  • 手机wap网站模板 带后台thefox wordpress
  • 公司网站建设与设计制作游戏网站的设计方案
  • 移动端网站设计规范程序员帮忙做放贷网站
  • 网站到期查询广西建设信息网
  • 服务器可以放几个网站市场调研的五个步骤
  • 网站前置审批h5页面制作软件thinkphp
  • 企业网站设计调查问卷步骤记录器
  • dw里响应式网站怎么做郑州电力高等专科学校学费多少
  • 用app怎么样建网站深圳专业做网站的
  • 怎样做浏览的网站不被发现互联网营销师报考条件
  • 电子商务网站建设与电子支付网站进不去怎么解决
  • 微信网站模板下载电子商务网站建设的四个步骤
  • 网站内如何做论坛建设网站宝安区
  • 公司网站管理制定的作用网站建设设计文档模板
  • 做网站 附加信息全网整合营销公司
  • 做网站都需要用到什么软件每年网站备案抽查
  • 网站如何做电脑和手机软件ps素材网站大全
  • 佛山网站建设培训高能建站
  • 网站开发的相关技能广州有哪些广告公司
  • jsp网站设计用以前用过的域名做网站
  • 魔兽世界做宏网站家具设计与工程就业前景
  • 网站案例介绍平面设计网址推荐
  • 网站上的验证码怎么做简书 导入 wordpress
  • 想把公司的外部网站替换金戈枸橼酸西地那非片
  • 个人可以做社区网站淄博网站文章优化
  • 晋中建设集团网站windows图标wordpress
  • 如何创建商业网站为网站网站做代理被判缓刑
  • 个人备案做运营网站wordpress公众号源码