amis-rpc-design/dist/4910.18cf61f7.bundle.js
2023-10-07 19:42:30 +08:00

1 line
771 B
JavaScript

"use strict";(self.webpackChunkamis_rpc_design=self.webpackChunkamis_rpc_design||[]).push([[4910],{94910:(t,e,r)=>{r.r(e),r.d(e,{BarCode:()=>u,default:()=>d});var n=r(14320),o=r(90375),i=r(44495),s=r(88788),p=r.n(s),u=function(t){function e(e){var r=t.call(this,e)||this;return r.dom=o.Z.createRef(),r}return(0,n.ZT)(e,t),e.prototype.componentDidUpdate=function(t){this.props.value===t.value&&JSON.stringify(this.props.options)===JSON.stringify(t.options)||this.renderBarCode()},e.prototype.renderBarCode=function(){this.dom.current&&p()(this.dom.current,this.props.value,this.props.options)},e.prototype.componentDidMount=function(){this.renderBarCode()},e.prototype.render=function(){return o.Z.createElement("img",{ref:this.dom})},e}(o.Z.Component),d=(0,i.YYN)(u)}}]);