amis-playground
Version:
amis-playground 是一个amis在线代码编辑器可实时预览运行效果
2 lines (1 loc) • 747 B
JavaScript
import{a as y,d as _,n as i,R as d,a_ as m,e as f,W as v,f as o,p as g,q as t,h as k}from"./index-7c288cb3.js";var R=function(s){y(a,s);function a(){return s!==null&&s.apply(this,arguments)||this}return a.prototype.handleClick=function(){this.props.dispatchEvent("click",this.props.data)},a.prototype.render=function(){var e=this.props,l=e.className,r=e.radius,n=e.shapeType,p=e.data,c=_(e,["className","radius","shapeType","data"]),h=i(n,p)||n,u=+i(r,p)||r;return d.createElement(m,f({},c,{className:v(l),shapeType:h,radius:u,onClick:this.handleClick}))},o([g,t("design:type",Function),t("design:paramtypes",[]),t("design:returntype",void 0)],a.prototype,"handleClick",null),a=o([k({type:"shape"})],a),a}(d.Component);export{R as ShapeRenderer};