@dt-frames/ui 1.0.42 → 1.0.43
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/components/curd/src/components/dialog.d.ts +1 -0
- package/es/components/forms/src/components/formIcon.d.ts +1 -0
- package/es/components/modal/src/index.d.ts +1 -0
- package/es/components/table/src/components/setting/Download.d.ts +1 -0
- package/es/components/table/src/components/setting/DownloadCtrl.d.ts +1 -0
- package/es/index.js +33 -9
- package/es/theme/header/index.less +3 -0
- package/package.json +1 -1
|
@@ -473,6 +473,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
473
473
|
instance: import("vue").ComponentInternalInstance;
|
|
474
474
|
handleHeightChange: (height: string) => void;
|
|
475
475
|
handleExtHeight: (height: number) => void;
|
|
476
|
+
getWidth: (width: any) => string;
|
|
476
477
|
setModalProps: (props: Partial<import("@dt-frames/core").ModalProps>) => void;
|
|
477
478
|
handleSave: () => void;
|
|
478
479
|
handleCancel: (e?: Event) => Promise<void>;
|
|
@@ -1877,6 +1877,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
1877
1877
|
instance: import("vue").ComponentInternalInstance;
|
|
1878
1878
|
handleHeightChange: (height: string) => void;
|
|
1879
1879
|
handleExtHeight: (height: number) => void;
|
|
1880
|
+
getWidth: (width: any) => string;
|
|
1880
1881
|
setModalProps: (props: Partial<import("@dt-frames/core").ModalProps>) => void;
|
|
1881
1882
|
handleSave: () => void;
|
|
1882
1883
|
handleCancel: (e?: Event) => Promise<void>;
|
|
@@ -205,6 +205,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
205
205
|
instance: import("vue").ComponentInternalInstance;
|
|
206
206
|
handleHeightChange: (height: string) => void;
|
|
207
207
|
handleExtHeight: (height: number) => void;
|
|
208
|
+
getWidth: (width: any) => string;
|
|
208
209
|
setModalProps: (props: Partial<ModalProps>) => void;
|
|
209
210
|
handleSave: () => void;
|
|
210
211
|
handleCancel: (e?: Event) => Promise<void>;
|
|
@@ -2101,6 +2101,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
2101
2101
|
instance: import("vue").ComponentInternalInstance;
|
|
2102
2102
|
handleHeightChange: (height: string) => void;
|
|
2103
2103
|
handleExtHeight: (height: number) => void;
|
|
2104
|
+
getWidth: (width: any) => string;
|
|
2104
2105
|
setModalProps: (props: Partial<import("@dt-frames/core").ModalProps>) => void;
|
|
2105
2106
|
handleSave: () => void;
|
|
2106
2107
|
handleCancel: (e?: Event) => Promise<void>;
|
|
@@ -944,6 +944,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
944
944
|
instance: import("vue").ComponentInternalInstance;
|
|
945
945
|
handleHeightChange: (height: string) => void;
|
|
946
946
|
handleExtHeight: (height: number) => void;
|
|
947
|
+
getWidth: (width: any) => string;
|
|
947
948
|
setModalProps: (props: Partial<import("@dt-frames/core").ModalProps>) => void;
|
|
948
949
|
handleSave: () => void;
|
|
949
950
|
handleCancel: (e?: Event) => Promise<void>;
|
package/es/index.js
CHANGED
|
@@ -2005,11 +2005,13 @@ function useModalOut() {
|
|
|
2005
2005
|
}
|
|
2006
2006
|
uid.value = uuid;
|
|
2007
2007
|
onUnmounted(() => {
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
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;
|
|
@@ -4424,8 +4426,28 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
4424
4426
|
function handleExtHeight(height) {
|
|
4425
4427
|
extHeightRef.value = height;
|
|
4426
4428
|
}
|
|
4429
|
+
function getWidth(width) {
|
|
4430
|
+
let w = document.body.offsetWidth;
|
|
4431
|
+
let _ow = parseInt(width);
|
|
4432
|
+
if (w > 1800) {
|
|
4433
|
+
_ow = _ow * 0.8;
|
|
4434
|
+
} else if (w > 1600) {
|
|
4435
|
+
_ow = _ow * 0.9;
|
|
4436
|
+
} else if (w < 1300) {
|
|
4437
|
+
_ow = _ow * 1.2;
|
|
4438
|
+
} else if (w < 1400) {
|
|
4439
|
+
_ow = _ow * 1.1;
|
|
4440
|
+
}
|
|
4441
|
+
return `${_ow}%`;
|
|
4442
|
+
}
|
|
4427
4443
|
function setModalProps(props2) {
|
|
4428
|
-
|
|
4444
|
+
let _props = {
|
|
4445
|
+
...props2,
|
|
4446
|
+
...{
|
|
4447
|
+
width: getWidth(props2.width)
|
|
4448
|
+
}
|
|
4449
|
+
};
|
|
4450
|
+
propsRef.value = deepMerge(unref(propsRef) || {}, _props);
|
|
4429
4451
|
if (Reflect.has(props2, "visible")) {
|
|
4430
4452
|
visibleRef.value = !!props2.visible;
|
|
4431
4453
|
}
|
|
@@ -5523,6 +5545,7 @@ function sortFixedColumn(columns) {
|
|
|
5523
5545
|
];
|
|
5524
5546
|
}
|
|
5525
5547
|
function handleIndexColumn(propsRef, getPaginationRef, columns) {
|
|
5548
|
+
const { getIsZH } = useHeader();
|
|
5526
5549
|
const { t } = useI18n("UI");
|
|
5527
5550
|
const { showIndexColumn, indexColumnProps, isTreeTable } = unref(propsRef);
|
|
5528
5551
|
let pushIndexColumns = false;
|
|
@@ -5542,7 +5565,7 @@ function handleIndexColumn(propsRef, getPaginationRef, columns) {
|
|
|
5542
5565
|
const isFixedLeft = columns.some((item) => item.fixed === "left");
|
|
5543
5566
|
columns.unshift({
|
|
5544
5567
|
flag: INDEX_FLAG,
|
|
5545
|
-
width: 50,
|
|
5568
|
+
width: unref(getIsZH) ? 50 : 60,
|
|
5546
5569
|
title: t("NUMBER"),
|
|
5547
5570
|
align: "center",
|
|
5548
5571
|
customRender: ({ index: index2 }) => {
|
|
@@ -5562,6 +5585,7 @@ function handleIndexColumn(propsRef, getPaginationRef, columns) {
|
|
|
5562
5585
|
});
|
|
5563
5586
|
}
|
|
5564
5587
|
function handleActionColumn(propsRef, columns) {
|
|
5588
|
+
const { getIsZH } = useHeader();
|
|
5565
5589
|
const { t } = useI18n("UI");
|
|
5566
5590
|
const { operations } = unref(propsRef);
|
|
5567
5591
|
if (!operations || isObject(operations) && !(operations == null ? void 0 : operations.btns) || isArray$1(operations) && !operations)
|
|
@@ -5575,7 +5599,7 @@ function handleActionColumn(propsRef, columns) {
|
|
|
5575
5599
|
title: t("ACTIONS"),
|
|
5576
5600
|
align: "center",
|
|
5577
5601
|
expand,
|
|
5578
|
-
width: `${expand ? column.btns.length * 30 + 40 : 70}px`,
|
|
5602
|
+
width: `${expand ? column.btns.length * 30 + 40 : unref(getIsZH) ? 70 : 90}px`,
|
|
5579
5603
|
...column,
|
|
5580
5604
|
flag: ACTION_COLUMN
|
|
5581
5605
|
};
|
|
@@ -10346,7 +10370,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10346
10370
|
"component-size": unref(getUiSize)
|
|
10347
10371
|
}, {
|
|
10348
10372
|
default: withCtx(() => [
|
|
10349
|
-
unref(currentRoute).name && !unref(getAppConf).router.unRequireAuthPage.includes(unref(currentRoute).
|
|
10373
|
+
unref(currentRoute).name && !unref(getAppConf).router.unRequireAuthPage.includes(unref(currentRoute).path) ? (openBlock(), createBlock(unref(Layout), {
|
|
10350
10374
|
key: 0,
|
|
10351
10375
|
class: "dt-theme"
|
|
10352
10376
|
}, {
|