amis-playground
Version:
amis-playground 是一个amis在线代码编辑器可实时预览运行效果
2 lines (1 loc) • 689 B
JavaScript
import{a as s,cZ as y,r as f,R as p,e as m,f as c,h as b}from"./index-7c288cb3.js";var h=function(t){s(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.renderBody=function(){var n=this.props,r=n.body,a=n.render;return r?a("body",r):null},e.prototype.render=function(){var n=this.props,r=n.tag,a=n.props,d=n.data,i=n.style,l=y(a,function(o){return typeof o=="string"&&f(o,d,"| raw")||o}),u=r||"div";return p.createElement(u,m({},l,{style:i}),this.renderBody())},e}(p.Component),g=function(t){s(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e=c([b({type:"web-component"})],e),e}(h);export{g as WebComponentRenderer,h as default};