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
package/dist/lib/components.js
CHANGED
|
@@ -1,60 +1,67 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index$
|
|
4
|
-
const index = require("./amap/index.js");
|
|
5
|
-
const index$
|
|
6
|
-
const index$
|
|
7
|
-
const index$
|
|
8
|
-
const index$
|
|
9
|
-
const index$
|
|
10
|
-
const index$
|
|
11
|
-
const index$
|
|
12
|
-
const index$
|
|
13
|
-
const index$
|
|
14
|
-
const index$
|
|
15
|
-
const index$
|
|
16
|
-
const index$
|
|
17
|
-
const index$
|
|
3
|
+
const index$4 = require("./add-input/index.js");
|
|
4
|
+
const index$1 = require("./amap/index.js");
|
|
5
|
+
const index$5 = require("./animated/index.js");
|
|
6
|
+
const index$6 = require("./button/index.js");
|
|
7
|
+
const index$7 = require("./button-nav/index.js");
|
|
8
|
+
const index$8 = require("./code-mirror-editor/index.js");
|
|
9
|
+
const index$9 = require("./draggable/index.js");
|
|
10
|
+
const index$2 = require("./form/index.js");
|
|
11
|
+
const index$a = require("./menu/index.js");
|
|
12
|
+
const index$b = require("./modal/index.js");
|
|
13
|
+
const index$c = require("./page-header/index.js");
|
|
14
|
+
const index$d = require("./page-layout/index.js");
|
|
15
|
+
const index$3 = require("./page-table/index.js");
|
|
16
|
+
const index$e = require("./page-table-v2/index.js");
|
|
17
|
+
const index$f = require("./rich-editor/index.js");
|
|
18
|
+
const index$g = require("./say-hello/index.js");
|
|
19
|
+
const index$h = require("./tabs/index.js");
|
|
18
20
|
const components = [
|
|
19
|
-
index$
|
|
20
|
-
index$
|
|
21
|
-
index$
|
|
22
|
-
index$
|
|
23
|
-
index$
|
|
24
|
-
index$
|
|
25
|
-
index$
|
|
26
|
-
index$
|
|
27
|
-
index$
|
|
28
|
-
index$
|
|
29
|
-
index$
|
|
30
|
-
index$
|
|
31
|
-
index$
|
|
32
|
-
index$
|
|
33
|
-
index$
|
|
34
|
-
index$
|
|
35
|
-
index.JkyAMap,
|
|
36
|
-
index.JkyAMapPicker
|
|
21
|
+
index$g.JkySayHello,
|
|
22
|
+
index$6.JkyButton,
|
|
23
|
+
index$7.JkyButtonNav,
|
|
24
|
+
index$c.JkyPageHeader,
|
|
25
|
+
index$a.JkyMenu,
|
|
26
|
+
index$2.JkyForm,
|
|
27
|
+
index$2.JkyFormItem,
|
|
28
|
+
index$2.JkyAMapPickerItem,
|
|
29
|
+
index$8.JkyCodeMirrorEditor,
|
|
30
|
+
index$4.JkyAddInput,
|
|
31
|
+
index$f.JkyRichEditor,
|
|
32
|
+
index$3.JkyPageTable,
|
|
33
|
+
index$e.JkyPageTableV2,
|
|
34
|
+
index$d.JkyPageLayout,
|
|
35
|
+
index$h.JkyTabs,
|
|
36
|
+
index$b.JkyModal,
|
|
37
|
+
index$1.JkyAMap,
|
|
38
|
+
index$1.JkyAMapPicker,
|
|
39
|
+
index$9.JkyDraggable,
|
|
40
|
+
index$5.JkyAnimatedTransition
|
|
37
41
|
];
|
|
38
|
-
exports.JkyAddInput = index$
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
47
|
-
exports.
|
|
48
|
-
exports.
|
|
49
|
-
exports.
|
|
50
|
-
exports.
|
|
51
|
-
exports.
|
|
52
|
-
exports.
|
|
53
|
-
exports.
|
|
54
|
-
exports.
|
|
55
|
-
exports.
|
|
56
|
-
exports.
|
|
57
|
-
exports.
|
|
58
|
-
exports.
|
|
59
|
-
exports.
|
|
42
|
+
exports.JkyAddInput = index$4.JkyAddInput;
|
|
43
|
+
exports.JkyAClusterMarker = index$1.JkyAClusterMarker;
|
|
44
|
+
exports.JkyAMap = index$1.JkyAMap;
|
|
45
|
+
exports.JkyAMapPicker = index$1.JkyAMapPicker;
|
|
46
|
+
exports.JkyAMarker = index$1.JkyAMarker;
|
|
47
|
+
exports.JkyATrackPlayback = index$1.JkyATrackPlayback;
|
|
48
|
+
exports.JkyAnimatedTransition = index$5.JkyAnimatedTransition;
|
|
49
|
+
exports.JkyButton = index$6.JkyButton;
|
|
50
|
+
exports.JkyButtonNav = index$7.JkyButtonNav;
|
|
51
|
+
exports.JkyCodeMirrorEditor = index$8.JkyCodeMirrorEditor;
|
|
52
|
+
exports.JkyDraggable = index$9.JkyDraggable;
|
|
53
|
+
exports.JkyAMapPickerItem = index$2.JkyAMapPickerItem;
|
|
54
|
+
exports.JkyForm = index$2.JkyForm;
|
|
55
|
+
exports.JkyFormItem = index$2.JkyFormItem;
|
|
56
|
+
exports.JkyMenu = index$a.JkyMenu;
|
|
57
|
+
exports.JkyModal = index$b.JkyModal;
|
|
58
|
+
exports.JkyPageHeader = index$c.JkyPageHeader;
|
|
59
|
+
exports.JkyPageLayout = index$d.JkyPageLayout;
|
|
60
|
+
exports.JkyActionColumn = index$3.JkyActionColumn;
|
|
61
|
+
exports.JkyPageTable = index$3.JkyPageTable;
|
|
62
|
+
exports.JkyPageTableColumn = index$3.JkyPageTableColumn;
|
|
63
|
+
exports.JkyPageTableV2 = index$e.JkyPageTableV2;
|
|
64
|
+
exports.JkyRichEditor = index$f.JkyRichEditor;
|
|
65
|
+
exports.JkySayHello = index$g.JkySayHello;
|
|
66
|
+
exports.JkyTabs = index$h.JkyTabs;
|
|
60
67
|
exports.components = components;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { DraggableProps, DraggableSlots } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: Readonly<DraggableSlots> & DraggableSlots;
|
|
5
|
+
refs: {
|
|
6
|
+
dragRef: HTMLDivElement;
|
|
7
|
+
};
|
|
8
|
+
rootEl: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<DraggableProps, {
|
|
12
|
+
/** 手动保存位置 */
|
|
13
|
+
savePosition: () => void;
|
|
14
|
+
/** 重置位置到初始值 */
|
|
15
|
+
resetPosition: () => void;
|
|
16
|
+
/** 获取当前位置 */
|
|
17
|
+
getPosition: () => {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
};
|
|
21
|
+
/** 是否正在拖拽 */
|
|
22
|
+
isDragging: () => boolean;
|
|
23
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
24
|
+
change: (position: {
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
}) => any;
|
|
28
|
+
click: (event: MouseEvent) => any;
|
|
29
|
+
start: (position: {
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
}) => any;
|
|
33
|
+
end: (position: {
|
|
34
|
+
x: number;
|
|
35
|
+
y: number;
|
|
36
|
+
}) => any;
|
|
37
|
+
move: (position: {
|
|
38
|
+
x: number;
|
|
39
|
+
y: number;
|
|
40
|
+
}) => any;
|
|
41
|
+
}, string, import('vue').PublicProps, Readonly<DraggableProps> & Readonly<{
|
|
42
|
+
onChange?: ((position: {
|
|
43
|
+
x: number;
|
|
44
|
+
y: number;
|
|
45
|
+
}) => any) | undefined;
|
|
46
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
47
|
+
onStart?: ((position: {
|
|
48
|
+
x: number;
|
|
49
|
+
y: number;
|
|
50
|
+
}) => any) | undefined;
|
|
51
|
+
onEnd?: ((position: {
|
|
52
|
+
x: number;
|
|
53
|
+
y: number;
|
|
54
|
+
}) => any) | undefined;
|
|
55
|
+
onMove?: ((position: {
|
|
56
|
+
x: number;
|
|
57
|
+
y: number;
|
|
58
|
+
}) => any) | undefined;
|
|
59
|
+
}>, {
|
|
60
|
+
disabled: boolean;
|
|
61
|
+
initialValue: {
|
|
62
|
+
x: number;
|
|
63
|
+
y: number;
|
|
64
|
+
};
|
|
65
|
+
storageKey: string;
|
|
66
|
+
persistPosition: boolean;
|
|
67
|
+
boundToViewport: boolean;
|
|
68
|
+
viewportMargin: number;
|
|
69
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
70
|
+
dragRef: HTMLDivElement;
|
|
71
|
+
}, HTMLDivElement>;
|
|
72
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
73
|
+
export default _default;
|
|
74
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
75
|
+
new (): {
|
|
76
|
+
$slots: S;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
@@ -0,0 +1,130 @@
|
|
|
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 core = require("@vueuse/core");
|
|
24
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, {
|
|
25
|
+
name: "JkyDraggable"
|
|
26
|
+
}), {
|
|
27
|
+
__name: "Draggable",
|
|
28
|
+
props: {
|
|
29
|
+
disabled: { type: Boolean, default: false },
|
|
30
|
+
initialValue: { default: () => ({ x: 100, y: 100 }) },
|
|
31
|
+
storageKey: { default: "jky-draggable-position" },
|
|
32
|
+
persistPosition: { type: Boolean, default: true },
|
|
33
|
+
boundToViewport: { type: Boolean, default: true },
|
|
34
|
+
viewportMargin: { default: 0 }
|
|
35
|
+
},
|
|
36
|
+
emits: ["start", "move", "end", "change", "click"],
|
|
37
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
38
|
+
const props = __props;
|
|
39
|
+
const emit = __emit;
|
|
40
|
+
const dragRef = vue.ref(null);
|
|
41
|
+
const startPosition = vue.ref(null);
|
|
42
|
+
function getInitialPosition() {
|
|
43
|
+
if (!props.persistPosition) {
|
|
44
|
+
return props.initialValue || { x: 100, y: 100 };
|
|
45
|
+
}
|
|
46
|
+
const saved = localStorage.getItem(props.storageKey);
|
|
47
|
+
if (saved) {
|
|
48
|
+
try {
|
|
49
|
+
return JSON.parse(saved);
|
|
50
|
+
} catch (e) {
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return props.initialValue || { x: 100, y: 100 };
|
|
54
|
+
}
|
|
55
|
+
function savePosition(x2, y2) {
|
|
56
|
+
if (!props.persistPosition)
|
|
57
|
+
return;
|
|
58
|
+
localStorage.setItem(props.storageKey, JSON.stringify({ x: x2, y: y2 }));
|
|
59
|
+
}
|
|
60
|
+
const { x, y, style, isDragging } = core.useDraggable(dragRef, {
|
|
61
|
+
initialValue: getInitialPosition(),
|
|
62
|
+
disabled: props.disabled,
|
|
63
|
+
preventDefault: true,
|
|
64
|
+
// stopPropagation: true,
|
|
65
|
+
onStart: () => {
|
|
66
|
+
startPosition.value = { x: x.value, y: y.value };
|
|
67
|
+
emit("start", { x: x.value, y: y.value });
|
|
68
|
+
},
|
|
69
|
+
onMove: () => {
|
|
70
|
+
emit("move", { x: x.value, y: y.value });
|
|
71
|
+
},
|
|
72
|
+
onEnd: (position) => {
|
|
73
|
+
savePosition(x.value, y.value);
|
|
74
|
+
emit("end", { x: x.value, y: y.value });
|
|
75
|
+
if (startPosition.value) {
|
|
76
|
+
const dx = Math.abs(position.x - startPosition.value.x);
|
|
77
|
+
const dy = Math.abs(position.y - startPosition.value.y);
|
|
78
|
+
if (dx < 3 && dy < 3) {
|
|
79
|
+
emit("click", new MouseEvent("click"));
|
|
80
|
+
}
|
|
81
|
+
startPosition.value = null;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
vue.watch([x, y], ([newX, newY]) => {
|
|
86
|
+
emit("change", { x: newX, y: newY });
|
|
87
|
+
if (isDragging.value) {
|
|
88
|
+
savePosition(newX, newY);
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
vue.watch([x, y], ([newX, newY]) => {
|
|
92
|
+
if (!props.boundToViewport || !dragRef.value)
|
|
93
|
+
return;
|
|
94
|
+
const maxX = window.innerWidth - dragRef.value.offsetWidth - props.viewportMargin;
|
|
95
|
+
const maxY = window.innerHeight - dragRef.value.offsetHeight - props.viewportMargin;
|
|
96
|
+
const clampedX = Math.max(props.viewportMargin, Math.min(newX, maxX));
|
|
97
|
+
const clampedY = Math.max(props.viewportMargin, Math.min(newY, maxY));
|
|
98
|
+
if (clampedX !== newX || clampedY !== newY) {
|
|
99
|
+
x.value = clampedX;
|
|
100
|
+
y.value = clampedY;
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
__expose({
|
|
104
|
+
/** 手动保存位置 */
|
|
105
|
+
savePosition: () => savePosition(x.value, y.value),
|
|
106
|
+
/** 重置位置到初始值 */
|
|
107
|
+
resetPosition: () => {
|
|
108
|
+
const initial = props.initialValue || { x: 100, y: 100 };
|
|
109
|
+
x.value = initial.x;
|
|
110
|
+
y.value = initial.y;
|
|
111
|
+
savePosition(initial.x, initial.y);
|
|
112
|
+
},
|
|
113
|
+
/** 获取当前位置 */
|
|
114
|
+
getPosition: () => ({ x: x.value, y: y.value }),
|
|
115
|
+
/** 是否正在拖拽 */
|
|
116
|
+
isDragging: () => isDragging.value
|
|
117
|
+
});
|
|
118
|
+
return (_ctx, _cache) => {
|
|
119
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
120
|
+
ref_key: "dragRef",
|
|
121
|
+
ref: dragRef,
|
|
122
|
+
class: vue.normalizeClass(["jky-draggable fixed z-9999 cursor-move select-none", { "jky-draggable--dragging": vue.unref(isDragging) }]),
|
|
123
|
+
style: vue.normalizeStyle(vue.unref(style))
|
|
124
|
+
}, [
|
|
125
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
126
|
+
], 6);
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
}));
|
|
130
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const Draggable_vue_vue_type_script_setup_true_lang = require("./Draggable.vue.js");
|
|
4
|
+
;/* empty css */
|
|
5
|
+
exports.default = Draggable_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 Draggable_vue_vue_type_script_setup_true_lang = require("./Draggable.vue.js");
|
|
4
|
+
;/* empty css */
|
|
5
|
+
const withInstall = require("../utils/with-install.js");
|
|
6
|
+
const JkyDraggable = withInstall.installWithSFC(Draggable_vue_vue_type_script_setup_true_lang.default);
|
|
7
|
+
exports.JkyDraggable = JkyDraggable;
|
|
8
|
+
exports.default = JkyDraggable;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
/* 禁止使用 @apply,所有 TailwindCSS 工具类直接写在 class 中 */
|
|
3
|
+
/* 样式文件仅用于定义组件特定的自定义纯 CSS 样式 */
|
|
4
|
+
/* 禁止使用 @apply,所有 TailwindCSS 工具类直接写在 class 中 */
|
|
5
|
+
/* 样式文件仅用于定义组件特定的自定义纯 CSS 样式 */
|
|
6
|
+
:root {
|
|
7
|
+
--jky-draggable-z-index: 9999;
|
|
8
|
+
}
|
|
9
|
+
.jky-draggable {
|
|
10
|
+
user-select: none;
|
|
11
|
+
-webkit-user-select: none;
|
|
12
|
+
touch-action: none;
|
|
13
|
+
}
|
|
14
|
+
.jky-draggable--dragging {
|
|
15
|
+
cursor: grabbing;
|
|
16
|
+
}
|
package/dist/lib/index.js
CHANGED
|
@@ -4,26 +4,29 @@ const components = require("./components.js");
|
|
|
4
4
|
const installer$1 = require("./utils/installer.js");
|
|
5
5
|
;/* empty css */
|
|
6
6
|
const resolver = require("./resolver.js");
|
|
7
|
+
const index = require("./amap/AClusterMarker/index.js");
|
|
7
8
|
const AMapPicker_vue_vue_type_script_setup_true_lang = require("./amap/AMapPicker/AMapPicker.vue.js");
|
|
8
9
|
const AMarker_vue_vue_type_script_setup_true_lang = require("./amap/AMarker.vue.js");
|
|
9
10
|
;/* empty css */
|
|
10
11
|
const ATrackPlayback_vue_vue_type_script_setup_true_lang = require("./amap/ATrackPlayback.vue.js");
|
|
11
12
|
;/* empty css */
|
|
12
|
-
const index = require("./amap/index.js");
|
|
13
|
-
const index$
|
|
14
|
-
const index$
|
|
15
|
-
const index$
|
|
16
|
-
const index$
|
|
17
|
-
const index$
|
|
18
|
-
const index$
|
|
19
|
-
const index$
|
|
20
|
-
const index$
|
|
21
|
-
const index$
|
|
22
|
-
const index$
|
|
23
|
-
const index$
|
|
24
|
-
const index$
|
|
25
|
-
const index$
|
|
26
|
-
const index$
|
|
13
|
+
const index$1 = require("./amap/index.js");
|
|
14
|
+
const index$2 = require("./form/index.js");
|
|
15
|
+
const index$3 = require("./page-table/index.js");
|
|
16
|
+
const index$4 = require("./add-input/index.js");
|
|
17
|
+
const index$5 = require("./animated/index.js");
|
|
18
|
+
const index$6 = require("./button/index.js");
|
|
19
|
+
const index$7 = require("./button-nav/index.js");
|
|
20
|
+
const index$8 = require("./code-mirror-editor/index.js");
|
|
21
|
+
const index$9 = require("./draggable/index.js");
|
|
22
|
+
const index$a = require("./menu/index.js");
|
|
23
|
+
const index$b = require("./modal/index.js");
|
|
24
|
+
const index$c = require("./page-header/index.js");
|
|
25
|
+
const index$d = require("./page-layout/index.js");
|
|
26
|
+
const index$e = require("./page-table-v2/index.js");
|
|
27
|
+
const index$f = require("./rich-editor/index.js");
|
|
28
|
+
const index$g = require("./say-hello/index.js");
|
|
29
|
+
const index$h = require("./tabs/index.js");
|
|
27
30
|
const createTabsGuard = require("./tabs/createTabsGuard.js");
|
|
28
31
|
const useTabsStore = require("./tabs/useTabsStore.js");
|
|
29
32
|
const installer = installer$1.createInstaller(components.components);
|
|
@@ -31,31 +34,35 @@ const install = installer.install;
|
|
|
31
34
|
const version = installer.version;
|
|
32
35
|
exports.components = components.components;
|
|
33
36
|
exports.JkyComponentLibResolver = resolver.JkyComponentLibResolver;
|
|
37
|
+
exports.AClusterMarker = index.JkyAClusterMarker;
|
|
34
38
|
exports.AMapPicker = AMapPicker_vue_vue_type_script_setup_true_lang.default;
|
|
35
39
|
exports.AMarker = AMarker_vue_vue_type_script_setup_true_lang.default;
|
|
36
40
|
exports.ATrackPlayback = ATrackPlayback_vue_vue_type_script_setup_true_lang.default;
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
47
|
-
exports.
|
|
48
|
-
exports.
|
|
49
|
-
exports.
|
|
50
|
-
exports.
|
|
51
|
-
exports.
|
|
52
|
-
exports.
|
|
53
|
-
exports.
|
|
54
|
-
exports.
|
|
55
|
-
exports.
|
|
56
|
-
exports.
|
|
57
|
-
exports.
|
|
58
|
-
exports.
|
|
41
|
+
exports.JkyAClusterMarker = index$1.JkyAClusterMarker;
|
|
42
|
+
exports.JkyAMap = index$1.JkyAMap;
|
|
43
|
+
exports.JkyAMapPicker = index$1.JkyAMapPicker;
|
|
44
|
+
exports.JkyAMarker = index$1.JkyAMarker;
|
|
45
|
+
exports.JkyATrackPlayback = index$1.JkyATrackPlayback;
|
|
46
|
+
exports.JkyAMapPickerItem = index$2.JkyAMapPickerItem;
|
|
47
|
+
exports.JkyForm = index$2.JkyForm;
|
|
48
|
+
exports.JkyFormItem = index$2.JkyFormItem;
|
|
49
|
+
exports.JkyActionColumn = index$3.JkyActionColumn;
|
|
50
|
+
exports.JkyPageTable = index$3.JkyPageTable;
|
|
51
|
+
exports.JkyPageTableColumn = index$3.JkyPageTableColumn;
|
|
52
|
+
exports.JkyAddInput = index$4.JkyAddInput;
|
|
53
|
+
exports.JkyAnimatedTransition = index$5.JkyAnimatedTransition;
|
|
54
|
+
exports.JkyButton = index$6.JkyButton;
|
|
55
|
+
exports.JkyButtonNav = index$7.JkyButtonNav;
|
|
56
|
+
exports.JkyCodeMirrorEditor = index$8.JkyCodeMirrorEditor;
|
|
57
|
+
exports.JkyDraggable = index$9.JkyDraggable;
|
|
58
|
+
exports.JkyMenu = index$a.JkyMenu;
|
|
59
|
+
exports.JkyModal = index$b.JkyModal;
|
|
60
|
+
exports.JkyPageHeader = index$c.JkyPageHeader;
|
|
61
|
+
exports.JkyPageLayout = index$d.JkyPageLayout;
|
|
62
|
+
exports.JkyPageTableV2 = index$e.JkyPageTableV2;
|
|
63
|
+
exports.JkyRichEditor = index$f.JkyRichEditor;
|
|
64
|
+
exports.JkySayHello = index$g.JkySayHello;
|
|
65
|
+
exports.JkyTabs = index$h.JkyTabs;
|
|
59
66
|
exports.createTabsGuard = createTabsGuard.createTabsGuard;
|
|
60
67
|
exports.createTabsStore = useTabsStore.createTabsStore;
|
|
61
68
|
exports.default = installer;
|
package/dist/lib/package.json.js
CHANGED
|
@@ -41,7 +41,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
41
41
|
fixed: "right",
|
|
42
42
|
buttonLimit: 3,
|
|
43
43
|
moreButtonText: "更多",
|
|
44
|
-
buttons: []
|
|
44
|
+
buttons: [],
|
|
45
|
+
trigger: "hover"
|
|
45
46
|
}, props.config));
|
|
46
47
|
function isButtonVisible(button) {
|
|
47
48
|
if (button.hidden === void 0)
|
|
@@ -100,7 +101,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
100
101
|
}), 128)),
|
|
101
102
|
collapsedButtons.value.length > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElDropdown), {
|
|
102
103
|
key: 0,
|
|
103
|
-
trigger:
|
|
104
|
+
trigger: mergedConfig.value.trigger
|
|
104
105
|
}, {
|
|
105
106
|
dropdown: vue.withCtx(() => [
|
|
106
107
|
vue.createVNode(vue.unref(ElementPlus.ElDropdownMenu), null, {
|
|
@@ -135,7 +136,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
135
136
|
})
|
|
136
137
|
]),
|
|
137
138
|
_: 1
|
|
138
|
-
})) : vue.createCommentVNode("", true)
|
|
139
|
+
}, 8, ["trigger"])) : vue.createCommentVNode("", true)
|
|
139
140
|
]);
|
|
140
141
|
};
|
|
141
142
|
}
|