diff --git a/examples/sites/demos/pc/app/container/webdoc/container.js b/examples/sites/demos/pc/app/container/webdoc/container.js index a91a12ce3..8bad4be0c 100644 --- a/examples/sites/demos/pc/app/container/webdoc/container.js +++ b/examples/sites/demos/pc/app/container/webdoc/container.js @@ -44,7 +44,8 @@ export default { 'props': [ { 'name': 'pattern', - 'type': `'default' | 'simple' | 'legend' | 'classic' | 'fashion'`, + 'type': 'IContainerPattern', + 'typeAnchorName': 'IContainerPattern', 'defaultValue': '"default"', 'desc': { 'zh-CN': '版型类型', @@ -106,5 +107,12 @@ export default { } ] } + ], + types: [ + { + name: 'IContainerPattern', + type: 'interface', + code: `type IContainerPattern = 'default' | 'simple' | 'legend' | 'classic' | 'fashion'` + } ] }