bri-components 1.4.58 → 1.4.60

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": "bri-components",
3
- "version": "1.4.58",
3
+ "version": "1.4.60",
4
4
  "author": "dengshanghui",
5
5
  "description": "a component lib for vue project",
6
6
  "main": "src/index.js",
@@ -150,7 +150,7 @@
150
150
  shortcuts: this.getShortCuts(index),
151
151
  disabledDate: (date) => {
152
152
  const curDateStr = this.$transformDate(date, "/", this.subType);
153
- const rangeBool = this.getRangeCompareBool(curDateStr);
153
+ const rangeBool = this.$isWithinRange(curDateStr, this.minDate, this.maxDate, this.subType);
154
154
 
155
155
  const selfValue = {
156
156
  ...this.value,
@@ -91,7 +91,6 @@
91
91
  selfPropsObj () {
92
92
  return {
93
93
  // _icon: "ios-calendar-outline",
94
- _transferClassName: "DshDaterange-dropdown",
95
94
 
96
95
  ...this.basePropsObj
97
96
  };
@@ -137,7 +136,7 @@
137
136
  shortcuts: this.getShortCuts(index),
138
137
  disabledDate: (date) => {
139
138
  const curDateStr = this.$transformDate(date, "/", this.subType);
140
- const rangeBool = this.getRangeCompareBool(curDateStr);
139
+ const rangeBool = this.$isWithinRange(curDateStr, this.minDate, this.maxDate, this.subType);
141
140
 
142
141
  return !rangeBool;
143
142
  }
@@ -167,12 +166,3 @@
167
166
  }
168
167
  }
169
168
  </style>
170
- <style lang="less">
171
- .DshDaterange {
172
- &-dropdown {
173
- .ivu-picker-panel-sidebar {
174
- width: 100px;
175
- }
176
- }
177
- }
178
- </style>
@@ -1,5 +1,5 @@
1
1
  import controlMixin from "./controlMixin.js";
2
- import { dynDateData } from "../../../data/index.js";
2
+ import { dynDateData } from "bri-datas";
3
3
 
4
4
  export default {
5
5
  mixins: [
@@ -127,16 +127,6 @@ export default {
127
127
  }
128
128
  }))
129
129
  : [];
130
- },
131
- getRangeCompareBool (curDateStr) {
132
- const compareFunc = (curDateStr, compareDateStr, compareOperator) => {
133
- return curDateStr && compareDateStr
134
- ? this.$isComparedAccord(curDateStr, compareDateStr, compareOperator, "date", this.subType, this.subType)
135
- : true;
136
- };
137
-
138
- return compareFunc(curDateStr, this.minDate, "gtAet") &&
139
- compareFunc(curDateStr, this.maxDate, ["last_month_end", "dyn_month_end", "dyn_nextmonth_end"].includes(this.selfPropsObj._maxDate) ? "lt" : "ltAet");
140
130
  }
141
131
  }
142
132
  };
@@ -137,4 +137,10 @@
137
137
  height: auto;
138
138
  }
139
139
  }
140
+ }
141
+
142
+ .ivu-date-picker-transfer {
143
+ .ivu-picker-panel-sidebar {
144
+ width: 100px;
145
+ }
140
146
  }