@dt-frames/ui 2.0.2 → 2.0.4
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/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 +261 -229
- 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 +3 -5
- package/es/components/drawer/index.js +55 -54
- package/es/components/drawer/src/components/DrawerHeader.d.ts +1 -3
- package/es/components/drawer/src/index.d.ts +4 -7
- package/es/components/form/index.d.ts +213 -361
- package/es/components/form/index.js +210 -163
- package/es/components/form/index.less +206 -8
- package/es/components/form/src/components/FormButtons.d.ts +3 -3
- package/es/components/form/src/components/FormItem.d.ts +152 -304
- package/es/components/form/src/components/formIcon.d.ts +4 -4
- package/es/components/form/src/components/formInputUseDialog.d.ts +3 -3
- package/es/components/form/src/enums/index.d.ts +1 -1
- package/es/components/form/src/index.d.ts +199 -347
- package/es/components/form/src/props.d.ts +8 -12
- package/es/components/form/src/types/form.type.d.ts +2 -2
- package/es/components/icons/index.d.ts +496 -2
- package/es/components/icons/index.less +5 -0
- package/es/components/icons/src/pick-icon.d.ts +5 -5
- package/es/components/modal/index.js +76 -74
- package/es/components/modal/index.less +10 -0
- package/es/components/modal/src/components/Modal.d.ts +108 -215
- package/es/components/modal/src/components/ModalFooter.d.ts +3 -3
- package/es/components/modal/src/index.d.ts +116 -223
- package/es/components/source/hooks/useSource.d.ts +14 -0
- package/es/components/source/index.js +66 -27
- package/es/components/source/types/source.type.d.ts +4 -8
- package/es/components/table/index.js +452 -820
- package/es/components/table/index.less +50 -14
- 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 +99 -435
- package/es/components/table/src/props.d.ts +19 -74
- package/es/components/table/src/types/actions.type.d.ts +1 -2
- package/es/components/table/src/types/table.type.d.ts +13 -8
- package/es/index.d.ts +1 -1
- package/es/index.js +2 -3240
- package/es/theme/index.js +688 -453
- package/es/theme/index.less +150 -0
- 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/user-info.d.ts +4 -3
- package/es/theme/src/components/header/helper/menu-tree.d.ts +1 -0
- package/es/theme/src/components/header/index.d.ts +8 -7
- package/es/theme/src/components/header/multiple-header.d.ts +22 -25
- 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 +147 -3
- package/es/theme/src/components/sider/mix-sider.d.ts +146 -0
- package/es/theme/src/enums/theme.enum.d.ts +2 -1
- package/es/theme/src/hooks/useMenu.d.ts +4 -2
- package/es/theme/src/index.d.ts +166 -23
- package/es/theme/src/stores/theme.store.d.ts +3 -0
- package/es/theme/src/types/theme.type.d.ts +2 -1
- package/package.json +3 -4
- package/vite.config.ts +0 -27
|
@@ -7709,9 +7709,9 @@ 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
|
-
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, 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";
|
|
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,
|
|
@@ -73,14 +73,14 @@ const Bar = defineComponent$1({
|
|
|
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
|
-
const bar = computed
|
|
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;
|
|
@@ -121,16 +121,16 @@ 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
|
-
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,
|
|
@@ -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: {
|
|
@@ -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: {
|
|
@@ -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",
|
|
@@ -424,7 +425,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
|
|
|
424
425
|
class: normalizeClass(button.class),
|
|
425
426
|
loading: button.loading,
|
|
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.label)) + " ", 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,12 +488,12 @@ 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 = [
|
|
494
|
-
{ t: "\u4FDD\u5B58",
|
|
495
|
-
{ 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" }
|
|
496
497
|
];
|
|
497
498
|
if (!props.showSave)
|
|
498
499
|
buttonActions = buttonActions.filter((btn) => btn.flag !== "OK");
|
|
@@ -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,7 +565,7 @@ 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"],
|
|
@@ -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 }, [
|
|
@@ -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
|
};
|
|
@@ -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,9 +7710,9 @@ 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
|
-
type?: "
|
|
7715
|
+
type?: "default" | "link" | "dashed" | "text" | "primary" | "ghost";
|
|
7717
7716
|
class?: string;
|
|
7718
7717
|
disabled?: boolean;
|
|
7719
7718
|
show?: boolean;
|
|
@@ -7819,9 +7818,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
7819
7818
|
title: {
|
|
7820
7819
|
type: import("vue").PropType<String | import("vue").ComputedRef<String>>;
|
|
7821
7820
|
};
|
|
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<{
|
|
7821
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7825
7822
|
title: {
|
|
7826
7823
|
type: import("vue").PropType<String | import("vue").ComputedRef<String>>;
|
|
7827
7824
|
};
|
|
@@ -7897,7 +7894,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
7897
7894
|
key: number;
|
|
7898
7895
|
showAdvanceRef: import("vue").ComputedRef<boolean>;
|
|
7899
7896
|
colOpt: import("vue").ComputedRef<{
|
|
7900
|
-
style: Recordable<any>;
|
|
7897
|
+
style: import("@dt-frames/core").Recordable<any>;
|
|
7901
7898
|
}>;
|
|
7902
7899
|
getAdvanceClass: import("vue").ComputedRef<(string | {
|
|
7903
7900
|
'basic-arrow--active': boolean;
|