xrk-components 2.0.0-beta.69 → 2.0.0-beta.70
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 +3 -0
- package/lib/index.esm.js +11 -9
- package/lib/index.umd.js +11 -9
- package/package.json +1 -1
package/lib/index.css
CHANGED
|
@@ -20084,6 +20084,9 @@
|
|
|
20084
20084
|
--xrk-table-header-bg-color: #f6f6f6;
|
|
20085
20085
|
--xrk-table-border-color: #f4f4f5;
|
|
20086
20086
|
}
|
|
20087
|
+
.base-table[data-v-968a9a5a] .xrk-table__empty-block {
|
|
20088
|
+
height: auto !important;
|
|
20089
|
+
}
|
|
20087
20090
|
.base-table[data-v-968a9a5a] thead {
|
|
20088
20091
|
position: relative;
|
|
20089
20092
|
}
|
package/lib/index.esm.js
CHANGED
|
@@ -76897,7 +76897,6 @@ var script$2 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$2
|
|
|
76897
76897
|
menuType: { type: String, required: false, default: 'vertical' },
|
|
76898
76898
|
renderMenuTop: { type: Function, required: false }
|
|
76899
76899
|
}, emits: ["menuClick"], setup: function (__props, _a) {
|
|
76900
|
-
var _b, _c, _d, _e;
|
|
76901
76900
|
var expose = _a.expose, emits = _a.emit;
|
|
76902
76901
|
var props = __props;
|
|
76903
76902
|
var ctx = getCurrentInstance();
|
|
@@ -76934,14 +76933,17 @@ var script$2 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$2
|
|
|
76934
76933
|
emits('menuClick', ((_d = (_c = currentMenu.value) === null || _c === void 0 ? void 0 : _c.menuList) === null || _d === void 0 ? void 0 : _d[0]) || {});
|
|
76935
76934
|
}
|
|
76936
76935
|
};
|
|
76937
|
-
|
|
76938
|
-
var
|
|
76939
|
-
|
|
76940
|
-
var _a;
|
|
76941
|
-
|
|
76942
|
-
|
|
76943
|
-
|
|
76944
|
-
|
|
76936
|
+
watch(function () { var _a, _b, _c; return (_c = (_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.appContext) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.globalProperties) === null || _c === void 0 ? void 0 : _c.$route; }, function () {
|
|
76937
|
+
var _a, _b, _c;
|
|
76938
|
+
if (props.menuType === 'horizontal') {
|
|
76939
|
+
var _route_1 = (_c = (_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.appContext) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.globalProperties) === null || _c === void 0 ? void 0 : _c.$route;
|
|
76940
|
+
currentMenu.value = menuBase.value.find(function (item) {
|
|
76941
|
+
var _a;
|
|
76942
|
+
var arr = menusMap.get(((_a = _route_1 === null || _route_1 === void 0 ? void 0 : _route_1.meta) === null || _a === void 0 ? void 0 : _a.parentPath) || (_route_1 === null || _route_1 === void 0 ? void 0 : _route_1.path)) || [];
|
|
76943
|
+
return arr.includes(item.url);
|
|
76944
|
+
});
|
|
76945
|
+
}
|
|
76946
|
+
}, { immediate: true });
|
|
76945
76947
|
var MenuTopRender = defineComponent({
|
|
76946
76948
|
name: 'menu-top-render',
|
|
76947
76949
|
render: function () {
|
package/lib/index.umd.js
CHANGED
|
@@ -76900,7 +76900,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76900
76900
|
menuType: { type: String, required: false, default: 'vertical' },
|
|
76901
76901
|
renderMenuTop: { type: Function, required: false }
|
|
76902
76902
|
}, emits: ["menuClick"], setup: function (__props, _a) {
|
|
76903
|
-
var _b, _c, _d, _e;
|
|
76904
76903
|
var expose = _a.expose, emits = _a.emit;
|
|
76905
76904
|
var props = __props;
|
|
76906
76905
|
var ctx = vue.getCurrentInstance();
|
|
@@ -76937,14 +76936,17 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76937
76936
|
emits('menuClick', ((_d = (_c = currentMenu.value) === null || _c === void 0 ? void 0 : _c.menuList) === null || _d === void 0 ? void 0 : _d[0]) || {});
|
|
76938
76937
|
}
|
|
76939
76938
|
};
|
|
76940
|
-
|
|
76941
|
-
var
|
|
76942
|
-
|
|
76943
|
-
var _a;
|
|
76944
|
-
|
|
76945
|
-
|
|
76946
|
-
|
|
76947
|
-
|
|
76939
|
+
vue.watch(function () { var _a, _b, _c; return (_c = (_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.appContext) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.globalProperties) === null || _c === void 0 ? void 0 : _c.$route; }, function () {
|
|
76940
|
+
var _a, _b, _c;
|
|
76941
|
+
if (props.menuType === 'horizontal') {
|
|
76942
|
+
var _route_1 = (_c = (_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.appContext) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.globalProperties) === null || _c === void 0 ? void 0 : _c.$route;
|
|
76943
|
+
currentMenu.value = menuBase.value.find(function (item) {
|
|
76944
|
+
var _a;
|
|
76945
|
+
var arr = menusMap.get(((_a = _route_1 === null || _route_1 === void 0 ? void 0 : _route_1.meta) === null || _a === void 0 ? void 0 : _a.parentPath) || (_route_1 === null || _route_1 === void 0 ? void 0 : _route_1.path)) || [];
|
|
76946
|
+
return arr.includes(item.url);
|
|
76947
|
+
});
|
|
76948
|
+
}
|
|
76949
|
+
}, { immediate: true });
|
|
76948
76950
|
var MenuTopRender = vue.defineComponent({
|
|
76949
76951
|
name: 'menu-top-render',
|
|
76950
76952
|
render: function () {
|