@kengic/vue 0.21.5-beta.4 → 0.21.5-beta.5
Sign up to get free protection for your applications and to get access to all the features.
package/dist/kengic-vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
var Ue = Object.defineProperty;
|
2
2
|
var Ge = (e, t, r) => t in e ? Ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
3
3
|
var p = (e, t, r) => (Ge(e, typeof t != "symbol" ? t + "" : t, r), r);
|
4
|
-
import { h, nextTick, createVNode, defineComponent, toRaw, unref, inject, Fragment, isVNode, getCurrentInstance, markRaw, ref, watch, reactive, effectScope, isRef, isReactive, toRef, computed, onUnmounted, toRefs, onMounted, onBeforeUnmount, getCurrentScope, onScopeDispose, createTextVNode, provide, mergeProps,
|
4
|
+
import { h, nextTick, createVNode, defineComponent, toRaw, unref, inject, Fragment, isVNode, getCurrentInstance, markRaw, ref, watch, reactive, effectScope, isRef, isReactive, toRef, computed, onUnmounted, toRefs, onMounted, onBeforeUnmount, getCurrentScope, onScopeDispose, createTextVNode, onActivated, provide, mergeProps, onDeactivated, Teleport } from "vue";
|
5
5
|
import { Modal, Select, Spin, message, Tooltip, SelectOption, Image as Image$1, Button, Progress, Checkbox, Input, Transfer, Table, Tabs, Dropdown, Menu, Tag, Row, Pagination, TableSummary, Form, Divider, Col, DatePicker, InputNumber, Radio, Switch, Textarea, Upload, ConfigProvider, Card, TabPane, TreeSelect, Steps } from "ant-design-vue";
|
6
6
|
const index$a = "";
|
7
7
|
function bound01(e, t) {
|
@@ -2462,7 +2462,7 @@ const emptyIcon = {
|
|
2462
2462
|
...t.data
|
2463
2463
|
}, r);
|
2464
2464
|
}
|
2465
|
-
}), version = "0.21.5-beta.
|
2465
|
+
}), version = "0.21.5-beta.5";
|
2466
2466
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
2467
2467
|
const freeGlobal$1 = freeGlobal;
|
2468
2468
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self, root = freeGlobal$1 || freeSelf || Function("return this")();
|
@@ -11196,6 +11196,28 @@ function _useResizeObserver$1(e) {
|
|
11196
11196
|
a == null || a.disconnect();
|
11197
11197
|
}), {};
|
11198
11198
|
}
|
11199
|
+
function _useCacheScrollState(e) {
|
11200
|
+
let t = 0, r = 0, a = debounce((n) => {
|
11201
|
+
var s, i, o, l;
|
11202
|
+
t = (i = (s = n.target) == null ? void 0 : s.scrollLeft) != null ? i : 0, r = (l = (o = n.target) == null ? void 0 : o.scrollTop) != null ? l : 0;
|
11203
|
+
}, 200, {
|
11204
|
+
leading: !1,
|
11205
|
+
trailing: !0
|
11206
|
+
});
|
11207
|
+
return onActivated(() => {
|
11208
|
+
var s;
|
11209
|
+
const n = (s = e.value) == null ? void 0 : s.querySelector("div.ant-table-body");
|
11210
|
+
n && (n.scrollLeft = t, n.scrollTop = r);
|
11211
|
+
}), onMounted(() => {
|
11212
|
+
var s;
|
11213
|
+
const n = (s = e.value) == null ? void 0 : s.querySelector("div.ant-table-body");
|
11214
|
+
n == null || n.addEventListener("scroll", a);
|
11215
|
+
}), onBeforeUnmount(() => {
|
11216
|
+
var s;
|
11217
|
+
const n = (s = e.value) == null ? void 0 : s.querySelector("div.ant-table-body");
|
11218
|
+
n == null || n.removeEventListener("scroll", a);
|
11219
|
+
}), {};
|
11220
|
+
}
|
11199
11221
|
function _useDragColumn(e, t) {
|
11200
11222
|
const r = useKgVar();
|
11201
11223
|
useKgTable();
|
@@ -11348,7 +11370,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
11348
11370
|
} = _useLoading(), v = ref(null), {
|
11349
11371
|
renderBodyCell: g
|
11350
11372
|
} = _useRenderBodyCell();
|
11351
|
-
_useResizeObserver$1(v), _useDragColumn(v, u);
|
11373
|
+
_useCacheScrollState(v), _useResizeObserver$1(v), _useDragColumn(v, u);
|
11352
11374
|
const {
|
11353
11375
|
datas: E,
|
11354
11376
|
transformDatas: b
|
@@ -24,6 +24,8 @@ export declare type IUseLoading = {
|
|
24
24
|
export declare function _useLoading(): IUseLoading;
|
25
25
|
export declare type IUseResizeObserver = {};
|
26
26
|
export declare function _useResizeObserver(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>): IUseResizeObserver;
|
27
|
+
export declare type ICacheScrollState = {};
|
28
|
+
export declare function _useCacheScrollState(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>): ICacheScrollState;
|
27
29
|
export declare type IUseDragColumn = {};
|
28
30
|
export declare function _useDragColumn(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>, columns: ComputedRef<ColumnsType<IKgTableRow>>): IUseDragColumn;
|
29
31
|
export interface IUseDatas {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.21.5-beta.
|
3
|
+
"version": "0.21.5-beta.5",
|
4
4
|
"scripts": {
|
5
5
|
"build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
|
6
6
|
"build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
|