Commit d7a8a4ef authored by nature's avatar nature

isDef

parent d2060d74
...@@ -86,7 +86,7 @@ export function formatNumber (value, allowDot) { ...@@ -86,7 +86,7 @@ export function formatNumber (value, allowDot) {
} }
export function isDef (val) { export function isDef (val) {
return val !== undefined && val !== null && val !== '' return val !== undefined && val !== 'undefined' && val !== null && val !== 'null' && val !== ''
} }
export function isUndefined (value) { export function isUndefined (value) {
......
...@@ -9,8 +9,11 @@ ...@@ -9,8 +9,11 @@
<h-return slot="left" @click.native="$routeGo()"/> <h-return slot="left" @click.native="$routeGo()"/>
<div slot="center">scroll</div> <div slot="center">scroll</div>
</h-header> </h-header>
<s-tab>
<tab-item>测试</tab-item>
</s-tab>
<scroll <scroll
ref="scroll" :pullUp="true" :pull-down="true" @pullingUp="loadMore" ref="scroll" class="has-footer" :pullUp="true" :pull-down="true" @pullingUp="loadMore"
@pullingDown="loadMore"> @pullingDown="loadMore">
<list-item> <list-item>
<item v-for="item in list" :key="item"> <item v-for="item in list" :key="item">
...@@ -19,6 +22,8 @@ ...@@ -19,6 +22,8 @@
</item> </item>
</list-item> </list-item>
</scroll> </scroll>
<div style="width: 100%;height: 40px;margin-top: 20px"></div>
<bottom-tab></bottom-tab>
</h-view> </h-view>
</template> </template>
......
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
<item> <item>
<section slot="name">Alert</section> <section slot="name">Alert</section>
</item> </item>
<item> <item id="Confirm">
<section slot="name">Confirm</section> <section slot="name">Confirm</section>
</item> </item>
<item> <item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment