Skip to content

Commit 6092df9

Browse files
authored
Merge pull request #383 from yangmingshan/options
feat: add deep copy control options
2 parents 658a93b + 46ad003 commit 6092df9

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎types/wx/lib.wx.component.d.ts‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,17 @@ declare namespace WechatMiniprogram.Component {
455455
*/
456456
pureDataPattern?: RegExp
457457
/**
458-
* [虚拟化组件节点](https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/wxml-wxss.html#%E8%99%9A%E6%8B%9F%E5%8C%96%E7%BB%84%E4%BB%B6%E8%8A%82%E7%82%B9) 使自定义组件内部的第一层节点由自定义组件本身完全决定。从小程序基础库版本 [`2.11.2`](https://developers.weixin.qq.com/miniprogram/dev/framework/compatibility.html) 开始支持 */
458+
* [虚拟化组件节点](https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/wxml-wxss.html#%E8%99%9A%E6%8B%9F%E5%8C%96%E7%BB%84%E4%BB%B6%E8%8A%82%E7%82%B9) 使自定义组件内部的第一层节点由自定义组件本身完全决定。从小程序基础库版本 [`2.11.2`](https://developers.weixin.qq.com/miniprogram/dev/framework/compatibility.html) 开始支持。
459+
*/
459460
virtualHost?: boolean
461+
/**
462+
* [数据深拷贝](https://developers.weixin.qq.com/miniprogram/dev/framework/component-framework/data-deep-copy.html) 仅 glass-easel 组件框架支持。
463+
*/
464+
dataDeepCopy?: 'simple' | 'simple-recursion' | 'none'
465+
/**
466+
* [属性传递深拷贝](https://developers.weixin.qq.com/miniprogram/dev/framework/component-framework/data-deep-copy.html) 仅 glass-easel 组件框架支持。
467+
*/
468+
propertyPassingDeepCopy?: 'simple' | 'simple-recursion' | 'none'
460469
}
461470

462471
interface TriggerEventOption {

0 commit comments

Comments
 (0)