@ant-design/icons#BackwardOutlined TypeScript Examples

The following examples show how to use @ant-design/icons#BackwardOutlined. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Icon.tsx    From html2sketch with MIT License 4 votes vote down vote up
IconSymbol: FC = () => {
  return (
    <Row>
      {/*<CaretUpOutlined*/}
      {/*  className="icon"*/}
      {/*  symbolName={'1.General/2.Icons/1.CaretUpOutlined'}*/}
      {/*/>*/}
      {/*  className="icon"*/}
      {/*  symbolName={'1.General/2.Icons/2.MailOutlined'}*/}
      {/*/>*/}
      {/*<StepBackwardOutlined*/}
      {/*  className="icon"*/}
      {/*  symbolName={'1.General/2.Icons/2.StepBackwardOutlined'}*/}
      {/*/>*/}
      {/*<StepForwardOutlined*/}
      {/*  className="icon"*/}
      {/*  symbolName={'1.General/2.Icons/2.StepBackwardOutlined'}*/}
      {/*/>*/}
      <StepForwardOutlined />
      <ShrinkOutlined />
      <ArrowsAltOutlined />
      <DownOutlined />
      <UpOutlined />
      <LeftOutlined />
      <RightOutlined />
      <CaretUpOutlined />
      <CaretDownOutlined />
      <CaretLeftOutlined />
      <CaretRightOutlined />
      <VerticalAlignTopOutlined />
      <RollbackOutlined />
      <FastBackwardOutlined />
      <FastForwardOutlined />
      <DoubleRightOutlined />
      <DoubleLeftOutlined />
      <VerticalLeftOutlined />
      <VerticalRightOutlined />
      <VerticalAlignMiddleOutlined />
      <VerticalAlignBottomOutlined />
      <ForwardOutlined />
      <BackwardOutlined />
      <EnterOutlined />
      <RetweetOutlined />
      <SwapOutlined />
      <SwapLeftOutlined />
      <SwapRightOutlined />
      <ArrowUpOutlined />
      <ArrowDownOutlined />
      <ArrowLeftOutlined />
      <ArrowRightOutlined />
      <LoginOutlined />
      <LogoutOutlined />
      <MenuFoldOutlined />
      <MenuUnfoldOutlined />
      <BorderBottomOutlined />
      <BorderHorizontalOutlined />
      <BorderInnerOutlined />
      <BorderOuterOutlined />
      <BorderLeftOutlined />
      <BorderRightOutlined />
      <BorderTopOutlined />
      <BorderVerticleOutlined />
      <PicCenterOutlined />
      <PicLeftOutlined />
      <PicRightOutlined />
      <RadiusBottomleftOutlined />
      <RadiusBottomrightOutlined />
      <RadiusUpleftOutlined />
      <RadiusUprightOutlined />
      <FullscreenOutlined />
      <FullscreenExitOutlined />
      <QuestionOutlined />
      <PauseOutlined />
      <MinusOutlined />
      <PauseCircleOutlined />
      <InfoOutlined />
      <CloseOutlined />
      <ExclamationOutlined />
      <CheckOutlined />
      <WarningOutlined />
      <IssuesCloseOutlined />
      <StopOutlined />
      <EditOutlined />
      <CopyOutlined />
      <ScissorOutlined />
      <DeleteOutlined />
      <SnippetsOutlined />
      <DiffOutlined />
      <HighlightOutlined />
      <AlignCenterOutlined />
      <AlignLeftOutlined />
      <AlignRightOutlined />
      <BgColorsOutlined />
      <BoldOutlined />
      <ItalicOutlined />
      <UnderlineOutlined />
      <StrikethroughOutlined />
      <RedoOutlined />
      <UndoOutlined />
      <ZoomInOutlined />
      <ZoomOutOutlined />
      <FontColorsOutlined />
      <FontSizeOutlined />
      <LineHeightOutlined />
      <SortAscendingOutlined />
      <SortDescendingOutlined />
      <DragOutlined />
      <OrderedListOutlined />
      <UnorderedListOutlined />
      <RadiusSettingOutlined />
      <ColumnWidthOutlined />
      <ColumnHeightOutlined />
      <AreaChartOutlined />
      <PieChartOutlined />
      <BarChartOutlined />
      <DotChartOutlined />
      <LineChartOutlined />
      <RadarChartOutlined />
      <HeatMapOutlined />
      <FallOutlined />
      <RiseOutlined />
      <StockOutlined />
      <BoxPlotOutlined />
      <FundOutlined />
      <SlidersOutlined />
      <AndroidOutlined />
      <AppleOutlined />
      <WindowsOutlined />
      <IeOutlined />
      <ChromeOutlined />
      <GithubOutlined />
      <AliwangwangOutlined />
      <DingdingOutlined />
      <WeiboSquareOutlined />
      <WeiboCircleOutlined />
      <TaobaoCircleOutlined />
      <Html5Outlined />
      <WeiboOutlined />
      <TwitterOutlined />
      <WechatOutlined />
      <AlipayCircleOutlined />
      <TaobaoOutlined />
      <SkypeOutlined />
      <FacebookOutlined />
      <CodepenOutlined />
      <CodeSandboxOutlined />
      <AmazonOutlined />
      <GoogleOutlined />
      <AlipayOutlined />
      <AntDesignOutlined />
      <AntCloudOutlined />
      <ZhihuOutlined />
      <SlackOutlined />
      <SlackSquareOutlined />
      <BehanceSquareOutlined />
      <DribbbleOutlined />
      <DribbbleSquareOutlined />
      <InstagramOutlined />
      <YuqueOutlined />
      <AlibabaOutlined />
      <YahooOutlined />
      <RedditOutlined />
      <SketchOutlined />
      <AccountBookOutlined />
      <AlertOutlined />
      <ApartmentOutlined />
      <ApiOutlined />
      <QqOutlined />
      <MediumWorkmarkOutlined />
      <GitlabOutlined />
      <MediumOutlined />
      <GooglePlusOutlined />
      <AppstoreAddOutlined />
      <AppstoreOutlined />
      <AudioOutlined />
      <AudioMutedOutlined />
      <AuditOutlined />
      <BankOutlined />
      <BarcodeOutlined />
      <BarsOutlined />
      <BellOutlined />
      <BlockOutlined />
      <BookOutlined />
      <BorderOutlined />
      <BranchesOutlined />
      <BuildOutlined />
      <BulbOutlined />
      <CalculatorOutlined />
      <CalendarOutlined />
      <CameraOutlined />
      <CarOutlined />
      <CarryOutOutlined />
      <CiCircleOutlined />
      <CiOutlined />
      <CloudOutlined />
      <ClearOutlined />
      <ClusterOutlined />
      <CodeOutlined />
      <CoffeeOutlined />
      <CompassOutlined />
      <CompressOutlined />
      <ContactsOutlined />
      <ContainerOutlined />
      <ControlOutlined />
      <CopyrightCircleOutlined />
      <CopyrightOutlined />
      <CreditCardOutlined />
      <CrownOutlined />
      <CustomerServiceOutlined />
      <DashboardOutlined />
      <DatabaseOutlined />
      <DeleteColumnOutlined />
      <DeleteRowOutlined />
      <DisconnectOutlined />
      <DislikeOutlined />
      <DollarCircleOutlined />
      <DollarOutlined />
      <DownloadOutlined />
      <EllipsisOutlined />
      <EnvironmentOutlined />
      <EuroCircleOutlined />
      <EuroOutlined />
      <ExceptionOutlined />
      <ExpandAltOutlined />
      <ExpandOutlined />
      <ExperimentOutlined />
      <ExportOutlined />
      <EyeOutlined />
      <FieldBinaryOutlined />
      <FieldNumberOutlined />
      <FieldStringOutlined />
      <DesktopOutlined />
      <DingtalkOutlined />
      <FileAddOutlined />
      <FileDoneOutlined />
      <FileExcelOutlined />
      <FileExclamationOutlined />
      <FileOutlined />
      <FileImageOutlined />
      <FileJpgOutlined />
      <FileMarkdownOutlined />
      <FilePdfOutlined />
      <FilePptOutlined />
      <FileProtectOutlined />
      <FileSearchOutlined />
      <FileSyncOutlined />
      <FileTextOutlined />
      <FileUnknownOutlined />
      <FileWordOutlined />
      <FilterOutlined />
      <FireOutlined />
      <FlagOutlined />
      <FolderAddOutlined />
      <FolderOutlined />
      <FolderOpenOutlined />
      <ForkOutlined />
      <FormatPainterOutlined />
      <FrownOutlined />
      <FunctionOutlined />
      <FunnelPlotOutlined />
      <GatewayOutlined />
      <GifOutlined />
      <GiftOutlined />
      <GlobalOutlined />
      <GoldOutlined />
      <GroupOutlined />
      <HddOutlined />
      <HeartOutlined />
      <HistoryOutlined />
      <HomeOutlined />
      <HourglassOutlined />
      <IdcardOutlined />
      <ImportOutlined />
      <InboxOutlined />
      <InsertRowAboveOutlined />
      <InsertRowBelowOutlined />
      <InsertRowLeftOutlined />
      <InsertRowRightOutlined />
      <InsuranceOutlined />
      <InteractionOutlined />
      <KeyOutlined />
      <LaptopOutlined />
      <LayoutOutlined />
      <LikeOutlined />
      <LineOutlined />
      <LinkOutlined />
      <Loading3QuartersOutlined />
      <LoadingOutlined />
      <LockOutlined />
      <MailOutlined />
      <ManOutlined />
      <MedicineBoxOutlined />
      <MehOutlined />
      <MenuOutlined />
      <MergeCellsOutlined />
      <MessageOutlined />
      <MobileOutlined />
      <MoneyCollectOutlined />
      <MonitorOutlined />
      <MoreOutlined />
      <NodeCollapseOutlined />
      <NodeExpandOutlined />
      <NodeIndexOutlined />
      <NotificationOutlined />
      <NumberOutlined />
      <PaperClipOutlined />
      <PartitionOutlined />
      <PayCircleOutlined />
      <PercentageOutlined />
      <PhoneOutlined />
      <PictureOutlined />
      <PoundCircleOutlined />
      <PoundOutlined />
      <PoweroffOutlined />
      <PrinterOutlined />
      <ProfileOutlined />
      <ProjectOutlined />
      <PropertySafetyOutlined />
      <PullRequestOutlined />
      <PushpinOutlined />
      <QrcodeOutlined />
      <ReadOutlined />
      <ReconciliationOutlined />
      <RedEnvelopeOutlined />
      <ReloadOutlined />
      <RestOutlined />
      <RobotOutlined />
      <RocketOutlined />
      <SafetyCertificateOutlined />
      <SafetyOutlined />
      <ScanOutlined />
      <ScheduleOutlined />
      <SearchOutlined />
      <SecurityScanOutlined />
      <SelectOutlined />
      <SendOutlined />
      <SettingOutlined />
      <ShakeOutlined />
      <ShareAltOutlined />
      <ShopOutlined />
      <ShoppingCartOutlined />
      <ShoppingOutlined />
      <SisternodeOutlined />
      <SkinOutlined />
      <SmileOutlined />
      <SolutionOutlined />
      <SoundOutlined />
      <SplitCellsOutlined />
      <StarOutlined />
      <SubnodeOutlined />
      <SyncOutlined />
      <TableOutlined />
      <TabletOutlined />
      <TagOutlined />
      <TagsOutlined />
      <TeamOutlined />
      <ThunderboltOutlined />
      <ToTopOutlined />
      <ToolOutlined />
      <TrademarkCircleOutlined />
      <TrademarkOutlined />
      <TransactionOutlined />
      <TrophyOutlined />
      <UngroupOutlined />
      <UnlockOutlined />
      <UploadOutlined />
      <UsbOutlined />
      <UserAddOutlined />
      <UserDeleteOutlined />
      <UserOutlined />
      <UserSwitchOutlined />
      <UsergroupAddOutlined />
      <UsergroupDeleteOutlined />
      <VideoCameraOutlined />
      <WalletOutlined />
      <WifiOutlined />
      <BorderlessTableOutlined />
      <WomanOutlined />
      <BehanceOutlined />
      <DropboxOutlined />
      <DeploymentUnitOutlined />
      <UpCircleOutlined />
      <DownCircleOutlined />
      <LeftCircleOutlined />
      <RightCircleOutlined />
      <UpSquareOutlined />
      <DownSquareOutlined />
      <LeftSquareOutlined />
      <RightSquareOutlined />
      <PlayCircleOutlined />
      <QuestionCircleOutlined />
      <PlusCircleOutlined />
      <PlusSquareOutlined />
      <MinusSquareOutlined />
      <MinusCircleOutlined />
      <InfoCircleOutlined />
      <ExclamationCircleOutlined />
      <CloseCircleOutlined />
      <CloseSquareOutlined />
      <CheckCircleOutlined />
      <CheckSquareOutlined />
      <ClockCircleOutlined />
      <FormOutlined />
      <DashOutlined />
      <SmallDashOutlined />
      <YoutubeOutlined />
      <CodepenCircleOutlined />
      <AliyunOutlined />
      <PlusOutlined />
      <LinkedinOutlined />
      <AimOutlined />
      <BugOutlined />
      <CloudDownloadOutlined />
      <CloudServerOutlined />
      <CloudSyncOutlined />
      <CloudUploadOutlined />
      <CommentOutlined />
      <ConsoleSqlOutlined />
      <EyeInvisibleOutlined />
      <FileGifOutlined />
      <DeliveredProcedureOutlined />
      <FieldTimeOutlined />
      <FileZipOutlined />
      <FolderViewOutlined />
      <FundProjectionScreenOutlined />
      <FundViewOutlined />
      <MacCommandOutlined />
      <PlaySquareOutlined />
      <OneToOneOutlined />
      <RotateLeftOutlined />
      <RotateRightOutlined />
      <SaveOutlined />
      <SwitcherOutlined />
      <TranslationOutlined />
      <VerifiedOutlined />
      <VideoCameraAddOutlined />
      <WhatsAppOutlined />

      {/*</Col>*/}
    </Row>
  );
}
Example #2
Source File: index.tsx    From electron with MIT License 4 votes vote down vote up
Wrap: React.FC<BaseProps> = (props) => {
  const [activeKey, setActiveKey] = useState<string>(props.source[0].Key);
  const [thresholdMap, setThresholdMap] = useState<ThresholdType[]>([]);
  const [watchWinResize, setWatchWinResize] = useState(Boolean);
  /** 允许最小高度为 满屏的时候的初始化高度,动态变化 */
  const [fullScreenHeight, setFullScreenHeight] = useState(0);
  const InnerWrapRef = useRef<HTMLDivElement>(null);
  const history = useHistory();

  /**
   * @Msg 初始化页面基础信息
   * @Msg 配置 滚动区间阈值
   */
  useEffect(() => {
    const resizeHandle = utils.debounce(() => {
      setWatchWinResize(!watchWinResize);
    });
    remote.getCurrentWindow().on('resize', resizeHandle);
    return () => {
      remote.getCurrentWindow().off('resize', resizeHandle);
    };
  }, []);
  useEffect(() => {
    if (!InnerWrapRef || !InnerWrapRef.current) return;
    const thresholdArr: ThresholdType[] = [];
    Array.prototype.forEach.call(InnerWrapRef.current.children, (item: HTMLLIElement, index, list) => {
      const currentElementHeight = item.getBoundingClientRect().height;
      const currentElement: ThresholdType = { Key: item.getAttribute('wrap-key') as string, section: [0, 0] };
      /** 不是第一个,则取上一个的最大值为当前的最小值 */
      const a = index === 0 ? 0 : thresholdArr[index - 1].section[1];
      /** 不是第一个,则取上一个的最大值加上当前的高度为当前的最大值 */
      const b = index === 0 ? currentElementHeight : currentElementHeight + thresholdArr[index - 1].section[1];
      Reflect.set(currentElement, 'section', [a, b]);
      thresholdArr.push(currentElement);
    });
    setThresholdMap(thresholdArr);
  }, [InnerWrapRef, watchWinResize, fullScreenHeight]);

  const getBoundingClientRectWithRender = () => {
    const height = InnerWrapRef.current?.getBoundingClientRect().height || 0;
    const preHeight = document.getElementsByClassName('full-screen')[0]?.getBoundingClientRect()?.height;
    /** 记录高度变更 */
    if (Reflect.get(window, '__scrollLock__debounce') !== preHeight) {
      Reflect.set(window, '__scrollLock__debounce', preHeight);
      setFullScreenHeight(preHeight + 64);
    }
    return height;
  };

  const changeActiveKey = (activeKey: string) => {
    setActiveKey(activeKey);
    if (!InnerWrapRef || !InnerWrapRef.current) return;
    if (!document.querySelectorAll('.innerWrapItem').length) return;
    if (!thresholdMap.length) return;
    const currentThresholdMap = thresholdMap.find((item) => {
      return activeKey === item.Key;
    });
    if (!currentThresholdMap) return;
    Reflect.set(window, '__scrollLock__', true);
    InnerWrapRef.current.scrollTo({
      behavior: 'auto',
      left: 0,
      top: currentThresholdMap.section[0]
    });
    setTimeout(() => {
      Reflect.set(window, '__scrollLock__', false);
    }, 60 * 10);
  };
  const onScroll = utils.debounce((e: { target: HTMLDivElement }) => {
    if (Reflect.get(window, '__scrollLock__') || !e || !e.target) return;
    const target: HTMLDivElement = e.target;
    const scrollTop = target.scrollTop;
    const currentElement = thresholdMap.find((item) => {
      return scrollTop >= item.section[0] && scrollTop <= item.section[1];
    });
    if (!currentElement || !currentElement.Key) return;
    setActiveKey(currentElement.Key);
  }, 1);
  const LabelWrap = (
    <section className="labelWrap">
      <section className="fullback" onClick={() => history.goBack()}>
        <BackwardOutlined size={18} />
        &nbsp;设置
      </section>

      <Tabs tabPosition="left" onChange={changeActiveKey} activeKey={activeKey}>
        {props.source.map((item) => (
          <Tabs.TabPane tab={item.Label} key={item.Key} disabled={false} />
        ))}
      </Tabs>
      <style jsx>{`
        .fullback {
          height: 32px;
          display: flex;
          justify-content: flex-start;
          align-items: center;
          margin-bottom: 16px;
          border-radius: 2px;
          padding: 0 8px;
          color: #666;
          background-color: #e9ecf2;
          cursor: default;
          margin-top: 0px;
          margin-left: -6px;
          margin-right: -6px;
        }
        .fullback:hover {
          opacity: 0.7;
        }
        .labelWrap {
          width: 168px;
          height: 100%;
          overflow-y: auto;
          padding: 6px;
          padding-top: 0px;
          background: rgb(245, 245, 245);
          border-right: 1px solid #fff;
          border-top: 1px solid #fff;
        }
      `}</style>
      <style jsx global>{`
        .labelWrap .ant-tabs .ant-tabs-left-bar {
          border-right: 0 none;
          float: left;
          width: 98%;
        }
        .labelWrap .ant-tabs .ant-tabs-tab {
          text-align: left;
        }
        .labelWrap .ant-tabs .ant-tabs-content-holder {
          display: none;
          width: 0;
          overflow: hidden;
        }
        .labelWrap .ant-tabs .ant-tabs-nav {
          flex: 1 !important;
        }
      `}</style>
    </section>
  );
  const InnerWrap = (
    <section
      className="innerWrap"
      ref={InnerWrapRef}
      onScroll={(e) => {
        e.persist();
        onScroll(e);
      }}
    >
      {props.source.map((item, index) => (
        <section className={`innerWrapItem ${(index === 0 && 'innerWrapFirst') || ''}`} key={item.Key} wrap-key={item.Key}>
          <div className="seizeAseat"></div>
          <div className={`${props.isFullScreen ? 'full-screen' : ''}`}>{item.Content}</div>
          <div className="seizeAseat"></div>
        </section>
      ))}
      <style jsx>{`
        .innerWrap {
          flex: 1;
          overflow-y: scroll;
          overflow-x: hidden;
          padding: 0 16px;
          border-left: 0.5px solid #f2f2f2;
        }
        .innerWrapItem {
          border-top: 1px solid #f2f2f2;
          padding: 0;
          margin: 0;
        }
        .seizeAseat {
          height: 32px;
        }
        .innerWrapFirst {
          border-top: 0 none;
        }
        .full-screen {
          min-height: calc(${getBoundingClientRectWithRender()}px - 64px);
        }
      `}</style>
    </section>
  );
  return (
    <section className="scrollTolls">
      {LabelWrap}
      {InnerWrap}
      <style jsx>{`
        .scrollTolls {
          display: flex;
          width: 100%;
          height: 100%;
          overflow: hidden;
          background-color: transparent;
        }
      `}</style>
    </section>
  );
}