[Doc] fix warning when run test cases

This commit is contained in:
陈嘉涵 2019-04-29 14:37:53 +08:00
parent 9fe0831e6d
commit de5c6a5780
4 changed files with 3 additions and 6 deletions

View File

@ -96,9 +96,6 @@ export function wrapper(promise, name) {
Locale.add(formattedI18n); Locale.add(formattedI18n);
} }
component.props = component.props || {};
component.props.weapp = Boolean;
return component; return component;
}); });
} }

View File

@ -36,7 +36,7 @@
</demo-block> </demo-block>
<demo-block <demo-block
v-if="!weapp" v-if="!$attrs.weapp"
:title="$t('title3')" :title="$t('title3')"
> >
<van-row type="flex"> <van-row type="flex">

View File

@ -23,7 +23,7 @@
</demo-block> </demo-block>
<demo-block <demo-block
v-if="!weapp" v-if="!$attrs.weapp"
:title="$t('halfStar')" :title="$t('halfStar')"
> >
<van-rate <van-rate

View File

@ -55,7 +55,7 @@
</demo-block> </demo-block>
<demo-block <demo-block
v-if="!weapp" v-if="!$attrs.weapp"
:title="$t('vertical')" :title="$t('vertical')"
> >
<div :style="{ height: '120px', paddingLeft: '30px' }"> <div :style="{ height: '120px', paddingLeft: '30px' }">