@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.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Element Plus v0.0.
|
|
1
|
+
/*! Element Plus v0.0.20220204 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
@@ -3019,6 +3019,73 @@
|
|
|
3019
3019
|
return vue.computed(() => disabled.value || vue.unref(fallback) || (form == null ? void 0 : form.disabled) || false);
|
|
3020
3020
|
};
|
|
3021
3021
|
|
|
3022
|
+
const useDeprecated = ({ from, replacement, scope, version, ref }, condition) => {
|
|
3023
|
+
vue.watch(() => vue.unref(condition), (val) => {
|
|
3024
|
+
}, {
|
|
3025
|
+
immediate: true
|
|
3026
|
+
});
|
|
3027
|
+
};
|
|
3028
|
+
|
|
3029
|
+
const useDraggable = (targetRef, dragRef, draggable) => {
|
|
3030
|
+
let transform = {
|
|
3031
|
+
offsetX: 0,
|
|
3032
|
+
offsetY: 0
|
|
3033
|
+
};
|
|
3034
|
+
const onMousedown = (e) => {
|
|
3035
|
+
const downX = e.clientX;
|
|
3036
|
+
const downY = e.clientY;
|
|
3037
|
+
const { offsetX, offsetY } = transform;
|
|
3038
|
+
const targetRect = targetRef.value.getBoundingClientRect();
|
|
3039
|
+
const targetLeft = targetRect.left;
|
|
3040
|
+
const targetTop = targetRect.top;
|
|
3041
|
+
const targetWidth = targetRect.width;
|
|
3042
|
+
const targetHeight = targetRect.height;
|
|
3043
|
+
const clientWidth = document.documentElement.clientWidth;
|
|
3044
|
+
const clientHeight = document.documentElement.clientHeight;
|
|
3045
|
+
const minLeft = -targetLeft + offsetX;
|
|
3046
|
+
const minTop = -targetTop + offsetY;
|
|
3047
|
+
const maxLeft = clientWidth - targetLeft - targetWidth + offsetX;
|
|
3048
|
+
const maxTop = clientHeight - targetTop - targetHeight + offsetY;
|
|
3049
|
+
const onMousemove = (e2) => {
|
|
3050
|
+
const moveX = Math.min(Math.max(offsetX + e2.clientX - downX, minLeft), maxLeft);
|
|
3051
|
+
const moveY = Math.min(Math.max(offsetY + e2.clientY - downY, minTop), maxTop);
|
|
3052
|
+
transform = {
|
|
3053
|
+
offsetX: moveX,
|
|
3054
|
+
offsetY: moveY
|
|
3055
|
+
};
|
|
3056
|
+
targetRef.value.style.transform = `translate(${addUnit(moveX)}, ${addUnit(moveY)})`;
|
|
3057
|
+
};
|
|
3058
|
+
const onMouseup = () => {
|
|
3059
|
+
document.removeEventListener("mousemove", onMousemove);
|
|
3060
|
+
document.removeEventListener("mouseup", onMouseup);
|
|
3061
|
+
};
|
|
3062
|
+
document.addEventListener("mousemove", onMousemove);
|
|
3063
|
+
document.addEventListener("mouseup", onMouseup);
|
|
3064
|
+
};
|
|
3065
|
+
const onDraggable = () => {
|
|
3066
|
+
if (dragRef.value && targetRef.value) {
|
|
3067
|
+
dragRef.value.addEventListener("mousedown", onMousedown);
|
|
3068
|
+
}
|
|
3069
|
+
};
|
|
3070
|
+
const offDraggable = () => {
|
|
3071
|
+
if (dragRef.value && targetRef.value) {
|
|
3072
|
+
dragRef.value.removeEventListener("mousedown", onMousedown);
|
|
3073
|
+
}
|
|
3074
|
+
};
|
|
3075
|
+
vue.onMounted(() => {
|
|
3076
|
+
vue.watchEffect(() => {
|
|
3077
|
+
if (draggable.value) {
|
|
3078
|
+
onDraggable();
|
|
3079
|
+
} else {
|
|
3080
|
+
offDraggable();
|
|
3081
|
+
}
|
|
3082
|
+
});
|
|
3083
|
+
});
|
|
3084
|
+
vue.onBeforeUnmount(() => {
|
|
3085
|
+
offDraggable();
|
|
3086
|
+
});
|
|
3087
|
+
};
|
|
3088
|
+
|
|
3022
3089
|
const useFocus = (el) => {
|
|
3023
3090
|
return {
|
|
3024
3091
|
focus: () => {
|
|
@@ -4544,7 +4611,7 @@
|
|
|
4544
4611
|
});
|
|
4545
4612
|
}
|
|
4546
4613
|
|
|
4547
|
-
const version$1 = "0.0.
|
|
4614
|
+
const version$1 = "0.0.20220204";
|
|
4548
4615
|
|
|
4549
4616
|
const INSTALLED_KEY = Symbol("INSTALLED_KEY");
|
|
4550
4617
|
const makeInstaller = (components = []) => {
|
|
@@ -6947,15 +7014,15 @@
|
|
|
6947
7014
|
always: Boolean
|
|
6948
7015
|
});
|
|
6949
7016
|
|
|
6950
|
-
const COMPONENT_NAME$
|
|
7017
|
+
const COMPONENT_NAME$f = "Thumb";
|
|
6951
7018
|
const _sfc_main$26 = vue.defineComponent({
|
|
6952
|
-
name: COMPONENT_NAME$
|
|
7019
|
+
name: COMPONENT_NAME$f,
|
|
6953
7020
|
props: thumbProps,
|
|
6954
7021
|
setup(props) {
|
|
6955
7022
|
const scrollbar = vue.inject(scrollbarContextKey);
|
|
6956
7023
|
const ns = useNamespace("scrollbar");
|
|
6957
7024
|
if (!scrollbar)
|
|
6958
|
-
throwError(COMPONENT_NAME$
|
|
7025
|
+
throwError(COMPONENT_NAME$f, "can not inject scrollbar context");
|
|
6959
7026
|
const instance = vue.ref();
|
|
6960
7027
|
const thumb = vue.ref();
|
|
6961
7028
|
const thumbState = vue.ref({});
|
|
@@ -9262,9 +9329,9 @@
|
|
|
9262
9329
|
}
|
|
9263
9330
|
var ElPopperArrow = /* @__PURE__ */ _export_sfc$1(_sfc_main$22, [["render", _sfc_render$1Z]]);
|
|
9264
9331
|
|
|
9265
|
-
const NAME
|
|
9332
|
+
const NAME = "ElOnlyChild";
|
|
9266
9333
|
const OnlyChild = vue.defineComponent({
|
|
9267
|
-
name: NAME
|
|
9334
|
+
name: NAME,
|
|
9268
9335
|
setup(_, { slots, attrs }) {
|
|
9269
9336
|
var _a;
|
|
9270
9337
|
const forwardRefInjection = vue.inject(FORWARD_REF_INJECTION_KEY, void 0);
|
|
@@ -9543,6 +9610,23 @@
|
|
|
9543
9610
|
}
|
|
9544
9611
|
var ElPopperContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$20, [["render", _sfc_render$1X]]);
|
|
9545
9612
|
|
|
9613
|
+
function useDeprecateAppendToBody(scope, from) {
|
|
9614
|
+
const vm = vue.getCurrentInstance();
|
|
9615
|
+
const compatTeleported = vue.computed(() => {
|
|
9616
|
+
return isBool(vm.props[from]) ? vm.props[from] : vm.props.teleported;
|
|
9617
|
+
});
|
|
9618
|
+
useDeprecated({
|
|
9619
|
+
scope,
|
|
9620
|
+
from,
|
|
9621
|
+
replacement: "teleported",
|
|
9622
|
+
version: "2.1.0",
|
|
9623
|
+
ref: "https://element-plus.org/en-US/component/tooltip.html#attributes"
|
|
9624
|
+
}, vue.computed(() => isBool(vm.props[from])));
|
|
9625
|
+
return {
|
|
9626
|
+
compatTeleported
|
|
9627
|
+
};
|
|
9628
|
+
}
|
|
9629
|
+
|
|
9546
9630
|
const ElPopper = withInstall(Popper);
|
|
9547
9631
|
|
|
9548
9632
|
const _sfc_main$1$ = vue.defineComponent({
|
|
@@ -10025,8 +10109,9 @@
|
|
|
10025
10109
|
|
|
10026
10110
|
const ElTooltip = withInstall(Tooltip);
|
|
10027
10111
|
|
|
10112
|
+
const COMPONENT_NAME$e = "ElAutocomplete";
|
|
10028
10113
|
const _sfc_main$1X = vue.defineComponent({
|
|
10029
|
-
name:
|
|
10114
|
+
name: COMPONENT_NAME$e,
|
|
10030
10115
|
components: {
|
|
10031
10116
|
ElTooltip,
|
|
10032
10117
|
ElInput,
|
|
@@ -10087,8 +10172,9 @@
|
|
|
10087
10172
|
},
|
|
10088
10173
|
popperAppendToBody: {
|
|
10089
10174
|
type: Boolean,
|
|
10090
|
-
default:
|
|
10175
|
+
default: void 0
|
|
10091
10176
|
},
|
|
10177
|
+
teleported: useTooltipContentProps.teleported,
|
|
10092
10178
|
highlightFirstItem: {
|
|
10093
10179
|
type: Boolean,
|
|
10094
10180
|
default: false
|
|
@@ -10105,6 +10191,7 @@
|
|
|
10105
10191
|
],
|
|
10106
10192
|
setup(props, ctx) {
|
|
10107
10193
|
const ns = useNamespace("autocomplete");
|
|
10194
|
+
const { compatTeleported } = useDeprecateAppendToBody(COMPONENT_NAME$e, "popperAppendToBody");
|
|
10108
10195
|
const attrs = useAttrs();
|
|
10109
10196
|
const suggestions = vue.ref([]);
|
|
10110
10197
|
const highlightedIndex = vue.ref(-1);
|
|
@@ -10252,6 +10339,7 @@
|
|
|
10252
10339
|
id,
|
|
10253
10340
|
suggestionVisible,
|
|
10254
10341
|
suggestionLoading,
|
|
10342
|
+
compatTeleported,
|
|
10255
10343
|
getData,
|
|
10256
10344
|
handleInput,
|
|
10257
10345
|
handleChange,
|
|
@@ -10285,7 +10373,7 @@
|
|
|
10285
10373
|
placement: _ctx.placement,
|
|
10286
10374
|
"fallback-placements": ["bottom-start", "top-start"],
|
|
10287
10375
|
"popper-class": `${_ctx.ns.e("popper")} ${_ctx.popperClass}`,
|
|
10288
|
-
|
|
10376
|
+
teleported: _ctx.compatTeleported,
|
|
10289
10377
|
"gpu-acceleration": false,
|
|
10290
10378
|
pure: "",
|
|
10291
10379
|
"manual-mode": "",
|
|
@@ -10389,7 +10477,7 @@
|
|
|
10389
10477
|
])
|
|
10390
10478
|
]),
|
|
10391
10479
|
_: 3
|
|
10392
|
-
}, 8, ["visible", "placement", "popper-class", "
|
|
10480
|
+
}, 8, ["visible", "placement", "popper-class", "teleported", "transition", "onShow"]);
|
|
10393
10481
|
}
|
|
10394
10482
|
var Autocomplete = /* @__PURE__ */ _export_sfc$1(_sfc_main$1X, [["render", _sfc_render$1S]]);
|
|
10395
10483
|
|
|
@@ -10524,9 +10612,9 @@
|
|
|
10524
10612
|
click: (evt) => evt instanceof MouseEvent
|
|
10525
10613
|
};
|
|
10526
10614
|
|
|
10527
|
-
const COMPONENT_NAME$
|
|
10615
|
+
const COMPONENT_NAME$d = "ElBacktop";
|
|
10528
10616
|
const _sfc_main$1V = vue.defineComponent({
|
|
10529
|
-
name: COMPONENT_NAME$
|
|
10617
|
+
name: COMPONENT_NAME$d,
|
|
10530
10618
|
components: {
|
|
10531
10619
|
ElIcon,
|
|
10532
10620
|
CaretTop: caretTop
|
|
@@ -10572,7 +10660,7 @@
|
|
|
10572
10660
|
if (props.target) {
|
|
10573
10661
|
el.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
|
|
10574
10662
|
if (!el.value) {
|
|
10575
|
-
throwError(COMPONENT_NAME$
|
|
10663
|
+
throwError(COMPONENT_NAME$d, `target is not existed: ${props.target}`);
|
|
10576
10664
|
}
|
|
10577
10665
|
container.value = el.value;
|
|
10578
10666
|
}
|
|
@@ -10740,9 +10828,9 @@
|
|
|
10740
10828
|
}
|
|
10741
10829
|
});
|
|
10742
10830
|
|
|
10743
|
-
const COMPONENT_NAME$
|
|
10831
|
+
const COMPONENT_NAME$c = "ElBreadcrumbItem";
|
|
10744
10832
|
const _sfc_main$1S = vue.defineComponent({
|
|
10745
|
-
name: COMPONENT_NAME$
|
|
10833
|
+
name: COMPONENT_NAME$c,
|
|
10746
10834
|
components: {
|
|
10747
10835
|
ElIcon
|
|
10748
10836
|
},
|
|
@@ -17320,8 +17408,9 @@
|
|
|
17320
17408
|
}
|
|
17321
17409
|
]
|
|
17322
17410
|
};
|
|
17411
|
+
const COMPONENT_NAME$b = "ElCascader";
|
|
17323
17412
|
const _sfc_main$1w = vue.defineComponent({
|
|
17324
|
-
name:
|
|
17413
|
+
name: COMPONENT_NAME$b,
|
|
17325
17414
|
components: {
|
|
17326
17415
|
ElCascaderPanel: _CascaderPanel,
|
|
17327
17416
|
ElInput,
|
|
@@ -17375,8 +17464,9 @@
|
|
|
17375
17464
|
},
|
|
17376
17465
|
popperAppendToBody: {
|
|
17377
17466
|
type: Boolean,
|
|
17378
|
-
default:
|
|
17379
|
-
}
|
|
17467
|
+
default: void 0
|
|
17468
|
+
},
|
|
17469
|
+
teleported: useTooltipContentProps.teleported
|
|
17380
17470
|
},
|
|
17381
17471
|
emits: [
|
|
17382
17472
|
UPDATE_MODEL_EVENT,
|
|
@@ -17390,6 +17480,7 @@
|
|
|
17390
17480
|
setup(props, { emit }) {
|
|
17391
17481
|
let inputInitialHeight = 0;
|
|
17392
17482
|
let pressDeleteCount = 0;
|
|
17483
|
+
const { compatTeleported } = useDeprecateAppendToBody(COMPONENT_NAME$b, "popperAppendToBody");
|
|
17393
17484
|
const { t } = useLocale();
|
|
17394
17485
|
const elForm = vue.inject(elFormKey, {});
|
|
17395
17486
|
const elFormItem = vue.inject(elFormItemKey, {});
|
|
@@ -17703,6 +17794,7 @@
|
|
|
17703
17794
|
multiple,
|
|
17704
17795
|
readonly,
|
|
17705
17796
|
clearBtnVisible,
|
|
17797
|
+
compatTeleported,
|
|
17706
17798
|
t,
|
|
17707
17799
|
togglePopperVisible,
|
|
17708
17800
|
hideSuggestionPanel,
|
|
@@ -17743,7 +17835,7 @@
|
|
|
17743
17835
|
ref: "tooltipRef",
|
|
17744
17836
|
visible: _ctx.popperVisible,
|
|
17745
17837
|
"onUpdate:visible": _cache[17] || (_cache[17] = ($event) => _ctx.popperVisible = $event),
|
|
17746
|
-
|
|
17838
|
+
teleported: _ctx.compatTeleported,
|
|
17747
17839
|
"popper-class": `el-cascader__dropdown ${_ctx.popperClass}`,
|
|
17748
17840
|
"popper-options": _ctx.popperOptions,
|
|
17749
17841
|
"fallback-placements": [
|
|
@@ -17909,7 +18001,7 @@
|
|
|
17909
18001
|
]) : vue.createCommentVNode("v-if", true)
|
|
17910
18002
|
]),
|
|
17911
18003
|
_: 3
|
|
17912
|
-
}, 8, ["visible", "
|
|
18004
|
+
}, 8, ["visible", "teleported", "popper-class", "popper-options", "onHide"]);
|
|
17913
18005
|
}
|
|
17914
18006
|
var Cascader = /* @__PURE__ */ _export_sfc$1(_sfc_main$1w, [["render", _sfc_render$1s]]);
|
|
17915
18007
|
|
|
@@ -22480,6 +22572,10 @@
|
|
|
22480
22572
|
type: Boolean,
|
|
22481
22573
|
default: false
|
|
22482
22574
|
},
|
|
22575
|
+
draggable: {
|
|
22576
|
+
type: Boolean,
|
|
22577
|
+
default: false
|
|
22578
|
+
},
|
|
22483
22579
|
lockScroll: {
|
|
22484
22580
|
type: Boolean,
|
|
22485
22581
|
default: true
|
|
@@ -22670,17 +22766,24 @@
|
|
|
22670
22766
|
emits: dialogEmits,
|
|
22671
22767
|
setup(props, ctx) {
|
|
22672
22768
|
const dialogRef = vue.ref();
|
|
22769
|
+
const headerRef = vue.ref();
|
|
22673
22770
|
const dialog = useDialog(props, ctx, dialogRef);
|
|
22674
22771
|
const overlayEvent = useSameTarget(dialog.onModalClick);
|
|
22772
|
+
const draggable = vue.computed(() => props.draggable && !props.fullscreen);
|
|
22773
|
+
useDraggable(dialogRef, headerRef, draggable);
|
|
22675
22774
|
return {
|
|
22676
22775
|
dialogRef,
|
|
22776
|
+
headerRef,
|
|
22677
22777
|
overlayEvent,
|
|
22678
22778
|
...dialog
|
|
22679
22779
|
};
|
|
22680
22780
|
}
|
|
22681
22781
|
});
|
|
22682
22782
|
const _hoisted_1$I = ["aria-label"];
|
|
22683
|
-
const _hoisted_2$u = {
|
|
22783
|
+
const _hoisted_2$u = {
|
|
22784
|
+
ref: "headerRef",
|
|
22785
|
+
class: "el-dialog__header"
|
|
22786
|
+
};
|
|
22684
22787
|
const _hoisted_3$l = { class: "el-dialog__title" };
|
|
22685
22788
|
const _hoisted_4$c = {
|
|
22686
22789
|
key: 0,
|
|
@@ -22724,6 +22827,7 @@
|
|
|
22724
22827
|
"el-dialog",
|
|
22725
22828
|
{
|
|
22726
22829
|
"is-fullscreen": _ctx.fullscreen,
|
|
22830
|
+
"is-draggable": _ctx.draggable,
|
|
22727
22831
|
"el-dialog--center": _ctx.center
|
|
22728
22832
|
},
|
|
22729
22833
|
_ctx.customClass
|
|
@@ -22753,7 +22857,7 @@
|
|
|
22753
22857
|
_: 1
|
|
22754
22858
|
})
|
|
22755
22859
|
])) : vue.createCommentVNode("v-if", true)
|
|
22756
|
-
]),
|
|
22860
|
+
], 512),
|
|
22757
22861
|
_ctx.rendered ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$c, [
|
|
22758
22862
|
vue.renderSlot(_ctx.$slots, "default")
|
|
22759
22863
|
])) : vue.createCommentVNode("v-if", true),
|
|
@@ -27621,19 +27725,19 @@
|
|
|
27621
27725
|
default: void 0
|
|
27622
27726
|
}
|
|
27623
27727
|
});
|
|
27624
|
-
const COMPONENT_NAME$
|
|
27728
|
+
const COMPONENT_NAME$a = "ElSubMenu";
|
|
27625
27729
|
var SubMenu = vue.defineComponent({
|
|
27626
|
-
name: COMPONENT_NAME$
|
|
27730
|
+
name: COMPONENT_NAME$a,
|
|
27627
27731
|
props: subMenuProps,
|
|
27628
27732
|
setup(props, { slots, expose }) {
|
|
27629
27733
|
const instance = vue.getCurrentInstance();
|
|
27630
27734
|
const { paddingStyle, indexPath, parentMenu } = useMenu(instance, vue.computed(() => props.index));
|
|
27631
27735
|
const rootMenu = vue.inject("rootMenu");
|
|
27632
27736
|
if (!rootMenu)
|
|
27633
|
-
throwError(COMPONENT_NAME$
|
|
27737
|
+
throwError(COMPONENT_NAME$a, "can not inject root menu");
|
|
27634
27738
|
const subMenu = vue.inject(`subMenu:${parentMenu.value.uid}`);
|
|
27635
27739
|
if (!subMenu)
|
|
27636
|
-
throwError(COMPONENT_NAME$
|
|
27740
|
+
throwError(COMPONENT_NAME$a, "can not inject sub menu");
|
|
27637
27741
|
const items = vue.ref({});
|
|
27638
27742
|
const subMenus = vue.ref({});
|
|
27639
27743
|
let timeout;
|
|
@@ -28156,9 +28260,9 @@
|
|
|
28156
28260
|
click: (item) => isString$1(item.index) && Array.isArray(item.indexPath)
|
|
28157
28261
|
};
|
|
28158
28262
|
|
|
28159
|
-
const COMPONENT_NAME$
|
|
28263
|
+
const COMPONENT_NAME$9 = "ElMenuItem";
|
|
28160
28264
|
const _sfc_main$P = vue.defineComponent({
|
|
28161
|
-
name: COMPONENT_NAME$
|
|
28265
|
+
name: COMPONENT_NAME$9,
|
|
28162
28266
|
components: {
|
|
28163
28267
|
ElTooltip
|
|
28164
28268
|
},
|
|
@@ -28168,11 +28272,11 @@
|
|
|
28168
28272
|
const instance = vue.getCurrentInstance();
|
|
28169
28273
|
const rootMenu = vue.inject("rootMenu");
|
|
28170
28274
|
if (!rootMenu)
|
|
28171
|
-
throwError(COMPONENT_NAME$
|
|
28275
|
+
throwError(COMPONENT_NAME$9, "can not inject root menu");
|
|
28172
28276
|
const { parentMenu, paddingStyle, indexPath } = useMenu(instance, vue.toRef(props, "index"));
|
|
28173
28277
|
const subMenu = vue.inject(`subMenu:${parentMenu.value.uid}`);
|
|
28174
28278
|
if (!subMenu)
|
|
28175
|
-
throwError(COMPONENT_NAME$
|
|
28279
|
+
throwError(COMPONENT_NAME$9, "can not inject sub menu");
|
|
28176
28280
|
const active = vue.computed(() => props.index === rootMenu.activeIndex);
|
|
28177
28281
|
const item = vue.reactive({
|
|
28178
28282
|
index: props.index,
|
|
@@ -28256,15 +28360,15 @@
|
|
|
28256
28360
|
title: String
|
|
28257
28361
|
};
|
|
28258
28362
|
|
|
28259
|
-
const COMPONENT_NAME$
|
|
28363
|
+
const COMPONENT_NAME$8 = "ElMenuItemGroup";
|
|
28260
28364
|
const _sfc_main$O = vue.defineComponent({
|
|
28261
|
-
name: COMPONENT_NAME$
|
|
28365
|
+
name: COMPONENT_NAME$8,
|
|
28262
28366
|
props: menuItemGroupProps,
|
|
28263
28367
|
setup() {
|
|
28264
28368
|
const instance = vue.getCurrentInstance();
|
|
28265
28369
|
const menu = vue.inject("rootMenu");
|
|
28266
28370
|
if (!menu)
|
|
28267
|
-
throwError(COMPONENT_NAME$
|
|
28371
|
+
throwError(COMPONENT_NAME$8, "can not inject root menu");
|
|
28268
28372
|
const levelPadding = vue.computed(() => {
|
|
28269
28373
|
if (menu.props.collapse)
|
|
28270
28374
|
return 20;
|
|
@@ -29349,9 +29453,10 @@
|
|
|
29349
29453
|
};
|
|
29350
29454
|
};
|
|
29351
29455
|
|
|
29456
|
+
const COMPONENT_NAME$7 = "ElSelect";
|
|
29352
29457
|
const _sfc_main$I = vue.defineComponent({
|
|
29353
|
-
name:
|
|
29354
|
-
componentName:
|
|
29458
|
+
name: COMPONENT_NAME$7,
|
|
29459
|
+
componentName: COMPONENT_NAME$7,
|
|
29355
29460
|
components: {
|
|
29356
29461
|
ElInput,
|
|
29357
29462
|
ElSelectMenu: ElSelectMenu$1,
|
|
@@ -29413,8 +29518,9 @@
|
|
|
29413
29518
|
collapseTags: Boolean,
|
|
29414
29519
|
popperAppendToBody: {
|
|
29415
29520
|
type: Boolean,
|
|
29416
|
-
default:
|
|
29521
|
+
default: void 0
|
|
29417
29522
|
},
|
|
29523
|
+
teleported: useTooltipContentProps.teleported,
|
|
29418
29524
|
clearIcon: {
|
|
29419
29525
|
type: [String, Object],
|
|
29420
29526
|
default: circleClose
|
|
@@ -29594,6 +29700,7 @@
|
|
|
29594
29700
|
var _a, _b;
|
|
29595
29701
|
return (_b = (_a = tooltipRef.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
29596
29702
|
});
|
|
29703
|
+
const { compatTeleported } = useDeprecateAppendToBody(COMPONENT_NAME$7, "popperAppendToBody");
|
|
29597
29704
|
return {
|
|
29598
29705
|
tagInMultiLine,
|
|
29599
29706
|
prefixWidth,
|
|
@@ -29654,7 +29761,8 @@
|
|
|
29654
29761
|
selectWrapper,
|
|
29655
29762
|
scrollbar,
|
|
29656
29763
|
wrapperKls,
|
|
29657
|
-
selectTagsStyle
|
|
29764
|
+
selectTagsStyle,
|
|
29765
|
+
compatTeleported
|
|
29658
29766
|
};
|
|
29659
29767
|
}
|
|
29660
29768
|
});
|
|
@@ -29686,7 +29794,7 @@
|
|
|
29686
29794
|
visible: _ctx.dropMenuVisible,
|
|
29687
29795
|
"onUpdate:visible": _cache[23] || (_cache[23] = ($event) => _ctx.dropMenuVisible = $event),
|
|
29688
29796
|
placement: "bottom-start",
|
|
29689
|
-
|
|
29797
|
+
teleported: _ctx.compatTeleported,
|
|
29690
29798
|
"popper-class": `el-select__popper ${_ctx.popperClass}`,
|
|
29691
29799
|
"fallback-placements": ["bottom-start", "top-start", "right", "left"],
|
|
29692
29800
|
effect: "light",
|
|
@@ -29905,7 +30013,7 @@
|
|
|
29905
30013
|
})
|
|
29906
30014
|
]),
|
|
29907
30015
|
_: 3
|
|
29908
|
-
}, 8, ["visible", "
|
|
30016
|
+
}, 8, ["visible", "teleported", "popper-class", "onShow"])
|
|
29909
30017
|
], 2)), [
|
|
29910
30018
|
[_directive_click_outside, _ctx.handleClose, _ctx.popperPaneRef]
|
|
29911
30019
|
]);
|
|
@@ -30583,52 +30691,56 @@
|
|
|
30583
30691
|
|
|
30584
30692
|
const ElPagination = withInstall(Pagination);
|
|
30585
30693
|
|
|
30586
|
-
const popconfirmProps =
|
|
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
|
-
|
|
30625
|
-
|
|
30626
|
-
|
|
30627
|
-
|
|
30628
|
-
|
|
30694
|
+
const popconfirmProps = {
|
|
30695
|
+
...buildProps({
|
|
30696
|
+
title: {
|
|
30697
|
+
type: String
|
|
30698
|
+
},
|
|
30699
|
+
confirmButtonText: {
|
|
30700
|
+
type: String
|
|
30701
|
+
},
|
|
30702
|
+
cancelButtonText: {
|
|
30703
|
+
type: String
|
|
30704
|
+
},
|
|
30705
|
+
confirmButtonType: {
|
|
30706
|
+
type: String,
|
|
30707
|
+
values: buttonType,
|
|
30708
|
+
default: "primary"
|
|
30709
|
+
},
|
|
30710
|
+
cancelButtonType: {
|
|
30711
|
+
type: String,
|
|
30712
|
+
values: buttonType,
|
|
30713
|
+
default: "text"
|
|
30714
|
+
},
|
|
30715
|
+
icon: {
|
|
30716
|
+
type: definePropType([String, Object]),
|
|
30717
|
+
default: questionFilled
|
|
30718
|
+
},
|
|
30719
|
+
iconColor: {
|
|
30720
|
+
type: String,
|
|
30721
|
+
default: "#f90"
|
|
30722
|
+
},
|
|
30723
|
+
hideIcon: {
|
|
30724
|
+
type: Boolean,
|
|
30725
|
+
default: false
|
|
30726
|
+
},
|
|
30727
|
+
hideAfter: {
|
|
30728
|
+
type: Number,
|
|
30729
|
+
default: 200
|
|
30730
|
+
},
|
|
30731
|
+
onConfirm: {
|
|
30732
|
+
type: definePropType(Function)
|
|
30733
|
+
},
|
|
30734
|
+
onCancel: {
|
|
30735
|
+
type: definePropType(Function)
|
|
30736
|
+
}
|
|
30737
|
+
}),
|
|
30738
|
+
teleported: useTooltipContentProps.teleported
|
|
30739
|
+
};
|
|
30629
30740
|
|
|
30741
|
+
const COMPONENT_NAME$6 = "Elpopperconfirm";
|
|
30630
30742
|
const _sfc_main$C = vue.defineComponent({
|
|
30631
|
-
name:
|
|
30743
|
+
name: COMPONENT_NAME$6,
|
|
30632
30744
|
components: {
|
|
30633
30745
|
ElButton,
|
|
30634
30746
|
ElTooltip,
|
|
@@ -30636,6 +30748,7 @@
|
|
|
30636
30748
|
},
|
|
30637
30749
|
props: popconfirmProps,
|
|
30638
30750
|
setup(props) {
|
|
30751
|
+
const { compatTeleported } = useDeprecateAppendToBody(COMPONENT_NAME$6, "appendToBody");
|
|
30639
30752
|
const { t } = useLocale();
|
|
30640
30753
|
const tooltipRef = vue.ref();
|
|
30641
30754
|
const hidePopper = () => {
|
|
@@ -30661,6 +30774,7 @@
|
|
|
30661
30774
|
finalConfirmButtonText,
|
|
30662
30775
|
finalCancelButtonText,
|
|
30663
30776
|
tooltipRef,
|
|
30777
|
+
compatTeleported,
|
|
30664
30778
|
confirm,
|
|
30665
30779
|
cancel
|
|
30666
30780
|
};
|
|
@@ -30677,7 +30791,7 @@
|
|
|
30677
30791
|
trigger: "click",
|
|
30678
30792
|
effect: "light",
|
|
30679
30793
|
"popper-class": "el-popover",
|
|
30680
|
-
|
|
30794
|
+
teleported: _ctx.compatTeleported,
|
|
30681
30795
|
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
30682
30796
|
"hide-after": _ctx.hideAfter,
|
|
30683
30797
|
persistent: ""
|
|
@@ -30725,13 +30839,14 @@
|
|
|
30725
30839
|
_ctx.$slots.reference ? vue.renderSlot(_ctx.$slots, "reference", { key: 0 }) : vue.createCommentVNode("v-if", true)
|
|
30726
30840
|
]),
|
|
30727
30841
|
_: 3
|
|
30728
|
-
}, 16, ["hide-after"]);
|
|
30842
|
+
}, 16, ["teleported", "hide-after"]);
|
|
30729
30843
|
}
|
|
30730
30844
|
var Popconfirm = /* @__PURE__ */ _export_sfc$1(_sfc_main$C, [["render", _sfc_render$y]]);
|
|
30731
30845
|
|
|
30732
30846
|
const ElPopconfirm = withInstall(Popconfirm);
|
|
30733
30847
|
|
|
30734
30848
|
const usePopoverProps = {
|
|
30849
|
+
appendToBody: { type: Boolean, default: void 0 },
|
|
30735
30850
|
content: useTooltipContentProps.content,
|
|
30736
30851
|
popperStyle: useTooltipContentProps.popperStyle,
|
|
30737
30852
|
popperClass: useTooltipContentProps.popperClass,
|
|
@@ -30743,6 +30858,7 @@
|
|
|
30743
30858
|
...useTooltipContentProps.effect,
|
|
30744
30859
|
default: "light"
|
|
30745
30860
|
},
|
|
30861
|
+
teleported: useTooltipContentProps.teleported,
|
|
30746
30862
|
...buildProps({
|
|
30747
30863
|
title: String,
|
|
30748
30864
|
width: {
|
|
@@ -30753,9 +30869,9 @@
|
|
|
30753
30869
|
};
|
|
30754
30870
|
|
|
30755
30871
|
const emits = ["update:visible", "after-enter", "after-leave"];
|
|
30756
|
-
const
|
|
30872
|
+
const COMPONENT_NAME$5 = "ElPopover";
|
|
30757
30873
|
const _sfc_main$B = vue.defineComponent({
|
|
30758
|
-
name:
|
|
30874
|
+
name: COMPONENT_NAME$5,
|
|
30759
30875
|
components: {
|
|
30760
30876
|
ElTooltip
|
|
30761
30877
|
},
|
|
@@ -30788,6 +30904,7 @@
|
|
|
30788
30904
|
props.popperClass
|
|
30789
30905
|
];
|
|
30790
30906
|
});
|
|
30907
|
+
const { compatTeleported } = useDeprecateAppendToBody(COMPONENT_NAME$5, "appendToBody");
|
|
30791
30908
|
const hide = () => {
|
|
30792
30909
|
var _a;
|
|
30793
30910
|
(_a = tooltipRef.value) == null ? void 0 : _a.hide();
|
|
@@ -30799,6 +30916,7 @@
|
|
|
30799
30916
|
emit("after-leave");
|
|
30800
30917
|
};
|
|
30801
30918
|
return {
|
|
30919
|
+
compatTeleported,
|
|
30802
30920
|
kls,
|
|
30803
30921
|
style,
|
|
30804
30922
|
tooltipRef,
|
|
@@ -30822,6 +30940,7 @@
|
|
|
30822
30940
|
enterable: _ctx.enterable,
|
|
30823
30941
|
"popper-class": _ctx.kls,
|
|
30824
30942
|
"popper-style": _ctx.style,
|
|
30943
|
+
teleported: _ctx.compatTeleported,
|
|
30825
30944
|
persistent: "",
|
|
30826
30945
|
onShow: _ctx.afterEnter,
|
|
30827
30946
|
onHide: _ctx.afterLeave
|
|
@@ -30836,7 +30955,7 @@
|
|
|
30836
30955
|
_ctx.$slots.reference ? vue.renderSlot(_ctx.$slots, "reference", { key: 0 }) : vue.createCommentVNode("v-if", true)
|
|
30837
30956
|
]),
|
|
30838
30957
|
_: 3
|
|
30839
|
-
}, 16, ["aria-label", "effect", "enterable", "popper-class", "popper-style", "onShow", "onHide"]);
|
|
30958
|
+
}, 16, ["aria-label", "effect", "enterable", "popper-class", "popper-style", "teleported", "onShow", "onHide"]);
|
|
30840
30959
|
}
|
|
30841
30960
|
var Popover = /* @__PURE__ */ _export_sfc$1(_sfc_main$B, [["render", _sfc_render$x]]);
|
|
30842
30961
|
|
|
@@ -33437,8 +33556,9 @@
|
|
|
33437
33556
|
},
|
|
33438
33557
|
popperAppendToBody: {
|
|
33439
33558
|
type: Boolean,
|
|
33440
|
-
default:
|
|
33559
|
+
default: void 0
|
|
33441
33560
|
},
|
|
33561
|
+
teleported: useTooltipContentProps.teleported,
|
|
33442
33562
|
popperClass: {
|
|
33443
33563
|
type: String,
|
|
33444
33564
|
default: ""
|
|
@@ -33801,9 +33921,11 @@
|
|
|
33801
33921
|
default: 42,
|
|
33802
33922
|
small: 33
|
|
33803
33923
|
};
|
|
33924
|
+
const COMPONENT_NAME$4 = "ElSelectV2";
|
|
33804
33925
|
const useSelect = (props, emit) => {
|
|
33805
33926
|
const { t } = useLocale();
|
|
33806
33927
|
const { form: elForm, formItem: elFormItem } = useFormItem();
|
|
33928
|
+
const { compatTeleported } = useDeprecateAppendToBody(COMPONENT_NAME$4, "popperAppendToBody");
|
|
33807
33929
|
const states = vue.reactive({
|
|
33808
33930
|
inputValue: DEFAULT_INPUT_PLACEHOLDER,
|
|
33809
33931
|
displayInputValue: DEFAULT_INPUT_PLACEHOLDER,
|
|
@@ -34380,7 +34502,7 @@
|
|
|
34380
34502
|
popperRef,
|
|
34381
34503
|
validateState,
|
|
34382
34504
|
validateIcon,
|
|
34383
|
-
|
|
34505
|
+
compatTeleported,
|
|
34384
34506
|
debouncedOnInputChange,
|
|
34385
34507
|
deleteTag,
|
|
34386
34508
|
getLabel,
|
|
@@ -34476,7 +34598,7 @@
|
|
|
34476
34598
|
ref: "popper",
|
|
34477
34599
|
visible: _ctx.dropdownMenuVisible,
|
|
34478
34600
|
"onUpdate:visible": _cache[22] || (_cache[22] = ($event) => _ctx.dropdownMenuVisible = $event),
|
|
34479
|
-
|
|
34601
|
+
teleported: _ctx.compatTeleported,
|
|
34480
34602
|
"popper-class": `el-select-v2__popper ${_ctx.popperClass}`,
|
|
34481
34603
|
"gpu-acceleration": false,
|
|
34482
34604
|
"stop-popper-mouse-event": false,
|
|
@@ -34720,7 +34842,7 @@
|
|
|
34720
34842
|
}, 8, ["data", "width", "hovering-index", "scrollbar-always-on"])
|
|
34721
34843
|
]),
|
|
34722
34844
|
_: 3
|
|
34723
|
-
}, 8, ["visible", "
|
|
34845
|
+
}, 8, ["visible", "teleported", "popper-class", "popper-options", "onShow"])
|
|
34724
34846
|
], 34)), [
|
|
34725
34847
|
[_directive_click_outside, _ctx.handleClickOutside, _ctx.popperRef]
|
|
34726
34848
|
]);
|
|
@@ -47428,6 +47550,7 @@
|
|
|
47428
47550
|
default: true
|
|
47429
47551
|
},
|
|
47430
47552
|
center: Boolean,
|
|
47553
|
+
draggable: Boolean,
|
|
47431
47554
|
roundButton: {
|
|
47432
47555
|
default: false,
|
|
47433
47556
|
type: Boolean
|
|
@@ -47486,8 +47609,10 @@
|
|
|
47486
47609
|
const btnSize = useSize(vue.computed(() => props.buttonSize), { prop: true, form: true, formItem: true });
|
|
47487
47610
|
const iconComponent = vue.computed(() => state.icon || TypeComponentsMap[state.type] || "");
|
|
47488
47611
|
const hasMessage = vue.computed(() => !!state.message);
|
|
47489
|
-
const
|
|
47490
|
-
const
|
|
47612
|
+
const rootRef = vue.ref();
|
|
47613
|
+
const headerRef = vue.ref();
|
|
47614
|
+
const inputRef = vue.ref();
|
|
47615
|
+
const confirmRef = vue.ref();
|
|
47491
47616
|
const confirmButtonClasses = vue.computed(() => state.confirmButtonClass);
|
|
47492
47617
|
vue.watch(() => state.inputValue, async (val) => {
|
|
47493
47618
|
await vue.nextTick();
|
|
@@ -47518,6 +47643,8 @@
|
|
|
47518
47643
|
state.validateError = false;
|
|
47519
47644
|
}
|
|
47520
47645
|
});
|
|
47646
|
+
const draggable = vue.computed(() => props.draggable);
|
|
47647
|
+
useDraggable(rootRef, headerRef, draggable);
|
|
47521
47648
|
vue.onMounted(async () => {
|
|
47522
47649
|
await vue.nextTick();
|
|
47523
47650
|
if (props.closeOnHashChange) {
|
|
@@ -47543,6 +47670,7 @@
|
|
|
47543
47670
|
handleAction(state.distinguishCancelAndClose ? "close" : "cancel");
|
|
47544
47671
|
}
|
|
47545
47672
|
};
|
|
47673
|
+
const overlayEvent = useSameTarget(handleWrapperClick);
|
|
47546
47674
|
const handleInputEnter = () => {
|
|
47547
47675
|
if (state.inputType !== "textarea") {
|
|
47548
47676
|
return handleAction("confirm");
|
|
@@ -47607,12 +47735,15 @@
|
|
|
47607
47735
|
useRestoreActive(visible);
|
|
47608
47736
|
return {
|
|
47609
47737
|
...vue.toRefs(state),
|
|
47738
|
+
overlayEvent,
|
|
47610
47739
|
visible,
|
|
47611
47740
|
hasMessage,
|
|
47612
47741
|
typeClass,
|
|
47613
47742
|
btnSize,
|
|
47614
47743
|
iconComponent,
|
|
47615
47744
|
confirmButtonClasses,
|
|
47745
|
+
rootRef,
|
|
47746
|
+
headerRef,
|
|
47616
47747
|
inputRef,
|
|
47617
47748
|
confirmRef,
|
|
47618
47749
|
doClose,
|
|
@@ -47627,6 +47758,7 @@
|
|
|
47627
47758
|
const _hoisted_1$1 = ["aria-label"];
|
|
47628
47759
|
const _hoisted_2$1 = {
|
|
47629
47760
|
key: 0,
|
|
47761
|
+
ref: "headerRef",
|
|
47630
47762
|
class: "el-message-box__header"
|
|
47631
47763
|
};
|
|
47632
47764
|
const _hoisted_3$1 = { class: "el-message-box__title" };
|
|
@@ -47649,137 +47781,145 @@
|
|
|
47649
47781
|
const _directive_trap_focus = vue.resolveDirective("trap-focus");
|
|
47650
47782
|
return vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
47651
47783
|
name: "fade-in-linear",
|
|
47652
|
-
onAfterLeave: _cache[
|
|
47784
|
+
onAfterLeave: _cache[11] || (_cache[11] = ($event) => _ctx.$emit("vanish"))
|
|
47653
47785
|
}, {
|
|
47654
47786
|
default: vue.withCtx(() => [
|
|
47655
47787
|
vue.withDirectives(vue.createVNode(_component_el_overlay, {
|
|
47656
47788
|
"z-index": _ctx.zIndex,
|
|
47657
47789
|
"overlay-class": ["is-message-box", _ctx.modalClass],
|
|
47658
|
-
mask: _ctx.modal
|
|
47659
|
-
onClick: vue.withModifiers(_ctx.handleWrapperClick, ["self"])
|
|
47790
|
+
mask: _ctx.modal
|
|
47660
47791
|
}, {
|
|
47661
47792
|
default: vue.withCtx(() => [
|
|
47662
|
-
vue.
|
|
47663
|
-
|
|
47664
|
-
|
|
47665
|
-
|
|
47666
|
-
|
|
47667
|
-
class: vue.normalizeClass([
|
|
47668
|
-
"el-message-box",
|
|
47669
|
-
_ctx.customClass,
|
|
47670
|
-
{ "el-message-box--center": _ctx.center }
|
|
47671
|
-
]),
|
|
47672
|
-
style: vue.normalizeStyle(_ctx.customStyle)
|
|
47793
|
+
vue.createElementVNode("div", {
|
|
47794
|
+
class: "el-overlay-message-box",
|
|
47795
|
+
onClick: _cache[8] || (_cache[8] = (...args) => _ctx.overlayEvent.onClick && _ctx.overlayEvent.onClick(...args)),
|
|
47796
|
+
onMousedown: _cache[9] || (_cache[9] = (...args) => _ctx.overlayEvent.onMousedown && _ctx.overlayEvent.onMousedown(...args)),
|
|
47797
|
+
onMouseup: _cache[10] || (_cache[10] = (...args) => _ctx.overlayEvent.onMouseup && _ctx.overlayEvent.onMouseup(...args))
|
|
47673
47798
|
}, [
|
|
47674
|
-
|
|
47675
|
-
|
|
47676
|
-
|
|
47799
|
+
vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
47800
|
+
ref: "rootRef",
|
|
47801
|
+
role: "dialog",
|
|
47802
|
+
"aria-label": _ctx.title || "dialog",
|
|
47803
|
+
"aria-modal": "true",
|
|
47804
|
+
class: vue.normalizeClass([
|
|
47805
|
+
"el-message-box",
|
|
47806
|
+
_ctx.customClass,
|
|
47807
|
+
{ "el-message-box--center": _ctx.center, "is-draggable": _ctx.draggable }
|
|
47808
|
+
]),
|
|
47809
|
+
style: vue.normalizeStyle(_ctx.customStyle),
|
|
47810
|
+
onClick: _cache[7] || (_cache[7] = vue.withModifiers(() => {
|
|
47811
|
+
}, ["stop"]))
|
|
47812
|
+
}, [
|
|
47813
|
+
_ctx.title !== null && _ctx.title !== void 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$1, [
|
|
47814
|
+
vue.createElementVNode("div", _hoisted_3$1, [
|
|
47815
|
+
_ctx.iconComponent && _ctx.center ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
47816
|
+
key: 0,
|
|
47817
|
+
class: vue.normalizeClass(["el-message-box__status", _ctx.typeClass])
|
|
47818
|
+
}, {
|
|
47819
|
+
default: vue.withCtx(() => [
|
|
47820
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.iconComponent)))
|
|
47821
|
+
]),
|
|
47822
|
+
_: 1
|
|
47823
|
+
}, 8, ["class"])) : vue.createCommentVNode("v-if", true),
|
|
47824
|
+
vue.createElementVNode("span", null, vue.toDisplayString(_ctx.title), 1)
|
|
47825
|
+
]),
|
|
47826
|
+
_ctx.showClose ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
47677
47827
|
key: 0,
|
|
47678
|
-
|
|
47679
|
-
|
|
47680
|
-
|
|
47681
|
-
|
|
47682
|
-
]),
|
|
47683
|
-
|
|
47684
|
-
|
|
47685
|
-
|
|
47828
|
+
type: "button",
|
|
47829
|
+
class: "el-message-box__headerbtn",
|
|
47830
|
+
"aria-label": "Close",
|
|
47831
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.handleAction(_ctx.distinguishCancelAndClose ? "close" : "cancel")),
|
|
47832
|
+
onKeydown: _cache[1] || (_cache[1] = vue.withKeys(vue.withModifiers(($event) => _ctx.handleAction(_ctx.distinguishCancelAndClose ? "close" : "cancel"), ["prevent"]), ["enter"]))
|
|
47833
|
+
}, [
|
|
47834
|
+
vue.createVNode(_component_el_icon, { class: "el-message-box__close" }, {
|
|
47835
|
+
default: vue.withCtx(() => [
|
|
47836
|
+
vue.createVNode(_component_close)
|
|
47837
|
+
]),
|
|
47838
|
+
_: 1
|
|
47839
|
+
})
|
|
47840
|
+
], 32)) : vue.createCommentVNode("v-if", true)
|
|
47841
|
+
], 512)) : vue.createCommentVNode("v-if", true),
|
|
47842
|
+
vue.createElementVNode("div", _hoisted_4$1, [
|
|
47843
|
+
vue.createElementVNode("div", _hoisted_5$1, [
|
|
47844
|
+
_ctx.iconComponent && !_ctx.center && _ctx.hasMessage ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
47845
|
+
key: 0,
|
|
47846
|
+
class: vue.normalizeClass(["el-message-box__status", _ctx.typeClass])
|
|
47847
|
+
}, {
|
|
47848
|
+
default: vue.withCtx(() => [
|
|
47849
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.iconComponent)))
|
|
47850
|
+
]),
|
|
47851
|
+
_: 1
|
|
47852
|
+
}, 8, ["class"])) : vue.createCommentVNode("v-if", true),
|
|
47853
|
+
_ctx.hasMessage ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
|
|
47854
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
47855
|
+
!_ctx.dangerouslyUseHTMLString ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_7, vue.toDisplayString(_ctx.message), 1)) : (vue.openBlock(), vue.createElementBlock("p", {
|
|
47856
|
+
key: 1,
|
|
47857
|
+
innerHTML: _ctx.message
|
|
47858
|
+
}, null, 8, _hoisted_8))
|
|
47859
|
+
])
|
|
47860
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
47861
|
+
]),
|
|
47862
|
+
vue.withDirectives(vue.createElementVNode("div", _hoisted_9, [
|
|
47863
|
+
vue.createVNode(_component_el_input, {
|
|
47864
|
+
ref: "inputRef",
|
|
47865
|
+
modelValue: _ctx.inputValue,
|
|
47866
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.inputValue = $event),
|
|
47867
|
+
type: _ctx.inputType,
|
|
47868
|
+
placeholder: _ctx.inputPlaceholder,
|
|
47869
|
+
class: vue.normalizeClass({ invalid: _ctx.validateError }),
|
|
47870
|
+
onKeydown: vue.withKeys(vue.withModifiers(_ctx.handleInputEnter, ["prevent"]), ["enter"])
|
|
47871
|
+
}, null, 8, ["modelValue", "type", "placeholder", "class", "onKeydown"]),
|
|
47872
|
+
vue.createElementVNode("div", {
|
|
47873
|
+
class: "el-message-box__errormsg",
|
|
47874
|
+
style: vue.normalizeStyle({
|
|
47875
|
+
visibility: !!_ctx.editorErrorMessage ? "visible" : "hidden"
|
|
47876
|
+
})
|
|
47877
|
+
}, vue.toDisplayString(_ctx.editorErrorMessage), 5)
|
|
47878
|
+
], 512), [
|
|
47879
|
+
[vue.vShow, _ctx.showInput]
|
|
47880
|
+
])
|
|
47686
47881
|
]),
|
|
47687
|
-
|
|
47688
|
-
|
|
47689
|
-
|
|
47690
|
-
|
|
47691
|
-
|
|
47692
|
-
|
|
47693
|
-
|
|
47694
|
-
|
|
47695
|
-
|
|
47882
|
+
vue.createElementVNode("div", _hoisted_10, [
|
|
47883
|
+
_ctx.showCancelButton ? (vue.openBlock(), vue.createBlock(_component_el_button, {
|
|
47884
|
+
key: 0,
|
|
47885
|
+
loading: _ctx.cancelButtonLoading,
|
|
47886
|
+
class: vue.normalizeClass([_ctx.cancelButtonClass]),
|
|
47887
|
+
round: _ctx.roundButton,
|
|
47888
|
+
size: _ctx.btnSize,
|
|
47889
|
+
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.handleAction("cancel")),
|
|
47890
|
+
onKeydown: _cache[4] || (_cache[4] = vue.withKeys(vue.withModifiers(($event) => _ctx.handleAction("cancel"), ["prevent"]), ["enter"]))
|
|
47891
|
+
}, {
|
|
47696
47892
|
default: vue.withCtx(() => [
|
|
47697
|
-
vue.
|
|
47893
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.cancelButtonText || _ctx.t("el.messagebox.cancel")), 1)
|
|
47698
47894
|
]),
|
|
47699
47895
|
_: 1
|
|
47700
|
-
})
|
|
47701
|
-
|
|
47702
|
-
|
|
47703
|
-
|
|
47704
|
-
|
|
47705
|
-
|
|
47706
|
-
|
|
47707
|
-
|
|
47896
|
+
}, 8, ["loading", "class", "round", "size"])) : vue.createCommentVNode("v-if", true),
|
|
47897
|
+
vue.withDirectives(vue.createVNode(_component_el_button, {
|
|
47898
|
+
ref: "confirmRef",
|
|
47899
|
+
type: "primary",
|
|
47900
|
+
loading: _ctx.confirmButtonLoading,
|
|
47901
|
+
class: vue.normalizeClass([_ctx.confirmButtonClasses]),
|
|
47902
|
+
round: _ctx.roundButton,
|
|
47903
|
+
disabled: _ctx.confirmButtonDisabled,
|
|
47904
|
+
size: _ctx.btnSize,
|
|
47905
|
+
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.handleAction("confirm")),
|
|
47906
|
+
onKeydown: _cache[6] || (_cache[6] = vue.withKeys(vue.withModifiers(($event) => _ctx.handleAction("confirm"), ["prevent"]), ["enter"]))
|
|
47708
47907
|
}, {
|
|
47709
47908
|
default: vue.withCtx(() => [
|
|
47710
|
-
|
|
47909
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.confirmButtonText || _ctx.t("el.messagebox.confirm")), 1)
|
|
47711
47910
|
]),
|
|
47712
47911
|
_: 1
|
|
47713
|
-
}, 8, ["class"
|
|
47714
|
-
|
|
47715
|
-
|
|
47716
|
-
!_ctx.dangerouslyUseHTMLString ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_7, vue.toDisplayString(_ctx.message), 1)) : (vue.openBlock(), vue.createElementBlock("p", {
|
|
47717
|
-
key: 1,
|
|
47718
|
-
innerHTML: _ctx.message
|
|
47719
|
-
}, null, 8, _hoisted_8))
|
|
47720
|
-
])
|
|
47721
|
-
])) : vue.createCommentVNode("v-if", true)
|
|
47722
|
-
]),
|
|
47723
|
-
vue.withDirectives(vue.createElementVNode("div", _hoisted_9, [
|
|
47724
|
-
vue.createVNode(_component_el_input, {
|
|
47725
|
-
ref: "inputRef",
|
|
47726
|
-
modelValue: _ctx.inputValue,
|
|
47727
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.inputValue = $event),
|
|
47728
|
-
type: _ctx.inputType,
|
|
47729
|
-
placeholder: _ctx.inputPlaceholder,
|
|
47730
|
-
class: vue.normalizeClass({ invalid: _ctx.validateError }),
|
|
47731
|
-
onKeydown: vue.withKeys(vue.withModifiers(_ctx.handleInputEnter, ["prevent"]), ["enter"])
|
|
47732
|
-
}, null, 8, ["modelValue", "type", "placeholder", "class", "onKeydown"]),
|
|
47733
|
-
vue.createElementVNode("div", {
|
|
47734
|
-
class: "el-message-box__errormsg",
|
|
47735
|
-
style: vue.normalizeStyle({
|
|
47736
|
-
visibility: !!_ctx.editorErrorMessage ? "visible" : "hidden"
|
|
47737
|
-
})
|
|
47738
|
-
}, vue.toDisplayString(_ctx.editorErrorMessage), 5)
|
|
47739
|
-
], 512), [
|
|
47740
|
-
[vue.vShow, _ctx.showInput]
|
|
47741
|
-
])
|
|
47742
|
-
]),
|
|
47743
|
-
vue.createElementVNode("div", _hoisted_10, [
|
|
47744
|
-
_ctx.showCancelButton ? (vue.openBlock(), vue.createBlock(_component_el_button, {
|
|
47745
|
-
key: 0,
|
|
47746
|
-
loading: _ctx.cancelButtonLoading,
|
|
47747
|
-
class: vue.normalizeClass([_ctx.cancelButtonClass]),
|
|
47748
|
-
round: _ctx.roundButton,
|
|
47749
|
-
size: _ctx.btnSize,
|
|
47750
|
-
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.handleAction("cancel")),
|
|
47751
|
-
onKeydown: _cache[4] || (_cache[4] = vue.withKeys(vue.withModifiers(($event) => _ctx.handleAction("cancel"), ["prevent"]), ["enter"]))
|
|
47752
|
-
}, {
|
|
47753
|
-
default: vue.withCtx(() => [
|
|
47754
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.cancelButtonText || _ctx.t("el.messagebox.cancel")), 1)
|
|
47755
|
-
]),
|
|
47756
|
-
_: 1
|
|
47757
|
-
}, 8, ["loading", "class", "round", "size"])) : vue.createCommentVNode("v-if", true),
|
|
47758
|
-
vue.withDirectives(vue.createVNode(_component_el_button, {
|
|
47759
|
-
ref: "confirmRef",
|
|
47760
|
-
type: "primary",
|
|
47761
|
-
loading: _ctx.confirmButtonLoading,
|
|
47762
|
-
class: vue.normalizeClass([_ctx.confirmButtonClasses]),
|
|
47763
|
-
round: _ctx.roundButton,
|
|
47764
|
-
disabled: _ctx.confirmButtonDisabled,
|
|
47765
|
-
size: _ctx.btnSize,
|
|
47766
|
-
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.handleAction("confirm")),
|
|
47767
|
-
onKeydown: _cache[6] || (_cache[6] = vue.withKeys(vue.withModifiers(($event) => _ctx.handleAction("confirm"), ["prevent"]), ["enter"]))
|
|
47768
|
-
}, {
|
|
47769
|
-
default: vue.withCtx(() => [
|
|
47770
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.confirmButtonText || _ctx.t("el.messagebox.confirm")), 1)
|
|
47771
|
-
]),
|
|
47772
|
-
_: 1
|
|
47773
|
-
}, 8, ["loading", "class", "round", "disabled", "size"]), [
|
|
47774
|
-
[vue.vShow, _ctx.showConfirmButton]
|
|
47912
|
+
}, 8, ["loading", "class", "round", "disabled", "size"]), [
|
|
47913
|
+
[vue.vShow, _ctx.showConfirmButton]
|
|
47914
|
+
])
|
|
47775
47915
|
])
|
|
47916
|
+
], 14, _hoisted_1$1)), [
|
|
47917
|
+
[_directive_trap_focus]
|
|
47776
47918
|
])
|
|
47777
|
-
],
|
|
47778
|
-
[_directive_trap_focus]
|
|
47779
|
-
])
|
|
47919
|
+
], 32)
|
|
47780
47920
|
]),
|
|
47781
47921
|
_: 3
|
|
47782
|
-
}, 8, ["z-index", "overlay-class", "mask"
|
|
47922
|
+
}, 8, ["z-index", "overlay-class", "mask"]), [
|
|
47783
47923
|
[vue.vShow, _ctx.visible]
|
|
47784
47924
|
])
|
|
47785
47925
|
]),
|
|
@@ -48513,8 +48653,11 @@
|
|
|
48513
48653
|
exports.useDelayedRender = useDelayedRender;
|
|
48514
48654
|
exports.useDelayedToggle = useDelayedToggle;
|
|
48515
48655
|
exports.useDelayedToggleProps = useDelayedToggleProps;
|
|
48656
|
+
exports.useDeprecateAppendToBody = useDeprecateAppendToBody;
|
|
48657
|
+
exports.useDeprecated = useDeprecated;
|
|
48516
48658
|
exports.useDialog = useDialog;
|
|
48517
48659
|
exports.useDisabled = useDisabled$1;
|
|
48660
|
+
exports.useDraggable = useDraggable;
|
|
48518
48661
|
exports.useEscapeKeydown = useEscapeKeydown;
|
|
48519
48662
|
exports.useFocus = useFocus;
|
|
48520
48663
|
exports.useFormItem = useFormItem;
|