@pisell/date-picker 1.0.65 → 1.0.67

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.
@@ -19,7 +19,7 @@ import 'dayjs/locale/zh-tw';
19
19
  import "./index.less";
20
20
  var transDayjsArr = function transDayjsArr(dayjsArr, defaultValue) {
21
21
  var _newArr;
22
- var newArr = dayjsArr || defaultValue;
22
+ var newArr = dayjsArr || defaultValue || [null, null];
23
23
  if ((dayjsArr === null || dayjsArr === void 0 ? void 0 : dayjsArr.length) === 0) {
24
24
  newArr = defaultValue || [null, null];
25
25
  }
@@ -211,7 +211,8 @@ var PisellDateRangePicker = function PisellDateRangePicker(props) {
211
211
  },
212
212
  popper: {
213
213
  className: popupClassName,
214
- disablePortal: disablePortal
214
+ disablePortal: disablePortal,
215
+ placement: "auto"
215
216
  },
216
217
  mobilePaper: {
217
218
  className: popupClassName
@@ -46,7 +46,7 @@ var import_en = require("dayjs/locale/en");
46
46
  var import_zh_tw = require("dayjs/locale/zh-tw");
47
47
  var import_index = require("./index.less");
48
48
  var transDayjsArr = (dayjsArr, defaultValue) => {
49
- let newArr = dayjsArr || defaultValue;
49
+ let newArr = dayjsArr || defaultValue || [null, null];
50
50
  if ((dayjsArr == null ? void 0 : dayjsArr.length) === 0) {
51
51
  newArr = defaultValue || [null, null];
52
52
  }
@@ -229,7 +229,8 @@ var PisellDateRangePicker = (props) => {
229
229
  },
230
230
  popper: {
231
231
  className: popupClassName,
232
- disablePortal
232
+ disablePortal,
233
+ placement: "auto"
233
234
  },
234
235
  mobilePaper: {
235
236
  className: popupClassName
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/date-picker",
3
- "version": "1.0.65",
3
+ "version": "1.0.67",
4
4
  "sideEffects": [
5
5
  "*.less"
6
6
  ],