@dt-frames/ui 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/container/index.d.ts +4 -3
- package/es/components/container/index.js +24 -22
- package/es/components/container/src/slot-container.d.ts +5 -3
- package/es/components/curd/index.js +304 -282
- package/es/components/curd/src/components/Curd.d.ts +126 -331
- package/es/components/curd/src/props.d.ts +14 -15
- package/es/components/drawer/index.d.ts +2 -4
- package/es/components/drawer/index.js +64 -63
- package/es/components/drawer/src/components/DrawerHeader.d.ts +1 -3
- package/es/components/drawer/src/index.d.ts +2 -4
- package/es/components/form/index.d.ts +196 -344
- package/es/components/form/index.js +140 -139
- package/es/components/form/src/components/FormButtons.d.ts +3 -3
- package/es/components/form/src/components/FormItem.d.ts +156 -304
- package/es/components/form/src/components/formIcon.d.ts +10 -10
- package/es/components/form/src/components/formInputUseDialog.d.ts +5 -5
- package/es/components/form/src/index.d.ts +186 -334
- package/es/components/form/src/props.d.ts +7 -7
- package/es/components/form/src/types/form.type.d.ts +1 -1
- package/es/components/icons/index.d.ts +496 -2
- package/es/components/icons/src/pick-icon.d.ts +5 -5
- package/es/components/modal/index.js +87 -86
- package/es/components/modal/src/components/Modal.d.ts +108 -215
- package/es/components/modal/src/index.d.ts +107 -214
- package/es/components/source/index.js +1 -0
- package/es/components/table/index.js +357 -788
- package/es/components/table/index.less +9 -0
- package/es/components/table/src/components/TableAction.d.ts +1 -1
- package/es/components/table/src/components/TableHeader.d.ts +109 -216
- package/es/components/table/src/components/TableRender.d.ts +13 -9
- package/es/components/table/src/components/tableSetting/Download.d.ts +107 -214
- package/es/components/table/src/components/tableSetting/DownloadCtrl.d.ts +107 -214
- package/es/components/table/src/components/tableSetting/index.d.ts +107 -214
- package/es/components/table/src/hooks/useDataSource.d.ts +1 -2
- package/es/components/table/src/hooks/usePagination.d.ts +3 -118
- package/es/components/table/src/index.d.ts +79 -425
- package/es/components/table/src/props.d.ts +11 -70
- package/es/components/table/src/types/actions.type.d.ts +1 -2
- package/es/components/table/src/types/table.type.d.ts +9 -3
- package/es/index.d.ts +1 -1
- package/es/index.js +2 -3240
- package/es/theme/index.js +406 -393
- package/es/theme/src/components/header/components/logo.d.ts +0 -1
- package/es/theme/src/components/header/components/notify.d.ts +4 -3
- package/es/theme/src/components/header/components/setting-theme.d.ts +2 -1
- package/es/theme/src/components/header/components/size.d.ts +5 -5
- package/es/theme/src/components/header/components/user-info.d.ts +4 -3
- package/es/theme/src/components/header/index.d.ts +13 -12
- package/es/theme/src/components/header/multiple-header.d.ts +26 -28
- package/es/theme/src/hooks/useMenu.d.ts +1 -1
- package/es/theme/src/index.d.ts +27 -28
- package/es/theme/src/types/theme.type.d.ts +1 -1
- package/package.json +3 -2
- package/vite.config.ts +0 -27
|
@@ -7711,7 +7711,7 @@ declare const DtDrawer: import('../../utils/withInstall').SFCWithInstall<import(
|
|
|
7711
7711
|
t?: string;
|
|
7712
7712
|
name: string;
|
|
7713
7713
|
color?: "" | "error" | "warning" | "success";
|
|
7714
|
-
type?: "
|
|
7714
|
+
type?: "default" | "link" | "dashed" | "text" | "primary" | "ghost";
|
|
7715
7715
|
class?: string;
|
|
7716
7716
|
disabled?: boolean;
|
|
7717
7717
|
show?: boolean;
|
|
@@ -7817,9 +7817,7 @@ declare const DtDrawer: import('../../utils/withInstall').SFCWithInstall<import(
|
|
|
7817
7817
|
title: {
|
|
7818
7818
|
type: import("vue").PropType<String | import("vue").ComputedRef<String>>;
|
|
7819
7819
|
};
|
|
7820
|
-
}, {
|
|
7821
|
-
props: any;
|
|
7822
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7820
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7823
7821
|
title: {
|
|
7824
7822
|
type: import("vue").PropType<String | import("vue").ComputedRef<String>>;
|
|
7825
7823
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Button, FormItem, Col, Drawer } from "ant-design-vue/es";
|
|
2
|
-
import
|
|
2
|
+
import "ant-design-vue/es/drawer/style";
|
|
3
|
+
import { defineComponent, getCurrentInstance as getCurrentInstance$1, ref as ref$1, inject, computed, onUnmounted, h as h$1, provide, onMounted, nextTick as nextTick$1, unref, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, createBlock, resolveDynamicComponent, withCtx, renderSlot, createVNode, mergeProps, toDisplayString, watch, resolveDirective, normalizeProps, Fragment, renderList, withDirectives, createCommentVNode, createTextVNode, useAttrs, createSlots, guardReactiveProps, reactive, toRaw as toRaw$1 } from "vue";
|
|
3
4
|
import { off, on, useI18n, dispatchResize, isFunction, DtCache, CacheKey, deepMerge, isUnDef, useApp, isObject, error } from "@dt-frames/core";
|
|
5
|
+
import "ant-design-vue/es/col/style";
|
|
4
6
|
import "ant-design-vue/es/form/style";
|
|
5
7
|
import "ant-design-vue/es/button/style";
|
|
6
|
-
const _default = "";
|
|
7
|
-
const index$1 = "";
|
|
8
8
|
const isServer = typeof window === "undefined";
|
|
9
9
|
const BAR_MAP = {
|
|
10
10
|
vertical: {
|
|
@@ -65,7 +65,7 @@ function removeResizeListener(element, fn) {
|
|
|
65
65
|
element.__ro__.disconnect();
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
const Bar = defineComponent
|
|
68
|
+
const Bar = defineComponent({
|
|
69
69
|
name: "Bar",
|
|
70
70
|
props: {
|
|
71
71
|
vertical: Boolean,
|
|
@@ -76,7 +76,7 @@ const Bar = defineComponent$1({
|
|
|
76
76
|
const instance = getCurrentInstance$1();
|
|
77
77
|
const thumb = ref$1();
|
|
78
78
|
const wrap = inject("scroll-bar-wrap", {});
|
|
79
|
-
const bar = computed
|
|
79
|
+
const bar = computed(() => {
|
|
80
80
|
return BAR_MAP[props.vertical ? "vertical" : "horizontal"];
|
|
81
81
|
});
|
|
82
82
|
const barStore = ref$1({});
|
|
@@ -121,7 +121,7 @@ const Bar = defineComponent$1({
|
|
|
121
121
|
off(document, "mousemove", mouseMoveDocumentHandler);
|
|
122
122
|
document.onselectstart = null;
|
|
123
123
|
}
|
|
124
|
-
onUnmounted
|
|
124
|
+
onUnmounted(() => {
|
|
125
125
|
off(document, "mouseup", mouseUpDocumentHandler);
|
|
126
126
|
});
|
|
127
127
|
return () => h$1(
|
|
@@ -144,7 +144,7 @@ const Bar = defineComponent$1({
|
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
146
|
const _hoisted_1$3 = { class: "scrollbar relative h-full overflow-hidden" };
|
|
147
|
-
const _sfc_main$6 = /* @__PURE__ */ defineComponent
|
|
147
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
148
148
|
__name: "scroll-bar",
|
|
149
149
|
props: {
|
|
150
150
|
wrapClass: {
|
|
@@ -168,12 +168,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent$1({
|
|
|
168
168
|
},
|
|
169
169
|
setup(__props) {
|
|
170
170
|
const props = __props;
|
|
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();
|
|
171
|
+
const sizeWidth = ref$1("0");
|
|
172
|
+
const sizeHeight = ref$1("0");
|
|
173
|
+
const moveX = ref$1(0);
|
|
174
|
+
const moveY = ref$1(0);
|
|
175
|
+
const wrap = ref$1();
|
|
176
|
+
const resize = ref$1();
|
|
177
177
|
provide("scroll-bar-wrap", wrap);
|
|
178
178
|
const style = computed(() => {
|
|
179
179
|
let rsStyle = {};
|
|
@@ -198,7 +198,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent$1({
|
|
|
198
198
|
sizeWidth.value = widthPercentage < 100 ? widthPercentage + "%" : "";
|
|
199
199
|
};
|
|
200
200
|
onMounted(() => {
|
|
201
|
-
nextTick(update);
|
|
201
|
+
nextTick$1(update);
|
|
202
202
|
if (!props.noresize) {
|
|
203
203
|
addResizeListener(unref(resize), update);
|
|
204
204
|
addResizeListener(unref(wrap), update);
|
|
@@ -218,7 +218,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent$1({
|
|
|
218
218
|
ref_key: "wrap",
|
|
219
219
|
ref: wrap,
|
|
220
220
|
class: normalizeClass([[__props.wrapClass, "scrollbar__wrap--hidden-default"], "h-full overflow-auto"]),
|
|
221
|
-
style: normalizeStyle(unref
|
|
221
|
+
style: normalizeStyle(unref(style)),
|
|
222
222
|
onScroll: handleScroll
|
|
223
223
|
}, [
|
|
224
224
|
(openBlock(), createBlock(resolveDynamicComponent(__props.tag), {
|
|
@@ -233,20 +233,20 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent$1({
|
|
|
233
233
|
_: 3
|
|
234
234
|
}, 8, ["class", "style"]))
|
|
235
235
|
], 38),
|
|
236
|
-
createVNode(unref
|
|
237
|
-
move:
|
|
238
|
-
size:
|
|
236
|
+
createVNode(unref(Bar), {
|
|
237
|
+
move: moveX.value,
|
|
238
|
+
size: sizeWidth.value
|
|
239
239
|
}, null, 8, ["move", "size"]),
|
|
240
|
-
createVNode(unref
|
|
240
|
+
createVNode(unref(Bar), {
|
|
241
241
|
vertical: "",
|
|
242
|
-
move:
|
|
243
|
-
size:
|
|
242
|
+
move: moveY.value,
|
|
243
|
+
size: sizeHeight.value
|
|
244
244
|
}, null, 8, ["move", "size"])
|
|
245
245
|
]);
|
|
246
246
|
};
|
|
247
247
|
}
|
|
248
248
|
});
|
|
249
|
-
const _sfc_main$5 = /* @__PURE__ */ defineComponent
|
|
249
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
250
250
|
__name: "scroll-container",
|
|
251
251
|
setup(__props) {
|
|
252
252
|
const scrollbarRef = ref(null);
|
|
@@ -263,8 +263,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent$1({
|
|
|
263
263
|
};
|
|
264
264
|
}
|
|
265
265
|
});
|
|
266
|
-
const _sfc_main$4 = defineComponent({
|
|
267
|
-
|
|
266
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
267
|
+
__name: "slot-container",
|
|
268
268
|
props: {
|
|
269
269
|
template: {
|
|
270
270
|
type: Function
|
|
@@ -273,9 +273,11 @@ const _sfc_main$4 = defineComponent({
|
|
|
273
273
|
type: Object
|
|
274
274
|
}
|
|
275
275
|
},
|
|
276
|
-
setup(
|
|
277
|
-
|
|
278
|
-
|
|
276
|
+
setup(__props) {
|
|
277
|
+
const props = __props;
|
|
278
|
+
const Container = h("div", [props.template(props.data)]);
|
|
279
|
+
return (_ctx, _cache) => {
|
|
280
|
+
return openBlock(), createBlock(unref(Container));
|
|
279
281
|
};
|
|
280
282
|
}
|
|
281
283
|
});
|
|
@@ -289,7 +291,7 @@ const DtScrollContainer = withInstall(_sfc_main$5);
|
|
|
289
291
|
withInstall(_sfc_main$4);
|
|
290
292
|
const _hoisted_1$2 = { class: "flex h-full items-center" };
|
|
291
293
|
const _hoisted_2$1 = { class: "pr-12" };
|
|
292
|
-
const _sfc_main$3 = /* @__PURE__ */ defineComponent
|
|
294
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
293
295
|
__name: "DrawerHeader",
|
|
294
296
|
props: {
|
|
295
297
|
title: {
|
|
@@ -307,7 +309,6 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent$1({
|
|
|
307
309
|
};
|
|
308
310
|
}
|
|
309
311
|
});
|
|
310
|
-
const index = "";
|
|
311
312
|
const _hoisted_1$1 = {
|
|
312
313
|
key: 0,
|
|
313
314
|
className: "preIcon pr-1"
|
|
@@ -321,7 +322,7 @@ const _hoisted_4 = /* @__PURE__ */ createElementVNode("i", { class: "text-2xl i
|
|
|
321
322
|
const _hoisted_5 = [
|
|
322
323
|
_hoisted_4
|
|
323
324
|
];
|
|
324
|
-
const _sfc_main$2 = /* @__PURE__ */ defineComponent
|
|
325
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
325
326
|
__name: "FormButtons",
|
|
326
327
|
props: {
|
|
327
328
|
mode: {
|
|
@@ -353,7 +354,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
|
|
|
353
354
|
setup(__props, { emit: emits }) {
|
|
354
355
|
const props = __props;
|
|
355
356
|
const { t } = useI18n();
|
|
356
|
-
const advancedRef = ref(props.isAdvanced);
|
|
357
|
+
const advancedRef = ref$1(props.isAdvanced);
|
|
357
358
|
let key = 0;
|
|
358
359
|
const showAdvanceRef = computed(() => {
|
|
359
360
|
return props.mode === "search" ? props.showAdvancedButton : false;
|
|
@@ -389,7 +390,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
|
|
|
389
390
|
}
|
|
390
391
|
watch(() => props.isAdvanced, (v) => {
|
|
391
392
|
if (v) {
|
|
392
|
-
nextTick(() => toggleAdvanced());
|
|
393
|
+
nextTick$1(() => toggleAdvanced());
|
|
393
394
|
}
|
|
394
395
|
}, {
|
|
395
396
|
immediate: true
|
|
@@ -408,7 +409,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
|
|
|
408
409
|
const _component_ACol = Col;
|
|
409
410
|
const _directive_icon = resolveDirective("icon");
|
|
410
411
|
const _directive_auth = resolveDirective("auth");
|
|
411
|
-
return __props.show ? (openBlock(), createBlock(_component_ACol, normalizeProps(mergeProps({ key: 0 }, unref
|
|
412
|
+
return __props.show ? (openBlock(), createBlock(_component_ACol, normalizeProps(mergeProps({ key: 0 }, unref(colOpt))), {
|
|
412
413
|
default: withCtx(() => [
|
|
413
414
|
createVNode(_component_AFormItem, {
|
|
414
415
|
class: "dt-form-btns",
|
|
@@ -422,9 +423,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
|
|
|
422
423
|
(button.show === void 0 ? true : button.show) ? withDirectives((openBlock(), createBlock(_component_AButton, {
|
|
423
424
|
type: button.type,
|
|
424
425
|
class: normalizeClass(button.class),
|
|
425
|
-
loading: button.loading,
|
|
426
|
+
loading: button.loading?.value,
|
|
426
427
|
disabled: button.disabled,
|
|
427
|
-
key: unref
|
|
428
|
+
key: unref(key),
|
|
428
429
|
onClick: ($event) => handleBtnClick(button)
|
|
429
430
|
}, {
|
|
430
431
|
icon: withCtx(() => [
|
|
@@ -433,7 +434,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
|
|
|
433
434
|
]) : createCommentVNode("", true)
|
|
434
435
|
]),
|
|
435
436
|
default: withCtx(() => [
|
|
436
|
-
createTextVNode(" " + toDisplayString(unref
|
|
437
|
+
createTextVNode(" " + toDisplayString(unref(t)(button.name)) + " ", 1),
|
|
437
438
|
button.postIcon ? withDirectives((openBlock(), createElementBlock("span", _hoisted_2, null, 512)), [
|
|
438
439
|
[_directive_icon, button.postIcon]
|
|
439
440
|
]) : createCommentVNode("", true)
|
|
@@ -444,16 +445,16 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
|
|
|
444
445
|
]) : createCommentVNode("", true)
|
|
445
446
|
], 64);
|
|
446
447
|
}), 256)),
|
|
447
|
-
unref
|
|
448
|
+
unref(showAdvanceRef) ? (openBlock(), createBlock(_component_AButton, {
|
|
448
449
|
key: 0,
|
|
449
450
|
type: "link",
|
|
450
451
|
class: "advanced",
|
|
451
452
|
onClick: toggleAdvanced
|
|
452
453
|
}, {
|
|
453
454
|
default: withCtx(() => [
|
|
454
|
-
createElementVNode("span", _hoisted_3, toDisplayString(
|
|
455
|
+
createElementVNode("span", _hoisted_3, toDisplayString(advancedRef.value ? unref(t)("UI.ADVANCED") : unref(t)("UI.EXPAND")), 1),
|
|
455
456
|
createElementVNode("span", {
|
|
456
|
-
class: normalizeClass(unref
|
|
457
|
+
class: normalizeClass(unref(getAdvanceClass))
|
|
457
458
|
}, _hoisted_5, 2)
|
|
458
459
|
]),
|
|
459
460
|
_: 1
|
|
@@ -471,7 +472,7 @@ const _hoisted_1 = {
|
|
|
471
472
|
class: "flex items-center",
|
|
472
473
|
style: { gap: "10px" }
|
|
473
474
|
};
|
|
474
|
-
const _sfc_main$1 = /* @__PURE__ */ defineComponent
|
|
475
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
475
476
|
__name: "DrawerFooter",
|
|
476
477
|
props: {
|
|
477
478
|
buttons: Object,
|
|
@@ -487,7 +488,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
|
|
|
487
488
|
setup(__props, { emit: emits }) {
|
|
488
489
|
const props = __props;
|
|
489
490
|
const { t } = useI18n("UI");
|
|
490
|
-
const buttonList = computed
|
|
491
|
+
const buttonList = computed(() => {
|
|
491
492
|
if (props.buttons && props.buttons.length)
|
|
492
493
|
return props.buttons;
|
|
493
494
|
let buttonActions = [
|
|
@@ -515,7 +516,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
|
|
|
515
516
|
renderSlot(_ctx.$slots, "appendFooter"),
|
|
516
517
|
createVNode(_sfc_main$2, {
|
|
517
518
|
mode: "dialog",
|
|
518
|
-
buttonList: unref
|
|
519
|
+
buttonList: unref(buttonList),
|
|
519
520
|
onHandleMethod: _cache[0] || (_cache[0] = ($event) => handleMethod($event))
|
|
520
521
|
}, null, 8, ["buttonList"])
|
|
521
522
|
]);
|
|
@@ -564,16 +565,16 @@ const basicProps = {
|
|
|
564
565
|
},
|
|
565
566
|
afterClose: Function
|
|
566
567
|
};
|
|
567
|
-
const _sfc_main = /* @__PURE__ */ defineComponent
|
|
568
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
568
569
|
__name: "index",
|
|
569
570
|
props: basicProps,
|
|
570
571
|
emits: ["cancel", "save", "register", "visible-change"],
|
|
571
572
|
setup(__props, { emit: emits }) {
|
|
572
573
|
const props = __props;
|
|
573
574
|
const attrs = useAttrs();
|
|
574
|
-
const propsRef = ref(null);
|
|
575
|
+
const propsRef = ref$1(null);
|
|
575
576
|
const auths = DtCache.getLocal(CacheKey.AUTHS);
|
|
576
|
-
const visibleRef = ref(false);
|
|
577
|
+
const visibleRef = ref$1(false);
|
|
577
578
|
const getMergeProps = computed(() => {
|
|
578
579
|
return deepMerge(toRaw(props), unref(propsRef));
|
|
579
580
|
});
|
|
@@ -658,14 +659,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent$1({
|
|
|
658
659
|
return openBlock(), createBlock(_component_ADrawer, mergeProps({
|
|
659
660
|
class: "dt-drawer",
|
|
660
661
|
onClose: handleCancel
|
|
661
|
-
}, unref
|
|
662
|
+
}, unref(getProps), {
|
|
662
663
|
footerStyle: {
|
|
663
|
-
padding: unref
|
|
664
|
+
padding: unref(getshowFooter) ? "10px 16px" : "0"
|
|
664
665
|
}
|
|
665
666
|
}), createSlots({
|
|
666
667
|
default: withCtx(() => [
|
|
667
|
-
createVNode(unref
|
|
668
|
-
style: normalizeStyle(unref
|
|
668
|
+
createVNode(unref(DtScrollContainer), {
|
|
669
|
+
style: normalizeStyle(unref(getScrollContentStyle))
|
|
669
670
|
}, {
|
|
670
671
|
default: withCtx(() => [
|
|
671
672
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -679,7 +680,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent$1({
|
|
|
679
680
|
name: "title",
|
|
680
681
|
fn: withCtx(() => [
|
|
681
682
|
createVNode(_sfc_main$3, {
|
|
682
|
-
title: unref
|
|
683
|
+
title: unref(getProps).title
|
|
683
684
|
}, {
|
|
684
685
|
titleToolbar: withCtx(() => [
|
|
685
686
|
renderSlot(_ctx.$slots, "titleToolbar")
|
|
@@ -695,15 +696,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent$1({
|
|
|
695
696
|
]),
|
|
696
697
|
key: "1"
|
|
697
698
|
},
|
|
698
|
-
unref
|
|
699
|
+
unref(getshowFooter) ? {
|
|
699
700
|
name: "footer",
|
|
700
701
|
fn: withCtx(() => [
|
|
701
702
|
createVNode(_sfc_main$1, {
|
|
702
|
-
buttons:
|
|
703
|
-
showSave: unref
|
|
704
|
-
showCancel: unref
|
|
705
|
-
okText: unref
|
|
706
|
-
cancelText: unref
|
|
703
|
+
buttons: propsRef.value?.footer,
|
|
704
|
+
showSave: unref(getProps).showOkBtn,
|
|
705
|
+
showCancel: unref(getProps).showCancelBtn,
|
|
706
|
+
okText: unref(getProps).okText,
|
|
707
|
+
cancelText: unref(getProps).cancelText,
|
|
707
708
|
onHandleSave: handleSave,
|
|
708
709
|
onHandleCancel: handleCancel
|
|
709
710
|
}, createSlots({ _: 2 }, [
|
|
@@ -727,9 +728,9 @@ const orgDialogProp = reactive({});
|
|
|
727
728
|
const cbTransfer = reactive({});
|
|
728
729
|
const dataTransfer = reactive({});
|
|
729
730
|
function useDrawerOut() {
|
|
730
|
-
const drawer = ref(null);
|
|
731
|
-
const loaded = ref(false);
|
|
732
|
-
const uid = ref("");
|
|
731
|
+
const drawer = ref$1(null);
|
|
732
|
+
const loaded = ref$1(false);
|
|
733
|
+
const uid = ref$1("");
|
|
733
734
|
const { isProd } = useApp();
|
|
734
735
|
function register(drawerMethods, uuid) {
|
|
735
736
|
if (!getCurrentInstance()) {
|
|
@@ -764,7 +765,7 @@ function useDrawerOut() {
|
|
|
764
765
|
},
|
|
765
766
|
openDrawer: (params = null, afterClose) => {
|
|
766
767
|
const id = unref(uid);
|
|
767
|
-
dataTransfer[id] = isObject(params) ? { ...toRaw(params) } : params;
|
|
768
|
+
dataTransfer[id] = isObject(params) ? { ...toRaw$1(params) } : params;
|
|
768
769
|
getInstance()?.setDrawerProps({
|
|
769
770
|
defaultFullscreen: false,
|
|
770
771
|
...orgDialogProp[id],
|
|
@@ -783,9 +784,9 @@ function useDrawerOut() {
|
|
|
783
784
|
return [register, methods];
|
|
784
785
|
}
|
|
785
786
|
function useDrawer(props, setModalData) {
|
|
786
|
-
const drawerInstanceRef = ref(null);
|
|
787
|
+
const drawerInstanceRef = ref$1(null);
|
|
787
788
|
const currentInstance = getCurrentInstance();
|
|
788
|
-
const uidRef = ref("");
|
|
789
|
+
const uidRef = ref$1("");
|
|
789
790
|
const { isProd } = useApp();
|
|
790
791
|
const getInstance = () => {
|
|
791
792
|
const instance = unref(drawerInstanceRef);
|
|
@@ -801,7 +802,7 @@ function useDrawer(props, setModalData) {
|
|
|
801
802
|
uidRef.value = uuid;
|
|
802
803
|
drawerInstanceRef.value = drawerInstance;
|
|
803
804
|
currentInstance?.emit("register", drawerInstance, uuid);
|
|
804
|
-
orgDialogProp[uuid] = toRaw(props);
|
|
805
|
+
orgDialogProp[uuid] = toRaw$1(props);
|
|
805
806
|
drawerInstance.setDrawerProps(props);
|
|
806
807
|
}
|
|
807
808
|
watchEffect(() => {
|
|
@@ -3,9 +3,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
3
3
|
title: {
|
|
4
4
|
type: PropType<String | ComputedRef<String>>;
|
|
5
5
|
};
|
|
6
|
-
}, {
|
|
7
|
-
props: any;
|
|
8
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
7
|
title: {
|
|
10
8
|
type: PropType<String | ComputedRef<String>>;
|
|
11
9
|
};
|
|
@@ -7713,7 +7713,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
7713
7713
|
t?: string;
|
|
7714
7714
|
name: string;
|
|
7715
7715
|
color?: "" | "error" | "warning" | "success";
|
|
7716
|
-
type?: "
|
|
7716
|
+
type?: "default" | "link" | "dashed" | "text" | "primary" | "ghost";
|
|
7717
7717
|
class?: string;
|
|
7718
7718
|
disabled?: boolean;
|
|
7719
7719
|
show?: boolean;
|
|
@@ -7819,9 +7819,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
7819
7819
|
title: {
|
|
7820
7820
|
type: import("vue").PropType<String | import("vue").ComputedRef<String>>;
|
|
7821
7821
|
};
|
|
7822
|
-
}, {
|
|
7823
|
-
props: any;
|
|
7824
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7822
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7825
7823
|
title: {
|
|
7826
7824
|
type: import("vue").PropType<String | import("vue").ComputedRef<String>>;
|
|
7827
7825
|
};
|