@element-plus/nightly 0.0.20220131 → 0.0.20220204
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +348 -205
- package/dist/index.full.min.js +6 -6
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +6 -6
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +347 -207
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/autocomplete/index.d.ts +12 -4
- package/es/components/autocomplete/src/index.mjs +11 -4
- package/es/components/autocomplete/src/index.mjs.map +1 -1
- package/es/components/autocomplete/src/index.vue.d.ts +6 -2
- package/es/components/cascader/index.d.ts +12 -4
- package/es/components/cascader/src/index.mjs +12 -5
- package/es/components/cascader/src/index.mjs.map +1 -1
- package/es/components/cascader/src/index.vue.d.ts +6 -2
- package/es/components/dialog/index.d.ts +4 -0
- package/es/components/dialog/src/dialog.d.ts +1 -0
- package/es/components/dialog/src/dialog.mjs +4 -0
- package/es/components/dialog/src/dialog.mjs.map +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +4 -0
- package/es/components/dialog/src/dialog2.mjs +12 -3
- package/es/components/dialog/src/dialog2.mjs.map +1 -1
- package/es/components/drawer/index.d.ts +3 -0
- package/es/components/drawer/src/drawer.d.ts +1 -0
- package/es/components/drawer/src/drawer.vue.d.ts +3 -0
- package/es/components/index.mjs +1 -0
- package/es/components/index.mjs.map +1 -1
- package/es/components/message-box/src/index.mjs +133 -113
- package/es/components/message-box/src/index.mjs.map +1 -1
- package/es/components/message-box/src/index.vue.d.ts +14 -4
- package/es/components/message-box/src/message-box.type.d.ts +2 -0
- package/es/components/popconfirm/index.d.ts +26 -22
- package/es/components/popconfirm/src/popconfirm.d.ts +12 -11
- package/es/components/popconfirm/src/popconfirm.mjs +48 -43
- package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +26 -22
- package/es/components/popconfirm/src/popconfirm2.mjs +8 -3
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/popover/index.d.ts +26 -0
- package/es/components/popover/src/index.mjs +8 -3
- package/es/components/popover/src/index.mjs.map +1 -1
- package/es/components/popover/src/index.vue.d.ts +39 -26
- package/es/components/popover/src/popover.d.ts +5 -0
- package/es/components/popover/src/popover.mjs +2 -0
- package/es/components/popover/src/popover.mjs.map +1 -1
- package/es/components/popper/index.d.ts +1 -0
- package/es/components/popper/index.mjs +1 -0
- package/es/components/popper/index.mjs.map +1 -1
- package/es/components/popper/src/deprecation.d.ts +3 -0
- package/es/components/popper/src/deprecation.mjs +24 -0
- package/es/components/popper/src/deprecation.mjs.map +1 -0
- package/es/components/select/index.d.ts +6 -2
- package/es/components/select/src/select.mjs +13 -6
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select.vue.d.ts +30 -26
- package/es/components/select-v2/index.d.ts +12 -12
- package/es/components/select-v2/src/defaults.d.ts +2 -1
- package/es/components/select-v2/src/defaults.mjs +4 -1
- package/es/components/select-v2/src/defaults.mjs.map +1 -1
- package/es/components/select-v2/src/select.mjs +2 -2
- package/es/components/select-v2/src/select.mjs.map +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +6 -6
- package/es/components/select-v2/src/useSelect.d.ts +1 -4
- package/es/components/select-v2/src/useSelect.mjs +4 -2
- package/es/components/select-v2/src/useSelect.mjs.map +1 -1
- package/es/hooks/index.d.ts +2 -0
- package/es/hooks/index.mjs +2 -0
- package/es/hooks/index.mjs.map +1 -1
- package/es/hooks/use-deprecated/index.d.ts +10 -0
- package/es/hooks/use-deprecated/index.mjs +17 -0
- package/es/hooks/use-deprecated/index.mjs.map +1 -0
- package/es/hooks/use-draggable/index.d.ts +2 -0
- package/es/hooks/use-draggable/index.mjs +65 -0
- package/es/hooks/use-draggable/index.mjs.map +1 -0
- package/es/index.mjs +3 -0
- package/es/index.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/autocomplete/index.d.ts +12 -4
- package/lib/components/autocomplete/src/index.js +11 -4
- package/lib/components/autocomplete/src/index.js.map +1 -1
- package/lib/components/autocomplete/src/index.vue.d.ts +6 -2
- package/lib/components/cascader/index.d.ts +12 -4
- package/lib/components/cascader/src/index.js +12 -5
- package/lib/components/cascader/src/index.js.map +1 -1
- package/lib/components/cascader/src/index.vue.d.ts +6 -2
- package/lib/components/dialog/index.d.ts +4 -0
- package/lib/components/dialog/src/dialog.d.ts +1 -0
- package/lib/components/dialog/src/dialog.js +4 -0
- package/lib/components/dialog/src/dialog.js.map +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +4 -0
- package/lib/components/dialog/src/dialog2.js +11 -2
- package/lib/components/dialog/src/dialog2.js.map +1 -1
- package/lib/components/drawer/index.d.ts +3 -0
- package/lib/components/drawer/src/drawer.d.ts +1 -0
- package/lib/components/drawer/src/drawer.vue.d.ts +3 -0
- package/lib/components/index.js +2 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/message-box/src/index.js +140 -120
- package/lib/components/message-box/src/index.js.map +1 -1
- package/lib/components/message-box/src/index.vue.d.ts +14 -4
- package/lib/components/message-box/src/message-box.type.d.ts +2 -0
- package/lib/components/popconfirm/index.d.ts +26 -22
- package/lib/components/popconfirm/src/popconfirm.d.ts +12 -11
- package/lib/components/popconfirm/src/popconfirm.js +48 -43
- package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +26 -22
- package/lib/components/popconfirm/src/popconfirm2.js +8 -3
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/popover/index.d.ts +26 -0
- package/lib/components/popover/src/index.js +8 -3
- package/lib/components/popover/src/index.js.map +1 -1
- package/lib/components/popover/src/index.vue.d.ts +39 -26
- package/lib/components/popover/src/popover.d.ts +5 -0
- package/lib/components/popover/src/popover.js +2 -0
- package/lib/components/popover/src/popover.js.map +1 -1
- package/lib/components/popper/index.d.ts +1 -0
- package/lib/components/popper/index.js +2 -0
- package/lib/components/popper/index.js.map +1 -1
- package/lib/components/popper/src/deprecation.d.ts +3 -0
- package/lib/components/popper/src/deprecation.js +28 -0
- package/lib/components/popper/src/deprecation.js.map +1 -0
- package/lib/components/select/index.d.ts +6 -2
- package/lib/components/select/src/select.js +13 -6
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select.vue.d.ts +30 -26
- package/lib/components/select-v2/index.d.ts +12 -12
- package/lib/components/select-v2/src/defaults.d.ts +2 -1
- package/lib/components/select-v2/src/defaults.js +4 -1
- package/lib/components/select-v2/src/defaults.js.map +1 -1
- package/lib/components/select-v2/src/select.js +2 -2
- package/lib/components/select-v2/src/select.js.map +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +6 -6
- package/lib/components/select-v2/src/useSelect.d.ts +1 -4
- package/lib/components/select-v2/src/useSelect.js +11 -9
- package/lib/components/select-v2/src/useSelect.js.map +1 -1
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/index.js +62 -58
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-deprecated/index.d.ts +10 -0
- package/lib/hooks/use-deprecated/index.js +21 -0
- package/lib/hooks/use-deprecated/index.js.map +1 -0
- package/lib/hooks/use-draggable/index.d.ts +2 -0
- package/lib/hooks/use-draggable/index.js +69 -0
- package/lib/hooks/use-draggable/index.js.map +1 -0
- package/lib/index.js +64 -58
- package/lib/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/theme-chalk/el-dialog.css +1 -1
- package/theme-chalk/el-message-box.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/dialog.scss +7 -0
- package/theme-chalk/src/message-box.scss +26 -15
- package/web-types.json +1 -1
package/dist/index.full.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! Element Plus v0.0.
|
|
1
|
+
/*! Element Plus v0.0.20220204 */
|
|
2
2
|
|
|
3
|
-
import { getCurrentInstance, computed, warn, getCurrentScope, onScopeDispose, readonly, shallowRef, watchSyncEffect, ref, unref, watch, inject, provide,
|
|
3
|
+
import { getCurrentInstance, computed, warn, getCurrentScope, onScopeDispose, readonly, shallowRef, watchSyncEffect, ref, unref, watch, inject, provide, onMounted, watchEffect, onBeforeUnmount, isRef, onUnmounted, h as h$1, Teleport, onBeforeMount, nextTick, defineComponent, reactive, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, mergeProps, resolveComponent, createBlock, Transition, withCtx, withDirectives, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, Fragment, createVNode, vShow, onUpdated, withModifiers, toRef, cloneVNode, Text, Comment, resolveDirective, renderList, withKeys, createSlots, normalizeProps, guardReactiveProps, toRefs, vModelCheckbox, vModelRadio, onBeforeUpdate, vModelText, toHandlers, isVNode, camelize as camelize$1, markRaw, effectScope, toRaw, triggerRef, TransitionGroup, createApp, render } from 'vue';
|
|
4
4
|
|
|
5
5
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
6
6
|
|
|
@@ -3015,6 +3015,73 @@ const useDisabled$1 = (fallback) => {
|
|
|
3015
3015
|
return computed(() => disabled.value || unref(fallback) || (form == null ? void 0 : form.disabled) || false);
|
|
3016
3016
|
};
|
|
3017
3017
|
|
|
3018
|
+
const useDeprecated = ({ from, replacement, scope, version, ref }, condition) => {
|
|
3019
|
+
watch(() => unref(condition), (val) => {
|
|
3020
|
+
}, {
|
|
3021
|
+
immediate: true
|
|
3022
|
+
});
|
|
3023
|
+
};
|
|
3024
|
+
|
|
3025
|
+
const useDraggable = (targetRef, dragRef, draggable) => {
|
|
3026
|
+
let transform = {
|
|
3027
|
+
offsetX: 0,
|
|
3028
|
+
offsetY: 0
|
|
3029
|
+
};
|
|
3030
|
+
const onMousedown = (e) => {
|
|
3031
|
+
const downX = e.clientX;
|
|
3032
|
+
const downY = e.clientY;
|
|
3033
|
+
const { offsetX, offsetY } = transform;
|
|
3034
|
+
const targetRect = targetRef.value.getBoundingClientRect();
|
|
3035
|
+
const targetLeft = targetRect.left;
|
|
3036
|
+
const targetTop = targetRect.top;
|
|
3037
|
+
const targetWidth = targetRect.width;
|
|
3038
|
+
const targetHeight = targetRect.height;
|
|
3039
|
+
const clientWidth = document.documentElement.clientWidth;
|
|
3040
|
+
const clientHeight = document.documentElement.clientHeight;
|
|
3041
|
+
const minLeft = -targetLeft + offsetX;
|
|
3042
|
+
const minTop = -targetTop + offsetY;
|
|
3043
|
+
const maxLeft = clientWidth - targetLeft - targetWidth + offsetX;
|
|
3044
|
+
const maxTop = clientHeight - targetTop - targetHeight + offsetY;
|
|
3045
|
+
const onMousemove = (e2) => {
|
|
3046
|
+
const moveX = Math.min(Math.max(offsetX + e2.clientX - downX, minLeft), maxLeft);
|
|
3047
|
+
const moveY = Math.min(Math.max(offsetY + e2.clientY - downY, minTop), maxTop);
|
|
3048
|
+
transform = {
|
|
3049
|
+
offsetX: moveX,
|
|
3050
|
+
offsetY: moveY
|
|
3051
|
+
};
|
|
3052
|
+
targetRef.value.style.transform = `translate(${addUnit(moveX)}, ${addUnit(moveY)})`;
|
|
3053
|
+
};
|
|
3054
|
+
const onMouseup = () => {
|
|
3055
|
+
document.removeEventListener("mousemove", onMousemove);
|
|
3056
|
+
document.removeEventListener("mouseup", onMouseup);
|
|
3057
|
+
};
|
|
3058
|
+
document.addEventListener("mousemove", onMousemove);
|
|
3059
|
+
document.addEventListener("mouseup", onMouseup);
|
|
3060
|
+
};
|
|
3061
|
+
const onDraggable = () => {
|
|
3062
|
+
if (dragRef.value && targetRef.value) {
|
|
3063
|
+
dragRef.value.addEventListener("mousedown", onMousedown);
|
|
3064
|
+
}
|
|
3065
|
+
};
|
|
3066
|
+
const offDraggable = () => {
|
|
3067
|
+
if (dragRef.value && targetRef.value) {
|
|
3068
|
+
dragRef.value.removeEventListener("mousedown", onMousedown);
|
|
3069
|
+
}
|
|
3070
|
+
};
|
|
3071
|
+
onMounted(() => {
|
|
3072
|
+
watchEffect(() => {
|
|
3073
|
+
if (draggable.value) {
|
|
3074
|
+
onDraggable();
|
|
3075
|
+
} else {
|
|
3076
|
+
offDraggable();
|
|
3077
|
+
}
|
|
3078
|
+
});
|
|
3079
|
+
});
|
|
3080
|
+
onBeforeUnmount(() => {
|
|
3081
|
+
offDraggable();
|
|
3082
|
+
});
|
|
3083
|
+
};
|
|
3084
|
+
|
|
3018
3085
|
const useFocus = (el) => {
|
|
3019
3086
|
return {
|
|
3020
3087
|
focus: () => {
|
|
@@ -4540,7 +4607,7 @@ if (isClient) {
|
|
|
4540
4607
|
});
|
|
4541
4608
|
}
|
|
4542
4609
|
|
|
4543
|
-
const version$1 = "0.0.
|
|
4610
|
+
const version$1 = "0.0.20220204";
|
|
4544
4611
|
|
|
4545
4612
|
const INSTALLED_KEY = Symbol("INSTALLED_KEY");
|
|
4546
4613
|
const makeInstaller = (components = []) => {
|
|
@@ -6943,15 +7010,15 @@ const thumbProps = buildProps({
|
|
|
6943
7010
|
always: Boolean
|
|
6944
7011
|
});
|
|
6945
7012
|
|
|
6946
|
-
const COMPONENT_NAME$
|
|
7013
|
+
const COMPONENT_NAME$f = "Thumb";
|
|
6947
7014
|
const _sfc_main$26 = defineComponent({
|
|
6948
|
-
name: COMPONENT_NAME$
|
|
7015
|
+
name: COMPONENT_NAME$f,
|
|
6949
7016
|
props: thumbProps,
|
|
6950
7017
|
setup(props) {
|
|
6951
7018
|
const scrollbar = inject(scrollbarContextKey);
|
|
6952
7019
|
const ns = useNamespace("scrollbar");
|
|
6953
7020
|
if (!scrollbar)
|
|
6954
|
-
throwError(COMPONENT_NAME$
|
|
7021
|
+
throwError(COMPONENT_NAME$f, "can not inject scrollbar context");
|
|
6955
7022
|
const instance = ref();
|
|
6956
7023
|
const thumb = ref();
|
|
6957
7024
|
const thumbState = ref({});
|
|
@@ -9258,9 +9325,9 @@ function _sfc_render$1Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9258
9325
|
}
|
|
9259
9326
|
var ElPopperArrow = /* @__PURE__ */ _export_sfc$1(_sfc_main$22, [["render", _sfc_render$1Z]]);
|
|
9260
9327
|
|
|
9261
|
-
const NAME
|
|
9328
|
+
const NAME = "ElOnlyChild";
|
|
9262
9329
|
const OnlyChild = defineComponent({
|
|
9263
|
-
name: NAME
|
|
9330
|
+
name: NAME,
|
|
9264
9331
|
setup(_, { slots, attrs }) {
|
|
9265
9332
|
var _a;
|
|
9266
9333
|
const forwardRefInjection = inject(FORWARD_REF_INJECTION_KEY, void 0);
|
|
@@ -9539,6 +9606,23 @@ function _sfc_render$1X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9539
9606
|
}
|
|
9540
9607
|
var ElPopperContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$20, [["render", _sfc_render$1X]]);
|
|
9541
9608
|
|
|
9609
|
+
function useDeprecateAppendToBody(scope, from) {
|
|
9610
|
+
const vm = getCurrentInstance();
|
|
9611
|
+
const compatTeleported = computed(() => {
|
|
9612
|
+
return isBool(vm.props[from]) ? vm.props[from] : vm.props.teleported;
|
|
9613
|
+
});
|
|
9614
|
+
useDeprecated({
|
|
9615
|
+
scope,
|
|
9616
|
+
from,
|
|
9617
|
+
replacement: "teleported",
|
|
9618
|
+
version: "2.1.0",
|
|
9619
|
+
ref: "https://element-plus.org/en-US/component/tooltip.html#attributes"
|
|
9620
|
+
}, computed(() => isBool(vm.props[from])));
|
|
9621
|
+
return {
|
|
9622
|
+
compatTeleported
|
|
9623
|
+
};
|
|
9624
|
+
}
|
|
9625
|
+
|
|
9542
9626
|
const ElPopper = withInstall(Popper);
|
|
9543
9627
|
|
|
9544
9628
|
const _sfc_main$1$ = defineComponent({
|
|
@@ -10021,8 +10105,9 @@ var Tooltip = /* @__PURE__ */ _export_sfc$1(_sfc_main$1Y, [["render", _sfc_rende
|
|
|
10021
10105
|
|
|
10022
10106
|
const ElTooltip = withInstall(Tooltip);
|
|
10023
10107
|
|
|
10108
|
+
const COMPONENT_NAME$e = "ElAutocomplete";
|
|
10024
10109
|
const _sfc_main$1X = defineComponent({
|
|
10025
|
-
name:
|
|
10110
|
+
name: COMPONENT_NAME$e,
|
|
10026
10111
|
components: {
|
|
10027
10112
|
ElTooltip,
|
|
10028
10113
|
ElInput,
|
|
@@ -10083,8 +10168,9 @@ const _sfc_main$1X = defineComponent({
|
|
|
10083
10168
|
},
|
|
10084
10169
|
popperAppendToBody: {
|
|
10085
10170
|
type: Boolean,
|
|
10086
|
-
default:
|
|
10171
|
+
default: void 0
|
|
10087
10172
|
},
|
|
10173
|
+
teleported: useTooltipContentProps.teleported,
|
|
10088
10174
|
highlightFirstItem: {
|
|
10089
10175
|
type: Boolean,
|
|
10090
10176
|
default: false
|
|
@@ -10101,6 +10187,7 @@ const _sfc_main$1X = defineComponent({
|
|
|
10101
10187
|
],
|
|
10102
10188
|
setup(props, ctx) {
|
|
10103
10189
|
const ns = useNamespace("autocomplete");
|
|
10190
|
+
const { compatTeleported } = useDeprecateAppendToBody(COMPONENT_NAME$e, "popperAppendToBody");
|
|
10104
10191
|
const attrs = useAttrs();
|
|
10105
10192
|
const suggestions = ref([]);
|
|
10106
10193
|
const highlightedIndex = ref(-1);
|
|
@@ -10248,6 +10335,7 @@ const _sfc_main$1X = defineComponent({
|
|
|
10248
10335
|
id,
|
|
10249
10336
|
suggestionVisible,
|
|
10250
10337
|
suggestionLoading,
|
|
10338
|
+
compatTeleported,
|
|
10251
10339
|
getData,
|
|
10252
10340
|
handleInput,
|
|
10253
10341
|
handleChange,
|
|
@@ -10281,7 +10369,7 @@ function _sfc_render$1S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10281
10369
|
placement: _ctx.placement,
|
|
10282
10370
|
"fallback-placements": ["bottom-start", "top-start"],
|
|
10283
10371
|
"popper-class": `${_ctx.ns.e("popper")} ${_ctx.popperClass}`,
|
|
10284
|
-
|
|
10372
|
+
teleported: _ctx.compatTeleported,
|
|
10285
10373
|
"gpu-acceleration": false,
|
|
10286
10374
|
pure: "",
|
|
10287
10375
|
"manual-mode": "",
|
|
@@ -10385,7 +10473,7 @@ function _sfc_render$1S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10385
10473
|
])
|
|
10386
10474
|
]),
|
|
10387
10475
|
_: 3
|
|
10388
|
-
}, 8, ["visible", "placement", "popper-class", "
|
|
10476
|
+
}, 8, ["visible", "placement", "popper-class", "teleported", "transition", "onShow"]);
|
|
10389
10477
|
}
|
|
10390
10478
|
var Autocomplete = /* @__PURE__ */ _export_sfc$1(_sfc_main$1X, [["render", _sfc_render$1S]]);
|
|
10391
10479
|
|
|
@@ -10520,9 +10608,9 @@ const backtopEmits = {
|
|
|
10520
10608
|
click: (evt) => evt instanceof MouseEvent
|
|
10521
10609
|
};
|
|
10522
10610
|
|
|
10523
|
-
const COMPONENT_NAME$
|
|
10611
|
+
const COMPONENT_NAME$d = "ElBacktop";
|
|
10524
10612
|
const _sfc_main$1V = defineComponent({
|
|
10525
|
-
name: COMPONENT_NAME$
|
|
10613
|
+
name: COMPONENT_NAME$d,
|
|
10526
10614
|
components: {
|
|
10527
10615
|
ElIcon,
|
|
10528
10616
|
CaretTop: caretTop
|
|
@@ -10568,7 +10656,7 @@ const _sfc_main$1V = defineComponent({
|
|
|
10568
10656
|
if (props.target) {
|
|
10569
10657
|
el.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
|
|
10570
10658
|
if (!el.value) {
|
|
10571
|
-
throwError(COMPONENT_NAME$
|
|
10659
|
+
throwError(COMPONENT_NAME$d, `target is not existed: ${props.target}`);
|
|
10572
10660
|
}
|
|
10573
10661
|
container.value = el.value;
|
|
10574
10662
|
}
|
|
@@ -10736,9 +10824,9 @@ const breadcrumbItemProps = buildProps({
|
|
|
10736
10824
|
}
|
|
10737
10825
|
});
|
|
10738
10826
|
|
|
10739
|
-
const COMPONENT_NAME$
|
|
10827
|
+
const COMPONENT_NAME$c = "ElBreadcrumbItem";
|
|
10740
10828
|
const _sfc_main$1S = defineComponent({
|
|
10741
|
-
name: COMPONENT_NAME$
|
|
10829
|
+
name: COMPONENT_NAME$c,
|
|
10742
10830
|
components: {
|
|
10743
10831
|
ElIcon
|
|
10744
10832
|
},
|
|
@@ -17316,8 +17404,9 @@ const popperOptions = {
|
|
|
17316
17404
|
}
|
|
17317
17405
|
]
|
|
17318
17406
|
};
|
|
17407
|
+
const COMPONENT_NAME$b = "ElCascader";
|
|
17319
17408
|
const _sfc_main$1w = defineComponent({
|
|
17320
|
-
name:
|
|
17409
|
+
name: COMPONENT_NAME$b,
|
|
17321
17410
|
components: {
|
|
17322
17411
|
ElCascaderPanel: _CascaderPanel,
|
|
17323
17412
|
ElInput,
|
|
@@ -17371,8 +17460,9 @@ const _sfc_main$1w = defineComponent({
|
|
|
17371
17460
|
},
|
|
17372
17461
|
popperAppendToBody: {
|
|
17373
17462
|
type: Boolean,
|
|
17374
|
-
default:
|
|
17375
|
-
}
|
|
17463
|
+
default: void 0
|
|
17464
|
+
},
|
|
17465
|
+
teleported: useTooltipContentProps.teleported
|
|
17376
17466
|
},
|
|
17377
17467
|
emits: [
|
|
17378
17468
|
UPDATE_MODEL_EVENT,
|
|
@@ -17386,6 +17476,7 @@ const _sfc_main$1w = defineComponent({
|
|
|
17386
17476
|
setup(props, { emit }) {
|
|
17387
17477
|
let inputInitialHeight = 0;
|
|
17388
17478
|
let pressDeleteCount = 0;
|
|
17479
|
+
const { compatTeleported } = useDeprecateAppendToBody(COMPONENT_NAME$b, "popperAppendToBody");
|
|
17389
17480
|
const { t } = useLocale();
|
|
17390
17481
|
const elForm = inject(elFormKey, {});
|
|
17391
17482
|
const elFormItem = inject(elFormItemKey, {});
|
|
@@ -17699,6 +17790,7 @@ const _sfc_main$1w = defineComponent({
|
|
|
17699
17790
|
multiple,
|
|
17700
17791
|
readonly,
|
|
17701
17792
|
clearBtnVisible,
|
|
17793
|
+
compatTeleported,
|
|
17702
17794
|
t,
|
|
17703
17795
|
togglePopperVisible,
|
|
17704
17796
|
hideSuggestionPanel,
|
|
@@ -17739,7 +17831,7 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17739
17831
|
ref: "tooltipRef",
|
|
17740
17832
|
visible: _ctx.popperVisible,
|
|
17741
17833
|
"onUpdate:visible": _cache[17] || (_cache[17] = ($event) => _ctx.popperVisible = $event),
|
|
17742
|
-
|
|
17834
|
+
teleported: _ctx.compatTeleported,
|
|
17743
17835
|
"popper-class": `el-cascader__dropdown ${_ctx.popperClass}`,
|
|
17744
17836
|
"popper-options": _ctx.popperOptions,
|
|
17745
17837
|
"fallback-placements": [
|
|
@@ -17905,7 +17997,7 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17905
17997
|
]) : createCommentVNode("v-if", true)
|
|
17906
17998
|
]),
|
|
17907
17999
|
_: 3
|
|
17908
|
-
}, 8, ["visible", "
|
|
18000
|
+
}, 8, ["visible", "teleported", "popper-class", "popper-options", "onHide"]);
|
|
17909
18001
|
}
|
|
17910
18002
|
var Cascader = /* @__PURE__ */ _export_sfc$1(_sfc_main$1w, [["render", _sfc_render$1s]]);
|
|
17911
18003
|
|
|
@@ -22476,6 +22568,10 @@ const dialogProps = buildProps({
|
|
|
22476
22568
|
type: Boolean,
|
|
22477
22569
|
default: false
|
|
22478
22570
|
},
|
|
22571
|
+
draggable: {
|
|
22572
|
+
type: Boolean,
|
|
22573
|
+
default: false
|
|
22574
|
+
},
|
|
22479
22575
|
lockScroll: {
|
|
22480
22576
|
type: Boolean,
|
|
22481
22577
|
default: true
|
|
@@ -22666,17 +22762,24 @@ const _sfc_main$19 = defineComponent({
|
|
|
22666
22762
|
emits: dialogEmits,
|
|
22667
22763
|
setup(props, ctx) {
|
|
22668
22764
|
const dialogRef = ref();
|
|
22765
|
+
const headerRef = ref();
|
|
22669
22766
|
const dialog = useDialog(props, ctx, dialogRef);
|
|
22670
22767
|
const overlayEvent = useSameTarget(dialog.onModalClick);
|
|
22768
|
+
const draggable = computed(() => props.draggable && !props.fullscreen);
|
|
22769
|
+
useDraggable(dialogRef, headerRef, draggable);
|
|
22671
22770
|
return {
|
|
22672
22771
|
dialogRef,
|
|
22772
|
+
headerRef,
|
|
22673
22773
|
overlayEvent,
|
|
22674
22774
|
...dialog
|
|
22675
22775
|
};
|
|
22676
22776
|
}
|
|
22677
22777
|
});
|
|
22678
22778
|
const _hoisted_1$I = ["aria-label"];
|
|
22679
|
-
const _hoisted_2$u = {
|
|
22779
|
+
const _hoisted_2$u = {
|
|
22780
|
+
ref: "headerRef",
|
|
22781
|
+
class: "el-dialog__header"
|
|
22782
|
+
};
|
|
22680
22783
|
const _hoisted_3$l = { class: "el-dialog__title" };
|
|
22681
22784
|
const _hoisted_4$c = {
|
|
22682
22785
|
key: 0,
|
|
@@ -22720,6 +22823,7 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22720
22823
|
"el-dialog",
|
|
22721
22824
|
{
|
|
22722
22825
|
"is-fullscreen": _ctx.fullscreen,
|
|
22826
|
+
"is-draggable": _ctx.draggable,
|
|
22723
22827
|
"el-dialog--center": _ctx.center
|
|
22724
22828
|
},
|
|
22725
22829
|
_ctx.customClass
|
|
@@ -22749,7 +22853,7 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22749
22853
|
_: 1
|
|
22750
22854
|
})
|
|
22751
22855
|
])) : createCommentVNode("v-if", true)
|
|
22752
|
-
]),
|
|
22856
|
+
], 512),
|
|
22753
22857
|
_ctx.rendered ? (openBlock(), createElementBlock("div", _hoisted_4$c, [
|
|
22754
22858
|
renderSlot(_ctx.$slots, "default")
|
|
22755
22859
|
])) : createCommentVNode("v-if", true),
|
|
@@ -27617,19 +27721,19 @@ const subMenuProps = buildProps({
|
|
|
27617
27721
|
default: void 0
|
|
27618
27722
|
}
|
|
27619
27723
|
});
|
|
27620
|
-
const COMPONENT_NAME$
|
|
27724
|
+
const COMPONENT_NAME$a = "ElSubMenu";
|
|
27621
27725
|
var SubMenu = defineComponent({
|
|
27622
|
-
name: COMPONENT_NAME$
|
|
27726
|
+
name: COMPONENT_NAME$a,
|
|
27623
27727
|
props: subMenuProps,
|
|
27624
27728
|
setup(props, { slots, expose }) {
|
|
27625
27729
|
const instance = getCurrentInstance();
|
|
27626
27730
|
const { paddingStyle, indexPath, parentMenu } = useMenu(instance, computed(() => props.index));
|
|
27627
27731
|
const rootMenu = inject("rootMenu");
|
|
27628
27732
|
if (!rootMenu)
|
|
27629
|
-
throwError(COMPONENT_NAME$
|
|
27733
|
+
throwError(COMPONENT_NAME$a, "can not inject root menu");
|
|
27630
27734
|
const subMenu = inject(`subMenu:${parentMenu.value.uid}`);
|
|
27631
27735
|
if (!subMenu)
|
|
27632
|
-
throwError(COMPONENT_NAME$
|
|
27736
|
+
throwError(COMPONENT_NAME$a, "can not inject sub menu");
|
|
27633
27737
|
const items = ref({});
|
|
27634
27738
|
const subMenus = ref({});
|
|
27635
27739
|
let timeout;
|
|
@@ -28152,9 +28256,9 @@ const menuItemEmits = {
|
|
|
28152
28256
|
click: (item) => isString$1(item.index) && Array.isArray(item.indexPath)
|
|
28153
28257
|
};
|
|
28154
28258
|
|
|
28155
|
-
const COMPONENT_NAME$
|
|
28259
|
+
const COMPONENT_NAME$9 = "ElMenuItem";
|
|
28156
28260
|
const _sfc_main$P = defineComponent({
|
|
28157
|
-
name: COMPONENT_NAME$
|
|
28261
|
+
name: COMPONENT_NAME$9,
|
|
28158
28262
|
components: {
|
|
28159
28263
|
ElTooltip
|
|
28160
28264
|
},
|
|
@@ -28164,11 +28268,11 @@ const _sfc_main$P = defineComponent({
|
|
|
28164
28268
|
const instance = getCurrentInstance();
|
|
28165
28269
|
const rootMenu = inject("rootMenu");
|
|
28166
28270
|
if (!rootMenu)
|
|
28167
|
-
throwError(COMPONENT_NAME$
|
|
28271
|
+
throwError(COMPONENT_NAME$9, "can not inject root menu");
|
|
28168
28272
|
const { parentMenu, paddingStyle, indexPath } = useMenu(instance, toRef(props, "index"));
|
|
28169
28273
|
const subMenu = inject(`subMenu:${parentMenu.value.uid}`);
|
|
28170
28274
|
if (!subMenu)
|
|
28171
|
-
throwError(COMPONENT_NAME$
|
|
28275
|
+
throwError(COMPONENT_NAME$9, "can not inject sub menu");
|
|
28172
28276
|
const active = computed(() => props.index === rootMenu.activeIndex);
|
|
28173
28277
|
const item = reactive({
|
|
28174
28278
|
index: props.index,
|
|
@@ -28252,15 +28356,15 @@ const menuItemGroupProps = {
|
|
|
28252
28356
|
title: String
|
|
28253
28357
|
};
|
|
28254
28358
|
|
|
28255
|
-
const COMPONENT_NAME$
|
|
28359
|
+
const COMPONENT_NAME$8 = "ElMenuItemGroup";
|
|
28256
28360
|
const _sfc_main$O = defineComponent({
|
|
28257
|
-
name: COMPONENT_NAME$
|
|
28361
|
+
name: COMPONENT_NAME$8,
|
|
28258
28362
|
props: menuItemGroupProps,
|
|
28259
28363
|
setup() {
|
|
28260
28364
|
const instance = getCurrentInstance();
|
|
28261
28365
|
const menu = inject("rootMenu");
|
|
28262
28366
|
if (!menu)
|
|
28263
|
-
throwError(COMPONENT_NAME$
|
|
28367
|
+
throwError(COMPONENT_NAME$8, "can not inject root menu");
|
|
28264
28368
|
const levelPadding = computed(() => {
|
|
28265
28369
|
if (menu.props.collapse)
|
|
28266
28370
|
return 20;
|
|
@@ -29345,9 +29449,10 @@ const useSelect$2 = (props, states, ctx) => {
|
|
|
29345
29449
|
};
|
|
29346
29450
|
};
|
|
29347
29451
|
|
|
29452
|
+
const COMPONENT_NAME$7 = "ElSelect";
|
|
29348
29453
|
const _sfc_main$I = defineComponent({
|
|
29349
|
-
name:
|
|
29350
|
-
componentName:
|
|
29454
|
+
name: COMPONENT_NAME$7,
|
|
29455
|
+
componentName: COMPONENT_NAME$7,
|
|
29351
29456
|
components: {
|
|
29352
29457
|
ElInput,
|
|
29353
29458
|
ElSelectMenu: ElSelectMenu$1,
|
|
@@ -29409,8 +29514,9 @@ const _sfc_main$I = defineComponent({
|
|
|
29409
29514
|
collapseTags: Boolean,
|
|
29410
29515
|
popperAppendToBody: {
|
|
29411
29516
|
type: Boolean,
|
|
29412
|
-
default:
|
|
29517
|
+
default: void 0
|
|
29413
29518
|
},
|
|
29519
|
+
teleported: useTooltipContentProps.teleported,
|
|
29414
29520
|
clearIcon: {
|
|
29415
29521
|
type: [String, Object],
|
|
29416
29522
|
default: circleClose
|
|
@@ -29590,6 +29696,7 @@ const _sfc_main$I = defineComponent({
|
|
|
29590
29696
|
var _a, _b;
|
|
29591
29697
|
return (_b = (_a = tooltipRef.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
29592
29698
|
});
|
|
29699
|
+
const { compatTeleported } = useDeprecateAppendToBody(COMPONENT_NAME$7, "popperAppendToBody");
|
|
29593
29700
|
return {
|
|
29594
29701
|
tagInMultiLine,
|
|
29595
29702
|
prefixWidth,
|
|
@@ -29650,7 +29757,8 @@ const _sfc_main$I = defineComponent({
|
|
|
29650
29757
|
selectWrapper,
|
|
29651
29758
|
scrollbar,
|
|
29652
29759
|
wrapperKls,
|
|
29653
|
-
selectTagsStyle
|
|
29760
|
+
selectTagsStyle,
|
|
29761
|
+
compatTeleported
|
|
29654
29762
|
};
|
|
29655
29763
|
}
|
|
29656
29764
|
});
|
|
@@ -29682,7 +29790,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29682
29790
|
visible: _ctx.dropMenuVisible,
|
|
29683
29791
|
"onUpdate:visible": _cache[23] || (_cache[23] = ($event) => _ctx.dropMenuVisible = $event),
|
|
29684
29792
|
placement: "bottom-start",
|
|
29685
|
-
|
|
29793
|
+
teleported: _ctx.compatTeleported,
|
|
29686
29794
|
"popper-class": `el-select__popper ${_ctx.popperClass}`,
|
|
29687
29795
|
"fallback-placements": ["bottom-start", "top-start", "right", "left"],
|
|
29688
29796
|
effect: "light",
|
|
@@ -29901,7 +30009,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29901
30009
|
})
|
|
29902
30010
|
]),
|
|
29903
30011
|
_: 3
|
|
29904
|
-
}, 8, ["visible", "
|
|
30012
|
+
}, 8, ["visible", "teleported", "popper-class", "onShow"])
|
|
29905
30013
|
], 2)), [
|
|
29906
30014
|
[_directive_click_outside, _ctx.handleClose, _ctx.popperPaneRef]
|
|
29907
30015
|
]);
|
|
@@ -30579,52 +30687,56 @@ var Pagination = defineComponent({
|
|
|
30579
30687
|
|
|
30580
30688
|
const ElPagination = withInstall(Pagination);
|
|
30581
30689
|
|
|
30582
|
-
const popconfirmProps =
|
|
30583
|
-
|
|
30584
|
-
|
|
30585
|
-
|
|
30586
|
-
|
|
30587
|
-
|
|
30588
|
-
|
|
30589
|
-
|
|
30590
|
-
|
|
30591
|
-
|
|
30592
|
-
|
|
30593
|
-
|
|
30594
|
-
|
|
30595
|
-
|
|
30596
|
-
|
|
30597
|
-
|
|
30598
|
-
|
|
30599
|
-
|
|
30600
|
-
|
|
30601
|
-
|
|
30602
|
-
|
|
30603
|
-
|
|
30604
|
-
|
|
30605
|
-
|
|
30606
|
-
|
|
30607
|
-
|
|
30608
|
-
|
|
30609
|
-
|
|
30610
|
-
|
|
30611
|
-
|
|
30612
|
-
|
|
30613
|
-
|
|
30614
|
-
|
|
30615
|
-
|
|
30616
|
-
|
|
30617
|
-
|
|
30618
|
-
|
|
30619
|
-
|
|
30620
|
-
|
|
30621
|
-
|
|
30622
|
-
|
|
30623
|
-
|
|
30624
|
-
}
|
|
30690
|
+
const popconfirmProps = {
|
|
30691
|
+
...buildProps({
|
|
30692
|
+
title: {
|
|
30693
|
+
type: String
|
|
30694
|
+
},
|
|
30695
|
+
confirmButtonText: {
|
|
30696
|
+
type: String
|
|
30697
|
+
},
|
|
30698
|
+
cancelButtonText: {
|
|
30699
|
+
type: String
|
|
30700
|
+
},
|
|
30701
|
+
confirmButtonType: {
|
|
30702
|
+
type: String,
|
|
30703
|
+
values: buttonType,
|
|
30704
|
+
default: "primary"
|
|
30705
|
+
},
|
|
30706
|
+
cancelButtonType: {
|
|
30707
|
+
type: String,
|
|
30708
|
+
values: buttonType,
|
|
30709
|
+
default: "text"
|
|
30710
|
+
},
|
|
30711
|
+
icon: {
|
|
30712
|
+
type: definePropType([String, Object]),
|
|
30713
|
+
default: questionFilled
|
|
30714
|
+
},
|
|
30715
|
+
iconColor: {
|
|
30716
|
+
type: String,
|
|
30717
|
+
default: "#f90"
|
|
30718
|
+
},
|
|
30719
|
+
hideIcon: {
|
|
30720
|
+
type: Boolean,
|
|
30721
|
+
default: false
|
|
30722
|
+
},
|
|
30723
|
+
hideAfter: {
|
|
30724
|
+
type: Number,
|
|
30725
|
+
default: 200
|
|
30726
|
+
},
|
|
30727
|
+
onConfirm: {
|
|
30728
|
+
type: definePropType(Function)
|
|
30729
|
+
},
|
|
30730
|
+
onCancel: {
|
|
30731
|
+
type: definePropType(Function)
|
|
30732
|
+
}
|
|
30733
|
+
}),
|
|
30734
|
+
teleported: useTooltipContentProps.teleported
|
|
30735
|
+
};
|
|
30625
30736
|
|
|
30737
|
+
const COMPONENT_NAME$6 = "Elpopperconfirm";
|
|
30626
30738
|
const _sfc_main$C = defineComponent({
|
|
30627
|
-
name:
|
|
30739
|
+
name: COMPONENT_NAME$6,
|
|
30628
30740
|
components: {
|
|
30629
30741
|
ElButton,
|
|
30630
30742
|
ElTooltip,
|
|
@@ -30632,6 +30744,7 @@ const _sfc_main$C = defineComponent({
|
|
|
30632
30744
|
},
|
|
30633
30745
|
props: popconfirmProps,
|
|
30634
30746
|
setup(props) {
|
|
30747
|
+
const { compatTeleported } = useDeprecateAppendToBody(COMPONENT_NAME$6, "appendToBody");
|
|
30635
30748
|
const { t } = useLocale();
|
|
30636
30749
|
const tooltipRef = ref();
|
|
30637
30750
|
const hidePopper = () => {
|
|
@@ -30657,6 +30770,7 @@ const _sfc_main$C = defineComponent({
|
|
|
30657
30770
|
finalConfirmButtonText,
|
|
30658
30771
|
finalCancelButtonText,
|
|
30659
30772
|
tooltipRef,
|
|
30773
|
+
compatTeleported,
|
|
30660
30774
|
confirm,
|
|
30661
30775
|
cancel
|
|
30662
30776
|
};
|
|
@@ -30673,7 +30787,7 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30673
30787
|
trigger: "click",
|
|
30674
30788
|
effect: "light",
|
|
30675
30789
|
"popper-class": "el-popover",
|
|
30676
|
-
|
|
30790
|
+
teleported: _ctx.compatTeleported,
|
|
30677
30791
|
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
30678
30792
|
"hide-after": _ctx.hideAfter,
|
|
30679
30793
|
persistent: ""
|
|
@@ -30721,13 +30835,14 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30721
30835
|
_ctx.$slots.reference ? renderSlot(_ctx.$slots, "reference", { key: 0 }) : createCommentVNode("v-if", true)
|
|
30722
30836
|
]),
|
|
30723
30837
|
_: 3
|
|
30724
|
-
}, 16, ["hide-after"]);
|
|
30838
|
+
}, 16, ["teleported", "hide-after"]);
|
|
30725
30839
|
}
|
|
30726
30840
|
var Popconfirm = /* @__PURE__ */ _export_sfc$1(_sfc_main$C, [["render", _sfc_render$y]]);
|
|
30727
30841
|
|
|
30728
30842
|
const ElPopconfirm = withInstall(Popconfirm);
|
|
30729
30843
|
|
|
30730
30844
|
const usePopoverProps = {
|
|
30845
|
+
appendToBody: { type: Boolean, default: void 0 },
|
|
30731
30846
|
content: useTooltipContentProps.content,
|
|
30732
30847
|
popperStyle: useTooltipContentProps.popperStyle,
|
|
30733
30848
|
popperClass: useTooltipContentProps.popperClass,
|
|
@@ -30739,6 +30854,7 @@ const usePopoverProps = {
|
|
|
30739
30854
|
...useTooltipContentProps.effect,
|
|
30740
30855
|
default: "light"
|
|
30741
30856
|
},
|
|
30857
|
+
teleported: useTooltipContentProps.teleported,
|
|
30742
30858
|
...buildProps({
|
|
30743
30859
|
title: String,
|
|
30744
30860
|
width: {
|
|
@@ -30749,9 +30865,9 @@ const usePopoverProps = {
|
|
|
30749
30865
|
};
|
|
30750
30866
|
|
|
30751
30867
|
const emits = ["update:visible", "after-enter", "after-leave"];
|
|
30752
|
-
const
|
|
30868
|
+
const COMPONENT_NAME$5 = "ElPopover";
|
|
30753
30869
|
const _sfc_main$B = defineComponent({
|
|
30754
|
-
name:
|
|
30870
|
+
name: COMPONENT_NAME$5,
|
|
30755
30871
|
components: {
|
|
30756
30872
|
ElTooltip
|
|
30757
30873
|
},
|
|
@@ -30784,6 +30900,7 @@ const _sfc_main$B = defineComponent({
|
|
|
30784
30900
|
props.popperClass
|
|
30785
30901
|
];
|
|
30786
30902
|
});
|
|
30903
|
+
const { compatTeleported } = useDeprecateAppendToBody(COMPONENT_NAME$5, "appendToBody");
|
|
30787
30904
|
const hide = () => {
|
|
30788
30905
|
var _a;
|
|
30789
30906
|
(_a = tooltipRef.value) == null ? void 0 : _a.hide();
|
|
@@ -30795,6 +30912,7 @@ const _sfc_main$B = defineComponent({
|
|
|
30795
30912
|
emit("after-leave");
|
|
30796
30913
|
};
|
|
30797
30914
|
return {
|
|
30915
|
+
compatTeleported,
|
|
30798
30916
|
kls,
|
|
30799
30917
|
style,
|
|
30800
30918
|
tooltipRef,
|
|
@@ -30818,6 +30936,7 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30818
30936
|
enterable: _ctx.enterable,
|
|
30819
30937
|
"popper-class": _ctx.kls,
|
|
30820
30938
|
"popper-style": _ctx.style,
|
|
30939
|
+
teleported: _ctx.compatTeleported,
|
|
30821
30940
|
persistent: "",
|
|
30822
30941
|
onShow: _ctx.afterEnter,
|
|
30823
30942
|
onHide: _ctx.afterLeave
|
|
@@ -30832,7 +30951,7 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30832
30951
|
_ctx.$slots.reference ? renderSlot(_ctx.$slots, "reference", { key: 0 }) : createCommentVNode("v-if", true)
|
|
30833
30952
|
]),
|
|
30834
30953
|
_: 3
|
|
30835
|
-
}, 16, ["aria-label", "effect", "enterable", "popper-class", "popper-style", "onShow", "onHide"]);
|
|
30954
|
+
}, 16, ["aria-label", "effect", "enterable", "popper-class", "popper-style", "teleported", "onShow", "onHide"]);
|
|
30836
30955
|
}
|
|
30837
30956
|
var Popover = /* @__PURE__ */ _export_sfc$1(_sfc_main$B, [["render", _sfc_render$x]]);
|
|
30838
30957
|
|
|
@@ -33433,8 +33552,9 @@ const SelectProps = {
|
|
|
33433
33552
|
},
|
|
33434
33553
|
popperAppendToBody: {
|
|
33435
33554
|
type: Boolean,
|
|
33436
|
-
default:
|
|
33555
|
+
default: void 0
|
|
33437
33556
|
},
|
|
33557
|
+
teleported: useTooltipContentProps.teleported,
|
|
33438
33558
|
popperClass: {
|
|
33439
33559
|
type: String,
|
|
33440
33560
|
default: ""
|
|
@@ -33797,9 +33917,11 @@ const TAG_BASE_WIDTH = {
|
|
|
33797
33917
|
default: 42,
|
|
33798
33918
|
small: 33
|
|
33799
33919
|
};
|
|
33920
|
+
const COMPONENT_NAME$4 = "ElSelectV2";
|
|
33800
33921
|
const useSelect = (props, emit) => {
|
|
33801
33922
|
const { t } = useLocale();
|
|
33802
33923
|
const { form: elForm, formItem: elFormItem } = useFormItem();
|
|
33924
|
+
const { compatTeleported } = useDeprecateAppendToBody(COMPONENT_NAME$4, "popperAppendToBody");
|
|
33803
33925
|
const states = reactive({
|
|
33804
33926
|
inputValue: DEFAULT_INPUT_PLACEHOLDER,
|
|
33805
33927
|
displayInputValue: DEFAULT_INPUT_PLACEHOLDER,
|
|
@@ -34376,7 +34498,7 @@ const useSelect = (props, emit) => {
|
|
|
34376
34498
|
popperRef,
|
|
34377
34499
|
validateState,
|
|
34378
34500
|
validateIcon,
|
|
34379
|
-
|
|
34501
|
+
compatTeleported,
|
|
34380
34502
|
debouncedOnInputChange,
|
|
34381
34503
|
deleteTag,
|
|
34382
34504
|
getLabel,
|
|
@@ -34472,7 +34594,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34472
34594
|
ref: "popper",
|
|
34473
34595
|
visible: _ctx.dropdownMenuVisible,
|
|
34474
34596
|
"onUpdate:visible": _cache[22] || (_cache[22] = ($event) => _ctx.dropdownMenuVisible = $event),
|
|
34475
|
-
|
|
34597
|
+
teleported: _ctx.compatTeleported,
|
|
34476
34598
|
"popper-class": `el-select-v2__popper ${_ctx.popperClass}`,
|
|
34477
34599
|
"gpu-acceleration": false,
|
|
34478
34600
|
"stop-popper-mouse-event": false,
|
|
@@ -34716,7 +34838,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34716
34838
|
}, 8, ["data", "width", "hovering-index", "scrollbar-always-on"])
|
|
34717
34839
|
]),
|
|
34718
34840
|
_: 3
|
|
34719
|
-
}, 8, ["visible", "
|
|
34841
|
+
}, 8, ["visible", "teleported", "popper-class", "popper-options", "onShow"])
|
|
34720
34842
|
], 34)), [
|
|
34721
34843
|
[_directive_click_outside, _ctx.handleClickOutside, _ctx.popperRef]
|
|
34722
34844
|
]);
|
|
@@ -47424,6 +47546,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
47424
47546
|
default: true
|
|
47425
47547
|
},
|
|
47426
47548
|
center: Boolean,
|
|
47549
|
+
draggable: Boolean,
|
|
47427
47550
|
roundButton: {
|
|
47428
47551
|
default: false,
|
|
47429
47552
|
type: Boolean
|
|
@@ -47482,8 +47605,10 @@ const _sfc_main$1 = defineComponent({
|
|
|
47482
47605
|
const btnSize = useSize(computed(() => props.buttonSize), { prop: true, form: true, formItem: true });
|
|
47483
47606
|
const iconComponent = computed(() => state.icon || TypeComponentsMap[state.type] || "");
|
|
47484
47607
|
const hasMessage = computed(() => !!state.message);
|
|
47485
|
-
const
|
|
47486
|
-
const
|
|
47608
|
+
const rootRef = ref();
|
|
47609
|
+
const headerRef = ref();
|
|
47610
|
+
const inputRef = ref();
|
|
47611
|
+
const confirmRef = ref();
|
|
47487
47612
|
const confirmButtonClasses = computed(() => state.confirmButtonClass);
|
|
47488
47613
|
watch(() => state.inputValue, async (val) => {
|
|
47489
47614
|
await nextTick();
|
|
@@ -47514,6 +47639,8 @@ const _sfc_main$1 = defineComponent({
|
|
|
47514
47639
|
state.validateError = false;
|
|
47515
47640
|
}
|
|
47516
47641
|
});
|
|
47642
|
+
const draggable = computed(() => props.draggable);
|
|
47643
|
+
useDraggable(rootRef, headerRef, draggable);
|
|
47517
47644
|
onMounted(async () => {
|
|
47518
47645
|
await nextTick();
|
|
47519
47646
|
if (props.closeOnHashChange) {
|
|
@@ -47539,6 +47666,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
47539
47666
|
handleAction(state.distinguishCancelAndClose ? "close" : "cancel");
|
|
47540
47667
|
}
|
|
47541
47668
|
};
|
|
47669
|
+
const overlayEvent = useSameTarget(handleWrapperClick);
|
|
47542
47670
|
const handleInputEnter = () => {
|
|
47543
47671
|
if (state.inputType !== "textarea") {
|
|
47544
47672
|
return handleAction("confirm");
|
|
@@ -47603,12 +47731,15 @@ const _sfc_main$1 = defineComponent({
|
|
|
47603
47731
|
useRestoreActive(visible);
|
|
47604
47732
|
return {
|
|
47605
47733
|
...toRefs(state),
|
|
47734
|
+
overlayEvent,
|
|
47606
47735
|
visible,
|
|
47607
47736
|
hasMessage,
|
|
47608
47737
|
typeClass,
|
|
47609
47738
|
btnSize,
|
|
47610
47739
|
iconComponent,
|
|
47611
47740
|
confirmButtonClasses,
|
|
47741
|
+
rootRef,
|
|
47742
|
+
headerRef,
|
|
47612
47743
|
inputRef,
|
|
47613
47744
|
confirmRef,
|
|
47614
47745
|
doClose,
|
|
@@ -47623,6 +47754,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
47623
47754
|
const _hoisted_1$1 = ["aria-label"];
|
|
47624
47755
|
const _hoisted_2$1 = {
|
|
47625
47756
|
key: 0,
|
|
47757
|
+
ref: "headerRef",
|
|
47626
47758
|
class: "el-message-box__header"
|
|
47627
47759
|
};
|
|
47628
47760
|
const _hoisted_3$1 = { class: "el-message-box__title" };
|
|
@@ -47645,137 +47777,145 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
47645
47777
|
const _directive_trap_focus = resolveDirective("trap-focus");
|
|
47646
47778
|
return openBlock(), createBlock(Transition, {
|
|
47647
47779
|
name: "fade-in-linear",
|
|
47648
|
-
onAfterLeave: _cache[
|
|
47780
|
+
onAfterLeave: _cache[11] || (_cache[11] = ($event) => _ctx.$emit("vanish"))
|
|
47649
47781
|
}, {
|
|
47650
47782
|
default: withCtx(() => [
|
|
47651
47783
|
withDirectives(createVNode(_component_el_overlay, {
|
|
47652
47784
|
"z-index": _ctx.zIndex,
|
|
47653
47785
|
"overlay-class": ["is-message-box", _ctx.modalClass],
|
|
47654
|
-
mask: _ctx.modal
|
|
47655
|
-
onClick: withModifiers(_ctx.handleWrapperClick, ["self"])
|
|
47786
|
+
mask: _ctx.modal
|
|
47656
47787
|
}, {
|
|
47657
47788
|
default: withCtx(() => [
|
|
47658
|
-
|
|
47659
|
-
|
|
47660
|
-
|
|
47661
|
-
|
|
47662
|
-
|
|
47663
|
-
class: normalizeClass([
|
|
47664
|
-
"el-message-box",
|
|
47665
|
-
_ctx.customClass,
|
|
47666
|
-
{ "el-message-box--center": _ctx.center }
|
|
47667
|
-
]),
|
|
47668
|
-
style: normalizeStyle(_ctx.customStyle)
|
|
47789
|
+
createElementVNode("div", {
|
|
47790
|
+
class: "el-overlay-message-box",
|
|
47791
|
+
onClick: _cache[8] || (_cache[8] = (...args) => _ctx.overlayEvent.onClick && _ctx.overlayEvent.onClick(...args)),
|
|
47792
|
+
onMousedown: _cache[9] || (_cache[9] = (...args) => _ctx.overlayEvent.onMousedown && _ctx.overlayEvent.onMousedown(...args)),
|
|
47793
|
+
onMouseup: _cache[10] || (_cache[10] = (...args) => _ctx.overlayEvent.onMouseup && _ctx.overlayEvent.onMouseup(...args))
|
|
47669
47794
|
}, [
|
|
47670
|
-
|
|
47671
|
-
|
|
47672
|
-
|
|
47795
|
+
withDirectives((openBlock(), createElementBlock("div", {
|
|
47796
|
+
ref: "rootRef",
|
|
47797
|
+
role: "dialog",
|
|
47798
|
+
"aria-label": _ctx.title || "dialog",
|
|
47799
|
+
"aria-modal": "true",
|
|
47800
|
+
class: normalizeClass([
|
|
47801
|
+
"el-message-box",
|
|
47802
|
+
_ctx.customClass,
|
|
47803
|
+
{ "el-message-box--center": _ctx.center, "is-draggable": _ctx.draggable }
|
|
47804
|
+
]),
|
|
47805
|
+
style: normalizeStyle(_ctx.customStyle),
|
|
47806
|
+
onClick: _cache[7] || (_cache[7] = withModifiers(() => {
|
|
47807
|
+
}, ["stop"]))
|
|
47808
|
+
}, [
|
|
47809
|
+
_ctx.title !== null && _ctx.title !== void 0 ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
|
|
47810
|
+
createElementVNode("div", _hoisted_3$1, [
|
|
47811
|
+
_ctx.iconComponent && _ctx.center ? (openBlock(), createBlock(_component_el_icon, {
|
|
47812
|
+
key: 0,
|
|
47813
|
+
class: normalizeClass(["el-message-box__status", _ctx.typeClass])
|
|
47814
|
+
}, {
|
|
47815
|
+
default: withCtx(() => [
|
|
47816
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
|
|
47817
|
+
]),
|
|
47818
|
+
_: 1
|
|
47819
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true),
|
|
47820
|
+
createElementVNode("span", null, toDisplayString(_ctx.title), 1)
|
|
47821
|
+
]),
|
|
47822
|
+
_ctx.showClose ? (openBlock(), createElementBlock("button", {
|
|
47673
47823
|
key: 0,
|
|
47674
|
-
|
|
47675
|
-
|
|
47676
|
-
|
|
47677
|
-
|
|
47678
|
-
]),
|
|
47679
|
-
|
|
47680
|
-
|
|
47681
|
-
|
|
47824
|
+
type: "button",
|
|
47825
|
+
class: "el-message-box__headerbtn",
|
|
47826
|
+
"aria-label": "Close",
|
|
47827
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.handleAction(_ctx.distinguishCancelAndClose ? "close" : "cancel")),
|
|
47828
|
+
onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers(($event) => _ctx.handleAction(_ctx.distinguishCancelAndClose ? "close" : "cancel"), ["prevent"]), ["enter"]))
|
|
47829
|
+
}, [
|
|
47830
|
+
createVNode(_component_el_icon, { class: "el-message-box__close" }, {
|
|
47831
|
+
default: withCtx(() => [
|
|
47832
|
+
createVNode(_component_close)
|
|
47833
|
+
]),
|
|
47834
|
+
_: 1
|
|
47835
|
+
})
|
|
47836
|
+
], 32)) : createCommentVNode("v-if", true)
|
|
47837
|
+
], 512)) : createCommentVNode("v-if", true),
|
|
47838
|
+
createElementVNode("div", _hoisted_4$1, [
|
|
47839
|
+
createElementVNode("div", _hoisted_5$1, [
|
|
47840
|
+
_ctx.iconComponent && !_ctx.center && _ctx.hasMessage ? (openBlock(), createBlock(_component_el_icon, {
|
|
47841
|
+
key: 0,
|
|
47842
|
+
class: normalizeClass(["el-message-box__status", _ctx.typeClass])
|
|
47843
|
+
}, {
|
|
47844
|
+
default: withCtx(() => [
|
|
47845
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
|
|
47846
|
+
]),
|
|
47847
|
+
_: 1
|
|
47848
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true),
|
|
47849
|
+
_ctx.hasMessage ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
47850
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
47851
|
+
!_ctx.dangerouslyUseHTMLString ? (openBlock(), createElementBlock("p", _hoisted_7, toDisplayString(_ctx.message), 1)) : (openBlock(), createElementBlock("p", {
|
|
47852
|
+
key: 1,
|
|
47853
|
+
innerHTML: _ctx.message
|
|
47854
|
+
}, null, 8, _hoisted_8))
|
|
47855
|
+
])
|
|
47856
|
+
])) : createCommentVNode("v-if", true)
|
|
47857
|
+
]),
|
|
47858
|
+
withDirectives(createElementVNode("div", _hoisted_9, [
|
|
47859
|
+
createVNode(_component_el_input, {
|
|
47860
|
+
ref: "inputRef",
|
|
47861
|
+
modelValue: _ctx.inputValue,
|
|
47862
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.inputValue = $event),
|
|
47863
|
+
type: _ctx.inputType,
|
|
47864
|
+
placeholder: _ctx.inputPlaceholder,
|
|
47865
|
+
class: normalizeClass({ invalid: _ctx.validateError }),
|
|
47866
|
+
onKeydown: withKeys(withModifiers(_ctx.handleInputEnter, ["prevent"]), ["enter"])
|
|
47867
|
+
}, null, 8, ["modelValue", "type", "placeholder", "class", "onKeydown"]),
|
|
47868
|
+
createElementVNode("div", {
|
|
47869
|
+
class: "el-message-box__errormsg",
|
|
47870
|
+
style: normalizeStyle({
|
|
47871
|
+
visibility: !!_ctx.editorErrorMessage ? "visible" : "hidden"
|
|
47872
|
+
})
|
|
47873
|
+
}, toDisplayString(_ctx.editorErrorMessage), 5)
|
|
47874
|
+
], 512), [
|
|
47875
|
+
[vShow, _ctx.showInput]
|
|
47876
|
+
])
|
|
47682
47877
|
]),
|
|
47683
|
-
|
|
47684
|
-
|
|
47685
|
-
|
|
47686
|
-
|
|
47687
|
-
|
|
47688
|
-
|
|
47689
|
-
|
|
47690
|
-
|
|
47691
|
-
|
|
47878
|
+
createElementVNode("div", _hoisted_10, [
|
|
47879
|
+
_ctx.showCancelButton ? (openBlock(), createBlock(_component_el_button, {
|
|
47880
|
+
key: 0,
|
|
47881
|
+
loading: _ctx.cancelButtonLoading,
|
|
47882
|
+
class: normalizeClass([_ctx.cancelButtonClass]),
|
|
47883
|
+
round: _ctx.roundButton,
|
|
47884
|
+
size: _ctx.btnSize,
|
|
47885
|
+
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.handleAction("cancel")),
|
|
47886
|
+
onKeydown: _cache[4] || (_cache[4] = withKeys(withModifiers(($event) => _ctx.handleAction("cancel"), ["prevent"]), ["enter"]))
|
|
47887
|
+
}, {
|
|
47692
47888
|
default: withCtx(() => [
|
|
47693
|
-
|
|
47889
|
+
createTextVNode(toDisplayString(_ctx.cancelButtonText || _ctx.t("el.messagebox.cancel")), 1)
|
|
47694
47890
|
]),
|
|
47695
47891
|
_: 1
|
|
47696
|
-
})
|
|
47697
|
-
|
|
47698
|
-
|
|
47699
|
-
|
|
47700
|
-
|
|
47701
|
-
|
|
47702
|
-
|
|
47703
|
-
|
|
47892
|
+
}, 8, ["loading", "class", "round", "size"])) : createCommentVNode("v-if", true),
|
|
47893
|
+
withDirectives(createVNode(_component_el_button, {
|
|
47894
|
+
ref: "confirmRef",
|
|
47895
|
+
type: "primary",
|
|
47896
|
+
loading: _ctx.confirmButtonLoading,
|
|
47897
|
+
class: normalizeClass([_ctx.confirmButtonClasses]),
|
|
47898
|
+
round: _ctx.roundButton,
|
|
47899
|
+
disabled: _ctx.confirmButtonDisabled,
|
|
47900
|
+
size: _ctx.btnSize,
|
|
47901
|
+
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.handleAction("confirm")),
|
|
47902
|
+
onKeydown: _cache[6] || (_cache[6] = withKeys(withModifiers(($event) => _ctx.handleAction("confirm"), ["prevent"]), ["enter"]))
|
|
47704
47903
|
}, {
|
|
47705
47904
|
default: withCtx(() => [
|
|
47706
|
-
(
|
|
47905
|
+
createTextVNode(toDisplayString(_ctx.confirmButtonText || _ctx.t("el.messagebox.confirm")), 1)
|
|
47707
47906
|
]),
|
|
47708
47907
|
_: 1
|
|
47709
|
-
}, 8, ["class"
|
|
47710
|
-
|
|
47711
|
-
|
|
47712
|
-
!_ctx.dangerouslyUseHTMLString ? (openBlock(), createElementBlock("p", _hoisted_7, toDisplayString(_ctx.message), 1)) : (openBlock(), createElementBlock("p", {
|
|
47713
|
-
key: 1,
|
|
47714
|
-
innerHTML: _ctx.message
|
|
47715
|
-
}, null, 8, _hoisted_8))
|
|
47716
|
-
])
|
|
47717
|
-
])) : createCommentVNode("v-if", true)
|
|
47718
|
-
]),
|
|
47719
|
-
withDirectives(createElementVNode("div", _hoisted_9, [
|
|
47720
|
-
createVNode(_component_el_input, {
|
|
47721
|
-
ref: "inputRef",
|
|
47722
|
-
modelValue: _ctx.inputValue,
|
|
47723
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.inputValue = $event),
|
|
47724
|
-
type: _ctx.inputType,
|
|
47725
|
-
placeholder: _ctx.inputPlaceholder,
|
|
47726
|
-
class: normalizeClass({ invalid: _ctx.validateError }),
|
|
47727
|
-
onKeydown: withKeys(withModifiers(_ctx.handleInputEnter, ["prevent"]), ["enter"])
|
|
47728
|
-
}, null, 8, ["modelValue", "type", "placeholder", "class", "onKeydown"]),
|
|
47729
|
-
createElementVNode("div", {
|
|
47730
|
-
class: "el-message-box__errormsg",
|
|
47731
|
-
style: normalizeStyle({
|
|
47732
|
-
visibility: !!_ctx.editorErrorMessage ? "visible" : "hidden"
|
|
47733
|
-
})
|
|
47734
|
-
}, toDisplayString(_ctx.editorErrorMessage), 5)
|
|
47735
|
-
], 512), [
|
|
47736
|
-
[vShow, _ctx.showInput]
|
|
47737
|
-
])
|
|
47738
|
-
]),
|
|
47739
|
-
createElementVNode("div", _hoisted_10, [
|
|
47740
|
-
_ctx.showCancelButton ? (openBlock(), createBlock(_component_el_button, {
|
|
47741
|
-
key: 0,
|
|
47742
|
-
loading: _ctx.cancelButtonLoading,
|
|
47743
|
-
class: normalizeClass([_ctx.cancelButtonClass]),
|
|
47744
|
-
round: _ctx.roundButton,
|
|
47745
|
-
size: _ctx.btnSize,
|
|
47746
|
-
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.handleAction("cancel")),
|
|
47747
|
-
onKeydown: _cache[4] || (_cache[4] = withKeys(withModifiers(($event) => _ctx.handleAction("cancel"), ["prevent"]), ["enter"]))
|
|
47748
|
-
}, {
|
|
47749
|
-
default: withCtx(() => [
|
|
47750
|
-
createTextVNode(toDisplayString(_ctx.cancelButtonText || _ctx.t("el.messagebox.cancel")), 1)
|
|
47751
|
-
]),
|
|
47752
|
-
_: 1
|
|
47753
|
-
}, 8, ["loading", "class", "round", "size"])) : createCommentVNode("v-if", true),
|
|
47754
|
-
withDirectives(createVNode(_component_el_button, {
|
|
47755
|
-
ref: "confirmRef",
|
|
47756
|
-
type: "primary",
|
|
47757
|
-
loading: _ctx.confirmButtonLoading,
|
|
47758
|
-
class: normalizeClass([_ctx.confirmButtonClasses]),
|
|
47759
|
-
round: _ctx.roundButton,
|
|
47760
|
-
disabled: _ctx.confirmButtonDisabled,
|
|
47761
|
-
size: _ctx.btnSize,
|
|
47762
|
-
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.handleAction("confirm")),
|
|
47763
|
-
onKeydown: _cache[6] || (_cache[6] = withKeys(withModifiers(($event) => _ctx.handleAction("confirm"), ["prevent"]), ["enter"]))
|
|
47764
|
-
}, {
|
|
47765
|
-
default: withCtx(() => [
|
|
47766
|
-
createTextVNode(toDisplayString(_ctx.confirmButtonText || _ctx.t("el.messagebox.confirm")), 1)
|
|
47767
|
-
]),
|
|
47768
|
-
_: 1
|
|
47769
|
-
}, 8, ["loading", "class", "round", "disabled", "size"]), [
|
|
47770
|
-
[vShow, _ctx.showConfirmButton]
|
|
47908
|
+
}, 8, ["loading", "class", "round", "disabled", "size"]), [
|
|
47909
|
+
[vShow, _ctx.showConfirmButton]
|
|
47910
|
+
])
|
|
47771
47911
|
])
|
|
47912
|
+
], 14, _hoisted_1$1)), [
|
|
47913
|
+
[_directive_trap_focus]
|
|
47772
47914
|
])
|
|
47773
|
-
],
|
|
47774
|
-
[_directive_trap_focus]
|
|
47775
|
-
])
|
|
47915
|
+
], 32)
|
|
47776
47916
|
]),
|
|
47777
47917
|
_: 3
|
|
47778
|
-
}, 8, ["z-index", "overlay-class", "mask"
|
|
47918
|
+
}, 8, ["z-index", "overlay-class", "mask"]), [
|
|
47779
47919
|
[vShow, _ctx.visible]
|
|
47780
47920
|
])
|
|
47781
47921
|
]),
|
|
@@ -48258,4 +48398,4 @@ var installer = makeInstaller([...Components, ...Plugins]);
|
|
|
48258
48398
|
const install = installer.install;
|
|
48259
48399
|
const version = installer.version;
|
|
48260
48400
|
|
|
48261
|
-
export { BAR_MAP, CASCADER_PANEL_INJECTION_KEY, CHANGE_EVENT, ClickOutside, CommonPicker, CommonProps, DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, DefaultProps, FixedSizeGrid$1 as DynamicSizeGrid, DynamicSizeList$1 as DynamicSizeList, Effect, ElAffix, ElAlert, ElAside, ElAutocomplete, ElAvatar, ElBacktop, ElBadge, ElBreadcrumb, ElBreadcrumbItem, ElButton, ElButtonGroup$1 as ElButtonGroup, ElCalendar, ElCard, ElCarousel, ElCarouselItem, ElCascader, ElCascaderPanel, ElCheckTag, ElCheckbox, ElCheckboxButton, ElCheckboxGroup$1 as ElCheckboxGroup, ElCol, ElCollapse, ElCollapseItem, ElCollapseTransition, ElColorPicker, ElConfigProvider, ElContainer, ElDatePicker, ElDescriptions, ElDescriptionsItem, ElDialog, ElDivider, ElDrawer, ElDropdown, ElDropdownItem, ElDropdownMenu, ElEmpty, ElFooter, ElForm, ElFormItem, ElHeader, ElIcon, ElImage, ElImageViewer, ElInfiniteScroll, ElInput, ElInputNumber, ElLink, ElLoading, ElLoadingDirective, ElLoadingService, ElMain, ElMenu, ElMenuItem, ElMenuItemGroup, ElMessage, ElMessageBox, ElNotification, ElOption$1 as ElOption, ElOptionGroup, ElOverlay, ElPageHeader, ElPagination, ElPopconfirm, ElPopover, ElPopoverDirective, ElPopper, ElPopperArrow, ElPopperContent, ElPopperTrigger, ElProgress, ElRadio, ElRadioButton, ElRadioGroup, ElRate, ElResult, ElRow, ElScrollbar, ElSelect, ElSelectV2, ElSkeleton, ElSkeletonItem, ElSlider, ElSpace, ElStep, ElSteps, ElSubMenu, ElSwitch, ElTabPane, ElTable, ElTableColumn, ElTabs, ElTag, ElTimePicker, ElTimeSelect, ElTimeline, ElTimelineItem, ElTooltip, ElTransfer, ElTree, ElTreeV2, ElUpload, ExpandTrigger$1 as ExpandTrigger, FORWARD_REF_INJECTION_KEY, FixedSizeGrid$3 as FixedSizeGrid, FixedSizeList$1 as FixedSizeList, ID_INJECTION_KEY, IconComponentMap, IconMap, Mousewheel, POPPER_CONTAINER_ID, POPPER_CONTAINER_SELECTOR, POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY, PopupManager, RepeatClick, Resize, TOOLTIP_INJECTION_KEY, TimePickPanel, TrapFocus, affixEmits, affixProps, alertEffects, alertEmits, alertProps, avatarEmits, avatarProps, backtopEmits, backtopProps, badgeProps, breadcrumbItemProps, breadcrumbProps, buildLocaleContext, buildTranslator, buttonEmits, buttonGroupContextKey, buttonNativeType, buttonProps, buttonType, calendarEmits, calendarProps, cardProps, checkTagEmits, checkTagProps, colProps, configProviderContextKey, configProviderProps, createModelToggleComposable, installer as default, dialogEmits, dialogProps, dividerProps, drawerEmits, drawerProps, elBreadcrumbKey, elFormItemKey, elFormKey, elPaginationKey, emptyProps, extractDateFormat, extractTimeFormat, iconProps, imageEmits, imageProps, imageViewerEmits, imageViewerProps, inputEmits, inputNumberEmits, inputNumberProps, inputProps, install, linkEmits, linkProps, makeInstaller, menuEmits, menuItemEmits, menuItemGroupProps, menuItemProps, menuProps, messageConfig, messageEmits, messageProps, messageTypes, notificationEmits, notificationProps, notificationTypes, overlayEmits, overlayProps, pageHeaderEmits, pageHeaderProps, paginationEmits, paginationProps, popconfirmProps, progressProps, provideGlobalConfig, radioButtonProps, radioEmits, radioGroupEmits, radioGroupKey, radioGroupProps, radioProps, radioPropsBase, rangeArr, rateEmits, rateProps, renderThumbStyle$1 as renderThumbStyle, resultProps, rowProps, scrollbarContextKey, scrollbarEmits, scrollbarProps, selectGroupKey, selectKey, selectV2InjectionKey, skeletonItemProps, skeletonProps, spaceProps, subMenuProps, switchEmits, switchProps, tabBar, tabNavProps, tabPaneProps, tabsEmits, tabsProps, tabsRootContextKey, tagEmits, tagProps, thumbProps, timePickerDefaultProps, timelineItemProps, translate, useAttrs, useCascaderConfig, useDelayedRender, useDelayedToggle, useDelayedToggleProps, useDialog, useDisabled$1 as useDisabled, useEscapeKeydown, useFocus, useFormItem, useForwardRef, useForwardRefDirective, useGlobalConfig, useId, useLocale, useLockscreen, useModal, useModelToggle$1 as useModelToggle, useModelToggleEmits$1 as useModelToggleEmits, useModelToggleProps$1 as useModelToggleProps, useNamespace, usePopperArrowProps, usePopperContainer, usePopperContentProps, usePopperCoreConfigProps, usePopperProps, usePopperTriggerProps, usePreventGlobal, useProp, useRadio, useRestoreActive, useSameTarget, useSize, useSizeProp, useSpace, useTeleport, useThrottleRender, useTimeout, useTooltipContentProps, useTooltipProps, useTooltipTriggerProps, useTransitionFallthrough, useTransitionFallthroughEmits, version, virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps };
|
|
48401
|
+
export { BAR_MAP, CASCADER_PANEL_INJECTION_KEY, CHANGE_EVENT, ClickOutside, CommonPicker, CommonProps, DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, DefaultProps, FixedSizeGrid$1 as DynamicSizeGrid, DynamicSizeList$1 as DynamicSizeList, Effect, ElAffix, ElAlert, ElAside, ElAutocomplete, ElAvatar, ElBacktop, ElBadge, ElBreadcrumb, ElBreadcrumbItem, ElButton, ElButtonGroup$1 as ElButtonGroup, ElCalendar, ElCard, ElCarousel, ElCarouselItem, ElCascader, ElCascaderPanel, ElCheckTag, ElCheckbox, ElCheckboxButton, ElCheckboxGroup$1 as ElCheckboxGroup, ElCol, ElCollapse, ElCollapseItem, ElCollapseTransition, ElColorPicker, ElConfigProvider, ElContainer, ElDatePicker, ElDescriptions, ElDescriptionsItem, ElDialog, ElDivider, ElDrawer, ElDropdown, ElDropdownItem, ElDropdownMenu, ElEmpty, ElFooter, ElForm, ElFormItem, ElHeader, ElIcon, ElImage, ElImageViewer, ElInfiniteScroll, ElInput, ElInputNumber, ElLink, ElLoading, ElLoadingDirective, ElLoadingService, ElMain, ElMenu, ElMenuItem, ElMenuItemGroup, ElMessage, ElMessageBox, ElNotification, ElOption$1 as ElOption, ElOptionGroup, ElOverlay, ElPageHeader, ElPagination, ElPopconfirm, ElPopover, ElPopoverDirective, ElPopper, ElPopperArrow, ElPopperContent, ElPopperTrigger, ElProgress, ElRadio, ElRadioButton, ElRadioGroup, ElRate, ElResult, ElRow, ElScrollbar, ElSelect, ElSelectV2, ElSkeleton, ElSkeletonItem, ElSlider, ElSpace, ElStep, ElSteps, ElSubMenu, ElSwitch, ElTabPane, ElTable, ElTableColumn, ElTabs, ElTag, ElTimePicker, ElTimeSelect, ElTimeline, ElTimelineItem, ElTooltip, ElTransfer, ElTree, ElTreeV2, ElUpload, ExpandTrigger$1 as ExpandTrigger, FORWARD_REF_INJECTION_KEY, FixedSizeGrid$3 as FixedSizeGrid, FixedSizeList$1 as FixedSizeList, ID_INJECTION_KEY, IconComponentMap, IconMap, Mousewheel, POPPER_CONTAINER_ID, POPPER_CONTAINER_SELECTOR, POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY, PopupManager, RepeatClick, Resize, TOOLTIP_INJECTION_KEY, TimePickPanel, TrapFocus, affixEmits, affixProps, alertEffects, alertEmits, alertProps, avatarEmits, avatarProps, backtopEmits, backtopProps, badgeProps, breadcrumbItemProps, breadcrumbProps, buildLocaleContext, buildTranslator, buttonEmits, buttonGroupContextKey, buttonNativeType, buttonProps, buttonType, calendarEmits, calendarProps, cardProps, checkTagEmits, checkTagProps, colProps, configProviderContextKey, configProviderProps, createModelToggleComposable, installer as default, dialogEmits, dialogProps, dividerProps, drawerEmits, drawerProps, elBreadcrumbKey, elFormItemKey, elFormKey, elPaginationKey, emptyProps, extractDateFormat, extractTimeFormat, iconProps, imageEmits, imageProps, imageViewerEmits, imageViewerProps, inputEmits, inputNumberEmits, inputNumberProps, inputProps, install, linkEmits, linkProps, makeInstaller, menuEmits, menuItemEmits, menuItemGroupProps, menuItemProps, menuProps, messageConfig, messageEmits, messageProps, messageTypes, notificationEmits, notificationProps, notificationTypes, overlayEmits, overlayProps, pageHeaderEmits, pageHeaderProps, paginationEmits, paginationProps, popconfirmProps, progressProps, provideGlobalConfig, radioButtonProps, radioEmits, radioGroupEmits, radioGroupKey, radioGroupProps, radioProps, radioPropsBase, rangeArr, rateEmits, rateProps, renderThumbStyle$1 as renderThumbStyle, resultProps, rowProps, scrollbarContextKey, scrollbarEmits, scrollbarProps, selectGroupKey, selectKey, selectV2InjectionKey, skeletonItemProps, skeletonProps, spaceProps, subMenuProps, switchEmits, switchProps, tabBar, tabNavProps, tabPaneProps, tabsEmits, tabsProps, tabsRootContextKey, tagEmits, tagProps, thumbProps, timePickerDefaultProps, timelineItemProps, translate, useAttrs, useCascaderConfig, useDelayedRender, useDelayedToggle, useDelayedToggleProps, useDeprecateAppendToBody, useDeprecated, useDialog, useDisabled$1 as useDisabled, useDraggable, useEscapeKeydown, useFocus, useFormItem, useForwardRef, useForwardRefDirective, useGlobalConfig, useId, useLocale, useLockscreen, useModal, useModelToggle$1 as useModelToggle, useModelToggleEmits$1 as useModelToggleEmits, useModelToggleProps$1 as useModelToggleProps, useNamespace, usePopperArrowProps, usePopperContainer, usePopperContentProps, usePopperCoreConfigProps, usePopperProps, usePopperTriggerProps, usePreventGlobal, useProp, useRadio, useRestoreActive, useSameTarget, useSize, useSizeProp, useSpace, useTeleport, useThrottleRender, useTimeout, useTooltipContentProps, useTooltipProps, useTooltipTriggerProps, useTransitionFallthrough, useTransitionFallthroughEmits, version, virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps };
|