Commit a3f2e721 authored by leon's avatar leon

feat:dataPicker color and borderColor

parent 0ab7e767
...@@ -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)
}, },
......
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