@element-plus/nightly 0.0.20230305 → 0.0.20230307
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 +117 -42
- 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 +116 -43
- 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/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/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/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/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 v0.0.
|
|
1
|
+
/*! Element Plus v0.0.20230307 */
|
|
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 = "0.0.
|
|
11205
|
+
const version$1 = "0.0.20230307";
|
|
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"]), [
|
|
@@ -54117,7 +54179,6 @@
|
|
|
54117
54179
|
|
|
54118
54180
|
function createLoadingComponent(options) {
|
|
54119
54181
|
let afterLeaveTimer;
|
|
54120
|
-
const ns = useNamespace("loading");
|
|
54121
54182
|
const afterLeaveFlag = vue.ref(false);
|
|
54122
54183
|
const data = vue.reactive({
|
|
54123
54184
|
...options,
|
|
@@ -54130,6 +54191,7 @@
|
|
|
54130
54191
|
}
|
|
54131
54192
|
function destroySelf() {
|
|
54132
54193
|
const target = data.parent;
|
|
54194
|
+
const ns = vm.ns;
|
|
54133
54195
|
if (!target.vLoadingAddClassList) {
|
|
54134
54196
|
let loadingNumber = target.getAttribute("loading-number");
|
|
54135
54197
|
loadingNumber = Number.parseInt(loadingNumber) - 1;
|
|
@@ -54166,9 +54228,15 @@
|
|
|
54166
54228
|
target.vLoadingAddClassList = void 0;
|
|
54167
54229
|
destroySelf();
|
|
54168
54230
|
}
|
|
54169
|
-
const elLoadingComponent = {
|
|
54231
|
+
const elLoadingComponent = vue.defineComponent({
|
|
54170
54232
|
name: "ElLoading",
|
|
54171
|
-
setup() {
|
|
54233
|
+
setup(_, { expose }) {
|
|
54234
|
+
const ns = useNamespace("loading");
|
|
54235
|
+
const zIndex = useZIndex();
|
|
54236
|
+
expose({
|
|
54237
|
+
ns,
|
|
54238
|
+
zIndex
|
|
54239
|
+
});
|
|
54172
54240
|
return () => {
|
|
54173
54241
|
const svg = data.spinner || data.svg;
|
|
54174
54242
|
const spinner = vue.h("svg", {
|
|
@@ -54208,7 +54276,7 @@
|
|
|
54208
54276
|
});
|
|
54209
54277
|
};
|
|
54210
54278
|
}
|
|
54211
|
-
};
|
|
54279
|
+
});
|
|
54212
54280
|
const loadingInstance = vue.createApp(elLoadingComponent);
|
|
54213
54281
|
const vm = loadingInstance.mount(document.createElement("div"));
|
|
54214
54282
|
return {
|
|
@@ -54281,7 +54349,7 @@
|
|
|
54281
54349
|
};
|
|
54282
54350
|
};
|
|
54283
54351
|
const addStyle = async (options, parent, instance) => {
|
|
54284
|
-
const { nextZIndex } =
|
|
54352
|
+
const { nextZIndex } = instance.vm.zIndex;
|
|
54285
54353
|
const maskStyle = {};
|
|
54286
54354
|
if (options.fullscreen) {
|
|
54287
54355
|
instance.originalPosition.value = getStyle(document.body, "position");
|
|
@@ -54305,7 +54373,7 @@
|
|
|
54305
54373
|
}
|
|
54306
54374
|
};
|
|
54307
54375
|
const addClassList = (options, parent, instance) => {
|
|
54308
|
-
const ns =
|
|
54376
|
+
const ns = instance.vm.ns;
|
|
54309
54377
|
if (!["absolute", "fixed", "sticky"].includes(instance.originalPosition.value)) {
|
|
54310
54378
|
addClass(parent, ns.bm("parent", "relative"));
|
|
54311
54379
|
} else {
|
|
@@ -54507,8 +54575,8 @@
|
|
|
54507
54575
|
setup(__props, { expose }) {
|
|
54508
54576
|
const props = __props;
|
|
54509
54577
|
const { Close } = TypeComponents;
|
|
54510
|
-
const ns =
|
|
54511
|
-
const { currentZIndex, nextZIndex } =
|
|
54578
|
+
const { ns, zIndex } = useGlobalComponentSettings("message");
|
|
54579
|
+
const { currentZIndex, nextZIndex } = zIndex;
|
|
54512
54580
|
const messageRef = vue.ref();
|
|
54513
54581
|
const visible = vue.ref(false);
|
|
54514
54582
|
const height = vue.ref(0);
|
|
@@ -54797,10 +54865,15 @@
|
|
|
54797
54865
|
},
|
|
54798
54866
|
emits: ["vanish", "action"],
|
|
54799
54867
|
setup(props, { emit }) {
|
|
54800
|
-
const {
|
|
54801
|
-
|
|
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;
|
|
54802
54876
|
const visible = vue.ref(false);
|
|
54803
|
-
const { nextZIndex } = useZIndex();
|
|
54804
54877
|
const state = vue.reactive({
|
|
54805
54878
|
autofocus: true,
|
|
54806
54879
|
beforeClose: null,
|
|
@@ -54842,7 +54915,6 @@
|
|
|
54842
54915
|
});
|
|
54843
54916
|
const contentId = useId();
|
|
54844
54917
|
const inputId = useId();
|
|
54845
|
-
const btnSize = useFormSize(vue.computed(() => props.buttonSize), { prop: true, form: true, formItem: true });
|
|
54846
54918
|
const iconComponent = vue.computed(() => state.icon || TypeComponentsMap[state.type] || "");
|
|
54847
54919
|
const hasMessage = vue.computed(() => !!state.message);
|
|
54848
54920
|
const rootRef = vue.ref();
|
|
@@ -54973,7 +55045,7 @@
|
|
|
54973
55045
|
}
|
|
54974
55046
|
};
|
|
54975
55047
|
if (props.lockScroll) {
|
|
54976
|
-
useLockscreen(visible);
|
|
55048
|
+
useLockscreen(visible, { ns });
|
|
54977
55049
|
}
|
|
54978
55050
|
useRestoreActive(visible);
|
|
54979
55051
|
return {
|
|
@@ -55022,7 +55094,8 @@
|
|
|
55022
55094
|
vue.withDirectives(vue.createVNode(_component_el_overlay, {
|
|
55023
55095
|
"z-index": _ctx.zIndex,
|
|
55024
55096
|
"overlay-class": [_ctx.ns.is("message-box"), _ctx.modalClass],
|
|
55025
|
-
mask: _ctx.modal
|
|
55097
|
+
mask: _ctx.modal,
|
|
55098
|
+
"is-global": ""
|
|
55026
55099
|
}, {
|
|
55027
55100
|
default: vue.withCtx(() => [
|
|
55028
55101
|
vue.createElementVNode("div", {
|
|
@@ -55424,7 +55497,8 @@
|
|
|
55424
55497
|
emits: notificationEmits,
|
|
55425
55498
|
setup(__props, { expose }) {
|
|
55426
55499
|
const props = __props;
|
|
55427
|
-
const ns =
|
|
55500
|
+
const { ns, zIndex } = useGlobalComponentSettings("notification");
|
|
55501
|
+
const { nextZIndex, currentZIndex } = zIndex;
|
|
55428
55502
|
const { Close } = CloseComponents;
|
|
55429
55503
|
const visible = vue.ref(false);
|
|
55430
55504
|
let timer = void 0;
|
|
@@ -55442,7 +55516,7 @@
|
|
|
55442
55516
|
const positionStyle = vue.computed(() => {
|
|
55443
55517
|
return {
|
|
55444
55518
|
[verticalProperty.value]: `${props.offset}px`,
|
|
55445
|
-
zIndex:
|
|
55519
|
+
zIndex: currentZIndex.value
|
|
55446
55520
|
};
|
|
55447
55521
|
});
|
|
55448
55522
|
function startTimer() {
|
|
@@ -55472,6 +55546,7 @@
|
|
|
55472
55546
|
}
|
|
55473
55547
|
vue.onMounted(() => {
|
|
55474
55548
|
startTimer();
|
|
55549
|
+
nextZIndex();
|
|
55475
55550
|
visible.value = true;
|
|
55476
55551
|
});
|
|
55477
55552
|
useEventListener(document, "keydown", onKeydown);
|
|
@@ -55568,11 +55643,9 @@
|
|
|
55568
55643
|
verticalOffset += (((_a = vm2.el) == null ? void 0 : _a.offsetHeight) || 0) + GAP_SIZE;
|
|
55569
55644
|
});
|
|
55570
55645
|
verticalOffset += GAP_SIZE;
|
|
55571
|
-
const { nextZIndex } = useZIndex();
|
|
55572
55646
|
const id = `notification_${seed++}`;
|
|
55573
55647
|
const userOnClose = options.onClose;
|
|
55574
55648
|
const props = {
|
|
55575
|
-
zIndex: nextZIndex(),
|
|
55576
55649
|
...options,
|
|
55577
55650
|
offset: verticalOffset,
|
|
55578
55651
|
id,
|
|
@@ -55888,6 +55961,7 @@
|
|
|
55888
55961
|
exports.datePickTypes = datePickTypes;
|
|
55889
55962
|
exports.dayjs = dayjs;
|
|
55890
55963
|
exports["default"] = installer;
|
|
55964
|
+
exports.defaultInitialZIndex = defaultInitialZIndex;
|
|
55891
55965
|
exports.defaultNamespace = defaultNamespace;
|
|
55892
55966
|
exports.descriptionProps = descriptionProps;
|
|
55893
55967
|
exports.dialogEmits = dialogEmits;
|
|
@@ -56044,6 +56118,7 @@
|
|
|
56044
56118
|
exports.useForwardRef = useForwardRef;
|
|
56045
56119
|
exports.useForwardRefDirective = useForwardRefDirective;
|
|
56046
56120
|
exports.useGetDerivedNamespace = useGetDerivedNamespace;
|
|
56121
|
+
exports.useGlobalComponentSettings = useGlobalComponentSettings;
|
|
56047
56122
|
exports.useGlobalConfig = useGlobalConfig;
|
|
56048
56123
|
exports.useGlobalSize = useGlobalSize;
|
|
56049
56124
|
exports.useId = useId;
|