forked from p96170835/amis
更新 gh-pages
This commit is contained in:
parent
86d56a091c
commit
635b434a68
|
@ -24,7 +24,7 @@
|
|||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="/amis/pkg/npm_f077be0.js"></script>
|
||||
<script type="text/javascript" src="/amis/pkg/examples/index.html_map_1b343d3.js"></script>
|
||||
<script type="text/javascript" src="/amis/pkg/app_03a27fb.js"></script>
|
||||
<script type="text/javascript" src="/amis/pkg/app_578ed0f.js"></script>
|
||||
<script type="text/javascript" src="/amis/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="/amis/pkg/rest_cf0b3d4.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
|
|
@ -328,7 +328,7 @@ define("6149e0d",function(e,n){"use strict";Object.defineProperty(n,"__esModule"
|
|||
;/*!src/index.tsx*/
|
||||
define("d019970",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r=e("0f9ebdf");a.render=r.render,a.Renderer=r.Renderer,a.getRendererByName=r.getRendererByName,a.resolveRenderer=r.resolveRenderer,a.filterSchema=r.filterSchema;var d=e("1caead1");a.wrapFetcher=d.wrapFetcher,a.buildApi=d.buildApi;var t=e("6a2dbb7");a.filter=t.filter,a.reigsterTplEnginer=t.reigsterTplEnginer,e("f2e345e"),e("1267928");var o=e("9a80175");a.utils=o;var c=e("67d35e6");a.resizeSensor=c.resizeSensor;var f=e("3bc41ff");a.setIconVendor=f.setIconVendor;var n=e("1953fc1");a.NotFound=n.NotFound,a.AlertComponent=n.AlertComponent,a.alert=n.alert,a.confirm=n.confirm,a.AsideNav=n.AsideNav,a.Button=n.Button,a.Checkbox=n.Checkbox,a.Checkboxes=n.Checkboxes,a.Collapse=n.Collapse,a.ColorPicker=n.ColorPicker,a.DatePicker=n.DatePicker,a.DateRangePicker=n.DateRangePicker,a.Drawer=n.Drawer,a.DropdownButton=n.DropdownButton,a.Icons=n.Icons,a.Html=n.Html,a.Layout=n.Layout,a.LazyComponent=n.LazyComponent,a.Modal=n.Modal,a.Overlay=n.Overlay,a.PopOver=n.PopOver,a.Radios=n.Radios,a.Range=n.Range,a.Rating=n.Rating,a.Select=n.Select,a.Spinner=n.Spinner,a.Switch=n.Switch,a.Textarea=n.Textarea,a.TitleBar=n.TitleBar,a.ToastComponent=n.ToastComponent,a.toast=n.toast,a.Tooltip=n.Tooltip,a.TooltipWrapper=n.TooltipWrapper,a.Tree=n.Tree,e("7648928"),e("30de479"),e("4b7dfbe"),e("d539455"),e("10294a9"),e("bb5331d"),e("d221521"),e("e5683c7"),e("4fd96cf"),e("0afb30b"),e("8ee3b98"),e("29e1f6a"),e("e299c64"),e("5cdd617"),e("6c4a05a"),e("635e59b"),e("610fd77"),e("dd5dcd2"),e("a1e61d2"),e("e1b1eb7"),e("85dae7e"),e("eff65fe"),e("2b693f3"),e("5ade3b1"),e("055a9f9"),e("0f75897"),e("c6f2783"),e("aa22e57"),e("d7f3dfa"),e("2dfb851"),e("64723a8"),e("86ddd97"),e("d09e479"),e("b0a035c"),e("48cac0f"),e("d7f8ee3"),e("ee37b69"),e("90765dc"),e("cf6ad73"),e("162bd80"),e("690a2f4"),e("db77605"),e("9b389bb"),e("3919ee5"),e("647fc2f"),e("8a88f1c"),e("a57a440"),e("27eb5b8"),e("138c832"),e("d5c9577"),e("4be33a0"),e("2406202"),e("5271012"),e("d2efb65"),e("9d9f047"),e("58ea2d5"),e("40fc403"),e("f6d94c0"),e("06cfa10"),e("3ced9f1"),e("33d5c8a"),e("760e4be"),e("3abf50d"),e("7f271f4"),e("fe6117b"),e("5e68c3c"),e("aab7b91"),e("ae1a7f3"),e("fcb3580"),e("20f7ce6"),e("0341968"),e("100b8cb"),e("244f74d"),e("9708de1"),e("66c3054"),e("f6086a9"),e("605b41a"),e("66d455f"),e("c2029c1"),e("f52f675"),e("da6cdad"),e("386af39"),e("8f3f322"),e("94e9d59"),e("29937cf"),e("3cbc777"),e("2390f9f"),e("3a449e1"),e("4de0bd7"),e("211dcc3"),e("e6d92e6"),e("59d3d63"),e("a1b9b52"),e("6a16931"),e("f277389"),e("06e3087"),e("b81abcd"),e("f39bdac");var l=e("919cbd9");a.Scoped=l.default,a.ScopedContext=l.ScopedContext;var i=e("567b83c");a.FormItem=i.FormItem,e("ae4b35c");var b=e("bbacc46");a.classPrefix=b.classPrefix,a.classnames=b.classnames,e("6149e0d");var s=e("f2e345e");a.registerFilter=s.registerFilter,a.filterDate=s.filterDate,a.relativeValueRe=s.relativeValueRe,a.resolveVariable=s.resolveVariable;var p=e("943464a");a.addRule=p.addRule,a.str2rules=p.str2rules;var v=e("d57879c");a.normalizeOptions=v.normalizeOptions;var m=e("b86428a");a.OptionsControl=m.OptionsControl});
|
||||
;/*!examples/components/SchemaRender.jsx*/
|
||||
define("ec59a60",function(e,t){"use strict";function n(){return new Promise(function(t){return e(["997c87d"],function(e){return t(e.default)})})}function o(e){return e.$schema||(e=r.__assign({$schema:"https://houtai.baidu.com/v2/schemas/page.json"},e)),t=function(t){function o(e){var n=t.call(this,e)||this;n.state={open:!1},n.toggleCode=function(){return n.setState({open:!n.state.open})},n.close=function(){return n.setState({open:!1})};var o=e.router,r=function(e){e=e||"";var t=o.getCurrentLocation();e&&"#"===e[0]?e=t.pathname+t.search+e:e&&"?"===e[0]&&(e=t.pathname+e);var n=e.indexOf("?"),r=e.indexOf("#"),a=~n?e.substring(0,n):~r?e.substring(0,r):e,i=~n?e.substring(n,~r?r:void 0):"",s=~r?e.substring(r):"";return a?"/"!=a[0]&&!/^https?:\/\//.test(a):a=t.pathname,a+i+s};return n.env={updateLocation:function(e,t){o[t?"replace":"push"](r(e))},isCurrentUrl:function(e){var t=r(e);return o.isActive(t)},jumpTo:function(e){e=r(e),/^https?:\/\//.test(e)?window.location.replace(e):o.push(e)},fetcher:function(e){var t=e.url,n=e.method,o=e.data,r=e.config;return o&&o instanceof FormData||!o||"string"==typeof o||o instanceof Blob||o instanceof ArrayBuffer||(o=JSON.stringify(o),r=r||{},r.headers=r.headers||{},r.headers["Content-Type"]="application/json"),"post"!==n&&"put"!==n&&"patch"!==n?(o&&("delete"===n?r.data=o:r.params=o),s[n](t,r)):s[n](t,o,r)},notify:function(e,t){return c.toast[e]?c.toast[e](t,"error"===e?"系统错误":"系统消息"):console.warn("[Notify]",e,t)},alert:u.alert,confirm:u.confirm,copy:function(e){return console.log("Copy",e)}},n.handleEditorMount=n.handleEditorMount.bind(n),n}return r.__extends(o,t),o.prototype.handleEditorMount=function(e,t){t.languages.json.jsonDefaults.setDiagnosticsOptions({enableSchemaRequest:!0,validate:!0})},o.prototype.renderCode=function(){return a.createElement(d.default,{getComponent:n,editorDidMount:this.handleEditorMount,language:"json",value:e,placeholder:"加载中,请稍后。。。",disabled:!0})},o.prototype.renderSchema=function(){var t=this.props,n=(t.router,t.location),o=t.theme;return i.render(e,{location:n,theme:o},this.env)},o.prototype.render=function(){var e=this.props.classPrefix;return a.createElement("div",{className:"schema-wrapper"},a.createElement(p.default,{classPrefix:e,size:"lg",onHide:this.close,show:this.state.open,position:"left"},this.state.open?this.renderCode():null),this.renderSchema(),a.createElement(f.Portal,{container:function(){return document.querySelector(".navbar-nav")}},a.createElement(l.default,{classPrefix:e,onClick:this.toggleCode,active:this.state.open,iconOnly:!0,tooltip:"查看源码",level:"link",placement:"bottom",className:"view-code"},a.createElement("i",{className:"fa fa-code"}))))},o}(a.Component),t.displayName="SchemaRenderer",t;var t}Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),a=e("node_modules/react/index"),i=e("d019970"),s=e("node_modules/axios/index"),c=e("6ae88e0"),u=e("bfe4ee0"),l=e("a67acca"),d=e("4783ce8"),p=e("01a937e"),f=e("node_modules/react-overlays/lib/index");t.default=o});
|
||||
define("ec59a60",function(e,t){"use strict";function n(){return new Promise(function(t){return e(["997c87d"],function(e){return t(e.default)})})}function o(e){return e.$schema||(e=r.__assign({$schema:"https://houtai.baidu.com/v2/schemas/page.json"},e)),t=function(t){function o(e){var n=t.call(this,e)||this;n.state={open:!1},n.toggleCode=function(){return n.setState({open:!n.state.open})},n.close=function(){return n.setState({open:!1})};var o=e.router,r=function(e){e=e||"";var t=o.getCurrentLocation();e&&"#"===e[0]?e=t.pathname+t.search+e:e&&"?"===e[0]&&(e=t.pathname+e);var n=e.indexOf("?"),r=e.indexOf("#"),a=~n?e.substring(0,n):~r?e.substring(0,r):e,i=~n?e.substring(n,~r?r:void 0):"",s=~r?e.substring(r):"";return a?"/"!=a[0]&&!/^https?:\/\//.test(a):a=t.pathname,a+i+s};return n.env={updateLocation:function(e,t){o[t?"replace":"push"](r(e))},isCurrentUrl:function(e){var t=r(e);return o.isActive(t)},jumpTo:function(e){e=r(e),/^https?:\/\//.test(e)?window.location.replace(e):o.push(e)},fetcher:function(e){var t=e.url,n=e.method,o=e.data,r=e.config;return o&&o instanceof FormData||!o||"string"==typeof o||o instanceof Blob||o instanceof ArrayBuffer||(o=JSON.stringify(o),r=r||{},r.headers=r.headers||{},r.headers["Content-Type"]="application/json"),"post"!==n&&"put"!==n&&"patch"!==n?(o&&("delete"===n?r.data=o:r.params=o),s[n](t,r)):s[n](t,o,r)},isCancel:function(e){return s.isCancel(e)},notify:function(e,t){return c.toast[e]?c.toast[e](t,"error"===e?"系统错误":"系统消息"):console.warn("[Notify]",e,t)},alert:u.alert,confirm:u.confirm,copy:function(e){return console.log("Copy",e)}},n.handleEditorMount=n.handleEditorMount.bind(n),n}return r.__extends(o,t),o.prototype.handleEditorMount=function(e,t){t.languages.json.jsonDefaults.setDiagnosticsOptions({enableSchemaRequest:!0,validate:!0})},o.prototype.renderCode=function(){return a.createElement(d.default,{getComponent:n,editorDidMount:this.handleEditorMount,language:"json",value:e,placeholder:"加载中,请稍后。。。",disabled:!0})},o.prototype.renderSchema=function(){var t=this.props,n=(t.router,t.location),o=t.theme;return i.render(e,{location:n,theme:o},this.env)},o.prototype.render=function(){var e=this.props.classPrefix;return a.createElement("div",{className:"schema-wrapper"},a.createElement(p.default,{classPrefix:e,size:"lg",onHide:this.close,show:this.state.open,position:"left"},this.state.open?this.renderCode():null),this.renderSchema(),a.createElement(f.Portal,{container:function(){return document.querySelector(".navbar-nav")}},a.createElement(l.default,{classPrefix:e,onClick:this.toggleCode,active:this.state.open,iconOnly:!0,tooltip:"查看源码",level:"link",placement:"bottom",className:"view-code"},a.createElement("i",{className:"fa fa-code"}))))},o}(a.Component),t.displayName="SchemaRenderer",t;var t}Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),a=e("node_modules/react/index"),i=e("d019970"),s=e("node_modules/axios/index"),c=e("6ae88e0"),u=e("bfe4ee0"),l=e("a67acca"),d=e("4783ce8"),p=e("01a937e"),f=e("node_modules/react-overlays/lib/index");t.default=o});
|
||||
;/*!examples/components/Page/Simple.jsx*/
|
||||
define("da274e0",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"标题",remark:"提示 Tip",body:"内容部分. 可以使用 \\${var} 获取变量。如: `\\$date`: ${date}",aside:"边栏部分",toolbar:"工具栏",initApi:"https://houtai.baidu.com/api/mock2/page/initData"}});
|
||||
;/*!examples/components/Page/Error.jsx*/
|
Loading…
Reference in New Issue