mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-13 19:02:51 +00:00
1 line
28 KiB
JavaScript
1 line
28 KiB
JavaScript
|
|
"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[4790],{93689:function(e,t,a){a.d(t,{Z:function(){return l}});var n=a(83910),r=a(44194),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},s=a(54183),i=function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))};var l=r.forwardRef(i)},40439:function(e,t,a){a.d(t,{Z:function(){return l}});var n=a(83910),r=a(44194),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},s=a(54183),i=function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))};var l=r.forwardRef(i)},30617:function(e,t,a){a.d(t,{Z:function(){return l}});var n=a(83910),r=a(44194),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},s=a(54183),i=function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))};var l=r.forwardRef(i)},11329:function(e,t,a){var n=a(73193),r=a.n(n),o=a(19433),s=a(14597),i=a(5932),l=a(39497),c=a(14906),u=a(53411),d=(a(85992),a(96596)),p=a.n(d),f=a(44194),g=a(31549);t.Z=function(e){var t=e.placeholder,a=e.defaultValue,n=e.value,d=e.style,m=e.toolbarKeys,h=e.maxLength,y=e.onChange,v=e.options,x=(0,c.useIntl)(),b=(0,s.Z)().isDarkMode,M=(0,f.useRef)(null),w=(0,f.useRef)(null),k=(0,f.useRef)(!1),j=(0,f.useCallback)((function(e,t,a){"function"!=typeof y||k.current||y(e,t,a)}),[y]);return(0,f.useEffect)((function(){if(M.current){if(!w.current){var e=new u.cW(r()(r()({element:M.current,theme:b?"dark":"light",placeholder:t,content:a,toolbarKeys:m},v||{}),{},{image:{uploadUrl:(0,i.M$)(),uploadFormName:"file",uploadHeaders:{Authorization:"Bearer "+localStorage.getItem(l.LA8)},uploader:function(e,t,a,n){console.log("uploader:",e,t,a,n);var s=p()(new Date).format("YYYYMMDDHHmmss")+"_"+e.name,i=new FormData;return i.append("file",e),i.append("fileName",s),i.append("fileType",e.type),i.append("isAvatar","false"),i.append("kbType",l.QPQ),i.append("categoryUid",""),i.append("kbUid",""),i.append("orgUid",""),i.append("client",l.XtJ),new Promise((function(e,n){fetch(t,{method:"POST",headers:r()({Accept:"application/json"},a),body:i}).then((function(e){return e.json()})).then((function(t){if(console.log("upload data:",t),200===t.code){o.yw.destroy(),o.yw.success("".concat(s," 上传成功"));var a={errorCode:0,data:
|