jky-component-lib 0.0.80 → 0.0.94
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/add-input/AddInput.vue.js +3 -3
- package/dist/es/amap/AMap.vue.d.ts +61 -0
- package/dist/es/amap/AMap.vue.js +292 -0
- package/dist/es/amap/AMap.vue3.js +5 -0
- package/dist/es/amap/AMarker.vue.d.ts +38 -0
- package/dist/es/amap/AMarker.vue.js +253 -0
- package/dist/es/amap/AMarker.vue3.js +5 -0
- package/dist/es/amap/index.d.ts +7 -0
- package/dist/es/amap/index.js +13 -0
- package/dist/es/amap/style.css +7 -0
- package/dist/es/amap/style2.css +14 -0
- package/dist/es/components.d.ts +2 -0
- package/dist/es/components.js +9 -1
- package/dist/es/form/FormItem.vue.js +6 -6
- package/dist/es/index.js +8 -0
- package/dist/es/modal/Footer.vue.d.ts +10 -0
- package/dist/es/modal/Footer.vue.js +59 -0
- package/dist/es/modal/Footer.vue2.js +4 -0
- package/dist/es/modal/Header.vue.d.ts +37 -0
- package/dist/es/modal/Header.vue.js +79 -0
- package/dist/es/modal/Header.vue2.js +4 -0
- package/dist/es/modal/Modal.vue.d.ts +75 -0
- package/dist/es/modal/Modal.vue.js +224 -0
- package/dist/es/modal/Modal.vue3.js +5 -0
- package/dist/es/modal/index.d.ts +5 -0
- package/dist/es/modal/index.js +8 -0
- package/dist/es/modal/style.css +8 -0
- package/dist/es/package.json.js +1 -1
- package/dist/es/page-header/PopoverMenu.vue.d.ts +1 -1
- package/dist/es/page-layout/PageLayout.vue.d.ts +1 -0
- package/dist/es/page-layout/PageLayout.vue.js +10 -10
- package/dist/es/page-table/PageTable.vue.d.ts +4 -4
- package/dist/es/page-table/Toolbar.vue.js +2 -2
- package/dist/es/rich-editor/RichEditor.vue.d.ts +1 -1
- package/dist/es/style.css +150 -0
- package/dist/es/styles.css +1 -1
- package/dist/lib/add-input/AddInput.vue.js +10 -10
- package/dist/lib/amap/AMap.vue.d.ts +61 -0
- package/dist/lib/amap/AMap.vue.js +292 -0
- package/dist/lib/amap/AMap.vue3.js +5 -0
- package/dist/lib/amap/AMarker.vue.d.ts +38 -0
- package/dist/lib/amap/AMarker.vue.js +253 -0
- package/dist/lib/amap/AMarker.vue3.js +5 -0
- package/dist/lib/amap/index.d.ts +7 -0
- package/dist/lib/amap/index.js +13 -0
- package/dist/lib/amap/style.css +7 -0
- package/dist/lib/amap/style2.css +14 -0
- package/dist/lib/components.d.ts +2 -0
- package/dist/lib/components.js +43 -36
- package/dist/lib/form/FormItem.vue.js +6 -6
- package/dist/lib/index.js +32 -24
- package/dist/lib/modal/Footer.vue.d.ts +10 -0
- package/dist/lib/modal/Footer.vue.js +59 -0
- package/dist/lib/modal/Footer.vue2.js +4 -0
- package/dist/lib/modal/Header.vue.d.ts +37 -0
- package/dist/lib/modal/Header.vue.js +79 -0
- package/dist/lib/modal/Header.vue2.js +4 -0
- package/dist/lib/modal/Modal.vue.d.ts +75 -0
- package/dist/lib/modal/Modal.vue.js +224 -0
- package/dist/lib/modal/Modal.vue3.js +5 -0
- package/dist/lib/modal/index.d.ts +5 -0
- package/dist/lib/modal/index.js +8 -0
- package/dist/lib/modal/style.css +8 -0
- package/dist/lib/package.json.js +1 -1
- package/dist/lib/page-header/PopoverMenu.vue.d.ts +1 -1
- package/dist/lib/page-layout/PageLayout.vue.d.ts +1 -0
- package/dist/lib/page-layout/PageLayout.vue.js +9 -9
- package/dist/lib/page-table/PageTable.vue.d.ts +4 -4
- package/dist/lib/page-table/Toolbar.vue.js +18 -18
- package/dist/lib/rich-editor/RichEditor.vue.d.ts +1 -1
- package/dist/lib/style.css +150 -0
- package/dist/lib/styles.css +1 -1
- package/package.json +14 -6
- package/dist/es/node_modules/@element-plus/icons-vue/dist/index.js +0 -116
- package/dist/lib/node_modules/@element-plus/icons-vue/dist/index.js +0 -116
|
@@ -0,0 +1,224 @@
|
|
|
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 ElementPlus = require("element-plus");
|
|
24
|
+
const Footer_vue_vue_type_script_setup_true_lang = require("./Footer.vue.js");
|
|
25
|
+
const Header_vue_vue_type_script_setup_true_lang = require("./Header.vue.js");
|
|
26
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, {
|
|
27
|
+
name: "JkyModal",
|
|
28
|
+
inheritAttrs: false
|
|
29
|
+
}), {
|
|
30
|
+
__name: "Modal",
|
|
31
|
+
props: /* @__PURE__ */ vue.mergeModels({
|
|
32
|
+
title: { default: "" },
|
|
33
|
+
dialogProps: {},
|
|
34
|
+
drawerProps: {},
|
|
35
|
+
confirmText: { default: "确认" },
|
|
36
|
+
cancelText: { default: "取消" }
|
|
37
|
+
}, {
|
|
38
|
+
"modelValue": __spreadValues({ type: Boolean }, {
|
|
39
|
+
default: false
|
|
40
|
+
}),
|
|
41
|
+
"modelModifiers": {},
|
|
42
|
+
"mode": {
|
|
43
|
+
default: "drawer"
|
|
44
|
+
},
|
|
45
|
+
"modeModifiers": {},
|
|
46
|
+
"fullscreen": __spreadValues({ type: Boolean }, {
|
|
47
|
+
default: false
|
|
48
|
+
}),
|
|
49
|
+
"fullscreenModifiers": {},
|
|
50
|
+
"direction": {
|
|
51
|
+
default: "rtl"
|
|
52
|
+
},
|
|
53
|
+
"directionModifiers": {}
|
|
54
|
+
}),
|
|
55
|
+
emits: /* @__PURE__ */ vue.mergeModels(["update:modelValue", "open", "opened", "close", "closed", "typeChange", "confirm", "cancel"], ["update:modelValue", "update:mode", "update:fullscreen", "update:direction"]),
|
|
56
|
+
setup(__props, { emit: __emit }) {
|
|
57
|
+
const props = __props;
|
|
58
|
+
const emit = __emit;
|
|
59
|
+
const attrs = vue.useAttrs();
|
|
60
|
+
const modelValue = vue.useModel(__props, "modelValue");
|
|
61
|
+
const mode = vue.useModel(__props, "mode");
|
|
62
|
+
const fullscreen = vue.useModel(__props, "fullscreen");
|
|
63
|
+
const direction = vue.useModel(__props, "direction");
|
|
64
|
+
function handleTypeChange() {
|
|
65
|
+
if (fullscreen.value) {
|
|
66
|
+
fullscreen.value = false;
|
|
67
|
+
setTimeout(() => {
|
|
68
|
+
mode.value = mode.value === "drawer" ? "dialog" : "drawer";
|
|
69
|
+
}, 150);
|
|
70
|
+
} else {
|
|
71
|
+
mode.value = mode.value === "drawer" ? "dialog" : "drawer";
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
function toggleFullscreen() {
|
|
75
|
+
fullscreen.value = !fullscreen.value;
|
|
76
|
+
}
|
|
77
|
+
function toggleDirection() {
|
|
78
|
+
const directions = ["rtl", "ltr", "ttb", "btt"];
|
|
79
|
+
const currentIndex = directions.indexOf(direction.value);
|
|
80
|
+
const nextIndex = (currentIndex + 1) % directions.length;
|
|
81
|
+
direction.value = directions[nextIndex];
|
|
82
|
+
}
|
|
83
|
+
function handleClose() {
|
|
84
|
+
modelValue.value = false;
|
|
85
|
+
}
|
|
86
|
+
function handleConfirm() {
|
|
87
|
+
handleClose();
|
|
88
|
+
emit("confirm");
|
|
89
|
+
}
|
|
90
|
+
function handleCancel() {
|
|
91
|
+
handleClose();
|
|
92
|
+
emit("cancel");
|
|
93
|
+
}
|
|
94
|
+
const footerClass = vue.computed(
|
|
95
|
+
() => {
|
|
96
|
+
return [
|
|
97
|
+
"p-0 pt-0! sticky bottom-0 bg-white border-t border-solid border-t-black/15",
|
|
98
|
+
attrs.footerClass || attrs["footer-class"]
|
|
99
|
+
].filter(Boolean).join(" ");
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
const bodyClass = vue.computed(() => {
|
|
103
|
+
return [
|
|
104
|
+
"px-4!",
|
|
105
|
+
attrs.bodyClass || attrs["body-class"]
|
|
106
|
+
].filter(Boolean).join(" ");
|
|
107
|
+
});
|
|
108
|
+
const headerClass = vue.computed(() => {
|
|
109
|
+
return [
|
|
110
|
+
"p-0 mb-0!",
|
|
111
|
+
attrs.headerClass || attrs["header-class"]
|
|
112
|
+
].filter(Boolean).join(" ");
|
|
113
|
+
});
|
|
114
|
+
return (_ctx, _cache) => {
|
|
115
|
+
var _a, _b, _c;
|
|
116
|
+
return mode.value === "dialog" ? (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElDialog), vue.mergeProps({
|
|
117
|
+
key: 0,
|
|
118
|
+
modelValue: modelValue.value,
|
|
119
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
|
|
120
|
+
title: __props.title,
|
|
121
|
+
width: typeof ((_a = props.dialogProps) == null ? void 0 : _a.width) === "number" ? `${props.dialogProps.width}px` : (_b = props.dialogProps) == null ? void 0 : _b.width,
|
|
122
|
+
class: "p-0! jky-modal",
|
|
123
|
+
"body-class": bodyClass.value,
|
|
124
|
+
"footer-class": footerClass.value,
|
|
125
|
+
"header-class": headerClass.value
|
|
126
|
+
}, props.dialogProps, {
|
|
127
|
+
"show-close": false,
|
|
128
|
+
fullscreen: fullscreen.value,
|
|
129
|
+
style: { "--el-dialog-padding-primary": 0 },
|
|
130
|
+
onOpened: _cache[1] || (_cache[1] = ($event) => emit("opened")),
|
|
131
|
+
onClosed: _cache[2] || (_cache[2] = ($event) => emit("closed"))
|
|
132
|
+
}), {
|
|
133
|
+
header: vue.withCtx(() => [
|
|
134
|
+
_ctx.$slots.header ? vue.renderSlot(_ctx.$slots, "header", {
|
|
135
|
+
key: 0,
|
|
136
|
+
fullscreen: fullscreen.value,
|
|
137
|
+
close: handleClose,
|
|
138
|
+
toggleFullscreen,
|
|
139
|
+
toggleType: handleTypeChange
|
|
140
|
+
}) : (vue.openBlock(), vue.createBlock(Header_vue_vue_type_script_setup_true_lang.default, {
|
|
141
|
+
key: 1,
|
|
142
|
+
fullscreen: fullscreen.value,
|
|
143
|
+
mode: mode.value,
|
|
144
|
+
title: __props.title,
|
|
145
|
+
onFullscreen: toggleFullscreen,
|
|
146
|
+
onClose: handleClose,
|
|
147
|
+
onToggle: handleTypeChange
|
|
148
|
+
}, null, 8, ["fullscreen", "mode", "title"]))
|
|
149
|
+
]),
|
|
150
|
+
footer: vue.withCtx(() => [
|
|
151
|
+
_ctx.$slots.footer ? vue.renderSlot(_ctx.$slots, "footer", { key: 0 }) : (vue.openBlock(), vue.createBlock(Footer_vue_vue_type_script_setup_true_lang.default, {
|
|
152
|
+
key: 1,
|
|
153
|
+
"confirm-text": __props.confirmText,
|
|
154
|
+
"cancel-text": __props.cancelText,
|
|
155
|
+
onConfirm: handleConfirm,
|
|
156
|
+
onCancel: handleCancel
|
|
157
|
+
}, null, 8, ["confirm-text", "cancel-text"]))
|
|
158
|
+
]),
|
|
159
|
+
default: vue.withCtx(() => [
|
|
160
|
+
vue.createVNode(vue.unref(ElementPlus.ElScrollbar), {
|
|
161
|
+
"max-height": fullscreen.value ? "100%" : "60vh"
|
|
162
|
+
}, {
|
|
163
|
+
default: vue.withCtx(() => [
|
|
164
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
165
|
+
]),
|
|
166
|
+
_: 3
|
|
167
|
+
}, 8, ["max-height"])
|
|
168
|
+
]),
|
|
169
|
+
_: 3
|
|
170
|
+
}, 16, ["modelValue", "title", "width", "body-class", "footer-class", "header-class", "fullscreen"])) : (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElDrawer), vue.mergeProps({
|
|
171
|
+
key: 1,
|
|
172
|
+
modelValue: modelValue.value,
|
|
173
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => modelValue.value = $event),
|
|
174
|
+
title: __props.title,
|
|
175
|
+
direction: direction.value,
|
|
176
|
+
class: "p-0! jky-modal jky-modal--drawer",
|
|
177
|
+
"body-class": bodyClass.value,
|
|
178
|
+
"footer-class": footerClass.value,
|
|
179
|
+
"header-class": headerClass.value
|
|
180
|
+
}, props.drawerProps, {
|
|
181
|
+
"show-close": false,
|
|
182
|
+
size: fullscreen.value ? "100%" : (_c = props.drawerProps) == null ? void 0 : _c.size,
|
|
183
|
+
style: { "--el-drawer-padding-primary": 0 },
|
|
184
|
+
onOpened: _cache[4] || (_cache[4] = ($event) => emit("opened")),
|
|
185
|
+
onClosed: _cache[5] || (_cache[5] = ($event) => emit("closed"))
|
|
186
|
+
}), {
|
|
187
|
+
header: vue.withCtx(() => [
|
|
188
|
+
_ctx.$slots.header ? vue.renderSlot(_ctx.$slots, "header", {
|
|
189
|
+
key: 0,
|
|
190
|
+
fullscreen: fullscreen.value,
|
|
191
|
+
close: handleClose,
|
|
192
|
+
toggleFullscreen,
|
|
193
|
+
toggleType: handleTypeChange,
|
|
194
|
+
toggleDirection
|
|
195
|
+
}) : (vue.openBlock(), vue.createBlock(Header_vue_vue_type_script_setup_true_lang.default, {
|
|
196
|
+
key: 1,
|
|
197
|
+
fullscreen: fullscreen.value,
|
|
198
|
+
mode: mode.value,
|
|
199
|
+
"drawer-direction": direction.value,
|
|
200
|
+
title: __props.title,
|
|
201
|
+
onFullscreen: toggleFullscreen,
|
|
202
|
+
onClose: handleClose,
|
|
203
|
+
onToggle: handleTypeChange,
|
|
204
|
+
onToggleDirection: toggleDirection
|
|
205
|
+
}, null, 8, ["fullscreen", "mode", "drawer-direction", "title"]))
|
|
206
|
+
]),
|
|
207
|
+
footer: vue.withCtx(() => [
|
|
208
|
+
_ctx.$slots.footer ? vue.renderSlot(_ctx.$slots, "footer", { key: 0 }) : (vue.openBlock(), vue.createBlock(Footer_vue_vue_type_script_setup_true_lang.default, {
|
|
209
|
+
key: 1,
|
|
210
|
+
"confirm-text": __props.confirmText,
|
|
211
|
+
"cancel-text": __props.cancelText,
|
|
212
|
+
onConfirm: handleConfirm,
|
|
213
|
+
onCancel: handleCancel
|
|
214
|
+
}, null, 8, ["confirm-text", "cancel-text"]))
|
|
215
|
+
]),
|
|
216
|
+
default: vue.withCtx(() => [
|
|
217
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
218
|
+
]),
|
|
219
|
+
_: 3
|
|
220
|
+
}, 16, ["modelValue", "title", "direction", "body-class", "footer-class", "header-class", "size"]));
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
}));
|
|
224
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const Modal_vue_vue_type_script_setup_true_lang = require("./Modal.vue.js");
|
|
4
|
+
;/* empty css */
|
|
5
|
+
exports.default = Modal_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 withInstall = require("../utils/with-install.js");
|
|
4
|
+
const Modal_vue_vue_type_script_setup_true_lang = require("./Modal.vue.js");
|
|
5
|
+
;/* empty css */
|
|
6
|
+
const JkyModal = withInstall.installWithSFC(Modal_vue_vue_type_script_setup_true_lang.default);
|
|
7
|
+
exports.JkyModal = JkyModal;
|
|
8
|
+
exports.default = JkyModal;
|
package/dist/lib/package.json.js
CHANGED
|
@@ -3,8 +3,8 @@ import { Arrayable } from 'element-plus/es/utils';
|
|
|
3
3
|
import { PageHeaderPopoverMenuItem, PageHeaderPopoverMenuProps } from './types';
|
|
4
4
|
declare const _default: import('vue').DefineComponent<PageHeaderPopoverMenuProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PageHeaderPopoverMenuProps> & Readonly<{}>, {
|
|
5
5
|
width: number;
|
|
6
|
-
trigger: Arrayable<TooltipTriggerType>;
|
|
7
6
|
placement: import('element-plus').Placement;
|
|
7
|
+
trigger: Arrayable<TooltipTriggerType>;
|
|
8
8
|
menus: PageHeaderPopoverMenuItem[];
|
|
9
9
|
highlightCurrent: boolean;
|
|
10
10
|
buttonClass: string;
|
|
@@ -13,5 +13,6 @@ declare const _default: import('vue').DefineComponent<PageLayoutProps, {}, {}, {
|
|
|
13
13
|
cardPadding: string;
|
|
14
14
|
topMenuTrigger: "hover" | "click";
|
|
15
15
|
topMenuSingleLevel: boolean;
|
|
16
|
+
sideMenuWithParent: boolean;
|
|
16
17
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
18
|
export default _default;
|
|
@@ -66,12 +66,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
66
66
|
topLevels: {},
|
|
67
67
|
sideLevels: {},
|
|
68
68
|
topMenuTrigger: { default: "click" },
|
|
69
|
-
topMenuSingleLevel: { type: Boolean, default: true }
|
|
69
|
+
topMenuSingleLevel: { type: Boolean, default: true },
|
|
70
|
+
sideMenuWithParent: { type: Boolean, default: true }
|
|
70
71
|
},
|
|
71
72
|
setup(__props) {
|
|
72
73
|
const props = __props;
|
|
73
74
|
const router = vueRouter.useRouter();
|
|
74
75
|
const route = vueRouter.useRoute();
|
|
76
|
+
const attrs = vue.useAttrs();
|
|
75
77
|
const { useTabsStore: useTabsStore$1 } = useTabsStore.createTabsStore({
|
|
76
78
|
enableCache: props.cachable
|
|
77
79
|
});
|
|
@@ -132,7 +134,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
132
134
|
});
|
|
133
135
|
const displayedSideMenu = vue.computed(() => {
|
|
134
136
|
if (menuData.value.length === 0) {
|
|
135
|
-
console.warn("displayedSideMenu: menuData is empty");
|
|
136
137
|
return [];
|
|
137
138
|
}
|
|
138
139
|
const topMenuItem = route.matched[0];
|
|
@@ -146,6 +147,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
146
147
|
return [];
|
|
147
148
|
}
|
|
148
149
|
if ((found == null ? void 0 : found.children) && found.children.length > 0) {
|
|
150
|
+
if (props.sideMenuWithParent || attrs["side-menu-with-parent"]) {
|
|
151
|
+
return [found];
|
|
152
|
+
}
|
|
149
153
|
return found.children;
|
|
150
154
|
}
|
|
151
155
|
return [];
|
|
@@ -165,7 +169,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
165
169
|
return (_a = r.meta) == null ? void 0 : _a.title;
|
|
166
170
|
});
|
|
167
171
|
if (matchedMenus.length === 0) {
|
|
168
|
-
console.warn("No matching menu item found for route:", routePath);
|
|
169
172
|
return;
|
|
170
173
|
}
|
|
171
174
|
activeSideMenu.value = routePath;
|
|
@@ -174,15 +177,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
174
177
|
} else {
|
|
175
178
|
activeTopMenu.value = matchedMenus[0].path;
|
|
176
179
|
}
|
|
177
|
-
console.warn("Updated menu:", {
|
|
178
|
-
activeTopMenu: activeTopMenu.value,
|
|
179
|
-
activeSideMenu: activeSideMenu.value
|
|
180
|
-
});
|
|
181
180
|
},
|
|
182
181
|
{ immediate: true }
|
|
183
182
|
);
|
|
184
|
-
function handleMenuOpen(
|
|
185
|
-
console.warn("handleMenuOpen called with index:", index);
|
|
183
|
+
function handleMenuOpen(_index) {
|
|
186
184
|
}
|
|
187
185
|
function handleMenuSelect(index) {
|
|
188
186
|
router.push(index);
|
|
@@ -232,6 +230,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
232
230
|
mode: "vertical",
|
|
233
231
|
"default-active": activeSideMenu.value,
|
|
234
232
|
"menu-data": displayedSideMenu.value,
|
|
233
|
+
class: "jky-page-layout__side-menu",
|
|
235
234
|
onSelect: handleMenuSelect
|
|
236
235
|
}, null, 8, ["default-active", "menu-data"])
|
|
237
236
|
]),
|
|
@@ -241,6 +240,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
241
240
|
mode: "vertical",
|
|
242
241
|
"default-active": activeSideMenu.value,
|
|
243
242
|
"menu-data": displayedSideMenu.value,
|
|
243
|
+
class: "jky-page-layout__side-menu",
|
|
244
244
|
onSelect: handleMenuSelect
|
|
245
245
|
}, null, 8, ["default-active", "menu-data"])
|
|
246
246
|
]),
|
|
@@ -1483,7 +1483,7 @@ declare function __VLS_template(): {
|
|
|
1483
1483
|
width: string;
|
|
1484
1484
|
height: string;
|
|
1485
1485
|
} | undefined>;
|
|
1486
|
-
debouncedUpdateLayout: import('lodash').DebouncedFunc<() => void>;
|
|
1486
|
+
debouncedUpdateLayout: import('lodash-es').DebouncedFunc<() => void>;
|
|
1487
1487
|
setCurrentRow: (row: any) => void;
|
|
1488
1488
|
getSelectionRows: () => any[];
|
|
1489
1489
|
toggleRowSelection: (row: any, selected?: boolean, ignoreSelectable?: boolean) => void;
|
|
@@ -2831,7 +2831,7 @@ declare function __VLS_template(): {
|
|
|
2831
2831
|
width: string;
|
|
2832
2832
|
height: string;
|
|
2833
2833
|
} | undefined>;
|
|
2834
|
-
debouncedUpdateLayout: import('lodash').DebouncedFunc<() => void>;
|
|
2834
|
+
debouncedUpdateLayout: import('lodash-es').DebouncedFunc<() => void>;
|
|
2835
2835
|
setCurrentRow: (row: any) => void;
|
|
2836
2836
|
getSelectionRows: () => any[];
|
|
2837
2837
|
toggleRowSelection: (row: any, selected?: boolean, ignoreSelectable?: boolean) => void;
|
|
@@ -4434,7 +4434,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
4434
4434
|
width: string;
|
|
4435
4435
|
height: string;
|
|
4436
4436
|
} | undefined>;
|
|
4437
|
-
debouncedUpdateLayout: import('lodash').DebouncedFunc<() => void>;
|
|
4437
|
+
debouncedUpdateLayout: import('lodash-es').DebouncedFunc<() => void>;
|
|
4438
4438
|
setCurrentRow: (row: any) => void;
|
|
4439
4439
|
getSelectionRows: () => any[];
|
|
4440
4440
|
toggleRowSelection: (row: any, selected?: boolean, ignoreSelectable?: boolean) => void;
|
|
@@ -5782,7 +5782,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
5782
5782
|
width: string;
|
|
5783
5783
|
height: string;
|
|
5784
5784
|
} | undefined>;
|
|
5785
|
-
debouncedUpdateLayout: import('lodash').DebouncedFunc<() => void>;
|
|
5785
|
+
debouncedUpdateLayout: import('lodash-es').DebouncedFunc<() => void>;
|
|
5786
5786
|
setCurrentRow: (row: any) => void;
|
|
5787
5787
|
getSelectionRows: () => any[];
|
|
5788
5788
|
toggleRowSelection: (row: any, selected?: boolean, ignoreSelectable?: boolean) => void;
|
|
@@ -20,7 +20,7 @@ var __spreadValues = (a, b) => {
|
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
22
22
|
const vue = require("vue");
|
|
23
|
-
const
|
|
23
|
+
const iconsVue = require("@element-plus/icons-vue");
|
|
24
24
|
const ElementPlus = require("element-plus");
|
|
25
25
|
const responsiveToolbar = require("../utils/responsive-toolbar.js");
|
|
26
26
|
const _hoisted_1 = { class: "flex items-center justify-between mb-2 py-2 jky-page-table__toolbar" };
|
|
@@ -82,18 +82,18 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
82
82
|
button.onClick(getButtonPayload());
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
function handleBatchCommand(
|
|
85
|
+
function handleBatchCommand(index) {
|
|
86
86
|
var _a;
|
|
87
|
-
emit("batchCommand",
|
|
88
|
-
const button = (_a = props.batchButtons) == null ? void 0 : _a[
|
|
87
|
+
emit("batchCommand", index);
|
|
88
|
+
const button = (_a = props.batchButtons) == null ? void 0 : _a[index];
|
|
89
89
|
if (button && button.onClick) {
|
|
90
90
|
button.onClick(getButtonPayload());
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
function handleRightCommand(
|
|
93
|
+
function handleRightCommand(index) {
|
|
94
94
|
var _a;
|
|
95
|
-
emit("rightCommand",
|
|
96
|
-
const button = (_a = props.rightButtons) == null ? void 0 : _a[
|
|
95
|
+
emit("rightCommand", index);
|
|
96
|
+
const button = (_a = props.rightButtons) == null ? void 0 : _a[index];
|
|
97
97
|
if (button && button.onClick) {
|
|
98
98
|
button.onClick(getButtonPayload());
|
|
99
99
|
}
|
|
@@ -101,7 +101,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
101
101
|
function renderLeftButtons() {
|
|
102
102
|
const buttons = [];
|
|
103
103
|
if (props.leftButtons) {
|
|
104
|
-
props.leftButtons.forEach((button,
|
|
104
|
+
props.leftButtons.forEach((button, index) => {
|
|
105
105
|
const iconSpan = button.icon ? vue.h("span", {
|
|
106
106
|
class: `${button.icon} text-[1em] inline-block`
|
|
107
107
|
}) : null;
|
|
@@ -109,7 +109,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
109
109
|
vue.h(
|
|
110
110
|
ElementPlus.ElButton,
|
|
111
111
|
{
|
|
112
|
-
key:
|
|
112
|
+
key: index,
|
|
113
113
|
type: button.type,
|
|
114
114
|
size: button.size,
|
|
115
115
|
disabled: button.disabled,
|
|
@@ -130,16 +130,16 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
130
130
|
function renderBatchDropdownItems() {
|
|
131
131
|
const items = [];
|
|
132
132
|
if (props.batchButtons) {
|
|
133
|
-
props.batchButtons.forEach((button,
|
|
133
|
+
props.batchButtons.forEach((button, index) => {
|
|
134
134
|
items.push(
|
|
135
135
|
vue.h(
|
|
136
136
|
ElementPlus.ElDropdownItem,
|
|
137
137
|
{
|
|
138
|
-
key:
|
|
138
|
+
key: index,
|
|
139
139
|
type: button.type,
|
|
140
140
|
disabled: button.disabled,
|
|
141
141
|
class: button.class,
|
|
142
|
-
command:
|
|
142
|
+
command: index
|
|
143
143
|
},
|
|
144
144
|
{ default: () => button.label }
|
|
145
145
|
)
|
|
@@ -151,8 +151,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
151
151
|
function renderRightButtons() {
|
|
152
152
|
const buttons = [];
|
|
153
153
|
if (props.rightButtons) {
|
|
154
|
-
props.rightButtons.forEach((button,
|
|
155
|
-
const isVisible =
|
|
154
|
+
props.rightButtons.forEach((button, index) => {
|
|
155
|
+
const isVisible = index < visibleRightCount.value || !needCollapseRight.value;
|
|
156
156
|
if (isVisible) {
|
|
157
157
|
const iconSpan = button.icon ? vue.h("span", {
|
|
158
158
|
class: `${button.icon} text-[1em]`,
|
|
@@ -162,7 +162,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
162
162
|
vue.h(
|
|
163
163
|
ElementPlus.ElButton,
|
|
164
164
|
{
|
|
165
|
-
key:
|
|
165
|
+
key: index,
|
|
166
166
|
type: button.type,
|
|
167
167
|
size: button.size,
|
|
168
168
|
disabled: button.disabled,
|
|
@@ -184,8 +184,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
184
184
|
function renderRightDropdownItems() {
|
|
185
185
|
const items = [];
|
|
186
186
|
if (props.rightButtons) {
|
|
187
|
-
props.rightButtons.slice(visibleRightCount.value).forEach((button,
|
|
188
|
-
const originalIndex = visibleRightCount.value +
|
|
187
|
+
props.rightButtons.slice(visibleRightCount.value).forEach((button, index) => {
|
|
188
|
+
const originalIndex = visibleRightCount.value + index;
|
|
189
189
|
items.push(
|
|
190
190
|
vue.h(
|
|
191
191
|
ElementPlus.ElDropdownItem,
|
|
@@ -230,7 +230,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
230
230
|
suffix: vue.withCtx(() => [
|
|
231
231
|
vue.createVNode(vue.unref(ElementPlus.ElIcon), { class: "text-white" }, {
|
|
232
232
|
default: vue.withCtx(() => [
|
|
233
|
-
vue.createVNode(vue.unref(
|
|
233
|
+
vue.createVNode(vue.unref(iconsVue.ArrowDown))
|
|
234
234
|
]),
|
|
235
235
|
_: 1
|
|
236
236
|
})
|
|
@@ -23,9 +23,9 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
|
23
23
|
disabled: boolean;
|
|
24
24
|
readonly: boolean;
|
|
25
25
|
placeholder: string;
|
|
26
|
+
toolbar: string | string[];
|
|
26
27
|
language: string;
|
|
27
28
|
plugins: string;
|
|
28
|
-
toolbar: string | string[];
|
|
29
29
|
menubar: boolean | string;
|
|
30
30
|
branding: boolean;
|
|
31
31
|
statusbar: boolean;
|