xrk-components 2.0.0-beta.61 → 2.0.0-beta.62
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/lib/index.css +9 -0
- package/lib/index.esm.js +10 -2
- package/lib/index.umd.js +10 -2
- package/package.json +1 -1
package/lib/index.css
CHANGED
|
@@ -19688,6 +19688,15 @@
|
|
|
19688
19688
|
.base-checkbox-group[data-v-1e1f0947] .xrk-loading-spinner .circular {
|
|
19689
19689
|
width: 20px;
|
|
19690
19690
|
}
|
|
19691
|
+
.base-tool-tip-1200 {
|
|
19692
|
+
max-width: 1200px !important;
|
|
19693
|
+
}
|
|
19694
|
+
.base-tool-tip-800 {
|
|
19695
|
+
max-width: 800px !important;
|
|
19696
|
+
}
|
|
19697
|
+
.base-tool-tip-400 {
|
|
19698
|
+
max-width: 400px !important;
|
|
19699
|
+
}
|
|
19691
19700
|
.base-tool-tip {
|
|
19692
19701
|
max-width: 400px;
|
|
19693
19702
|
}
|
package/lib/index.esm.js
CHANGED
|
@@ -72403,6 +72403,14 @@ var script$s = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$q
|
|
|
72403
72403
|
var toolTipDefault = ref(null);
|
|
72404
72404
|
var toolTipDefaultContent = ref(null);
|
|
72405
72405
|
var _content = computed(function () { return String(props.content); });
|
|
72406
|
+
var _getTooltipWidthClass = function (cellValue) {
|
|
72407
|
+
if (!cellValue || (cellValue === null || cellValue === void 0 ? void 0 : cellValue.length) < 400)
|
|
72408
|
+
return 'base-tool-tip-400';
|
|
72409
|
+
if ((cellValue === null || cellValue === void 0 ? void 0 : cellValue.length) < 600)
|
|
72410
|
+
return 'base-tool-tip-800';
|
|
72411
|
+
if ((cellValue === null || cellValue === void 0 ? void 0 : cellValue.length) > 600)
|
|
72412
|
+
return 'base-tool-tip-1200';
|
|
72413
|
+
};
|
|
72406
72414
|
var handleMouseMove = function () {
|
|
72407
72415
|
var _a, _b;
|
|
72408
72416
|
if (((_a = toolTipDefault.value) === null || _a === void 0 ? void 0 : _a.tagName) && ((_b = toolTipDefaultContent.value) === null || _b === void 0 ? void 0 : _b.tagName)) {
|
|
@@ -72414,7 +72422,7 @@ var script$s = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$q
|
|
|
72414
72422
|
return function (_ctx, _cache) {
|
|
72415
72423
|
return (openBlock(), createBlock(unref(ElTooltip), mergeProps(__props.useVisible ? { visible: __props.visible } : {}, {
|
|
72416
72424
|
key: _overShow.value ? '1' : '0',
|
|
72417
|
-
"popper-class": __props.popperClass,
|
|
72425
|
+
"popper-class": "".concat(__props.popperClass, " ").concat(_getTooltipWidthClass(unref(_content))),
|
|
72418
72426
|
trigger: __props.trigger,
|
|
72419
72427
|
transition: __props.transition,
|
|
72420
72428
|
disabled: _overShow.value || __props.disabled,
|
|
@@ -77834,7 +77842,7 @@ var install = function (app, defaultProps) {
|
|
|
77834
77842
|
});
|
|
77835
77843
|
};
|
|
77836
77844
|
var index = {
|
|
77837
|
-
version: '2.0.0-beta.
|
|
77845
|
+
version: '2.0.0-beta.62',
|
|
77838
77846
|
useSetGlobalDefaultProps: useSetGlobalDefaultProps,
|
|
77839
77847
|
/**
|
|
77840
77848
|
* install会调用useSetGlobalDefaultProps
|
package/lib/index.umd.js
CHANGED
|
@@ -72406,6 +72406,14 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
72406
72406
|
var toolTipDefault = vue.ref(null);
|
|
72407
72407
|
var toolTipDefaultContent = vue.ref(null);
|
|
72408
72408
|
var _content = vue.computed(function () { return String(props.content); });
|
|
72409
|
+
var _getTooltipWidthClass = function (cellValue) {
|
|
72410
|
+
if (!cellValue || (cellValue === null || cellValue === void 0 ? void 0 : cellValue.length) < 400)
|
|
72411
|
+
return 'base-tool-tip-400';
|
|
72412
|
+
if ((cellValue === null || cellValue === void 0 ? void 0 : cellValue.length) < 600)
|
|
72413
|
+
return 'base-tool-tip-800';
|
|
72414
|
+
if ((cellValue === null || cellValue === void 0 ? void 0 : cellValue.length) > 600)
|
|
72415
|
+
return 'base-tool-tip-1200';
|
|
72416
|
+
};
|
|
72409
72417
|
var handleMouseMove = function () {
|
|
72410
72418
|
var _a, _b;
|
|
72411
72419
|
if (((_a = toolTipDefault.value) === null || _a === void 0 ? void 0 : _a.tagName) && ((_b = toolTipDefaultContent.value) === null || _b === void 0 ? void 0 : _b.tagName)) {
|
|
@@ -72417,7 +72425,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
72417
72425
|
return function (_ctx, _cache) {
|
|
72418
72426
|
return (vue.openBlock(), vue.createBlock(vue.unref(ElTooltip), vue.mergeProps(__props.useVisible ? { visible: __props.visible } : {}, {
|
|
72419
72427
|
key: _overShow.value ? '1' : '0',
|
|
72420
|
-
"popper-class": __props.popperClass,
|
|
72428
|
+
"popper-class": "".concat(__props.popperClass, " ").concat(_getTooltipWidthClass(vue.unref(_content))),
|
|
72421
72429
|
trigger: __props.trigger,
|
|
72422
72430
|
transition: __props.transition,
|
|
72423
72431
|
disabled: _overShow.value || __props.disabled,
|
|
@@ -77837,7 +77845,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77837
77845
|
});
|
|
77838
77846
|
};
|
|
77839
77847
|
var index = {
|
|
77840
|
-
version: '2.0.0-beta.
|
|
77848
|
+
version: '2.0.0-beta.62',
|
|
77841
77849
|
useSetGlobalDefaultProps: useSetGlobalDefaultProps,
|
|
77842
77850
|
/**
|
|
77843
77851
|
* install会调用useSetGlobalDefaultProps
|