@vsleem-realsee-viewer/projection-plugin 2.0.26 → 2.0.27
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/README.internal.md +1 -8
- package/dist/{BimControl-DK6r3RsG.mjs → BimControl-CpgfGbZs.mjs} +17 -14
- package/dist/{CadControl-Ci05-ZLE.mjs → CadControl-Ck04dPQk.mjs} +30 -28
- package/dist/{GeoControl-BIk3zYKz.mjs → GeoControl-BrxCe3nL.mjs} +2612 -2222
- package/dist/ScaleControl-Kc5dDqHm.mjs +75 -0
- package/dist/components/BimControl.vue.d.ts +6 -9
- package/dist/components/CadControl.vue.d.ts +5 -9
- package/dist/components/ConfigProvider.vue.d.ts +2 -2
- package/dist/components/GeoControl.vue.d.ts +6 -10
- package/dist/components/ProjectionViewer.vue.d.ts +13 -7
- package/dist/components/ScaleControl.vue.d.ts +3 -7
- package/dist/components/SpaceMapViewer.vue.d.ts +3 -2
- package/dist/enums/index.d.ts +3 -4
- package/dist/{index-DalKZ4tG.mjs → index-DCpzaQH9.mjs} +13 -13
- package/dist/{index-CGohpb9V.mjs → index-rvgozCFN.mjs} +2125 -2115
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.mjs +6 -7
- package/dist/index.umd.js +56 -52
- package/dist/{ja_JP-C_c0TAsg.mjs → ja_JP-u4KITlU9.mjs} +1 -1
- package/dist/types/antd.d.ts +0 -10
- package/dist/types/projection.d.ts +13 -3
- package/package.json +3 -3
- package/dist/ScaleControl-Dz7X996B.mjs +0 -72
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { defineComponent as h, ref as v, computed as m, watch as w, onMounted as y, createElementBlock as S, openBlock as C, createElementVNode as a, createVNode as f, createTextVNode as c, toDisplayString as r, unref as n, withCtx as E } from "vue";
|
|
2
|
+
import { Point as N } from "@vsleem-realsee-viewer/shared";
|
|
3
|
+
import { x as A, A as z, W as B, X as L, E as P } from "./index-rvgozCFN.mjs";
|
|
4
|
+
const V = { class: "vsleem-scale-control" }, $ = { class: "scale-wrapper" }, k = { class: "title-wrapper" }, U = { style: { color: "#5bb36f" } }, D = { style: { color: "#5bb36f" } }, I = /* @__PURE__ */ h({
|
|
5
|
+
name: "ScaleControl",
|
|
6
|
+
__name: "ScaleControl",
|
|
7
|
+
props: {
|
|
8
|
+
mapSetting: {},
|
|
9
|
+
currentProject: {},
|
|
10
|
+
currentModel: {},
|
|
11
|
+
points: {},
|
|
12
|
+
connected: { type: Boolean }
|
|
13
|
+
},
|
|
14
|
+
emits: ["change"],
|
|
15
|
+
setup(_, { expose: b, emit: M }) {
|
|
16
|
+
const s = _, [t] = A("ScaleControl"), l = v(""), i = v(1), p = m(() => [
|
|
17
|
+
{ label: `${t.value?.millimeter}(mm)`, value: 1 },
|
|
18
|
+
{ label: `${t.value?.meter}(m)`, value: 1e3 }
|
|
19
|
+
]), x = m(() => p.value.find((o) => o.value === i.value));
|
|
20
|
+
w(() => s.points, d, { deep: !0 }), y(() => {
|
|
21
|
+
d();
|
|
22
|
+
});
|
|
23
|
+
function d() {
|
|
24
|
+
if (s.points?.length === 2) {
|
|
25
|
+
const [o, e] = s.points || [];
|
|
26
|
+
l.value = N.distXY(o, e)?.toFixed(2);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function g() {
|
|
30
|
+
if (Number(l.value) > 0) {
|
|
31
|
+
const o = x.value?.value || 1;
|
|
32
|
+
return { points: [
|
|
33
|
+
{ x: 0, y: 0, z: 0 },
|
|
34
|
+
{ x: Number(l.value) * o, y: 0, z: 0 }
|
|
35
|
+
] };
|
|
36
|
+
} else
|
|
37
|
+
throw L.error(`${t.value?.pleaseEnter}${t.value?.actualLength}`), new Error("Actual length is a required field");
|
|
38
|
+
}
|
|
39
|
+
return b({
|
|
40
|
+
getData: g
|
|
41
|
+
}), (o, e) => (C(), S("div", V, [
|
|
42
|
+
a("div", $, [
|
|
43
|
+
a("div", k, [
|
|
44
|
+
a("div", null, [
|
|
45
|
+
c(r(n(t)?.pleaseEnter) + " ", 1),
|
|
46
|
+
a("span", U, r(n(t)?.locationPoint1), 1),
|
|
47
|
+
e[2] || (e[2] = c(" → ", -1)),
|
|
48
|
+
a("span", D, r(n(t)?.locationPoint2), 1),
|
|
49
|
+
c(" " + r(n(t)?.actualLength), 1)
|
|
50
|
+
])
|
|
51
|
+
]),
|
|
52
|
+
f(n(z), {
|
|
53
|
+
value: l.value,
|
|
54
|
+
"onUpdate:value": e[1] || (e[1] = (u) => l.value = u),
|
|
55
|
+
size: "large",
|
|
56
|
+
style: { width: "350px", "border-radius": "8px", overflow: "hidden" }
|
|
57
|
+
}, {
|
|
58
|
+
addonAfter: E(() => [
|
|
59
|
+
f(n(B), {
|
|
60
|
+
value: i.value,
|
|
61
|
+
"onUpdate:value": e[0] || (e[0] = (u) => i.value = u),
|
|
62
|
+
size: "large",
|
|
63
|
+
style: { width: "150px", "background-color": "#fff" },
|
|
64
|
+
options: p.value
|
|
65
|
+
}, null, 8, ["value", "options"])
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
}, 8, ["value"])
|
|
69
|
+
])
|
|
70
|
+
]));
|
|
71
|
+
}
|
|
72
|
+
}), F = /* @__PURE__ */ P(I, [["__scopeId", "data-v-7b1be5e6"]]);
|
|
73
|
+
export {
|
|
74
|
+
F as default
|
|
75
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { Point,
|
|
2
|
-
|
|
3
|
-
currentModel?: Coordinate;
|
|
4
|
-
points?: Point[];
|
|
5
|
-
};
|
|
1
|
+
import { Point, Vector3 } from '@vsleem-realsee-viewer/shared';
|
|
2
|
+
import { ControlProps } from '../types';
|
|
6
3
|
declare function setPoint1(position: Vector3): void;
|
|
7
4
|
declare function setPoint2(position: Vector3): void;
|
|
8
5
|
declare function getData(): {
|
|
@@ -12,7 +9,7 @@ declare function __VLS_template(): {
|
|
|
12
9
|
attrs: Partial<{}>;
|
|
13
10
|
slots: {
|
|
14
11
|
bimViewer?(_: {
|
|
15
|
-
currentModel: Coordinate | undefined;
|
|
12
|
+
currentModel: import('@vsleem-realsee-viewer/shared').Coordinate | undefined;
|
|
16
13
|
points: {
|
|
17
14
|
x: number;
|
|
18
15
|
y: number;
|
|
@@ -27,7 +24,7 @@ declare function __VLS_template(): {
|
|
|
27
24
|
hasGeo: boolean;
|
|
28
25
|
hasAngle: boolean;
|
|
29
26
|
plane: string;
|
|
30
|
-
projection: (r: import('@vsleem-realsee-viewer/shared').RelativeMap, srcCoordinate?: Coordinate, dstCoordinate?: Coordinate) => Point | undefined;
|
|
27
|
+
projection: (r: import('@vsleem-realsee-viewer/shared').RelativeMap, srcCoordinate?: import('@vsleem-realsee-viewer/shared').Coordinate, dstCoordinate?: import('@vsleem-realsee-viewer/shared').Coordinate) => Point | undefined;
|
|
31
28
|
}[];
|
|
32
29
|
setPoint1: typeof setPoint1;
|
|
33
30
|
setPoint2: typeof setPoint2;
|
|
@@ -37,9 +34,9 @@ declare function __VLS_template(): {
|
|
|
37
34
|
rootEl: HTMLDivElement;
|
|
38
35
|
};
|
|
39
36
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
40
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
37
|
+
declare const __VLS_component: import('vue').DefineComponent<ControlProps, {
|
|
41
38
|
getData: typeof getData;
|
|
42
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<
|
|
39
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ControlProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
43
40
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
44
41
|
export default _default;
|
|
45
42
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import { Point
|
|
2
|
-
|
|
3
|
-
currentModel?: Coordinate;
|
|
4
|
-
points?: Point[];
|
|
5
|
-
connected?: boolean;
|
|
6
|
-
};
|
|
1
|
+
import { Point } from '@vsleem-realsee-viewer/shared';
|
|
2
|
+
import { ControlProps } from '../types';
|
|
7
3
|
declare function getData(): {
|
|
8
4
|
points: {
|
|
9
5
|
x: number;
|
|
@@ -19,14 +15,14 @@ declare function getData(): {
|
|
|
19
15
|
hasGeo: boolean;
|
|
20
16
|
hasAngle: boolean;
|
|
21
17
|
plane: string;
|
|
22
|
-
projection: (r: import('@vsleem-realsee-viewer/shared').RelativeMap, srcCoordinate?: Coordinate, dstCoordinate?: Coordinate) => Point | undefined;
|
|
18
|
+
projection: (r: import('@vsleem-realsee-viewer/shared').RelativeMap, srcCoordinate?: import('@vsleem-realsee-viewer/shared').Coordinate, dstCoordinate?: import('@vsleem-realsee-viewer/shared').Coordinate) => Point | undefined;
|
|
23
19
|
}[];
|
|
24
20
|
};
|
|
25
|
-
declare const _default: import('vue').DefineComponent<
|
|
21
|
+
declare const _default: import('vue').DefineComponent<ControlProps, {
|
|
26
22
|
getData: typeof getData;
|
|
27
23
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
28
24
|
change: (...args: any[]) => void;
|
|
29
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
25
|
+
}, string, import('vue').PublicProps, Readonly<ControlProps> & Readonly<{
|
|
30
26
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
31
27
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
32
28
|
canvasElRef: HTMLCanvasElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AppSetting } from '../types';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
3
|
attrs: Partial<{}>;
|
|
4
4
|
slots: {
|
|
@@ -8,7 +8,7 @@ declare function __VLS_template(): {
|
|
|
8
8
|
rootEl: any;
|
|
9
9
|
};
|
|
10
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<AppSetting, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AppSetting> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
12
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
13
|
export default _default;
|
|
14
14
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
mapSetting?: MapSetting;
|
|
5
|
-
currentModel?: Coordinate;
|
|
6
|
-
points?: Point[];
|
|
7
|
-
};
|
|
1
|
+
import { Point } from '@vsleem-realsee-viewer/shared';
|
|
2
|
+
import { ControlProps } from '../types';
|
|
8
3
|
declare function getData(): {
|
|
9
4
|
points: Point[];
|
|
5
|
+
mapType: string | undefined;
|
|
10
6
|
};
|
|
11
|
-
declare const _default: import('vue').DefineComponent<
|
|
7
|
+
declare const _default: import('vue').DefineComponent<ControlProps, {
|
|
12
8
|
getData: typeof getData;
|
|
13
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<
|
|
14
|
-
mapSetting: MapSetting;
|
|
9
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ControlProps> & Readonly<{}>, {
|
|
10
|
+
mapSetting: import('..').MapSetting;
|
|
15
11
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
16
12
|
mapControlElRef: HTMLDivElement;
|
|
17
13
|
mapElRef: HTMLDivElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Coordinate, ProjectionModel, ViewModel } from '@vsleem-realsee-viewer/shared';
|
|
1
|
+
import { Coordinate, ProjectionModel, ProjectModel, ViewModel } from '@vsleem-realsee-viewer/shared';
|
|
2
2
|
import { ProjectionProps } from '../types';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
4
|
attrs: Partial<{}>;
|
|
@@ -42,11 +42,12 @@ declare function __VLS_template(): {
|
|
|
42
42
|
$props: {
|
|
43
43
|
readonly appSetting: import('..').AppSetting;
|
|
44
44
|
readonly mapSetting?: import('..').MapSetting | undefined;
|
|
45
|
+
readonly currentProject?: ProjectModel | undefined;
|
|
45
46
|
readonly srcCoordinate: Coordinate;
|
|
46
47
|
readonly dstCoordinate: Coordinate;
|
|
47
48
|
readonly srcModelType?: number[] | undefined;
|
|
48
49
|
readonly dstModelType?: number[] | undefined;
|
|
49
|
-
readonly
|
|
50
|
+
readonly srcMappingDetail?: ProjectionModel | undefined;
|
|
50
51
|
readonly srcHeight?: number | undefined;
|
|
51
52
|
readonly onSubmit?: ((...args: any[]) => any) | undefined;
|
|
52
53
|
readonly onChangeModel?: ((...args: any[]) => any) | undefined;
|
|
@@ -71,11 +72,12 @@ declare function __VLS_template(): {
|
|
|
71
72
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
72
73
|
appSetting: import('..').AppSetting;
|
|
73
74
|
mapSetting?: import('..').MapSetting;
|
|
75
|
+
currentProject?: ProjectModel;
|
|
74
76
|
srcCoordinate: Coordinate;
|
|
75
77
|
dstCoordinate: Coordinate;
|
|
76
78
|
srcModelType?: number[];
|
|
77
79
|
dstModelType?: number[];
|
|
78
|
-
|
|
80
|
+
srcMappingDetail?: ProjectionModel;
|
|
79
81
|
srcHeight?: number;
|
|
80
82
|
}> & Readonly<{
|
|
81
83
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
@@ -108,11 +110,12 @@ declare function __VLS_template(): {
|
|
|
108
110
|
} & Readonly<{}> & Omit<Readonly<{
|
|
109
111
|
appSetting: import('..').AppSetting;
|
|
110
112
|
mapSetting?: import('..').MapSetting;
|
|
113
|
+
currentProject?: ProjectModel;
|
|
111
114
|
srcCoordinate: Coordinate;
|
|
112
115
|
dstCoordinate: Coordinate;
|
|
113
116
|
srcModelType?: number[];
|
|
114
117
|
dstModelType?: number[];
|
|
115
|
-
|
|
118
|
+
srcMappingDetail?: ProjectionModel;
|
|
116
119
|
srcHeight?: number;
|
|
117
120
|
}> & Readonly<{
|
|
118
121
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
@@ -171,11 +174,12 @@ declare const __VLS_component: import('vue').DefineComponent<ProjectionProps, {}
|
|
|
171
174
|
$props: {
|
|
172
175
|
readonly appSetting: import('..').AppSetting;
|
|
173
176
|
readonly mapSetting?: import('..').MapSetting | undefined;
|
|
177
|
+
readonly currentProject?: ProjectModel | undefined;
|
|
174
178
|
readonly srcCoordinate: Coordinate;
|
|
175
179
|
readonly dstCoordinate: Coordinate;
|
|
176
180
|
readonly srcModelType?: number[] | undefined;
|
|
177
181
|
readonly dstModelType?: number[] | undefined;
|
|
178
|
-
readonly
|
|
182
|
+
readonly srcMappingDetail?: ProjectionModel | undefined;
|
|
179
183
|
readonly srcHeight?: number | undefined;
|
|
180
184
|
readonly onSubmit?: ((...args: any[]) => any) | undefined;
|
|
181
185
|
readonly onChangeModel?: ((...args: any[]) => any) | undefined;
|
|
@@ -200,11 +204,12 @@ declare const __VLS_component: import('vue').DefineComponent<ProjectionProps, {}
|
|
|
200
204
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
201
205
|
appSetting: import('..').AppSetting;
|
|
202
206
|
mapSetting?: import('..').MapSetting;
|
|
207
|
+
currentProject?: ProjectModel;
|
|
203
208
|
srcCoordinate: Coordinate;
|
|
204
209
|
dstCoordinate: Coordinate;
|
|
205
210
|
srcModelType?: number[];
|
|
206
211
|
dstModelType?: number[];
|
|
207
|
-
|
|
212
|
+
srcMappingDetail?: ProjectionModel;
|
|
208
213
|
srcHeight?: number;
|
|
209
214
|
}> & Readonly<{
|
|
210
215
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
@@ -237,11 +242,12 @@ declare const __VLS_component: import('vue').DefineComponent<ProjectionProps, {}
|
|
|
237
242
|
} & Readonly<{}> & Omit<Readonly<{
|
|
238
243
|
appSetting: import('..').AppSetting;
|
|
239
244
|
mapSetting?: import('..').MapSetting;
|
|
245
|
+
currentProject?: ProjectModel;
|
|
240
246
|
srcCoordinate: Coordinate;
|
|
241
247
|
dstCoordinate: Coordinate;
|
|
242
248
|
srcModelType?: number[];
|
|
243
249
|
dstModelType?: number[];
|
|
244
|
-
|
|
250
|
+
srcMappingDetail?: ProjectionModel;
|
|
245
251
|
srcHeight?: number;
|
|
246
252
|
}> & Readonly<{
|
|
247
253
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
currentModel?: Coordinate;
|
|
4
|
-
points?: Point[];
|
|
5
|
-
};
|
|
1
|
+
import { ControlProps } from '../types';
|
|
6
2
|
declare function getData(): {
|
|
7
3
|
points: {
|
|
8
4
|
x: number;
|
|
@@ -10,11 +6,11 @@ declare function getData(): {
|
|
|
10
6
|
z: number;
|
|
11
7
|
}[];
|
|
12
8
|
};
|
|
13
|
-
declare const _default: import('vue').DefineComponent<
|
|
9
|
+
declare const _default: import('vue').DefineComponent<ControlProps, {
|
|
14
10
|
getData: typeof getData;
|
|
15
11
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
12
|
change: (...args: any[]) => void;
|
|
17
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<ControlProps> & Readonly<{
|
|
18
14
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
19
15
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
20
16
|
export default _default;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { Coordinate, ProjectionModel } from '@vsleem-realsee-viewer/shared';
|
|
1
|
+
import { Coordinate, ProjectionModel, ProjectModel } from '@vsleem-realsee-viewer/shared';
|
|
2
2
|
import { AppSetting, MapSetting } from '../types';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
appSetting: AppSetting;
|
|
5
5
|
mapSetting?: MapSetting;
|
|
6
|
+
currentProject?: ProjectModel;
|
|
6
7
|
srcCoordinate: Coordinate;
|
|
7
8
|
dstCoordinate: Coordinate;
|
|
8
9
|
srcModelType?: number[];
|
|
9
10
|
dstModelType?: number[];
|
|
10
|
-
|
|
11
|
+
srcMappingDetail?: ProjectionModel;
|
|
11
12
|
srcHeight?: number;
|
|
12
13
|
};
|
|
13
14
|
declare function getData(): ProjectionModel;
|
package/dist/enums/index.d.ts
CHANGED
|
@@ -4,8 +4,7 @@ export declare enum MappingType {
|
|
|
4
4
|
ScaleMapping = 2 /** 比例尺映射 */,
|
|
5
5
|
FixedMapping = 3 /**固定映射(如空间首次绑定模型并且模型是BIM直接映射) */
|
|
6
6
|
}
|
|
7
|
-
export declare enum
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
ja_JP = "ja_JP"
|
|
7
|
+
export declare enum PointActionType {
|
|
8
|
+
Point1 = 0,
|
|
9
|
+
Point2 = 1
|
|
11
10
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Q as k, P as G, d as L, T as M, U as Q, a as U, _ as m, f as W, b as I, t as j, V as x } from "./index-rvgozCFN.mjs";
|
|
2
2
|
import { defineComponent as q, computed as o, ref as B, watch as H, createVNode as p, Fragment as J } from "vue";
|
|
3
3
|
const K = {
|
|
4
4
|
small: 8,
|
|
@@ -42,10 +42,10 @@ const d = q({
|
|
|
42
42
|
}, {
|
|
43
43
|
immediate: !0
|
|
44
44
|
});
|
|
45
|
-
const b = o(() => e.align === void 0 && e.direction === "horizontal" ? "center" : e.align),
|
|
45
|
+
const b = o(() => e.align === void 0 && e.direction === "horizontal" ? "center" : e.align), V = o(() => U(l.value, T.value, `${l.value}-${e.direction}`, {
|
|
46
46
|
[`${l.value}-rtl`]: z.value === "rtl",
|
|
47
47
|
[`${l.value}-align-${b.value}`]: b.value
|
|
48
|
-
})),
|
|
48
|
+
})), D = o(() => z.value === "rtl" ? "marginLeft" : "marginRight"), E = o(() => {
|
|
49
49
|
const t = {};
|
|
50
50
|
return h.value && (t.columnGap = `${y.value}px`, t.rowGap = `${r.value}px`), m(m({}, t), e.wrap && {
|
|
51
51
|
flexWrap: "wrap",
|
|
@@ -56,22 +56,22 @@ const d = q({
|
|
|
56
56
|
var t, a;
|
|
57
57
|
const {
|
|
58
58
|
wrap: i,
|
|
59
|
-
direction:
|
|
59
|
+
direction: R = "horizontal"
|
|
60
60
|
} = e, C = (t = s.default) === null || t === void 0 ? void 0 : t.call(s), _ = W(C), w = _.length;
|
|
61
61
|
if (w === 0)
|
|
62
62
|
return null;
|
|
63
|
-
const c = (a = s.split) === null || a === void 0 ? void 0 : a.call(s), A = `${l.value}-item`,
|
|
63
|
+
const c = (a = s.split) === null || a === void 0 ? void 0 : a.call(s), A = `${l.value}-item`, N = y.value, S = w - 1;
|
|
64
64
|
return p("div", I(I({}, f), {}, {
|
|
65
|
-
class: [
|
|
66
|
-
style: [
|
|
67
|
-
}), [_.map((
|
|
68
|
-
let $ = C.indexOf(
|
|
65
|
+
class: [V.value, f.class],
|
|
66
|
+
style: [E.value, f.style]
|
|
67
|
+
}), [_.map((O, u) => {
|
|
68
|
+
let $ = C.indexOf(O);
|
|
69
69
|
$ === -1 && ($ = `$$space-${u}`);
|
|
70
70
|
let v = {};
|
|
71
|
-
return h.value || (
|
|
72
|
-
marginBottom: `${
|
|
71
|
+
return h.value || (R === "vertical" ? u < S && (v = {
|
|
72
|
+
marginBottom: `${N / (c ? 2 : 1)}px`
|
|
73
73
|
}) : v = m(m({}, u < S && {
|
|
74
|
-
[
|
|
74
|
+
[D.value]: `${N / (c ? 2 : 1)}px`
|
|
75
75
|
}), i && {
|
|
76
76
|
paddingBottom: `${r.value}px`
|
|
77
77
|
})), P(p(J, {
|
|
@@ -79,7 +79,7 @@ const d = q({
|
|
|
79
79
|
}, [p("div", {
|
|
80
80
|
class: A,
|
|
81
81
|
style: v
|
|
82
|
-
}, [
|
|
82
|
+
}, [O]), u < S && c && p("span", {
|
|
83
83
|
class: `${A}-split`,
|
|
84
84
|
style: v
|
|
85
85
|
}, [c])]));
|