Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
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
常超
founder_vue
Commits
1d09eda8
Commit
1d09eda8
authored
May 30, 2022
by
米嘉伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不能改组件颜色变化
parent
593bcba4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/components/Cascader.vue
+3
-3
No files found.
src/components/Cascader.vue
View file @
1d09eda8
...
...
@@ -98,7 +98,7 @@ export default {
console
.
log
(
"this.name:"
+
this
.
name
,
"this.id:"
+
this
.
id
)
console
.
log
(
"this.form[this.name]:"
+
this
.
form
[
this
.
name
],
"this.form[this.id]:"
+
this
.
form
[
this
.
id
])
if
(
this
.
name
&&
this
.
id
&&
this
.
form
[
this
.
name
]
&&
this
.
form
[
this
.
id
])
{
//
document.getElementsByTagName('body')[0].style.setProperty('--placeholderColor', '#606266');
document
.
getElementsByTagName
(
'body'
)[
0
].
style
.
setProperty
(
'--placeholderColor'
,
'#606266'
);
this
.
valStr
=
this
.
form
[
this
.
name
]
+
'['
+
this
.
form
[
this
.
id
]
+
']'
;
console
.
log
(
this
.
valStr
);
let
name
=
this
.
form
[
this
.
name
]
...
...
@@ -107,10 +107,10 @@ export default {
}
return
name
+
'['
+
this
.
form
[
this
.
id
]
+
']'
;
}
else
if
(
this
.
id
&&
this
.
form
[
this
.
id
])
{
//
document.getElementsByTagName('body')[0].style.setProperty('--placeholderColor', '#606266');
document
.
getElementsByTagName
(
'body'
)[
0
].
style
.
setProperty
(
'--placeholderColor'
,
'#606266'
);
return
this
.
form
[
this
.
id
]
}
else
{
//
document.getElementsByTagName('body')[0].style.setProperty('--placeholderColor', '#b2b2b2');
document
.
getElementsByTagName
(
'body'
)[
0
].
style
.
setProperty
(
'--placeholderColor'
,
'#b2b2b2'
);
return
this
.
$t
(
'Common.please_select'
)
}
},
...
...
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