From 6160d9ebecd2108fdb57be7c750c850806b75a64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=A4=A9=E4=BD=91?= <66231260+You-Hw-Y@users.noreply.github.com> Date: Tue, 23 Jan 2024 23:56:13 -0800 Subject: [PATCH] docs(container): [container] optimize docs and demos (#1333) --- .../sites/demos/pc/app/container/webdoc/container.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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'` + } ] }