Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uview-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李晖
uview-ui
Commits
c4ab4f73
Commit
c4ab4f73
authored
Oct 11, 2020
by
wlxuqu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化组件逻辑
parent
7acf3daa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
u-image.vue
uview-ui/components/u-image/u-image.vue
+10
-6
u-read-more.vue
uview-ui/components/u-read-more/u-read-more.vue
+1
-1
No files found.
uview-ui/components/u-image/u-image.vue
View file @
c4ab4f73
...
@@ -162,14 +162,18 @@ export default {
...
@@ -162,14 +162,18 @@ export default {
};
};
},
},
watch
:
{
watch
:
{
src
(
n
)
{
src
:
{
immediate
:
true
,
handler
(
n
)
{
if
(
!
n
)
{
if
(
!
n
)
{
// 如果传入null或者'',或者false,或者undefined,标记为错误状态
// 如果传入null或者'',或者false,或者undefined,标记为错误状态
this
.
isError
=
true
;
this
.
isError
=
true
;
this
.
loading
=
false
;
}
else
{
}
else
{
this
.
isError
=
false
;
this
.
isError
=
false
;
}
}
}
}
}
},
},
computed
:
{
computed
:
{
wrapStyle
()
{
wrapStyle
()
{
...
...
uview-ui/components/u-read-more/u-read-more.vue
View file @
c4ab4f73
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<view
class=
""
>
<view
class=
""
>
<view
class=
"u-content"
:class=
"[elId]"
:style=
"
{
<view
class=
"u-content"
:class=
"[elId]"
:style=
"
{
height: isLongContent
&&
!showMore ? showHeight + 'rpx' : 'auto',
height: isLongContent
&&
!showMore ? showHeight + 'rpx' : 'auto',
textIndent: t
his.t
extIndent
textIndent: textIndent
}">
}">
<slot></slot>
<slot></slot>
</view>
</view>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment