Commit c4ab4f73 authored by wlxuqu's avatar wlxuqu

优化组件逻辑

parent 7acf3daa
......@@ -162,12 +162,16 @@ export default {
};
},
watch: {
src(n) {
if(!n) {
// 如果传入null或者'',或者false,或者undefined,标记为错误状态
this.isError = true;
} else {
this.isError = false;
src: {
immediate: true,
handler (n) {
if(!n) {
// 如果传入null或者'',或者false,或者undefined,标记为错误状态
this.isError = true;
this.loading = false;
} else {
this.isError = false;
}
}
}
},
......
......@@ -2,7 +2,7 @@
<view class="">
<view class="u-content" :class="[elId]" :style="{
height: isLongContent && !showMore ? showHeight + 'rpx' : 'auto',
textIndent: this.textIndent
textIndent: textIndent
}">
<slot></slot>
</view>
......
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