Socket
Book a DemoInstallSign in
Socket

yy-wow-tiny-schema-renderer

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yy-wow-tiny-schema-renderer

基于 json-schema 的表单渲染器

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
0
Created
Source

@opentiny/tiny-schema-renderer

基于 json-schema 的表单渲染器

安装

npm install @opentiny/tiny-schema-renderer --save

使用

import SchemaRenderer from "@opentiny/tiny-schema-renderer";

const schema = {
  state: {},
  methods: {},
  componentName: "Page",
  css: "body {\r\n  background-color:#eef0f5 ;\r\n  margin-bottom: 80px;\r\n}",
  props: {},
  children: [
    {
      componentName: "Text",
      props: {
        text: "运行时渲染器",
      },
    },
  ],
  fileName: "TinySchemaRenderer",
};

export default {
  components: {
    SchemaRenderer,
  },
  render() {
    return h(SchemaRenderer, {
      schema,
    });
  },
};

FAQs

Package last updated on 06 Mar 2025

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