bri-components 1.3.49 → 1.3.50
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
|
@@ -291,8 +291,8 @@
|
|
|
291
291
|
this.change();
|
|
292
292
|
},
|
|
293
293
|
getOptions (index) {
|
|
294
|
-
const
|
|
295
|
-
const
|
|
294
|
+
const compareDateStr = this[`val${index === 0 ? 1 : 0}`];
|
|
295
|
+
const compareOperator = index === 0 ? "ltAet" : "gtAet";
|
|
296
296
|
|
|
297
297
|
return {
|
|
298
298
|
shortcuts: this.useShortcuts
|
|
@@ -304,16 +304,12 @@
|
|
|
304
304
|
}))
|
|
305
305
|
: [],
|
|
306
306
|
disabledDate: (date) => {
|
|
307
|
-
|
|
308
|
-
|
|
307
|
+
const curDateStr = this.$transformDate(date, "/", this.subType);
|
|
308
|
+
|
|
309
|
+
return compareDateStr
|
|
310
|
+
? this.isDynDateKey(compareDateStr)
|
|
309
311
|
? true
|
|
310
|
-
: !this.$isComparedAccord(
|
|
311
|
-
...this.selfPropsObj,
|
|
312
|
-
_type: "date"
|
|
313
|
-
}, {
|
|
314
|
-
...this.selfPropsObj,
|
|
315
|
-
_type: "date"
|
|
316
|
-
}, date, val, config).bool
|
|
312
|
+
: !this.$isComparedAccord(curDateStr, compareDateStr, compareOperator, "date", this.subType, this.subType).bool
|
|
317
313
|
: false;
|
|
318
314
|
}
|
|
319
315
|
};
|
|
@@ -362,7 +362,7 @@ export default {
|
|
|
362
362
|
filter: undefined,
|
|
363
363
|
sortBy: undefined,
|
|
364
364
|
renderBodyCell: ({ column, row, rowIndex }, h) => {
|
|
365
|
-
column = this.$
|
|
365
|
+
column = this.$transformDynamicProperty(column, row, this.parentObj);
|
|
366
366
|
column = this.resetCol(column, row);
|
|
367
367
|
const unitCanEdit = this.getUnitCanEdit(column, row);
|
|
368
368
|
|
|
@@ -425,7 +425,7 @@ export default {
|
|
|
425
425
|
];
|
|
426
426
|
},
|
|
427
427
|
renderHeaderCell: ({ column }, h) => {
|
|
428
|
-
column = this.$
|
|
428
|
+
column = this.$transformDynamicProperty(column, undefined, this.parentObj);
|
|
429
429
|
|
|
430
430
|
return this.$getHeadRender(h, column, {
|
|
431
431
|
showRequired: this.showRequired,
|
|
@@ -686,7 +686,7 @@ export default {
|
|
|
686
686
|
},
|
|
687
687
|
// 单元格校验结果
|
|
688
688
|
getColRuleResult (col, row, rowIndex) {
|
|
689
|
-
col = this.$
|
|
689
|
+
col = this.$transformDynamicProperty(col, row, this.parentObj);
|
|
690
690
|
|
|
691
691
|
if ((this.ruleRecordMap[`${row._id}dsh${col._key}`] || {}).showRuleMessage || this.showRuleMessage) {
|
|
692
692
|
return this.$getFieldRuleResult(col, row);
|