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

@pangtou/material-element-plus

v1.1.2

Published

`pt-render` 的 Element Plus 物料层。

Downloads

4,068

Readme

@pangtou/material-element-plus

pt-render 的 Element Plus 物料层。

当前内容:

  • Element Plus 组件注册表
  • runtime props / children 映射
  • response / attachment / rich_text 等物料实现
  • @pangtou/vue-render 的 material adapter
  • resource / rich_text 已作为当前公开物料包的一部分对外提供,业务侧不需要再单独安装内部包

当前公开入口

当前建议直接使用这些入口:

  • createPangtouElementPlusPlugin
  • pangtouElementPlusPlugin
  • elementPlusVueMaterialAdapter
  • elementPlusMaterialRegistry
  • createElementPlusMaterialRegistry
  • ELEMENT_PLUS_MATERIALS
  • resolveElementPlusControlMaterialProps

当前已经比较稳定、适合直接联调的节点主要包括:

  • text / password / textarea / number / select / radio / checkbox / cascader / select-tree
  • help / button / toolbar / pagination
  • dialog / drawer / row / col / card / divider / rich_text / resource

当前仍是显式未完成占位的节点:

  • 暂无新增显式 warning 占位节点
  • rich_text / resource 当前仍属于第一版接线,建议优先做基础联调,不要直接当完全成熟控件

当前 rich_text / select-tree / resource 都已经接到真实物料实现。 filter / table-title 不在正式 material registry 中。 button / column / filter 这类历史深层路径也已从仓库实现与包根公开面中移除。

如果你要实际试这三类节点,建议直接跑:

pnpm --filter @pangtou/examples dev:aggregate
pnpm --filter @pangtou/examples dev:composed

然后在 demo 页面里直接验证:

  • select-tree 的树形 options 展示与选中
  • rich_text 的 markdown 编辑与回填
  • resource 的上传按钮与资源选择入口是否正常出现

最小示例

import { createApp } from 'vue'
import {
    createPangtouElementPlusPlugin,
    elementPlusVueMaterialAdapter,
    elementPlusMaterialRegistry,
    resolveElementPlusControlMaterialProps,
} from '@pangtou/material-element-plus'

const app = createApp(App)
app.use(createPangtouElementPlusPlugin(), {
    base_url: '/api',
})

const textMeta = elementPlusMaterialRegistry.getComponent('text')

const controlProps = resolveElementPlusControlMaterialProps({
    node: {
        schema: {
            control: {
                extensions: {
                    material: {
                        clearable: true,
                    },
                },
            },
        },
    },
} as any)

console.log(elementPlusVueMaterialAdapter.id, textMeta, controlProps)

如果你只想测试当前物料层,而不想先挂完整页面,这就是最短入口。