jky-component-lib 0.0.141 → 0.0.143
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/es/amap/AClusterMarker/AClusterMarker.vue.d.ts +55 -0
- package/dist/es/amap/AClusterMarker/AClusterMarker.vue.js +198 -0
- package/dist/es/amap/AClusterMarker/AClusterMarker.vue3.js +5 -0
- package/dist/es/amap/AClusterMarker/index.d.ts +4 -0
- package/dist/es/amap/AClusterMarker/index.js +8 -0
- package/dist/es/amap/AClusterMarker/style.css +3 -0
- package/dist/es/amap/AMap.vue.d.ts +2 -2
- package/dist/es/amap/AMap.vue.js +3 -1
- package/dist/es/amap/AMapPicker/AMapPicker.vue.js +1 -1
- package/dist/es/amap/AMarker.vue.d.ts +1 -1
- package/dist/es/amap/index.d.ts +5 -1
- package/dist/es/amap/index.js +4 -0
- package/dist/es/amap/style.css +5 -12
- package/dist/es/amap/style2.css +13 -2
- package/dist/es/amap/style3.css +2 -6
- package/dist/es/animated/AnimatedTransition.vue.d.ts +44 -0
- package/dist/es/animated/AnimatedTransition.vue.js +99 -0
- package/dist/es/animated/AnimatedTransition.vue3.js +5 -0
- package/dist/es/animated/index.d.ts +4 -0
- package/dist/es/animated/index.js +8 -0
- package/dist/es/animated/style.css +6 -0
- package/dist/es/code-mirror-editor/CodeMirrorEditor.vue.js +1 -1
- package/dist/es/components.d.ts +2 -0
- package/dist/es/components.js +9 -2
- package/dist/es/draggable/Draggable.vue.d.ts +78 -0
- package/dist/es/draggable/Draggable.vue.js +130 -0
- package/dist/es/draggable/Draggable.vue3.js +5 -0
- package/dist/es/draggable/index.d.ts +4 -0
- package/dist/es/draggable/index.js +8 -0
- package/dist/es/draggable/style.css +16 -0
- package/dist/es/index.js +8 -1
- package/dist/es/package.json.js +1 -1
- package/dist/es/page-table/ActionColumn.vue.js +4 -3
- package/dist/es/style.css +225 -6
- package/dist/es/styles.css +1 -1
- package/dist/lib/amap/AClusterMarker/AClusterMarker.vue.d.ts +55 -0
- package/dist/lib/amap/AClusterMarker/AClusterMarker.vue.js +198 -0
- package/dist/lib/amap/AClusterMarker/AClusterMarker.vue3.js +5 -0
- package/dist/lib/amap/AClusterMarker/index.d.ts +4 -0
- package/dist/lib/amap/AClusterMarker/index.js +8 -0
- package/dist/lib/amap/AClusterMarker/style.css +3 -0
- package/dist/lib/amap/AMap.vue.d.ts +2 -2
- package/dist/lib/amap/AMap.vue.js +3 -1
- package/dist/lib/amap/AMapPicker/AMapPicker.vue.js +1 -1
- package/dist/lib/amap/AMarker.vue.d.ts +1 -1
- package/dist/lib/amap/index.d.ts +5 -1
- package/dist/lib/amap/index.js +4 -0
- package/dist/lib/amap/style.css +5 -12
- package/dist/lib/amap/style2.css +13 -2
- package/dist/lib/amap/style3.css +2 -6
- package/dist/lib/animated/AnimatedTransition.vue.d.ts +44 -0
- package/dist/lib/animated/AnimatedTransition.vue.js +99 -0
- package/dist/lib/animated/AnimatedTransition.vue3.js +5 -0
- package/dist/lib/animated/index.d.ts +4 -0
- package/dist/lib/animated/index.js +8 -0
- package/dist/lib/animated/style.css +6 -0
- package/dist/lib/code-mirror-editor/CodeMirrorEditor.vue.js +1 -1
- package/dist/lib/components.d.ts +2 -0
- package/dist/lib/components.js +62 -55
- package/dist/lib/draggable/Draggable.vue.d.ts +78 -0
- package/dist/lib/draggable/Draggable.vue.js +130 -0
- package/dist/lib/draggable/Draggable.vue3.js +5 -0
- package/dist/lib/draggable/index.d.ts +4 -0
- package/dist/lib/draggable/index.js +8 -0
- package/dist/lib/draggable/style.css +16 -0
- package/dist/lib/index.js +44 -37
- package/dist/lib/package.json.js +1 -1
- package/dist/lib/page-table/ActionColumn.vue.js +4 -3
- package/dist/lib/style.css +225 -6
- package/dist/lib/styles.css +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
20
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
22
|
+
const vue = require("vue");
|
|
23
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, {
|
|
24
|
+
name: "JkyAClusterMarker",
|
|
25
|
+
inheritAttrs: false
|
|
26
|
+
}), {
|
|
27
|
+
__name: "AClusterMarker",
|
|
28
|
+
props: /* @__PURE__ */ vue.mergeModels({
|
|
29
|
+
points: {},
|
|
30
|
+
gridSize: { default: 60 },
|
|
31
|
+
styles: {},
|
|
32
|
+
visible: { type: Boolean, default: true },
|
|
33
|
+
zoomOnClick: { type: Boolean, default: true },
|
|
34
|
+
minClusterSize: { default: 2 },
|
|
35
|
+
maxZoom: {},
|
|
36
|
+
averageCenter: { type: Boolean, default: false },
|
|
37
|
+
renderClusterMarker: {},
|
|
38
|
+
renderMarker: {},
|
|
39
|
+
enable: { type: Boolean, default: true }
|
|
40
|
+
}, {
|
|
41
|
+
"modelValue": { default: () => [] },
|
|
42
|
+
"modelModifiers": {}
|
|
43
|
+
}),
|
|
44
|
+
emits: /* @__PURE__ */ vue.mergeModels(["click", "mouseover", "mouseout", "ready"], ["update:modelValue"]),
|
|
45
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
46
|
+
const props = __props;
|
|
47
|
+
const emit = __emit;
|
|
48
|
+
const modelValue = vue.useModel(__props, "modelValue");
|
|
49
|
+
const amapContext = vue.inject("amapContext");
|
|
50
|
+
let clusterInstance = null;
|
|
51
|
+
let mapInstance = null;
|
|
52
|
+
vue.onMounted(() => {
|
|
53
|
+
if ((amapContext == null ? void 0 : amapContext.map) && props.enable) {
|
|
54
|
+
initCluster(amapContext.map);
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
function initCluster(map) {
|
|
58
|
+
if (!map || !window.AMap)
|
|
59
|
+
return;
|
|
60
|
+
mapInstance = map;
|
|
61
|
+
if (!window.AMap.MarkerCluster) {
|
|
62
|
+
console.warn("AMap.MarkerCluster 插件未加载,请先加载插件");
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
if (clusterInstance) {
|
|
66
|
+
clusterInstance.setMap(null);
|
|
67
|
+
clusterInstance = null;
|
|
68
|
+
}
|
|
69
|
+
const points = preparePoints();
|
|
70
|
+
const clusterOptions = {
|
|
71
|
+
gridSize: props.gridSize,
|
|
72
|
+
zoomOnClick: props.zoomOnClick,
|
|
73
|
+
minClusterSize: props.minClusterSize,
|
|
74
|
+
averageCenter: props.averageCenter
|
|
75
|
+
};
|
|
76
|
+
if (props.styles && props.styles.length > 0) {
|
|
77
|
+
clusterOptions.styles = props.styles.map((style) => ({
|
|
78
|
+
url: style.url,
|
|
79
|
+
size: style.size ? new window.AMap.Size(style.size[0], style.size[1]) : void 0,
|
|
80
|
+
offset: style.offset ? new window.AMap.Pixel(style.offset[0], style.offset[1]) : void 0,
|
|
81
|
+
textColor: style.textColor,
|
|
82
|
+
textSize: style.textSize
|
|
83
|
+
}));
|
|
84
|
+
}
|
|
85
|
+
if (props.renderClusterMarker) {
|
|
86
|
+
clusterOptions.renderClusterMarker = props.renderClusterMarker;
|
|
87
|
+
}
|
|
88
|
+
if (props.renderMarker) {
|
|
89
|
+
clusterOptions.renderMarker = props.renderMarker;
|
|
90
|
+
}
|
|
91
|
+
clusterInstance = new window.AMap.MarkerCluster(map, points, clusterOptions);
|
|
92
|
+
clusterInstance.on("click", (cluster) => {
|
|
93
|
+
emit("click", cluster);
|
|
94
|
+
});
|
|
95
|
+
clusterInstance.on("mouseover", (cluster) => {
|
|
96
|
+
emit("mouseover", cluster);
|
|
97
|
+
});
|
|
98
|
+
clusterInstance.on("mouseout", (cluster) => {
|
|
99
|
+
emit("mouseout", cluster);
|
|
100
|
+
});
|
|
101
|
+
emit("ready", clusterInstance);
|
|
102
|
+
}
|
|
103
|
+
function preparePoints() {
|
|
104
|
+
const points = props.points || modelValue.value || [];
|
|
105
|
+
return points.map((point) => __spreadValues({
|
|
106
|
+
lnglat: point.lnglat,
|
|
107
|
+
title: point.title,
|
|
108
|
+
content: point.content
|
|
109
|
+
}, point.data));
|
|
110
|
+
}
|
|
111
|
+
function updatePoints(newPoints) {
|
|
112
|
+
if (!clusterInstance)
|
|
113
|
+
return;
|
|
114
|
+
clusterInstance.setMap(null);
|
|
115
|
+
const points = newPoints.map((point) => __spreadValues({
|
|
116
|
+
lnglat: point.lnglat,
|
|
117
|
+
title: point.title,
|
|
118
|
+
content: point.content
|
|
119
|
+
}, point.data));
|
|
120
|
+
clusterInstance.addMarkers(points);
|
|
121
|
+
}
|
|
122
|
+
function clearClusters() {
|
|
123
|
+
if (clusterInstance) {
|
|
124
|
+
clusterInstance.setMap(null);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
function destroy() {
|
|
128
|
+
if (clusterInstance) {
|
|
129
|
+
clusterInstance.setMap(null);
|
|
130
|
+
clusterInstance = null;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
__expose({
|
|
134
|
+
updatePoints,
|
|
135
|
+
clearClusters,
|
|
136
|
+
destroy,
|
|
137
|
+
getClusterInstance: () => clusterInstance
|
|
138
|
+
});
|
|
139
|
+
vue.watch(
|
|
140
|
+
() => props.points,
|
|
141
|
+
(newPoints) => {
|
|
142
|
+
if (clusterInstance && newPoints) {
|
|
143
|
+
updatePoints(newPoints);
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
{ deep: true }
|
|
147
|
+
);
|
|
148
|
+
vue.watch(
|
|
149
|
+
() => modelValue.value,
|
|
150
|
+
(newValue) => {
|
|
151
|
+
if (clusterInstance && newValue) {
|
|
152
|
+
updatePoints(newValue);
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
{ deep: true }
|
|
156
|
+
);
|
|
157
|
+
vue.watch(
|
|
158
|
+
() => props.gridSize,
|
|
159
|
+
() => {
|
|
160
|
+
if (mapInstance && props.enable) {
|
|
161
|
+
initCluster(mapInstance);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
);
|
|
165
|
+
vue.watch(
|
|
166
|
+
() => props.styles,
|
|
167
|
+
() => {
|
|
168
|
+
if (mapInstance && props.enable) {
|
|
169
|
+
initCluster(mapInstance);
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
{ deep: true }
|
|
173
|
+
);
|
|
174
|
+
vue.watch(
|
|
175
|
+
() => props.renderClusterMarker,
|
|
176
|
+
() => {
|
|
177
|
+
if (mapInstance && props.enable) {
|
|
178
|
+
initCluster(mapInstance);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
);
|
|
182
|
+
vue.watch(
|
|
183
|
+
() => props.renderMarker,
|
|
184
|
+
() => {
|
|
185
|
+
if (mapInstance && props.enable) {
|
|
186
|
+
initCluster(mapInstance);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
);
|
|
190
|
+
vue.onUnmounted(() => {
|
|
191
|
+
destroy();
|
|
192
|
+
});
|
|
193
|
+
return (_ctx, _cache) => {
|
|
194
|
+
return vue.renderSlot(_ctx.$slots, "default");
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
}));
|
|
198
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const AClusterMarker_vue_vue_type_script_setup_true_lang = require("./AClusterMarker.vue.js");
|
|
4
|
+
;/* empty css */
|
|
5
|
+
exports.default = AClusterMarker_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const AClusterMarker_vue_vue_type_script_setup_true_lang = require("./AClusterMarker.vue.js");
|
|
4
|
+
;/* empty css */
|
|
5
|
+
const withInstall = require("../../utils/with-install.js");
|
|
6
|
+
const JkyAClusterMarker = withInstall.installWithSFC(AClusterMarker_vue_vue_type_script_setup_true_lang.default);
|
|
7
|
+
exports.JkyAClusterMarker = JkyAClusterMarker;
|
|
8
|
+
exports.default = JkyAClusterMarker;
|
|
@@ -16,20 +16,20 @@ declare const __VLS_component: import('vue').DefineComponent<AMapProps, {
|
|
|
16
16
|
removeMarker: (marker: any) => void;
|
|
17
17
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
18
18
|
click: (data: any) => any;
|
|
19
|
+
ready: (map: any) => any;
|
|
19
20
|
moveend: (center: {
|
|
20
21
|
lng: number;
|
|
21
22
|
lat: number;
|
|
22
23
|
}) => any;
|
|
23
24
|
zoomend: (zoom: number) => any;
|
|
24
|
-
ready: (map: any) => any;
|
|
25
25
|
}, string, import('vue').PublicProps, Readonly<AMapProps> & Readonly<{
|
|
26
26
|
onClick?: ((data: any) => any) | undefined;
|
|
27
|
+
onReady?: ((map: any) => any) | undefined;
|
|
27
28
|
onMoveend?: ((center: {
|
|
28
29
|
lng: number;
|
|
29
30
|
lat: number;
|
|
30
31
|
}) => any) | undefined;
|
|
31
32
|
onZoomend?: ((zoom: number) => any) | undefined;
|
|
32
|
-
onReady?: ((map: any) => any) | undefined;
|
|
33
33
|
}>, {
|
|
34
34
|
width: string;
|
|
35
35
|
height: string;
|
|
@@ -80,7 +80,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
80
80
|
const isMapLoaded = vue.ref(false);
|
|
81
81
|
const controls = vue.ref({});
|
|
82
82
|
const getMapUrl = vue.computed(() => {
|
|
83
|
-
const plugins = [
|
|
83
|
+
const plugins = [
|
|
84
|
+
"AMap.MarkerCluster"
|
|
85
|
+
];
|
|
84
86
|
if (props.showScale)
|
|
85
87
|
plugins.push("AMap.Scale");
|
|
86
88
|
if (props.showHawkEye)
|
|
@@ -110,7 +110,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
110
110
|
token: __props.token,
|
|
111
111
|
zoom: __props.zoom,
|
|
112
112
|
center: __props.center,
|
|
113
|
-
|
|
113
|
+
class: "w-full h-80",
|
|
114
114
|
onClick: handleMapClick
|
|
115
115
|
}, {
|
|
116
116
|
default: vue.withCtx(() => {
|
|
@@ -25,8 +25,8 @@ declare const __VLS_component: import('vue').DefineComponent<AMapMarkerProps, {
|
|
|
25
25
|
onMouseout?: ((marker: any, data: MarkerData) => any) | undefined;
|
|
26
26
|
onMouseover?: ((marker: any, data: MarkerData) => any) | undefined;
|
|
27
27
|
}>, {
|
|
28
|
-
draggable: boolean;
|
|
29
28
|
visible: boolean;
|
|
29
|
+
draggable: boolean;
|
|
30
30
|
updateMode: "incremental" | "full";
|
|
31
31
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
32
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
package/dist/lib/amap/index.d.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { InstallWithSFC } from '../utils';
|
|
2
|
+
import { default as AClusterMarker } from './AClusterMarker';
|
|
2
3
|
import { default as AMap } from './AMap.vue';
|
|
3
4
|
import { default as AMapPicker } from './AMapPicker/AMapPicker.vue';
|
|
4
5
|
import { default as AMarker } from './AMarker.vue';
|
|
5
6
|
import { default as ATrackPlayback } from './ATrackPlayback.vue';
|
|
7
|
+
export type * from './AClusterMarker/types';
|
|
8
|
+
export type * from './types';
|
|
6
9
|
export declare const JkyAMap: InstallWithSFC<typeof AMap>;
|
|
7
10
|
export declare const JkyAMapPicker: InstallWithSFC<typeof AMapPicker>;
|
|
11
|
+
export declare const JkyAClusterMarker: InstallWithSFC<typeof AClusterMarker>;
|
|
8
12
|
export declare const JkyAMarker: InstallWithSFC<typeof AMarker>;
|
|
9
13
|
export declare const JkyATrackPlayback: InstallWithSFC<typeof ATrackPlayback>;
|
|
10
14
|
export default JkyAMap;
|
|
11
|
-
export { AMapPicker, AMarker, ATrackPlayback };
|
|
15
|
+
export { AClusterMarker, AMapPicker, AMarker, ATrackPlayback };
|
package/dist/lib/amap/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const index = require("./AClusterMarker/index.js");
|
|
3
4
|
const AMap_vue_vue_type_script_setup_true_lang = require("./AMap.vue.js");
|
|
4
5
|
;/* empty css */
|
|
5
6
|
const AMapPicker_vue_vue_type_script_setup_true_lang = require("./AMapPicker/AMapPicker.vue.js");
|
|
@@ -10,11 +11,14 @@ const ATrackPlayback_vue_vue_type_script_setup_true_lang = require("./ATrackPlay
|
|
|
10
11
|
const withInstall = require("../utils/with-install.js");
|
|
11
12
|
const JkyAMap = withInstall.installWithSFC(AMap_vue_vue_type_script_setup_true_lang.default);
|
|
12
13
|
const JkyAMapPicker = withInstall.installWithSFC(AMapPicker_vue_vue_type_script_setup_true_lang.default);
|
|
14
|
+
const JkyAClusterMarker = withInstall.installWithSFC(index.JkyAClusterMarker);
|
|
13
15
|
const JkyAMarker = withInstall.installWithSFC(AMarker_vue_vue_type_script_setup_true_lang.default);
|
|
14
16
|
const JkyATrackPlayback = withInstall.installWithSFC(ATrackPlayback_vue_vue_type_script_setup_true_lang.default);
|
|
17
|
+
exports.AClusterMarker = index.JkyAClusterMarker;
|
|
15
18
|
exports.AMapPicker = AMapPicker_vue_vue_type_script_setup_true_lang.default;
|
|
16
19
|
exports.AMarker = AMarker_vue_vue_type_script_setup_true_lang.default;
|
|
17
20
|
exports.ATrackPlayback = ATrackPlayback_vue_vue_type_script_setup_true_lang.default;
|
|
21
|
+
exports.JkyAClusterMarker = JkyAClusterMarker;
|
|
18
22
|
exports.JkyAMap = JkyAMap;
|
|
19
23
|
exports.JkyAMapPicker = JkyAMapPicker;
|
|
20
24
|
exports.JkyAMarker = JkyAMarker;
|
package/dist/lib/amap/style.css
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
/* AMap 高德地图组件样式 */
|
|
2
|
-
.jky-amap-container {
|
|
3
|
-
/* 地图容器样式 */
|
|
4
|
-
position: relative;
|
|
5
|
-
overflow: hidden;
|
|
6
1
|
|
|
7
|
-
|
|
8
|
-
.amap-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
display: none !important;
|
|
13
|
-
}
|
|
2
|
+
/* JkyAMarker 组件样式 - 参考高德官方示例 */
|
|
3
|
+
.amap-icon img,
|
|
4
|
+
.amap-marker-content img {
|
|
5
|
+
width: 25px;
|
|
6
|
+
height: 34px;
|
|
14
7
|
}
|
package/dist/lib/amap/style2.css
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/* AMap 高德地图组件样式 */
|
|
2
|
+
.jky-amap-container {
|
|
3
|
+
/* 地图容器样式 */
|
|
4
|
+
position: relative;
|
|
5
|
+
overflow: hidden;
|
|
1
6
|
|
|
2
|
-
/*
|
|
3
|
-
|
|
7
|
+
/* 隐藏高德地图的 logo 和版权信息(注意:商业使用请遵守高德地图条款) */
|
|
8
|
+
.amap-logo {
|
|
9
|
+
display: none !important;
|
|
10
|
+
}
|
|
11
|
+
.amap-copyright {
|
|
12
|
+
display: none !important;
|
|
13
|
+
}
|
|
14
|
+
}
|
package/dist/lib/amap/style3.css
CHANGED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { AnimatedTransitionProps, AnimatedTransitionSlots } from './types';
|
|
2
|
+
type __VLS_Props = AnimatedTransitionProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
'visible'?: boolean;
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: Readonly<AnimatedTransitionSlots> & AnimatedTransitionSlots;
|
|
9
|
+
refs: {};
|
|
10
|
+
rootEl: any;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
"update:visible": (value: boolean) => any;
|
|
15
|
+
} & {
|
|
16
|
+
afterEnter: () => any;
|
|
17
|
+
afterLeave: () => any;
|
|
18
|
+
beforeEnter: () => any;
|
|
19
|
+
enterCancelled: () => any;
|
|
20
|
+
beforeLeave: () => any;
|
|
21
|
+
leaveCancelled: () => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
+
onAfterEnter?: (() => any) | undefined;
|
|
24
|
+
onAfterLeave?: (() => any) | undefined;
|
|
25
|
+
onBeforeEnter?: (() => any) | undefined;
|
|
26
|
+
onEnterCancelled?: (() => any) | undefined;
|
|
27
|
+
onBeforeLeave?: (() => any) | undefined;
|
|
28
|
+
onLeaveCancelled?: (() => any) | undefined;
|
|
29
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
30
|
+
}>, {
|
|
31
|
+
name: import('./types').AnimationName | string;
|
|
32
|
+
visible: boolean;
|
|
33
|
+
duration: number;
|
|
34
|
+
mode: "if" | "show";
|
|
35
|
+
direction: import('./types').AnimationDirection;
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
20
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
22
|
+
const vue = require("vue");
|
|
23
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, {
|
|
24
|
+
name: "JkyAnimatedTransition"
|
|
25
|
+
}), {
|
|
26
|
+
__name: "AnimatedTransition",
|
|
27
|
+
props: /* @__PURE__ */ vue.mergeModels({
|
|
28
|
+
name: { default: "fade" },
|
|
29
|
+
duration: { default: 300 },
|
|
30
|
+
direction: { default: "right" },
|
|
31
|
+
enabled: { type: Boolean, default: true },
|
|
32
|
+
visible: { type: Boolean, default: true },
|
|
33
|
+
mode: { default: "if" }
|
|
34
|
+
}, {
|
|
35
|
+
"visible": __spreadValues({ type: Boolean }, { default: true }),
|
|
36
|
+
"visibleModifiers": {}
|
|
37
|
+
}),
|
|
38
|
+
emits: /* @__PURE__ */ vue.mergeModels(["beforeEnter", "afterEnter", "enterCancelled", "beforeLeave", "afterLeave", "leaveCancelled"], ["update:visible"]),
|
|
39
|
+
setup(__props, { emit: __emit }) {
|
|
40
|
+
const props = __props;
|
|
41
|
+
const emit = __emit;
|
|
42
|
+
const visible = vue.useModel(__props, "visible");
|
|
43
|
+
function capitalize(str) {
|
|
44
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
45
|
+
}
|
|
46
|
+
const activeClass = vue.computed(() => {
|
|
47
|
+
const { name, direction } = props;
|
|
48
|
+
return {
|
|
49
|
+
enterActiveClass: `animate__animated animate__${name}In${capitalize(direction)}`,
|
|
50
|
+
leaveActiveClass: `animate__animated animate__${name}Out${capitalize(direction)}`
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
function handleBeforeEnter() {
|
|
54
|
+
emit("beforeEnter");
|
|
55
|
+
}
|
|
56
|
+
function handleAfterEnter() {
|
|
57
|
+
emit("afterEnter");
|
|
58
|
+
}
|
|
59
|
+
function handleEnterCancelled() {
|
|
60
|
+
emit("enterCancelled");
|
|
61
|
+
}
|
|
62
|
+
function handleBeforeLeave() {
|
|
63
|
+
emit("beforeLeave");
|
|
64
|
+
}
|
|
65
|
+
function handleAfterLeave() {
|
|
66
|
+
emit("afterLeave");
|
|
67
|
+
}
|
|
68
|
+
function handleLeaveCancelled() {
|
|
69
|
+
emit("leaveCancelled");
|
|
70
|
+
}
|
|
71
|
+
return (_ctx, _cache) => {
|
|
72
|
+
return __props.enabled && __props.direction ? (vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
73
|
+
key: 0,
|
|
74
|
+
name: "custom-classes",
|
|
75
|
+
"enter-active-class": activeClass.value.enterActiveClass,
|
|
76
|
+
"leave-active-class": activeClass.value.leaveActiveClass,
|
|
77
|
+
onBeforeEnter: handleBeforeEnter,
|
|
78
|
+
onAfterEnter: handleAfterEnter,
|
|
79
|
+
onEnterCancelled: handleEnterCancelled,
|
|
80
|
+
onBeforeLeave: handleBeforeLeave,
|
|
81
|
+
onAfterLeave: handleAfterLeave,
|
|
82
|
+
onLeaveCancelled: handleLeaveCancelled
|
|
83
|
+
}, {
|
|
84
|
+
default: vue.withCtx(() => [
|
|
85
|
+
(__props.mode === "if" ? visible.value : true) ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
86
|
+
key: 0,
|
|
87
|
+
style: vue.normalizeStyle({ "--animate-duration": `${__props.duration}ms` })
|
|
88
|
+
}, [
|
|
89
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
90
|
+
], 4)), [
|
|
91
|
+
[vue.vShow, __props.mode === "show" ? visible.value : true]
|
|
92
|
+
]) : vue.createCommentVNode("", true)
|
|
93
|
+
]),
|
|
94
|
+
_: 3
|
|
95
|
+
}, 8, ["enter-active-class", "leave-active-class"])) : vue.renderSlot(_ctx.$slots, "default", { key: 1 });
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
}));
|
|
99
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const AnimatedTransition_vue_vue_type_script_setup_true_lang = require("./AnimatedTransition.vue.js");
|
|
4
|
+
;/* empty css */
|
|
5
|
+
exports.default = AnimatedTransition_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const AnimatedTransition_vue_vue_type_script_setup_true_lang = require("./AnimatedTransition.vue.js");
|
|
4
|
+
;/* empty css */
|
|
5
|
+
const withInstall = require("../utils/with-install.js");
|
|
6
|
+
const JkyAnimatedTransition = withInstall.installWithSFC(AnimatedTransition_vue_vue_type_script_setup_true_lang.default);
|
|
7
|
+
exports.JkyAnimatedTransition = JkyAnimatedTransition;
|
|
8
|
+
exports.default = JkyAnimatedTransition;
|
|
@@ -30,7 +30,7 @@ const state = require("@codemirror/state");
|
|
|
30
30
|
const themeOneDark = require("@codemirror/theme-one-dark");
|
|
31
31
|
const view = require("@codemirror/view");
|
|
32
32
|
const codemirror = require("codemirror");
|
|
33
|
-
const _hoisted_1 = { class: "j-code-mirror-editor min-h-
|
|
33
|
+
const _hoisted_1 = { class: "j-code-mirror-editor min-h-0 min-w-full" };
|
|
34
34
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, {
|
|
35
35
|
name: "JkyCodeMirrorEditor"
|
|
36
36
|
}), {
|
package/dist/lib/components.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Plugin } from 'vue';
|
|
2
2
|
export * from './add-input';
|
|
3
3
|
export * from './amap';
|
|
4
|
+
export * from './animated';
|
|
4
5
|
export * from './button';
|
|
5
6
|
export * from './button-nav';
|
|
6
7
|
export * from './code-mirror-editor';
|
|
8
|
+
export * from './draggable';
|
|
7
9
|
export * from './form';
|
|
8
10
|
export * from './menu';
|
|
9
11
|
export * from './modal';
|