├── CHANGELOG.md ├── version.json ├── docs ├── index.css ├── demo │ ├── index.md │ ├── Demo.jsx │ └── Demo2.jsx ├── config │ └── index.md ├── index.md └── Playground.jsx ├── src ├── FR │ ├── Wrapper.css │ ├── RenderChildren.js │ ├── FrameBindingContext.js │ ├── index.js │ ├── RenderField.js │ └── Wrapper.js ├── widgets │ ├── pc │ │ ├── map.js │ │ ├── Switch.js │ │ ├── listEditor.js │ │ ├── Input.js │ │ ├── TextArea.js │ │ ├── Number.js │ │ ├── TimePicker.js │ │ ├── Radio.js │ │ ├── Checkbox.js │ │ ├── DatePicker.js │ │ ├── index.js │ │ ├── Slider.js │ │ ├── MultiSelect.js │ │ ├── Select.js │ │ ├── RangePicker.js │ │ ├── upload.js │ │ └── list.js │ ├── mobile │ │ ├── index.js │ │ ├── checkbox.js │ │ └── Input.js │ ├── settings │ │ ├── index.js │ │ ├── idInput.js │ │ └── EnumList.js │ └── index.js ├── context.js ├── components │ ├── IconFont.js │ ├── foldIcon.js │ └── descList.js ├── Right │ ├── index.css │ ├── GlobalSettings.js │ ├── GlobalSettingSchema.json │ ├── index.js │ └── ItemSettings.js ├── utils │ ├── iframe.js │ ├── common.js │ └── schema.js ├── index.js ├── Main.css ├── Left │ ├── index.css │ ├── Element.js │ ├── index.js │ └── elementList.js ├── test.json ├── mapping.js ├── FRWrapper.css ├── Main.js ├── hooks.js ├── FRWrapper.js └── index.css ├── .prettierignore ├── docs-dist ├── static │ ├── KaTeX_Main-Bold.07e762d0.ttf │ ├── KaTeX_Main-Bold.a9cdbc85.woff │ ├── KaTeX_AMS-Regular.b1489df1.woff │ ├── KaTeX_AMS-Regular.f80d9eaf.ttf │ ├── KaTeX_Fraktur-Bold.069514d4.ttf │ ├── KaTeX_Main-Bold.20b90c20.woff2 │ ├── KaTeX_Main-Italic.44a32ae6.ttf │ ├── KaTeX_Main-Italic.e3954fe9.woff │ ├── KaTeX_Main-Regular.af7fc7b3.ttf │ ├── KaTeX_Math-Italic.11278d36.woff │ ├── KaTeX_Math-Italic.cae7ea26.ttf │ ├── KaTeX_AMS-Regular.d4531cf7.woff2 │ ├── KaTeX_Fraktur-Bold.2ea3916b.woff │ ├── KaTeX_Fraktur-Bold.5b8749ee.woff2 │ ├── KaTeX_Fraktur-Regular.96556db6.ttf │ ├── KaTeX_Main-BoldItalic.bc8d96e9.ttf │ ├── KaTeX_Main-Italic.ab751a9e.woff2 │ ├── KaTeX_Main-Regular.13b3f852.woff2 │ ├── KaTeX_Main-Regular.9e75cd60.woff │ ├── KaTeX_Math-BoldItalic.4d6241be.ttf │ ├── KaTeX_Math-Italic.ffda8803.woff2 │ ├── KaTeX_SansSerif-Bold.2946bdb5.woff │ ├── KaTeX_SansSerif-Bold.f0ad0abc.ttf │ ├── KaTeX_Script-Regular.cd3b0634.woff │ ├── KaTeX_Script-Regular.dd0db7ae.ttf │ ├── KaTeX_Size1-Regular.1876361f.woff2 │ ├── KaTeX_Size1-Regular.bbd9552c.ttf │ ├── KaTeX_Size1-Regular.c4ae0d25.woff │ ├── KaTeX_Size2-Regular.635e9324.woff │ ├── KaTeX_Size2-Regular.d1e8ff17.ttf │ ├── KaTeX_Size2-Regular.f516b73c.woff2 │ ├── KaTeX_Size3-Regular.1ef7adae.woff2 │ ├── KaTeX_Size3-Regular.5d632274.ttf │ ├── KaTeX_Size3-Regular.f32a9fde.woff │ ├── KaTeX_Size4-Regular.1d132596.ttf │ ├── KaTeX_Size4-Regular.4f012d6a.woff2 │ ├── KaTeX_Size4-Regular.f668d566.woff │ ├── KaTeX_Caligraphic-Bold.0c96bc8f.ttf │ ├── KaTeX_Caligraphic-Bold.7ce7636b.woff │ ├── KaTeX_Fraktur-Regular.0d90113d.woff │ ├── KaTeX_Fraktur-Regular.2c629b06.woff2 │ ├── KaTeX_Main-BoldItalic.7649d52f.woff │ ├── KaTeX_Main-BoldItalic.b345de5b.woff2 │ ├── KaTeX_Math-BoldItalic.94810ff6.woff │ ├── KaTeX_Math-BoldItalic.d5d35e84.woff2 │ ├── KaTeX_SansSerif-Bold.5a20a475.woff2 │ ├── KaTeX_SansSerif-Italic.c7feacd5.ttf │ ├── KaTeX_SansSerif-Italic.c834ba6d.woff │ ├── KaTeX_SansSerif-Regular.5af9e1cf.ttf │ ├── KaTeX_Script-Regular.a1c15978.woff2 │ ├── KaTeX_Caligraphic-Bold.f046a374.woff2 │ ├── KaTeX_Caligraphic-Regular.35f3c951.ttf │ ├── KaTeX_Caligraphic-Regular.4a559f36.woff │ ├── KaTeX_SansSerif-Italic.e5fc2aef.woff2 │ ├── KaTeX_SansSerif-Regular.5bf28900.woff2 │ ├── KaTeX_SansSerif-Regular.a4fd0563.woff │ ├── KaTeX_Typewriter-Regular.4f31d033.woff2 │ ├── KaTeX_Typewriter-Regular.b1d1af1a.ttf │ ├── KaTeX_Typewriter-Regular.d3c8e68f.woff │ └── KaTeX_Caligraphic-Regular.4519ba4c.woff2 ├── index.html ├── config │ └── index.html ├── demo │ └── index.html └── _demos │ ├── demo │ └── index.html │ ├── demo2 │ └── index.html │ └── playground │ └── index.html ├── .prettierrc ├── .fatherrc.js ├── .editorconfig ├── .gitignore ├── .umirc.js ├── package.json └── README.md /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | -------------------------------------------------------------------------------- /version.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "component" 3 | } 4 | -------------------------------------------------------------------------------- /docs/index.css: -------------------------------------------------------------------------------- 1 | .hide-demo { 2 | display: none; 3 | } 4 | -------------------------------------------------------------------------------- /src/FR/Wrapper.css: -------------------------------------------------------------------------------- 1 | .field-wrapper { 2 | padding: 20px 8px 0 8px; 3 | margin: 0 0 8px 0; 4 | } 5 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | **/*.svg 2 | **/*.ejs 3 | **/*.html 4 | package.json 5 | .umi 6 | .umi-production 7 | .umi-test 8 | -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Main-Bold.07e762d0.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Main-Bold.07e762d0.ttf -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Main-Bold.a9cdbc85.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Main-Bold.a9cdbc85.woff -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_AMS-Regular.b1489df1.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_AMS-Regular.b1489df1.woff -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_AMS-Regular.f80d9eaf.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_AMS-Regular.f80d9eaf.ttf -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Fraktur-Bold.069514d4.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Fraktur-Bold.069514d4.ttf -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Main-Bold.20b90c20.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Main-Bold.20b90c20.woff2 -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Main-Italic.44a32ae6.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Main-Italic.44a32ae6.ttf -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Main-Italic.e3954fe9.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Main-Italic.e3954fe9.woff -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Main-Regular.af7fc7b3.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Main-Regular.af7fc7b3.ttf -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Math-Italic.11278d36.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Math-Italic.11278d36.woff -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Math-Italic.cae7ea26.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Math-Italic.cae7ea26.ttf -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_AMS-Regular.d4531cf7.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_AMS-Regular.d4531cf7.woff2 -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Fraktur-Bold.2ea3916b.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Fraktur-Bold.2ea3916b.woff -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Fraktur-Bold.5b8749ee.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Fraktur-Bold.5b8749ee.woff2 -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Fraktur-Regular.96556db6.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Fraktur-Regular.96556db6.ttf -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Main-BoldItalic.bc8d96e9.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Main-BoldItalic.bc8d96e9.ttf -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Main-Italic.ab751a9e.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Main-Italic.ab751a9e.woff2 -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Main-Regular.13b3f852.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Main-Regular.13b3f852.woff2 -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Main-Regular.9e75cd60.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Main-Regular.9e75cd60.woff -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Math-BoldItalic.4d6241be.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Math-BoldItalic.4d6241be.ttf -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Math-Italic.ffda8803.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Math-Italic.ffda8803.woff2 -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_SansSerif-Bold.2946bdb5.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_SansSerif-Bold.2946bdb5.woff -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_SansSerif-Bold.f0ad0abc.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_SansSerif-Bold.f0ad0abc.ttf -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Script-Regular.cd3b0634.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Script-Regular.cd3b0634.woff -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Script-Regular.dd0db7ae.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Script-Regular.dd0db7ae.ttf -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Size1-Regular.1876361f.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Size1-Regular.1876361f.woff2 -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Size1-Regular.bbd9552c.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Size1-Regular.bbd9552c.ttf -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Size1-Regular.c4ae0d25.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Size1-Regular.c4ae0d25.woff -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Size2-Regular.635e9324.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Size2-Regular.635e9324.woff -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Size2-Regular.d1e8ff17.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Size2-Regular.d1e8ff17.ttf -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Size2-Regular.f516b73c.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Size2-Regular.f516b73c.woff2 -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Size3-Regular.1ef7adae.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Size3-Regular.1ef7adae.woff2 -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Size3-Regular.5d632274.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Size3-Regular.5d632274.ttf -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Size3-Regular.f32a9fde.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Size3-Regular.f32a9fde.woff -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Size4-Regular.1d132596.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Size4-Regular.1d132596.ttf -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Size4-Regular.4f012d6a.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Size4-Regular.4f012d6a.woff2 -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Size4-Regular.f668d566.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Size4-Regular.f668d566.woff -------------------------------------------------------------------------------- /src/widgets/pc/map.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | export default function map({ children }) { 4 | return
{children}
; 5 | } 6 | -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Caligraphic-Bold.0c96bc8f.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Caligraphic-Bold.0c96bc8f.ttf -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Caligraphic-Bold.7ce7636b.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Caligraphic-Bold.7ce7636b.woff -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Fraktur-Regular.0d90113d.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Fraktur-Regular.0d90113d.woff -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Fraktur-Regular.2c629b06.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Fraktur-Regular.2c629b06.woff2 -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Main-BoldItalic.7649d52f.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Main-BoldItalic.7649d52f.woff -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Main-BoldItalic.b345de5b.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Main-BoldItalic.b345de5b.woff2 -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Math-BoldItalic.94810ff6.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Math-BoldItalic.94810ff6.woff -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Math-BoldItalic.d5d35e84.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Math-BoldItalic.d5d35e84.woff2 -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_SansSerif-Bold.5a20a475.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_SansSerif-Bold.5a20a475.woff2 -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_SansSerif-Italic.c7feacd5.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_SansSerif-Italic.c7feacd5.ttf -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_SansSerif-Italic.c834ba6d.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_SansSerif-Italic.c834ba6d.woff -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_SansSerif-Regular.5af9e1cf.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_SansSerif-Regular.5af9e1cf.ttf -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Script-Regular.a1c15978.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Script-Regular.a1c15978.woff2 -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Caligraphic-Bold.f046a374.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Caligraphic-Bold.f046a374.woff2 -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Caligraphic-Regular.35f3c951.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Caligraphic-Regular.35f3c951.ttf -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Caligraphic-Regular.4a559f36.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Caligraphic-Regular.4a559f36.woff -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_SansSerif-Italic.e5fc2aef.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_SansSerif-Italic.e5fc2aef.woff2 -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_SansSerif-Regular.5bf28900.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_SansSerif-Regular.5bf28900.woff2 -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_SansSerif-Regular.a4fd0563.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_SansSerif-Regular.a4fd0563.woff -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Typewriter-Regular.4f31d033.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Typewriter-Regular.4f31d033.woff2 -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Typewriter-Regular.b1d1af1a.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Typewriter-Regular.b1d1af1a.ttf -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Typewriter-Regular.d3c8e68f.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Typewriter-Regular.d3c8e68f.woff -------------------------------------------------------------------------------- /docs-dist/static/KaTeX_Caligraphic-Regular.4519ba4c.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/schema-generator/master/docs-dist/static/KaTeX_Caligraphic-Regular.4519ba4c.woff2 -------------------------------------------------------------------------------- /src/context.js: -------------------------------------------------------------------------------- 1 | import { createContext } from 'react'; 2 | 3 | export const Ctx = createContext(() => {}); 4 | export const PropsCtx = createContext({}); 5 | export const InnerCtx = createContext({}); 6 | -------------------------------------------------------------------------------- /src/widgets/mobile/index.js: -------------------------------------------------------------------------------- 1 | import checkbox from './checkbox'; 2 | import Input from './Input'; 3 | 4 | const widgets = { 5 | checkbox, 6 | Input 7 | }; 8 | 9 | export default widgets; 10 | -------------------------------------------------------------------------------- /src/widgets/settings/index.js: -------------------------------------------------------------------------------- 1 | import EnumList from './EnumList'; 2 | import IdInput from './IdInput'; 3 | 4 | const widgets = { 5 | EnumList, 6 | IdInput 7 | }; 8 | 9 | export default widgets; 10 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true, 3 | "trailingComma": "all", 4 | "printWidth": 80, 5 | "overrides": [ 6 | { 7 | "files": ".prettierrc", 8 | "options": { "parser": "json" } 9 | } 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /docs/demo/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 接入案例 3 | nav: 4 | order: 1 5 | title: 基础样例 6 | toc: menu 7 | --- 8 | 9 | ## 基本接入 demo 10 | 11 | 12 | 13 | ## 默认支持 formily 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/components/IconFont.js: -------------------------------------------------------------------------------- 1 | import { createFromIconfontCN } from '@ant-design/icons'; 2 | 3 | const IconFont = createFromIconfontCN({ 4 | scriptUrl: 'https://at.alicdn.com/t/font_1998966_gqfw0nnpta.js', 5 | }); 6 | 7 | export default IconFont; 8 | -------------------------------------------------------------------------------- /.fatherrc.js: -------------------------------------------------------------------------------- 1 | import commonjs from 'rollup-plugin-commonjs'; 2 | 3 | export default { 4 | esm: 'rollup', 5 | cjs: 'rollup', 6 | extraRollupPlugins: [ 7 | commonjs({ 8 | include: 'node_modules/**', 9 | }), 10 | ], 11 | }; 12 | -------------------------------------------------------------------------------- /src/Right/index.css: -------------------------------------------------------------------------------- 1 | .right-layout { 2 | flex-shrink: 0; 3 | width: 270px; 4 | padding-top: 24px; 5 | display: flex; 6 | flex-direction: column; 7 | height: 100%; 8 | } 9 | 10 | @media screen and (min-width: 60em) { 11 | .right-layout { 12 | width: 350px; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | insert_final_newline = true 11 | 12 | [*.md] 13 | trim_trailing_whitespace = false 14 | 15 | [Makefile] 16 | indent_style = tab 17 | -------------------------------------------------------------------------------- /src/widgets/index.js: -------------------------------------------------------------------------------- 1 | import pcWidgets from './pc'; 2 | import mobileWidgets from './mobile'; 3 | import settingWidgets from './settings'; 4 | 5 | export const widgets = { 6 | pc: { 7 | ...pcWidgets, 8 | ...settingWidgets 9 | }, 10 | mobile: { 11 | ...mobileWidgets, 12 | ...settingWidgets 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/widgets/pc/Switch.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Switch } from 'antd'; 3 | 4 | export default function SGSwitch(p) { 5 | return ( 6 | p.onChange(checked)} 11 | checked={p.value} 12 | /> 13 | ); 14 | } 15 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /npm-debug.log* 6 | /yarn-error.log 7 | /yarn.lock 8 | /package-lock.json 9 | 10 | # production 11 | /dist 12 | 13 | # misc 14 | .DS_Store 15 | .idea 16 | 17 | # umi 18 | .umi 19 | .umi-production 20 | .umi-test 21 | .env.local 22 | -------------------------------------------------------------------------------- /src/utils/iframe.js: -------------------------------------------------------------------------------- 1 | 2 | export const iframeSrcDoc = ` 3 | 4 | 5 | 6 |
7 | 8 | 9 | `; 10 | 11 | export const getIframe = () => { 12 | return document.getElementById('dnd-iframe'); 13 | }; 14 | 15 | -------------------------------------------------------------------------------- /src/widgets/pc/listEditor.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Button } from 'antd'; 3 | import { PlusCircleOutlined, DeleteOutlined } from '@ant-design/icons'; 4 | 5 | export default function listEditor(props) { 6 | return ( 7 |
8 |
9 | {props.children} 10 |
11 |
12 | ); 13 | } 14 | -------------------------------------------------------------------------------- /src/FR/RenderChildren.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import FR from './index'; 3 | 4 | const RenderChildren = ({ children = [], preview }) => { 5 | return ( 6 | <> 7 | {children.map((child, i) => { 8 | const FRProps = { 9 | id: child, 10 | preview, 11 | }; 12 | return ; 13 | })} 14 | 15 | ); 16 | }; 17 | 18 | export default RenderChildren; 19 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React, { forwardRef } from 'react'; 2 | import { DndProvider } from 'react-dnd'; 3 | import { HTML5Backend } from 'react-dnd-html5-backend'; 4 | import Main from './Main'; 5 | import './index.css'; 6 | 7 | const Root = (props, ref) => { 8 | return ( 9 | 10 |
11 | 12 | ); 13 | }; 14 | 15 | export default forwardRef(Root); 16 | -------------------------------------------------------------------------------- /src/Main.css: -------------------------------------------------------------------------------- 1 | .mid-layout { 2 | display: flex; 3 | flex-direction: column; 4 | flex-grow: 1; 5 | flex-shrink: 1; 6 | /* height: 100%; */ 7 | overflow: hidden; 8 | border-left: 1px solid #e0e0e0; 9 | border-right: 1px solid #e0e0e0; 10 | background-color: #F2F2F7; 11 | } 12 | 13 | .mid-layout.preview { 14 | position: fixed; 15 | width: 100%; 16 | z-index: 1; 17 | height: calc(100% - 3rem); 18 | } 19 | 20 | .flex-center { 21 | display: flex; 22 | justify-content: center; 23 | align-items: center; 24 | } 25 | -------------------------------------------------------------------------------- /.umirc.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'dumi'; 2 | 3 | export default defineConfig({ 4 | title: 'schema生成器', 5 | favicon: 6 | 'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png', 7 | logo: 8 | 'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png', 9 | outputPath: 'docs-dist', 10 | mode: 'site', 11 | base: '/schema-generator/', 12 | publicPath: '/schema-generator/', 13 | exportStatic: {}, 14 | // more config: https://d.umijs.org/config 15 | }); 16 | -------------------------------------------------------------------------------- /src/FR/FrameBindingContext.js: -------------------------------------------------------------------------------- 1 | import React, { 2 | useEffect, 3 | useContext, 4 | } from 'react'; 5 | import { DndContext } from 'react-dnd'; 6 | import { FrameContext } from 'react-frame-component' 7 | 8 | // 绑定事件组件,更换iframe的DndContext 9 | const FrameBindingContext = ({ children }) => { 10 | const { dragDropManager } = useContext(DndContext); 11 | const { window } = useContext(FrameContext); 12 | 13 | useEffect(() => { 14 | dragDropManager.getBackend().addEventListeners(window); 15 | }, []); 16 | 17 | return children; 18 | }; 19 | 20 | export default FrameBindingContext; 21 | -------------------------------------------------------------------------------- /src/widgets/pc/Input.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Input } from 'antd'; 3 | 4 | export default function SGInput(p) { 5 | const { options = {}, invalid } = p; 6 | const style = invalid ? { borderColor: '#f5222d' } : {}; 7 | const { format = 'text' } = p.schema; 8 | const handleChange = (e) => p.onChange(e.target.value); 9 | 10 | return ( 11 | 20 | ); 21 | } 22 | -------------------------------------------------------------------------------- /src/widgets/pc/TextArea.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Input } from 'antd'; 3 | 4 | const { TextArea } = Input; 5 | 6 | export default function ta(p) { 7 | const { options, invalid } = p; 8 | const style = invalid ? { borderColor: '#f5222d' } : {}; 9 | const defaultUi = { rows: 3 }; 10 | const ui = { ...defaultUi, ...options }; 11 | const onChange = (e) => p.onChange(e.target.value); 12 | return ( 13 |