2 lines
4.2 KiB
JavaScript
2 lines
4.2 KiB
JavaScript
|
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[66273],{74944:function(l){l.exports={sdkMainBox:"sdkMainBox___2O1X0"}},60949:function(l,d,i){"use strict";i.r(d),i.d(d,{default:function(){return j}});var m=i(28216),n=i(30672),a=i(73727),h=i(67294),x=i(74944),f=i.n(x),s=i(85893),c,t,j=(c=(0,m.$j)(o=>{var r=o.design;return{design:r}}),c(t=class extends h.PureComponent{constructor(){super(...arguments);this.state={}}render(){var r=this,M=this.props.design,p=window.location.origin+(window.basePath?"/"+window.basePath.split("/")[0]:""),g=window.cdnPath||window.location.origin,e=(0,n.lw)((0,n.Kd)());return(0,s.jsx)("div",{className:"layoutBox",children:(0,s.jsxs)("div",{className:f().sdkMainBox,children:[(0,s.jsxs)("h1",{className:"sdk-header",children:["SDK"," ",e.formatMessage({id:"admin.menu.dashboard"})]}),(0,s.jsxs)("h3",{className:"sdk-title",children:[e.formatMessage({id:"mack.xxx.Introduction"}),"js"]}),(0,s.jsxs)("p",{style:{fontSize:16},children:[e.formatMessage({id:"mack.sdk.a"}),";"]}),(0,s.jsx)("pre",{"data-lang":"html",children:(0,s.jsxs)("code",{children:[(0,s.jsxs)("p",{children:[(0,s.jsx)("span",{className:"strong",children:"<script> var "}),(0,s.jsx)("span",{className:"javascript",children:"filesboxConfig = { api: "}),(0,s.jsx)("span",{className:"string",children:"'".concat(p,"'")}),(0,s.jsx)("span",{className:"javascript",children:" }; "}),(0,s.jsx)("span",{className:"strong",children:"</script>"})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("span",{className:"strong",children:"<script src="}),(0,s.jsx)("span",{className:"string",children:'"'.concat(g,'/sdk.js"')}),(0,s.jsx)("span",{className:"strong",children:"></script>"})]})]})}),(0,s.jsxs)("div",{className:"useTipBox",style:{display:"none"},children:[(0,s.jsxs)("p",{children:[e.formatMessage({id:"mack.sdk.b"}),":"]}),(0,s.jsxs)("ul",{children:[(0,s.jsxs)("li",{children:[e.formatMessage({id:"mack.sdk.c"}),";"]}),(0,s.jsxs)("li",{children:[e.formatMessage({id:"mack.sdk.d"}),";"]}),(0,s.jsxs)("li",{children:[e.formatMessage({id:"mack.sdk.e"}),":"," ",(0,s.jsx)("a",{href:"https://www.cnblogs.com/gxp69/p/12565927.html",target:"_blank",children:"https://www.cnblogs.com/gxp69/p/12565927.html"})]})]})]}),(0,s.jsx)("h3",{className:"sdk-title",children:e.formatMessage({id:"mack.sdk.f"})}),(0,s.jsx)("div",{className:"detailBox",children:(0,s.jsxs)("ul",{children:[(0,s.jsxs)("li",{children:[e.formatMessage({id:"mack.sdk.g"}),": ",(0,s.jsx)("code",{children:"fileBoxApi.fileSelect({options..});"})," ",(0,s.jsxs)(a.rU,{to:"/system/fileSelect",children:[" ",e.formatMessage({id:"common.detail"})]})]}),(0,s.jsxs)("li",{children:[e.formatMessage({id:"mack.sdk.h"}),": ",(0,s.jsx)("code",{children:"fileBoxApi.fileView(path,{options..});"})," ",(0,s.jsx)(a.rU,{to:"/system/filePreView",children:e.formatMessage({id:"common.detail"})})]}),(0,s.jsxs)("li",{children:[e.formatMessage({id:"mack.sdk.i"}),": ",(0,s.jsx)("code",{children:"fileBoxApi.folderView(path,{option...});"})," ",(0,s.jsx)(a.rU,{to:"/system/filePreView",children:e.formatMessage({id:"common.detail"})})]}),(0,s.jsxs)("li",{style:{display:"none"},children:[e.formatMessage({id:"mack.sdk.j"}),": ",(0,s.jsx)("code",{children:"fileBoxApi.fileGet(filePath,callback);"})," ",(0,s.jsx)(a.rU,{to:"/system/fileUpload",children:e.formatMessage({id:"common.detail"})})]}),(0,s.jsxs)("li",{children:[e.formatMessage({id:"mack.sdk.k"}),": ",(0,s.jsx)("code",{children:"fileBoxApi.fileSave(filePath,content,callback);"})," ",(0,s.jsx)(a.rU,{to:"/system/fileUpload",children:e.formatMessage({id:"common.detail"})})]}),(0,s.jsxs)("li",{children:[e.formatMessage({id:"mack.sdk.l"}),": ",(0,s.jsx)("code",{children:"fileBoxApi.fileCreate(fileName,content,callback);"})," ",(0,s.jsx)(a.rU,{to:"/system/fileUpload",children:e.formatMessage({id:"common.detail"})})]}),(0,s.jsxs)("li",{children:[e.formatMessage({id:"mack.sdk.m"}),": ",(0,s.jsx)("code",{children:"fileBoxApi.fileUpload(file,uploadTo,callback);"})," ",(0,s.jsx)(a.rU,{to:"/system/fileUpload",children:e.formatMessage({id:"common.detail"})})]}),(0,s.jsxs)("li",{chil
|