@dt-frames/ui 1.0.34 → 1.0.36

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.
@@ -92,6 +92,7 @@
92
92
  "SHOW_FOOTER": "Show Footer",
93
93
  "CONTENT_FIXED_WIDTH": "Content area width",
94
94
  "ON": "On",
95
- "OFF": "Off"
95
+ "OFF": "Off",
96
+ "UNKNOWN_ROUTE": "Unknown route"
96
97
  }
97
98
  }
@@ -94,6 +94,7 @@
94
94
  "CONTENT_FIXED_WIDTH": "内容区域宽度",
95
95
  "ON": "开",
96
96
  "OFF": "关",
97
- "DOWNLOAD": "下载"
97
+ "DOWNLOAD": "下载",
98
+ "UNKNOWN_ROUTE": "未知路由"
98
99
  }
99
100
  }
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) => it.show).length) && !slots.toolbar && !slots.headerTop && !tableSetting;
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) || "\u672A\u77E5\u8DEF\u7531"), 1)
10103
+ createElementVNode("span", null, toDisplayString(unref(menuLabelMap).get(item.path) || unref(t)("UNKNOWN_ROUTE")), 1)
10101
10104
  ]),
10102
10105
  _: 2
10103
10106
  }, 1032, ["closable"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dt-frames/ui",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
4
4
  "keywords": [
5
5
  "ui",
6
6
  "dt-ui"