[Doc] hide some demo in weapp (#3232)

This commit is contained in:
neverland
2019-04-28 19:34:46 +08:00
committed by GitHub
parent d2bc38f1cd
commit 9aca0d0867
5 changed files with 22 additions and 4 deletions

View File

@@ -85,6 +85,7 @@ export function wrapper(promise, name) {
component = component.default;
name = 'demo-' + name;
component.name = name;
const { i18n: config } = component;
if (config) {
const formattedI18n = {};
@@ -94,6 +95,10 @@ export function wrapper(promise, name) {
});
Locale.add(formattedI18n);
}
component.props = component.props || {};
component.props.weapp = Boolean;
return component;
});
}