Socket
Book a DemoInstallSign in
Socket

@txdfe/at-layout

Package Overview
Dependencies
Maintainers
5
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@txdfe/at-layout

layout

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
7
-22.22%
Maintainers
5
Weekly downloads
 
Created
Source

at-layout

简介

AT 布局

使用说明

布局包括整体式和卡片式。

示例

import Layout from '@txdfe/at-layout';
import { ConfigProvider, locale, Card } from '@txdfe/at';
const enUS = locale['en-us'];

const LayoutSidebar = () => (
  <>
    <div style={{ width: '100%', height: '100%', background: '#888' }}>
      Sidebar
    </div>
  </>
);

const LayoutMain = () => (
  <>
    <div style={{ width: '100%', height: '100%', background: '#888' }}>
      Main
    </div>
  </>
);

const Demo = () => {
  const prefix = 'layout-whole-demo-1';

  return (
      <div className={prefix}>
        <Layout
          type="whole1"
          sidebar={<LayoutNav />}
          main={<LayoutMain />}
        />
      </div>
  );
}

API

参数类型可选值默认值说明
typestringwhole1, whole2, whole3, whole4, card1, card2, card3, card4, card5, card6, card7whole1主要内容
mainJSXElement必填null主要内容
sidebarJSXElement可选null边栏

FAQs

Package last updated on 02 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts