jky-component-lib 0.0.61 → 0.0.64

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.
Files changed (41) hide show
  1. package/dist/es/components.d.ts +1 -0
  2. package/dist/es/components.js +4 -1
  3. package/dist/es/form/Form.vue.d.ts +1 -1
  4. package/dist/es/form/Form.vue.js +64 -10
  5. package/dist/es/form/FormItem.vue.js +21 -11
  6. package/dist/es/index.js +2 -0
  7. package/dist/es/package.json.js +1 -1
  8. package/dist/es/page-layout/PageLayout.vue.d.ts +36 -0
  9. package/dist/es/page-layout/PageLayout.vue.js +152 -0
  10. package/dist/es/page-layout/PageLayout.vue3.js +5 -0
  11. package/dist/es/page-layout/index.d.ts +4 -0
  12. package/dist/es/page-layout/index.js +8 -0
  13. package/dist/es/page-layout/style.css +8 -0
  14. package/dist/es/page-table/PageTable.vue.d.ts +22 -270
  15. package/dist/es/page-table/PageTable.vue.js +146 -112
  16. package/dist/es/page-table/Toolbar.vue.d.ts +1 -0
  17. package/dist/es/page-table/Toolbar.vue.js +40 -10
  18. package/dist/es/page-table/style.css +1 -3
  19. package/dist/es/style.css +334 -58
  20. package/dist/es/styles.css +1 -1
  21. package/dist/lib/components.d.ts +1 -0
  22. package/dist/lib/components.js +12 -9
  23. package/dist/lib/form/Form.vue.d.ts +1 -1
  24. package/dist/lib/form/Form.vue.js +63 -9
  25. package/dist/lib/form/FormItem.vue.js +21 -11
  26. package/dist/lib/index.js +8 -6
  27. package/dist/lib/package.json.js +1 -1
  28. package/dist/lib/page-layout/PageLayout.vue.d.ts +36 -0
  29. package/dist/lib/page-layout/PageLayout.vue.js +152 -0
  30. package/dist/lib/page-layout/PageLayout.vue3.js +5 -0
  31. package/dist/lib/page-layout/index.d.ts +4 -0
  32. package/dist/lib/page-layout/index.js +8 -0
  33. package/dist/lib/page-layout/style.css +8 -0
  34. package/dist/lib/page-table/PageTable.vue.d.ts +22 -270
  35. package/dist/lib/page-table/PageTable.vue.js +144 -110
  36. package/dist/lib/page-table/Toolbar.vue.d.ts +1 -0
  37. package/dist/lib/page-table/Toolbar.vue.js +38 -8
  38. package/dist/lib/page-table/style.css +1 -3
  39. package/dist/lib/style.css +334 -58
  40. package/dist/lib/styles.css +1 -1
  41. package/package.json +1 -1
@@ -6,6 +6,7 @@ export * from './code-mirror-editor';
6
6
  export * from './form';
7
7
  export * from './menu';
8
8
  export * from './page-header';
9
+ export * from './page-layout';
9
10
  export * from './page-table';
10
11
  export * from './rich-editor';
11
12
  export * from './say-hello';
@@ -5,6 +5,7 @@ import { JkyCodeMirrorEditor } from "./code-mirror-editor/index.js";
5
5
  import { JkyForm } from "./form/index.js";
6
6
  import { JkyMenu } from "./menu/index.js";
7
7
  import { JkyPageHeader } from "./page-header/index.js";
8
+ import { JkyPageLayout } from "./page-layout/index.js";
8
9
  import { JkyPageTable } from "./page-table/index.js";
9
10
  import { JkyRichEditor } from "./rich-editor/index.js";
10
11
  import { JkySayHello } from "./say-hello/index.js";
@@ -18,7 +19,8 @@ const components = [
18
19
  JkyCodeMirrorEditor,
19
20
  JkyAddInput,
20
21
  JkyRichEditor,
21
- JkyPageTable
22
+ JkyPageTable,
23
+ JkyPageLayout
22
24
  ];
23
25
  export {
24
26
  JkyAddInput,
@@ -28,6 +30,7 @@ export {
28
30
  JkyForm,
29
31
  JkyMenu,
30
32
  JkyPageHeader,
33
+ JkyPageLayout,
31
34
  JkyPageTable,
32
35
  JkyRichEditor,
33
36
  JkySayHello,
@@ -437,5 +437,5 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
437
437
  default?: (props: {}) => any;
438
438
  };
439
439
  }) | null;
440
- }, HTMLDivElement>;
440
+ }, any>;
441
441
  export default _default;
@@ -17,6 +17,18 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
20
32
  var __async = (__this, __arguments, generator) => {
21
33
  return new Promise((resolve, reject) => {
22
34
  var fulfilled = (value) => {
@@ -37,7 +49,7 @@ var __async = (__this, __arguments, generator) => {
37
49
  step((generator = generator.apply(__this, __arguments)).next());
38
50
  });
39
51
  };
40
- import { defineComponent, useModel, ref, computed, watch, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, createVNode, unref, mergeProps, withCtx, Fragment, renderList, createBlock, createTextVNode, mergeModels } from "vue";
52
+ import { defineComponent, useModel, ref, computed, useAttrs, watch, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, createVNode, unref, mergeProps, withCtx, Fragment, renderList, createBlock, createTextVNode, mergeModels } from "vue";
41
53
  import { ElForm, ElButton } from "element-plus";
42
54
  import _sfc_main$1 from "./FormItem.vue.js";
43
55
  /* empty css */
@@ -50,7 +62,8 @@ const _hoisted_2 = {
50
62
  class: "jky-form__footer mt-6 flex justify-end gap-2"
51
63
  };
52
64
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
53
- name: "JkyForm"
65
+ name: "JkyForm",
66
+ inheritAttrs: false
54
67
  }), {
55
68
  __name: "Form",
56
69
  props: /* @__PURE__ */ mergeModels({
@@ -100,10 +113,54 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
100
113
  const formRef = ref();
101
114
  const formClass = computed(() => {
102
115
  return [
103
- "jky-form",
104
- props.className
116
+ "jky-form"
105
117
  ].filter(Boolean).join(" ");
106
118
  });
119
+ const attrs = useAttrs();
120
+ const elFormProps = computed(() => {
121
+ const _a = props, {
122
+ modelValue: modelValue2,
123
+ items,
124
+ showTitle,
125
+ title,
126
+ gutter,
127
+ defaultSpan,
128
+ responsive,
129
+ readonly,
130
+ disabled,
131
+ watchDeep,
132
+ showFooter,
133
+ submitText,
134
+ cancelText,
135
+ submitDisabled,
136
+ cancelDisabled,
137
+ onValidate,
138
+ onSubmit,
139
+ onReset
140
+ } = _a, rest = __objRest(_a, [
141
+ // JkyForm 自己的 props(不传递给 ElForm)
142
+ "modelValue",
143
+ "items",
144
+ "showTitle",
145
+ "title",
146
+ "gutter",
147
+ "defaultSpan",
148
+ "responsive",
149
+ "readonly",
150
+ "disabled",
151
+ "watchDeep",
152
+ "showFooter",
153
+ "submitText",
154
+ "cancelText",
155
+ "submitDisabled",
156
+ "cancelDisabled",
157
+ "onValidate",
158
+ "onSubmit",
159
+ "onReset"
160
+ ]);
161
+ const _b = rest, { model } = _b, formProps = __objRest(_b, ["model"]);
162
+ return __spreadValues(__spreadValues({}, formProps), attrs);
163
+ });
107
164
  watch(
108
165
  () => props.modelValue,
109
166
  (newVal, oldVal) => {
@@ -171,11 +228,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
171
228
  createVNode(unref(ElForm), mergeProps({
172
229
  ref_key: "formRef",
173
230
  ref: formRef,
174
- model: modelValue.value,
175
- "label-width": __props.labelWidth,
176
- "label-position": __props.labelPosition,
177
- size: __props.size
178
- }, _ctx.$attrs), {
231
+ model: modelValue.value
232
+ }, elFormProps.value), {
179
233
  default: withCtx(() => [
180
234
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
181
235
  return openBlock(), createBlock(_sfc_main$1, {
@@ -189,7 +243,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
189
243
  }), 128))
190
244
  ]),
191
245
  _: 1
192
- }, 16, ["model", "label-width", "label-position", "size"]),
246
+ }, 16, ["model"]),
193
247
  props.showFooter ? (openBlock(), createElementBlock("div", _hoisted_2, [
194
248
  createVNode(unref(ElButton), {
195
249
  disabled: __props.cancelDisabled || __props.disabled,
@@ -161,7 +161,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
161
161
  placeholder,
162
162
  componentProps: componentProps2,
163
163
  hidden,
164
- className,
165
164
  customStyle,
166
165
  children,
167
166
  render,
@@ -184,7 +183,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
184
183
  "placeholder",
185
184
  "componentProps",
186
185
  "hidden",
187
- "className",
188
186
  "customStyle",
189
187
  "children",
190
188
  "render",
@@ -212,31 +210,38 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
212
210
  });
213
211
  }
214
212
  const commonProps = __spreadValues({
215
- "modelValue": modelValue.value,
213
+ // use `undefined` to fix placeholder issue
214
+ "modelValue": modelValue.value || void 0,
216
215
  "onUpdate:modelValue": (val) => {
217
- props.model[props.field] = val;
216
+ props.model[props.field] = val || void 0;
218
217
  },
219
- "placeholder": props.config.placeholder,
218
+ "placeholder": props.config.placeholder || void 0,
220
219
  "disabled": props.disabled,
221
220
  "clearable": props.config.clearable
222
221
  }, componentProps.value);
223
222
  switch (type) {
224
223
  case "input":
225
224
  return h(ElInput, __spreadProps(__spreadValues({}, commonProps), {
225
+ placeholder: commonProps.placeholder || "请输入",
226
226
  prefixIcon: props.config.prefixIcon,
227
227
  suffixIcon: props.config.suffixIcon
228
228
  }));
229
229
  case "textarea":
230
230
  return h(ElInput, __spreadProps(__spreadValues({}, commonProps), {
231
+ placeholder: commonProps.placeholder || "请输入",
231
232
  type: "textarea",
232
233
  rows: 4
233
234
  }));
234
235
  case "select": {
235
- const selectProps = __spreadValues(__spreadValues({}, commonProps), componentProps.value);
236
+ const selectProps = __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
237
+ placeholder: commonProps.placeholder || "请选择"
238
+ }), componentProps.value);
236
239
  return h(ElSelect, selectProps);
237
240
  }
238
241
  case "autocomplete": {
239
- const autocompleteProps = __spreadValues(__spreadValues({}, commonProps), componentProps.value);
242
+ const autocompleteProps = __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
243
+ placeholder: commonProps.placeholder || "请输入"
244
+ }), componentProps.value);
240
245
  return h(ElAutocomplete, autocompleteProps);
241
246
  }
242
247
  case "datepicker":
@@ -297,11 +302,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
297
302
  case "slider":
298
303
  return h(ElSlider, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
299
304
  case "cascader": {
300
- const cascaderProps = __spreadValues(__spreadValues({}, commonProps), componentProps.value);
305
+ const cascaderProps = __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
306
+ placeholder: commonProps.placeholder || "请选择"
307
+ }), componentProps.value);
301
308
  return h(ElCascader, cascaderProps);
302
309
  }
303
310
  case "tree-select": {
304
- const treeSelectProps = __spreadValues(__spreadValues({}, commonProps), componentProps.value);
311
+ const treeSelectProps = __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
312
+ placeholder: commonProps.placeholder || "请选择"
313
+ }), componentProps.value);
305
314
  return h(ElTreeSelect, treeSelectProps);
306
315
  }
307
316
  case "color-picker":
@@ -311,6 +320,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
311
320
  case "input-number": {
312
321
  const numberModelValue = modelValue.value === "" || modelValue.value === null || modelValue.value === void 0 ? null : Number(modelValue.value);
313
322
  const inputNumberProps = __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
323
+ "placeholder": commonProps.placeholder || "请输入",
314
324
  "modelValue": numberModelValue,
315
325
  "onUpdate:modelValue": (val) => {
316
326
  props.model[props.field] = val;
@@ -431,7 +441,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
431
441
  key: 1,
432
442
  prop: __props.field
433
443
  }, __spreadValues(__spreadValues({}, formItemProps.value), _ctx.$attrs), {
434
- class: ["jky-form-item jky-form-item--no-label", [__props.config.useDefaultBorderClass ? "border-l-4 border-solid border-l-(--el-color-primary) bg-(--el-color-primary)/50 pl-1.5" : "", __props.config.className]],
444
+ class: ["jky-form-item jky-form-item--no-label", [__props.config.useDefaultBorderClass ? "border-l-4 border-solid border-l-(--el-color-primary) bg-(--el-color-primary)/50 pl-1.5" : "", __props.config.class]],
435
445
  style: [__props.config.customStyle]
436
446
  }), {
437
447
  default: withCtx(() => [
@@ -450,7 +460,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
450
460
  label: __props.config.label,
451
461
  prop: __props.field
452
462
  }, __spreadValues(__spreadValues({}, formItemProps.value), _ctx.$attrs), {
453
- class: ["jky-form-item", [__props.config.className]]
463
+ class: ["jky-form-item", [__props.config.class]]
454
464
  }), createSlots({
455
465
  default: withCtx(() => [
456
466
  __props.config.prepend || __props.config.append ? (openBlock(), createElementBlock("div", _hoisted_4, [
package/dist/es/index.js CHANGED
@@ -9,6 +9,7 @@ import { JkyCodeMirrorEditor } from "./code-mirror-editor/index.js";
9
9
  import { JkyForm } from "./form/index.js";
10
10
  import { JkyMenu } from "./menu/index.js";
11
11
  import { JkyPageHeader } from "./page-header/index.js";
12
+ import { JkyPageLayout } from "./page-layout/index.js";
12
13
  import { JkyPageTable } from "./page-table/index.js";
13
14
  import { JkyRichEditor } from "./rich-editor/index.js";
14
15
  import { JkySayHello } from "./say-hello/index.js";
@@ -24,6 +25,7 @@ export {
24
25
  JkyForm,
25
26
  JkyMenu,
26
27
  JkyPageHeader,
28
+ JkyPageLayout,
27
29
  JkyPageTable,
28
30
  JkyRichEditor,
29
31
  JkySayHello,
@@ -1,4 +1,4 @@
1
- const version = "0.0.61";
1
+ const version = "0.0.64";
2
2
  export {
3
3
  version
4
4
  };
@@ -0,0 +1,36 @@
1
+ import { PageLayoutProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ menuHeader?(_: {}): any;
6
+ aside?(_: {}): any;
7
+ aside?(_: {}): any;
8
+ navigationHeader?(_: {}): any;
9
+ navigation?(_: {}): any;
10
+ navigation?(_: {}): any;
11
+ header?(_: {}): any;
12
+ tabs?(_: {}): any;
13
+ dashboard?(_: {}): any;
14
+ dashboard?(_: {}): any;
15
+ default?(_: {}): any;
16
+ default?(_: {
17
+ height: any;
18
+ }): any;
19
+ };
20
+ refs: {};
21
+ rootEl: HTMLDivElement;
22
+ };
23
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
+ declare const __VLS_component: import('vue').DefineComponent<PageLayoutProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PageLayoutProps> & Readonly<{}>, {
25
+ asideWithScrollbar: boolean;
26
+ mainWithScrollbar: boolean;
27
+ navigationWithScrollbar: boolean;
28
+ showNavigation: boolean;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
30
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
31
+ export default _default;
32
+ type __VLS_WithTemplateSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -0,0 +1,152 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ import { defineComponent, resolveComponent, openBlock, createElementBlock, createVNode, unref, normalizeClass, createSlots, withCtx, createBlock, renderSlot, createCommentVNode, createElementVNode, resolveDynamicComponent } from "vue";
21
+ import { ElCard, ElScrollbar } from "element-plus";
22
+ const _hoisted_1 = {
23
+ class: "jky-page-layout flex h-full w-full overflow-hidden gap-x-4",
24
+ style: { "--el-menu-border-color": "transparent" }
25
+ };
26
+ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
27
+ name: "JkyPageLayout"
28
+ }), {
29
+ __name: "PageLayout",
30
+ props: {
31
+ asideClass: {},
32
+ asideWithScrollbar: { type: Boolean, default: true },
33
+ mainClass: {},
34
+ mainWithCard: { type: Boolean },
35
+ mainWithScrollbar: { type: Boolean, default: false },
36
+ contentClass: {},
37
+ navigationClass: {},
38
+ navigationWithScrollbar: { type: Boolean, default: true },
39
+ showNavigation: { type: Boolean, default: true },
40
+ headerClass: {},
41
+ tabsClass: {},
42
+ showDashboard: { type: Boolean },
43
+ dashboardWithScrollbar: { type: Boolean },
44
+ dashboardClass: {},
45
+ className: {}
46
+ },
47
+ setup(__props) {
48
+ const props = __props;
49
+ return (_ctx, _cache) => {
50
+ const _component_ElAutoResizer = resolveComponent("ElAutoResizer");
51
+ return openBlock(), createElementBlock("div", _hoisted_1, [
52
+ createVNode(unref(ElCard), {
53
+ class: normalizeClass(["jky-page-layout__aside shrink-0 overflow-hidden p-0", props.asideClass]),
54
+ style: { "--el-card-padding": 0 }
55
+ }, createSlots({
56
+ default: withCtx(() => [
57
+ props.asideWithScrollbar ? (openBlock(), createBlock(unref(ElScrollbar), { key: 0 }, {
58
+ default: withCtx(() => [
59
+ renderSlot(_ctx.$slots, "aside")
60
+ ]),
61
+ _: 3
62
+ })) : renderSlot(_ctx.$slots, "aside", { key: 1 })
63
+ ]),
64
+ _: 2
65
+ }, [
66
+ _ctx.$slots.menuHeader ? {
67
+ name: "header",
68
+ fn: withCtx(() => [
69
+ renderSlot(_ctx.$slots, "menuHeader")
70
+ ]),
71
+ key: "0"
72
+ } : void 0
73
+ ]), 1032, ["class"]),
74
+ __props.showNavigation ? (openBlock(), createBlock(unref(ElCard), {
75
+ key: 0,
76
+ class: normalizeClass(["jky-page-layout__navigation shrink-0 overflow-hidden p-0", props.navigationClass]),
77
+ style: { "--el-card-padding": 0 }
78
+ }, createSlots({
79
+ default: withCtx(() => [
80
+ props.navigationWithScrollbar ? (openBlock(), createBlock(unref(ElScrollbar), { key: 0 }, {
81
+ default: withCtx(() => [
82
+ renderSlot(_ctx.$slots, "navigation")
83
+ ]),
84
+ _: 3
85
+ })) : renderSlot(_ctx.$slots, "navigation", { key: 1 })
86
+ ]),
87
+ _: 2
88
+ }, [
89
+ _ctx.$slots.navigationHeader ? {
90
+ name: "header",
91
+ fn: withCtx(() => [
92
+ renderSlot(_ctx.$slots, "navigationHeader")
93
+ ]),
94
+ key: "0"
95
+ } : void 0
96
+ ]), 1032, ["class"])) : createCommentVNode("", true),
97
+ createElementVNode("div", {
98
+ class: normalizeClass(["jky-page-layout__main flex-1 flex flex-col min-w-0 overflow-hidden p-0 gap-y-4", props.mainClass])
99
+ }, [
100
+ _ctx.$slots.header ? (openBlock(), createElementBlock("div", {
101
+ key: 0,
102
+ class: normalizeClass(["jky-page-layout__header shrink-0 flex items-center overflow-hidden px-4", props.headerClass])
103
+ }, [
104
+ renderSlot(_ctx.$slots, "header")
105
+ ], 2)) : createCommentVNode("", true),
106
+ _ctx.$slots.tabs ? (openBlock(), createElementBlock("div", {
107
+ key: 1,
108
+ class: normalizeClass(["jky-page-layout__tabs shrink-0 overflow-hidden", props.tabsClass])
109
+ }, [
110
+ renderSlot(_ctx.$slots, "tabs")
111
+ ], 2)) : createCommentVNode("", true),
112
+ _ctx.$slots.dashboard ? (openBlock(), createBlock(unref(ElCard), {
113
+ key: 2,
114
+ class: normalizeClass(["jky-page-layout__dashboard shrink-0 overflow-hidden", props.dashboardClass])
115
+ }, {
116
+ default: withCtx(() => [
117
+ props.dashboardWithScrollbar ? (openBlock(), createBlock(unref(ElScrollbar), { key: 0 }, {
118
+ default: withCtx(() => [
119
+ renderSlot(_ctx.$slots, "dashboard")
120
+ ]),
121
+ _: 3
122
+ })) : renderSlot(_ctx.$slots, "dashboard", { key: 1 })
123
+ ]),
124
+ _: 3
125
+ }, 8, ["class"])) : createCommentVNode("", true),
126
+ (openBlock(), createBlock(resolveDynamicComponent(props.mainWithCard ? unref(ElCard) : "div"), {
127
+ "body-class": props.mainWithScrollbar ? "" : "pb-0!",
128
+ class: normalizeClass(["jky-page-layout__content flex-1 min-h-0 overflow-hidden", props.contentClass])
129
+ }, {
130
+ default: withCtx(() => [
131
+ props.mainWithScrollbar ? (openBlock(), createBlock(unref(ElScrollbar), { key: 0 }, {
132
+ default: withCtx(() => [
133
+ renderSlot(_ctx.$slots, "default")
134
+ ]),
135
+ _: 3
136
+ })) : (openBlock(), createBlock(_component_ElAutoResizer, { key: 1 }, {
137
+ default: withCtx(({ height }) => [
138
+ renderSlot(_ctx.$slots, "default", { height })
139
+ ]),
140
+ _: 3
141
+ }))
142
+ ]),
143
+ _: 3
144
+ }, 8, ["body-class", "class"]))
145
+ ], 2)
146
+ ]);
147
+ };
148
+ }
149
+ }));
150
+ export {
151
+ _sfc_main as default
152
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./PageLayout.vue.js";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -0,0 +1,4 @@
1
+ import { InstallWithSFC } from '../utils';
2
+ import { default as PageLayout } from './PageLayout.vue';
3
+ export declare const JkyPageLayout: InstallWithSFC<typeof PageLayout>;
4
+ export default JkyPageLayout;
@@ -0,0 +1,8 @@
1
+ import _sfc_main from "./PageLayout.vue.js";
2
+ /* empty css */
3
+ import { installWithSFC } from "../utils/with-install.js";
4
+ const JkyPageLayout = installWithSFC(_sfc_main);
5
+ export {
6
+ JkyPageLayout,
7
+ JkyPageLayout as default
8
+ };
@@ -0,0 +1,8 @@
1
+ :root {
2
+ /* PageLayout 布局组件 CSS 变量 */
3
+ }
4
+ .jky-page-layout {
5
+ .el-menu {
6
+ border-right: none;
7
+ }
8
+ }