@dt-frames/ui 1.0.34 → 1.0.35
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/es/assets/locales/en.json +2 -1
- package/es/assets/locales/zh.json +2 -1
- package/es/index.js +6 -3
- package/package.json +1 -1
package/es/index.js
CHANGED
|
@@ -3203,7 +3203,6 @@ var _sfc_main$P = defineComponent({
|
|
|
3203
3203
|
});
|
|
3204
3204
|
const itemProps = {
|
|
3205
3205
|
allowClear: appConf.ui.form.allowClear,
|
|
3206
|
-
getPopupContainer: (trigger) => trigger.parentNode,
|
|
3207
3206
|
size: unref(getUiSize) === "middle" ? "default" : unref(getUiSize),
|
|
3208
3207
|
...unref(getComponentProps),
|
|
3209
3208
|
disabled: unref(getDisable)
|
|
@@ -6386,7 +6385,10 @@ function useTableHeader(propsRef, slots, handlers) {
|
|
|
6386
6385
|
const getHeaderProps = computed(() => {
|
|
6387
6386
|
const { tableSetting, toolbar } = unref(propsRef);
|
|
6388
6387
|
const { getSlot } = useSlots();
|
|
6389
|
-
const hideTitle = (!toolbar || !toolbar.filter((it) =>
|
|
6388
|
+
const hideTitle = (!toolbar || !toolbar.filter((it) => {
|
|
6389
|
+
var _a;
|
|
6390
|
+
return (_a = it.show) != null ? _a : true;
|
|
6391
|
+
}).length) && !slots.toolbar && !slots.headerTop && !tableSetting;
|
|
6390
6392
|
return {
|
|
6391
6393
|
title: hideTitle ? null : () => h(TableHeader, {
|
|
6392
6394
|
tableTools: tableSetting,
|
|
@@ -10029,6 +10031,7 @@ function useTabsDrag(affixList) {
|
|
|
10029
10031
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
10030
10032
|
__name: "index",
|
|
10031
10033
|
setup(__props) {
|
|
10034
|
+
const { t } = useI18n("UI");
|
|
10032
10035
|
const menuLabelMap = menuList2Map();
|
|
10033
10036
|
const { getShowQuick, getShowRedo } = useMultipleTab();
|
|
10034
10037
|
const activeKeyRef = ref("");
|
|
@@ -10097,7 +10100,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
10097
10100
|
closable: !(item && item.meta && item.meta.affix)
|
|
10098
10101
|
}, {
|
|
10099
10102
|
tab: withCtx(() => [
|
|
10100
|
-
createElementVNode("span", null, toDisplayString(unref(menuLabelMap).get(item.path) || "
|
|
10103
|
+
createElementVNode("span", null, toDisplayString(unref(menuLabelMap).get(item.path) || unref(t)("UNKNOWN_ROUTE")), 1)
|
|
10101
10104
|
]),
|
|
10102
10105
|
_: 2
|
|
10103
10106
|
}, 1032, ["closable"]);
|