@gx-design-vue/pro-table 0.1.2 → 0.1.4
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/pro-table.es.js +7 -8
- package/dist/pro-table.umd.js +8 -8
- package/package.json +8 -8
package/dist/pro-table.es.js
CHANGED
|
@@ -2865,7 +2865,7 @@ var StickyScrollBar = defineComponent({
|
|
|
2865
2865
|
}, [createVNode("div", {
|
|
2866
2866
|
"onMousedown": onMouseDown2,
|
|
2867
2867
|
"ref": scrollBarRef,
|
|
2868
|
-
"class": classNames("".concat(prefixCls, "-sticky-scroll-bar"), _defineProperty$x({}, "".concat(prefixCls, "-sticky-scroll-bar-active"), isActive)),
|
|
2868
|
+
"class": classNames("".concat(prefixCls, "-sticky-scroll-bar"), _defineProperty$x({}, "".concat(prefixCls, "-sticky-scroll-bar-active"), isActive.value)),
|
|
2869
2869
|
"style": {
|
|
2870
2870
|
width: "".concat(scrollBarWidth.value, "px"),
|
|
2871
2871
|
transform: "translate3d(".concat(scrollState.value.scrollLeft, "px, 0, 0)")
|
|
@@ -4348,11 +4348,12 @@ var Notice = defineComponent({
|
|
|
4348
4348
|
setup: function setup19(props2, _ref) {
|
|
4349
4349
|
var attrs = _ref.attrs, slots = _ref.slots;
|
|
4350
4350
|
var closeTimer;
|
|
4351
|
+
var isUnMounted = false;
|
|
4351
4352
|
var duration = computed(function() {
|
|
4352
|
-
return props2.duration === void 0 ?
|
|
4353
|
+
return props2.duration === void 0 ? 4.5 : props2.duration;
|
|
4353
4354
|
});
|
|
4354
4355
|
var startCloseTimer = function startCloseTimer2() {
|
|
4355
|
-
if (duration.value) {
|
|
4356
|
+
if (duration.value && !isUnMounted) {
|
|
4356
4357
|
closeTimer = setTimeout(function() {
|
|
4357
4358
|
close3();
|
|
4358
4359
|
}, duration.value * 1e3);
|
|
@@ -4382,6 +4383,7 @@ var Notice = defineComponent({
|
|
|
4382
4383
|
startCloseTimer();
|
|
4383
4384
|
});
|
|
4384
4385
|
onUnmounted(function() {
|
|
4386
|
+
isUnMounted = true;
|
|
4385
4387
|
clearCloseTimer();
|
|
4386
4388
|
});
|
|
4387
4389
|
watch([duration, function() {
|
|
@@ -8106,9 +8108,7 @@ var MobilePopupInner = defineComponent({
|
|
|
8106
8108
|
});
|
|
8107
8109
|
return function() {
|
|
8108
8110
|
var _slots$default;
|
|
8109
|
-
var zIndex = props2.zIndex, visible = props2.visible, prefixCls = props2.prefixCls, _props$mobile = props2.mobile;
|
|
8110
|
-
_props$mobile = _props$mobile === void 0 ? {} : _props$mobile;
|
|
8111
|
-
var popupClassName = _props$mobile.popupClassName, popupStyle = _props$mobile.popupStyle, _props$mobile$popupMo = _props$mobile.popupMotion, popupMotion = _props$mobile$popupMo === void 0 ? {} : _props$mobile$popupMo, popupRender = _props$mobile.popupRender;
|
|
8111
|
+
var zIndex = props2.zIndex, visible = props2.visible, prefixCls = props2.prefixCls, _props$mobile = props2.mobile, _props$mobile2 = _props$mobile === void 0 ? {} : _props$mobile, popupClassName = _props$mobile2.popupClassName, popupStyle = _props$mobile2.popupStyle, _props$mobile2$popupM = _props$mobile2.popupMotion, popupMotion = _props$mobile2$popupM === void 0 ? {} : _props$mobile2$popupM, popupRender = _props$mobile2.popupRender;
|
|
8112
8112
|
var mergedStyle = _objectSpread2$1({
|
|
8113
8113
|
zIndex
|
|
8114
8114
|
}, popupStyle);
|
|
@@ -8181,7 +8181,7 @@ var useVisibleStatus = function(visible, doMeasure) {
|
|
|
8181
8181
|
rafRef.value = wrapperRaf(/* @__PURE__ */ _asyncToGenerator(/* @__PURE__ */ regenerator.mark(function _callee() {
|
|
8182
8182
|
var index2, nextStatus;
|
|
8183
8183
|
return regenerator.wrap(function _callee$(_context) {
|
|
8184
|
-
while (1)
|
|
8184
|
+
while (1)
|
|
8185
8185
|
switch (_context.prev = _context.next) {
|
|
8186
8186
|
case 0:
|
|
8187
8187
|
index2 = StatusQueue.indexOf(status.value);
|
|
@@ -8193,7 +8193,6 @@ var useVisibleStatus = function(visible, doMeasure) {
|
|
|
8193
8193
|
case "end":
|
|
8194
8194
|
return _context.stop();
|
|
8195
8195
|
}
|
|
8196
|
-
}
|
|
8197
8196
|
}, _callee);
|
|
8198
8197
|
})));
|
|
8199
8198
|
}
|