Commit a3f2e721 authored by leon's avatar leon

feat:dataPicker color and borderColor

parent 0ab7e767
......@@ -3,13 +3,15 @@
<NormalTitle :elementInfo="elementInfo"></NormalTitle>
<view class="date-wrap">
<u-input
:style="[inputStyle]"
style="width:100%"
placeholder="请输入日期"
input-align="center"
v-model="pickerValue"
type="select"
:select-open="show"
:border="true"
:borderColor="elementInfo.option.dateTime.borderColor"
:custom-style="{color: elementInfo.option.dateTime.color}"
@click="show = true"
></u-input>
</view>
......@@ -54,16 +56,6 @@
};
},
computed: {
inputStyle() {
const { color, borderColor} = this.elementInfo.option.dateTime
return {
'width': '100%',
'color': color,
'border-color': borderColor
}
}
},
mounted() {
this.pickerValue = this.dateTimeFormat(this.elementInfo.option.dateTime.date)
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment