bk-magic-vue 2.5.9-beta.36 → 2.5.9-beta.37

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.
@@ -10627,7 +10627,7 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
10627
10627
  .bk-table.bk-table-dark-header th{
10628
10628
  background-color:#f0f1f5;
10629
10629
  }
10630
- .bk-table.bk-table-dark-header th :hover{
10630
+ .bk-table.bk-table-dark-header th .cell:hover{
10631
10631
  background-color:#eaebf0
10632
10632
  }
10633
10633
  .bk-table.bk-table-custom-header{
@@ -29670,7 +29670,11 @@
29670
29670
  type: Boolean,
29671
29671
  default: false
29672
29672
  },
29673
- initialControlValue: Number
29673
+ initialControlValue: Number,
29674
+ allowEmoji: {
29675
+ type: Boolean,
29676
+ default: true
29677
+ }
29674
29678
  },
29675
29679
  data: function data() {
29676
29680
  return {
@@ -30150,6 +30154,9 @@
30150
30154
  }
30151
30155
  this.$nextTick(function () {
30152
30156
  var value = event.target.value;
30157
+ if (!_this5.allowEmoji) {
30158
+ value = value.replace(/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/ig, '');
30159
+ }
30153
30160
  _this5.setCurValue(value);
30154
30161
  _this5.$emit('input', value, event);
30155
30162
  _this5.$emit('change', value, event);
@@ -44249,11 +44256,7 @@
44249
44256
  var value = source[prop];
44250
44257
  if (value !== undefined) {
44251
44258
  if (prop === 'renderHeader') {
44252
- if (type === 'selection' && column[prop]) {
44253
- console.warn('[Magic Warn][TableColumn]Selection column doesn\'t allow to set render-header function.');
44254
- } else {
44255
- value = column[prop] || value;
44256
- }
44259
+ value = column[prop] || value;
44257
44260
  }
44258
44261
  column[prop] = prop === 'className' ? "".concat(column[prop], " ").concat(value) : value;
44259
44262
  }