Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
E
ec-report-refactor
Project
Project
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
lihuizhen
ec-report-refactor
Commits
a3f2e721
Commit
a3f2e721
authored
May 17, 2022
by
leon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:dataPicker color and borderColor
parent
0ab7e767
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
DatePicker.vue
components/DatePicker/DatePicker.vue
+3
-11
No files found.
components/DatePicker/DatePicker.vue
View file @
a3f2e721
...
@@ -3,13 +3,15 @@
...
@@ -3,13 +3,15 @@
<NormalTitle
:elementInfo=
"elementInfo"
></NormalTitle>
<NormalTitle
:elementInfo=
"elementInfo"
></NormalTitle>
<view
class=
"date-wrap"
>
<view
class=
"date-wrap"
>
<u-input
<u-input
:style=
"[inputStyle]
"
style=
"width:100%
"
placeholder=
"请输入日期"
placeholder=
"请输入日期"
input-align=
"center"
input-align=
"center"
v-model=
"pickerValue"
v-model=
"pickerValue"
type=
"select"
type=
"select"
:select-open=
"show"
:select-open=
"show"
:border=
"true"
:border=
"true"
:borderColor=
"elementInfo.option.dateTime.borderColor"
:custom-style=
"
{color: elementInfo.option.dateTime.color}"
@click="show = true"
@click="show = true"
>
</u-input>
>
</u-input>
</view>
</view>
...
@@ -54,16 +56,6 @@
...
@@ -54,16 +56,6 @@
};
};
},
},
computed
:
{
inputStyle
()
{
const
{
color
,
borderColor
}
=
this
.
elementInfo
.
option
.
dateTime
return
{
'width'
:
'100%'
,
'color'
:
color
,
'border-color'
:
borderColor
}
}
},
mounted
()
{
mounted
()
{
this
.
pickerValue
=
this
.
dateTimeFormat
(
this
.
elementInfo
.
option
.
dateTime
.
date
)
this
.
pickerValue
=
this
.
dateTimeFormat
(
this
.
elementInfo
.
option
.
dateTime
.
date
)
},
},
...
...
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