Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
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
周远喜
mes-ui
Commits
466cab5a
Commit
466cab5a
authored
Apr 08, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ok
parent
328e4b3d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
2 deletions
+49
-2
basic.vue
layouts/basic.vue
+2
-2
color.vue
pages/go/color.vue
+47
-0
No files found.
layouts/basic.vue
View file @
466cab5a
...
...
@@ -10,9 +10,9 @@
<Icon
type=
"ios-keypad"
></Icon>
树形
</MenuItem>
<MenuItem
name=
"3"
>
<MenuItem
name=
"3"
to=
"/go/color"
>
<Icon
type=
"ios-analytics"
></Icon>
Item 3
色彩
</MenuItem>
<MenuItem
name=
"4"
>
<Icon
type=
"ios-paper"
></Icon>
...
...
pages/go/color.vue
0 → 100644
View file @
466cab5a
<
template
>
<div
id=
"color"
>
<div>
<ColorPicker
v-model=
"color"
@
on-change=
"change"
format=
"rgb"
/>
</div>
<h3>
{{
bgcolor
}}
</h3>
<div
v-bg-color=
"bgcolor"
class=
"item"
>
<h2
v-color=
"color"
>
这是一行文字
</h2>
</div>
</div>
</
template
>
<
script
>
export
default
{
layout
:
"basic"
,
data
()
{
return
{
color
:
"#000000"
,
bgcolor
:
"red"
}
},
methods
:{
change
(
v
){
console
.
log
(
v
)
let
rgb
=
(
v
.
replace
(
"rgba("
,
""
).
replace
(
")"
)).
split
(
","
);
this
.
bgcolor
=
`rgba(
${
255
-
rgb
[
0
]}
,
${
255
-
rgb
[
1
]}
,
${
255
-
rgb
[
2
]}
,1)`
}
},
components
:
{
}
}
</
script
>
<
style
lang=
"less"
>
#color{
.item{
margin: 20px 0;
padding: 10px;
line-height: 300%;
border: 1px solid #eee;
}
}
</
style
>
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