xrk-components 2.0.0-beta.6 → 2.0.0-beta.8
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/lib/index.css +1 -1
- package/lib/index.esm.js +106 -73
- package/lib/index.umd.js +106 -73
- package/lib/packages/base/layout/body.d.ts +9 -0
- package/lib/packages/base/layout/index.d.ts +16 -6
- package/lib/packages/base/layout/main.d.ts +29 -1
- package/package.json +1 -1
package/lib/index.css
CHANGED
|
@@ -20407,7 +20407,6 @@
|
|
|
20407
20407
|
display: -webkit-flex;
|
|
20408
20408
|
display: -ms-flexbox;
|
|
20409
20409
|
display: flex;
|
|
20410
|
-
gap: 10px;
|
|
20411
20410
|
padding-right: 10px;
|
|
20412
20411
|
-webkit-box-sizing: border-box;
|
|
20413
20412
|
box-sizing: border-box;
|
|
@@ -20418,6 +20417,7 @@
|
|
|
20418
20417
|
flex-shrink: 0;
|
|
20419
20418
|
width: var(--base-layout-menu-width, 140px);
|
|
20420
20419
|
background-color: #fff;
|
|
20420
|
+
margin-right: 10px;
|
|
20421
20421
|
}
|
|
20422
20422
|
.base-layout-main > .content > .body[data-v-3f66cd84] {
|
|
20423
20423
|
-webkit-box-flex: 1;
|
package/lib/index.esm.js
CHANGED
|
@@ -75775,7 +75775,8 @@ var __default__$4 = {
|
|
|
75775
75775
|
name: 'base-layout-body'
|
|
75776
75776
|
};
|
|
75777
75777
|
var script$4 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$4), { props: {
|
|
75778
|
-
breadcrumbData: { type: null, required: false, default: [] }
|
|
75778
|
+
breadcrumbData: { type: null, required: false, default: [] },
|
|
75779
|
+
hideBreadcrumb: { type: Boolean, required: false }
|
|
75779
75780
|
}, setup: function (__props) {
|
|
75780
75781
|
var slots = useSlots();
|
|
75781
75782
|
return function (_ctx, _cache) {
|
|
@@ -75783,9 +75784,11 @@ var script$4 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$4
|
|
|
75783
75784
|
createElementVNode("div", _hoisted_2$3, [
|
|
75784
75785
|
(unref(slots).bodyTop)
|
|
75785
75786
|
? (openBlock(), createBlock(resolveDynamicComponent(unref(slots).bodyTop), { key: 0 }))
|
|
75786
|
-
: (
|
|
75787
|
-
|
|
75788
|
-
|
|
75787
|
+
: (!__props.hideBreadcrumb && __props.breadcrumbData.length > 0)
|
|
75788
|
+
? (openBlock(), createElementBlock("div", _hoisted_3$2, [
|
|
75789
|
+
createVNode(unref(BaseBreadcrumb), { data: __props.breadcrumbData }, null, 8 /* PROPS */, ["data"])
|
|
75790
|
+
]))
|
|
75791
|
+
: createCommentVNode("v-if", true)
|
|
75789
75792
|
]),
|
|
75790
75793
|
createVNode(unref(BaseLayoutFlexContent), { class: "content" }, {
|
|
75791
75794
|
default: withCtx(function () { return [
|
|
@@ -75836,10 +75839,10 @@ var script$3 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$3
|
|
|
75836
75839
|
var menuClassName = 'menu-name-one';
|
|
75837
75840
|
var menusRef = ref();
|
|
75838
75841
|
var menusMap = new Map();
|
|
75839
|
-
var activeMenus = ref([
|
|
75842
|
+
var activeMenus = ref([]);
|
|
75840
75843
|
var _menus = ref([]);
|
|
75841
75844
|
var checkHasChild = function (menu) {
|
|
75842
|
-
return Array.isArray(menu.
|
|
75845
|
+
return Array.isArray(menu.menuList) && menu.menuList.length > 0;
|
|
75843
75846
|
};
|
|
75844
75847
|
var onMenuClick = function (menu) {
|
|
75845
75848
|
if (!checkHasChild(menu)) {
|
|
@@ -75847,7 +75850,7 @@ var script$3 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$3
|
|
|
75847
75850
|
}
|
|
75848
75851
|
};
|
|
75849
75852
|
var onHashChange = function () {
|
|
75850
|
-
var hash = window.location.hash.slice(
|
|
75853
|
+
var hash = window.location.hash.slice(1);
|
|
75851
75854
|
activeMenus.value = menusMap.get(hash) || [];
|
|
75852
75855
|
};
|
|
75853
75856
|
var _b = (function () {
|
|
@@ -75889,11 +75892,11 @@ var script$3 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$3
|
|
|
75889
75892
|
var _copyNewMenus = JSON.parse(JSON.stringify(newMenus));
|
|
75890
75893
|
var computedMenus = function (menus, pUrls, parentMenus, parentMenu) {
|
|
75891
75894
|
menus.forEach(function (menu) {
|
|
75892
|
-
var mapUrl = __spreadArray(__spreadArray([], __read(pUrls), false), [menu.
|
|
75893
|
-
menusMap.set(menu.
|
|
75895
|
+
var mapUrl = __spreadArray(__spreadArray([], __read(pUrls), false), [menu.url], false);
|
|
75896
|
+
menusMap.set(menu.url, mapUrl);
|
|
75894
75897
|
menu._parentMenus = parentMenus;
|
|
75895
75898
|
menu._parentMenu = parentMenu;
|
|
75896
|
-
computedMenus(menu.
|
|
75899
|
+
computedMenus(menu.menuList || [], mapUrl, menus, menu);
|
|
75897
75900
|
});
|
|
75898
75901
|
};
|
|
75899
75902
|
computedMenus(_copyNewMenus, []);
|
|
@@ -75930,13 +75933,13 @@ var script$3 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$3
|
|
|
75930
75933
|
(checkHasChild(menu))
|
|
75931
75934
|
? (openBlock(), createBlock(unref(ElCollapseItem), {
|
|
75932
75935
|
key: 0,
|
|
75933
|
-
title: menu.
|
|
75934
|
-
name: menu.
|
|
75936
|
+
title: menu.url,
|
|
75937
|
+
name: menu.url
|
|
75935
75938
|
}, {
|
|
75936
75939
|
title: withCtx(function () { return [
|
|
75937
75940
|
createElementVNode("div", {
|
|
75938
75941
|
class: normalizeClass(menuClassName),
|
|
75939
|
-
name: menu.
|
|
75942
|
+
name: menu.url
|
|
75940
75943
|
}, [
|
|
75941
75944
|
(menu.icon)
|
|
75942
75945
|
? (openBlock(), createElementBlock("img", {
|
|
@@ -75944,22 +75947,22 @@ var script$3 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$3
|
|
|
75944
75947
|
src: menu.icon
|
|
75945
75948
|
}, null, 8 /* PROPS */, _hoisted_3$1))
|
|
75946
75949
|
: createCommentVNode("v-if", true),
|
|
75947
|
-
createElementVNode("span", null, toDisplayString(menu.
|
|
75950
|
+
createElementVNode("span", null, toDisplayString(menu.name), 1 /* TEXT */)
|
|
75948
75951
|
], 8 /* PROPS */, _hoisted_2$2)
|
|
75949
75952
|
]; }),
|
|
75950
75953
|
default: withCtx(function () { return [
|
|
75951
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(menu.
|
|
75954
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(menu.menuList, function (subMenu, subIndex) {
|
|
75952
75955
|
return (openBlock(), createElementBlock("div", {
|
|
75953
75956
|
key: subIndex,
|
|
75954
75957
|
class: normalizeClass(["sub-menu", {
|
|
75955
|
-
active: activeMenus.value.includes(subMenu.
|
|
75956
|
-
unref(activeSubMenu).
|
|
75958
|
+
active: activeMenus.value.includes(subMenu.url) ||
|
|
75959
|
+
unref(activeSubMenu).url === subMenu.url
|
|
75957
75960
|
}]),
|
|
75958
75961
|
onClick: function ($event) { return (onMenuClick(subMenu)); },
|
|
75959
|
-
name: subMenu.
|
|
75962
|
+
name: subMenu.url,
|
|
75960
75963
|
onMouseenter: function () { return unref(onMouseEnterMenu)(subMenu); },
|
|
75961
75964
|
onMouseleave: _cache[0] || (_cache[0] = function () { return unref(onMouseLeaveMenu)(); })
|
|
75962
|
-
}, toDisplayString(subMenu.
|
|
75965
|
+
}, toDisplayString(subMenu.name), 43 /* TEXT, CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_4$1));
|
|
75963
75966
|
}), 128 /* KEYED_FRAGMENT */))
|
|
75964
75967
|
]; }),
|
|
75965
75968
|
_: 2 /* DYNAMIC */
|
|
@@ -75975,7 +75978,7 @@ var script$3 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$3
|
|
|
75975
75978
|
}, [
|
|
75976
75979
|
createElementVNode("div", {
|
|
75977
75980
|
class: normalizeClass(menuClassName),
|
|
75978
|
-
name: menu.
|
|
75981
|
+
name: menu.name
|
|
75979
75982
|
}, [
|
|
75980
75983
|
(menu.icon)
|
|
75981
75984
|
? (openBlock(), createElementBlock("img", {
|
|
@@ -75983,7 +75986,7 @@ var script$3 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$3
|
|
|
75983
75986
|
src: menu.icon
|
|
75984
75987
|
}, null, 8 /* PROPS */, _hoisted_8$1))
|
|
75985
75988
|
: createCommentVNode("v-if", true),
|
|
75986
|
-
createElementVNode("span", null, toDisplayString(menu.
|
|
75989
|
+
createElementVNode("span", null, toDisplayString(menu.name), 1 /* TEXT */)
|
|
75987
75990
|
], 8 /* PROPS */, _hoisted_7$1),
|
|
75988
75991
|
_hoisted_9$1
|
|
75989
75992
|
], 8 /* PROPS */, _hoisted_6$1)
|
|
@@ -76000,23 +76003,23 @@ var script$3 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$3
|
|
|
76000
76003
|
onMouseleave: _cache[2] || (_cache[2] = function () { return unref(onMouseLeaveSubMenu)(); })
|
|
76001
76004
|
}, [
|
|
76002
76005
|
createElementVNode("div", _hoisted_10$1, [
|
|
76003
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(activeSubMenu).
|
|
76006
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(activeSubMenu).menuList || [], function (item) {
|
|
76004
76007
|
return (openBlock(), createElementBlock("div", {
|
|
76005
76008
|
class: "menu",
|
|
76006
|
-
key: item.
|
|
76009
|
+
key: item.url
|
|
76007
76010
|
}, [
|
|
76008
76011
|
createElementVNode("div", {
|
|
76009
76012
|
class: normalizeClass(["name", { 'no-child': !checkHasChild(item) }]),
|
|
76010
76013
|
onClick: function ($event) { return (onMenuClick(item)); }
|
|
76011
|
-
}, toDisplayString(item.
|
|
76012
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(item.
|
|
76014
|
+
}, toDisplayString(item.name), 11 /* TEXT, CLASS, PROPS */, _hoisted_11),
|
|
76015
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.menuList, function (subItem) {
|
|
76013
76016
|
return (openBlock(), createElementBlock("div", {
|
|
76014
76017
|
class: normalizeClass(["sub-menu", {
|
|
76015
|
-
active: activeMenus.value.includes(subItem.
|
|
76018
|
+
active: activeMenus.value.includes(subItem.url)
|
|
76016
76019
|
}]),
|
|
76017
|
-
key: subItem.
|
|
76020
|
+
key: subItem.url,
|
|
76018
76021
|
onClick: function ($event) { return (onMenuClick(subItem)); }
|
|
76019
|
-
}, toDisplayString(item.
|
|
76022
|
+
}, toDisplayString(item.name), 11 /* TEXT, CLASS, PROPS */, _hoisted_12));
|
|
76020
76023
|
}), 128 /* KEYED_FRAGMENT */))
|
|
76021
76024
|
]));
|
|
76022
76025
|
}), 128 /* KEYED_FRAGMENT */))
|
|
@@ -76037,54 +76040,68 @@ var __default__$2 = {
|
|
|
76037
76040
|
var script$2 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$2), { props: {
|
|
76038
76041
|
menus: { type: Array, required: true },
|
|
76039
76042
|
appName: { type: String, required: false },
|
|
76040
|
-
breadcrumbData: { type: Array, required: true }
|
|
76043
|
+
breadcrumbData: { type: Array, required: true },
|
|
76044
|
+
hideMenu: { type: Boolean, required: false },
|
|
76045
|
+
hideHeader: { type: Boolean, required: false },
|
|
76046
|
+
hideBreadcrumb: { type: Boolean, required: false }
|
|
76041
76047
|
}, emits: ["menuClick"], setup: function (__props, _a) {
|
|
76042
76048
|
var emits = _a.emit;
|
|
76043
76049
|
var slots = useSlots();
|
|
76044
76050
|
return function (_ctx, _cache) {
|
|
76045
76051
|
return (openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
76046
|
-
|
|
76047
|
-
|
|
76048
|
-
|
|
76049
|
-
|
|
76050
|
-
|
|
76051
|
-
|
|
76052
|
-
|
|
76053
|
-
|
|
76054
|
-
|
|
76055
|
-
|
|
76056
|
-
|
|
76057
|
-
|
|
76058
|
-
|
|
76059
|
-
|
|
76060
|
-
|
|
76061
|
-
|
|
76062
|
-
|
|
76063
|
-
|
|
76064
|
-
|
|
76065
|
-
|
|
76066
|
-
|
|
76067
|
-
|
|
76068
|
-
|
|
76069
|
-
|
|
76070
|
-
|
|
76071
|
-
|
|
76072
|
-
|
|
76073
|
-
|
|
76074
|
-
|
|
76052
|
+
(!__props.hideHeader)
|
|
76053
|
+
? (openBlock(), createBlock(unref(BaseLayoutHeader), {
|
|
76054
|
+
key: 0,
|
|
76055
|
+
class: "header",
|
|
76056
|
+
appName: __props.appName
|
|
76057
|
+
}, createSlots({ _: 2 /* DYNAMIC */ }, [
|
|
76058
|
+
(unref(slots).headerLeft)
|
|
76059
|
+
? {
|
|
76060
|
+
name: "headerLeft",
|
|
76061
|
+
fn: withCtx(function () { return [
|
|
76062
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(slots).headerLeft)))
|
|
76063
|
+
]; })
|
|
76064
|
+
}
|
|
76065
|
+
: undefined,
|
|
76066
|
+
(unref(slots).headerLeftName)
|
|
76067
|
+
? {
|
|
76068
|
+
name: "headerLeftName",
|
|
76069
|
+
fn: withCtx(function () { return [
|
|
76070
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(slots).headerLeftName)))
|
|
76071
|
+
]; })
|
|
76072
|
+
}
|
|
76073
|
+
: undefined,
|
|
76074
|
+
(unref(slots).headerRight)
|
|
76075
|
+
? {
|
|
76076
|
+
name: "headerRight",
|
|
76077
|
+
fn: withCtx(function () { return [
|
|
76078
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(slots).headerRight)))
|
|
76079
|
+
]; })
|
|
76080
|
+
}
|
|
76081
|
+
: undefined
|
|
76082
|
+
]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["appName"]))
|
|
76083
|
+
: createCommentVNode("v-if", true),
|
|
76075
76084
|
createElementVNode("div", _hoisted_2$1, [
|
|
76076
|
-
|
|
76077
|
-
|
|
76078
|
-
|
|
76079
|
-
|
|
76080
|
-
|
|
76081
|
-
|
|
76082
|
-
|
|
76083
|
-
|
|
76084
|
-
|
|
76085
|
+
(!__props.hideMenu)
|
|
76086
|
+
? (openBlock(), createBlock(unref(BaseLayoutFlexContent), {
|
|
76087
|
+
key: 0,
|
|
76088
|
+
class: "menu"
|
|
76089
|
+
}, {
|
|
76090
|
+
default: withCtx(function () { return [
|
|
76091
|
+
createVNode(unref(BaseLayoutMenu), {
|
|
76092
|
+
menus: __props.menus,
|
|
76093
|
+
onMenuClick: _cache[0] || (_cache[0] = function (menu) { return emits('menuClick', menu); })
|
|
76094
|
+
}, null, 8 /* PROPS */, ["menus"])
|
|
76095
|
+
]; }),
|
|
76096
|
+
_: 1 /* STABLE */
|
|
76097
|
+
}))
|
|
76098
|
+
: createCommentVNode("v-if", true),
|
|
76085
76099
|
createVNode(unref(BaseLayoutFlexContent), { class: "body" }, {
|
|
76086
76100
|
default: withCtx(function () { return [
|
|
76087
|
-
createVNode(unref(BaseLayoutBody), {
|
|
76101
|
+
createVNode(unref(BaseLayoutBody), {
|
|
76102
|
+
breadcrumbData: __props.breadcrumbData,
|
|
76103
|
+
hideBreadcrumb: __props.hideBreadcrumb
|
|
76104
|
+
}, createSlots({
|
|
76088
76105
|
default: withCtx(function () { return [
|
|
76089
76106
|
(unref(slots).default)
|
|
76090
76107
|
? (openBlock(), createBlock(resolveDynamicComponent(unref(slots).default), { key: 0 }))
|
|
@@ -76100,7 +76117,7 @@ var script$2 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$2
|
|
|
76100
76117
|
]; })
|
|
76101
76118
|
}
|
|
76102
76119
|
: undefined
|
|
76103
|
-
]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["breadcrumbData"])
|
|
76120
|
+
]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["breadcrumbData", "hideBreadcrumb"])
|
|
76104
76121
|
]; }),
|
|
76105
76122
|
_: 1 /* STABLE */
|
|
76106
76123
|
})
|
|
@@ -76266,9 +76283,17 @@ var script$1 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$1
|
|
|
76266
76283
|
});
|
|
76267
76284
|
return function (_ctx, _cache) {
|
|
76268
76285
|
return (openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
76286
|
+
(unref(slots).tableTop)
|
|
76287
|
+
? renderSlot(_ctx.$slots, "tableTop", {
|
|
76288
|
+
key: 0,
|
|
76289
|
+
selectionRows: TableSelectionRows.value,
|
|
76290
|
+
tableData: unref(pageAllData),
|
|
76291
|
+
searchQuery: unref(query)
|
|
76292
|
+
})
|
|
76293
|
+
: createCommentVNode("v-if", true),
|
|
76269
76294
|
(!__props.searchConfig.hide)
|
|
76270
76295
|
? (openBlock(), createBlock(script$a, {
|
|
76271
|
-
key:
|
|
76296
|
+
key: 1,
|
|
76272
76297
|
ref_key: "XrkSearchRef",
|
|
76273
76298
|
ref: XrkSearchRef,
|
|
76274
76299
|
columns: __props.searchConfig.searchColumns,
|
|
@@ -76280,7 +76305,7 @@ var script$1 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$1
|
|
|
76280
76305
|
: createCommentVNode("v-if", true),
|
|
76281
76306
|
(unref(slots).tableBefore)
|
|
76282
76307
|
? renderSlot(_ctx.$slots, "tableBefore", {
|
|
76283
|
-
key:
|
|
76308
|
+
key: 2,
|
|
76284
76309
|
selectionRows: TableSelectionRows.value,
|
|
76285
76310
|
tableData: unref(pageAllData),
|
|
76286
76311
|
searchQuery: unref(query)
|
|
@@ -76314,7 +76339,7 @@ var script$1 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$1
|
|
|
76314
76339
|
}, 8 /* PROPS */, ["style"]),
|
|
76315
76340
|
(unref(slots).tableAfter)
|
|
76316
76341
|
? renderSlot(_ctx.$slots, "tableAfter", {
|
|
76317
|
-
key:
|
|
76342
|
+
key: 3,
|
|
76318
76343
|
selectionRows: TableSelectionRows.value,
|
|
76319
76344
|
tableData: unref(pageAllData),
|
|
76320
76345
|
searchQuery: unref(query)
|
|
@@ -76322,7 +76347,7 @@ var script$1 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$1
|
|
|
76322
76347
|
: createCommentVNode("v-if", true),
|
|
76323
76348
|
(!unref(paginationConfig).hide)
|
|
76324
76349
|
? (openBlock(), createBlock(unref(BasePagination), {
|
|
76325
|
-
key:
|
|
76350
|
+
key: 4,
|
|
76326
76351
|
ref_key: "BasePaginationRef",
|
|
76327
76352
|
ref: BasePaginationRef,
|
|
76328
76353
|
total: unref(paginationTotal),
|
|
@@ -76331,6 +76356,14 @@ var script$1 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$1
|
|
|
76331
76356
|
onSizeChange: handlePageChange,
|
|
76332
76357
|
onCurrentChange: handlePageChange
|
|
76333
76358
|
}, null, 8 /* PROPS */, ["total", "pageSize", "currentPage"]))
|
|
76359
|
+
: createCommentVNode("v-if", true),
|
|
76360
|
+
(unref(slots).tableBottom)
|
|
76361
|
+
? renderSlot(_ctx.$slots, "tableTop", {
|
|
76362
|
+
key: 5,
|
|
76363
|
+
selectionRows: TableSelectionRows.value,
|
|
76364
|
+
tableData: unref(pageAllData),
|
|
76365
|
+
searchQuery: unref(query)
|
|
76366
|
+
})
|
|
76334
76367
|
: createCommentVNode("v-if", true)
|
|
76335
76368
|
]));
|
|
76336
76369
|
};
|
package/lib/index.umd.js
CHANGED
|
@@ -75778,7 +75778,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
75778
75778
|
name: 'base-layout-body'
|
|
75779
75779
|
};
|
|
75780
75780
|
var script$4 = /*#__PURE__*/ vue.defineComponent(__assign(__assign({}, __default__$4), { props: {
|
|
75781
|
-
breadcrumbData: { type: null, required: false, default: [] }
|
|
75781
|
+
breadcrumbData: { type: null, required: false, default: [] },
|
|
75782
|
+
hideBreadcrumb: { type: Boolean, required: false }
|
|
75782
75783
|
}, setup: function (__props) {
|
|
75783
75784
|
var slots = vue.useSlots();
|
|
75784
75785
|
return function (_ctx, _cache) {
|
|
@@ -75786,9 +75787,11 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
75786
75787
|
vue.createElementVNode("div", _hoisted_2$3, [
|
|
75787
75788
|
(vue.unref(slots).bodyTop)
|
|
75788
75789
|
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(slots).bodyTop), { key: 0 }))
|
|
75789
|
-
: (
|
|
75790
|
-
|
|
75791
|
-
|
|
75790
|
+
: (!__props.hideBreadcrumb && __props.breadcrumbData.length > 0)
|
|
75791
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$2, [
|
|
75792
|
+
vue.createVNode(vue.unref(BaseBreadcrumb), { data: __props.breadcrumbData }, null, 8 /* PROPS */, ["data"])
|
|
75793
|
+
]))
|
|
75794
|
+
: vue.createCommentVNode("v-if", true)
|
|
75792
75795
|
]),
|
|
75793
75796
|
vue.createVNode(vue.unref(BaseLayoutFlexContent), { class: "content" }, {
|
|
75794
75797
|
default: vue.withCtx(function () { return [
|
|
@@ -75839,10 +75842,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
75839
75842
|
var menuClassName = 'menu-name-one';
|
|
75840
75843
|
var menusRef = vue.ref();
|
|
75841
75844
|
var menusMap = new Map();
|
|
75842
|
-
var activeMenus = vue.ref([
|
|
75845
|
+
var activeMenus = vue.ref([]);
|
|
75843
75846
|
var _menus = vue.ref([]);
|
|
75844
75847
|
var checkHasChild = function (menu) {
|
|
75845
|
-
return Array.isArray(menu.
|
|
75848
|
+
return Array.isArray(menu.menuList) && menu.menuList.length > 0;
|
|
75846
75849
|
};
|
|
75847
75850
|
var onMenuClick = function (menu) {
|
|
75848
75851
|
if (!checkHasChild(menu)) {
|
|
@@ -75850,7 +75853,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
75850
75853
|
}
|
|
75851
75854
|
};
|
|
75852
75855
|
var onHashChange = function () {
|
|
75853
|
-
var hash = window.location.hash.slice(
|
|
75856
|
+
var hash = window.location.hash.slice(1);
|
|
75854
75857
|
activeMenus.value = menusMap.get(hash) || [];
|
|
75855
75858
|
};
|
|
75856
75859
|
var _b = (function () {
|
|
@@ -75892,11 +75895,11 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
75892
75895
|
var _copyNewMenus = JSON.parse(JSON.stringify(newMenus));
|
|
75893
75896
|
var computedMenus = function (menus, pUrls, parentMenus, parentMenu) {
|
|
75894
75897
|
menus.forEach(function (menu) {
|
|
75895
|
-
var mapUrl = __spreadArray(__spreadArray([], __read(pUrls), false), [menu.
|
|
75896
|
-
menusMap.set(menu.
|
|
75898
|
+
var mapUrl = __spreadArray(__spreadArray([], __read(pUrls), false), [menu.url], false);
|
|
75899
|
+
menusMap.set(menu.url, mapUrl);
|
|
75897
75900
|
menu._parentMenus = parentMenus;
|
|
75898
75901
|
menu._parentMenu = parentMenu;
|
|
75899
|
-
computedMenus(menu.
|
|
75902
|
+
computedMenus(menu.menuList || [], mapUrl, menus, menu);
|
|
75900
75903
|
});
|
|
75901
75904
|
};
|
|
75902
75905
|
computedMenus(_copyNewMenus, []);
|
|
@@ -75933,13 +75936,13 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
75933
75936
|
(checkHasChild(menu))
|
|
75934
75937
|
? (vue.openBlock(), vue.createBlock(vue.unref(ElCollapseItem), {
|
|
75935
75938
|
key: 0,
|
|
75936
|
-
title: menu.
|
|
75937
|
-
name: menu.
|
|
75939
|
+
title: menu.url,
|
|
75940
|
+
name: menu.url
|
|
75938
75941
|
}, {
|
|
75939
75942
|
title: vue.withCtx(function () { return [
|
|
75940
75943
|
vue.createElementVNode("div", {
|
|
75941
75944
|
class: vue.normalizeClass(menuClassName),
|
|
75942
|
-
name: menu.
|
|
75945
|
+
name: menu.url
|
|
75943
75946
|
}, [
|
|
75944
75947
|
(menu.icon)
|
|
75945
75948
|
? (vue.openBlock(), vue.createElementBlock("img", {
|
|
@@ -75947,22 +75950,22 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
75947
75950
|
src: menu.icon
|
|
75948
75951
|
}, null, 8 /* PROPS */, _hoisted_3$1))
|
|
75949
75952
|
: vue.createCommentVNode("v-if", true),
|
|
75950
|
-
vue.createElementVNode("span", null, vue.toDisplayString(menu.
|
|
75953
|
+
vue.createElementVNode("span", null, vue.toDisplayString(menu.name), 1 /* TEXT */)
|
|
75951
75954
|
], 8 /* PROPS */, _hoisted_2$2)
|
|
75952
75955
|
]; }),
|
|
75953
75956
|
default: vue.withCtx(function () { return [
|
|
75954
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(menu.
|
|
75957
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(menu.menuList, function (subMenu, subIndex) {
|
|
75955
75958
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
75956
75959
|
key: subIndex,
|
|
75957
75960
|
class: vue.normalizeClass(["sub-menu", {
|
|
75958
|
-
active: activeMenus.value.includes(subMenu.
|
|
75959
|
-
vue.unref(activeSubMenu).
|
|
75961
|
+
active: activeMenus.value.includes(subMenu.url) ||
|
|
75962
|
+
vue.unref(activeSubMenu).url === subMenu.url
|
|
75960
75963
|
}]),
|
|
75961
75964
|
onClick: function ($event) { return (onMenuClick(subMenu)); },
|
|
75962
|
-
name: subMenu.
|
|
75965
|
+
name: subMenu.url,
|
|
75963
75966
|
onMouseenter: function () { return vue.unref(onMouseEnterMenu)(subMenu); },
|
|
75964
75967
|
onMouseleave: _cache[0] || (_cache[0] = function () { return vue.unref(onMouseLeaveMenu)(); })
|
|
75965
|
-
}, vue.toDisplayString(subMenu.
|
|
75968
|
+
}, vue.toDisplayString(subMenu.name), 43 /* TEXT, CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_4$1));
|
|
75966
75969
|
}), 128 /* KEYED_FRAGMENT */))
|
|
75967
75970
|
]; }),
|
|
75968
75971
|
_: 2 /* DYNAMIC */
|
|
@@ -75978,7 +75981,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
75978
75981
|
}, [
|
|
75979
75982
|
vue.createElementVNode("div", {
|
|
75980
75983
|
class: vue.normalizeClass(menuClassName),
|
|
75981
|
-
name: menu.
|
|
75984
|
+
name: menu.name
|
|
75982
75985
|
}, [
|
|
75983
75986
|
(menu.icon)
|
|
75984
75987
|
? (vue.openBlock(), vue.createElementBlock("img", {
|
|
@@ -75986,7 +75989,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
75986
75989
|
src: menu.icon
|
|
75987
75990
|
}, null, 8 /* PROPS */, _hoisted_8$1))
|
|
75988
75991
|
: vue.createCommentVNode("v-if", true),
|
|
75989
|
-
vue.createElementVNode("span", null, vue.toDisplayString(menu.
|
|
75992
|
+
vue.createElementVNode("span", null, vue.toDisplayString(menu.name), 1 /* TEXT */)
|
|
75990
75993
|
], 8 /* PROPS */, _hoisted_7$1),
|
|
75991
75994
|
_hoisted_9$1
|
|
75992
75995
|
], 8 /* PROPS */, _hoisted_6$1)
|
|
@@ -76003,23 +76006,23 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76003
76006
|
onMouseleave: _cache[2] || (_cache[2] = function () { return vue.unref(onMouseLeaveSubMenu)(); })
|
|
76004
76007
|
}, [
|
|
76005
76008
|
vue.createElementVNode("div", _hoisted_10$1, [
|
|
76006
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(activeSubMenu).
|
|
76009
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(activeSubMenu).menuList || [], function (item) {
|
|
76007
76010
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
76008
76011
|
class: "menu",
|
|
76009
|
-
key: item.
|
|
76012
|
+
key: item.url
|
|
76010
76013
|
}, [
|
|
76011
76014
|
vue.createElementVNode("div", {
|
|
76012
76015
|
class: vue.normalizeClass(["name", { 'no-child': !checkHasChild(item) }]),
|
|
76013
76016
|
onClick: function ($event) { return (onMenuClick(item)); }
|
|
76014
|
-
}, vue.toDisplayString(item.
|
|
76015
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.
|
|
76017
|
+
}, vue.toDisplayString(item.name), 11 /* TEXT, CLASS, PROPS */, _hoisted_11),
|
|
76018
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.menuList, function (subItem) {
|
|
76016
76019
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
76017
76020
|
class: vue.normalizeClass(["sub-menu", {
|
|
76018
|
-
active: activeMenus.value.includes(subItem.
|
|
76021
|
+
active: activeMenus.value.includes(subItem.url)
|
|
76019
76022
|
}]),
|
|
76020
|
-
key: subItem.
|
|
76023
|
+
key: subItem.url,
|
|
76021
76024
|
onClick: function ($event) { return (onMenuClick(subItem)); }
|
|
76022
|
-
}, vue.toDisplayString(item.
|
|
76025
|
+
}, vue.toDisplayString(item.name), 11 /* TEXT, CLASS, PROPS */, _hoisted_12));
|
|
76023
76026
|
}), 128 /* KEYED_FRAGMENT */))
|
|
76024
76027
|
]));
|
|
76025
76028
|
}), 128 /* KEYED_FRAGMENT */))
|
|
@@ -76040,54 +76043,68 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76040
76043
|
var script$2 = /*#__PURE__*/ vue.defineComponent(__assign(__assign({}, __default__$2), { props: {
|
|
76041
76044
|
menus: { type: Array, required: true },
|
|
76042
76045
|
appName: { type: String, required: false },
|
|
76043
|
-
breadcrumbData: { type: Array, required: true }
|
|
76046
|
+
breadcrumbData: { type: Array, required: true },
|
|
76047
|
+
hideMenu: { type: Boolean, required: false },
|
|
76048
|
+
hideHeader: { type: Boolean, required: false },
|
|
76049
|
+
hideBreadcrumb: { type: Boolean, required: false }
|
|
76044
76050
|
}, emits: ["menuClick"], setup: function (__props, _a) {
|
|
76045
76051
|
var emits = _a.emit;
|
|
76046
76052
|
var slots = vue.useSlots();
|
|
76047
76053
|
return function (_ctx, _cache) {
|
|
76048
76054
|
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
|
|
76049
|
-
|
|
76050
|
-
|
|
76051
|
-
|
|
76052
|
-
|
|
76053
|
-
|
|
76054
|
-
|
|
76055
|
-
|
|
76056
|
-
|
|
76057
|
-
|
|
76058
|
-
|
|
76059
|
-
|
|
76060
|
-
|
|
76061
|
-
|
|
76062
|
-
|
|
76063
|
-
|
|
76064
|
-
|
|
76065
|
-
|
|
76066
|
-
|
|
76067
|
-
|
|
76068
|
-
|
|
76069
|
-
|
|
76070
|
-
|
|
76071
|
-
|
|
76072
|
-
|
|
76073
|
-
|
|
76074
|
-
|
|
76075
|
-
|
|
76076
|
-
|
|
76077
|
-
|
|
76055
|
+
(!__props.hideHeader)
|
|
76056
|
+
? (vue.openBlock(), vue.createBlock(vue.unref(BaseLayoutHeader), {
|
|
76057
|
+
key: 0,
|
|
76058
|
+
class: "header",
|
|
76059
|
+
appName: __props.appName
|
|
76060
|
+
}, vue.createSlots({ _: 2 /* DYNAMIC */ }, [
|
|
76061
|
+
(vue.unref(slots).headerLeft)
|
|
76062
|
+
? {
|
|
76063
|
+
name: "headerLeft",
|
|
76064
|
+
fn: vue.withCtx(function () { return [
|
|
76065
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(slots).headerLeft)))
|
|
76066
|
+
]; })
|
|
76067
|
+
}
|
|
76068
|
+
: undefined,
|
|
76069
|
+
(vue.unref(slots).headerLeftName)
|
|
76070
|
+
? {
|
|
76071
|
+
name: "headerLeftName",
|
|
76072
|
+
fn: vue.withCtx(function () { return [
|
|
76073
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(slots).headerLeftName)))
|
|
76074
|
+
]; })
|
|
76075
|
+
}
|
|
76076
|
+
: undefined,
|
|
76077
|
+
(vue.unref(slots).headerRight)
|
|
76078
|
+
? {
|
|
76079
|
+
name: "headerRight",
|
|
76080
|
+
fn: vue.withCtx(function () { return [
|
|
76081
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(slots).headerRight)))
|
|
76082
|
+
]; })
|
|
76083
|
+
}
|
|
76084
|
+
: undefined
|
|
76085
|
+
]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["appName"]))
|
|
76086
|
+
: vue.createCommentVNode("v-if", true),
|
|
76078
76087
|
vue.createElementVNode("div", _hoisted_2$1, [
|
|
76079
|
-
|
|
76080
|
-
|
|
76081
|
-
|
|
76082
|
-
|
|
76083
|
-
|
|
76084
|
-
|
|
76085
|
-
|
|
76086
|
-
|
|
76087
|
-
|
|
76088
|
+
(!__props.hideMenu)
|
|
76089
|
+
? (vue.openBlock(), vue.createBlock(vue.unref(BaseLayoutFlexContent), {
|
|
76090
|
+
key: 0,
|
|
76091
|
+
class: "menu"
|
|
76092
|
+
}, {
|
|
76093
|
+
default: vue.withCtx(function () { return [
|
|
76094
|
+
vue.createVNode(vue.unref(BaseLayoutMenu), {
|
|
76095
|
+
menus: __props.menus,
|
|
76096
|
+
onMenuClick: _cache[0] || (_cache[0] = function (menu) { return emits('menuClick', menu); })
|
|
76097
|
+
}, null, 8 /* PROPS */, ["menus"])
|
|
76098
|
+
]; }),
|
|
76099
|
+
_: 1 /* STABLE */
|
|
76100
|
+
}))
|
|
76101
|
+
: vue.createCommentVNode("v-if", true),
|
|
76088
76102
|
vue.createVNode(vue.unref(BaseLayoutFlexContent), { class: "body" }, {
|
|
76089
76103
|
default: vue.withCtx(function () { return [
|
|
76090
|
-
vue.createVNode(vue.unref(BaseLayoutBody), {
|
|
76104
|
+
vue.createVNode(vue.unref(BaseLayoutBody), {
|
|
76105
|
+
breadcrumbData: __props.breadcrumbData,
|
|
76106
|
+
hideBreadcrumb: __props.hideBreadcrumb
|
|
76107
|
+
}, vue.createSlots({
|
|
76091
76108
|
default: vue.withCtx(function () { return [
|
|
76092
76109
|
(vue.unref(slots).default)
|
|
76093
76110
|
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(slots).default), { key: 0 }))
|
|
@@ -76103,7 +76120,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76103
76120
|
]; })
|
|
76104
76121
|
}
|
|
76105
76122
|
: undefined
|
|
76106
|
-
]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["breadcrumbData"])
|
|
76123
|
+
]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["breadcrumbData", "hideBreadcrumb"])
|
|
76107
76124
|
]; }),
|
|
76108
76125
|
_: 1 /* STABLE */
|
|
76109
76126
|
})
|
|
@@ -76269,9 +76286,17 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76269
76286
|
});
|
|
76270
76287
|
return function (_ctx, _cache) {
|
|
76271
76288
|
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
|
|
76289
|
+
(vue.unref(slots).tableTop)
|
|
76290
|
+
? vue.renderSlot(_ctx.$slots, "tableTop", {
|
|
76291
|
+
key: 0,
|
|
76292
|
+
selectionRows: TableSelectionRows.value,
|
|
76293
|
+
tableData: vue.unref(pageAllData),
|
|
76294
|
+
searchQuery: vue.unref(query)
|
|
76295
|
+
})
|
|
76296
|
+
: vue.createCommentVNode("v-if", true),
|
|
76272
76297
|
(!__props.searchConfig.hide)
|
|
76273
76298
|
? (vue.openBlock(), vue.createBlock(script$a, {
|
|
76274
|
-
key:
|
|
76299
|
+
key: 1,
|
|
76275
76300
|
ref_key: "XrkSearchRef",
|
|
76276
76301
|
ref: XrkSearchRef,
|
|
76277
76302
|
columns: __props.searchConfig.searchColumns,
|
|
@@ -76283,7 +76308,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76283
76308
|
: vue.createCommentVNode("v-if", true),
|
|
76284
76309
|
(vue.unref(slots).tableBefore)
|
|
76285
76310
|
? vue.renderSlot(_ctx.$slots, "tableBefore", {
|
|
76286
|
-
key:
|
|
76311
|
+
key: 2,
|
|
76287
76312
|
selectionRows: TableSelectionRows.value,
|
|
76288
76313
|
tableData: vue.unref(pageAllData),
|
|
76289
76314
|
searchQuery: vue.unref(query)
|
|
@@ -76317,7 +76342,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76317
76342
|
}, 8 /* PROPS */, ["style"]),
|
|
76318
76343
|
(vue.unref(slots).tableAfter)
|
|
76319
76344
|
? vue.renderSlot(_ctx.$slots, "tableAfter", {
|
|
76320
|
-
key:
|
|
76345
|
+
key: 3,
|
|
76321
76346
|
selectionRows: TableSelectionRows.value,
|
|
76322
76347
|
tableData: vue.unref(pageAllData),
|
|
76323
76348
|
searchQuery: vue.unref(query)
|
|
@@ -76325,7 +76350,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76325
76350
|
: vue.createCommentVNode("v-if", true),
|
|
76326
76351
|
(!vue.unref(paginationConfig).hide)
|
|
76327
76352
|
? (vue.openBlock(), vue.createBlock(vue.unref(BasePagination), {
|
|
76328
|
-
key:
|
|
76353
|
+
key: 4,
|
|
76329
76354
|
ref_key: "BasePaginationRef",
|
|
76330
76355
|
ref: BasePaginationRef,
|
|
76331
76356
|
total: vue.unref(paginationTotal),
|
|
@@ -76334,6 +76359,14 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76334
76359
|
onSizeChange: handlePageChange,
|
|
76335
76360
|
onCurrentChange: handlePageChange
|
|
76336
76361
|
}, null, 8 /* PROPS */, ["total", "pageSize", "currentPage"]))
|
|
76362
|
+
: vue.createCommentVNode("v-if", true),
|
|
76363
|
+
(vue.unref(slots).tableBottom)
|
|
76364
|
+
? vue.renderSlot(_ctx.$slots, "tableTop", {
|
|
76365
|
+
key: 5,
|
|
76366
|
+
selectionRows: TableSelectionRows.value,
|
|
76367
|
+
tableData: vue.unref(pageAllData),
|
|
76368
|
+
searchQuery: vue.unref(query)
|
|
76369
|
+
})
|
|
76337
76370
|
: vue.createCommentVNode("v-if", true)
|
|
76338
76371
|
]));
|
|
76339
76372
|
};
|
|
@@ -4,6 +4,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4
4
|
required: false;
|
|
5
5
|
default: never[];
|
|
6
6
|
};
|
|
7
|
+
hideBreadcrumb: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
required: false;
|
|
10
|
+
};
|
|
7
11
|
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
8
12
|
[key: string]: any;
|
|
9
13
|
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -12,7 +16,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
16
|
required: false;
|
|
13
17
|
default: never[];
|
|
14
18
|
};
|
|
19
|
+
hideBreadcrumb: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
required: false;
|
|
22
|
+
};
|
|
15
23
|
}>>, {
|
|
16
24
|
breadcrumbData: any;
|
|
25
|
+
hideBreadcrumb: boolean;
|
|
17
26
|
}>;
|
|
18
27
|
export default _default;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { DefineComponent } from 'vue';
|
|
2
2
|
export declare type BaseLayoutMenuProps = {
|
|
3
3
|
menus: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
name: string;
|
|
5
|
+
url: string;
|
|
6
|
+
id?: number;
|
|
7
|
+
icon?: string;
|
|
8
|
+
permissionDef?: string;
|
|
9
|
+
resourceType?: 2 | 3;
|
|
10
|
+
menuList?: BaseLayoutMenuProps['menus'];
|
|
8
11
|
_parentMenus?: BaseLayoutMenuProps['menus'];
|
|
9
12
|
_parentMenu?: BaseLayoutMenuProps['menus'][0];
|
|
10
13
|
}[];
|
|
@@ -15,9 +18,16 @@ export declare type BaseLayoutHeaderProps = {
|
|
|
15
18
|
};
|
|
16
19
|
export declare type BaseLayoutBodyProps = {
|
|
17
20
|
breadcrumbData?: any[];
|
|
21
|
+
hideBreadcrumb?: boolean;
|
|
18
22
|
};
|
|
19
23
|
export declare const BaseLayoutFlexContent: DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
20
24
|
export declare const BaseLayoutHeader: DefineComponent<BaseLayoutHeaderProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseLayoutHeaderProps>, {}>;
|
|
21
|
-
export declare const BaseLayoutBody: DefineComponent<BaseLayoutBodyProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<
|
|
25
|
+
export declare const BaseLayoutBody: DefineComponent<BaseLayoutBodyProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseLayoutBodyProps>, {}>;
|
|
22
26
|
export declare const BaseLayoutMenu: DefineComponent<BaseLayoutMenuProps, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<BaseLayoutMenuProps>, {}>;
|
|
23
|
-
export declare const BaseLayoutMain: DefineComponent<BaseLayoutMenuProps & BaseLayoutBodyProps & BaseLayoutHeaderProps
|
|
27
|
+
export declare const BaseLayoutMain: DefineComponent<Partial<BaseLayoutMenuProps> & Partial<BaseLayoutBodyProps> & Partial<BaseLayoutHeaderProps> & {
|
|
28
|
+
hideMenu?: boolean | undefined;
|
|
29
|
+
hideHeader?: boolean | undefined;
|
|
30
|
+
}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<Partial<BaseLayoutMenuProps> & Partial<BaseLayoutBodyProps> & Partial<BaseLayoutHeaderProps> & {
|
|
31
|
+
hideMenu?: boolean | undefined;
|
|
32
|
+
hideHeader?: boolean | undefined;
|
|
33
|
+
}>, {}>;
|
|
@@ -11,6 +11,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
type: ArrayConstructor;
|
|
12
12
|
required: true;
|
|
13
13
|
};
|
|
14
|
+
hideMenu: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
required: false;
|
|
17
|
+
};
|
|
18
|
+
hideHeader: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
required: false;
|
|
21
|
+
};
|
|
22
|
+
hideBreadcrumb: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
required: false;
|
|
25
|
+
};
|
|
14
26
|
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
15
27
|
[key: string]: any;
|
|
16
28
|
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "menuClick"[], "menuClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -26,7 +38,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
38
|
type: ArrayConstructor;
|
|
27
39
|
required: true;
|
|
28
40
|
};
|
|
41
|
+
hideMenu: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
required: false;
|
|
44
|
+
};
|
|
45
|
+
hideHeader: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
required: false;
|
|
48
|
+
};
|
|
49
|
+
hideBreadcrumb: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
required: false;
|
|
52
|
+
};
|
|
29
53
|
}>> & {
|
|
30
54
|
onMenuClick?: ((...args: any[]) => any) | undefined;
|
|
31
|
-
}, {
|
|
55
|
+
}, {
|
|
56
|
+
hideMenu: boolean;
|
|
57
|
+
hideHeader: boolean;
|
|
58
|
+
hideBreadcrumb: boolean;
|
|
59
|
+
}>;
|
|
32
60
|
export default _default;
|