Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

amao-schema-editor

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amao-schema-editor

使用 [demo](http://site.alipay.net/fengdie/schema-editor/demo/index.html)

  • 1.0.1
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

schema-editor

使用 demo

const schemaUtil = require('schema-util');
const React = require('react');
const ReactDOM = require('react-dom');
const Editor = require('@alipay/schema-editor');

class Demo extends React.Component {

  onChange(data, fields) {
    console.log(data, fields);
  }

  render() {
    const schema = schemaUtil.schema(`
      Object(大牌劲爆商品) {
        title(标题),
        list(商品列表): Array {
          href(宝贝链接),
          title(标题),
          img(图片地址[272x272]): Image,
          price(花呗价格),
          origin(原价),
          count(折扣)
        }
      }
    `);
    const data = schemaUtil.mock(schema);

    return <Editor data={JSON.parse(data)} schema={schema} onChange={this.onChange} />;
  }
}

ReactDOM.render(<Demo />, document.querySelector('.view-box'));

TODO

  • 上传图片接口配置
  • excel 导入导出功能配置
  • 校验逻辑
  • 自定义 field

FAQs

Package last updated on 15 Sep 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc