yg-my-lib
Version:
这是一个测试的库,未正式使用
32 lines (29 loc) • 21.9 kB
JavaScript
(function(d,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("react"),require("antd")):typeof define=="function"&&define.amd?define(["exports","react","antd"],_):(d=typeof globalThis<"u"?globalThis:d||self,_(d["my-lib"]={},d.React,d.antd))})(this,function(d,_,T){"use strict";var er=document.createElement("style");er.textContent=`.flex{display:flex}.flex-col{flex-direction:column}.flex-full{flex:1 1 100%}.flex-wrap{flex-wrap:wrap}.flex-ac{align-items:center}.flex-cc{align-items:center;justify-content:center}.flex-jc{justify-content:center}.color-primary{color:#1e90ff}.color-secondary{color:tomato}.color-success{color:#32cd32}.color-danger{color:red}.color-warning{color:gold}.color-info{color:#87cefa}.color-light{color:#f8f9fa}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.mt-auto{margin-top:auto}.mb-auto{margin-bottom:auto}.m-0{margin:0}.mt-0{margin-top:0}.mb-0{margin-bottom:0}.ml-0{margin-left:0}.mr-0{margin-right:0}.m-1{margin:1px}.mt-1{margin-top:1px}.mb-1{margin-bottom:1px}.ml-1{margin-left:1px}.mr-1{margin-right:1px}.m-2{margin:2px}.mt-2{margin-top:2px}.mb-2{margin-bottom:2px}.ml-2{margin-left:2px}.mr-2{margin-right:2px}.m-3{margin:3px}.mt-3{margin-top:3px}.mb-3{margin-bottom:3px}.ml-3{margin-left:3px}.mr-3{margin-right:3px}.m-4{margin:4px}.mt-4{margin-top:4px}.mb-4{margin-bottom:4px}.ml-4{margin-left:4px}.mr-4{margin-right:4px}.m-5{margin:5px}.mt-5{margin-top:5px}.mb-5{margin-bottom:5px}.ml-5{margin-left:5px}.mr-5{margin-right:5px}.m-6{margin:6px}.mt-6{margin-top:6px}.mb-6{margin-bottom:6px}.ml-6{margin-left:6px}.mr-6{margin-right:6px}.m-7{margin:7px}.mt-7{margin-top:7px}.mb-7{margin-bottom:7px}.ml-7{margin-left:7px}.mr-7{margin-right:7px}.m-8{margin:8px}.mt-8{margin-top:8px}.mb-8{margin-bottom:8px}.ml-8{margin-left:8px}.mr-8{margin-right:8px}.m-9{margin:9px}.mt-9{margin-top:9px}.mb-9{margin-bottom:9px}.ml-9{margin-left:9px}.mr-9{margin-right:9px}.m-10{margin:10px}.mt-10{margin-top:10px}.mb-10{margin-bottom:10px}.ml-10{margin-left:10px}.mr-10{margin-right:10px}.m-11{margin:11px}.mt-11{margin-top:11px}.mb-11{margin-bottom:11px}.ml-11{margin-left:11px}.mr-11{margin-right:11px}.m-12{margin:12px}.mt-12{margin-top:12px}.mb-12{margin-bottom:12px}.ml-12{margin-left:12px}.mr-12{margin-right:12px}.m-13{margin:13px}.mt-13{margin-top:13px}.mb-13{margin-bottom:13px}.ml-13{margin-left:13px}.mr-13{margin-right:13px}.m-14{margin:14px}.mt-14{margin-top:14px}.mb-14{margin-bottom:14px}.ml-14{margin-left:14px}.mr-14{margin-right:14px}.m-15{margin:15px}.mt-15{margin-top:15px}.mb-15{margin-bottom:15px}.ml-15{margin-left:15px}.mr-15{margin-right:15px}.m-16{margin:16px}.mt-16{margin-top:16px}.mb-16{margin-bottom:16px}.ml-16{margin-left:16px}.mr-16{margin-right:16px}.m-17{margin:17px}.mt-17{margin-top:17px}.mb-17{margin-bottom:17px}.ml-17{margin-left:17px}.mr-17{margin-right:17px}.m-18{margin:18px}.mt-18{margin-top:18px}.mb-18{margin-bottom:18px}.ml-18{margin-left:18px}.mr-18{margin-right:18px}.m-19{margin:19px}.mt-19{margin-top:19px}.mb-19{margin-bottom:19px}.ml-19{margin-left:19px}.mr-19{margin-right:19px}.m-20{margin:20px}.mt-20{margin-top:20px}.mb-20{margin-bottom:20px}.ml-20{margin-left:20px}.mr-20{margin-right:20px}.m-21{margin:21px}.mt-21{margin-top:21px}.mb-21{margin-bottom:21px}.ml-21{margin-left:21px}.mr-21{margin-right:21px}.m-22{margin:22px}.mt-22{margin-top:22px}.mb-22{margin-bottom:22px}.ml-22{margin-left:22px}.mr-22{margin-right:22px}.m-23{margin:23px}.mt-23{margin-top:23px}.mb-23{margin-bottom:23px}.ml-23{margin-left:23px}.mr-23{margin-right:23px}.m-24{margin:24px}.mt-24{margin-top:24px}.mb-24{margin-bottom:24px}.ml-24{margin-left:24px}.mr-24{margin-right:24px}.m-25{margin:25px}.mt-25{margin-top:25px}.mb-25{margin-bottom:25px}.ml-25{margin-left:25px}.mr-25{margin-right:25px}.m-26{margin:26px}.mt-26{margin-top:26px}.mb-26{margin-bottom:26px}.ml-26{margin-left:26px}.mr-26{margin-right:26px}.m-27{margin:27px}.mt-27{margin-top:27px}.mb-27{margin-bottom:27px}.ml-27{margin-left:27px}.mr-27{margin-right:27px}.m-28{margin:28px}.mt-28{margin-top:28px}.mb-28{margin-bottom:28px}.ml-28{margin-left:28px}.mr-28{margin-right:28px}.m-29{margin:29px}.mt-29{margin-top:29px}.mb-29{margin-bottom:29px}.ml-29{margin-left:29px}.mr-29{margin-right:29px}.m-30{margin:30px}.mt-30{margin-top:30px}.mb-30{margin-bottom:30px}.ml-30{margin-left:30px}.mr-30{margin-right:30px}.m-31{margin:31px}.mt-31{margin-top:31px}.mb-31{margin-bottom:31px}.ml-31{margin-left:31px}.mr-31{margin-right:31px}.m-32{margin:32px}.mt-32{margin-top:32px}.mb-32{margin-bottom:32px}.ml-32{margin-left:32px}.mr-32{margin-right:32px}.m-33{margin:33px}.mt-33{margin-top:33px}.mb-33{margin-bottom:33px}.ml-33{margin-left:33px}.mr-33{margin-right:33px}.m-34{margin:34px}.mt-34{margin-top:34px}.mb-34{margin-bottom:34px}.ml-34{margin-left:34px}.mr-34{margin-right:34px}.m-35{margin:35px}.mt-35{margin-top:35px}.mb-35{margin-bottom:35px}.ml-35{margin-left:35px}.mr-35{margin-right:35px}.m-36{margin:36px}.mt-36{margin-top:36px}.mb-36{margin-bottom:36px}.ml-36{margin-left:36px}.mr-36{margin-right:36px}.m-37{margin:37px}.mt-37{margin-top:37px}.mb-37{margin-bottom:37px}.ml-37{margin-left:37px}.mr-37{margin-right:37px}.m-38{margin:38px}.mt-38{margin-top:38px}.mb-38{margin-bottom:38px}.ml-38{margin-left:38px}.mr-38{margin-right:38px}.m-39{margin:39px}.mt-39{margin-top:39px}.mb-39{margin-bottom:39px}.ml-39{margin-left:39px}.mr-39{margin-right:39px}.m-40{margin:40px}.mt-40{margin-top:40px}.mb-40{margin-bottom:40px}.ml-40{margin-left:40px}.mr-40{margin-right:40px}.m-41{margin:41px}.mt-41{margin-top:41px}.mb-41{margin-bottom:41px}.ml-41{margin-left:41px}.mr-41{margin-right:41px}.m-42{margin:42px}.mt-42{margin-top:42px}.mb-42{margin-bottom:42px}.ml-42{margin-left:42px}.mr-42{margin-right:42px}.m-43{margin:43px}.mt-43{margin-top:43px}.mb-43{margin-bottom:43px}.ml-43{margin-left:43px}.mr-43{margin-right:43px}.m-44{margin:44px}.mt-44{margin-top:44px}.mb-44{margin-bottom:44px}.ml-44{margin-left:44px}.mr-44{margin-right:44px}.m-45{margin:45px}.mt-45{margin-top:45px}.mb-45{margin-bottom:45px}.ml-45{margin-left:45px}.mr-45{margin-right:45px}.m-46{margin:46px}.mt-46{margin-top:46px}.mb-46{margin-bottom:46px}.ml-46{margin-left:46px}.mr-46{margin-right:46px}.m-47{margin:47px}.mt-47{margin-top:47px}.mb-47{margin-bottom:47px}.ml-47{margin-left:47px}.mr-47{margin-right:47px}.m-48{margin:48px}.mt-48{margin-top:48px}.mb-48{margin-bottom:48px}.ml-48{margin-left:48px}.mr-48{margin-right:48px}.m-49{margin:49px}.mt-49{margin-top:49px}.mb-49{margin-bottom:49px}.ml-49{margin-left:49px}.mr-49{margin-right:49px}.m-50{margin:50px}.mt-50{margin-top:50px}.mb-50{margin-bottom:50px}.ml-50{margin-left:50px}.mr-50{margin-right:50px}.w-full{width:100%}.h-full{height:100%}
/*$vite$:1*/`,document.head.appendChild(er);var L={exports:{}},Y={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var tr;function Ir(){if(tr)return Y;tr=1;var o=_,c=Symbol.for("react.element"),h=Symbol.for("react.fragment"),R=Object.prototype.hasOwnProperty,S=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,k={key:!0,ref:!0,__self:!0,__source:!0};function E(j,s,F){var v,w={},C=null,U=null;F!==void 0&&(C=""+F),s.key!==void 0&&(C=""+s.key),s.ref!==void 0&&(U=s.ref);for(v in s)R.call(s,v)&&!k.hasOwnProperty(v)&&(w[v]=s[v]);if(j&&j.defaultProps)for(v in s=j.defaultProps,s)w[v]===void 0&&(w[v]=s[v]);return{$$typeof:c,type:j,key:C,ref:U,props:w,_owner:S.current}}return Y.Fragment=h,Y.jsx=E,Y.jsxs=E,Y}var M={};/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var nr;function Wr(){return nr||(nr=1,process.env.NODE_ENV!=="production"&&function(){var o=_,c=Symbol.for("react.element"),h=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),j=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),U=Symbol.for("react.offscreen"),ur=Symbol.iterator,Br="@@iterator";function Jr(r){if(r===null||typeof r!="object")return null;var e=ur&&r[ur]||r[Br];return typeof e=="function"?e:null}var A=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(r){{for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];Kr("error",r,t)}}function Kr(r,e,t){{var n=A.ReactDebugCurrentFrame,m=n.getStackAddendum();m!==""&&(e+="%s",t=t.concat([m]));var l=t.map(function(i){return String(i)});l.unshift("Warning: "+e),Function.prototype.apply.call(console[r],console,l)}}var Gr=!1,qr=!1,zr=!1,Hr=!1,Xr=!1,fr;fr=Symbol.for("react.module.reference");function Zr(r){return!!(typeof r=="string"||typeof r=="function"||r===R||r===k||Xr||r===S||r===F||r===v||Hr||r===U||Gr||qr||zr||typeof r=="object"&&r!==null&&(r.$$typeof===C||r.$$typeof===w||r.$$typeof===E||r.$$typeof===j||r.$$typeof===s||r.$$typeof===fr||r.getModuleId!==void 0))}function Qr(r,e,t){var n=r.displayName;if(n)return n;var m=e.displayName||e.name||"";return m!==""?t+"("+m+")":t}function pr(r){return r.displayName||"Context"}function O(r){if(r==null)return null;if(typeof r.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case R:return"Fragment";case h:return"Portal";case k:return"Profiler";case S:return"StrictMode";case F:return"Suspense";case v:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case j:var e=r;return pr(e)+".Consumer";case E:var t=r;return pr(t._context)+".Provider";case s:return Qr(r,r.render,"ForwardRef");case w:var n=r.displayName||null;return n!==null?n:O(r.type)||"Memo";case C:{var m=r,l=m._payload,i=m._init;try{return O(i(l))}catch{return null}}}return null}var P=Object.assign,N=0,cr,sr,gr,xr,dr,br,vr;function hr(){}hr.__reactDisabledLog=!0;function re(){{if(N===0){cr=console.log,sr=console.info,gr=console.warn,xr=console.error,dr=console.group,br=console.groupCollapsed,vr=console.groupEnd;var r={configurable:!0,enumerable:!0,value:hr,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}N++}}function ee(){{if(N--,N===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},r,{value:cr}),info:P({},r,{value:sr}),warn:P({},r,{value:gr}),error:P({},r,{value:xr}),group:P({},r,{value:dr}),groupCollapsed:P({},r,{value:br}),groupEnd:P({},r,{value:vr})})}N<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var G=A.ReactCurrentDispatcher,q;function $(r,e,t){{if(q===void 0)try{throw Error()}catch(m){var n=m.stack.trim().match(/\n( *(at )?)/);q=n&&n[1]||""}return`
`+q+r}}var z=!1,B;{var te=typeof WeakMap=="function"?WeakMap:Map;B=new te}function yr(r,e){if(!r||z)return"";{var t=B.get(r);if(t!==void 0)return t}var n;z=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var l;l=G.current,G.current=null,re();try{if(e){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(b){n=b}Reflect.construct(r,[],i)}else{try{i.call()}catch(b){n=b}r.call(i.prototype)}}else{try{throw Error()}catch(b){n=b}r()}}catch(b){if(b&&n&&typeof b.stack=="string"){for(var a=b.stack.split(`
`),x=n.stack.split(`
`),f=a.length-1,p=x.length-1;f>=1&&p>=0&&a[f]!==x[p];)p--;for(;f>=1&&p>=0;f--,p--)if(a[f]!==x[p]){if(f!==1||p!==1)do if(f--,p--,p<0||a[f]!==x[p]){var y=`
`+a[f].replace(" at new "," at ");return r.displayName&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",r.displayName)),typeof r=="function"&&B.set(r,y),y}while(f>=1&&p>=0);break}}}finally{z=!1,G.current=l,ee(),Error.prepareStackTrace=m}var W=r?r.displayName||r.name:"",D=W?$(W):"";return typeof r=="function"&&B.set(r,D),D}function ne(r,e,t){return yr(r,!1)}function ae(r){var e=r.prototype;return!!(e&&e.isReactComponent)}function J(r,e,t){if(r==null)return"";if(typeof r=="function")return yr(r,ae(r));if(typeof r=="string")return $(r);switch(r){case F:return $("Suspense");case v:return $("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case s:return ne(r.render);case w:return J(r.type,e,t);case C:{var n=r,m=n._payload,l=n._init;try{return J(l(m),e,t)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,_r={},Rr=A.ReactDebugCurrentFrame;function K(r){if(r){var e=r._owner,t=J(r.type,r._source,e?e.type:null);Rr.setExtraStackFrame(t)}else Rr.setExtraStackFrame(null)}function ie(r,e,t,n,m){{var l=Function.call.bind(V);for(var i in r)if(l(r,i)){var a=void 0;try{if(typeof r[i]!="function"){var x=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}a=r[i](e,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(f){a=f}a&&!(a instanceof Error)&&(K(m),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),K(null)),a instanceof Error&&!(a.message in _r)&&(_r[a.message]=!0,K(m),g("Failed %s type: %s",t,a.message),K(null))}}}var oe=Array.isArray;function H(r){return oe(r)}function me(r){{var e=typeof Symbol=="function"&&Symbol.toStringTag,t=e&&r[Symbol.toStringTag]||r.constructor.name||"Object";return t}}function le(r){try{return Er(r),!1}catch{return!0}}function Er(r){return""+r}function Tr(r){if(le(r))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",me(r)),Er(r)}var jr=A.ReactCurrentOwner,ue={key:!0,ref:!0,__self:!0,__source:!0},wr,Sr;function fe(r){if(V.call(r,"ref")){var e=Object.getOwnPropertyDescriptor(r,"ref").get;if(e&&e.isReactWarning)return!1}return r.ref!==void 0}function pe(r){if(V.call(r,"key")){var e=Object.getOwnPropertyDescriptor(r,"key").get;if(e&&e.isReactWarning)return!1}return r.key!==void 0}function ce(r,e){typeof r.ref=="string"&&jr.current}function se(r,e){{var t=function(){wr||(wr=!0,g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};t.isReactWarning=!0,Object.defineProperty(r,"key",{get:t,configurable:!0})}}function ge(r,e){{var t=function(){Sr||(Sr=!0,g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};t.isReactWarning=!0,Object.defineProperty(r,"ref",{get:t,configurable:!0})}}var xe=function(r,e,t,n,m,l,i){var a={$$typeof:c,type:r,key:e,ref:t,props:i,_owner:l};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:m}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function de(r,e,t,n,m){{var l,i={},a=null,x=null;t!==void 0&&(Tr(t),a=""+t),pe(e)&&(Tr(e.key),a=""+e.key),fe(e)&&(x=e.ref,ce(e,m));for(l in e)V.call(e,l)&&!ue.hasOwnProperty(l)&&(i[l]=e[l]);if(r&&r.defaultProps){var f=r.defaultProps;for(l in f)i[l]===void 0&&(i[l]=f[l])}if(a||x){var p=typeof r=="function"?r.displayName||r.name||"Unknown":r;a&&se(i,p),x&&ge(i,p)}return xe(r,a,x,m,n,jr.current,i)}}var X=A.ReactCurrentOwner,Or=A.ReactDebugCurrentFrame;function I(r){if(r){var e=r._owner,t=J(r.type,r._source,e?e.type:null);Or.setExtraStackFrame(t)}else Or.setExtraStackFrame(null)}var Z;Z=!1;function Q(r){return typeof r=="object"&&r!==null&&r.$$typeof===c}function Cr(){{if(X.current){var r=O(X.current.type);if(r)return`
Check the render method of \``+r+"`."}return""}}function be(r){return""}var Pr={};function ve(r){{var e=Cr();if(!e){var t=typeof r=="string"?r:r.displayName||r.name;t&&(e=`
Check the top-level render call using <`+t+">.")}return e}}function Dr(r,e){{if(!r._store||r._store.validated||r.key!=null)return;r._store.validated=!0;var t=ve(e);if(Pr[t])return;Pr[t]=!0;var n="";r&&r._owner&&r._owner!==X.current&&(n=" It was passed a child from "+O(r._owner.type)+"."),I(r),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),I(null)}}function kr(r,e){{if(typeof r!="object")return;if(H(r))for(var t=0;t<r.length;t++){var n=r[t];Q(n)&&Dr(n,e)}else if(Q(r))r._store&&(r._store.validated=!0);else if(r){var m=Jr(r);if(typeof m=="function"&&m!==r.entries)for(var l=m.call(r),i;!(i=l.next()).done;)Q(i.value)&&Dr(i.value,e)}}}function he(r){{var e=r.type;if(e==null||typeof e=="string")return;var t;if(typeof e=="function")t=e.propTypes;else if(typeof e=="object"&&(e.$$typeof===s||e.$$typeof===w))t=e.propTypes;else return;if(t){var n=O(e);ie(t,r.props,"prop",n,r)}else if(e.PropTypes!==void 0&&!Z){Z=!0;var m=O(e);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",m||"Unknown")}typeof e.getDefaultProps=="function"&&!e.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ye(r){{for(var e=Object.keys(r.props),t=0;t<e.length;t++){var n=e[t];if(n!=="children"&&n!=="key"){I(r),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),I(null);break}}r.ref!==null&&(I(r),g("Invalid attribute `ref` supplied to `React.Fragment`."),I(null))}}var Fr={};function Ar(r,e,t,n,m,l){{var i=Zr(r);if(!i){var a="";(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var x=be();x?a+=x:a+=Cr();var f;r===null?f="null":H(r)?f="array":r!==void 0&&r.$$typeof===c?(f="<"+(O(r.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):f=typeof r,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",f,a)}var p=de(r,e,t,m,l);if(p==null)return p;if(i){var y=e.children;if(y!==void 0)if(n)if(H(y)){for(var W=0;W<y.length;W++)kr(y[W],r);Object.freeze&&Object.freeze(y)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else kr(y,r)}if(V.call(e,"key")){var D=O(r),b=Object.keys(e).filter(function(we){return we!=="key"}),rr=b.length>0?"{key: someKey, "+b.join(": ..., ")+": ...}":"{key: someKey}";if(!Fr[D+rr]){var je=b.length>0?"{"+b.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,rr,D,je,D),Fr[D+rr]=!0}}return r===R?ye(p):he(p),p}}function _e(r,e,t){return Ar(r,e,t,!0)}function Re(r,e,t){return Ar(r,e,t,!1)}var Ee=Re,Te=_e;M.Fragment=R,M.jsx=Ee,M.jsxs=Te}()),M}var ar;function Yr(){return ar||(ar=1,process.env.NODE_ENV==="production"?L.exports=Ir():L.exports=Wr()),L.exports}var u=Yr();const ir=o=>{const{accessible:c,fallback:h}=o;return c?u.jsx(u.Fragment,{children:o.children}):u.jsx(u.Fragment,{children:h})};function or({label:o,...c}){return u.jsx(T.Button,{...c,children:o||"按钮"})}const Mr=(o,c)=>{const[h,R]=_.useState(!1);return _.useImperativeHandle(c,()=>({openDialog(){R(!0)},closeDialog(){R(!1)}})),u.jsx(T.Modal,{...o,open:h,children:o.children})},Nr=_.forwardRef(Mr);function mr(o){return u.jsx(T.Select,{...o,style:{width:200}})}const Vr=o=>u.jsxs("div",{children:[u.jsx("div",{className:"flex",children:u.jsx(ir,{accessible:!!o.rightNode,children:u.jsx("div",{className:"ml-auto mb-10",children:o.rightNode})})}),u.jsx(T.Table,{...o})]}),Lr=o=>{const c=h=>{switch(h){case"input":return u.jsx(T.Input,{placeholder:o.placeholder});case"select":return u.jsx(mr,{placeholder:o.placeholder,options:o.options});default:return u.jsx(T.Input,{placeholder:o.placeholder})}};return u.jsx(T.Form.Item,{label:o.label,name:o.name,children:c(o.type)})},Ur=({onSearch:o,isShowRightNode:c=!0,...h},R)=>{const[S]=T.Form.useForm();_.useImperativeHandle(R,()=>({...S}));const k=async()=>{try{const E=await S.validateFields();o&&o(E)}catch(E){console.log(E)}};return u.jsxs(T.Form,{...h,form:S,children:[h.widgetlist.map((E,j)=>u.jsx(Lr,{...E},j)),o&&u.jsx(T.Form.Item,{children:u.jsx(or,{type:"primary",label:"搜索",onClick:k})}),c]})},lr=_.forwardRef(Ur),$r=({...o})=>u.jsx(lr,{className:"mt-8 mb-8",...o,layout:"inline"});d.DynamicAccess=ir,d.DynamicButton=or,d.DynamicDialog=Nr,d.DynamicForm=lr,d.DynamicSearch=$r,d.DynamicSelect=mr,d.DynamicTable=Vr,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});