bk-magic-vue 2.4.7 → 2.4.8-beta.1
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/dist/bk-magic-vue.js
CHANGED
|
@@ -7939,6 +7939,12 @@
|
|
|
7939
7939
|
validate: function validate(v) {
|
|
7940
7940
|
return ['simplicity', 'normal'].indexOf(v) > -1;
|
|
7941
7941
|
}
|
|
7942
|
+
},
|
|
7943
|
+
cellClass: {
|
|
7944
|
+
type: Function,
|
|
7945
|
+
default: function _default() {
|
|
7946
|
+
return '';
|
|
7947
|
+
}
|
|
7942
7948
|
}
|
|
7943
7949
|
},
|
|
7944
7950
|
data: function data() {
|
|
@@ -8668,7 +8674,8 @@
|
|
|
8668
8674
|
"time-picker-options": _vm.timePickerOptions,
|
|
8669
8675
|
"shortcut-close": _vm.shortcutClose,
|
|
8670
8676
|
"up-to-now": _vm.upToNow,
|
|
8671
|
-
"allow-cross-day": _vm.allowCrossDayProp
|
|
8677
|
+
"allow-cross-day": _vm.allowCrossDayProp,
|
|
8678
|
+
"cell-class": _vm.cellClass
|
|
8672
8679
|
},
|
|
8673
8680
|
on: {
|
|
8674
8681
|
"pick": _vm.onPick,
|
|
@@ -9853,6 +9860,12 @@
|
|
|
9853
9860
|
focusedDate: {
|
|
9854
9861
|
type: Date,
|
|
9855
9862
|
required: true
|
|
9863
|
+
},
|
|
9864
|
+
cellClass: {
|
|
9865
|
+
type: Function,
|
|
9866
|
+
default: function _default() {
|
|
9867
|
+
return '';
|
|
9868
|
+
}
|
|
9856
9869
|
}
|
|
9857
9870
|
},
|
|
9858
9871
|
computed: {
|
|
@@ -9933,9 +9946,15 @@
|
|
|
9933
9946
|
}
|
|
9934
9947
|
},
|
|
9935
9948
|
methods: {
|
|
9949
|
+
getExternalCellClass: function getExternalCellClass(cell) {
|
|
9950
|
+
if (typeof this.cellClass === 'function') {
|
|
9951
|
+
return this.cellClass(cell);
|
|
9952
|
+
}
|
|
9953
|
+
return '';
|
|
9954
|
+
},
|
|
9936
9955
|
getCellCls: function getCellCls(cell) {
|
|
9937
9956
|
var _ref;
|
|
9938
|
-
return ['bk-date-picker-cells-cell', (_ref = {}, _defineProperty(_ref, "bk-date-picker-cells-cell-selected", cell.selected || cell.start || cell.end), _defineProperty(_ref, "bk-date-picker-cells-cell-disabled", cell.disabled), _defineProperty(_ref, "bk-date-picker-cells-cell-today", cell.type === 'today'), _defineProperty(_ref, "bk-date-picker-cells-cell-prev-month", cell.type === 'prevMonth'), _defineProperty(_ref, "bk-date-picker-cells-cell-next-month", cell.type === 'nextMonth'), _defineProperty(_ref, "bk-date-picker-cells-cell-week-label", cell.type === 'weekLabel'), _defineProperty(_ref, "bk-date-picker-cells-cell-range", cell.range && !cell.start && !cell.end), _ref)];
|
|
9957
|
+
return ['bk-date-picker-cells-cell', (_ref = {}, _defineProperty(_ref, "bk-date-picker-cells-cell-selected", cell.selected || cell.start || cell.end), _defineProperty(_ref, "bk-date-picker-cells-cell-disabled", cell.disabled), _defineProperty(_ref, "bk-date-picker-cells-cell-today", cell.type === 'today'), _defineProperty(_ref, "bk-date-picker-cells-cell-prev-month", cell.type === 'prevMonth'), _defineProperty(_ref, "bk-date-picker-cells-cell-next-month", cell.type === 'nextMonth'), _defineProperty(_ref, "bk-date-picker-cells-cell-week-label", cell.type === 'weekLabel'), _defineProperty(_ref, "bk-date-picker-cells-cell-range", cell.range && !cell.start && !cell.end), _ref), this.getExternalCellClass(cell)];
|
|
9939
9958
|
}
|
|
9940
9959
|
}
|
|
9941
9960
|
};
|
|
@@ -11288,6 +11307,12 @@
|
|
|
11288
11307
|
upToNow: {
|
|
11289
11308
|
type: Boolean,
|
|
11290
11309
|
default: false
|
|
11310
|
+
},
|
|
11311
|
+
cellClass: {
|
|
11312
|
+
type: Function,
|
|
11313
|
+
default: function _default() {
|
|
11314
|
+
return '';
|
|
11315
|
+
}
|
|
11291
11316
|
}
|
|
11292
11317
|
},
|
|
11293
11318
|
computed: {
|
|
@@ -11551,7 +11576,8 @@
|
|
|
11551
11576
|
"value": _vm.dates,
|
|
11552
11577
|
"selection-mode": _vm.selectionMode,
|
|
11553
11578
|
"disabled-date": _vm.disabledDate,
|
|
11554
|
-
"focused-date": _vm.focusedDate
|
|
11579
|
+
"focused-date": _vm.focusedDate,
|
|
11580
|
+
"cell-class": _vm.cellClass
|
|
11555
11581
|
},
|
|
11556
11582
|
on: {
|
|
11557
11583
|
"pick": _vm.panelPickerHandlers,
|
|
@@ -12283,7 +12309,8 @@
|
|
|
12283
12309
|
"range-state": _vm.rangeState,
|
|
12284
12310
|
"disabled-date": _vm.disabledDate,
|
|
12285
12311
|
"value": _vm.preSelecting.right ? [_vm.dates[_vm.dates.length - 1]] : _vm.dates,
|
|
12286
|
-
"focused-date": _vm.focusedDate
|
|
12312
|
+
"focused-date": _vm.focusedDate,
|
|
12313
|
+
"cell-class": _vm.cellClass
|
|
12287
12314
|
},
|
|
12288
12315
|
on: {
|
|
12289
12316
|
"change-range": _vm.handleChangeRange,
|