Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1a352923
authored
Apr 27, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
fbc68b12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
13 deletions
linkwe-pc/src/components/ContentCenter/PreviewInPhone.vue
linkwe-pc/src/components/PhoneTemplate.vue
linkwe-pc/src/components/ContentCenter/PreviewInPhone.vue
View file @
1a35292
This diff is collapsed.
Click to expand it.
linkwe-pc/src/components/PhoneTemplate.vue
View file @
1a35292
// 手机端背景框组件
<
template
>
<div
class=
"preview"
>
<!--
<div
class=
"preview-status"
>
<div>
13:14
</div>
</div>
-->
<div
class=
"line"
></div>
<div
class=
"preview-bar"
v-if=
"isTab"
>
<i
class=
"el-icon-arrow-left"
></i>
<i
class=
"
icon
el-icon-arrow-left"
></i>
{{
title
}}
<i
class=
"el-icon-more"
></i>
<i
class=
"
icon
el-icon-more"
></i>
</div>
<el-scrollbar
class=
"preview-content"
wrap-class=
"scrollbar-wrapper"
>
<template>
...
...
@@ -20,6 +23,7 @@
export
default
{
components
:
{},
props
:
{
// 是否显示顶部tab标题栏
isTab
:
{
type
:
Boolean
,
default
:
true
,
...
...
@@ -44,25 +48,34 @@ export default {
flex-direction
:
column
;
margin
:
0
auto
;
position
:
relative
;
width
:
var
(
--phone-width
);
width
:
var
(
--phone-width
,
350px
);
max-width
:
375px
;
min-width
:
320px
;
height
:
7
5
0px
;
border
:
1
5
px
solid
#edf2f9
;
height
:
7
2
0px
;
border
:
1
2
px
solid
#edf2f9
;
border-radius
:
40px
;
box-sizing
:
content-box
;
overflow
:
hidden
;
background
:
#fff
;
//
.preview-status
{
//
display
:
flex
;
//
justify-content
:
space-between
;
//
align-items
:
center
;
//
padding
:
0
10px
;
//
}
.icon
{
font-size
:
16px
;
}
.line
{
flex
:
none
;
width
:
65
px
;
height
:
6
px
;
margin
:
0
auto
6px
;
border-radius
:
0
0
50px
50px
;
background
:
#
eee
;
border
:
10px
solid
#333
;
box-sizing
:
content-box
;
border-width
:
13px
62px
;
width
:
100
px
;
height
:
25
px
;
margin
:
6px
auto
;
border-radius
:
50px
;
background
:
#
bbb
;
//
border
:
10px
solid
#bbb
;
//
box-sizing
:
content-box
;
//
border-width
:
13px
62px
;
}
.line2
{
position
:
absolute
;
...
...
@@ -103,6 +116,9 @@ export default {
//
transform
:
translateX
(
-50%
);
border-radius
:
0
0
20px
20px
;
background
:
#f6f8ff
;
::v-deep
img
{
max-width
:
100%
;
}
}
::v-deep
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment