yuang-framework-ui-pc 1.1.15 → 1.1.17
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/core-components.js +3 -4
- package/es/ele-dialog/index.d.ts +2 -2
- package/es/ele-dialog/index.js +15 -15
- package/es/ele-dialog/props.d.ts +3 -3
- package/es/ele-dialog/props.js +4 -4
- package/es/ele-dialog/util.d.ts +8 -8
- package/es/ele-dialog/util.js +93 -101
- package/es/style/plus.scss +2 -0
- package/es/style/themes/default.scss +26 -0
- package/es/yu-slider-captcha-dialog/SliderCaptcha.d.ts +67 -0
- package/es/yu-slider-captcha-dialog/SliderCaptcha.js +528 -0
- package/es/yu-slider-captcha-dialog/index.d.ts +14 -0
- package/es/yu-slider-captcha-dialog/index.js +75 -0
- package/es/yu-slider-captcha-dialog/style.css +175 -0
- package/lib/core-components.cjs +53 -54
- package/lib/ele-dialog/index.cjs +13 -13
- package/lib/ele-dialog/index.d.ts +2 -2
- package/lib/ele-dialog/props.cjs +4 -4
- package/lib/ele-dialog/props.d.ts +3 -3
- package/lib/ele-dialog/util.cjs +93 -101
- package/lib/ele-dialog/util.d.ts +8 -8
- package/lib/style/plus.scss +2 -0
- package/lib/style/themes/default.scss +26 -0
- package/lib/yu-slider-captcha-dialog/SliderCaptcha.cjs +527 -0
- package/lib/yu-slider-captcha-dialog/SliderCaptcha.d.ts +67 -0
- package/lib/yu-slider-captcha-dialog/index.cjs +74 -0
- package/lib/yu-slider-captcha-dialog/index.d.ts +14 -0
- package/lib/yu-slider-captcha-dialog/style.css +175 -0
- package/package.json +2 -2
- package/typings/global.d.ts +0 -1
- package/es/ele-modal/index.d.ts +0 -245
- package/es/ele-modal/index.js +0 -342
- package/es/ele-modal/props.d.ts +0 -135
- package/es/ele-modal/props.js +0 -71
- package/es/ele-modal/style/css-var.scss +0 -8
- package/es/ele-modal/style/index.d.ts +0 -1
- package/es/ele-modal/style/index.js +0 -3
- package/es/ele-modal/style/index.scss +0 -259
- package/es/ele-modal/types.d.ts +0 -43
- package/es/ele-modal/util.d.ts +0 -52
- package/es/ele-modal/util.js +0 -301
- package/lib/ele-modal/index.cjs +0 -341
- package/lib/ele-modal/index.d.ts +0 -245
- package/lib/ele-modal/props.cjs +0 -71
- package/lib/ele-modal/props.d.ts +0 -135
- package/lib/ele-modal/style/css-var.scss +0 -8
- package/lib/ele-modal/style/index.cjs +0 -4
- package/lib/ele-modal/style/index.d.ts +0 -1
- package/lib/ele-modal/style/index.scss +0 -259
- package/lib/ele-modal/types.d.ts +0 -43
- package/lib/ele-modal/util.cjs +0 -301
- package/lib/ele-modal/util.d.ts +0 -52
package/es/ele-modal/index.js
DELETED
|
@@ -1,342 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, onMounted, onActivated, onDeactivated, nextTick, resolveComponent, openBlock, createBlock, Teleport, createVNode, mergeProps, createSlots, withCtx, createElementVNode, normalizeStyle, renderSlot, createTextVNode, toDisplayString, createElementBlock, withModifiers, createCommentVNode, resolveDynamicComponent, normalizeClass } from "vue";
|
|
2
|
-
import { ElDialog, ElIcon } from "element-plus";
|
|
3
|
-
import { CloseOutlined, CompressOutlined, ExpandOutlined, ResizeOutlined } from "../icons";
|
|
4
|
-
import ReceiverView from "../ele-config-provider/components/receiver-view";
|
|
5
|
-
import { useLayoutState, useResponsive } from "../ele-pro-layout/util";
|
|
6
|
-
import { getDialogContainer, useModalEvent, wrapperClass, closedClass } from "./util";
|
|
7
|
-
import { modalProps, modalEmits } from "./props";
|
|
8
|
-
const _sfc_main = defineComponent({
|
|
9
|
-
name: "EleModal",
|
|
10
|
-
components: {
|
|
11
|
-
ElDialog,
|
|
12
|
-
ElIcon,
|
|
13
|
-
CloseOutlined,
|
|
14
|
-
CompressOutlined,
|
|
15
|
-
ExpandOutlined,
|
|
16
|
-
ResizeOutlined,
|
|
17
|
-
ReceiverView
|
|
18
|
-
},
|
|
19
|
-
inheritAttrs: false,
|
|
20
|
-
props: modalProps,
|
|
21
|
-
emits: modalEmits,
|
|
22
|
-
setup(props, { emit }) {
|
|
23
|
-
const layoutState = useLayoutState();
|
|
24
|
-
const isResponsive = useResponsive(props);
|
|
25
|
-
const dialogRef = ref(null);
|
|
26
|
-
const isFullscreen = ref(props.fullscreen ?? false);
|
|
27
|
-
const isActivated = ref(true);
|
|
28
|
-
const dialogClass = computed(() => {
|
|
29
|
-
const classes = [wrapperClass];
|
|
30
|
-
if (props.responsive ?? isResponsive.value ?? true) {
|
|
31
|
-
classes.push("ele-dialog-responsive");
|
|
32
|
-
}
|
|
33
|
-
if (props.alignCenter || props.position === "center") {
|
|
34
|
-
classes.push("ele-dialog-center");
|
|
35
|
-
} else if (props.position === "top") {
|
|
36
|
-
classes.push("ele-dialog-top");
|
|
37
|
-
} else if (props.position === "bottom") {
|
|
38
|
-
classes.push("ele-dialog-bottom");
|
|
39
|
-
} else if (props.position === "left") {
|
|
40
|
-
classes.push("ele-dialog-left");
|
|
41
|
-
} else if (props.position === "right") {
|
|
42
|
-
classes.push("ele-dialog-right");
|
|
43
|
-
} else if (props.position === "leftTop") {
|
|
44
|
-
classes.push("ele-dialog-left-top");
|
|
45
|
-
} else if (props.position === "leftBottom") {
|
|
46
|
-
classes.push("ele-dialog-left-bottom");
|
|
47
|
-
} else if (props.position === "rightTop") {
|
|
48
|
-
classes.push("ele-dialog-right-top");
|
|
49
|
-
} else if (props.position === "rightBottom") {
|
|
50
|
-
classes.push("ele-dialog-right-bottom");
|
|
51
|
-
}
|
|
52
|
-
if (props.draggable) {
|
|
53
|
-
classes.push("ele-dialog-movable");
|
|
54
|
-
}
|
|
55
|
-
if (props.resizable) {
|
|
56
|
-
classes.push("ele-dialog-resizable");
|
|
57
|
-
}
|
|
58
|
-
if (props.multiple) {
|
|
59
|
-
classes.push("ele-dialog-multiple");
|
|
60
|
-
}
|
|
61
|
-
if (isFullscreen.value) {
|
|
62
|
-
classes.push("ele-dialog-fullscreen");
|
|
63
|
-
}
|
|
64
|
-
if (!props.modelValue) {
|
|
65
|
-
classes.push(closedClass);
|
|
66
|
-
}
|
|
67
|
-
if (!isActivated.value && props.modelValue) {
|
|
68
|
-
classes.push("ele-dialog-hide");
|
|
69
|
-
}
|
|
70
|
-
if (props.inner) {
|
|
71
|
-
classes.push("ele-dialog-inner");
|
|
72
|
-
}
|
|
73
|
-
if (props.modalClass) {
|
|
74
|
-
classes.push(props.modalClass);
|
|
75
|
-
}
|
|
76
|
-
return classes.join(" ");
|
|
77
|
-
});
|
|
78
|
-
const teleportTo = computed(() => {
|
|
79
|
-
return getDialogContainer(
|
|
80
|
-
props.inner,
|
|
81
|
-
props.multiple,
|
|
82
|
-
props.appendTo,
|
|
83
|
-
layoutState.modalsEl
|
|
84
|
-
);
|
|
85
|
-
});
|
|
86
|
-
const teleportDisabled = computed(() => {
|
|
87
|
-
const appendTo = props.appendTo || "body";
|
|
88
|
-
const disabled = appendTo === "body" ? !props.appendToBody : false;
|
|
89
|
-
return props.multiple || props.inner ? false : disabled;
|
|
90
|
-
});
|
|
91
|
-
const {
|
|
92
|
-
handleHeaderMousedown,
|
|
93
|
-
handleHeaderTouchstart,
|
|
94
|
-
handleResizeMousedown,
|
|
95
|
-
handleResizeTouchstart,
|
|
96
|
-
bindAutoTopEvent,
|
|
97
|
-
unbindAutoTopEvent,
|
|
98
|
-
topModal,
|
|
99
|
-
setInitPosition,
|
|
100
|
-
resetModalStyle
|
|
101
|
-
} = useModalEvent(dialogRef, props, isFullscreen);
|
|
102
|
-
const updateModelValue = (modelValue) => {
|
|
103
|
-
emit("update:modelValue", modelValue);
|
|
104
|
-
};
|
|
105
|
-
const toggleFullscreen = (fullscreen) => {
|
|
106
|
-
isFullscreen.value = fullscreen ?? !isFullscreen.value;
|
|
107
|
-
nextTick(() => {
|
|
108
|
-
topModal();
|
|
109
|
-
});
|
|
110
|
-
emit("update:fullscreen", isFullscreen.value);
|
|
111
|
-
};
|
|
112
|
-
const handleOpen = () => {
|
|
113
|
-
if (props.resetOnClose || props.destroyOnClose) {
|
|
114
|
-
isFullscreen.value = props.fullscreen ?? false;
|
|
115
|
-
}
|
|
116
|
-
nextTick(() => {
|
|
117
|
-
if (props.resetOnClose) {
|
|
118
|
-
resetModalStyle();
|
|
119
|
-
} else {
|
|
120
|
-
setInitPosition();
|
|
121
|
-
}
|
|
122
|
-
topModal();
|
|
123
|
-
});
|
|
124
|
-
emit("open");
|
|
125
|
-
};
|
|
126
|
-
const handleOpened = () => {
|
|
127
|
-
bindAutoTopEvent();
|
|
128
|
-
emit("opened");
|
|
129
|
-
};
|
|
130
|
-
const handleClose = () => {
|
|
131
|
-
unbindAutoTopEvent();
|
|
132
|
-
emit("close");
|
|
133
|
-
};
|
|
134
|
-
const handleClosed = () => {
|
|
135
|
-
emit("closed");
|
|
136
|
-
};
|
|
137
|
-
const handleOpenAutoFocus = () => {
|
|
138
|
-
emit("openAutoFocus");
|
|
139
|
-
};
|
|
140
|
-
const handleCloseAutoFocus = () => {
|
|
141
|
-
emit("closeAutoFocus");
|
|
142
|
-
};
|
|
143
|
-
watch(
|
|
144
|
-
() => props.fullscreen,
|
|
145
|
-
(fullscreen) => {
|
|
146
|
-
isFullscreen.value = fullscreen ?? false;
|
|
147
|
-
}
|
|
148
|
-
);
|
|
149
|
-
onMounted(() => {
|
|
150
|
-
if (props.modelValue) {
|
|
151
|
-
setInitPosition();
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
onActivated(() => {
|
|
155
|
-
isActivated.value = true;
|
|
156
|
-
});
|
|
157
|
-
onDeactivated(() => {
|
|
158
|
-
isActivated.value = false;
|
|
159
|
-
});
|
|
160
|
-
return {
|
|
161
|
-
dialogRef,
|
|
162
|
-
isFullscreen,
|
|
163
|
-
dialogClass,
|
|
164
|
-
teleportTo,
|
|
165
|
-
teleportDisabled,
|
|
166
|
-
handleHeaderMousedown,
|
|
167
|
-
handleHeaderTouchstart,
|
|
168
|
-
handleResizeMousedown,
|
|
169
|
-
handleResizeTouchstart,
|
|
170
|
-
updateModelValue,
|
|
171
|
-
toggleFullscreen,
|
|
172
|
-
handleOpen,
|
|
173
|
-
handleOpened,
|
|
174
|
-
handleClose,
|
|
175
|
-
handleClosed,
|
|
176
|
-
handleOpenAutoFocus,
|
|
177
|
-
handleCloseAutoFocus
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
const _export_sfc = (sfc, props) => {
|
|
182
|
-
const target = sfc.__vccOpts || sfc;
|
|
183
|
-
for (const [key, val] of props) {
|
|
184
|
-
target[key] = val;
|
|
185
|
-
}
|
|
186
|
-
return target;
|
|
187
|
-
};
|
|
188
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
189
|
-
const _component_CompressOutlined = resolveComponent("CompressOutlined");
|
|
190
|
-
const _component_ExpandOutlined = resolveComponent("ExpandOutlined");
|
|
191
|
-
const _component_ElIcon = resolveComponent("ElIcon");
|
|
192
|
-
const _component_CloseOutlined = resolveComponent("CloseOutlined");
|
|
193
|
-
const _component_ResizeOutlined = resolveComponent("ResizeOutlined");
|
|
194
|
-
const _component_ReceiverView = resolveComponent("ReceiverView");
|
|
195
|
-
const _component_ElDialog = resolveComponent("ElDialog");
|
|
196
|
-
return openBlock(), createBlock(Teleport, {
|
|
197
|
-
to: _ctx.teleportTo,
|
|
198
|
-
disabled: _ctx.teleportDisabled
|
|
199
|
-
}, [
|
|
200
|
-
createVNode(_component_ElDialog, mergeProps(_ctx.$attrs, {
|
|
201
|
-
ref: "dialogRef",
|
|
202
|
-
modelValue: _ctx.modelValue,
|
|
203
|
-
title: _ctx.title,
|
|
204
|
-
width: _ctx.width,
|
|
205
|
-
fullscreen: false,
|
|
206
|
-
modal: _ctx.multiple ? false : _ctx.modal,
|
|
207
|
-
modalClass: _ctx.dialogClass,
|
|
208
|
-
appendToBody: false,
|
|
209
|
-
lockScroll: _ctx.inner || _ctx.multiple ? false : _ctx.lockScroll,
|
|
210
|
-
openDelay: _ctx.openDelay,
|
|
211
|
-
closeDelay: _ctx.closeDelay,
|
|
212
|
-
closeOnClickModal: _ctx.closeOnClickModal,
|
|
213
|
-
closeOnPressEscape: _ctx.closeOnPressEscape,
|
|
214
|
-
showClose: false,
|
|
215
|
-
beforeClose: _ctx.beforeClose,
|
|
216
|
-
draggable: false,
|
|
217
|
-
overflow: false,
|
|
218
|
-
center: _ctx.center,
|
|
219
|
-
alignCenter: false,
|
|
220
|
-
destroyOnClose: _ctx.destroyOnClose,
|
|
221
|
-
zIndex: _ctx.zIndex,
|
|
222
|
-
headerAriaLevel: _ctx.headerAriaLevel,
|
|
223
|
-
"onUpdate:modelValue": _ctx.updateModelValue,
|
|
224
|
-
onOpen: _ctx.handleOpen,
|
|
225
|
-
onOpened: _ctx.handleOpened,
|
|
226
|
-
onClose: _ctx.handleClose,
|
|
227
|
-
onClosed: _ctx.handleClosed,
|
|
228
|
-
onOpenAutoFocus: _ctx.handleOpenAutoFocus,
|
|
229
|
-
onCloseAutoFocus: _ctx.handleCloseAutoFocus
|
|
230
|
-
}), createSlots({
|
|
231
|
-
header: withCtx(({ close, titleId, titleClass }) => [
|
|
232
|
-
createElementVNode("div", {
|
|
233
|
-
style: normalizeStyle(_ctx.headerStyle),
|
|
234
|
-
class: "ele-dialog-header",
|
|
235
|
-
onMousedown: _cache[6] || (_cache[6] = (...args) => _ctx.handleHeaderMousedown && _ctx.handleHeaderMousedown(...args)),
|
|
236
|
-
onTouchstart: _cache[7] || (_cache[7] = (...args) => _ctx.handleHeaderTouchstart && _ctx.handleHeaderTouchstart(...args))
|
|
237
|
-
}, [
|
|
238
|
-
createElementVNode("div", {
|
|
239
|
-
class: "ele-dialog-title",
|
|
240
|
-
style: normalizeStyle(_ctx.titleStyle)
|
|
241
|
-
}, [
|
|
242
|
-
renderSlot(_ctx.$slots, "header", {
|
|
243
|
-
close,
|
|
244
|
-
titleId,
|
|
245
|
-
titleClass
|
|
246
|
-
}, () => [
|
|
247
|
-
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
248
|
-
])
|
|
249
|
-
], 4),
|
|
250
|
-
_ctx.maxable ? (openBlock(), createElementBlock("div", {
|
|
251
|
-
key: 0,
|
|
252
|
-
class: "ele-dialog-tool ele-dialog-tool-max",
|
|
253
|
-
style: normalizeStyle(_ctx.fullscreenBtnStyle),
|
|
254
|
-
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.toggleFullscreen()),
|
|
255
|
-
onMousedown: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
256
|
-
}, ["stop"])),
|
|
257
|
-
onTouchstart: _cache[2] || (_cache[2] = withModifiers(() => {
|
|
258
|
-
}, ["stop"]))
|
|
259
|
-
}, [
|
|
260
|
-
renderSlot(_ctx.$slots, "maxIcon", { fullscreen: _ctx.isFullscreen }, () => [
|
|
261
|
-
createVNode(_component_ElIcon, null, {
|
|
262
|
-
default: withCtx(() => [
|
|
263
|
-
_ctx.isFullscreen ? (openBlock(), createBlock(_component_CompressOutlined, { key: 0 })) : (openBlock(), createBlock(_component_ExpandOutlined, { key: 1 }))
|
|
264
|
-
]),
|
|
265
|
-
_: 1
|
|
266
|
-
})
|
|
267
|
-
])
|
|
268
|
-
], 36)) : createCommentVNode("", true),
|
|
269
|
-
_ctx.showClose ? (openBlock(), createElementBlock("div", {
|
|
270
|
-
key: 1,
|
|
271
|
-
class: "ele-dialog-tool",
|
|
272
|
-
style: normalizeStyle(_ctx.closeBtnStyle),
|
|
273
|
-
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.updateModelValue(false)),
|
|
274
|
-
onMousedown: _cache[4] || (_cache[4] = withModifiers(() => {
|
|
275
|
-
}, ["stop"])),
|
|
276
|
-
onTouchstart: _cache[5] || (_cache[5] = withModifiers(() => {
|
|
277
|
-
}, ["stop"]))
|
|
278
|
-
}, [
|
|
279
|
-
renderSlot(_ctx.$slots, "closeIcon", {}, () => [
|
|
280
|
-
createVNode(_component_ElIcon, null, {
|
|
281
|
-
default: withCtx(() => [
|
|
282
|
-
_ctx.closeIcon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.closeIcon), { key: 0 })) : (openBlock(), createBlock(_component_CloseOutlined, { key: 1 }))
|
|
283
|
-
]),
|
|
284
|
-
_: 1
|
|
285
|
-
})
|
|
286
|
-
])
|
|
287
|
-
], 36)) : createCommentVNode("", true)
|
|
288
|
-
], 36),
|
|
289
|
-
_ctx.resizable ? (openBlock(), createElementBlock("div", {
|
|
290
|
-
key: 0,
|
|
291
|
-
class: normalizeClass([
|
|
292
|
-
"ele-dialog-resize-icon",
|
|
293
|
-
{ "is-horizontal": _ctx.resizable === "horizontal" },
|
|
294
|
-
{ "is-vertical": _ctx.resizable === "vertical" }
|
|
295
|
-
]),
|
|
296
|
-
style: normalizeStyle(_ctx.resizeIconStyle),
|
|
297
|
-
onMousedown: _cache[8] || (_cache[8] = (...args) => _ctx.handleResizeMousedown && _ctx.handleResizeMousedown(...args)),
|
|
298
|
-
onTouchstart: _cache[9] || (_cache[9] = (...args) => _ctx.handleResizeTouchstart && _ctx.handleResizeTouchstart(...args))
|
|
299
|
-
}, [
|
|
300
|
-
renderSlot(_ctx.$slots, "resizeIcon", {}, () => [
|
|
301
|
-
createVNode(_component_ElIcon, null, {
|
|
302
|
-
default: withCtx(() => [
|
|
303
|
-
createVNode(_component_ResizeOutlined)
|
|
304
|
-
]),
|
|
305
|
-
_: 1
|
|
306
|
-
})
|
|
307
|
-
])
|
|
308
|
-
], 38)) : createCommentVNode("", true)
|
|
309
|
-
]),
|
|
310
|
-
default: withCtx(() => [
|
|
311
|
-
createVNode(_component_ReceiverView, {
|
|
312
|
-
wrapPosition: false,
|
|
313
|
-
class: normalizeClass(["ele-dialog-body", { "is-form": _ctx.form }]),
|
|
314
|
-
style: normalizeStyle(_ctx.bodyStyle)
|
|
315
|
-
}, {
|
|
316
|
-
default: withCtx(() => [
|
|
317
|
-
renderSlot(_ctx.$slots, "default")
|
|
318
|
-
]),
|
|
319
|
-
_: 3
|
|
320
|
-
}, 8, ["class", "style"])
|
|
321
|
-
]),
|
|
322
|
-
_: 2
|
|
323
|
-
}, [
|
|
324
|
-
_ctx.$slots.footer ? {
|
|
325
|
-
name: "footer",
|
|
326
|
-
fn: withCtx(() => [
|
|
327
|
-
createElementVNode("div", {
|
|
328
|
-
class: "ele-dialog-footer",
|
|
329
|
-
style: normalizeStyle(_ctx.footerStyle)
|
|
330
|
-
}, [
|
|
331
|
-
renderSlot(_ctx.$slots, "footer")
|
|
332
|
-
], 4)
|
|
333
|
-
]),
|
|
334
|
-
key: "0"
|
|
335
|
-
} : void 0
|
|
336
|
-
]), 1040, ["modelValue", "title", "width", "modal", "modalClass", "lockScroll", "openDelay", "closeDelay", "closeOnClickModal", "closeOnPressEscape", "beforeClose", "center", "destroyOnClose", "zIndex", "headerAriaLevel", "onUpdate:modelValue", "onOpen", "onOpened", "onClose", "onClosed", "onOpenAutoFocus", "onCloseAutoFocus"])
|
|
337
|
-
], 8, ["to", "disabled"]);
|
|
338
|
-
}
|
|
339
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
340
|
-
export {
|
|
341
|
-
index as default
|
|
342
|
-
};
|
package/es/ele-modal/props.d.ts
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
-
import { dialogProps } from 'element-plus';
|
|
3
|
-
import { StyleValue } from '../ele-app/types';
|
|
4
|
-
import { Resizable, MoveOut, Position } from './types';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* 属性
|
|
8
|
-
*/
|
|
9
|
-
export declare const modalProps: {
|
|
10
|
-
appendToBody: {
|
|
11
|
-
type: BooleanConstructor;
|
|
12
|
-
default: boolean;
|
|
13
|
-
};
|
|
14
|
-
draggable: {
|
|
15
|
-
type: BooleanConstructor;
|
|
16
|
-
default: boolean;
|
|
17
|
-
};
|
|
18
|
-
/** 是否可以拖出边界 */
|
|
19
|
-
moveOut: PropType<MoveOut>;
|
|
20
|
-
/** 是否可以拉伸 */
|
|
21
|
-
resizable: PropType<Resizable>;
|
|
22
|
-
/** 初始位置 */
|
|
23
|
-
position: PropType<Position>;
|
|
24
|
-
/** 是否在弹窗关闭后重置位置和大小 */
|
|
25
|
-
resetOnClose: {
|
|
26
|
-
type: BooleanConstructor;
|
|
27
|
-
default: boolean;
|
|
28
|
-
};
|
|
29
|
-
/** 是否显示最大化切换按钮 */
|
|
30
|
-
maxable: BooleanConstructor;
|
|
31
|
-
/** 是否支持打开多个 */
|
|
32
|
-
multiple: BooleanConstructor;
|
|
33
|
-
/** 是否限制在主体内部 */
|
|
34
|
-
inner: BooleanConstructor;
|
|
35
|
-
/** 最小拉伸宽度 */
|
|
36
|
-
minWidth: {
|
|
37
|
-
type: NumberConstructor;
|
|
38
|
-
default: number;
|
|
39
|
-
};
|
|
40
|
-
/** 最小拉伸高度 */
|
|
41
|
-
minHeight: {
|
|
42
|
-
type: NumberConstructor;
|
|
43
|
-
default: number;
|
|
44
|
-
};
|
|
45
|
-
/** 标题栏样式 */
|
|
46
|
-
headerStyle: PropType<StyleValue>;
|
|
47
|
-
/** 标题样式 */
|
|
48
|
-
titleStyle: PropType<StyleValue>;
|
|
49
|
-
/** 主体样式 */
|
|
50
|
-
bodyStyle: PropType<StyleValue>;
|
|
51
|
-
/** 底栏样式 */
|
|
52
|
-
footerStyle: PropType<StyleValue>;
|
|
53
|
-
/** 自定义关闭按钮样式 */
|
|
54
|
-
closeBtnStyle: PropType<StyleValue>;
|
|
55
|
-
/** 自定义全屏按钮样式 */
|
|
56
|
-
fullscreenBtnStyle: PropType<StyleValue>;
|
|
57
|
-
/** 拉伸图标样式 */
|
|
58
|
-
resizeIconStyle: PropType<StyleValue>;
|
|
59
|
-
/** 是否开启响应式 */
|
|
60
|
-
responsive: {
|
|
61
|
-
type: BooleanConstructor;
|
|
62
|
-
default: null;
|
|
63
|
-
};
|
|
64
|
-
/** 是否是表单弹窗 */
|
|
65
|
-
form: BooleanConstructor;
|
|
66
|
-
appendTo: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement) | ((new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement))[], unknown, unknown, "body", boolean>;
|
|
67
|
-
beforeClose: {
|
|
68
|
-
readonly type: import('vue').PropType<import('element-plus').DialogBeforeCloseFn>;
|
|
69
|
-
readonly required: false;
|
|
70
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
71
|
-
__epPropKey: true;
|
|
72
|
-
};
|
|
73
|
-
destroyOnClose: BooleanConstructor;
|
|
74
|
-
closeOnClickModal: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
75
|
-
closeOnPressEscape: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
76
|
-
lockScroll: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
77
|
-
modal: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
78
|
-
openDelay: import('element-plus/es/utils/index').EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
79
|
-
closeDelay: import('element-plus/es/utils/index').EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
80
|
-
top: {
|
|
81
|
-
readonly type: import('vue').PropType<string>;
|
|
82
|
-
readonly required: false;
|
|
83
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
84
|
-
__epPropKey: true;
|
|
85
|
-
};
|
|
86
|
-
modelValue: BooleanConstructor;
|
|
87
|
-
modalClass: StringConstructor;
|
|
88
|
-
width: {
|
|
89
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
90
|
-
readonly required: false;
|
|
91
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
92
|
-
__epPropKey: true;
|
|
93
|
-
};
|
|
94
|
-
zIndex: {
|
|
95
|
-
readonly type: import('vue').PropType<number>;
|
|
96
|
-
readonly required: false;
|
|
97
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
98
|
-
__epPropKey: true;
|
|
99
|
-
};
|
|
100
|
-
trapFocus: BooleanConstructor;
|
|
101
|
-
headerAriaLevel: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
102
|
-
center: BooleanConstructor;
|
|
103
|
-
alignCenter: BooleanConstructor;
|
|
104
|
-
closeIcon: {
|
|
105
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) | ((new (...args: any[]) => (string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>) & {}) | (() => string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions>))[], unknown, unknown>>;
|
|
106
|
-
readonly required: false;
|
|
107
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
108
|
-
__epPropKey: true;
|
|
109
|
-
};
|
|
110
|
-
overflow: BooleanConstructor;
|
|
111
|
-
fullscreen: BooleanConstructor;
|
|
112
|
-
showClose: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
113
|
-
title: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
114
|
-
ariaLevel: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
115
|
-
};
|
|
116
|
-
export type ModalProps = ExtractPropTypes<typeof modalProps>;
|
|
117
|
-
/**
|
|
118
|
-
* 事件
|
|
119
|
-
*/
|
|
120
|
-
export declare const modalEmits: {
|
|
121
|
-
/** 更新全屏状态 */
|
|
122
|
-
'update:fullscreen': (_fullscreen: boolean) => boolean;
|
|
123
|
-
open: () => boolean;
|
|
124
|
-
opened: () => boolean;
|
|
125
|
-
close: () => boolean;
|
|
126
|
-
closed: () => boolean;
|
|
127
|
-
"update:modelValue": (value: boolean) => boolean;
|
|
128
|
-
openAutoFocus: () => boolean;
|
|
129
|
-
closeAutoFocus: () => boolean;
|
|
130
|
-
};
|
|
131
|
-
export type DialogPropKeys = Array<keyof typeof dialogProps>;
|
|
132
|
-
/**
|
|
133
|
-
* 弹窗组件属性名
|
|
134
|
-
*/
|
|
135
|
-
export declare const dialogPropKeys: DialogPropKeys;
|
package/es/ele-modal/props.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { dialogProps, dialogEmits } from "element-plus";
|
|
2
|
-
const modalProps = {
|
|
3
|
-
...dialogProps,
|
|
4
|
-
appendToBody: {
|
|
5
|
-
type: Boolean,
|
|
6
|
-
default: true
|
|
7
|
-
},
|
|
8
|
-
draggable: {
|
|
9
|
-
type: Boolean,
|
|
10
|
-
default: true
|
|
11
|
-
},
|
|
12
|
-
/** 是否可以拖出边界 */
|
|
13
|
-
moveOut: [Boolean, Array],
|
|
14
|
-
/** 是否可以拉伸 */
|
|
15
|
-
resizable: [Boolean, String],
|
|
16
|
-
/** 初始位置 */
|
|
17
|
-
position: [String, Object],
|
|
18
|
-
/** 是否在弹窗关闭后重置位置和大小 */
|
|
19
|
-
resetOnClose: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default: true
|
|
22
|
-
},
|
|
23
|
-
/** 是否显示最大化切换按钮 */
|
|
24
|
-
maxable: Boolean,
|
|
25
|
-
/** 是否支持打开多个 */
|
|
26
|
-
multiple: Boolean,
|
|
27
|
-
/** 是否限制在主体内部 */
|
|
28
|
-
inner: Boolean,
|
|
29
|
-
/** 最小拉伸宽度 */
|
|
30
|
-
minWidth: {
|
|
31
|
-
type: Number,
|
|
32
|
-
default: 260
|
|
33
|
-
},
|
|
34
|
-
/** 最小拉伸高度 */
|
|
35
|
-
minHeight: {
|
|
36
|
-
type: Number,
|
|
37
|
-
default: 160
|
|
38
|
-
},
|
|
39
|
-
/** 标题栏样式 */
|
|
40
|
-
headerStyle: Object,
|
|
41
|
-
/** 标题样式 */
|
|
42
|
-
titleStyle: Object,
|
|
43
|
-
/** 主体样式 */
|
|
44
|
-
bodyStyle: Object,
|
|
45
|
-
/** 底栏样式 */
|
|
46
|
-
footerStyle: Object,
|
|
47
|
-
/** 自定义关闭按钮样式 */
|
|
48
|
-
closeBtnStyle: Object,
|
|
49
|
-
/** 自定义全屏按钮样式 */
|
|
50
|
-
fullscreenBtnStyle: Object,
|
|
51
|
-
/** 拉伸图标样式 */
|
|
52
|
-
resizeIconStyle: Object,
|
|
53
|
-
/** 是否开启响应式 */
|
|
54
|
-
responsive: {
|
|
55
|
-
type: Boolean,
|
|
56
|
-
default: null
|
|
57
|
-
},
|
|
58
|
-
/** 是否是表单弹窗 */
|
|
59
|
-
form: Boolean
|
|
60
|
-
};
|
|
61
|
-
const modalEmits = {
|
|
62
|
-
...dialogEmits,
|
|
63
|
-
/** 更新全屏状态 */
|
|
64
|
-
"update:fullscreen": (_fullscreen) => true
|
|
65
|
-
};
|
|
66
|
-
const dialogPropKeys = Object.keys(dialogProps);
|
|
67
|
-
export {
|
|
68
|
-
dialogPropKeys,
|
|
69
|
-
modalEmits,
|
|
70
|
-
modalProps
|
|
71
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|