xrk-components 2.0.0-beta.75 → 2.0.0-beta.77
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 +31 -16
- package/lib/index.esm.js +12 -12
- package/lib/index.umd.js +12 -12
- package/lib/packages/base/select/select.d.ts +3 -2
- package/package.json +1 -1
package/lib/index.css
CHANGED
|
@@ -20227,6 +20227,11 @@
|
|
|
20227
20227
|
width: 100%;
|
|
20228
20228
|
height: 100%;
|
|
20229
20229
|
overflow: auto;
|
|
20230
|
+
scrollbar-width: none; /* Firefox */
|
|
20231
|
+
-ms-overflow-style: none; /* IE/Edge */
|
|
20232
|
+
}
|
|
20233
|
+
.base-layout-menu .main-menu[data-v-1bea9a2a]::-webkit-scrollbar {
|
|
20234
|
+
display: none; /* Chrome/Safari/Opera */
|
|
20230
20235
|
}
|
|
20231
20236
|
.base-layout-menu .main-menu[data-v-1bea9a2a] .xrk-collapse-item__content {
|
|
20232
20237
|
padding-bottom: 0;
|
|
@@ -20329,16 +20334,27 @@
|
|
|
20329
20334
|
-webkit-transition: all 0.15s;
|
|
20330
20335
|
transition: all 0.15s;
|
|
20331
20336
|
}
|
|
20332
|
-
.base-layout-menu .main-menu .sub-menu[data-v-1bea9a2a]:
|
|
20337
|
+
.base-layout-menu .main-menu .sub-menu[data-v-1bea9a2a]:not(.active):hover {
|
|
20338
|
+
color: var(--xrk-color-primary);
|
|
20339
|
+
-webkit-transition: all 0.15s;
|
|
20340
|
+
transition: all 0.15s;
|
|
20341
|
+
}
|
|
20342
|
+
.base-layout-menu .main-menu .sub-menu[data-v-1bea9a2a]:not(.active):hover::before {
|
|
20343
|
+
background-color: var(--xrk-color-primary);
|
|
20344
|
+
}
|
|
20345
|
+
.base-layout-menu .main-menu .sub-menu[data-v-1bea9a2a]:not(.active):hover::after {
|
|
20346
|
+
opacity: 0;
|
|
20347
|
+
}
|
|
20348
|
+
.base-layout-menu .main-menu .sub-menu.active[data-v-1bea9a2a] {
|
|
20333
20349
|
color: var(--xrk-color-primary);
|
|
20334
20350
|
background-color: var(--xrk-color-primary-light-9);
|
|
20335
20351
|
-webkit-transition: all 0.15s;
|
|
20336
20352
|
transition: all 0.15s;
|
|
20337
20353
|
}
|
|
20338
|
-
.base-layout-menu .main-menu .sub-menu
|
|
20354
|
+
.base-layout-menu .main-menu .sub-menu.active[data-v-1bea9a2a]::before {
|
|
20339
20355
|
background-color: var(--xrk-color-primary);
|
|
20340
20356
|
}
|
|
20341
|
-
.base-layout-menu .main-menu .sub-menu
|
|
20357
|
+
.base-layout-menu .main-menu .sub-menu.active[data-v-1bea9a2a]::after {
|
|
20342
20358
|
opacity: 1;
|
|
20343
20359
|
-webkit-transform: translateX(0);
|
|
20344
20360
|
transform: translateX(0);
|
|
@@ -20424,6 +20440,7 @@
|
|
|
20424
20440
|
-webkit-transform: translateX(0);
|
|
20425
20441
|
transform: translateX(0);
|
|
20426
20442
|
}
|
|
20443
|
+
@charset "UTF-8";
|
|
20427
20444
|
.base-layout-main[data-v-3f66cd84] {
|
|
20428
20445
|
width: var(--base-layout-main-width, 100vw);
|
|
20429
20446
|
height: var(--base-layout-main-height, 100vh);
|
|
@@ -20455,22 +20472,20 @@
|
|
|
20455
20472
|
align-items: center;
|
|
20456
20473
|
-webkit-box-sizing: border-box;
|
|
20457
20474
|
box-sizing: border-box;
|
|
20475
|
+
width: 100vw;
|
|
20476
|
+
overflow: auto;
|
|
20477
|
+
overflow-y: hidden;
|
|
20478
|
+
scroll-behavior: smooth;
|
|
20479
|
+
scrollbar-width: none; /* Firefox */
|
|
20480
|
+
-ms-overflow-style: none; /* IE 和 Edge */
|
|
20458
20481
|
}
|
|
20459
|
-
.base-layout-main > .menu-top
|
|
20460
|
-
|
|
20461
|
-
box-sizing: border-box;
|
|
20462
|
-
padding: 5px 20px;
|
|
20463
|
-
font-size: 16px;
|
|
20464
|
-
color: var(--xrk-color-primary);
|
|
20465
|
-
cursor: pointer;
|
|
20466
|
-
}
|
|
20467
|
-
.base-layout-main > .menu-top .home-item[data-v-3f66cd84]:hover {
|
|
20468
|
-
color: var(--xrk-color-primary);
|
|
20469
|
-
}
|
|
20470
|
-
.base-layout-main > .menu-top .home-item[data-v-3f66cd84]:active {
|
|
20471
|
-
opacity: 0.6;
|
|
20482
|
+
.base-layout-main > .menu-top[data-v-3f66cd84]::-webkit-scrollbar {
|
|
20483
|
+
display: none; /* 对于Chrome, Safari */
|
|
20472
20484
|
}
|
|
20473
20485
|
.base-layout-main > .menu-top .menu-top-item[data-v-3f66cd84] {
|
|
20486
|
+
-webkit-flex-shrink: 0;
|
|
20487
|
+
-ms-flex-negative: 0;
|
|
20488
|
+
flex-shrink: 0;
|
|
20474
20489
|
-webkit-box-sizing: border-box;
|
|
20475
20490
|
box-sizing: border-box;
|
|
20476
20491
|
padding: 5px 20px;
|
package/lib/index.esm.js
CHANGED
|
@@ -73143,7 +73143,7 @@ var script$o = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$m
|
|
|
73143
73143
|
filterMethod: { type: Function, required: false },
|
|
73144
73144
|
maxlength: { type: Number, required: false, default: 50 },
|
|
73145
73145
|
remoteMethod: { type: Function, required: false },
|
|
73146
|
-
notRemoteAutoFilter: { type: Boolean, required:
|
|
73146
|
+
notRemoteAutoFilter: { type: Boolean, required: false },
|
|
73147
73147
|
loadingText: { type: String, required: false, default: '加载中' },
|
|
73148
73148
|
noMatchText: { type: String, required: false, default: '暂无数据' },
|
|
73149
73149
|
noDataText: { type: String, required: false, default: '暂无数据' },
|
|
@@ -75310,7 +75310,12 @@ var script$b = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$b
|
|
|
75310
75310
|
handleStart: function (file) {
|
|
75311
75311
|
var _a, _b;
|
|
75312
75312
|
(_b = (_a = baseUploadRef.value) === null || _a === void 0 ? void 0 : _a.handleStart) === null || _b === void 0 ? void 0 : _b.call(_a, file);
|
|
75313
|
-
}
|
|
75313
|
+
},
|
|
75314
|
+
inputClick: function () {
|
|
75315
|
+
var _a;
|
|
75316
|
+
baseUploadRef.value && ((_a = Reflect.get(baseUploadRef.value, 'inputClick')) === null || _a === void 0 ? void 0 : _a());
|
|
75317
|
+
},
|
|
75318
|
+
getBaseUploadRef: function () { return baseUploadRef.value; }
|
|
75314
75319
|
});
|
|
75315
75320
|
return function (_ctx, _cache) {
|
|
75316
75321
|
return (openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
@@ -76804,8 +76809,7 @@ var script$3 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$3
|
|
|
76804
76809
|
return (openBlock(), createElementBlock("div", {
|
|
76805
76810
|
key: subIndex,
|
|
76806
76811
|
class: normalizeClass(["sub-menu", {
|
|
76807
|
-
active: activeMenus.value.includes(subMenu.url)
|
|
76808
|
-
unref(activeSubMenu).url === subMenu.url
|
|
76812
|
+
active: activeMenus.value.includes(subMenu.url)
|
|
76809
76813
|
}]),
|
|
76810
76814
|
onClick: function ($event) { return (onMenuClick(subMenu)); },
|
|
76811
76815
|
name: subMenu.url,
|
|
@@ -76908,12 +76912,7 @@ var script$2 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$2
|
|
|
76908
76912
|
var props = __props;
|
|
76909
76913
|
var ctx = getCurrentInstance();
|
|
76910
76914
|
var slots = useSlots();
|
|
76911
|
-
var menuList =
|
|
76912
|
-
var _a;
|
|
76913
|
-
if (props.menuType === 'vertical')
|
|
76914
|
-
return props.menus;
|
|
76915
|
-
return ((_a = currentMenu.value) === null || _a === void 0 ? void 0 : _a.menuList) || [];
|
|
76916
|
-
});
|
|
76915
|
+
var menuList = ref(props.menuType === 'vertical' ? props.menus : []);
|
|
76917
76916
|
var hideMenuFlag = computed(function () {
|
|
76918
76917
|
if (props.menuType === 'horizontal') {
|
|
76919
76918
|
return !props.hideMenu && menuList.value.length;
|
|
@@ -76941,7 +76940,7 @@ var script$2 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$2
|
|
|
76941
76940
|
}
|
|
76942
76941
|
};
|
|
76943
76942
|
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 () {
|
|
76944
|
-
var _a, _b, _c;
|
|
76943
|
+
var _a, _b, _c, _d;
|
|
76945
76944
|
if (props.menuType === 'horizontal') {
|
|
76946
76945
|
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;
|
|
76947
76946
|
currentMenu.value = menuBase.value.find(function (item) {
|
|
@@ -76949,6 +76948,7 @@ var script$2 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$2
|
|
|
76949
76948
|
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)) || [];
|
|
76950
76949
|
return arr.includes(item.url);
|
|
76951
76950
|
});
|
|
76951
|
+
menuList.value = ((_d = currentMenu.value) === null || _d === void 0 ? void 0 : _d.menuList) || [];
|
|
76952
76952
|
}
|
|
76953
76953
|
}, { immediate: true });
|
|
76954
76954
|
var MenuTopRender = defineComponent({
|
|
@@ -77030,7 +77030,7 @@ var script$2 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$2
|
|
|
77030
77030
|
}, {
|
|
77031
77031
|
default: withCtx(function () { return [
|
|
77032
77032
|
createVNode(unref(BaseLayoutMenu), {
|
|
77033
|
-
menus:
|
|
77033
|
+
menus: menuList.value,
|
|
77034
77034
|
onMenuClick: _cache[0] || (_cache[0] = function (menu) { return emits('menuClick', menu); })
|
|
77035
77035
|
}, null, 8 /* PROPS */, ["menus"])
|
|
77036
77036
|
]; }),
|
package/lib/index.umd.js
CHANGED
|
@@ -73146,7 +73146,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
73146
73146
|
filterMethod: { type: Function, required: false },
|
|
73147
73147
|
maxlength: { type: Number, required: false, default: 50 },
|
|
73148
73148
|
remoteMethod: { type: Function, required: false },
|
|
73149
|
-
notRemoteAutoFilter: { type: Boolean, required:
|
|
73149
|
+
notRemoteAutoFilter: { type: Boolean, required: false },
|
|
73150
73150
|
loadingText: { type: String, required: false, default: '加载中' },
|
|
73151
73151
|
noMatchText: { type: String, required: false, default: '暂无数据' },
|
|
73152
73152
|
noDataText: { type: String, required: false, default: '暂无数据' },
|
|
@@ -75313,7 +75313,12 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
75313
75313
|
handleStart: function (file) {
|
|
75314
75314
|
var _a, _b;
|
|
75315
75315
|
(_b = (_a = baseUploadRef.value) === null || _a === void 0 ? void 0 : _a.handleStart) === null || _b === void 0 ? void 0 : _b.call(_a, file);
|
|
75316
|
-
}
|
|
75316
|
+
},
|
|
75317
|
+
inputClick: function () {
|
|
75318
|
+
var _a;
|
|
75319
|
+
baseUploadRef.value && ((_a = Reflect.get(baseUploadRef.value, 'inputClick')) === null || _a === void 0 ? void 0 : _a());
|
|
75320
|
+
},
|
|
75321
|
+
getBaseUploadRef: function () { return baseUploadRef.value; }
|
|
75317
75322
|
});
|
|
75318
75323
|
return function (_ctx, _cache) {
|
|
75319
75324
|
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
|
|
@@ -76807,8 +76812,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76807
76812
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
76808
76813
|
key: subIndex,
|
|
76809
76814
|
class: vue.normalizeClass(["sub-menu", {
|
|
76810
|
-
active: activeMenus.value.includes(subMenu.url)
|
|
76811
|
-
vue.unref(activeSubMenu).url === subMenu.url
|
|
76815
|
+
active: activeMenus.value.includes(subMenu.url)
|
|
76812
76816
|
}]),
|
|
76813
76817
|
onClick: function ($event) { return (onMenuClick(subMenu)); },
|
|
76814
76818
|
name: subMenu.url,
|
|
@@ -76911,12 +76915,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76911
76915
|
var props = __props;
|
|
76912
76916
|
var ctx = vue.getCurrentInstance();
|
|
76913
76917
|
var slots = vue.useSlots();
|
|
76914
|
-
var menuList = vue.
|
|
76915
|
-
var _a;
|
|
76916
|
-
if (props.menuType === 'vertical')
|
|
76917
|
-
return props.menus;
|
|
76918
|
-
return ((_a = currentMenu.value) === null || _a === void 0 ? void 0 : _a.menuList) || [];
|
|
76919
|
-
});
|
|
76918
|
+
var menuList = vue.ref(props.menuType === 'vertical' ? props.menus : []);
|
|
76920
76919
|
var hideMenuFlag = vue.computed(function () {
|
|
76921
76920
|
if (props.menuType === 'horizontal') {
|
|
76922
76921
|
return !props.hideMenu && menuList.value.length;
|
|
@@ -76944,7 +76943,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76944
76943
|
}
|
|
76945
76944
|
};
|
|
76946
76945
|
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 () {
|
|
76947
|
-
var _a, _b, _c;
|
|
76946
|
+
var _a, _b, _c, _d;
|
|
76948
76947
|
if (props.menuType === 'horizontal') {
|
|
76949
76948
|
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;
|
|
76950
76949
|
currentMenu.value = menuBase.value.find(function (item) {
|
|
@@ -76952,6 +76951,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76952
76951
|
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)) || [];
|
|
76953
76952
|
return arr.includes(item.url);
|
|
76954
76953
|
});
|
|
76954
|
+
menuList.value = ((_d = currentMenu.value) === null || _d === void 0 ? void 0 : _d.menuList) || [];
|
|
76955
76955
|
}
|
|
76956
76956
|
}, { immediate: true });
|
|
76957
76957
|
var MenuTopRender = vue.defineComponent({
|
|
@@ -77033,7 +77033,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77033
77033
|
}, {
|
|
77034
77034
|
default: vue.withCtx(function () { return [
|
|
77035
77035
|
vue.createVNode(vue.unref(BaseLayoutMenu), {
|
|
77036
|
-
menus:
|
|
77036
|
+
menus: menuList.value,
|
|
77037
77037
|
onMenuClick: _cache[0] || (_cache[0] = function (menu) { return emits('menuClick', menu); })
|
|
77038
77038
|
}, null, 8 /* PROPS */, ["menus"])
|
|
77039
77039
|
]; }),
|
|
@@ -96,7 +96,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
96
96
|
};
|
|
97
97
|
notRemoteAutoFilter: {
|
|
98
98
|
type: BooleanConstructor;
|
|
99
|
-
required:
|
|
99
|
+
required: false;
|
|
100
100
|
};
|
|
101
101
|
loadingText: {
|
|
102
102
|
type: StringConstructor;
|
|
@@ -221,7 +221,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
221
221
|
};
|
|
222
222
|
notRemoteAutoFilter: {
|
|
223
223
|
type: BooleanConstructor;
|
|
224
|
-
required:
|
|
224
|
+
required: false;
|
|
225
225
|
};
|
|
226
226
|
loadingText: {
|
|
227
227
|
type: StringConstructor;
|
|
@@ -268,6 +268,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
268
268
|
allowCreate: boolean;
|
|
269
269
|
fitInputWidth: boolean;
|
|
270
270
|
maxlength: number;
|
|
271
|
+
notRemoteAutoFilter: boolean;
|
|
271
272
|
loadingText: string;
|
|
272
273
|
noMatchText: string;
|
|
273
274
|
noDataText: string;
|