element-plus 2.2.33 → 2.2.35
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/dist/index.full.js +124 -45
- package/dist/index.full.min.js +19 -19
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +19 -19
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +123 -46
- 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/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.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/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.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/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.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/config-provider/index.mjs +1 -1
- package/es/components/config-provider/src/hooks/use-global-config.d.ts +27 -0
- package/es/components/config-provider/src/hooks/use-global-config.mjs +30 -5
- package/es/components/config-provider/src/hooks/use-global-config.mjs.map +1 -1
- package/es/components/dialog/index.d.ts +12 -0
- package/es/components/dialog/src/dialog.vue.d.ts +12 -0
- package/es/components/index.mjs +1 -1
- package/es/components/loading/src/loading.mjs +13 -6
- package/es/components/loading/src/loading.mjs.map +1 -1
- package/es/components/loading/src/service.mjs +2 -5
- package/es/components/loading/src/service.mjs.map +1 -1
- package/es/components/message/src/message.vue.d.ts +5 -0
- package/es/components/message/src/message2.mjs +4 -5
- package/es/components/message/src/message2.mjs.map +1 -1
- package/es/components/message-box/src/index.mjs +14 -12
- package/es/components/message-box/src/index.mjs.map +1 -1
- package/es/components/message-box/src/index.vue.d.ts +2 -1852
- package/es/components/notification/src/notification.vue.d.ts +7 -0
- package/es/components/notification/src/notification2.mjs +6 -4
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs +0 -4
- package/es/components/notification/src/notify.mjs.map +1 -1
- package/es/components/overlay/index.d.ts +12 -0
- package/es/components/overlay/src/overlay.d.ts +18 -0
- package/es/components/overlay/src/overlay.mjs +7 -1
- package/es/components/overlay/src/overlay.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.vue.d.ts +1 -0
- package/es/components/select/index.d.ts +1 -0
- package/es/components/select/src/options.d.ts +7 -0
- package/es/components/select/src/options.mjs +29 -0
- package/es/components/select/src/options.mjs.map +1 -0
- package/es/components/select/src/select.mjs +14 -1
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select.vue.d.ts +1 -0
- package/es/components/select/src/useSelect.d.ts +1 -0
- package/es/components/select/src/useSelect.mjs +2 -10
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/table-v2/src/renderers/cell.mjs +1 -1
- package/es/components/table-v2/src/renderers/cell.mjs.map +1 -1
- package/es/components/time-select/index.d.ts +4 -0
- package/es/components/time-select/src/time-select.vue.d.ts +2 -0
- package/es/components/tooltip/src/tooltip.vue.d.ts +9 -12
- package/es/components/tree-select/src/cache-options.mjs +6 -2
- package/es/components/tree-select/src/cache-options.mjs.map +1 -1
- package/es/hooks/index.mjs +1 -1
- package/es/hooks/use-locale/index.d.ts +1 -1
- package/es/hooks/use-locale/index.mjs +2 -2
- package/es/hooks/use-locale/index.mjs.map +1 -1
- package/es/hooks/use-lockscreen/index.d.ts +5 -1
- package/es/hooks/use-lockscreen/index.mjs +2 -2
- package/es/hooks/use-lockscreen/index.mjs.map +1 -1
- package/es/hooks/use-namespace/index.d.ts +2 -2
- package/es/hooks/use-namespace/index.mjs +4 -4
- package/es/hooks/use-namespace/index.mjs.map +1 -1
- package/es/hooks/use-popper-container/index.d.ts +4 -1
- package/es/hooks/use-popper-container/index.mjs +5 -1
- package/es/hooks/use-popper-container/index.mjs.map +1 -1
- package/es/hooks/use-z-index/index.d.ts +3 -1
- package/es/hooks/use-z-index/index.mjs +3 -3
- package/es/hooks/use-z-index/index.mjs.map +1 -1
- package/es/index.mjs +2 -2
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/config-provider/index.js +1 -0
- package/lib/components/config-provider/index.js.map +1 -1
- package/lib/components/config-provider/src/hooks/use-global-config.d.ts +27 -0
- package/lib/components/config-provider/src/hooks/use-global-config.js +31 -5
- package/lib/components/config-provider/src/hooks/use-global-config.js.map +1 -1
- package/lib/components/dialog/index.d.ts +12 -0
- package/lib/components/dialog/src/dialog.vue.d.ts +12 -0
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/loading/src/loading.js +12 -5
- package/lib/components/loading/src/loading.js.map +1 -1
- package/lib/components/loading/src/service.js +2 -5
- package/lib/components/loading/src/service.js.map +1 -1
- package/lib/components/message/src/message.vue.d.ts +5 -0
- package/lib/components/message/src/message2.js +9 -10
- package/lib/components/message/src/message2.js.map +1 -1
- package/lib/components/message-box/src/index.js +23 -21
- package/lib/components/message-box/src/index.js.map +1 -1
- package/lib/components/message-box/src/index.vue.d.ts +2 -1852
- package/lib/components/notification/src/notification.vue.d.ts +7 -0
- package/lib/components/notification/src/notification2.js +9 -7
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/notification/src/notify.js +0 -4
- package/lib/components/notification/src/notify.js.map +1 -1
- package/lib/components/overlay/index.d.ts +12 -0
- package/lib/components/overlay/src/overlay.d.ts +18 -0
- package/lib/components/overlay/src/overlay.js +7 -1
- package/lib/components/overlay/src/overlay.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.vue.d.ts +1 -0
- package/lib/components/select/index.d.ts +1 -0
- package/lib/components/select/src/options.d.ts +7 -0
- package/lib/components/select/src/options.js +33 -0
- package/lib/components/select/src/options.js.map +1 -0
- package/lib/components/select/src/select.js +14 -1
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select.vue.d.ts +1 -0
- package/lib/components/select/src/useSelect.d.ts +1 -0
- package/lib/components/select/src/useSelect.js +1 -9
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/table-v2/src/renderers/cell.js +1 -1
- package/lib/components/table-v2/src/renderers/cell.js.map +1 -1
- package/lib/components/time-select/index.d.ts +4 -0
- package/lib/components/time-select/src/time-select.vue.d.ts +2 -0
- package/lib/components/tooltip/src/tooltip.vue.d.ts +9 -12
- package/lib/components/tree-select/src/cache-options.js +6 -2
- package/lib/components/tree-select/src/cache-options.js.map +1 -1
- package/lib/hooks/index.js +1 -0
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-locale/index.d.ts +1 -1
- package/lib/hooks/use-locale/index.js +2 -2
- package/lib/hooks/use-locale/index.js.map +1 -1
- package/lib/hooks/use-lockscreen/index.d.ts +5 -1
- package/lib/hooks/use-lockscreen/index.js +2 -2
- package/lib/hooks/use-lockscreen/index.js.map +1 -1
- package/lib/hooks/use-namespace/index.d.ts +2 -2
- package/lib/hooks/use-namespace/index.js +4 -4
- package/lib/hooks/use-namespace/index.js.map +1 -1
- package/lib/hooks/use-popper-container/index.d.ts +4 -1
- package/lib/hooks/use-popper-container/index.js +5 -1
- package/lib/hooks/use-popper-container/index.js.map +1 -1
- package/lib/hooks/use-z-index/index.d.ts +3 -1
- package/lib/hooks/use-z-index/index.js +3 -2
- package/lib/hooks/use-z-index/index.js.map +1 -1
- package/lib/index.js +2 -0
- 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/web-types.json +1 -1
package/dist/index.full.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Element Plus v2.2.
|
|
1
|
+
/*! Element Plus v2.2.35 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
@@ -9020,8 +9020,8 @@
|
|
|
9020
9020
|
};
|
|
9021
9021
|
};
|
|
9022
9022
|
const localeContextKey = Symbol("localeContextKey");
|
|
9023
|
-
const useLocale = () => {
|
|
9024
|
-
const locale = vue.inject(localeContextKey, vue.ref());
|
|
9023
|
+
const useLocale = (localeOverrides) => {
|
|
9024
|
+
const locale = localeOverrides || vue.inject(localeContextKey, vue.ref());
|
|
9025
9025
|
return buildLocaleContext(vue.computed(() => locale.value || English));
|
|
9026
9026
|
};
|
|
9027
9027
|
|
|
@@ -9251,15 +9251,15 @@
|
|
|
9251
9251
|
return cls;
|
|
9252
9252
|
};
|
|
9253
9253
|
const namespaceContextKey = Symbol("localeContextKey");
|
|
9254
|
-
const useGetDerivedNamespace = () => {
|
|
9255
|
-
const derivedNamespace = vue.inject(namespaceContextKey, vue.ref(defaultNamespace));
|
|
9254
|
+
const useGetDerivedNamespace = (namespaceOverrides) => {
|
|
9255
|
+
const derivedNamespace = namespaceOverrides || vue.inject(namespaceContextKey, vue.ref(defaultNamespace));
|
|
9256
9256
|
const namespace = vue.computed(() => {
|
|
9257
9257
|
return vue.unref(derivedNamespace) || defaultNamespace;
|
|
9258
9258
|
});
|
|
9259
9259
|
return namespace;
|
|
9260
9260
|
};
|
|
9261
|
-
const useNamespace = (block) => {
|
|
9262
|
-
const namespace = useGetDerivedNamespace();
|
|
9261
|
+
const useNamespace = (block, namespaceOverrides) => {
|
|
9262
|
+
const namespace = useGetDerivedNamespace(namespaceOverrides);
|
|
9263
9263
|
const b = (blockSuffix = "") => _bem(namespace.value, block, blockSuffix, "", "");
|
|
9264
9264
|
const e = (element) => element ? _bem(namespace.value, block, "", element, "") : "";
|
|
9265
9265
|
const m = (modifier) => modifier ? _bem(namespace.value, block, "", "", modifier) : "";
|
|
@@ -9308,11 +9308,11 @@
|
|
|
9308
9308
|
};
|
|
9309
9309
|
};
|
|
9310
9310
|
|
|
9311
|
-
const useLockscreen = (trigger) => {
|
|
9311
|
+
const useLockscreen = (trigger, options = {}) => {
|
|
9312
9312
|
if (!vue.isRef(trigger)) {
|
|
9313
9313
|
throwError("[useLockscreen]", "You need to pass a ref param to this function");
|
|
9314
9314
|
}
|
|
9315
|
-
const ns = useNamespace("popup");
|
|
9315
|
+
const ns = options.ns || useNamespace("popup");
|
|
9316
9316
|
const hiddenCls = computed(() => ns.bm("parent", "hidden"));
|
|
9317
9317
|
if (!isClient || hasClass(document.body, hiddenCls.value)) {
|
|
9318
9318
|
return;
|
|
@@ -9839,14 +9839,18 @@
|
|
|
9839
9839
|
return container;
|
|
9840
9840
|
};
|
|
9841
9841
|
const usePopperContainer = () => {
|
|
9842
|
+
const { id, selector } = usePopperContainerId();
|
|
9842
9843
|
vue.onBeforeMount(() => {
|
|
9843
9844
|
if (!isClient)
|
|
9844
9845
|
return;
|
|
9845
|
-
const { id, selector } = usePopperContainerId();
|
|
9846
9846
|
if (!cachedContainer && !document.body.querySelector(selector.value)) {
|
|
9847
9847
|
cachedContainer = createContainer(id.value);
|
|
9848
9848
|
}
|
|
9849
9849
|
});
|
|
9850
|
+
return {
|
|
9851
|
+
id,
|
|
9852
|
+
selector
|
|
9853
|
+
};
|
|
9850
9854
|
};
|
|
9851
9855
|
|
|
9852
9856
|
const useDelayedRender = ({
|
|
@@ -9947,8 +9951,8 @@
|
|
|
9947
9951
|
const zIndex = vue.ref(0);
|
|
9948
9952
|
const defaultInitialZIndex = 2e3;
|
|
9949
9953
|
const zIndexContextKey = Symbol("zIndexContextKey");
|
|
9950
|
-
const useZIndex = () => {
|
|
9951
|
-
const zIndexInjection = vue.inject(zIndexContextKey, void 0);
|
|
9954
|
+
const useZIndex = (zIndexOverrides) => {
|
|
9955
|
+
const zIndexInjection = zIndexOverrides || vue.inject(zIndexContextKey, void 0);
|
|
9952
9956
|
const initialZIndex = vue.computed(() => {
|
|
9953
9957
|
const zIndexFromInjection = vue.unref(zIndexInjection);
|
|
9954
9958
|
return isNumber$1(zIndexFromInjection) ? zIndexFromInjection : defaultInitialZIndex;
|
|
@@ -11093,6 +11097,31 @@
|
|
|
11093
11097
|
return config;
|
|
11094
11098
|
}
|
|
11095
11099
|
}
|
|
11100
|
+
function useGlobalComponentSettings(block, sizeFallback) {
|
|
11101
|
+
const config = useGlobalConfig();
|
|
11102
|
+
const ns = useNamespace(block, vue.computed(() => {
|
|
11103
|
+
var _a;
|
|
11104
|
+
return ((_a = config.value) == null ? void 0 : _a.namespace) || defaultNamespace;
|
|
11105
|
+
}));
|
|
11106
|
+
const locale = useLocale(vue.computed(() => {
|
|
11107
|
+
var _a;
|
|
11108
|
+
return (_a = config.value) == null ? void 0 : _a.locale;
|
|
11109
|
+
}));
|
|
11110
|
+
const zIndex = useZIndex(vue.computed(() => {
|
|
11111
|
+
var _a;
|
|
11112
|
+
return ((_a = config.value) == null ? void 0 : _a.zIndex) || defaultInitialZIndex;
|
|
11113
|
+
}));
|
|
11114
|
+
const size = vue.computed(() => {
|
|
11115
|
+
var _a;
|
|
11116
|
+
return vue.unref(sizeFallback) || ((_a = config.value) == null ? void 0 : _a.size) || "";
|
|
11117
|
+
});
|
|
11118
|
+
return {
|
|
11119
|
+
ns,
|
|
11120
|
+
locale,
|
|
11121
|
+
zIndex,
|
|
11122
|
+
size
|
|
11123
|
+
};
|
|
11124
|
+
}
|
|
11096
11125
|
const provideGlobalConfig = (config, app, global = false) => {
|
|
11097
11126
|
var _a;
|
|
11098
11127
|
const inSetup = !!vue.getCurrentInstance();
|
|
@@ -11173,7 +11202,7 @@
|
|
|
11173
11202
|
|
|
11174
11203
|
const ElConfigProvider = withInstall(ConfigProvider);
|
|
11175
11204
|
|
|
11176
|
-
const version$1 = "2.2.
|
|
11205
|
+
const version$1 = "2.2.35";
|
|
11177
11206
|
|
|
11178
11207
|
const makeInstaller = (components = []) => {
|
|
11179
11208
|
const install = (app, options) => {
|
|
@@ -28570,17 +28599,21 @@
|
|
|
28570
28599
|
},
|
|
28571
28600
|
zIndex: {
|
|
28572
28601
|
type: definePropType([String, Number])
|
|
28602
|
+
},
|
|
28603
|
+
isGlobal: {
|
|
28604
|
+
type: Boolean
|
|
28573
28605
|
}
|
|
28574
28606
|
});
|
|
28575
28607
|
const overlayEmits = {
|
|
28576
28608
|
click: (evt) => evt instanceof MouseEvent
|
|
28577
28609
|
};
|
|
28610
|
+
const BLOCK = "overlay";
|
|
28578
28611
|
var Overlay$1 = vue.defineComponent({
|
|
28579
28612
|
name: "ElOverlay",
|
|
28580
28613
|
props: overlayProps,
|
|
28581
28614
|
emits: overlayEmits,
|
|
28582
28615
|
setup(props, { slots, emit }) {
|
|
28583
|
-
const ns = useNamespace(
|
|
28616
|
+
const ns = props.isGlobal ? useGlobalComponentSettings(BLOCK).ns : useNamespace(BLOCK);
|
|
28584
28617
|
const onMaskClick = (e) => {
|
|
28585
28618
|
emit("click", e);
|
|
28586
28619
|
};
|
|
@@ -33186,17 +33219,8 @@
|
|
|
33186
33219
|
const hoverOption = vue.ref(-1);
|
|
33187
33220
|
const queryChange = vue.shallowRef({ query: "" });
|
|
33188
33221
|
const groupQueryChange = vue.shallowRef("");
|
|
33189
|
-
const instance = vue.getCurrentInstance();
|
|
33190
33222
|
const optionList = vue.ref([]);
|
|
33191
33223
|
let originClientHeight = 0;
|
|
33192
|
-
vue.onUpdated(() => {
|
|
33193
|
-
var _a, _b;
|
|
33194
|
-
const childrens = (_b = instance == null ? void 0 : (_a = instance.slots).default) == null ? void 0 : _b.call(_a)[0].children;
|
|
33195
|
-
if (childrens && childrens.length) {
|
|
33196
|
-
const options = childrens.filter((item) => item.type.name === "ElOption").map((item) => item.props.label);
|
|
33197
|
-
optionList.value = options;
|
|
33198
|
-
}
|
|
33199
|
-
});
|
|
33200
33224
|
const { form, formItem } = useFormItem();
|
|
33201
33225
|
const readonly = vue.computed(() => !props.filterable || props.multiple || !states.visible);
|
|
33202
33226
|
const selectDisabled = vue.computed(() => props.disabled || (form == null ? void 0 : form.disabled));
|
|
@@ -33809,6 +33833,7 @@
|
|
|
33809
33833
|
states.mouseEnter = false;
|
|
33810
33834
|
};
|
|
33811
33835
|
return {
|
|
33836
|
+
optionList,
|
|
33812
33837
|
optionsArray,
|
|
33813
33838
|
selectSize,
|
|
33814
33839
|
handleResize,
|
|
@@ -33860,6 +33885,31 @@
|
|
|
33860
33885
|
};
|
|
33861
33886
|
};
|
|
33862
33887
|
|
|
33888
|
+
var ElOptions = vue.defineComponent({
|
|
33889
|
+
name: "ElOptions",
|
|
33890
|
+
emits: ["update-options"],
|
|
33891
|
+
setup(_, { slots, emit }) {
|
|
33892
|
+
return () => {
|
|
33893
|
+
var _a, _b, _c, _d;
|
|
33894
|
+
const children = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
33895
|
+
if (children.length) {
|
|
33896
|
+
const options = ((_d = (_c = (_b = children[0]) == null ? void 0 : _b.children) == null ? void 0 : _c[0]) == null ? void 0 : _d.children) || [];
|
|
33897
|
+
if (options && options.length) {
|
|
33898
|
+
const filteredOptions = options.filter((item) => {
|
|
33899
|
+
var _a2;
|
|
33900
|
+
return ((_a2 = (item == null ? void 0 : item.type) || {}) == null ? void 0 : _a2.name) === "ElOption";
|
|
33901
|
+
}).map((item) => {
|
|
33902
|
+
var _a2;
|
|
33903
|
+
return (_a2 = item.props) == null ? void 0 : _a2.label;
|
|
33904
|
+
});
|
|
33905
|
+
emit("update-options", filteredOptions);
|
|
33906
|
+
}
|
|
33907
|
+
}
|
|
33908
|
+
return children;
|
|
33909
|
+
};
|
|
33910
|
+
}
|
|
33911
|
+
});
|
|
33912
|
+
|
|
33863
33913
|
const COMPONENT_NAME$9 = "ElSelect";
|
|
33864
33914
|
const _sfc_main$N = vue.defineComponent({
|
|
33865
33915
|
name: COMPONENT_NAME$9,
|
|
@@ -33868,6 +33918,7 @@
|
|
|
33868
33918
|
ElInput,
|
|
33869
33919
|
ElSelectMenu: ElSelectMenu$1,
|
|
33870
33920
|
ElOption: Option,
|
|
33921
|
+
ElOptions,
|
|
33871
33922
|
ElTag,
|
|
33872
33923
|
ElScrollbar,
|
|
33873
33924
|
ElTooltip,
|
|
@@ -33986,6 +34037,7 @@
|
|
|
33986
34037
|
const { t } = useLocale();
|
|
33987
34038
|
const states = useSelectStates(props);
|
|
33988
34039
|
const {
|
|
34040
|
+
optionList,
|
|
33989
34041
|
optionsArray,
|
|
33990
34042
|
selectSize,
|
|
33991
34043
|
readonly,
|
|
@@ -34124,7 +34176,11 @@
|
|
|
34124
34176
|
var _a, _b;
|
|
34125
34177
|
return (_b = (_a = tooltipRef.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
34126
34178
|
});
|
|
34179
|
+
const onOptionsRendered = (v) => {
|
|
34180
|
+
optionList.value = v;
|
|
34181
|
+
};
|
|
34127
34182
|
return {
|
|
34183
|
+
onOptionsRendered,
|
|
34128
34184
|
tagInMultiLine,
|
|
34129
34185
|
prefixWidth,
|
|
34130
34186
|
selectSize,
|
|
@@ -34201,6 +34257,7 @@
|
|
|
34201
34257
|
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
34202
34258
|
const _component_el_input = vue.resolveComponent("el-input");
|
|
34203
34259
|
const _component_el_option = vue.resolveComponent("el-option");
|
|
34260
|
+
const _component_el_options = vue.resolveComponent("el-options");
|
|
34204
34261
|
const _component_el_scrollbar = vue.resolveComponent("el-scrollbar");
|
|
34205
34262
|
const _component_el_select_menu = vue.resolveComponent("el-select-menu");
|
|
34206
34263
|
const _directive_click_outside = vue.resolveDirective("click-outside");
|
|
@@ -34479,7 +34536,12 @@
|
|
|
34479
34536
|
value: _ctx.query,
|
|
34480
34537
|
created: true
|
|
34481
34538
|
}, null, 8, ["value"])) : vue.createCommentVNode("v-if", true),
|
|
34482
|
-
vue.
|
|
34539
|
+
vue.createVNode(_component_el_options, { onUpdateOptions: _ctx.onOptionsRendered }, {
|
|
34540
|
+
default: vue.withCtx(() => [
|
|
34541
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
34542
|
+
]),
|
|
34543
|
+
_: 3
|
|
34544
|
+
}, 8, ["onUpdateOptions"])
|
|
34483
34545
|
]),
|
|
34484
34546
|
_: 3
|
|
34485
34547
|
}, 8, ["wrap-class", "view-class", "class"]), [
|
|
@@ -47753,7 +47815,7 @@
|
|
|
47753
47815
|
rowIndex
|
|
47754
47816
|
};
|
|
47755
47817
|
const Cell = CellComponent(cellProps);
|
|
47756
|
-
const kls = [ns.e("row-cell"), column.align === Alignment.CENTER && ns.is("align-center"), column.align === Alignment.RIGHT && ns.is("align-right")];
|
|
47818
|
+
const kls = [ns.e("row-cell"), column.class, column.align === Alignment.CENTER && ns.is("align-center"), column.align === Alignment.RIGHT && ns.is("align-right")];
|
|
47757
47819
|
const expandable = rowIndex >= 0 && column.key === expandColumnKey;
|
|
47758
47820
|
const expanded = rowIndex >= 0 && expandedRowKeys.includes(rowData[rowKey]);
|
|
47759
47821
|
let IconOrPlaceholder;
|
|
@@ -52037,13 +52099,17 @@
|
|
|
52037
52099
|
setup(props) {
|
|
52038
52100
|
const select = vue.inject(selectKey);
|
|
52039
52101
|
vue.watch(() => props.data, () => {
|
|
52102
|
+
var _a;
|
|
52040
52103
|
props.data.forEach((item) => {
|
|
52041
52104
|
if (!select.cachedOptions.has(item.value)) {
|
|
52042
52105
|
select.cachedOptions.set(item.value, item);
|
|
52043
52106
|
}
|
|
52044
52107
|
});
|
|
52045
|
-
select.
|
|
52046
|
-
|
|
52108
|
+
const inputs = ((_a = select.selectWrapper) == null ? void 0 : _a.querySelectorAll("input")) || [];
|
|
52109
|
+
if (!Array.from(inputs).includes(document.activeElement)) {
|
|
52110
|
+
select.setSelected();
|
|
52111
|
+
}
|
|
52112
|
+
}, { flush: "post", immediate: true });
|
|
52047
52113
|
return () => void 0;
|
|
52048
52114
|
}
|
|
52049
52115
|
});
|
|
@@ -54113,7 +54179,6 @@
|
|
|
54113
54179
|
|
|
54114
54180
|
function createLoadingComponent(options) {
|
|
54115
54181
|
let afterLeaveTimer;
|
|
54116
|
-
const ns = useNamespace("loading");
|
|
54117
54182
|
const afterLeaveFlag = vue.ref(false);
|
|
54118
54183
|
const data = vue.reactive({
|
|
54119
54184
|
...options,
|
|
@@ -54126,6 +54191,7 @@
|
|
|
54126
54191
|
}
|
|
54127
54192
|
function destroySelf() {
|
|
54128
54193
|
const target = data.parent;
|
|
54194
|
+
const ns = vm.ns;
|
|
54129
54195
|
if (!target.vLoadingAddClassList) {
|
|
54130
54196
|
let loadingNumber = target.getAttribute("loading-number");
|
|
54131
54197
|
loadingNumber = Number.parseInt(loadingNumber) - 1;
|
|
@@ -54162,9 +54228,15 @@
|
|
|
54162
54228
|
target.vLoadingAddClassList = void 0;
|
|
54163
54229
|
destroySelf();
|
|
54164
54230
|
}
|
|
54165
|
-
const elLoadingComponent = {
|
|
54231
|
+
const elLoadingComponent = vue.defineComponent({
|
|
54166
54232
|
name: "ElLoading",
|
|
54167
|
-
setup() {
|
|
54233
|
+
setup(_, { expose }) {
|
|
54234
|
+
const ns = useNamespace("loading");
|
|
54235
|
+
const zIndex = useZIndex();
|
|
54236
|
+
expose({
|
|
54237
|
+
ns,
|
|
54238
|
+
zIndex
|
|
54239
|
+
});
|
|
54168
54240
|
return () => {
|
|
54169
54241
|
const svg = data.spinner || data.svg;
|
|
54170
54242
|
const spinner = vue.h("svg", {
|
|
@@ -54204,7 +54276,7 @@
|
|
|
54204
54276
|
});
|
|
54205
54277
|
};
|
|
54206
54278
|
}
|
|
54207
|
-
};
|
|
54279
|
+
});
|
|
54208
54280
|
const loadingInstance = vue.createApp(elLoadingComponent);
|
|
54209
54281
|
const vm = loadingInstance.mount(document.createElement("div"));
|
|
54210
54282
|
return {
|
|
@@ -54277,7 +54349,7 @@
|
|
|
54277
54349
|
};
|
|
54278
54350
|
};
|
|
54279
54351
|
const addStyle = async (options, parent, instance) => {
|
|
54280
|
-
const { nextZIndex } =
|
|
54352
|
+
const { nextZIndex } = instance.vm.zIndex;
|
|
54281
54353
|
const maskStyle = {};
|
|
54282
54354
|
if (options.fullscreen) {
|
|
54283
54355
|
instance.originalPosition.value = getStyle(document.body, "position");
|
|
@@ -54301,7 +54373,7 @@
|
|
|
54301
54373
|
}
|
|
54302
54374
|
};
|
|
54303
54375
|
const addClassList = (options, parent, instance) => {
|
|
54304
|
-
const ns =
|
|
54376
|
+
const ns = instance.vm.ns;
|
|
54305
54377
|
if (!["absolute", "fixed", "sticky"].includes(instance.originalPosition.value)) {
|
|
54306
54378
|
addClass(parent, ns.bm("parent", "relative"));
|
|
54307
54379
|
} else {
|
|
@@ -54503,8 +54575,8 @@
|
|
|
54503
54575
|
setup(__props, { expose }) {
|
|
54504
54576
|
const props = __props;
|
|
54505
54577
|
const { Close } = TypeComponents;
|
|
54506
|
-
const ns =
|
|
54507
|
-
const { currentZIndex, nextZIndex } =
|
|
54578
|
+
const { ns, zIndex } = useGlobalComponentSettings("message");
|
|
54579
|
+
const { currentZIndex, nextZIndex } = zIndex;
|
|
54508
54580
|
const messageRef = vue.ref();
|
|
54509
54581
|
const visible = vue.ref(false);
|
|
54510
54582
|
const height = vue.ref(0);
|
|
@@ -54793,10 +54865,15 @@
|
|
|
54793
54865
|
},
|
|
54794
54866
|
emits: ["vanish", "action"],
|
|
54795
54867
|
setup(props, { emit }) {
|
|
54796
|
-
const {
|
|
54797
|
-
|
|
54868
|
+
const {
|
|
54869
|
+
locale,
|
|
54870
|
+
zIndex,
|
|
54871
|
+
ns,
|
|
54872
|
+
size: btnSize
|
|
54873
|
+
} = useGlobalComponentSettings("message-box", vue.computed(() => props.buttonSize));
|
|
54874
|
+
const { t } = locale;
|
|
54875
|
+
const { nextZIndex } = zIndex;
|
|
54798
54876
|
const visible = vue.ref(false);
|
|
54799
|
-
const { nextZIndex } = useZIndex();
|
|
54800
54877
|
const state = vue.reactive({
|
|
54801
54878
|
autofocus: true,
|
|
54802
54879
|
beforeClose: null,
|
|
@@ -54838,7 +54915,6 @@
|
|
|
54838
54915
|
});
|
|
54839
54916
|
const contentId = useId();
|
|
54840
54917
|
const inputId = useId();
|
|
54841
|
-
const btnSize = useFormSize(vue.computed(() => props.buttonSize), { prop: true, form: true, formItem: true });
|
|
54842
54918
|
const iconComponent = vue.computed(() => state.icon || TypeComponentsMap[state.type] || "");
|
|
54843
54919
|
const hasMessage = vue.computed(() => !!state.message);
|
|
54844
54920
|
const rootRef = vue.ref();
|
|
@@ -54969,7 +55045,7 @@
|
|
|
54969
55045
|
}
|
|
54970
55046
|
};
|
|
54971
55047
|
if (props.lockScroll) {
|
|
54972
|
-
useLockscreen(visible);
|
|
55048
|
+
useLockscreen(visible, { ns });
|
|
54973
55049
|
}
|
|
54974
55050
|
useRestoreActive(visible);
|
|
54975
55051
|
return {
|
|
@@ -55018,7 +55094,8 @@
|
|
|
55018
55094
|
vue.withDirectives(vue.createVNode(_component_el_overlay, {
|
|
55019
55095
|
"z-index": _ctx.zIndex,
|
|
55020
55096
|
"overlay-class": [_ctx.ns.is("message-box"), _ctx.modalClass],
|
|
55021
|
-
mask: _ctx.modal
|
|
55097
|
+
mask: _ctx.modal,
|
|
55098
|
+
"is-global": ""
|
|
55022
55099
|
}, {
|
|
55023
55100
|
default: vue.withCtx(() => [
|
|
55024
55101
|
vue.createElementVNode("div", {
|
|
@@ -55420,7 +55497,8 @@
|
|
|
55420
55497
|
emits: notificationEmits,
|
|
55421
55498
|
setup(__props, { expose }) {
|
|
55422
55499
|
const props = __props;
|
|
55423
|
-
const ns =
|
|
55500
|
+
const { ns, zIndex } = useGlobalComponentSettings("notification");
|
|
55501
|
+
const { nextZIndex, currentZIndex } = zIndex;
|
|
55424
55502
|
const { Close } = CloseComponents;
|
|
55425
55503
|
const visible = vue.ref(false);
|
|
55426
55504
|
let timer = void 0;
|
|
@@ -55438,7 +55516,7 @@
|
|
|
55438
55516
|
const positionStyle = vue.computed(() => {
|
|
55439
55517
|
return {
|
|
55440
55518
|
[verticalProperty.value]: `${props.offset}px`,
|
|
55441
|
-
zIndex:
|
|
55519
|
+
zIndex: currentZIndex.value
|
|
55442
55520
|
};
|
|
55443
55521
|
});
|
|
55444
55522
|
function startTimer() {
|
|
@@ -55468,6 +55546,7 @@
|
|
|
55468
55546
|
}
|
|
55469
55547
|
vue.onMounted(() => {
|
|
55470
55548
|
startTimer();
|
|
55549
|
+
nextZIndex();
|
|
55471
55550
|
visible.value = true;
|
|
55472
55551
|
});
|
|
55473
55552
|
useEventListener(document, "keydown", onKeydown);
|
|
@@ -55564,11 +55643,9 @@
|
|
|
55564
55643
|
verticalOffset += (((_a = vm2.el) == null ? void 0 : _a.offsetHeight) || 0) + GAP_SIZE;
|
|
55565
55644
|
});
|
|
55566
55645
|
verticalOffset += GAP_SIZE;
|
|
55567
|
-
const { nextZIndex } = useZIndex();
|
|
55568
55646
|
const id = `notification_${seed++}`;
|
|
55569
55647
|
const userOnClose = options.onClose;
|
|
55570
55648
|
const props = {
|
|
55571
|
-
zIndex: nextZIndex(),
|
|
55572
55649
|
...options,
|
|
55573
55650
|
offset: verticalOffset,
|
|
55574
55651
|
id,
|
|
@@ -55884,6 +55961,7 @@
|
|
|
55884
55961
|
exports.datePickTypes = datePickTypes;
|
|
55885
55962
|
exports.dayjs = dayjs;
|
|
55886
55963
|
exports["default"] = installer;
|
|
55964
|
+
exports.defaultInitialZIndex = defaultInitialZIndex;
|
|
55887
55965
|
exports.defaultNamespace = defaultNamespace;
|
|
55888
55966
|
exports.descriptionProps = descriptionProps;
|
|
55889
55967
|
exports.dialogEmits = dialogEmits;
|
|
@@ -56040,6 +56118,7 @@
|
|
|
56040
56118
|
exports.useForwardRef = useForwardRef;
|
|
56041
56119
|
exports.useForwardRefDirective = useForwardRefDirective;
|
|
56042
56120
|
exports.useGetDerivedNamespace = useGetDerivedNamespace;
|
|
56121
|
+
exports.useGlobalComponentSettings = useGlobalComponentSettings;
|
|
56043
56122
|
exports.useGlobalConfig = useGlobalConfig;
|
|
56044
56123
|
exports.useGlobalSize = useGlobalSize;
|
|
56045
56124
|
exports.useId = useId;
|