Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue_django_test
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
周田
vue_django_test
Commits
e3c9272c
Commit
e3c9272c
authored
Sep 22, 2023
by
周田
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style:修改样式
parent
bbeeae4d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
Chat.vue
frontend/src/components/home/Chat.vue
+10
-7
CollapseTable.vue
frontend/src/components/protocol/CollapseTable.vue
+2
-2
No files found.
frontend/src/components/home/Chat.vue
View file @
e3c9272c
<
template
>
<div
class=
"w-48% float-left border-solid border-bluegray border-2"
>
<el-scrollbar
ref=
"scrollbarRef"
style=
"height: 34rem;"
class=
"mb-10 "
always
>
<div
ref=
"innerRef"
>
<div
ref=
"innerRef"
class=
"bg-black"
>
<p
v-for=
"item in items"
:key=
"item"
class=
"scrollbar-demo-item text-sm"
>
<div>
{{
JSON
.
parse
(
item
)?.
ts
}}
</div>
{{
item
}}
...
...
@@ -244,11 +244,14 @@ const deviceNameMap = new Map<string, any>()
const
showCmdDialog
=
()
=>
{
dialogCmdVisible
.
value
=
true
for
(
let
deviceInfo
of
deviceInfos
.
value
)
{
deviceNamesOptions
.
value
.
push
({
label
:
deviceInfo
.
dev_name
,
value
:
deviceInfo
.
dev_name
})
// 如果 options 中没有内容的话,将信息存到 options 中
if
(
deviceNamesOptions
.
value
.
length
===
0
)
{
for
(
let
deviceInfo
of
deviceInfos
.
value
)
{
deviceNamesOptions
.
value
.
push
({
label
:
deviceInfo
.
dev_name
,
value
:
deviceInfo
.
dev_name
})
}
}
// 如果 map 中没有内容的话,将信息存到一个 map 中方便查找
...
...
@@ -327,7 +330,7 @@ const sendCmd = () => {
margin
:
10px
;
text-align
:
left
;
border-radius
:
4px
;
background
:
#f
ff
;
background
:
#f
4f4f4
;
color
:
#4d4c4c
;
}
</
style
>
frontend/src/components/protocol/CollapseTable.vue
View file @
e3c9272c
...
...
@@ -437,8 +437,8 @@ const addNewVersion = () => {
/*border: 1px solid;*/
/*padding: 10px;*/
/*border-radius: 10px;*/
/*margin-bottom: 4px;*/
box-shadow
:
var
(
--el-box-shadow-
dark
);
margin-bottom
:
8px
;
box-shadow
:
var
(
--el-box-shadow-
light
);
background-color
:
#f9f9f9
;
}
/*.collapse1 .el-collapse-item__wrap {*/
...
...
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