@lx-frontend/wrap-element-ui 1.0.19-beta.4 → 1.0.19-beta.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lx-frontend/wrap-element-ui",
3
- "version": "1.0.19-beta.4",
3
+ "version": "1.0.19-beta.6",
4
4
  "description": "wrap-element-ui",
5
5
  "author": "",
6
6
  "main": "src/components/index.ts",
@@ -12,7 +12,7 @@ export function genStartDateDisabledOptions(endDate: string, limit: number = 0)
12
12
  if (!limit) {
13
13
  return baseOption
14
14
  }
15
- return baseOption || currentDate.isBefore(dayjs(endDate).subtract(limit, 'day'), 'day');
15
+ return baseOption || currentDate.isBefore(dayjs(endDate).subtract(limit - 1, 'day'), 'day');
16
16
  }
17
17
  };
18
18
  }
@@ -29,7 +29,7 @@ export function genEndDateDisabledOptions(startDate: string, limit: number = 0)
29
29
  if (!limit) {
30
30
  return baseOption
31
31
  }
32
- return baseOption || currentDate.isAfter(dayjs(startDate).add(limit, 'day'), 'day');
32
+ return baseOption || currentDate.isAfter(dayjs(startDate).add(limit - 1, 'day'), 'day');
33
33
  }
34
34
  };
35
35
  }
@@ -84,6 +84,7 @@
84
84
  value-format="yyyy-MM-dd"
85
85
  format="yyyy-MM-dd"
86
86
  type="date"
87
+ :editable="false"
87
88
  :placeholder="(placeholder || [])[0] || '开始日期'"
88
89
  :picker-options="genStartDateDisabledOptions(formData[prop[1]], doubleDatePickerLimit)"
89
90
  />
@@ -94,6 +95,7 @@
94
95
  value-format="yyyy-MM-dd"
95
96
  format="yyyy-MM-dd"
96
97
  type="date"
98
+ :editable="false"
97
99
  :placeholder="(placeholder || [])[1] || '结束日期'"
98
100
  :picker-options="genEndDateDisabledOptions(formData[prop[0]], doubleDatePickerLimit)"
99
101
  />