npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

warden-layout

v2.8.8

Published

this layout component is base antd

Downloads

303

Readme

warden-layout

NPM version NPM downloads

warden-layout是一款基于antd和umi开发的强大且灵活的布局组件,支持多种布局和属性交叉组合出美观又个性的UI中后台前端界面,同时支持一个项目中配置多种不同布局的方案,为开发者提供了一个高效、易用的布局工具。无论是对于新手开发者还是资深开发者来说,这款组件都能够成为他们构建前端项目的得力助手。本项目集许多年的项目案例积累打造,现在完全免费开源,欢迎下载使用和反馈,同时期待有供献精神的共同爱好者一起完善它,为开源世界增砖添瓦。

demo演示地址:https://demo.warden.vip demo仓库:https://github.com/zhouwenqi/warden-layout-demo

安装

npm 安装

$ yarn add warden-layout

源码安装

$ yarn install

打包

yarn

$ yarn build

LICENSE

MIT

直接使用

  1. 项目已发布到npm,可以直接下载最新版使用,项目包需要依赖 umi 和 antd,请先安装它们:
"dependencies": {
  "antd": "^5.21.0",
  "umi": "^4.3.36",
  ...
}
  1. 启用相关插件(initinal-state/access/model等):
export default defineConfig({
  plugins: [
    '@umijs/plugins/dist/initial-state',
    '@umijs/plugins/dist/model',
    '@umijs/plugins/dist/access',
    '@umijs/plugins/dist/locale'
  ],
  initialState: {},
  model: {},
  access:{},
});

🎈注意:需要禁用umi的mfsu

mfsu:false
  1. 然后安装warden-layout到项目中:
$ yarn add warden-layout
  1. 安装成功能后,就可使用了,替换或增加umi布局即可
import WardenLayout,{ Warden } from 'warden-layout'

export default ()=>{
    // layout config
    const config:Warden.IConfig = {
        "theme":"dark",
        "systemTheme":true,
        "layoutType":"headMenu",
        "primaryColor":"#417ffb",
        ...
    }
    return(
        <WardenLayout config={config} />
    )
}
  1. 更多配置信息,请参阅:https://github.com/zhouwenqi/warden-layout/docs/config.md