UNPKG

com-tools

Version:

com-tools 提供了一些通用的工具函数;

102 lines (47 loc) 1.23 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [com-tools](./com-tools.md) &gt; [defineProxyProperties](./com-tools.defineproxyproperties.md) ## defineProxyProperties() function 接口1:defineProxyProperties(proxy,target,propArray,options) **Signature:** ```typescript export function defineProxyProperties(proxy: object, target: object, props: string[], options?: ProxyOptions): any; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> proxy </td><td> object </td><td> : Object 必选;会在该对象上添加代理属性 prop </td></tr> <tr><td> target </td><td> object </td><td> : Object 必选;被代理的对象 </td></tr> <tr><td> props </td><td> string\[\] </td><td> </td></tr> <tr><td> options </td><td> [ProxyOptions](./com-tools.proxyoptions.md) </td><td> _(Optional)_ ?: ProxyOptions 可选;所有代理属性的配置选项 </td></tr> </tbody></table> **Returns:** any proxy : Object 传递给函数的 代理对象 proxy