Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_admin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_admin
Commits
b9c95dfc
Commit
b9c95dfc
authored
Jul 25, 2023
by
xiaoman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix:钱币列表名称两行显示
parent
c9f84579
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
11 deletions
+30
-11
src/components/line2Hidden/index.vue
src/components/line2Hidden/index.vue
+22
-7
src/views/goods/list.vue
src/views/goods/list.vue
+7
-2
src/views/mall/dealRecord.vue
src/views/mall/dealRecord.vue
+1
-2
No files found.
src/components/line2Hidden/index.vue
View file @
b9c95dfc
<
template
>
<el-tooltip
:placement=
"placement"
trigger=
"click"
>
<template
slot=
"content"
>
<span
class=
"tooltip-span"
>
{{
text
?
text
:
""
}}
</span>
</
template
>
<div
class=
"line2Hidden"
>
{{ text ? text : "" }}
<div>
<div
v-if=
"visible"
>
{{
text
}}
</div>
<div
v-else
>
<el-tooltip
:placement=
"placement"
trigger=
"click"
>
<template
slot=
"content"
>
<span
class=
"tooltip-span"
>
{{
text
?
text
:
""
}}
</span>
</
template
>
<div
class=
"line2Hidden"
>
{{ text ? text : "" }}
</div>
</el-tooltip>
</div>
</el-tooltip>
</div>
</template>
<
script
>
export
default
{
...
...
@@ -19,6 +25,15 @@ export default {
placement
:
{
type
:
String
,
default
:
'
top
'
},
len
:
{
type
:
Number
,
default
:
21
}
},
computed
:
{
visible
()
{
return
this
.
text
.
length
<
this
.
len
}
}
}
...
...
src/views/goods/list.vue
View file @
b9c95dfc
...
...
@@ -30,7 +30,11 @@
<el-table-column
align=
"center"
min-width=
"110"
label=
"商品编号"
prop=
"id"
/>
<el-table-column
align=
"center"
min-width=
"200"
label=
"名称"
prop=
"name"
sortable
/>
<el-table-column
align=
"center"
min-width=
"200"
label=
"名称"
prop=
"name"
sortable
>
<
template
slot-scope=
"scope"
>
<Line2Hidden
:text=
"scope.row.name"
/>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
property=
"iconUrl"
label=
"图片"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -105,10 +109,11 @@
import
{
listGoods
,
deleteGoods
}
from
'
@/api/business/goods
'
import
BackToTop
from
'
@/components/BackToTop
'
import
Pagination
from
'
@/components/Pagination
'
// Secondary package based on el-pagination
import
Line2Hidden
from
'
@/components/line2Hidden
'
export
default
{
name
:
'
GoodsList
'
,
components
:
{
BackToTop
,
Pagination
},
components
:
{
BackToTop
,
Pagination
,
Line2Hidden
},
data
()
{
return
{
list
:
[],
...
...
src/views/mall/dealRecord.vue
View file @
b9c95dfc
...
...
@@ -43,8 +43,7 @@
</el-table-column>
<el-table-column
align=
"center"
label=
"钱币描述"
prop=
"extra"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.extra.length
<21
"
>
{{
scope
.
row
.
extra
}}
</div>
<div
v-else
><Line2Hidden
:text=
"scope.row.extra"
/></div>
<Line2Hidden
:text=
"scope.row.extra"
/>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"成交平台"
prop=
"platform"
/>
...
...
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