bkui-vue 0.0.3-beta.2-5 → 0.0.3-beta.2-7

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.
@@ -3423,14 +3423,19 @@ var parentNodeReferId = null;
3423
3423
  storeEvents = null;
3424
3424
  }
3425
3425
  };
3426
+ var getClosestFullscreenElement = function getClosestFullscreenElement(elment) {
3427
+ var _elment$closest;
3428
+ return (_elment$closest = elment === null || elment === void 0 ? void 0 : elment.closest('[data-fllsrn-id]')) !== null && _elment$closest !== void 0 ? _elment$closest : elment;
3429
+ };
3426
3430
  var updateBoundary = function updateBoundary() {
3427
3431
  var _resolvePopElements3 = resolvePopElements(),
3428
3432
  elReference = _resolvePopElements3.elReference,
3429
3433
  root = _resolvePopElements3.root;
3430
3434
  if (isFullscreen.value) {
3435
+ var _fullScreenTarget$val;
3431
3436
  var _ref6 = elReference || root || {},
3432
3437
  parentNode = _ref6.parentNode;
3433
- boundary.value = (fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) || parentNode;
3438
+ boundary.value = (_fullScreenTarget$val = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) !== null && _fullScreenTarget$val !== void 0 ? _fullScreenTarget$val : getClosestFullscreenElement(parentNode);
3434
3439
  return;
3435
3440
  }
3436
3441
  boundary.value = getPrefixId(root || elReference);
@@ -3438,13 +3443,13 @@ var parentNodeReferId = null;
3438
3443
  var _usePopperId = use_popper_id(props, '#'),
3439
3444
  getPrefixId = _usePopperId.getPrefixId;
3440
3445
  var setFullscreenTag = function setFullscreenTag() {
3441
- var _fullScreenTarget$val;
3442
- fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val = fullScreenTarget.value) === null || _fullScreenTarget$val === void 0 || _fullScreenTarget$val.setAttribute('data-fllsrn-id', fullscreenReferId);
3446
+ var _fullScreenTarget$val2;
3447
+ fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 || _fullScreenTarget$val2.setAttribute('data-fllsrn-id', fullscreenReferId);
3443
3448
  };
3444
3449
  var clearFullscreenTag = function clearFullscreenTag() {
3445
- var _fullScreenTarget$val2, _fullScreenTarget$val3;
3450
+ var _fullScreenTarget$val3, _fullScreenTarget$val4;
3446
3451
  var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
3447
- ((_fullScreenTarget$val2 = fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val3 = fullScreenTarget.value) === null || _fullScreenTarget$val3 === void 0 ? void 0 : _fullScreenTarget$val3.querySelectorAll(query)) !== null && _fullScreenTarget$val2 !== void 0 ? _fullScreenTarget$val2 : []).forEach(function (element) {
3452
+ ((_fullScreenTarget$val3 = fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val4 = fullScreenTarget.value) === null || _fullScreenTarget$val4 === void 0 ? void 0 : _fullScreenTarget$val4.querySelectorAll(query)) !== null && _fullScreenTarget$val3 !== void 0 ? _fullScreenTarget$val3 : []).forEach(function (element) {
3448
3453
  element === null || element === void 0 || element.removeAttribute('data-fllsrn-id');
3449
3454
  });
3450
3455
  };
@@ -3425,14 +3425,19 @@ var parentNodeReferId = null;
3425
3425
  storeEvents = null;
3426
3426
  }
3427
3427
  };
3428
+ var getClosestFullscreenElement = function getClosestFullscreenElement(elment) {
3429
+ var _elment$closest;
3430
+ return (_elment$closest = elment === null || elment === void 0 ? void 0 : elment.closest('[data-fllsrn-id]')) !== null && _elment$closest !== void 0 ? _elment$closest : elment;
3431
+ };
3428
3432
  var updateBoundary = function updateBoundary() {
3429
3433
  var _resolvePopElements3 = resolvePopElements(),
3430
3434
  elReference = _resolvePopElements3.elReference,
3431
3435
  root = _resolvePopElements3.root;
3432
3436
  if (isFullscreen.value) {
3437
+ var _fullScreenTarget$val;
3433
3438
  var _ref6 = elReference || root || {},
3434
3439
  parentNode = _ref6.parentNode;
3435
- boundary.value = (fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) || parentNode;
3440
+ boundary.value = (_fullScreenTarget$val = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) !== null && _fullScreenTarget$val !== void 0 ? _fullScreenTarget$val : getClosestFullscreenElement(parentNode);
3436
3441
  return;
3437
3442
  }
3438
3443
  boundary.value = getPrefixId(root || elReference);
@@ -3440,13 +3445,13 @@ var parentNodeReferId = null;
3440
3445
  var _usePopperId = use_popper_id(props, '#'),
3441
3446
  getPrefixId = _usePopperId.getPrefixId;
3442
3447
  var setFullscreenTag = function setFullscreenTag() {
3443
- var _fullScreenTarget$val;
3444
- fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val = fullScreenTarget.value) === null || _fullScreenTarget$val === void 0 || _fullScreenTarget$val.setAttribute('data-fllsrn-id', fullscreenReferId);
3448
+ var _fullScreenTarget$val2;
3449
+ fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 || _fullScreenTarget$val2.setAttribute('data-fllsrn-id', fullscreenReferId);
3445
3450
  };
3446
3451
  var clearFullscreenTag = function clearFullscreenTag() {
3447
- var _fullScreenTarget$val2, _fullScreenTarget$val3;
3452
+ var _fullScreenTarget$val3, _fullScreenTarget$val4;
3448
3453
  var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
3449
- ((_fullScreenTarget$val2 = fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val3 = fullScreenTarget.value) === null || _fullScreenTarget$val3 === void 0 ? void 0 : _fullScreenTarget$val3.querySelectorAll(query)) !== null && _fullScreenTarget$val2 !== void 0 ? _fullScreenTarget$val2 : []).forEach(function (element) {
3454
+ ((_fullScreenTarget$val3 = fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val4 = fullScreenTarget.value) === null || _fullScreenTarget$val4 === void 0 ? void 0 : _fullScreenTarget$val4.querySelectorAll(query)) !== null && _fullScreenTarget$val3 !== void 0 ? _fullScreenTarget$val3 : []).forEach(function (element) {
3450
3455
  element === null || element === void 0 || element.removeAttribute('data-fllsrn-id');
3451
3456
  });
3452
3457
  };
@@ -4437,8 +4437,21 @@ const external_directives_namespaceObject = external_directives_x({ ["bkEllipsis
4437
4437
  if (typeof disabled === 'function') {
4438
4438
  disabled = Reflect.apply(disabled, _this, [props.column, props.row]);
4439
4439
  }
4440
- if (props.isHead) {
4440
+ /**
4441
+ * 当表格中的字段或数据需要做解释说明时,可增加 [下划线] 提示,hover 可查看解释说明的 tooltips
4442
+ */
4443
+ if (props.column.explain) {
4441
4444
  disabled = false;
4445
+ mode = 'static';
4446
+ if (typeof_typeof(props.column.explain) === 'object') {
4447
+ content = function content() {
4448
+ return resolvePropVal(props.column.explain, 'content', [props.column, props.row]);
4449
+ };
4450
+ }
4451
+ }
4452
+ if (props.isHead) {
4453
+ var _props$column$showOve, _props$column;
4454
+ disabled = !((_props$column$showOve = (_props$column = props.column) === null || _props$column === void 0 || (_props$column = _props$column.showOverflowTooltip) === null || _props$column === void 0 ? void 0 : _props$column.showHead) !== null && _props$column$showOve !== void 0 ? _props$column$showOve : true);
4442
4455
  mode = 'auto';
4443
4456
  content = function content() {
4444
4457
  var _getEllipsisTarget;
@@ -4451,18 +4464,6 @@ const external_directives_namespaceObject = external_directives_x({ ["bkEllipsis
4451
4464
  };
4452
4465
  }
4453
4466
  }
4454
- /**
4455
- * 当表格中的字段或数据需要做解释说明时,可增加 [下划线] 提示,hover 可查看解释说明的 tooltips
4456
- */
4457
- if (props.column.explain) {
4458
- disabled = false;
4459
- mode = 'static';
4460
- if (typeof_typeof(props.column.explain) === 'object') {
4461
- content = function content() {
4462
- return resolvePropVal(props.column.explain, 'content', [props.column, props.row]);
4463
- };
4464
- }
4465
- }
4466
4467
  return {
4467
4468
  disabled: disabled,
4468
4469
  content: content,
@@ -5697,7 +5698,8 @@ function use_head_cell_isSlot(s) {
5697
5698
  "column": column,
5698
5699
  "defaultSort": active.value ? nextSort.value : SORT_OPTION.NULL,
5699
5700
  "onChange": handleSortClick,
5700
- "active": active.value
5701
+ "active": active.value,
5702
+ "sortValFormat": props.sortValFormat
5701
5703
  }, null);
5702
5704
  };
5703
5705
  var getFilterCell = function getFilterCell(column, index) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "0.0.3-beta.2-5",
3
+ "version": "0.0.3-beta.2-7",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*",