@deot/vc 1.0.32 → 1.0.33
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/index.d.ts +8 -4
- package/dist/index.iife.js +8 -6
- package/dist/index.umd.cjs +8 -6
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -7402,7 +7402,7 @@ export declare const Components: {
|
|
|
7402
7402
|
};
|
|
7403
7403
|
}>, () => VNode<RendererNode, RendererElement, {
|
|
7404
7404
|
[key: string]: any;
|
|
7405
|
-
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin,
|
|
7405
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "resize"[], "resize", PublicProps, Readonly<ExtractPropTypes< {
|
|
7406
7406
|
tag: {
|
|
7407
7407
|
type: StringConstructor;
|
|
7408
7408
|
default: string;
|
|
@@ -7411,7 +7411,9 @@ export declare const Components: {
|
|
|
7411
7411
|
type: BooleanConstructor;
|
|
7412
7412
|
default: boolean;
|
|
7413
7413
|
};
|
|
7414
|
-
}>> & Readonly<{
|
|
7414
|
+
}>> & Readonly<{
|
|
7415
|
+
onResize?: ((...args: any[]) => any) | undefined;
|
|
7416
|
+
}>, {
|
|
7415
7417
|
fill: boolean;
|
|
7416
7418
|
tag: string;
|
|
7417
7419
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -7426,7 +7428,7 @@ export declare const Components: {
|
|
|
7426
7428
|
};
|
|
7427
7429
|
}>, () => VNode<RendererNode, RendererElement, {
|
|
7428
7430
|
[key: string]: any;
|
|
7429
|
-
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin,
|
|
7431
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "resize"[], "resize", PublicProps, Readonly<ExtractPropTypes< {
|
|
7430
7432
|
tag: {
|
|
7431
7433
|
type: StringConstructor;
|
|
7432
7434
|
default: string;
|
|
@@ -7435,7 +7437,9 @@ export declare const Components: {
|
|
|
7435
7437
|
type: BooleanConstructor;
|
|
7436
7438
|
default: boolean;
|
|
7437
7439
|
};
|
|
7438
|
-
}>> & Readonly<{
|
|
7440
|
+
}>> & Readonly<{
|
|
7441
|
+
onResize?: ((...args: any[]) => any) | undefined;
|
|
7442
|
+
}>, {
|
|
7439
7443
|
fill: boolean;
|
|
7440
7444
|
tag: string;
|
|
7441
7445
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
package/dist/index.iife.js
CHANGED
|
@@ -35991,7 +35991,7 @@ var Vc = (function (exports, vue) {
|
|
|
35991
35991
|
const Resizer = vue.defineComponent({
|
|
35992
35992
|
name: COMPONENT_NAME$N,
|
|
35993
35993
|
props: props$A,
|
|
35994
|
-
|
|
35994
|
+
emits: ["resize"],
|
|
35995
35995
|
setup(props2, { emit, slots, expose }) {
|
|
35996
35996
|
const width = vue.ref(0);
|
|
35997
35997
|
const height = vue.ref(0);
|
|
@@ -36020,8 +36020,10 @@ var Vc = (function (exports, vue) {
|
|
|
36020
36020
|
heightChanged && (height.value = height$);
|
|
36021
36021
|
widthChanged && (width.value = width$);
|
|
36022
36022
|
if (heightChanged || widthChanged) {
|
|
36023
|
-
|
|
36024
|
-
|
|
36023
|
+
emit("resize", {
|
|
36024
|
+
...currentExposed.value,
|
|
36025
|
+
inited: hasInitial
|
|
36026
|
+
});
|
|
36025
36027
|
}
|
|
36026
36028
|
hasInitial = true;
|
|
36027
36029
|
};
|
|
@@ -39059,8 +39061,8 @@ var Vc = (function (exports, vue) {
|
|
|
39059
39061
|
});
|
|
39060
39062
|
await refreshLayout(0, rebuildData.value.length);
|
|
39061
39063
|
};
|
|
39062
|
-
const handleResize = throttle$1(async () => {
|
|
39063
|
-
if (!wrapper.value) return;
|
|
39064
|
+
const handleResize = throttle$1(async (e) => {
|
|
39065
|
+
if (!wrapper.value || e && e.inited === false) return;
|
|
39064
39066
|
const isNeedRefreshLayout = rebuildData.value.some((i) => !i.isPlaceholder);
|
|
39065
39067
|
if (isNeedRefreshLayout) {
|
|
39066
39068
|
const oldFirstItemIndex = firstItemIndex.value;
|
|
@@ -40607,7 +40609,7 @@ var Vc = (function (exports, vue) {
|
|
|
40607
40609
|
return vue.createVNode(Resizer, {
|
|
40608
40610
|
"key": mergeData.id,
|
|
40609
40611
|
"fill": false,
|
|
40610
|
-
"
|
|
40612
|
+
"onResize": (e) => handleResize(e, index)
|
|
40611
40613
|
}, {
|
|
40612
40614
|
default: () => [slots.default?.({
|
|
40613
40615
|
row: mergeData,
|
package/dist/index.umd.cjs
CHANGED
|
@@ -35994,7 +35994,7 @@
|
|
|
35994
35994
|
const Resizer = vue.defineComponent({
|
|
35995
35995
|
name: COMPONENT_NAME$N,
|
|
35996
35996
|
props: props$A,
|
|
35997
|
-
|
|
35997
|
+
emits: ["resize"],
|
|
35998
35998
|
setup(props2, { emit, slots, expose }) {
|
|
35999
35999
|
const width = vue.ref(0);
|
|
36000
36000
|
const height = vue.ref(0);
|
|
@@ -36023,8 +36023,10 @@
|
|
|
36023
36023
|
heightChanged && (height.value = height$);
|
|
36024
36024
|
widthChanged && (width.value = width$);
|
|
36025
36025
|
if (heightChanged || widthChanged) {
|
|
36026
|
-
|
|
36027
|
-
|
|
36026
|
+
emit("resize", {
|
|
36027
|
+
...currentExposed.value,
|
|
36028
|
+
inited: hasInitial
|
|
36029
|
+
});
|
|
36028
36030
|
}
|
|
36029
36031
|
hasInitial = true;
|
|
36030
36032
|
};
|
|
@@ -39062,8 +39064,8 @@
|
|
|
39062
39064
|
});
|
|
39063
39065
|
await refreshLayout(0, rebuildData.value.length);
|
|
39064
39066
|
};
|
|
39065
|
-
const handleResize = throttle$1(async () => {
|
|
39066
|
-
if (!wrapper.value) return;
|
|
39067
|
+
const handleResize = throttle$1(async (e) => {
|
|
39068
|
+
if (!wrapper.value || e && e.inited === false) return;
|
|
39067
39069
|
const isNeedRefreshLayout = rebuildData.value.some((i) => !i.isPlaceholder);
|
|
39068
39070
|
if (isNeedRefreshLayout) {
|
|
39069
39071
|
const oldFirstItemIndex = firstItemIndex.value;
|
|
@@ -40610,7 +40612,7 @@
|
|
|
40610
40612
|
return vue.createVNode(Resizer, {
|
|
40611
40613
|
"key": mergeData.id,
|
|
40612
40614
|
"fill": false,
|
|
40613
|
-
"
|
|
40615
|
+
"onResize": (e) => handleResize(e, index)
|
|
40614
40616
|
}, {
|
|
40615
40617
|
default: () => [slots.default?.({
|
|
40616
40618
|
row: mergeData,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deot/vc",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.33",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@deot/vc-components": "^1.0.
|
|
23
|
-
"@deot/vc-hooks": "^1.0.
|
|
24
|
-
"@deot/vc-shared": "^1.0.
|
|
22
|
+
"@deot/vc-components": "^1.0.33",
|
|
23
|
+
"@deot/vc-hooks": "^1.0.33",
|
|
24
|
+
"@deot/vc-shared": "^1.0.33"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"vue": "*"
|