"use strict";(self.webpackChunk_alilc_lowcode_engine_docs=self.webpackChunk_alilc_lowcode_engine_docs||[]).push([[738],{5680:(e,t,r)=>{r.d(t,{xA:()=>l,yg:()=>g});var n=r(6540);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=n.createContext({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},l=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},d="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,l=s(e,["components","mdxType","originalType","parentName"]),d=c(r),m=a,g=d["".concat(p,".").concat(m)]||d[m]||u[m]||o;return r?n.createElement(g,i(i({ref:t},l),{},{components:r})):n.createElement(g,i({ref:t},l))}));function g(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,i=new Array(o);i[0]=m;var s={};for(var p in t)hasOwnProperty.call(t,p)&&(s[p]=t[p]);s.originalType=e,s[d]="string"==typeof e?e:a,i[1]=s;for(var c=2;c<o;c++)i[c]=r[c];return n.createElement.apply(null,i)}return n.createElement.apply(null,r)}m.displayName="MDXCreateElement"},7049:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>p,contentTitle:()=>i,default:()=>u,frontMatter:()=>o,metadata:()=>s,toc:()=>c});var n=r(8168),a=(r(6540),r(5680));const o={title:"demo \u4f7f\u7528\u76f8\u5173 API",sidebar_position:2},i=void 0,s={unversionedId:"demoUsage/appendix/api",id:"demoUsage/appendix/api",title:"demo \u4f7f\u7528\u76f8\u5173 API",description:"\u6570\u636e\u6e90\u76f8\u5173",source:"@site/docs/demoUsage/appendix/api.md",sourceDirName:"demoUsage/appendix",slug:"/demoUsage/appendix/api",permalink:"/site/docs/demoUsage/appendix/api",draft:!1,editUrl:"https://github.com/alibaba/lowcode-engine/tree/develop/docs/docs/demoUsage/appendix/api.md",tags:[],version:"current",sidebarPosition:2,frontMatter:{title:"demo \u4f7f\u7528\u76f8\u5173 API",sidebar_position:2},sidebar:"demoUsage",previous:{title:"\u5982\u4f55\u4f7f\u7528\u5faa\u73af\u503c",permalink:"/site/docs/demoUsage/appendix/loop"}},p={},c=[{value:"\u6570\u636e\u6e90\u76f8\u5173",id:"\u6570\u636e\u6e90\u76f8\u5173",level:2},{value:"\u8bf7\u6c42\u6570\u636e\u6e90",id:"\u8bf7\u6c42\u6570\u636e\u6e90",level:3},{value:"\u83b7\u53d6\u6570\u636e\u6e90\u7684\u503c",id:"\u83b7\u53d6\u6570\u636e\u6e90\u7684\u503c",level:3},{value:"\u624b\u52a8\u4fee\u6539\u6570\u636e\u6e90\u503c",id:"\u624b\u52a8\u4fee\u6539\u6570\u636e\u6e90\u503c",level:3}],l={toc:c},d="wrapper";function u(e){let{components:t,...r}=e;return(0,a.yg)(d,(0,n.A)({},l,r,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h2",{id:"\u6570\u636e\u6e90\u76f8\u5173"},"\u6570\u636e\u6e90\u76f8\u5173"),(0,a.yg)("h3",{id:"\u8bf7\u6c42\u6570\u636e\u6e90"},"\u8bf7\u6c42\u6570\u636e\u6e90"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-javascript"},"// \u8bf7\u6c42 userList\uff08userList \u5728\u6570\u636e\u6e90\u9762\u677f\u4e2d\u5b9a\u4e49\uff09\n\nthis.dataSourceMap['userList'].load({\n    data: {}\n}).then(res => {})\n  .catch(error => {});\n")),(0,a.yg)("h3",{id:"\u83b7\u53d6\u6570\u636e\u6e90\u7684\u503c"},"\u83b7\u53d6\u6570\u636e\u6e90\u7684\u503c"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-javascript"},"const { userList } = this.state;\n")),(0,a.yg)("h3",{id:"\u624b\u52a8\u4fee\u6539\u6570\u636e\u6e90\u503c"},"\u624b\u52a8\u4fee\u6539\u6570\u636e\u6e90\u503c"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-javascript"},"// \u83b7\u53d6\u6570\u636e\u6e90\u9762\u677f\u4e2d\u5b9a\u4e49\u7684\u503c\nconst { user } = this.state;\n\n// \u4fee\u6539 state \u503c\nthis.setState({\n    user: {}\n});\n")))}u.isMDXComponent=!0}}]);