@dt-frames/ui 1.0.42 → 1.0.44

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/index.js CHANGED
@@ -2005,11 +2005,13 @@ function useModalOut() {
2005
2005
  }
2006
2006
  uid.value = uuid;
2007
2007
  onUnmounted(() => {
2008
- modal.value = null;
2009
- loaded.value = false;
2010
- dataTransfer[unref(uid)] = null;
2011
- cbTransfer[unref(uid)] = (rsp) => {
2012
- };
2008
+ {
2009
+ modal.value = null;
2010
+ loaded.value = false;
2011
+ dataTransfer[unref(uid)] = null;
2012
+ cbTransfer[unref(uid)] = (rsp) => {
2013
+ };
2014
+ }
2013
2015
  });
2014
2016
  if (unref(loaded) && modalMethod === unref(modal))
2015
2017
  return;
@@ -5523,6 +5525,7 @@ function sortFixedColumn(columns) {
5523
5525
  ];
5524
5526
  }
5525
5527
  function handleIndexColumn(propsRef, getPaginationRef, columns) {
5528
+ const { getIsZH } = useHeader();
5526
5529
  const { t } = useI18n("UI");
5527
5530
  const { showIndexColumn, indexColumnProps, isTreeTable } = unref(propsRef);
5528
5531
  let pushIndexColumns = false;
@@ -5542,7 +5545,7 @@ function handleIndexColumn(propsRef, getPaginationRef, columns) {
5542
5545
  const isFixedLeft = columns.some((item) => item.fixed === "left");
5543
5546
  columns.unshift({
5544
5547
  flag: INDEX_FLAG,
5545
- width: 50,
5548
+ width: unref(getIsZH) ? 50 : 60,
5546
5549
  title: t("NUMBER"),
5547
5550
  align: "center",
5548
5551
  customRender: ({ index: index2 }) => {
@@ -5562,6 +5565,7 @@ function handleIndexColumn(propsRef, getPaginationRef, columns) {
5562
5565
  });
5563
5566
  }
5564
5567
  function handleActionColumn(propsRef, columns) {
5568
+ const { getIsZH } = useHeader();
5565
5569
  const { t } = useI18n("UI");
5566
5570
  const { operations } = unref(propsRef);
5567
5571
  if (!operations || isObject(operations) && !(operations == null ? void 0 : operations.btns) || isArray$1(operations) && !operations)
@@ -5575,7 +5579,7 @@ function handleActionColumn(propsRef, columns) {
5575
5579
  title: t("ACTIONS"),
5576
5580
  align: "center",
5577
5581
  expand,
5578
- width: `${expand ? column.btns.length * 30 + 40 : 70}px`,
5582
+ width: `${expand ? column.btns.length * 30 + 40 : unref(getIsZH) ? 70 : 90}px`,
5579
5583
  ...column,
5580
5584
  flag: ACTION_COLUMN
5581
5585
  };
@@ -10346,7 +10350,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10346
10350
  "component-size": unref(getUiSize)
10347
10351
  }, {
10348
10352
  default: withCtx(() => [
10349
- unref(currentRoute).name && !unref(getAppConf).router.unRequireAuthPage.includes(unref(currentRoute).fullPath) ? (openBlock(), createBlock(unref(Layout), {
10353
+ unref(currentRoute).name && !unref(getAppConf).router.unRequireAuthPage.includes(unref(currentRoute).path) ? (openBlock(), createBlock(unref(Layout), {
10350
10354
  key: 0,
10351
10355
  class: "dt-theme"
10352
10356
  }, {
@@ -389,6 +389,9 @@
389
389
  padding: 0 7px 0 15px;
390
390
  font-size: 13px;
391
391
  }
392
+ button{
393
+ padding-left: 0;
394
+ }
392
395
  }
393
396
 
394
397
  .ant-empty-image{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dt-frames/ui",
3
- "version": "1.0.42",
3
+ "version": "1.0.44",
4
4
  "keywords": [
5
5
  "ui",
6
6
  "dt-ui"