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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@cniot/mdd-editor

v0.1.46

Published

模型驱动编辑器

Downloads

69

Readme

0.1.46

  • 全编辑增加地址选择组件配置

0.1.45

  • 增加首次渲染不联动配置

0.1.44

  • 所有字段支持国际化key配置

0.1.43

  • 编辑器脚本 右上角支持自定义动作按钮,scriptTopButtons: [buttonProps,buttonProps]

0.1.41

  • 增加数值区间组件

0.1.40

  • swagger获取支持接口返回json字符串格式

0.1.39

  • 全编辑批量添加支持l4页面选择

0.1.38

  • 导入轮训模块配置

0.1.37

  • fix表单初始化报错问题

0.1.36

  • simpleFTP模板 露出顶部操作区配置。 主要针对博西华和沪上的动态报表

0.1.35

  • 解析swagger 递归层级优化

0.1.33

  • fix formily多层级联动bug

0.1.32

  • 支持数据源配置为 flow

0.1.31

  • fix 表单自定义模块不能选择 L4 模块的问题

0.1.30

  • fix

0.1.29

  • debug 模式下,开启 schema 编辑功能

0.1.28

  • bugfix

0.1.27

  • bugfix
  • cnNumber 小数点调整

0.1.26

  • 地址加上搜索功能

0.1.25

  • 编辑器兼容在线 L3 页面创建

0.1.24

  • 详情卡片支持 item 渲染到标题

0.1.23

  • action 动作增加快捷操作按钮,可以外部传入 moduleMap

0.1.22

  • 升级脚本模板

0.1.21

  • 操作 schema 默认值优化

0.1.20

  • fix

0.1.19

  • 返回字段是 date-time 类型需要格式化为时间

0.1.18

  • swagger 处理函数 export 优化
  • 操作咧动作默认开启刷新父级

0.1.14

  • 默认 id 字段禁用状态

0.1.13

  • 列操作动作加上默认参数&错误日志输出

0.1.12

  • 支持注册 全局模块下拉数据源

0.1.11

  • L4 格式兼容处理

0.1.10

  • fix ftp 编辑器样式问题

0.1.9

  • fix 脚本编辑器 bug

0.1.8

  • 所有模板支持 swagger 字段选择

0.1.5

  • 脚本&样式编辑器 逻辑优化

0.1.4

  • 上传组件去除图片 类型
  • 增加 脚本和样式编辑器, 通过事件接受 change script:update, style:update

0.1.3

  • 增加预览功能

模型驱动编辑器引擎

在线文档参考: https://yuque.antfin.com/docs/share/65a39ca0-f5a2-49aa-8c0f-3f3287597a67?# 《模型驱动引擎页面如何使用》

直接使用

  • pc
import { MddFtpEditor, MddFormEditor, MddDetailEditor, MddEditTableEditor } from '@cniot/mdd-editor'

const pageId = new URLSearchParams(location.search).get('pageId')

// render
return <MddFtpEditor pageId={pageId}/>  // 页面编辑

return <MddFtpEditor/> // 页面新增
  • 组件属性
props: {
  pageId: string | number, // 页面ID,页面唯一值
  url: string, // 前后端固定好基本不用变,除非是路径namespace有变动,需要额外设置
}

注意

  • externals
  external: [
    'react',
    'react-dom',
    'axios',
    'EventEmitter',
    '@cainiaofe/cn-ui',
    'ahooks',
    'classnames',
    'cn-address-select-pro',
    'lodash',
  ]