@dt-frames/ui 2.0.14 → 2.0.16
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/imgs/tree/forder-open.svg +1 -0
- package/es/assets/imgs/tree/forder.svg +1 -0
- package/es/assets/locales/zh.ts +1 -1
- package/es/components/curd/index.js +28 -8
- package/es/components/curd/src/components/Curd.d.ts +10 -0
- package/es/components/curd/src/hooks/useCurd.d.ts +2 -4
- package/es/components/curd/src/props.d.ts +5 -1
- package/es/components/drawer/index.js +25 -24
- package/es/components/form/index.js +56 -40
- package/es/components/form/index.less +44 -3
- package/es/components/form/src/props.d.ts +3 -3
- package/es/components/modal/index.js +8 -143
- package/es/components/modal/index.less +23 -0
- package/es/components/modal/src/index.d.ts +2 -84
- package/es/components/table/index.js +72 -88
- package/es/components/table/src/components/TableAction.d.ts +6 -0
- package/es/components/table/src/index.d.ts +4 -4
- package/es/components/table/src/props.d.ts +1 -1
- package/es/components/tree/index.js +197 -93
- package/es/components/tree/index.less +75 -13
- package/es/components/tree/src/basicProps.d.ts +46 -7
- package/es/components/tree/src/components/TreeHeader.d.ts +2 -2
- package/es/components/tree/src/hooks/useTree.d.ts +3 -2
- package/es/components/tree/src/index.d.ts +120 -29
- package/es/components/upload/index.js +79 -75
- package/es/components/upload/index.less +19 -5
- package/es/components/upload/src/basicProps.d.ts +1 -1
- package/es/components/upload/src/index.d.ts +6 -6
- package/es/components/upload/src/utils/upload.d.ts +1 -1
- package/es/theme/index.js +387 -431
- package/es/theme/index.less +24 -0
- package/es/theme/src/components/header/components/lock/Lockscreen.d.ts +34 -3
- package/es/theme/src/components/header/components/lock/index.d.ts +1 -2
- package/es/theme/src/components/header/components/lock/useTime.d.ts +7 -0
- package/es/theme/src/components/header/components/size.d.ts +5 -5
- package/es/theme/src/components/header/components/user-info.d.ts +7 -0
- package/es/theme/src/components/header/index.d.ts +12 -5
- package/es/theme/src/components/header/multiple-header.d.ts +12 -5
- package/es/theme/src/index.d.ts +63 -13
- package/es/theme/src/stores/lockscreen.store.d.ts +7 -0
- package/manualContentPath.js +10 -0
- package/package.json +1 -1
- package/tsconfig.json +1 -1
- package/es/packages/ui/src/assets/locales/en.d.ts +0 -103
- package/es/packages/ui/src/assets/locales/index.d.ts +0 -2
- package/es/packages/ui/src/assets/locales/zh.d.ts +0 -104
- package/es/packages/ui/src/components/form/index.d.ts +0 -7
- package/es/packages/ui/src/components/form/src/components/FormButtons.d.ts +0 -105
- package/es/packages/ui/src/components/form/src/components/FormItem.d.ts +0 -159
- package/es/packages/ui/src/components/form/src/components/componentMap.d.ts +0 -4
- package/es/packages/ui/src/components/form/src/components/formIcon.d.ts +0 -1223
- package/es/packages/ui/src/components/form/src/components/formInputUseDialog.d.ts +0 -911
- package/es/packages/ui/src/components/form/src/components/index.d.ts +0 -4
- package/es/packages/ui/src/components/form/src/components/radioButton.d.ts +0 -34
- package/es/packages/ui/src/components/form/src/enums/index.d.ts +0 -7
- package/es/packages/ui/src/components/form/src/hooks/helper.d.ts +0 -14
- package/es/packages/ui/src/components/form/src/hooks/useForm.d.ts +0 -6
- package/es/packages/ui/src/components/form/src/hooks/useFormActions.d.ts +0 -12
- package/es/packages/ui/src/components/form/src/hooks/useFormEvent.d.ts +0 -25
- package/es/packages/ui/src/components/form/src/hooks/useFormValue.d.ts +0 -3
- package/es/packages/ui/src/components/form/src/hooks/useFormValues.d.ts +0 -11
- package/es/packages/ui/src/components/form/src/hooks/useLabelWidth.d.ts +0 -6
- package/es/packages/ui/src/components/form/src/props.d.ts +0 -127
- package/es/packages/ui/src/components/form/src/types/actions.type.d.ts +0 -15
- package/es/packages/ui/src/components/form/src/types/form.type.d.ts +0 -79
- package/es/packages/ui/src/components/form/src/types/items.type.d.ts +0 -409
- package/es/packages/ui/src/components/iframe/index.d.ts +0 -2
- package/es/packages/ui/src/components/modal/index.d.ts +0 -4
- package/es/packages/ui/src/components/modal/src/hooks/useModal.d.ts +0 -5
- package/es/packages/ui/src/components/modal/src/props.d.ts +0 -101
- package/es/packages/ui/src/components/modal/src/types/modal.type.d.ts +0 -17
- package/es/packages/ui/src/components/upload/index.d.ts +0 -4
- package/es/packages/ui/src/components/upload/src/basicProps.d.ts +0 -87
- package/es/packages/ui/src/components/upload/src/components/PdfView.d.ts +0 -9
- package/es/packages/ui/src/components/upload/src/components/WordView.d.ts +0 -6
- package/es/packages/ui/src/components/upload/src/hooks/useFile.d.ts +0 -16
- package/es/packages/ui/src/components/upload/src/index.d.ts +0 -242
- package/es/packages/ui/src/components/upload/src/type/file.d.ts +0 -10
- package/es/packages/ui/src/components/upload/src/utils/upload.d.ts +0 -2
- package/es/packages/ui/src/global.d.ts +0 -7
- package/es/packages/ui/src/theme/index.d.ts +0 -12
- package/es/packages/ui/src/theme/src/components/header/helper/menu-tree.d.ts +0 -4
- package/es/packages/ui/src/theme/src/enums/index.d.ts +0 -1
- package/es/packages/ui/src/theme/src/enums/theme.enum.d.ts +0 -34
- package/es/packages/ui/src/theme/src/hooks/index.d.ts +0 -6
- package/es/packages/ui/src/theme/src/hooks/useDragLine.d.ts +0 -2
- package/es/packages/ui/src/theme/src/hooks/useHeader.d.ts +0 -25
- package/es/packages/ui/src/theme/src/hooks/useMenu.d.ts +0 -29
- package/es/packages/ui/src/theme/src/hooks/useMultifyTab.d.ts +0 -8
- package/es/packages/ui/src/theme/src/hooks/useOpenKeys.d.ts +0 -7
- package/es/packages/ui/src/theme/src/hooks/useTheme.d.ts +0 -9
- package/es/packages/ui/src/theme/src/setting/theme.setting.d.ts +0 -2
- package/es/packages/ui/src/theme/src/stores/index.d.ts +0 -3
- package/es/packages/ui/src/theme/src/stores/routeReuse.store.d.ts +0 -25
- package/es/packages/ui/src/theme/src/stores/theme.store.d.ts +0 -19
- package/es/packages/ui/src/theme/src/types/index.d.ts +0 -3
- package/es/packages/ui/src/theme/src/types/menu.type.d.ts +0 -15
- package/es/packages/ui/src/theme/src/types/theme.type.d.ts +0 -62
- package/es/packages/ui/src/utils/withInstall.d.ts +0 -4
|
@@ -14,7 +14,14 @@
|
|
|
14
14
|
|
|
15
15
|
&__dialog {
|
|
16
16
|
.ant-form-item {
|
|
17
|
-
margin-bottom:
|
|
17
|
+
margin-bottom: 22px;
|
|
18
|
+
&.small{
|
|
19
|
+
margin-bottom: 18px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&.ant-form-item-with-help{
|
|
23
|
+
margin-bottom: 0;
|
|
24
|
+
}
|
|
18
25
|
}
|
|
19
26
|
}
|
|
20
27
|
|
|
@@ -22,6 +29,11 @@
|
|
|
22
29
|
height: 100%;
|
|
23
30
|
}
|
|
24
31
|
|
|
32
|
+
textarea.ant-input{
|
|
33
|
+
padding-top: 4px;
|
|
34
|
+
padding-bottom: 4px;
|
|
35
|
+
}
|
|
36
|
+
|
|
25
37
|
&__compact {
|
|
26
38
|
.ant-form-item-control-input-content .ant-form-item {
|
|
27
39
|
margin-bottom: 0;
|
|
@@ -102,8 +114,8 @@
|
|
|
102
114
|
}
|
|
103
115
|
|
|
104
116
|
.ant-form-item-explain{
|
|
105
|
-
height:
|
|
106
|
-
min-height:
|
|
117
|
+
height: 18px;
|
|
118
|
+
min-height: 18px;
|
|
107
119
|
}
|
|
108
120
|
.ant-form-item-explain-error{
|
|
109
121
|
font-size: 12px;
|
|
@@ -218,6 +230,15 @@
|
|
|
218
230
|
font-size: 13px;
|
|
219
231
|
}
|
|
220
232
|
}
|
|
233
|
+
|
|
234
|
+
.ant-form-item-explain{
|
|
235
|
+
height: 22px;
|
|
236
|
+
min-height: 22px;
|
|
237
|
+
}
|
|
238
|
+
.ant-form-item-explain-error{
|
|
239
|
+
font-size: 13px;
|
|
240
|
+
line-height: 20px;
|
|
241
|
+
}
|
|
221
242
|
}
|
|
222
243
|
|
|
223
244
|
.ant-form-item.large{
|
|
@@ -294,6 +315,15 @@
|
|
|
294
315
|
font-size: 14px;
|
|
295
316
|
}
|
|
296
317
|
}
|
|
318
|
+
|
|
319
|
+
.ant-form-item-explain{
|
|
320
|
+
height: 22px;
|
|
321
|
+
min-height: 22px;
|
|
322
|
+
}
|
|
323
|
+
.ant-form-item-explain-error{
|
|
324
|
+
font-size: 13px;
|
|
325
|
+
line-height: 20px;
|
|
326
|
+
}
|
|
297
327
|
}
|
|
298
328
|
|
|
299
329
|
.ant-input-number {
|
|
@@ -317,6 +347,17 @@
|
|
|
317
347
|
.anticon-swap-right{
|
|
318
348
|
display: block;
|
|
319
349
|
}
|
|
350
|
+
|
|
351
|
+
.ant-input-affix-wrapper-input-with-clear-btn{
|
|
352
|
+
.ant-input-clear-icon{
|
|
353
|
+
display: none;
|
|
354
|
+
}
|
|
355
|
+
&:hover, .ant-input:focus + .ant-input-suffix{
|
|
356
|
+
.ant-input-clear-icon{
|
|
357
|
+
display: block;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
320
361
|
}
|
|
321
362
|
|
|
322
363
|
.basic-arrow{
|
|
@@ -41,8 +41,8 @@ export declare const BasicProps: {
|
|
|
41
41
|
};
|
|
42
42
|
rowProps: {
|
|
43
43
|
type: PropType<Partial<import("vue").ExtractPropTypes<{
|
|
44
|
-
align: PropType<"
|
|
45
|
-
justify: PropType<"
|
|
44
|
+
align: PropType<"stretch" | "bottom" | "top" | "middle">;
|
|
45
|
+
justify: PropType<"space-around" | "space-between" | "center" | "end" | "start">;
|
|
46
46
|
prefixCls: StringConstructor;
|
|
47
47
|
gutter: {
|
|
48
48
|
type: PropType<import("ant-design-vue/lib/grid/Row").Gutter | [import("ant-design-vue/lib/grid/Row").Gutter, import("ant-design-vue/lib/grid/Row").Gutter]>;
|
|
@@ -62,7 +62,7 @@ export declare const BasicProps: {
|
|
|
62
62
|
type: NumberConstructor;
|
|
63
63
|
};
|
|
64
64
|
size: {
|
|
65
|
-
type: PropType<"small" | "
|
|
65
|
+
type: PropType<"small" | "middle" | "large">;
|
|
66
66
|
};
|
|
67
67
|
disabled: {
|
|
68
68
|
type: BooleanConstructor;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { useApp, isFunction, isObject, error, useTimeoutFn, useSlots, getPopupContainer, useI18n,
|
|
2
|
-
import { reactive, ref, getCurrentInstance, watchEffect, unref, nextTick, onUnmounted, toRaw, toRefs, useAttrs, createVNode, isVNode, defineComponent, computed, openBlock, createElementBlock, normalizeClass, Fragment, createBlock, withCtx, createElementVNode, createCommentVNode,
|
|
1
|
+
import { useApp, isFunction, isObject, error, useTimeoutFn, useSlots, getPopupContainer, useI18n, dispatchResize, isArray, deepMerge } from "@dt-frames/core";
|
|
2
|
+
import { reactive, ref, getCurrentInstance, watchEffect, unref, nextTick, onUnmounted, toRaw, toRefs, useAttrs, createVNode, isVNode, defineComponent, computed, openBlock, createElementBlock, normalizeClass, Fragment, createBlock, withCtx, createElementVNode, createCommentVNode, renderSlot, watch, mergeProps, createSlots, createTextVNode, toDisplayString, renderList, normalizeProps, guardReactiveProps } from "vue";
|
|
3
3
|
import { Tooltip, Spin } from "ant-design-vue/es";
|
|
4
4
|
import "ant-design-vue/es/spin/style";
|
|
5
5
|
import { omit } from "lodash-es";
|
|
6
6
|
import { Modal } from "ant-design-vue";
|
|
7
7
|
import "ant-design-vue/es/modal/style";
|
|
8
8
|
import "ant-design-vue/es/tooltip/style";
|
|
9
|
-
import { DtScrollContainer } from "../container";
|
|
10
9
|
import { DtFormButtons } from "../form";
|
|
11
10
|
const orgDialogProp = reactive({});
|
|
12
11
|
const cbTransfer = reactive({});
|
|
@@ -288,7 +287,7 @@ function useDragMove(context) {
|
|
|
288
287
|
function _isSlot(s) {
|
|
289
288
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
290
289
|
}
|
|
291
|
-
const _sfc_main$
|
|
290
|
+
const _sfc_main$3 = {
|
|
292
291
|
name: "Modal",
|
|
293
292
|
inheritAttrs: false,
|
|
294
293
|
props: basicProps,
|
|
@@ -329,7 +328,7 @@ const _sfc_main$4 = {
|
|
|
329
328
|
};
|
|
330
329
|
}
|
|
331
330
|
};
|
|
332
|
-
const _sfc_main$
|
|
331
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
333
332
|
__name: "CloseIcon",
|
|
334
333
|
props: {
|
|
335
334
|
canFullscreen: { type: Boolean, default: true },
|
|
@@ -396,112 +395,6 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
396
395
|
};
|
|
397
396
|
}
|
|
398
397
|
});
|
|
399
|
-
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
400
|
-
__name: "ModalWrap",
|
|
401
|
-
props: {
|
|
402
|
-
useWrapper: { type: Boolean, default: true },
|
|
403
|
-
modalHeaderHeight: { type: Number, default: 55 },
|
|
404
|
-
modalFooterHeight: { type: Number, default: 58 },
|
|
405
|
-
minHeight: { type: Number, default: 200 },
|
|
406
|
-
height: { type: Number },
|
|
407
|
-
visible: { type: Boolean },
|
|
408
|
-
fullScreen: { type: Boolean }
|
|
409
|
-
},
|
|
410
|
-
emits: ["ext-height", "height-change"],
|
|
411
|
-
setup(__props, { emit: emits }) {
|
|
412
|
-
const props = __props;
|
|
413
|
-
const wrapperRef = ref(null);
|
|
414
|
-
const wrapRef = ref(null);
|
|
415
|
-
const realHeightRef = ref(0);
|
|
416
|
-
const minRealHeightRef = ref(0);
|
|
417
|
-
let realHeight = 0;
|
|
418
|
-
const wrapStyle = computed(() => {
|
|
419
|
-
return {
|
|
420
|
-
minHeight: `${props.minHeight}px`,
|
|
421
|
-
[props.fullScreen ? "height" : "maxHeight"]: `${unref(realHeightRef)}px`
|
|
422
|
-
};
|
|
423
|
-
});
|
|
424
|
-
onMounted(() => {
|
|
425
|
-
const { modalHeaderHeight, modalFooterHeight } = props;
|
|
426
|
-
emits("ext-height", modalHeaderHeight + modalFooterHeight);
|
|
427
|
-
});
|
|
428
|
-
async function getModalDom() {
|
|
429
|
-
const wrapperRefDom = unref(wrapperRef);
|
|
430
|
-
if (!wrapperRefDom)
|
|
431
|
-
return;
|
|
432
|
-
const bodyDom = wrapperRefDom.$el.parentElement.parentElement.parentElement;
|
|
433
|
-
if (!bodyDom)
|
|
434
|
-
return;
|
|
435
|
-
bodyDom.style.padding = props.useWrapper ? "24px" : "0";
|
|
436
|
-
await nextTick();
|
|
437
|
-
const modalDom = bodyDom.parentElement && bodyDom.parentElement.parentElement;
|
|
438
|
-
return modalDom;
|
|
439
|
-
}
|
|
440
|
-
async function setModalHeight() {
|
|
441
|
-
if (!props.visible)
|
|
442
|
-
return;
|
|
443
|
-
try {
|
|
444
|
-
const modalDom = await getModalDom();
|
|
445
|
-
if (!modalDom)
|
|
446
|
-
return;
|
|
447
|
-
const modalRect = getComputedStyle(modalDom).top;
|
|
448
|
-
const modalTop = Number.parseInt(modalRect);
|
|
449
|
-
let maxHeight = window.innerHeight - props.modalFooterHeight - props.modalHeaderHeight - 100;
|
|
450
|
-
if (modalTop < 40) {
|
|
451
|
-
maxHeight -= 26;
|
|
452
|
-
}
|
|
453
|
-
await nextTick();
|
|
454
|
-
const warpEl = unref(wrapRef);
|
|
455
|
-
if (!warpEl)
|
|
456
|
-
return;
|
|
457
|
-
await nextTick();
|
|
458
|
-
realHeight = warpEl.scrollHeight;
|
|
459
|
-
if (props.fullScreen) {
|
|
460
|
-
realHeightRef.value = window.innerHeight - props.modalFooterHeight - props.modalHeaderHeight;
|
|
461
|
-
} else {
|
|
462
|
-
realHeightRef.value = props.height ? props.height : realHeight > maxHeight ? maxHeight : realHeight;
|
|
463
|
-
}
|
|
464
|
-
emits("height-change", unref(realHeightRef));
|
|
465
|
-
const _modalDom = await getModalDom();
|
|
466
|
-
_modalDom.style.top = (window.innerHeight - _modalDom.offsetHeight) / 2 + "px";
|
|
467
|
-
} catch (error2) {
|
|
468
|
-
console.log(error2);
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
windowResizeFn(setModalHeight.bind(null, false));
|
|
472
|
-
watchEffect(() => {
|
|
473
|
-
props.useWrapper && setModalHeight();
|
|
474
|
-
});
|
|
475
|
-
watch(
|
|
476
|
-
() => props.fullScreen,
|
|
477
|
-
(v) => {
|
|
478
|
-
setModalHeight();
|
|
479
|
-
if (!v) {
|
|
480
|
-
realHeightRef.value = minRealHeightRef.value;
|
|
481
|
-
} else {
|
|
482
|
-
minRealHeightRef.value = realHeightRef.value;
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
);
|
|
486
|
-
return (_ctx, _cache) => {
|
|
487
|
-
return openBlock(), createBlock(unref(DtScrollContainer), {
|
|
488
|
-
ref_key: "wrapperRef",
|
|
489
|
-
ref: wrapperRef
|
|
490
|
-
}, {
|
|
491
|
-
default: withCtx(() => [
|
|
492
|
-
createElementVNode("div", {
|
|
493
|
-
ref_key: "wrapRef",
|
|
494
|
-
ref: wrapRef,
|
|
495
|
-
style: normalizeStyle(unref(wrapStyle))
|
|
496
|
-
}, [
|
|
497
|
-
renderSlot(_ctx.$slots, "default")
|
|
498
|
-
], 4)
|
|
499
|
-
]),
|
|
500
|
-
_: 3
|
|
501
|
-
}, 512);
|
|
502
|
-
};
|
|
503
|
-
}
|
|
504
|
-
});
|
|
505
398
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
506
399
|
__name: "ModalFooter",
|
|
507
400
|
props: {
|
|
@@ -576,7 +469,7 @@ function useFullScreen(wrapClassName) {
|
|
|
576
469
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
577
470
|
__name: "index",
|
|
578
471
|
props: basicProps,
|
|
579
|
-
emits: ["visible-change", "
|
|
472
|
+
emits: ["visible-change", "cancel", "save", "register", "toggle-fullscreen", "update:visible"],
|
|
580
473
|
setup(__props, { emit: emits }) {
|
|
581
474
|
const props = __props;
|
|
582
475
|
const visibleRef = ref(false);
|
|
@@ -606,17 +499,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
606
499
|
}
|
|
607
500
|
return omit(bindValue, omitArr);
|
|
608
501
|
});
|
|
609
|
-
const getWrapperHeight = computed(() => {
|
|
610
|
-
if (unref(fullScreenRef))
|
|
611
|
-
return void 0;
|
|
612
|
-
return unref(getBindValue).height;
|
|
613
|
-
});
|
|
614
|
-
const modalFooterHeight = computed(() => {
|
|
615
|
-
if (isArray(props.footer)) {
|
|
616
|
-
return (unref(propsRef)?.footer).length ? 0 : void 0;
|
|
617
|
-
}
|
|
618
|
-
return props?.footer !== void 0 && !props.footer ? 0 : void 0;
|
|
619
|
-
});
|
|
620
502
|
const modalMethods = {
|
|
621
503
|
setModalProps,
|
|
622
504
|
redoModalHeight: () => {
|
|
@@ -631,9 +513,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
631
513
|
if (instance) {
|
|
632
514
|
emits("register", modalMethods, instance.uid);
|
|
633
515
|
}
|
|
634
|
-
function handleHeightChange(height) {
|
|
635
|
-
emits("height-change", height);
|
|
636
|
-
}
|
|
637
516
|
function setModalProps(props2) {
|
|
638
517
|
propsRef.value = deepMerge(unref(propsRef) || {}, props2);
|
|
639
518
|
if (Reflect.has(props2, "visible")) {
|
|
@@ -677,28 +556,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
677
556
|
});
|
|
678
557
|
return (_ctx, _cache) => {
|
|
679
558
|
const _component_ASpin = Spin;
|
|
680
|
-
return openBlock(), createBlock(_sfc_main$
|
|
559
|
+
return openBlock(), createBlock(_sfc_main$3, mergeProps(unref(getBindValue), { onCancel: handleCancel }), createSlots({
|
|
681
560
|
default: withCtx(() => [
|
|
682
561
|
createVNode(_component_ASpin, {
|
|
683
562
|
spinning: unref(getBindValue).loading,
|
|
684
563
|
tip: unref(getBindValue).loadingTip
|
|
685
564
|
}, {
|
|
686
565
|
default: withCtx(() => [
|
|
687
|
-
|
|
688
|
-
useWrapper: unref(getBindValue).useWrapper,
|
|
689
|
-
fullScreen: unref(fullScreenRef),
|
|
690
|
-
ref_key: "modalWrapperRef",
|
|
691
|
-
ref: modalWrapperRef,
|
|
692
|
-
minHeight: unref(getBindValue).minHeight,
|
|
693
|
-
height: unref(getWrapperHeight),
|
|
694
|
-
visible: visibleRef.value,
|
|
695
|
-
modalFooterHeight: unref(modalFooterHeight)
|
|
696
|
-
}, unref(omit)(unref(getBindValue).wrapperProps, "visible", "height", "modalFooterHeight"), { onHeightChange: handleHeightChange }), {
|
|
697
|
-
default: withCtx(() => [
|
|
698
|
-
renderSlot(_ctx.$slots, "default")
|
|
699
|
-
]),
|
|
700
|
-
_: 3
|
|
701
|
-
}, 16, ["useWrapper", "fullScreen", "minHeight", "height", "visible", "modalFooterHeight"])
|
|
566
|
+
renderSlot(_ctx.$slots, "default")
|
|
702
567
|
]),
|
|
703
568
|
_: 3
|
|
704
569
|
}, 8, ["spinning", "tip"])
|
|
@@ -708,7 +573,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
708
573
|
!_ctx.$slots.closeIcon ? {
|
|
709
574
|
name: "closeIcon",
|
|
710
575
|
fn: withCtx(() => [
|
|
711
|
-
createVNode(_sfc_main$
|
|
576
|
+
createVNode(_sfc_main$2, {
|
|
712
577
|
canFullscreen: unref(getBindValue).canFullscreen,
|
|
713
578
|
fullScreen: unref(fullScreenRef),
|
|
714
579
|
onCancel: handleCancel,
|
|
@@ -31,6 +31,29 @@
|
|
|
31
31
|
.ant-modal {
|
|
32
32
|
padding: 0;
|
|
33
33
|
}
|
|
34
|
+
|
|
35
|
+
.ant-modal-content{
|
|
36
|
+
width: 100%;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&:not(.fullscreen-modal) {
|
|
40
|
+
.ant-modal {
|
|
41
|
+
padding: 0;
|
|
42
|
+
position: absolute;
|
|
43
|
+
left: 0;
|
|
44
|
+
top: 0;
|
|
45
|
+
right: 0;
|
|
46
|
+
bottom: 0;
|
|
47
|
+
margin: 0 auto;
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
.ant-modal-body{
|
|
51
|
+
max-height: calc(100vh - 160px );
|
|
52
|
+
min-height: 200px;
|
|
53
|
+
overflow-y: auto;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
34
57
|
}
|
|
35
58
|
|
|
36
59
|
.dt-basic-modal-close{
|
|
@@ -100,7 +100,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
100
100
|
afterClose: FunctionConstructor;
|
|
101
101
|
}, {
|
|
102
102
|
props: any;
|
|
103
|
-
emits: (event: "visible-change" | "
|
|
103
|
+
emits: (event: "visible-change" | "cancel" | "save" | "register" | "toggle-fullscreen" | "update:visible", ...args: any[]) => void;
|
|
104
104
|
visibleRef: import("vue").Ref<boolean>;
|
|
105
105
|
propsRef: import("vue").Ref<Partial<ExtractPropTypes<{
|
|
106
106
|
t: {
|
|
@@ -207,11 +207,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
207
207
|
handleFullscreen: (e: Event) => void;
|
|
208
208
|
getMergeProps: import("vue").ComputedRef<any>;
|
|
209
209
|
getBindValue: import("vue").ComputedRef<any>;
|
|
210
|
-
getWrapperHeight: import("vue").ComputedRef<any>;
|
|
211
|
-
modalFooterHeight: import("vue").ComputedRef<number>;
|
|
212
210
|
modalMethods: ModalMethods;
|
|
213
211
|
instance: import("vue").ComponentInternalInstance;
|
|
214
|
-
handleHeightChange: (height: string) => void;
|
|
215
212
|
setModalProps: (props: Partial<ExtractPropTypes<typeof basicProps>>) => void;
|
|
216
213
|
handleSave: () => void;
|
|
217
214
|
handleCancel: (e?: Event) => Promise<void>;
|
|
@@ -362,84 +359,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
362
359
|
canFullscreen: boolean;
|
|
363
360
|
fullScreen: boolean;
|
|
364
361
|
}>;
|
|
365
|
-
ModalWrapper: import("vue").DefineComponent<{
|
|
366
|
-
useWrapper: {
|
|
367
|
-
type: BooleanConstructor;
|
|
368
|
-
default: boolean;
|
|
369
|
-
};
|
|
370
|
-
modalHeaderHeight: {
|
|
371
|
-
type: NumberConstructor;
|
|
372
|
-
default: number;
|
|
373
|
-
};
|
|
374
|
-
modalFooterHeight: {
|
|
375
|
-
type: NumberConstructor;
|
|
376
|
-
default: number;
|
|
377
|
-
};
|
|
378
|
-
minHeight: {
|
|
379
|
-
type: NumberConstructor;
|
|
380
|
-
default: number;
|
|
381
|
-
};
|
|
382
|
-
height: {
|
|
383
|
-
type: NumberConstructor;
|
|
384
|
-
};
|
|
385
|
-
visible: {
|
|
386
|
-
type: BooleanConstructor;
|
|
387
|
-
};
|
|
388
|
-
fullScreen: {
|
|
389
|
-
type: BooleanConstructor;
|
|
390
|
-
};
|
|
391
|
-
}, {
|
|
392
|
-
wrapperRef: any;
|
|
393
|
-
wrapRef: any;
|
|
394
|
-
realHeightRef: import("vue").Ref<number>;
|
|
395
|
-
minRealHeightRef: import("vue").Ref<number>;
|
|
396
|
-
realHeight: number;
|
|
397
|
-
props: any;
|
|
398
|
-
emits: (event: "height-change" | "ext-height", ...args: any[]) => void;
|
|
399
|
-
wrapStyle: import("vue").ComputedRef<{
|
|
400
|
-
[x: string]: string;
|
|
401
|
-
minHeight: string;
|
|
402
|
-
}>;
|
|
403
|
-
getModalDom: () => Promise<any>;
|
|
404
|
-
setModalHeight: () => Promise<void>;
|
|
405
|
-
readonly DtScrollContainer: import("../../../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>>;
|
|
406
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("height-change" | "ext-height")[], "height-change" | "ext-height", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
407
|
-
useWrapper: {
|
|
408
|
-
type: BooleanConstructor;
|
|
409
|
-
default: boolean;
|
|
410
|
-
};
|
|
411
|
-
modalHeaderHeight: {
|
|
412
|
-
type: NumberConstructor;
|
|
413
|
-
default: number;
|
|
414
|
-
};
|
|
415
|
-
modalFooterHeight: {
|
|
416
|
-
type: NumberConstructor;
|
|
417
|
-
default: number;
|
|
418
|
-
};
|
|
419
|
-
minHeight: {
|
|
420
|
-
type: NumberConstructor;
|
|
421
|
-
default: number;
|
|
422
|
-
};
|
|
423
|
-
height: {
|
|
424
|
-
type: NumberConstructor;
|
|
425
|
-
};
|
|
426
|
-
visible: {
|
|
427
|
-
type: BooleanConstructor;
|
|
428
|
-
};
|
|
429
|
-
fullScreen: {
|
|
430
|
-
type: BooleanConstructor;
|
|
431
|
-
};
|
|
432
|
-
}>> & {
|
|
433
|
-
"onHeight-change"?: (...args: any[]) => any;
|
|
434
|
-
"onExt-height"?: (...args: any[]) => any;
|
|
435
|
-
}, {
|
|
436
|
-
visible: boolean;
|
|
437
|
-
minHeight: number;
|
|
438
|
-
useWrapper: boolean;
|
|
439
|
-
fullScreen: boolean;
|
|
440
|
-
modalHeaderHeight: number;
|
|
441
|
-
modalFooterHeight: number;
|
|
442
|
-
}>;
|
|
443
362
|
ModalFooter: import("vue").DefineComponent<{
|
|
444
363
|
authPrefix: {
|
|
445
364
|
type: StringConstructor;
|
|
@@ -499,7 +418,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
499
418
|
showSave: boolean;
|
|
500
419
|
showCancel: boolean;
|
|
501
420
|
}>;
|
|
502
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("visible-change" | "
|
|
421
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("visible-change" | "cancel" | "save" | "register" | "toggle-fullscreen" | "update:visible")[], "visible-change" | "cancel" | "save" | "register" | "toggle-fullscreen" | "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
503
422
|
t: {
|
|
504
423
|
type: StringConstructor;
|
|
505
424
|
};
|
|
@@ -598,7 +517,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
598
517
|
afterClose: FunctionConstructor;
|
|
599
518
|
}>> & {
|
|
600
519
|
"onVisible-change"?: (...args: any[]) => any;
|
|
601
|
-
"onHeight-change"?: (...args: any[]) => any;
|
|
602
520
|
onCancel?: (...args: any[]) => any;
|
|
603
521
|
onSave?: (...args: any[]) => any;
|
|
604
522
|
onRegister?: (...args: any[]) => any;
|