From 36951337575eaeb024bbf3dd426ebae7f2cdb4da Mon Sep 17 00:00:00 2001 From: Yang Mingshan Date: Mon, 2 Nov 2026 17:02:08 +0800 Subject: [PATCH] feat: add dynamic slots option --- types/wx/lib.wx.component.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/types/wx/lib.wx.component.d.ts b/types/wx/lib.wx.component.d.ts index 0758ce9..ef12c09 100644 --- a/types/wx/lib.wx.component.d.ts +++ b/types/wx/lib.wx.component.d.ts @@ -433,9 +433,13 @@ declare namespace WechatMiniprogram.Component { interface ComponentOptions { /** - * [启用多slot支持](https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/wxml-wxss.html#组件wxml的slot) + * [启用多slot支持](https://developers.weixin.qq.com/miniprogram/dev/framework/component-framework/slot.html#多-slot) */ multipleSlots?: boolean + /** + * [启用动态slot支持](https://developers.weixin.qq.com/miniprogram/dev/framework/component-framework/slot.html#动态-slot) + */ + dynamicSlots?: boolean /** * [组件样式隔离](https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/wxml-wxss.html#组件样式隔离) */