@pisell/date-picker 1.0.99 → 1.0.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -167,7 +167,9 @@ var PisellDateRangePicker = function PisellDateRangePicker(props) {
|
|
|
167
167
|
newVal = [newVal[0], newVal[0]];
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
|
|
170
|
+
|
|
171
|
+
// 非时间类型更新时 开始时间默认为00:00:00 结束时间默认23:59:59
|
|
172
|
+
if (type !== 'time') {
|
|
171
173
|
newVal = newVal.map(function (item, index) {
|
|
172
174
|
if (index === 0) {
|
|
173
175
|
return (item === null || item === void 0 ? void 0 : item.set('hour', 0).set('minute', 0).set('second', 0)) || null;
|
package/es/Toolbar/index.d.ts
CHANGED
|
@@ -168,7 +168,7 @@ var PisellDateRangePicker = (props) => {
|
|
|
168
168
|
newVal = [newVal[0], newVal[0]];
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
if (
|
|
171
|
+
if (type !== "time") {
|
|
172
172
|
newVal = newVal.map((item, index) => {
|
|
173
173
|
if (index === 0) {
|
|
174
174
|
return (item == null ? void 0 : item.set("hour", 0).set("minute", 0).set("second", 0)) || null;
|
package/lib/Toolbar/index.d.ts
CHANGED