@dt-frames/ui 2.0.3 → 2.0.5
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/locales/en.ts +1 -1
- package/es/components/curd/index.js +346 -331
- package/es/components/curd/src/components/Curd.d.ts +0 -8
- package/es/components/curd/src/props.d.ts +0 -4
- package/es/components/drawer/index.d.ts +1 -1
- package/es/components/drawer/index.js +27 -27
- package/es/components/drawer/src/index.d.ts +2 -3
- package/es/components/form/index.d.ts +0 -33
- package/es/components/form/index.js +72 -36
- package/es/components/form/index.less +212 -9
- package/es/components/form/src/components/FormItem.d.ts +3 -7
- package/es/components/form/src/components/formIcon.d.ts +14 -14
- package/es/components/form/src/components/formInputUseDialog.d.ts +8 -8
- package/es/components/form/src/enums/index.d.ts +1 -1
- package/es/components/form/src/index.d.ts +0 -25
- package/es/components/form/src/props.d.ts +2 -6
- package/es/components/form/src/types/form.type.d.ts +1 -1
- package/es/components/icons/index.less +5 -0
- package/es/components/modal/index.js +35 -34
- package/es/components/modal/index.less +10 -0
- package/es/components/modal/src/components/ModalFooter.d.ts +3 -3
- package/es/components/modal/src/index.d.ts +9 -9
- package/es/components/source/hooks/useSource.d.ts +14 -0
- package/es/components/source/index.js +72 -31
- package/es/components/source/types/source.type.d.ts +5 -8
- package/es/components/table/index.js +418 -305
- package/es/components/table/index.less +62 -14
- package/es/components/table/src/components/TableAction.d.ts +1 -1
- package/es/components/table/src/index.d.ts +30 -10
- package/es/components/table/src/props.d.ts +12 -4
- package/es/components/table/src/types/table.type.d.ts +4 -5
- package/es/components/tree/index.d.ts +2 -0
- package/es/components/tree/index.js +1087 -0
- package/es/components/tree/index.less +119 -0
- package/es/components/tree/src/basicProps.d.ts +146 -0
- package/es/components/tree/src/components/ContextMenu.d.ts +64 -0
- package/es/components/tree/src/components/TreeHeader.d.ts +98 -0
- package/es/components/tree/src/enums/index.d.ts +6 -0
- package/es/components/tree/src/hooks/useContextMenu.d.ts +2 -0
- package/es/components/tree/src/hooks/useTree.d.ts +14 -0
- package/es/components/tree/src/index.d.ts +6526 -0
- package/es/components/tree/src/type/menu.d.ts +33 -0
- package/es/components/tree/src/type/tree.d.ts +55 -0
- package/es/components/tree/src/utils/tree.d.ts +5 -0
- package/es/packages/ui/src/assets/locales/en.d.ts +101 -0
- package/es/packages/ui/src/assets/locales/index.d.ts +2 -0
- package/es/packages/ui/src/assets/locales/zh.d.ts +103 -0
- package/es/packages/ui/src/components/container/index.d.ts +94 -0
- package/es/packages/ui/src/components/container/src/components/bar.d.ts +14 -0
- package/es/packages/ui/src/components/container/src/components/scroll-bar.d.ts +70 -0
- package/es/packages/ui/src/components/container/src/hooks/scroll.d.ts +10 -0
- package/es/packages/ui/src/components/container/src/scroll-container.d.ts +76 -0
- package/es/packages/ui/src/components/container/src/slot-container.d.ts +20 -0
- package/es/packages/ui/src/components/container/src/types/scroll.type.d.ts +22 -0
- package/es/packages/ui/src/components/container/src/utils/scroll.d.ts +5 -0
- package/es/packages/ui/src/global.d.ts +7 -0
- package/es/packages/ui/src/theme/index.d.ts +10 -0
- package/es/packages/ui/src/theme/src/components/content/index.d.ts +27 -0
- package/es/packages/ui/src/theme/src/components/feature/back-top.d.ts +5 -0
- package/es/packages/ui/src/theme/src/components/feature/index.d.ts +7 -0
- package/es/packages/ui/src/theme/src/components/footer/index.d.ts +31 -0
- package/es/packages/ui/src/theme/src/components/header/components/bread-crumb.d.ts +6 -0
- package/es/packages/ui/src/theme/src/components/header/components/fullscreen.d.ts +5 -0
- package/es/packages/ui/src/theme/src/components/header/components/index.d.ts +11 -0
- package/es/packages/ui/src/theme/src/components/header/components/lang-picker.d.ts +23 -0
- package/es/packages/ui/src/theme/src/components/header/components/logo.d.ts +56 -0
- package/es/packages/ui/src/theme/src/components/header/components/menu-filter.d.ts +22 -0
- package/es/packages/ui/src/theme/src/components/header/components/notify.d.ts +24 -0
- package/es/packages/ui/src/theme/src/components/header/components/setting-theme.d.ts +223 -0
- package/es/packages/ui/src/theme/src/components/header/components/size.d.ts +282 -0
- package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/feature.d.ts +138 -0
- package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/index.d.ts +3 -0
- package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/menu-type.d.ts +16 -0
- package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/select.d.ts +58 -0
- package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/switch.d.ts +49 -0
- package/es/packages/ui/src/theme/src/components/header/components/trigger.d.ts +10 -0
- package/es/packages/ui/src/theme/src/components/header/components/user-info.d.ts +37 -0
- package/es/packages/ui/src/theme/src/components/header/helper/change-theme.d.ts +13 -0
- package/es/packages/ui/src/theme/src/components/header/helper/menu-tree.d.ts +4 -0
- package/es/packages/ui/src/theme/src/components/header/index.d.ts +720 -0
- package/es/packages/ui/src/theme/src/components/header/multiple-header.d.ts +806 -0
- package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/basic-menu-item.d.ts +62 -0
- package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/basic-menu.d.ts +207 -0
- package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/basic-sub-menu-item.d.ts +127 -0
- package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/menu-item-content.d.ts +26 -0
- package/es/packages/ui/src/theme/src/components/sider/components/drag-bar.d.ts +14 -0
- package/es/packages/ui/src/theme/src/components/sider/components/layout-menu.d.ts +22 -0
- package/es/packages/ui/src/theme/src/components/sider/components/props.d.ts +69 -0
- package/es/packages/ui/src/theme/src/components/sider/components/sider-trigger.d.ts +17 -0
- package/es/packages/ui/src/theme/src/components/sider/helper/sider.d.ts +12 -0
- package/es/packages/ui/src/theme/src/components/sider/helper/split-menu.d.ts +10 -0
- package/es/packages/ui/src/theme/src/components/sider/index.d.ts +235 -0
- package/es/packages/ui/src/theme/src/components/sider/mix-sider.d.ts +167 -0
- package/es/packages/ui/src/theme/src/components/tabs/components/TabContent.d.ts +6 -0
- package/es/packages/ui/src/theme/src/components/tabs/components/TabRedo.d.ts +21 -0
- package/es/packages/ui/src/theme/src/components/tabs/components/index.d.ts +3 -0
- package/es/packages/ui/src/theme/src/components/tabs/hooks/useMultifyTabs.d.ts +7 -0
- package/es/packages/ui/src/theme/src/components/tabs/hooks/useTabDropdown.d.ts +6 -0
- package/es/packages/ui/src/theme/src/components/tabs/index.d.ts +63 -0
- package/es/packages/ui/src/theme/src/components/tabs/types/tabs.type.d.ts +7 -0
- package/es/packages/ui/src/theme/src/enums/index.d.ts +1 -0
- package/es/packages/ui/src/theme/src/enums/theme.enum.d.ts +34 -0
- package/es/packages/ui/src/theme/src/hooks/index.d.ts +6 -0
- package/es/packages/ui/src/theme/src/hooks/useDragLine.d.ts +2 -0
- package/es/packages/ui/src/theme/src/hooks/useHeader.d.ts +25 -0
- package/es/packages/ui/src/theme/src/hooks/useMenu.d.ts +29 -0
- package/es/packages/ui/src/theme/src/hooks/useMultifyTab.d.ts +8 -0
- package/es/packages/ui/src/theme/src/hooks/useOpenKeys.d.ts +7 -0
- package/es/packages/ui/src/theme/src/hooks/useTheme.d.ts +9 -0
- package/es/packages/ui/src/theme/src/index.d.ts +1851 -0
- package/es/packages/ui/src/theme/src/setting/theme.setting.d.ts +2 -0
- package/es/packages/ui/src/theme/src/stores/index.d.ts +3 -0
- package/es/packages/ui/src/theme/src/stores/routeReuse.store.d.ts +23 -0
- package/es/packages/ui/src/theme/src/stores/theme.store.d.ts +18 -0
- package/es/packages/ui/src/theme/src/types/index.d.ts +3 -0
- package/es/packages/ui/src/theme/src/types/menu.type.d.ts +15 -0
- package/es/packages/ui/src/theme/src/types/theme.type.d.ts +62 -0
- package/es/packages/ui/src/utils/withInstall.d.ts +4 -0
- package/es/theme/index.d.ts +2 -1
- package/es/theme/index.js +898 -683
- package/es/theme/index.less +205 -0
- package/es/theme/src/components/header/components/logo.d.ts +22 -0
- package/es/theme/src/components/header/components/size.d.ts +5 -5
- package/es/theme/src/components/header/helper/menu-tree.d.ts +1 -0
- package/es/theme/src/components/header/index.d.ts +92 -5
- package/es/theme/src/components/header/multiple-header.d.ts +94 -7
- package/es/theme/src/components/sider/components/drag-bar.d.ts +1 -1
- package/es/theme/src/components/sider/components/sider-trigger.d.ts +0 -1
- package/es/theme/src/components/sider/index.d.ts +169 -3
- package/es/theme/src/components/sider/mix-sider.d.ts +168 -0
- package/es/theme/src/enums/theme.enum.d.ts +2 -1
- package/es/theme/src/hooks/useMenu.d.ts +5 -3
- package/es/theme/src/hooks/useMultifyTab.d.ts +1 -0
- package/es/theme/src/index.d.ts +356 -15
- package/es/theme/src/stores/theme.store.d.ts +3 -0
- package/es/theme/src/types/theme.type.d.ts +2 -0
- package/index.d.ts +2 -1
- package/index.js +6 -2
- package/package.json +4 -4
- package/tsconfig.json +1 -0
- package/vite.config.ts +1 -0
|
@@ -100,10 +100,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
100
100
|
type: BooleanConstructor;
|
|
101
101
|
default: boolean;
|
|
102
102
|
};
|
|
103
|
-
alwaysShowLines: {
|
|
104
|
-
type: BooleanConstructor;
|
|
105
|
-
default: boolean;
|
|
106
|
-
};
|
|
107
103
|
minShowColumn: {
|
|
108
104
|
type: NumberConstructor;
|
|
109
105
|
default: number;
|
|
@@ -1152,10 +1148,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
1152
1148
|
type: BooleanConstructor;
|
|
1153
1149
|
default: boolean;
|
|
1154
1150
|
};
|
|
1155
|
-
alwaysShowLines: {
|
|
1156
|
-
type: BooleanConstructor;
|
|
1157
|
-
default: boolean;
|
|
1158
|
-
};
|
|
1159
1151
|
minShowColumn: {
|
|
1160
1152
|
type: NumberConstructor;
|
|
1161
1153
|
default: number;
|
|
@@ -7709,7 +7709,7 @@ declare const DtDrawer: import('../../utils/withInstall').SFCWithInstall<import(
|
|
|
7709
7709
|
cancelText?: string;
|
|
7710
7710
|
footer?: {
|
|
7711
7711
|
t?: string;
|
|
7712
|
-
|
|
7712
|
+
label: string;
|
|
7713
7713
|
color?: "" | "error" | "warning" | "success";
|
|
7714
7714
|
type?: "default" | "link" | "dashed" | "text" | "primary" | "ghost";
|
|
7715
7715
|
class?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button, FormItem, Col, Drawer } from "ant-design-vue/es";
|
|
2
2
|
import "ant-design-vue/es/drawer/style";
|
|
3
|
-
import { defineComponent, getCurrentInstance
|
|
3
|
+
import { defineComponent, getCurrentInstance, ref, inject, computed, onUnmounted, h, provide, onMounted, nextTick as nextTick$1, unref, onBeforeUnmount, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, createBlock, resolveDynamicComponent, withCtx, renderSlot, createVNode, mergeProps, toDisplayString, watch, resolveDirective, normalizeProps, Fragment, renderList, withDirectives, createCommentVNode, createTextVNode, useAttrs, toRaw, createSlots, guardReactiveProps, reactive, watchEffect } from "vue";
|
|
4
4
|
import { off, on, useI18n, dispatchResize, isFunction, DtCache, CacheKey, deepMerge, isUnDef, useApp, isObject, error } from "@dt-frames/core";
|
|
5
5
|
import "ant-design-vue/es/col/style";
|
|
6
6
|
import "ant-design-vue/es/form/style";
|
|
@@ -73,14 +73,14 @@ const Bar = defineComponent({
|
|
|
73
73
|
move: Number
|
|
74
74
|
},
|
|
75
75
|
setup(props) {
|
|
76
|
-
const instance = getCurrentInstance
|
|
77
|
-
const thumb = ref
|
|
76
|
+
const instance = getCurrentInstance();
|
|
77
|
+
const thumb = ref();
|
|
78
78
|
const wrap = inject("scroll-bar-wrap", {});
|
|
79
79
|
const bar = computed(() => {
|
|
80
80
|
return BAR_MAP[props.vertical ? "vertical" : "horizontal"];
|
|
81
81
|
});
|
|
82
|
-
const barStore = ref
|
|
83
|
-
const cursorDown = ref
|
|
82
|
+
const barStore = ref({});
|
|
83
|
+
const cursorDown = ref();
|
|
84
84
|
const clickThumbHandler = (e) => {
|
|
85
85
|
if (e.ctrlKey || e.button === 2) {
|
|
86
86
|
return;
|
|
@@ -124,13 +124,13 @@ const Bar = defineComponent({
|
|
|
124
124
|
onUnmounted(() => {
|
|
125
125
|
off(document, "mouseup", mouseUpDocumentHandler);
|
|
126
126
|
});
|
|
127
|
-
return () => h
|
|
127
|
+
return () => h(
|
|
128
128
|
"div",
|
|
129
129
|
{
|
|
130
130
|
class: ["scrollbar__bar", "is-" + bar.value.key],
|
|
131
131
|
onMousedown: clickTrackHandler
|
|
132
132
|
},
|
|
133
|
-
h
|
|
133
|
+
h("div", {
|
|
134
134
|
ref: thumb,
|
|
135
135
|
class: "scrollbar__thumb",
|
|
136
136
|
onMousedown: clickThumbHandler,
|
|
@@ -168,12 +168,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
168
168
|
},
|
|
169
169
|
setup(__props) {
|
|
170
170
|
const props = __props;
|
|
171
|
-
const sizeWidth = ref
|
|
172
|
-
const sizeHeight = ref
|
|
173
|
-
const moveX = ref
|
|
174
|
-
const moveY = ref
|
|
175
|
-
const wrap = ref
|
|
176
|
-
const resize = ref
|
|
171
|
+
const sizeWidth = ref("0");
|
|
172
|
+
const sizeHeight = ref("0");
|
|
173
|
+
const moveX = ref(0);
|
|
174
|
+
const moveY = ref(0);
|
|
175
|
+
const wrap = ref();
|
|
176
|
+
const resize = ref();
|
|
177
177
|
provide("scroll-bar-wrap", wrap);
|
|
178
178
|
const style = computed(() => {
|
|
179
179
|
let rsStyle = {};
|
|
@@ -354,7 +354,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
354
354
|
setup(__props, { emit: emits }) {
|
|
355
355
|
const props = __props;
|
|
356
356
|
const { t } = useI18n();
|
|
357
|
-
const advancedRef = ref
|
|
357
|
+
const advancedRef = ref(props.isAdvanced);
|
|
358
358
|
let key = 0;
|
|
359
359
|
const showAdvanceRef = computed(() => {
|
|
360
360
|
return props.mode === "search" ? props.showAdvancedButton : false;
|
|
@@ -423,7 +423,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
423
423
|
(button.show === void 0 ? true : button.show) ? withDirectives((openBlock(), createBlock(_component_AButton, {
|
|
424
424
|
type: button.type,
|
|
425
425
|
class: normalizeClass(button.class),
|
|
426
|
-
loading: button.loading
|
|
426
|
+
loading: button.loading,
|
|
427
427
|
disabled: button.disabled,
|
|
428
428
|
key: unref(key),
|
|
429
429
|
onClick: ($event) => handleBtnClick(button)
|
|
@@ -434,7 +434,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
434
434
|
]) : createCommentVNode("", true)
|
|
435
435
|
]),
|
|
436
436
|
default: withCtx(() => [
|
|
437
|
-
createTextVNode(" " + toDisplayString(unref(t)(button.
|
|
437
|
+
createTextVNode(" " + toDisplayString(unref(t)(button.label)) + " ", 1),
|
|
438
438
|
button.postIcon ? withDirectives((openBlock(), createElementBlock("span", _hoisted_2, null, 512)), [
|
|
439
439
|
[_directive_icon, button.postIcon]
|
|
440
440
|
]) : createCommentVNode("", true)
|
|
@@ -492,8 +492,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
492
492
|
if (props.buttons && props.buttons.length)
|
|
493
493
|
return props.buttons;
|
|
494
494
|
let buttonActions = [
|
|
495
|
-
{ t: "\u4FDD\u5B58",
|
|
496
|
-
{ t: "\u5173\u95ED",
|
|
495
|
+
{ t: "\u4FDD\u5B58", label: props.okText || t("SAVE"), preIcon: "mdi:content-save", type: "primary", flag: "OK" },
|
|
496
|
+
{ t: "\u5173\u95ED", label: props.cancelText || t("CLOSE"), preIcon: "mdi:close", flag: "CANCEL" }
|
|
497
497
|
];
|
|
498
498
|
if (!props.showSave)
|
|
499
499
|
buttonActions = buttonActions.filter((btn) => btn.flag !== "OK");
|
|
@@ -572,9 +572,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
572
572
|
setup(__props, { emit: emits }) {
|
|
573
573
|
const props = __props;
|
|
574
574
|
const attrs = useAttrs();
|
|
575
|
-
const propsRef = ref
|
|
575
|
+
const propsRef = ref(null);
|
|
576
576
|
const auths = DtCache.getLocal(CacheKey.AUTHS);
|
|
577
|
-
const visibleRef = ref
|
|
577
|
+
const visibleRef = ref(false);
|
|
578
578
|
const getMergeProps = computed(() => {
|
|
579
579
|
return deepMerge(toRaw(props), unref(propsRef));
|
|
580
580
|
});
|
|
@@ -728,9 +728,9 @@ const orgDialogProp = reactive({});
|
|
|
728
728
|
const cbTransfer = reactive({});
|
|
729
729
|
const dataTransfer = reactive({});
|
|
730
730
|
function useDrawerOut() {
|
|
731
|
-
const drawer = ref
|
|
732
|
-
const loaded = ref
|
|
733
|
-
const uid = ref
|
|
731
|
+
const drawer = ref(null);
|
|
732
|
+
const loaded = ref(false);
|
|
733
|
+
const uid = ref("");
|
|
734
734
|
const { isProd } = useApp();
|
|
735
735
|
function register(drawerMethods, uuid) {
|
|
736
736
|
if (!getCurrentInstance()) {
|
|
@@ -765,7 +765,7 @@ function useDrawerOut() {
|
|
|
765
765
|
},
|
|
766
766
|
openDrawer: (params = null, afterClose) => {
|
|
767
767
|
const id = unref(uid);
|
|
768
|
-
dataTransfer[id] = isObject(params) ? { ...toRaw
|
|
768
|
+
dataTransfer[id] = isObject(params) ? { ...toRaw(params) } : params;
|
|
769
769
|
getInstance()?.setDrawerProps({
|
|
770
770
|
defaultFullscreen: false,
|
|
771
771
|
...orgDialogProp[id],
|
|
@@ -784,9 +784,9 @@ function useDrawerOut() {
|
|
|
784
784
|
return [register, methods];
|
|
785
785
|
}
|
|
786
786
|
function useDrawer(props, setModalData) {
|
|
787
|
-
const drawerInstanceRef = ref
|
|
787
|
+
const drawerInstanceRef = ref(null);
|
|
788
788
|
const currentInstance = getCurrentInstance();
|
|
789
|
-
const uidRef = ref
|
|
789
|
+
const uidRef = ref("");
|
|
790
790
|
const { isProd } = useApp();
|
|
791
791
|
const getInstance = () => {
|
|
792
792
|
const instance = unref(drawerInstanceRef);
|
|
@@ -802,7 +802,7 @@ function useDrawer(props, setModalData) {
|
|
|
802
802
|
uidRef.value = uuid;
|
|
803
803
|
drawerInstanceRef.value = drawerInstance;
|
|
804
804
|
currentInstance?.emit("register", drawerInstance, uuid);
|
|
805
|
-
orgDialogProp[uuid] = toRaw
|
|
805
|
+
orgDialogProp[uuid] = toRaw(props);
|
|
806
806
|
drawerInstance.setDrawerProps(props);
|
|
807
807
|
}
|
|
808
808
|
watchEffect(() => {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Recordable } from '@dt-frames/core';
|
|
2
1
|
import { DrawerMethods, DrawerProps } from './types/index.type';
|
|
3
2
|
import { CSSProperties } from 'vue';
|
|
4
3
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
@@ -7711,7 +7710,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
7711
7710
|
cancelText?: string;
|
|
7712
7711
|
footer?: {
|
|
7713
7712
|
t?: string;
|
|
7714
|
-
|
|
7713
|
+
label: string;
|
|
7715
7714
|
color?: "" | "error" | "warning" | "success";
|
|
7716
7715
|
type?: "default" | "link" | "dashed" | "text" | "primary" | "ghost";
|
|
7717
7716
|
class?: string;
|
|
@@ -7895,7 +7894,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
7895
7894
|
key: number;
|
|
7896
7895
|
showAdvanceRef: import("vue").ComputedRef<boolean>;
|
|
7897
7896
|
colOpt: import("vue").ComputedRef<{
|
|
7898
|
-
style: Recordable<any>;
|
|
7897
|
+
style: import("@dt-frames/core").Recordable<any>;
|
|
7899
7898
|
}>;
|
|
7900
7899
|
getAdvanceClass: import("vue").ComputedRef<(string | {
|
|
7901
7900
|
'basic-arrow--active': boolean;
|
|
@@ -76,10 +76,6 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
76
76
|
type: BooleanConstructor;
|
|
77
77
|
default: boolean;
|
|
78
78
|
};
|
|
79
|
-
alwaysShowLines: {
|
|
80
|
-
type: BooleanConstructor;
|
|
81
|
-
default: boolean;
|
|
82
|
-
};
|
|
83
79
|
minShowColumn: {
|
|
84
80
|
type: NumberConstructor;
|
|
85
81
|
default: number;
|
|
@@ -212,10 +208,6 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
212
208
|
type: BooleanConstructor;
|
|
213
209
|
default: boolean;
|
|
214
210
|
};
|
|
215
|
-
alwaysShowLines: {
|
|
216
|
-
type: BooleanConstructor;
|
|
217
|
-
default: boolean;
|
|
218
|
-
};
|
|
219
211
|
minShowColumn: {
|
|
220
212
|
type: NumberConstructor;
|
|
221
213
|
default: number;
|
|
@@ -354,10 +346,6 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
354
346
|
type: BooleanConstructor;
|
|
355
347
|
default: boolean;
|
|
356
348
|
};
|
|
357
|
-
alwaysShowLines: {
|
|
358
|
-
type: BooleanConstructor;
|
|
359
|
-
default: boolean;
|
|
360
|
-
};
|
|
361
349
|
minShowColumn: {
|
|
362
350
|
type: NumberConstructor;
|
|
363
351
|
default: number;
|
|
@@ -2469,10 +2457,6 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
2469
2457
|
type: BooleanConstructor;
|
|
2470
2458
|
default: boolean;
|
|
2471
2459
|
};
|
|
2472
|
-
alwaysShowLines: {
|
|
2473
|
-
type: BooleanConstructor;
|
|
2474
|
-
default: boolean;
|
|
2475
|
-
};
|
|
2476
2460
|
minShowColumn: {
|
|
2477
2461
|
type: NumberConstructor;
|
|
2478
2462
|
default: number;
|
|
@@ -2603,10 +2587,6 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
2603
2587
|
type: BooleanConstructor;
|
|
2604
2588
|
default: boolean;
|
|
2605
2589
|
};
|
|
2606
|
-
alwaysShowLines: {
|
|
2607
|
-
type: BooleanConstructor;
|
|
2608
|
-
default: boolean;
|
|
2609
|
-
};
|
|
2610
2590
|
minShowColumn: {
|
|
2611
2591
|
type: NumberConstructor;
|
|
2612
2592
|
default: number;
|
|
@@ -2747,10 +2727,6 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
2747
2727
|
type: BooleanConstructor;
|
|
2748
2728
|
default: boolean;
|
|
2749
2729
|
};
|
|
2750
|
-
alwaysShowLines: {
|
|
2751
|
-
type: BooleanConstructor;
|
|
2752
|
-
default: boolean;
|
|
2753
|
-
};
|
|
2754
2730
|
minShowColumn: {
|
|
2755
2731
|
type: NumberConstructor;
|
|
2756
2732
|
default: number;
|
|
@@ -2898,10 +2874,6 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
2898
2874
|
type: BooleanConstructor;
|
|
2899
2875
|
default: boolean;
|
|
2900
2876
|
};
|
|
2901
|
-
alwaysShowLines: {
|
|
2902
|
-
type: BooleanConstructor;
|
|
2903
|
-
default: boolean;
|
|
2904
|
-
};
|
|
2905
2877
|
minShowColumn: {
|
|
2906
2878
|
type: NumberConstructor;
|
|
2907
2879
|
default: number;
|
|
@@ -3133,10 +3105,6 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
3133
3105
|
type: BooleanConstructor;
|
|
3134
3106
|
default: boolean;
|
|
3135
3107
|
};
|
|
3136
|
-
alwaysShowLines: {
|
|
3137
|
-
type: BooleanConstructor;
|
|
3138
|
-
default: boolean;
|
|
3139
|
-
};
|
|
3140
3108
|
minShowColumn: {
|
|
3141
3109
|
type: NumberConstructor;
|
|
3142
3110
|
default: number;
|
|
@@ -3203,7 +3171,6 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
3203
3171
|
compact: boolean;
|
|
3204
3172
|
schemas: import("./src/types/form.type").FormSchema[];
|
|
3205
3173
|
autoSearchOnEnter: boolean;
|
|
3206
|
-
alwaysShowLines: boolean;
|
|
3207
3174
|
minShowColumn: number;
|
|
3208
3175
|
showAdvancedButton: boolean;
|
|
3209
3176
|
allowClear: boolean;
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import { RadioButton, RadioGroup, Button, FormItem as FormItem$1, Col as Col$1, Row, Form as Form$1 } from "ant-design-vue/es";
|
|
2
2
|
import "ant-design-vue/es/form/style";
|
|
3
3
|
import "ant-design-vue/es/row/style";
|
|
4
|
-
import { toRaw
|
|
4
|
+
import { toRaw, unref, computed, getCurrentInstance, reactive, readonly, watchEffect, nextTick, defineComponent, useAttrs, openBlock, createBlock, mergeProps, isRef, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, createElementVNode, createVNode, normalizeProps, guardReactiveProps, createCommentVNode, toRefs, isVNode, ref, watch, resolveDirective, normalizeStyle, withDirectives, normalizeClass, onMounted, withKeys, createSlots, renderSlot } from "vue";
|
|
5
5
|
import { DtCache, CacheKey, deepMerge, Pages, useGo, useRedo, Language, useAppStore, isNumber, useI18n, isString, isFunction, error, useSlots, isArray, isBoolean, isNull, dispatchResize, isObject, isNullAndUnDef, isEmpty, useTimeoutFn } from "@dt-frames/core";
|
|
6
6
|
import { isEqual, omit, cloneDeep, upperFirst, uniqBy, set } from "lodash-es";
|
|
7
7
|
import { Input, Select, TreeSelect, Radio, Checkbox, AutoComplete, Cascader, DatePicker, InputNumber, Switch, TimePicker, Slider, Rate, Divider, Col, Tooltip, Form, FormItem } from "ant-design-vue";
|
|
8
8
|
import { defineStore } from "pinia";
|
|
9
9
|
import "ant-design-vue/es/radio/style";
|
|
10
|
+
import "ant-design-vue/es/cascader/style";
|
|
11
|
+
import "ant-design-vue/es/input-number/style";
|
|
12
|
+
import "ant-design-vue/es/switch/style";
|
|
13
|
+
import "ant-design-vue/es/tree-select/style";
|
|
14
|
+
import "ant-design-vue/es/slider/style";
|
|
15
|
+
import "ant-design-vue/es/rate/style";
|
|
16
|
+
import "ant-design-vue/es/date-picker/style";
|
|
10
17
|
import "ant-design-vue/es/col/style";
|
|
11
18
|
import "ant-design-vue/es/button/style";
|
|
12
19
|
import dayjs from "dayjs";
|
|
@@ -19,6 +26,7 @@ var MenuType = /* @__PURE__ */ ((MenuType2) => {
|
|
|
19
26
|
MenuType2["SIDE"] = "sidebar";
|
|
20
27
|
MenuType2["TOP_MENU"] = "top-menu";
|
|
21
28
|
MenuType2["MIX"] = "mix";
|
|
29
|
+
MenuType2["MIX_SIDEBAR"] = "mix-sidebar";
|
|
22
30
|
return MenuType2;
|
|
23
31
|
})(MenuType || {});
|
|
24
32
|
var MenuMode = /* @__PURE__ */ ((MenuMode2) => {
|
|
@@ -70,7 +78,8 @@ const defaultThemeConf = {
|
|
|
70
78
|
menuWidth: 240,
|
|
71
79
|
trigger: true,
|
|
72
80
|
type: MenuType.SIDE,
|
|
73
|
-
mode: MenuMode.INLINE
|
|
81
|
+
mode: MenuMode.INLINE,
|
|
82
|
+
mixSideTrigger: "hover"
|
|
74
83
|
},
|
|
75
84
|
footerOptions: {
|
|
76
85
|
show: false,
|
|
@@ -91,7 +100,8 @@ const useThemeStore = defineStore({
|
|
|
91
100
|
id: "dt-theme",
|
|
92
101
|
state: () => ({
|
|
93
102
|
themeConf: DtCache.getLocal(CacheKey.THEME) ?? defaultThemeConf,
|
|
94
|
-
pageLoading: false
|
|
103
|
+
pageLoading: false,
|
|
104
|
+
mixSiderHasSubMenu: false
|
|
95
105
|
}),
|
|
96
106
|
getters: {
|
|
97
107
|
getThemeConf() {
|
|
@@ -111,6 +121,9 @@ const useThemeStore = defineStore({
|
|
|
111
121
|
},
|
|
112
122
|
getPageLoading() {
|
|
113
123
|
return this.pageLoading;
|
|
124
|
+
},
|
|
125
|
+
getMixSiderIsHasMenu() {
|
|
126
|
+
return this.mixSiderHasSubMenu;
|
|
114
127
|
}
|
|
115
128
|
},
|
|
116
129
|
actions: {
|
|
@@ -118,6 +131,9 @@ const useThemeStore = defineStore({
|
|
|
118
131
|
let newThemeConf = deepMerge(this.themeConf, options);
|
|
119
132
|
this.themeConf = deepMerge(defaultThemeConf, newThemeConf);
|
|
120
133
|
DtCache.setLocal(CacheKey.THEME, this.themeConf);
|
|
134
|
+
},
|
|
135
|
+
setMixSiderIsHasMenu(val) {
|
|
136
|
+
this.mixSiderHasSubMenu = val;
|
|
121
137
|
}
|
|
122
138
|
}
|
|
123
139
|
});
|
|
@@ -151,7 +167,7 @@ defineStore({
|
|
|
151
167
|
return (tab.fullPath || tab.path) === (fullPath || path);
|
|
152
168
|
});
|
|
153
169
|
if (tabHasExits) {
|
|
154
|
-
const curTab = toRaw
|
|
170
|
+
const curTab = toRaw(this.tabList)[updateIndex];
|
|
155
171
|
curTab.params = params || curTab.params;
|
|
156
172
|
curTab.query = query || curTab.query;
|
|
157
173
|
curTab.fullPath = fullPath || curTab.fullPath;
|
|
@@ -273,8 +289,18 @@ function useMenu() {
|
|
|
273
289
|
const getIsMixMode = computed(() => {
|
|
274
290
|
return unref(getMenuMode) === MenuMode.INLINE && unref(getMenuType) === MenuType.MIX;
|
|
275
291
|
});
|
|
276
|
-
const
|
|
277
|
-
const
|
|
292
|
+
const getIsMixSidebar = computed(() => unref(getMenuType) === MenuType.MIX_SIDEBAR);
|
|
293
|
+
const getMenuWidth = computed(() => {
|
|
294
|
+
if (unref(getIsMixMode)) {
|
|
295
|
+
return Number(getMenuConf.menuWidth) - 40;
|
|
296
|
+
} else if (unref(getIsMixSidebar)) {
|
|
297
|
+
return Number(getMenuConf.menuWidth) - 10;
|
|
298
|
+
} else {
|
|
299
|
+
return Number(getMenuConf.menuWidth);
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
const getMixSideTrigger = computed(() => getMenuConf.mixSideTrigger);
|
|
303
|
+
const getLogoWidth = computed(() => unref(getIsMixSidebar) ? "80px" : getMenuConf.menuWidth);
|
|
278
304
|
const getMenuType = computed(() => getMenuConf.type);
|
|
279
305
|
const getIsTopMenu = computed(() => unref(getMenuType) === MenuType.TOP_MENU);
|
|
280
306
|
const getMenuMode = computed(() => getMenuConf.mode);
|
|
@@ -316,7 +342,9 @@ function useMenu() {
|
|
|
316
342
|
getRealWidth,
|
|
317
343
|
getCalcContentWidth,
|
|
318
344
|
getIsMixMode,
|
|
345
|
+
getIsMixSidebar,
|
|
319
346
|
getCanDrag,
|
|
347
|
+
getMixSideTrigger,
|
|
320
348
|
toggleCollapsed,
|
|
321
349
|
setThemeStore
|
|
322
350
|
};
|
|
@@ -325,12 +353,14 @@ function useMultipleTab() {
|
|
|
325
353
|
const { getRouteReuseConf } = useThemeStore();
|
|
326
354
|
const getShowMultipleTab = computed(() => getRouteReuseConf.show);
|
|
327
355
|
const getShowQuick = computed(() => getRouteReuseConf.showQuick);
|
|
356
|
+
const getMultipleTabPosIsTop = computed(() => getRouteReuseConf.position === "top");
|
|
328
357
|
const getShowRedo = computed(() => getRouteReuseConf.showRedo);
|
|
329
358
|
const getCanCache = computed(() => getRouteReuseConf.cache);
|
|
330
359
|
const getCanDrag = computed(() => getRouteReuseConf.canDrag);
|
|
331
360
|
return {
|
|
332
361
|
getShowMultipleTab,
|
|
333
362
|
getShowQuick,
|
|
363
|
+
getMultipleTabPosIsTop,
|
|
334
364
|
getShowRedo,
|
|
335
365
|
getCanCache,
|
|
336
366
|
getCanDrag
|
|
@@ -349,12 +379,12 @@ function useHeader() {
|
|
|
349
379
|
getMenuMode,
|
|
350
380
|
getSplit,
|
|
351
381
|
getIsTopMenu,
|
|
352
|
-
|
|
382
|
+
getIsMixSidebar
|
|
353
383
|
} = useMenu();
|
|
354
|
-
const { getShowMultipleTab } = useMultipleTab();
|
|
384
|
+
const { getShowMultipleTab, getMultipleTabPosIsTop } = useMultipleTab();
|
|
355
385
|
const getHeaderTheme = computed(() => getHeaderConf.theme);
|
|
356
386
|
const getFixed = computed(() => getHeaderConf.fixed);
|
|
357
|
-
const getShowHeaderLogo = computed(() => unref(getShowLogo) && !unref(getIsSidebarType));
|
|
387
|
+
const getShowHeaderLogo = computed(() => unref(getShowLogo) && !unref(getIsSidebarType) && !unref(getIsMixSidebar));
|
|
358
388
|
const getShowSearch = computed(() => getHeaderConf.showSearch);
|
|
359
389
|
const getShowHeaderTrigger = computed(() => {
|
|
360
390
|
if (unref(getMenuType) === MenuType.TOP_MENU || !unref(getShowMenu) || unref(getMenuHidden)) {
|
|
@@ -372,19 +402,20 @@ function useHeader() {
|
|
|
372
402
|
const getShowLocale = computed(() => getHeaderConf.showLocaleSwitch);
|
|
373
403
|
const getShowSettingTheme = computed(() => getHeaderConf.showSettingTheme);
|
|
374
404
|
const getShowFullHeaderRef = computed(() => {
|
|
375
|
-
return !unref(getIsSidebarType) && !unref(getIsTopMenu);
|
|
405
|
+
return !unref(getIsSidebarType) && !unref(getIsMixSidebar) && !unref(getIsTopMenu);
|
|
376
406
|
});
|
|
377
407
|
const getHeaderHeight = computed(() => {
|
|
378
408
|
let height = 0;
|
|
379
409
|
height += HEADER_HEIGHT;
|
|
380
|
-
|
|
410
|
+
console.log(getMultipleTabPosIsTop);
|
|
411
|
+
if (unref(getShowMultipleTab) && !unref(getSplit) && !unref(getMultipleTabPosIsTop)) {
|
|
381
412
|
height += TABS_HEIGHT;
|
|
382
413
|
}
|
|
383
414
|
return height;
|
|
384
415
|
});
|
|
385
416
|
const getTabsHeight = computed(() => TABS_HEIGHT);
|
|
386
417
|
const getShowInsetHeaderRef = computed(() => {
|
|
387
|
-
return unref(getIsSidebarType) || unref(getIsTopMenu);
|
|
418
|
+
return unref(getIsSidebarType) || unref(getIsTopMenu) || unref(getIsMixSidebar);
|
|
388
419
|
});
|
|
389
420
|
const getShowBackToTop = computed(() => getHeaderConf.showBackToTop);
|
|
390
421
|
const getIsZH = computed(() => {
|
|
@@ -499,7 +530,7 @@ function useFormValue(props, key = "value", changeEvent = "change", emitData) {
|
|
|
499
530
|
const setState = (val) => {
|
|
500
531
|
innerState.value = val;
|
|
501
532
|
nextTick(() => {
|
|
502
|
-
emit?.(changeEvent, val, ...toRaw
|
|
533
|
+
emit?.(changeEvent, val, ...toRaw(unref(emitData)) || []);
|
|
503
534
|
});
|
|
504
535
|
};
|
|
505
536
|
watchEffect(() => {
|
|
@@ -514,7 +545,7 @@ function useFormValue(props, key = "value", changeEvent = "change", emitData) {
|
|
|
514
545
|
return;
|
|
515
546
|
innerState.value = value;
|
|
516
547
|
nextTick(() => {
|
|
517
|
-
emit?.(changeEvent, value, ...toRaw
|
|
548
|
+
emit?.(changeEvent, value, ...toRaw(unref(emitData)) || []);
|
|
518
549
|
});
|
|
519
550
|
}
|
|
520
551
|
});
|
|
@@ -1119,9 +1150,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1119
1150
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.buttonList, (button) => {
|
|
1120
1151
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
1121
1152
|
(button.show === void 0 ? true : button.show) ? withDirectives((openBlock(), createBlock(_component_AButton, {
|
|
1153
|
+
class: normalizeClass(["items-center", button.class]),
|
|
1122
1154
|
type: button.type,
|
|
1123
|
-
|
|
1124
|
-
loading: button.loading?.value,
|
|
1155
|
+
loading: button.loading,
|
|
1125
1156
|
disabled: button.disabled,
|
|
1126
1157
|
key: unref(key),
|
|
1127
1158
|
onClick: ($event) => handleBtnClick(button)
|
|
@@ -1132,7 +1163,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1132
1163
|
]) : createCommentVNode("", true)
|
|
1133
1164
|
]),
|
|
1134
1165
|
default: withCtx(() => [
|
|
1135
|
-
createTextVNode(" " + toDisplayString(unref(t)(button.
|
|
1166
|
+
createTextVNode(" " + toDisplayString(unref(t)(button.label)) + " ", 1),
|
|
1136
1167
|
button.postIcon ? withDirectives((openBlock(), createElementBlock("span", _hoisted_2, null, 512)), [
|
|
1137
1168
|
[_directive_icon, button.postIcon]
|
|
1138
1169
|
]) : createCommentVNode("", true)
|
|
@@ -1169,8 +1200,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1169
1200
|
const SEARCH_BTN_NAME = "UI.SEARCH";
|
|
1170
1201
|
const RESET_BTN_NAME = "UI.RESET";
|
|
1171
1202
|
const SEARCH_BTNS = [
|
|
1172
|
-
{
|
|
1173
|
-
{
|
|
1203
|
+
{ label: SEARCH_BTN_NAME, preIcon: "mdi:magnify", type: "primary" },
|
|
1204
|
+
{ label: RESET_BTN_NAME, preIcon: "mdi:refresh", type: "default" }
|
|
1174
1205
|
];
|
|
1175
1206
|
function useFormEvents({
|
|
1176
1207
|
emits,
|
|
@@ -1186,7 +1217,7 @@ function useFormEvents({
|
|
|
1186
1217
|
const formEl = unref(formElRef);
|
|
1187
1218
|
if (!formEl)
|
|
1188
1219
|
return {};
|
|
1189
|
-
return handleFormValues(toRaw
|
|
1220
|
+
return handleFormValues(toRaw(unref(formModel)));
|
|
1190
1221
|
}
|
|
1191
1222
|
function updateSchema(data) {
|
|
1192
1223
|
let updateItems = [];
|
|
@@ -1224,7 +1255,7 @@ function useFormEvents({
|
|
|
1224
1255
|
obj[name] = null;
|
|
1225
1256
|
if (!isNullAndUnDef(it.defaultValue))
|
|
1226
1257
|
return obj[name] = it.defaultValue;
|
|
1227
|
-
let props = isFunction(it.props) ? it.props(toRaw
|
|
1258
|
+
let props = isFunction(it.props) ? it.props(toRaw(unref(formModel))) : it.props;
|
|
1228
1259
|
if (!isNullAndUnDef(props?.defaultValue))
|
|
1229
1260
|
obj[name] = props.defaultValue;
|
|
1230
1261
|
});
|
|
@@ -1253,7 +1284,7 @@ function useFormEvents({
|
|
|
1253
1284
|
formModel[key] = isInput ? defaultValue.value[key] || "" : defaultValue.value[key];
|
|
1254
1285
|
});
|
|
1255
1286
|
nextTick(() => clearValidate());
|
|
1256
|
-
emits("reset", toRaw
|
|
1287
|
+
emits("reset", toRaw(formModel));
|
|
1257
1288
|
}
|
|
1258
1289
|
function removeFormByName(names) {
|
|
1259
1290
|
if (!names)
|
|
@@ -1456,23 +1487,29 @@ function useFormActions(opt) {
|
|
|
1456
1487
|
const { getProps, defaultValue, updateSchema, getFormValues, setFormValues } = opt;
|
|
1457
1488
|
const { appConf } = useAppStore();
|
|
1458
1489
|
function handleAdvanced(isAdvanced) {
|
|
1459
|
-
const {
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1490
|
+
const {
|
|
1491
|
+
schemas,
|
|
1492
|
+
minShowColumn = appConf.ui.form?.minShowColumn || 2,
|
|
1493
|
+
showAdvancedButton = true
|
|
1494
|
+
} = unref(getProps);
|
|
1495
|
+
let schema = [...schemas];
|
|
1496
|
+
if (showAdvancedButton) {
|
|
1497
|
+
schema = schemas.reduce((t, it, index) => {
|
|
1498
|
+
if (index > minShowColumn - 1)
|
|
1499
|
+
it.isAdvanced = isAdvanced;
|
|
1500
|
+
t.push(it);
|
|
1501
|
+
return t;
|
|
1502
|
+
}, []);
|
|
1503
|
+
}
|
|
1466
1504
|
updateSchema(schema);
|
|
1467
1505
|
}
|
|
1468
1506
|
function handleMethod(params) {
|
|
1469
1507
|
const { onSearch, onReset } = unref(getProps);
|
|
1470
1508
|
if (isBoolean(params)) {
|
|
1471
1509
|
handleAdvanced(params);
|
|
1472
|
-
} else if (params.
|
|
1473
|
-
console.log(getProps);
|
|
1510
|
+
} else if (params.label === SEARCH_BTN_NAME) {
|
|
1474
1511
|
onSearch(getFormValues());
|
|
1475
|
-
} else if (params.
|
|
1512
|
+
} else if (params.label === RESET_BTN_NAME) {
|
|
1476
1513
|
setFormValues(toRaw(defaultValue.value));
|
|
1477
1514
|
onReset(getFormValues());
|
|
1478
1515
|
} else {
|
|
@@ -1546,10 +1583,6 @@ const BasicProps = {
|
|
|
1546
1583
|
type: Boolean,
|
|
1547
1584
|
default: true
|
|
1548
1585
|
},
|
|
1549
|
-
alwaysShowLines: {
|
|
1550
|
-
type: Boolean,
|
|
1551
|
-
default: false
|
|
1552
|
-
},
|
|
1553
1586
|
minShowColumn: {
|
|
1554
1587
|
type: Number,
|
|
1555
1588
|
default: 2
|
|
@@ -1742,6 +1775,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1742
1775
|
setFormValues(null);
|
|
1743
1776
|
emits("register", formActionMethods);
|
|
1744
1777
|
initDefault();
|
|
1778
|
+
if (unref(getProps)?.registerInstance) {
|
|
1779
|
+
unref(getProps)?.registerInstance(formActionMethods);
|
|
1780
|
+
}
|
|
1745
1781
|
});
|
|
1746
1782
|
watch(
|
|
1747
1783
|
() => unref(getProps).onSearch,
|