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 🙏

© 2026 – Pkg Stats / Ryan Hefner

ggj-lepage

v1.0.0

Published

后台搭建页面可配置化框架

Readme

LePage

基于 @bee/beeui + nopage 封装的一套可配置化快速搭建页面框架

Doc

LeForm

  • getValues

    • 效果:获取整体表单的值
  • getValue

    • 入参:
    • 效果:获取单字段值
  • setValues

    • 入参:
    • 效果:设置整体表单的值
  • setValue

    • 入参:
    • 效果:设置单字段的值
  • getStatus

    • 入参:
    • 效果:获取整体表单的状态 / 获取单字段状态
  • setStatus

    • 入参:
    • 效果:设置整体表单的状态 / 设置单字段的状态
  • getGlobalStatus

    • 入参:
    • 效果:获取全局状态
  • setGlobalStatus

    • 入参:
    • 效果:设置全局状态
  • getProps

    • 入参:
    • 效果:get props of single item
  • setProps

    • 入参:
    • 效果:set props of single item
  • getError

    • 入参:
    • 效果:获取整体表单的错误信息 / 获取单字段错误信息
  • setError

    • 入参:
    • 效果:设置整体表单的错误信息 / 设置单字段的错误信息

LeList

  • setDataSource

    • 入参: dataSource: Array<T>
    • 效果: 动态设置Table数据
  • getDataSource

    • 效果: 获取Table数据
  • setCurrentPage

    • 入参:currentPage: Number
    • 效果:设置当前页面数为指定页面数,并发起请求
  • clearFilterData

    • 效果:清空搜索区域并发起请求
  • getFilterData

    • 效果:获取搜索区域的值
  • setFilterData

    • 入参:filterData: Object
    • 效果:设置搜索区域的值
  • resetFilterData

    • 效果:重置搜索区域的值,如果在<List /> 上传过initValues的话,会重置为initValues,否则全部清空
  • setPageData

    • 入参:{ pageSize: Optional, total: Optional, currentPage: Optional }
    • 效果:设置页面参数
  • getPageData

    • 效果:获取页面参数
  • refresh

    • 效果:重新设置当前页面数, 重新发起请求
  • fetch

    • 效果:发起请求
  • refreshTable

    • 效果:重新刷新Table区域
  • refreshPagination

    • 效果:重新刷新Pagination区域
  • resetPage

    • 效果: 当前页面设置为0
  • setUrl

    • 入参:url: String
    • 效果:设置当前url参数
  • setParams

    • 入参:params: {}
    • 效果:设置请求参数params
  • getParams

    • 效果:获取请求参数params
  • getSelectedRowKeys

    • 效果:获取表格中选中项的 key 数组

ChangeLog

v1.1.8

  • LeList
    • 修复 “操作区”按钮的回调可以拿到列表中已勾选的数据
    • 修复 “搜索区”重置按钮的回调,希望能够重置列表中默认勾选的数据
    • 增加 onMount 生命周期,并且在回调中 透出 leList 和 leFilter
    • 优化 操作区的配置 由 headerConfig 改为 operationConfig

v1.1.9

  • LeForm
    • 优化 按钮操作数据,提交、重置按钮的操作会暂存表单数据,用于下次主动调用 refresh、分页、导出时作为默认数据

v1.2.0

  • LeDialog

    • 优化 show 方法的入参,原第一个参数为LeForm的配置被移除,更换成 options 里的 content
    • 优化 show 方法的实现,支持 LeForm、LeList 以及自定义jsx展示
  • LeList

    • 优化 兼容未配置搜索表单和空操作的情况
    • 修复 无法关闭列表的 rowSelection 选择项配置
  • LeForm

    • 优化 配置项为函数类型的情况下,工厂函数接受一个第一个参数变更为 leForm
    • 优化 leForm 实例代理所有的 formCore 下的api
    • 优化 LeForm 组件的props属性 core 和 options 统一合并为 settings
    • 优化 配置项包含自定义 render 时,可以定义 component 属性为 Item,Item常用于不需要布局的地方

v1.2.1

  • LeForm
    • 修复 配置项为 空、null 时出现的异常

v1.2.2

  • LeForm
    • 新增 getCache、setCache、clearCache 缓存管理API
    • 修复 follow 和 required 同时存在时,* 号显示在label的前面

v1.2.3

  • LeForm
    • 增加 getFormatValue api

v1.2.4

  • LeForm
    • 删除 getCache、setCache、clearCache 缓存管理API
    • 修复 配置项 settings.layout.label 支持字符类型

v1.2.5

  • LeList
    • 优化 tableConfig 支持Function函数类型,入参1为 LeList 实例,可通过实例对象调用其内部API
    • 更改 配置项 settings.scrollToError 默认更改为false
    • 更改 LeDialog 的 locale 配置统一设置为zh
    • 增加 表格的操作项支持刷新列表方法

v1.2.6

  • LeForm
    • 增加 validate, validateItem, validateWithoutRender API

v1.2.7

  • LeList
    • 修复 1.2.5版本 表格项没有配置 render 无法渲染问题

v1.2.8

  • LeList

    • 优化 onMount 参数结构 leList, { filterLeForm, operationLeForm }
  • LeForm

    • 优化 Button 组件属性 OnClick 参数结构 err, values, { leForm, leList, event }
    • 优化 Button 组件选项 validateBefore 、 validateAfter 参数结构 error, values, { leForm, leList, event }

v1.2.9

  • LeForm
    • 调整 Button 组件属性 OnClick 参数结构 err, values, leForm, { leList, event }
    • 调整 Button 组件选项 validateBefore 、 validateAfter 参数结构 err, values, leForm, { leList, event }

TODO

  • LeForm

    • 使用follow配置的,无法更新label 和 通过 when 控制(级别:低)
    • 支持配置url、params、submitAfter、submitBeofre等(二期)
  • LePagination优化

    • 增加 showSizeChanger、total显示 配置(级别:低)
  • LeList

    • 勾选表格选择框,会触发 LeForm 表单中的数据更新(级别:高)