xrk-components 2.0.0-beta.72 → 2.0.0-beta.74
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 +2 -2
- package/lib/index.esm.js +3 -2
- package/lib/index.umd.js +3 -2
- package/package.json +1 -1
package/lib/index.css
CHANGED
|
@@ -19649,10 +19649,10 @@
|
|
|
19649
19649
|
user-select: none;
|
|
19650
19650
|
}
|
|
19651
19651
|
.btn-group .btn.disabled[data-v-c71e9bd0] {
|
|
19652
|
-
|
|
19652
|
+
color: rgba(26, 26, 26, 0.5);
|
|
19653
19653
|
cursor: not-allowed;
|
|
19654
19654
|
}
|
|
19655
|
-
.btn-group .btn[data-v-c71e9bd0]:hover {
|
|
19655
|
+
.btn-group .btn[data-v-c71e9bd0]:not(.disabled):hover {
|
|
19656
19656
|
color: #2c82ea;
|
|
19657
19657
|
background-color: #f0f0f0;
|
|
19658
19658
|
}
|
package/lib/index.esm.js
CHANGED
|
@@ -76918,11 +76918,12 @@ var script$2 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$2
|
|
|
76918
76918
|
}
|
|
76919
76919
|
return !props.hideMenu;
|
|
76920
76920
|
});
|
|
76921
|
+
var dateNow = Date.now();
|
|
76921
76922
|
var menusMap = new Map();
|
|
76922
76923
|
var currentMenu = ref();
|
|
76923
76924
|
var menuBase = computed(function () {
|
|
76924
76925
|
var menuArr = props.menus.map(function (menu, index) {
|
|
76925
|
-
return __assign(__assign({}, menu), { menuKey: (menu === null || menu === void 0 ? void 0 : menu.menuKey) || index +
|
|
76926
|
+
return __assign(__assign({}, menu), { menuKey: (menu === null || menu === void 0 ? void 0 : menu.menuKey) || index + dateNow, url: (menu === null || menu === void 0 ? void 0 : menu.url) || index + dateNow });
|
|
76926
76927
|
});
|
|
76927
76928
|
setMenuMap(menuArr, menusMap);
|
|
76928
76929
|
return menuArr;
|
|
@@ -77009,7 +77010,7 @@ var script$2 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$2
|
|
|
77009
77010
|
menus: unref(menuBase)
|
|
77010
77011
|
}))
|
|
77011
77012
|
? (openBlock(), createBlock(unref(MenuTopRender), { key: 0 }))
|
|
77012
|
-
: (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(menuBase), function (menu) {
|
|
77013
|
+
: (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(menuBase).filter(function (item) { return !(item === null || item === void 0 ? void 0 : item._hide); }), function (menu) {
|
|
77013
77014
|
var _a;
|
|
77014
77015
|
return (openBlock(), createElementBlock("p", {
|
|
77015
77016
|
class: normalizeClass(["menu-top-item", { active: ((_a = currentMenu.value) === null || _a === void 0 ? void 0 : _a.menuKey) === menu.menuKey }]),
|
package/lib/index.umd.js
CHANGED
|
@@ -76921,11 +76921,12 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76921
76921
|
}
|
|
76922
76922
|
return !props.hideMenu;
|
|
76923
76923
|
});
|
|
76924
|
+
var dateNow = Date.now();
|
|
76924
76925
|
var menusMap = new Map();
|
|
76925
76926
|
var currentMenu = vue.ref();
|
|
76926
76927
|
var menuBase = vue.computed(function () {
|
|
76927
76928
|
var menuArr = props.menus.map(function (menu, index) {
|
|
76928
|
-
return __assign(__assign({}, menu), { menuKey: (menu === null || menu === void 0 ? void 0 : menu.menuKey) || index +
|
|
76929
|
+
return __assign(__assign({}, menu), { menuKey: (menu === null || menu === void 0 ? void 0 : menu.menuKey) || index + dateNow, url: (menu === null || menu === void 0 ? void 0 : menu.url) || index + dateNow });
|
|
76929
76930
|
});
|
|
76930
76931
|
setMenuMap(menuArr, menusMap);
|
|
76931
76932
|
return menuArr;
|
|
@@ -77012,7 +77013,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77012
77013
|
menus: vue.unref(menuBase)
|
|
77013
77014
|
}))
|
|
77014
77015
|
? (vue.openBlock(), vue.createBlock(vue.unref(MenuTopRender), { key: 0 }))
|
|
77015
|
-
: (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(vue.unref(menuBase), function (menu) {
|
|
77016
|
+
: (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(vue.unref(menuBase).filter(function (item) { return !(item === null || item === void 0 ? void 0 : item._hide); }), function (menu) {
|
|
77016
77017
|
var _a;
|
|
77017
77018
|
return (vue.openBlock(), vue.createElementBlock("p", {
|
|
77018
77019
|
class: vue.normalizeClass(["menu-top-item", { active: ((_a = currentMenu.value) === null || _a === void 0 ? void 0 : _a.menuKey) === menu.menuKey }]),
|