@element-plus/nightly 0.0.20230306 → 0.0.20230308
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 +102 -30
- package/dist/index.full.min.js +12 -12
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +12 -12
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +102 -30
- 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/src/hooks/use-global-config.d.ts +2 -1
- package/es/components/config-provider/src/hooks/use-global-config.mjs +9 -3
- package/es/components/config-provider/src/hooks/use-global-config.mjs.map +1 -1
- package/es/components/message-box/src/index.mjs +8 -6
- package/es/components/message-box/src/index.mjs.map +1 -1
- package/es/components/overlay/src/overlay.mjs +2 -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 +52 -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/src/table-body/events-helper.mjs +4 -1
- package/es/components/table/src/table-body/events-helper.mjs.map +1 -1
- package/es/components/table/src/util.d.ts +1 -1
- package/es/components/table/src/util.mjs +1 -3
- package/es/components/table/src/util.mjs.map +1 -1
- package/es/components/table-v2/src/components/header-row.mjs +2 -1
- package/es/components/table-v2/src/components/header-row.mjs.map +1 -1
- package/es/components/table-v2/src/components/header.mjs +2 -1
- package/es/components/table-v2/src/components/header.mjs.map +1 -1
- package/es/components/table-v2/src/components/row.mjs +4 -2
- package/es/components/table-v2/src/components/row.mjs.map +1 -1
- package/es/components/table-v2/src/renderers/cell.mjs +3 -1
- package/es/components/table-v2/src/renderers/cell.mjs.map +1 -1
- package/es/components/table-v2/src/renderers/header-cell.mjs +4 -2
- package/es/components/table-v2/src/renderers/header-cell.mjs.map +1 -1
- package/es/components/table-v2/src/table-grid.mjs +1 -0
- package/es/components/table-v2/src/table-grid.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/virtual-list/src/builders/build-grid.d.ts +2 -0
- package/es/components/virtual-list/src/builders/build-grid.mjs +2 -1
- package/es/components/virtual-list/src/builders/build-grid.mjs.map +1 -1
- package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +2 -0
- package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +2 -0
- package/es/components/virtual-list/src/props.d.ts +1 -0
- package/es/components/virtual-list/src/props.mjs +1 -0
- package/es/components/virtual-list/src/props.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/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/config-provider/src/hooks/use-global-config.d.ts +2 -1
- package/lib/components/config-provider/src/hooks/use-global-config.js +8 -2
- package/lib/components/config-provider/src/hooks/use-global-config.js.map +1 -1
- package/lib/components/message-box/src/index.js +7 -5
- package/lib/components/message-box/src/index.js.map +1 -1
- package/lib/components/overlay/src/overlay.js +2 -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 +56 -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/src/table-body/events-helper.js +4 -1
- package/lib/components/table/src/table-body/events-helper.js.map +1 -1
- package/lib/components/table/src/util.d.ts +1 -1
- package/lib/components/table/src/util.js +3 -5
- package/lib/components/table/src/util.js.map +1 -1
- package/lib/components/table-v2/src/components/header-row.js +2 -1
- package/lib/components/table-v2/src/components/header-row.js.map +1 -1
- package/lib/components/table-v2/src/components/header.js +2 -1
- package/lib/components/table-v2/src/components/header.js.map +1 -1
- package/lib/components/table-v2/src/components/row.js +4 -2
- package/lib/components/table-v2/src/components/row.js.map +1 -1
- package/lib/components/table-v2/src/renderers/cell.js +3 -1
- package/lib/components/table-v2/src/renderers/cell.js.map +1 -1
- package/lib/components/table-v2/src/renderers/header-cell.js +3 -1
- package/lib/components/table-v2/src/renderers/header-cell.js.map +1 -1
- package/lib/components/table-v2/src/table-grid.js +1 -0
- package/lib/components/table-v2/src/table-grid.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/virtual-list/src/builders/build-grid.d.ts +2 -0
- package/lib/components/virtual-list/src/builders/build-grid.js +2 -1
- package/lib/components/virtual-list/src/builders/build-grid.js.map +1 -1
- package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +2 -0
- package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +2 -0
- package/lib/components/virtual-list/src/props.d.ts +1 -0
- package/lib/components/virtual-list/src/props.js +1 -0
- package/lib/components/virtual-list/src/props.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/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.20230308 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
@@ -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;
|
|
@@ -11097,7 +11097,7 @@
|
|
|
11097
11097
|
return config;
|
|
11098
11098
|
}
|
|
11099
11099
|
}
|
|
11100
|
-
function useGlobalComponentSettings(block) {
|
|
11100
|
+
function useGlobalComponentSettings(block, sizeFallback) {
|
|
11101
11101
|
const config = useGlobalConfig();
|
|
11102
11102
|
const ns = useNamespace(block, vue.computed(() => {
|
|
11103
11103
|
var _a;
|
|
@@ -11111,10 +11111,16 @@
|
|
|
11111
11111
|
var _a;
|
|
11112
11112
|
return ((_a = config.value) == null ? void 0 : _a.zIndex) || defaultInitialZIndex;
|
|
11113
11113
|
}));
|
|
11114
|
+
const size = vue.computed(() => {
|
|
11115
|
+
var _a;
|
|
11116
|
+
return vue.unref(sizeFallback) || ((_a = config.value) == null ? void 0 : _a.size) || "";
|
|
11117
|
+
});
|
|
11118
|
+
provideGlobalConfig(vue.computed(() => vue.unref(config) || {}));
|
|
11114
11119
|
return {
|
|
11115
11120
|
ns,
|
|
11116
11121
|
locale,
|
|
11117
|
-
zIndex
|
|
11122
|
+
zIndex,
|
|
11123
|
+
size
|
|
11118
11124
|
};
|
|
11119
11125
|
}
|
|
11120
11126
|
const provideGlobalConfig = (config, app, global = false) => {
|
|
@@ -11197,7 +11203,7 @@
|
|
|
11197
11203
|
|
|
11198
11204
|
const ElConfigProvider = withInstall(ConfigProvider);
|
|
11199
11205
|
|
|
11200
|
-
const version$1 = "0.0.
|
|
11206
|
+
const version$1 = "0.0.20230308";
|
|
11201
11207
|
|
|
11202
11208
|
const makeInstaller = (components = []) => {
|
|
11203
11209
|
const install = (app, options) => {
|
|
@@ -28599,12 +28605,13 @@
|
|
|
28599
28605
|
const overlayEmits = {
|
|
28600
28606
|
click: (evt) => evt instanceof MouseEvent
|
|
28601
28607
|
};
|
|
28608
|
+
const BLOCK = "overlay";
|
|
28602
28609
|
var Overlay$1 = vue.defineComponent({
|
|
28603
28610
|
name: "ElOverlay",
|
|
28604
28611
|
props: overlayProps,
|
|
28605
28612
|
emits: overlayEmits,
|
|
28606
28613
|
setup(props, { slots, emit }) {
|
|
28607
|
-
const ns = useNamespace(
|
|
28614
|
+
const ns = useNamespace(BLOCK);
|
|
28608
28615
|
const onMaskClick = (e) => {
|
|
28609
28616
|
emit("click", e);
|
|
28610
28617
|
};
|
|
@@ -33210,17 +33217,8 @@
|
|
|
33210
33217
|
const hoverOption = vue.ref(-1);
|
|
33211
33218
|
const queryChange = vue.shallowRef({ query: "" });
|
|
33212
33219
|
const groupQueryChange = vue.shallowRef("");
|
|
33213
|
-
const instance = vue.getCurrentInstance();
|
|
33214
33220
|
const optionList = vue.ref([]);
|
|
33215
33221
|
let originClientHeight = 0;
|
|
33216
|
-
vue.onUpdated(() => {
|
|
33217
|
-
var _a, _b;
|
|
33218
|
-
const childrens = (_b = instance == null ? void 0 : (_a = instance.slots).default) == null ? void 0 : _b.call(_a)[0].children;
|
|
33219
|
-
if (childrens && childrens.length) {
|
|
33220
|
-
const options = childrens.filter((item) => item.type.name === "ElOption").map((item) => item.props.label);
|
|
33221
|
-
optionList.value = options;
|
|
33222
|
-
}
|
|
33223
|
-
});
|
|
33224
33222
|
const { form, formItem } = useFormItem();
|
|
33225
33223
|
const readonly = vue.computed(() => !props.filterable || props.multiple || !states.visible);
|
|
33226
33224
|
const selectDisabled = vue.computed(() => props.disabled || (form == null ? void 0 : form.disabled));
|
|
@@ -33833,6 +33831,7 @@
|
|
|
33833
33831
|
states.mouseEnter = false;
|
|
33834
33832
|
};
|
|
33835
33833
|
return {
|
|
33834
|
+
optionList,
|
|
33836
33835
|
optionsArray,
|
|
33837
33836
|
selectSize,
|
|
33838
33837
|
handleResize,
|
|
@@ -33884,6 +33883,52 @@
|
|
|
33884
33883
|
};
|
|
33885
33884
|
};
|
|
33886
33885
|
|
|
33886
|
+
var ElOptions = vue.defineComponent({
|
|
33887
|
+
name: "ElOptions",
|
|
33888
|
+
emits: ["update-options"],
|
|
33889
|
+
setup(_, { slots, emit }) {
|
|
33890
|
+
let cachedOptions = [];
|
|
33891
|
+
function isSameOptions(a, b) {
|
|
33892
|
+
if (a.length !== b.length)
|
|
33893
|
+
return false;
|
|
33894
|
+
for (const [index] of a.entries()) {
|
|
33895
|
+
if (a[index] != b[index]) {
|
|
33896
|
+
return false;
|
|
33897
|
+
}
|
|
33898
|
+
}
|
|
33899
|
+
return true;
|
|
33900
|
+
}
|
|
33901
|
+
return () => {
|
|
33902
|
+
var _a, _b;
|
|
33903
|
+
const children = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
33904
|
+
const filteredOptions = [];
|
|
33905
|
+
function filterOptions(children2) {
|
|
33906
|
+
if (!Array.isArray(children2))
|
|
33907
|
+
return;
|
|
33908
|
+
children2.forEach((item) => {
|
|
33909
|
+
var _a2, _b2, _c, _d;
|
|
33910
|
+
const name = (_a2 = (item == null ? void 0 : item.type) || {}) == null ? void 0 : _a2.name;
|
|
33911
|
+
if (name === "ElOptionGroup") {
|
|
33912
|
+
filterOptions(!isString$1(item.children) && !Array.isArray(item.children) && isFunction$1((_b2 = item.children) == null ? void 0 : _b2.default) ? (_c = item.children) == null ? void 0 : _c.default() : item.children);
|
|
33913
|
+
} else if (name === "ElOption") {
|
|
33914
|
+
filteredOptions.push((_d = item.props) == null ? void 0 : _d.label);
|
|
33915
|
+
} else if (Array.isArray(item.children)) {
|
|
33916
|
+
filterOptions(item.children);
|
|
33917
|
+
}
|
|
33918
|
+
});
|
|
33919
|
+
}
|
|
33920
|
+
if (children.length) {
|
|
33921
|
+
filterOptions((_b = children[0]) == null ? void 0 : _b.children);
|
|
33922
|
+
}
|
|
33923
|
+
if (!isSameOptions(filteredOptions, cachedOptions)) {
|
|
33924
|
+
cachedOptions = filteredOptions;
|
|
33925
|
+
emit("update-options", filteredOptions);
|
|
33926
|
+
}
|
|
33927
|
+
return children;
|
|
33928
|
+
};
|
|
33929
|
+
}
|
|
33930
|
+
});
|
|
33931
|
+
|
|
33887
33932
|
const COMPONENT_NAME$9 = "ElSelect";
|
|
33888
33933
|
const _sfc_main$N = vue.defineComponent({
|
|
33889
33934
|
name: COMPONENT_NAME$9,
|
|
@@ -33892,6 +33937,7 @@
|
|
|
33892
33937
|
ElInput,
|
|
33893
33938
|
ElSelectMenu: ElSelectMenu$1,
|
|
33894
33939
|
ElOption: Option,
|
|
33940
|
+
ElOptions,
|
|
33895
33941
|
ElTag,
|
|
33896
33942
|
ElScrollbar,
|
|
33897
33943
|
ElTooltip,
|
|
@@ -34010,6 +34056,7 @@
|
|
|
34010
34056
|
const { t } = useLocale();
|
|
34011
34057
|
const states = useSelectStates(props);
|
|
34012
34058
|
const {
|
|
34059
|
+
optionList,
|
|
34013
34060
|
optionsArray,
|
|
34014
34061
|
selectSize,
|
|
34015
34062
|
readonly,
|
|
@@ -34148,7 +34195,11 @@
|
|
|
34148
34195
|
var _a, _b;
|
|
34149
34196
|
return (_b = (_a = tooltipRef.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
34150
34197
|
});
|
|
34198
|
+
const onOptionsRendered = (v) => {
|
|
34199
|
+
optionList.value = v;
|
|
34200
|
+
};
|
|
34151
34201
|
return {
|
|
34202
|
+
onOptionsRendered,
|
|
34152
34203
|
tagInMultiLine,
|
|
34153
34204
|
prefixWidth,
|
|
34154
34205
|
selectSize,
|
|
@@ -34225,6 +34276,7 @@
|
|
|
34225
34276
|
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
34226
34277
|
const _component_el_input = vue.resolveComponent("el-input");
|
|
34227
34278
|
const _component_el_option = vue.resolveComponent("el-option");
|
|
34279
|
+
const _component_el_options = vue.resolveComponent("el-options");
|
|
34228
34280
|
const _component_el_scrollbar = vue.resolveComponent("el-scrollbar");
|
|
34229
34281
|
const _component_el_select_menu = vue.resolveComponent("el-select-menu");
|
|
34230
34282
|
const _directive_click_outside = vue.resolveDirective("click-outside");
|
|
@@ -34503,7 +34555,12 @@
|
|
|
34503
34555
|
value: _ctx.query,
|
|
34504
34556
|
created: true
|
|
34505
34557
|
}, null, 8, ["value"])) : vue.createCommentVNode("v-if", true),
|
|
34506
|
-
vue.
|
|
34558
|
+
vue.createVNode(_component_el_options, { onUpdateOptions: _ctx.onOptionsRendered }, {
|
|
34559
|
+
default: vue.withCtx(() => [
|
|
34560
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
34561
|
+
]),
|
|
34562
|
+
_: 3
|
|
34563
|
+
}, 8, ["onUpdateOptions"])
|
|
34507
34564
|
]),
|
|
34508
34565
|
_: 3
|
|
34509
34566
|
}, 8, ["wrap-class", "view-class", "class"]), [
|
|
@@ -36482,6 +36539,7 @@
|
|
|
36482
36539
|
vScrollbarSize: scrollbarSize,
|
|
36483
36540
|
scrollbarStartGap: startGap,
|
|
36484
36541
|
scrollbarEndGap: endGap,
|
|
36542
|
+
role: String,
|
|
36485
36543
|
...virtualizedProps
|
|
36486
36544
|
});
|
|
36487
36545
|
const virtualizedScrollbarProps = buildProps({
|
|
@@ -37703,7 +37761,8 @@
|
|
|
37703
37761
|
const Inner = renderInner();
|
|
37704
37762
|
return vue.h("div", {
|
|
37705
37763
|
key: 0,
|
|
37706
|
-
class: ns.e("wrapper")
|
|
37764
|
+
class: ns.e("wrapper"),
|
|
37765
|
+
role: props.role
|
|
37707
37766
|
}, [
|
|
37708
37767
|
vue.h(Container, {
|
|
37709
37768
|
class: props.className,
|
|
@@ -41941,12 +42000,11 @@
|
|
|
41941
42000
|
});
|
|
41942
42001
|
}
|
|
41943
42002
|
let removePopper;
|
|
41944
|
-
function createTablePopper(parentNode, trigger, popperContent, tooltipOptions) {
|
|
42003
|
+
function createTablePopper(parentNode, trigger, popperContent, nextZIndex, tooltipOptions) {
|
|
41945
42004
|
tooltipOptions = merge({
|
|
41946
42005
|
enterable: true,
|
|
41947
42006
|
showArrow: true
|
|
41948
42007
|
}, tooltipOptions);
|
|
41949
|
-
const { nextZIndex } = useZIndex();
|
|
41950
42008
|
const ns = parentNode == null ? void 0 : parentNode.dataset.prefix;
|
|
41951
42009
|
const scrollContainer = parentNode == null ? void 0 : parentNode.querySelector(`.${ns}-scrollbar__wrap`);
|
|
41952
42010
|
function renderContent() {
|
|
@@ -44102,6 +44160,7 @@
|
|
|
44102
44160
|
const parent = vue.inject(TABLE_INJECTION_KEY);
|
|
44103
44161
|
const tooltipContent = vue.ref("");
|
|
44104
44162
|
const tooltipTrigger = vue.ref(vue.h("div"));
|
|
44163
|
+
const { nextZIndex } = useZIndex();
|
|
44105
44164
|
const handleEvent = (event, row, name) => {
|
|
44106
44165
|
var _a;
|
|
44107
44166
|
const table = parent;
|
|
@@ -44159,7 +44218,7 @@
|
|
|
44159
44218
|
const rangeWidth = Math.round(range.getBoundingClientRect().width);
|
|
44160
44219
|
const padding = (Number.parseInt(getStyle(cellChild, "paddingLeft"), 10) || 0) + (Number.parseInt(getStyle(cellChild, "paddingRight"), 10) || 0);
|
|
44161
44220
|
if (rangeWidth + padding > cellChild.offsetWidth || cellChild.scrollWidth > cellChild.offsetWidth) {
|
|
44162
|
-
createTablePopper(parent == null ? void 0 : parent.refs.tableWrapper, cell, cell.innerText || cell.textContent, tooltipOptions);
|
|
44221
|
+
createTablePopper(parent == null ? void 0 : parent.refs.tableWrapper, cell, cell.innerText || cell.textContent, nextZIndex, tooltipOptions);
|
|
44163
44222
|
}
|
|
44164
44223
|
};
|
|
44165
44224
|
const handleCellMouseLeave = (event) => {
|
|
@@ -47052,7 +47111,8 @@
|
|
|
47052
47111
|
}
|
|
47053
47112
|
return vue.createVNode("div", {
|
|
47054
47113
|
"class": props.class,
|
|
47055
|
-
"style": style
|
|
47114
|
+
"style": style,
|
|
47115
|
+
"role": "row"
|
|
47056
47116
|
}, [Cells]);
|
|
47057
47117
|
};
|
|
47058
47118
|
}
|
|
@@ -47136,7 +47196,8 @@
|
|
|
47136
47196
|
return vue.createVNode("div", {
|
|
47137
47197
|
"ref": headerRef,
|
|
47138
47198
|
"class": props.class,
|
|
47139
|
-
"style": vue.unref(headerStyle)
|
|
47199
|
+
"style": vue.unref(headerStyle),
|
|
47200
|
+
"role": "rowgroup"
|
|
47140
47201
|
}, [vue.createVNode("div", {
|
|
47141
47202
|
"style": vue.unref(rowStyle),
|
|
47142
47203
|
"class": ns.e("header")
|
|
@@ -47330,13 +47391,15 @@
|
|
|
47330
47391
|
return vue.createVNode("div", vue.mergeProps({
|
|
47331
47392
|
"ref": rowRef,
|
|
47332
47393
|
"class": props.class,
|
|
47333
|
-
"style": _measured ? style : exceptHeightStyle
|
|
47394
|
+
"style": _measured ? style : exceptHeightStyle,
|
|
47395
|
+
"role": "row"
|
|
47334
47396
|
}, attrs, vue.unref(eventHandlers)), [ColumnCells]);
|
|
47335
47397
|
}
|
|
47336
47398
|
return vue.createVNode("div", vue.mergeProps(attrs, {
|
|
47337
47399
|
"ref": rowRef,
|
|
47338
47400
|
"class": props.class,
|
|
47339
|
-
"style": style
|
|
47401
|
+
"style": style,
|
|
47402
|
+
"role": "row"
|
|
47340
47403
|
}, vue.unref(eventHandlers)), [ColumnCells]);
|
|
47341
47404
|
};
|
|
47342
47405
|
}
|
|
@@ -47555,6 +47618,7 @@
|
|
|
47555
47618
|
"width": width,
|
|
47556
47619
|
"height": vue.unref(gridHeight),
|
|
47557
47620
|
"class": ns.e("body"),
|
|
47621
|
+
"role": "rowgroup",
|
|
47558
47622
|
"scrollbarStartGap": scrollbarStartGap,
|
|
47559
47623
|
"scrollbarEndGap": scrollbarEndGap,
|
|
47560
47624
|
"scrollbarAlwaysOn": scrollbarAlwaysOn,
|
|
@@ -47800,7 +47864,9 @@
|
|
|
47800
47864
|
return vue.createVNode("div", vue.mergeProps({
|
|
47801
47865
|
"class": kls,
|
|
47802
47866
|
"style": cellStyle
|
|
47803
|
-
}, extraCellProps
|
|
47867
|
+
}, extraCellProps, {
|
|
47868
|
+
"role": "cell"
|
|
47869
|
+
}), [IconOrPlaceholder, Cell]);
|
|
47804
47870
|
};
|
|
47805
47871
|
CellRenderer.inheritAttrs = false;
|
|
47806
47872
|
|
|
@@ -47887,7 +47953,9 @@
|
|
|
47887
47953
|
style: cellStyle,
|
|
47888
47954
|
["data-key"]: column.key
|
|
47889
47955
|
};
|
|
47890
|
-
return vue.createVNode("div",
|
|
47956
|
+
return vue.createVNode("div", vue.mergeProps(cellWrapperProps, {
|
|
47957
|
+
"role": "columnheader"
|
|
47958
|
+
}), [Cell, sortable && vue.createVNode(SortIcon$1, {
|
|
47891
47959
|
"class": [ns.e("sort-icon"), sorting && ns.is("sorting")],
|
|
47892
47960
|
"sortOrder": sortOrder
|
|
47893
47961
|
}, null)]);
|
|
@@ -54827,7 +54895,12 @@
|
|
|
54827
54895
|
},
|
|
54828
54896
|
emits: ["vanish", "action"],
|
|
54829
54897
|
setup(props, { emit }) {
|
|
54830
|
-
const {
|
|
54898
|
+
const {
|
|
54899
|
+
locale,
|
|
54900
|
+
zIndex,
|
|
54901
|
+
ns,
|
|
54902
|
+
size: btnSize
|
|
54903
|
+
} = useGlobalComponentSettings("message-box", vue.computed(() => props.buttonSize));
|
|
54831
54904
|
const { t } = locale;
|
|
54832
54905
|
const { nextZIndex } = zIndex;
|
|
54833
54906
|
const visible = vue.ref(false);
|
|
@@ -54872,7 +54945,6 @@
|
|
|
54872
54945
|
});
|
|
54873
54946
|
const contentId = useId();
|
|
54874
54947
|
const inputId = useId();
|
|
54875
|
-
const btnSize = useFormSize(vue.computed(() => props.buttonSize), { prop: true, form: true, formItem: true });
|
|
54876
54948
|
const iconComponent = vue.computed(() => state.icon || TypeComponentsMap[state.type] || "");
|
|
54877
54949
|
const hasMessage = vue.computed(() => !!state.message);
|
|
54878
54950
|
const rootRef = vue.ref();
|
|
@@ -55003,7 +55075,7 @@
|
|
|
55003
55075
|
}
|
|
55004
55076
|
};
|
|
55005
55077
|
if (props.lockScroll) {
|
|
55006
|
-
useLockscreen(visible);
|
|
55078
|
+
useLockscreen(visible, { ns });
|
|
55007
55079
|
}
|
|
55008
55080
|
useRestoreActive(visible);
|
|
55009
55081
|
return {
|