@dt-frames/ui 1.0.43 → 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.
@@ -473,7 +473,6 @@ 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;
477
476
  setModalProps: (props: Partial<import("@dt-frames/core").ModalProps>) => void;
478
477
  handleSave: () => void;
479
478
  handleCancel: (e?: Event) => Promise<void>;
@@ -1877,7 +1877,6 @@ 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;
1881
1880
  setModalProps: (props: Partial<import("@dt-frames/core").ModalProps>) => void;
1882
1881
  handleSave: () => void;
1883
1882
  handleCancel: (e?: Event) => Promise<void>;
@@ -205,7 +205,6 @@ 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;
209
208
  setModalProps: (props: Partial<ModalProps>) => void;
210
209
  handleSave: () => void;
211
210
  handleCancel: (e?: Event) => Promise<void>;
@@ -2101,7 +2101,6 @@ 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;
2105
2104
  setModalProps: (props: Partial<import("@dt-frames/core").ModalProps>) => void;
2106
2105
  handleSave: () => void;
2107
2106
  handleCancel: (e?: Event) => Promise<void>;
@@ -944,7 +944,6 @@ 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;
948
947
  setModalProps: (props: Partial<import("@dt-frames/core").ModalProps>) => void;
949
948
  handleSave: () => void;
950
949
  handleCancel: (e?: Event) => Promise<void>;
package/es/index.js CHANGED
@@ -4426,28 +4426,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
4426
4426
  function handleExtHeight(height) {
4427
4427
  extHeightRef.value = height;
4428
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
- }
4443
4429
  function setModalProps(props2) {
4444
- let _props = {
4445
- ...props2,
4446
- ...{
4447
- width: getWidth(props2.width)
4448
- }
4449
- };
4450
- propsRef.value = deepMerge(unref(propsRef) || {}, _props);
4430
+ propsRef.value = deepMerge(unref(propsRef) || {}, props2);
4451
4431
  if (Reflect.has(props2, "visible")) {
4452
4432
  visibleRef.value = !!props2.visible;
4453
4433
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dt-frames/ui",
3
- "version": "1.0.43",
3
+ "version": "1.0.44",
4
4
  "keywords": [
5
5
  "ui",
6
6
  "dt-ui"