Commit 8fbca94 xuqingkai
committed
1 parent a1e9530 commit 8fbca94 Copy full SHA for 8fbca94
File tree 1 file changed +3
-3
lines changed
src/uni_modules/wot-design-uni/components/wd-datetime-picker
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 20
20
<view class =" wd-picker__value-wraper" >
21
21
<view :class =" `wd-picker__value ${customValueClass}`" >
22
22
<template v-if =" region " >
23
- <view v-if =" isArray(showValue) && showValue.length === 2 && showValue[0] !== '' && showValue[1] !== '' " >
23
+ <view v-if =" isArray(showValue)" >
24
24
<text :class =" showValue[0] ? '' : 'wd-picker__placeholder'" >
25
- {{ showValue[0] ? showValue[0] : placeholder }}
25
+ {{ showValue[0] ? showValue[0] : placeholder || translate('placeholder') }}
26
26
</text >
27
27
{{ translate('to') }}
28
28
<text :class =" showValue[1] ? '' : 'wd-picker__placeholder'" >
29
- {{ showValue[1] ? showValue[1] : placeholder }}
29
+ {{ showValue[1] ? showValue[1] : placeholder || translate('placeholder') }}
30
30
</text >
31
31
</view >
32
32
<view v-else class =" wd-picker__placeholder" >
You can’t perform that action at this time.
0 commit comments