@dt-frames/ui 2.0.15 → 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 +50 -37
- package/es/components/form/index.less +16 -0
- package/es/components/form/src/props.d.ts +1 -1
- 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 +2 -2
- 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 +28 -20
- package/es/components/upload/index.less +10 -1
- package/es/components/upload/src/index.d.ts +1 -1
- package/es/components/upload/src/utils/upload.d.ts +1 -1
- package/es/theme/index.js +307 -307
- package/es/theme/index.less +1 -0
- package/es/theme/src/components/header/components/size.d.ts +5 -5
- package/es/theme/src/components/header/index.d.ts +5 -5
- package/es/theme/src/components/header/multiple-header.d.ts +5 -5
- package/es/theme/src/index.d.ts +10 -10
- 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
|
@@ -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;
|
|
@@ -7,7 +7,7 @@ import { omit, cloneDeep, isEqual } from "lodash-es";
|
|
|
7
7
|
import "ant-design-vue/es/tooltip/style";
|
|
8
8
|
import "ant-design-vue/es/dropdown/style";
|
|
9
9
|
import "ant-design-vue/es/menu/style";
|
|
10
|
-
import { useDebounceFn, useFullscreen,
|
|
10
|
+
import { useDebounceFn, useFullscreen, tryOnMounted } from "@vueuse/core";
|
|
11
11
|
import { Input, InputNumber, Select, TreeSelect, Switch, Checkbox, DatePicker, TimePicker, Popover } from "ant-design-vue";
|
|
12
12
|
import { DtFormButtons } from "../form";
|
|
13
13
|
import { useModal, DtModal, useModalOut } from "../modal";
|
|
@@ -1404,7 +1404,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
1404
1404
|
state.checkedList = checkList;
|
|
1405
1405
|
}
|
|
1406
1406
|
function getPopupContainer$1() {
|
|
1407
|
-
return isFunction
|
|
1407
|
+
return isFunction(attrs.getPopupContainer) ? attrs.getPopupContainer() : document.getElementById("dt-layout-content") || getPopupContainer();
|
|
1408
1408
|
}
|
|
1409
1409
|
return (_ctx, _cache) => {
|
|
1410
1410
|
const _component_ACheckbox = Checkbox$1;
|