@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
- if (isBoolean(showTime) && type !== 'time') {
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;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Toolbar: (props: any) => JSX.Element | null;
4
3
  export default Toolbar;
@@ -168,7 +168,7 @@ var PisellDateRangePicker = (props) => {
168
168
  newVal = [newVal[0], newVal[0]];
169
169
  }
170
170
  }
171
- if ((0, import_utils.isBoolean)(showTime) && type !== "time") {
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;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Toolbar: (props: any) => JSX.Element | null;
4
3
  export default Toolbar;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/date-picker",
3
- "version": "1.0.99",
3
+ "version": "1.0.100",
4
4
  "sideEffects": [
5
5
  "*.less"
6
6
  ],