element-plus 2.2.20 → 2.2.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +118 -61
- package/dist/index.full.min.js +14 -14
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +14 -14
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +118 -61
- 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/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/autocomplete/index.d.ts +12 -8
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +12 -8
- package/es/components/button/src/button-group.d.ts +6 -0
- package/es/components/button/src/button-group.mjs.map +1 -1
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/calendar/src/use-calendar.mjs +1 -1
- package/es/components/calendar/src/use-calendar.mjs.map +1 -1
- package/es/components/cascader/index.d.ts +48 -32
- package/es/components/cascader/src/index.mjs +3 -2
- package/es/components/cascader/src/index.mjs.map +1 -1
- package/es/components/cascader/src/index.vue.d.ts +24 -16
- package/es/components/checkbox/src/composables/use-checkbox-status.mjs +7 -2
- package/es/components/checkbox/src/composables/use-checkbox-status.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +132 -88
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +132 -88
- package/es/components/date-picker/src/panel-utils.d.ts +264 -176
- package/es/components/dropdown/src/dropdown-item.mjs +3 -0
- package/es/components/dropdown/src/dropdown-item.mjs.map +1 -1
- package/es/components/focus-trap/src/utils.mjs +4 -0
- package/es/components/focus-trap/src/utils.mjs.map +1 -1
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper.d.ts +12 -0
- package/es/components/pagination/src/components/jumper.mjs +9 -53
- package/es/components/pagination/src/components/jumper.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper.vue.d.ts +16 -2
- package/es/components/pagination/src/components/jumper2.mjs +64 -0
- package/es/components/pagination/src/components/jumper2.mjs.map +1 -0
- package/es/components/pagination/src/components/pager2.mjs +2 -2
- package/es/components/pagination/src/components/pager2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +4 -2
- package/es/components/pagination/src/pagination.mjs.map +1 -1
- package/es/components/scrollbar/index.d.ts +12 -8
- package/es/components/scrollbar/src/scrollbar.d.ts +1 -1
- package/es/components/scrollbar/src/scrollbar.mjs +4 -1
- package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar.vue.d.ts +12 -8
- package/es/components/scrollbar/src/scrollbar2.mjs +44 -38
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/select-v2/src/select.mjs +2 -2
- package/es/components/select-v2/src/select.mjs.map +1 -1
- package/es/components/select-v2/src/useSelect.mjs +3 -2
- package/es/components/select-v2/src/useSelect.mjs.map +1 -1
- package/es/components/table/src/table/style-helper.mjs +3 -3
- package/es/components/table/src/table/style-helper.mjs.map +1 -1
- package/es/components/table/src/table-layout.mjs +1 -1
- package/es/components/table/src/table-layout.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +108 -72
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +132 -88
- package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +132 -88
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/autocomplete/index.d.ts +12 -8
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +12 -8
- package/lib/components/button/src/button-group.d.ts +6 -0
- package/lib/components/button/src/button-group.js.map +1 -1
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/calendar/src/use-calendar.js +1 -1
- package/lib/components/calendar/src/use-calendar.js.map +1 -1
- package/lib/components/cascader/index.d.ts +48 -32
- package/lib/components/cascader/src/index.js +2 -1
- package/lib/components/cascader/src/index.js.map +1 -1
- package/lib/components/cascader/src/index.vue.d.ts +24 -16
- package/lib/components/checkbox/src/composables/use-checkbox-status.js +6 -1
- package/lib/components/checkbox/src/composables/use-checkbox-status.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +132 -88
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +132 -88
- package/lib/components/date-picker/src/panel-utils.d.ts +264 -176
- package/lib/components/dropdown/src/dropdown-item.js +3 -0
- package/lib/components/dropdown/src/dropdown-item.js.map +1 -1
- package/lib/components/focus-trap/src/utils.js +4 -0
- package/lib/components/focus-trap/src/utils.js.map +1 -1
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/pagination/src/components/jumper.d.ts +12 -0
- package/lib/components/pagination/src/components/jumper.js +9 -53
- package/lib/components/pagination/src/components/jumper.js.map +1 -1
- package/lib/components/pagination/src/components/jumper.vue.d.ts +16 -2
- package/lib/components/pagination/src/components/jumper2.js +68 -0
- package/lib/components/pagination/src/components/jumper2.js.map +1 -0
- package/lib/components/pagination/src/components/pager2.js +2 -2
- package/lib/components/pagination/src/components/pager2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +4 -2
- package/lib/components/pagination/src/pagination.js.map +1 -1
- package/lib/components/scrollbar/index.d.ts +12 -8
- package/lib/components/scrollbar/src/scrollbar.d.ts +1 -1
- package/lib/components/scrollbar/src/scrollbar.js +4 -1
- package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar.vue.d.ts +12 -8
- package/lib/components/scrollbar/src/scrollbar2.js +44 -38
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/select-v2/src/select.js +2 -2
- package/lib/components/select-v2/src/select.js.map +1 -1
- package/lib/components/select-v2/src/useSelect.js +3 -2
- package/lib/components/select-v2/src/useSelect.js.map +1 -1
- package/lib/components/table/src/table/style-helper.js +3 -3
- package/lib/components/table/src/table/style-helper.js.map +1 -1
- package/lib/components/table/src/table-layout.js +1 -1
- package/lib/components/table/src/table-layout.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +108 -72
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +132 -88
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +132 -88
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/theme-chalk/el-image-viewer.css +1 -1
- package/theme-chalk/el-input.css +1 -1
- package/theme-chalk/el-pagination.css +1 -1
- package/theme-chalk/el-select-v2.css +1 -1
- package/theme-chalk/el-select.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/common/var.scss +5 -3
- package/theme-chalk/src/image-viewer.scss +1 -0
- package/theme-chalk/src/input.scss +0 -4
- package/theme-chalk/src/pagination.scss +108 -258
- package/theme-chalk/src/select-v2.scss +8 -14
- package/theme-chalk/src/select.scss +29 -30
- 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.22 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
@@ -7185,6 +7185,27 @@
|
|
|
7185
7185
|
_global[globalKey] = _global[globalKey] || {};
|
|
7186
7186
|
_global[globalKey];
|
|
7187
7187
|
|
|
7188
|
+
function useCssVar(prop, target, { window = defaultWindow, initialValue = "" } = {}) {
|
|
7189
|
+
const variable = vue.ref(initialValue);
|
|
7190
|
+
const elRef = vue.computed(() => {
|
|
7191
|
+
var _a;
|
|
7192
|
+
return unrefElement(target) || ((_a = window == null ? void 0 : window.document) == null ? void 0 : _a.documentElement);
|
|
7193
|
+
});
|
|
7194
|
+
vue.watch([elRef, () => resolveUnref(prop)], ([el, prop2]) => {
|
|
7195
|
+
var _a;
|
|
7196
|
+
if (el && window) {
|
|
7197
|
+
const value = (_a = window.getComputedStyle(el).getPropertyValue(prop2)) == null ? void 0 : _a.trim();
|
|
7198
|
+
variable.value = value || initialValue;
|
|
7199
|
+
}
|
|
7200
|
+
}, { immediate: true });
|
|
7201
|
+
vue.watch(variable, (val) => {
|
|
7202
|
+
var _a;
|
|
7203
|
+
if ((_a = elRef.value) == null ? void 0 : _a.style)
|
|
7204
|
+
elRef.value.style.setProperty(resolveUnref(prop), val);
|
|
7205
|
+
});
|
|
7206
|
+
return variable;
|
|
7207
|
+
}
|
|
7208
|
+
|
|
7188
7209
|
function useDocumentVisibility({ document = defaultDocument } = {}) {
|
|
7189
7210
|
if (!document)
|
|
7190
7211
|
return vue.ref("visible");
|
|
@@ -11082,7 +11103,7 @@
|
|
|
11082
11103
|
};
|
|
11083
11104
|
};
|
|
11084
11105
|
|
|
11085
|
-
const version$1 = "2.2.
|
|
11106
|
+
const version$1 = "2.2.22";
|
|
11086
11107
|
|
|
11087
11108
|
const makeInstaller = (components = []) => {
|
|
11088
11109
|
const install = (app, options) => {
|
|
@@ -11131,9 +11152,9 @@
|
|
|
11131
11152
|
return target;
|
|
11132
11153
|
};
|
|
11133
11154
|
|
|
11134
|
-
const COMPONENT_NAME$
|
|
11155
|
+
const COMPONENT_NAME$m = "ElAffix";
|
|
11135
11156
|
const __default__$1w = vue.defineComponent({
|
|
11136
|
-
name: COMPONENT_NAME$
|
|
11157
|
+
name: COMPONENT_NAME$m
|
|
11137
11158
|
});
|
|
11138
11159
|
const _sfc_main$2f = /* @__PURE__ */ vue.defineComponent({
|
|
11139
11160
|
...__default__$1w,
|
|
@@ -11209,7 +11230,7 @@
|
|
|
11209
11230
|
if (props.target) {
|
|
11210
11231
|
target.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
|
|
11211
11232
|
if (!target.value)
|
|
11212
|
-
throwError(COMPONENT_NAME$
|
|
11233
|
+
throwError(COMPONENT_NAME$m, `Target is not existed: ${props.target}`);
|
|
11213
11234
|
} else {
|
|
11214
11235
|
target.value = document.documentElement;
|
|
11215
11236
|
}
|
|
@@ -12041,7 +12062,7 @@
|
|
|
12041
12062
|
always: Boolean
|
|
12042
12063
|
});
|
|
12043
12064
|
|
|
12044
|
-
const COMPONENT_NAME$
|
|
12065
|
+
const COMPONENT_NAME$l = "Thumb";
|
|
12045
12066
|
const _sfc_main$2b = /* @__PURE__ */ vue.defineComponent({
|
|
12046
12067
|
__name: "thumb",
|
|
12047
12068
|
props: thumbProps,
|
|
@@ -12050,7 +12071,7 @@
|
|
|
12050
12071
|
const scrollbar = vue.inject(scrollbarContextKey);
|
|
12051
12072
|
const ns = useNamespace("scrollbar");
|
|
12052
12073
|
if (!scrollbar)
|
|
12053
|
-
throwError(COMPONENT_NAME$
|
|
12074
|
+
throwError(COMPONENT_NAME$l, "can not inject scrollbar context");
|
|
12054
12075
|
const instance = vue.ref();
|
|
12055
12076
|
const thumb = vue.ref();
|
|
12056
12077
|
const thumbState = vue.ref({});
|
|
@@ -12228,7 +12249,10 @@
|
|
|
12228
12249
|
type: [String, Number],
|
|
12229
12250
|
default: ""
|
|
12230
12251
|
},
|
|
12231
|
-
native:
|
|
12252
|
+
native: {
|
|
12253
|
+
type: Boolean,
|
|
12254
|
+
default: false
|
|
12255
|
+
},
|
|
12232
12256
|
wrapStyle: {
|
|
12233
12257
|
type: definePropType([String, Object, Array]),
|
|
12234
12258
|
default: ""
|
|
@@ -12263,8 +12287,9 @@
|
|
|
12263
12287
|
}) => [scrollTop, scrollLeft].every(isNumber)
|
|
12264
12288
|
};
|
|
12265
12289
|
|
|
12290
|
+
const COMPONENT_NAME$k = "ElScrollbar";
|
|
12266
12291
|
const __default__$1s = vue.defineComponent({
|
|
12267
|
-
name:
|
|
12292
|
+
name: COMPONENT_NAME$k
|
|
12268
12293
|
});
|
|
12269
12294
|
const _sfc_main$29 = /* @__PURE__ */ vue.defineComponent({
|
|
12270
12295
|
...__default__$1s,
|
|
@@ -12275,9 +12300,9 @@
|
|
|
12275
12300
|
const ns = useNamespace("scrollbar");
|
|
12276
12301
|
let stopResizeObserver = void 0;
|
|
12277
12302
|
let stopResizeListener = void 0;
|
|
12278
|
-
const
|
|
12279
|
-
const
|
|
12280
|
-
const
|
|
12303
|
+
const scrollbarRef = vue.ref();
|
|
12304
|
+
const wrapRef = vue.ref();
|
|
12305
|
+
const resizeRef = vue.ref();
|
|
12281
12306
|
const sizeWidth = vue.ref("0");
|
|
12282
12307
|
const sizeHeight = vue.ref("0");
|
|
12283
12308
|
const barRef = vue.ref();
|
|
@@ -12291,42 +12316,52 @@
|
|
|
12291
12316
|
style2.maxHeight = addUnit(props.maxHeight);
|
|
12292
12317
|
return [props.wrapStyle, style2];
|
|
12293
12318
|
});
|
|
12319
|
+
const wrapKls = vue.computed(() => {
|
|
12320
|
+
return [
|
|
12321
|
+
props.wrapClass,
|
|
12322
|
+
ns.e("wrap"),
|
|
12323
|
+
{ [ns.em("wrap", "hidden-default")]: !props.native }
|
|
12324
|
+
];
|
|
12325
|
+
});
|
|
12326
|
+
const resizeKls = vue.computed(() => {
|
|
12327
|
+
return [ns.e("view"), props.viewClass];
|
|
12328
|
+
});
|
|
12294
12329
|
const handleScroll = () => {
|
|
12295
12330
|
var _a;
|
|
12296
|
-
if (
|
|
12297
|
-
(_a = barRef.value) == null ? void 0 : _a.handleScroll(
|
|
12331
|
+
if (wrapRef.value) {
|
|
12332
|
+
(_a = barRef.value) == null ? void 0 : _a.handleScroll(wrapRef.value);
|
|
12298
12333
|
emit("scroll", {
|
|
12299
|
-
scrollTop:
|
|
12300
|
-
scrollLeft:
|
|
12334
|
+
scrollTop: wrapRef.value.scrollTop,
|
|
12335
|
+
scrollLeft: wrapRef.value.scrollLeft
|
|
12301
12336
|
});
|
|
12302
12337
|
}
|
|
12303
12338
|
};
|
|
12304
12339
|
function scrollTo(arg1, arg2) {
|
|
12305
12340
|
if (isObject$1(arg1)) {
|
|
12306
|
-
|
|
12341
|
+
wrapRef.value.scrollTo(arg1);
|
|
12307
12342
|
} else if (isNumber(arg1) && isNumber(arg2)) {
|
|
12308
|
-
|
|
12343
|
+
wrapRef.value.scrollTo(arg1, arg2);
|
|
12309
12344
|
}
|
|
12310
12345
|
}
|
|
12311
12346
|
const setScrollTop = (value) => {
|
|
12312
12347
|
if (!isNumber(value)) {
|
|
12313
12348
|
return;
|
|
12314
12349
|
}
|
|
12315
|
-
|
|
12350
|
+
wrapRef.value.scrollTop = value;
|
|
12316
12351
|
};
|
|
12317
12352
|
const setScrollLeft = (value) => {
|
|
12318
12353
|
if (!isNumber(value)) {
|
|
12319
12354
|
return;
|
|
12320
12355
|
}
|
|
12321
|
-
|
|
12356
|
+
wrapRef.value.scrollLeft = value;
|
|
12322
12357
|
};
|
|
12323
12358
|
const update = () => {
|
|
12324
|
-
if (!
|
|
12359
|
+
if (!wrapRef.value)
|
|
12325
12360
|
return;
|
|
12326
|
-
const offsetHeight =
|
|
12327
|
-
const offsetWidth =
|
|
12328
|
-
const originalHeight = offsetHeight ** 2 /
|
|
12329
|
-
const originalWidth = offsetWidth ** 2 /
|
|
12361
|
+
const offsetHeight = wrapRef.value.offsetHeight - GAP;
|
|
12362
|
+
const offsetWidth = wrapRef.value.offsetWidth - GAP;
|
|
12363
|
+
const originalHeight = offsetHeight ** 2 / wrapRef.value.scrollHeight;
|
|
12364
|
+
const originalWidth = offsetWidth ** 2 / wrapRef.value.scrollWidth;
|
|
12330
12365
|
const height = Math.max(originalHeight, props.minSize);
|
|
12331
12366
|
const width = Math.max(originalWidth, props.minSize);
|
|
12332
12367
|
ratioY.value = originalHeight / (offsetHeight - originalHeight) / (height / (offsetHeight - height));
|
|
@@ -12339,7 +12374,7 @@
|
|
|
12339
12374
|
stopResizeObserver == null ? void 0 : stopResizeObserver();
|
|
12340
12375
|
stopResizeListener == null ? void 0 : stopResizeListener();
|
|
12341
12376
|
} else {
|
|
12342
|
-
({ stop: stopResizeObserver } = useResizeObserver(
|
|
12377
|
+
({ stop: stopResizeObserver } = useResizeObserver(resizeRef, update));
|
|
12343
12378
|
stopResizeListener = useEventListener("resize", update);
|
|
12344
12379
|
}
|
|
12345
12380
|
}, { immediate: true });
|
|
@@ -12348,14 +12383,14 @@
|
|
|
12348
12383
|
vue.nextTick(() => {
|
|
12349
12384
|
var _a;
|
|
12350
12385
|
update();
|
|
12351
|
-
if (
|
|
12352
|
-
(_a = barRef.value) == null ? void 0 : _a.handleScroll(
|
|
12386
|
+
if (wrapRef.value) {
|
|
12387
|
+
(_a = barRef.value) == null ? void 0 : _a.handleScroll(wrapRef.value);
|
|
12353
12388
|
}
|
|
12354
12389
|
});
|
|
12355
12390
|
});
|
|
12356
12391
|
vue.provide(scrollbarContextKey, vue.reactive({
|
|
12357
|
-
scrollbarElement:
|
|
12358
|
-
wrapElement:
|
|
12392
|
+
scrollbarElement: scrollbarRef,
|
|
12393
|
+
wrapElement: wrapRef
|
|
12359
12394
|
}));
|
|
12360
12395
|
vue.onMounted(() => {
|
|
12361
12396
|
if (!props.native)
|
|
@@ -12365,7 +12400,7 @@
|
|
|
12365
12400
|
});
|
|
12366
12401
|
vue.onUpdated(() => update());
|
|
12367
12402
|
expose({
|
|
12368
|
-
|
|
12403
|
+
wrapRef,
|
|
12369
12404
|
update,
|
|
12370
12405
|
scrollTo,
|
|
12371
12406
|
setScrollTop,
|
|
@@ -12374,25 +12409,21 @@
|
|
|
12374
12409
|
});
|
|
12375
12410
|
return (_ctx, _cache) => {
|
|
12376
12411
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
12377
|
-
ref_key: "
|
|
12378
|
-
ref:
|
|
12412
|
+
ref_key: "scrollbarRef",
|
|
12413
|
+
ref: scrollbarRef,
|
|
12379
12414
|
class: vue.normalizeClass(vue.unref(ns).b())
|
|
12380
12415
|
}, [
|
|
12381
12416
|
vue.createElementVNode("div", {
|
|
12382
|
-
ref_key: "
|
|
12383
|
-
ref:
|
|
12384
|
-
class: vue.normalizeClass(
|
|
12385
|
-
_ctx.wrapClass,
|
|
12386
|
-
vue.unref(ns).e("wrap"),
|
|
12387
|
-
{ [vue.unref(ns).em("wrap", "hidden-default")]: !_ctx.native }
|
|
12388
|
-
]),
|
|
12417
|
+
ref_key: "wrapRef",
|
|
12418
|
+
ref: wrapRef,
|
|
12419
|
+
class: vue.normalizeClass(vue.unref(wrapKls)),
|
|
12389
12420
|
style: vue.normalizeStyle(vue.unref(style)),
|
|
12390
12421
|
onScroll: handleScroll
|
|
12391
12422
|
}, [
|
|
12392
12423
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tag), {
|
|
12393
|
-
ref_key: "
|
|
12394
|
-
ref:
|
|
12395
|
-
class: vue.normalizeClass(
|
|
12424
|
+
ref_key: "resizeRef",
|
|
12425
|
+
ref: resizeRef,
|
|
12426
|
+
class: vue.normalizeClass(vue.unref(resizeKls)),
|
|
12396
12427
|
style: vue.normalizeStyle(_ctx.viewStyle)
|
|
12397
12428
|
}, {
|
|
12398
12429
|
default: vue.withCtx(() => [
|
|
@@ -12771,6 +12802,10 @@
|
|
|
12771
12802
|
element.focus({ preventScroll: true });
|
|
12772
12803
|
lastAutomatedFocusTimestamp.value = window.performance.now();
|
|
12773
12804
|
if (element !== prevFocusedElement && isSelectable(element) && shouldSelect) {
|
|
12805
|
+
if (element.tagName === "INPUT") {
|
|
12806
|
+
element.setSelectionRange(element.value.length, element.value.length);
|
|
12807
|
+
return;
|
|
12808
|
+
}
|
|
12774
12809
|
element.select();
|
|
12775
12810
|
}
|
|
12776
12811
|
}
|
|
@@ -18462,7 +18497,7 @@
|
|
|
18462
18497
|
const lastMonth = lastDay.get("month");
|
|
18463
18498
|
if (firstMonth === lastMonth) {
|
|
18464
18499
|
return [[firstDay, lastDay]];
|
|
18465
|
-
} else if (firstMonth + 1 === lastMonth) {
|
|
18500
|
+
} else if ((firstMonth + 1) % 12 === lastMonth) {
|
|
18466
18501
|
return adjacentMonth(firstDay, lastDay);
|
|
18467
18502
|
} else if (firstMonth + 2 === lastMonth || (firstMonth + 1) % 11 === lastMonth) {
|
|
18468
18503
|
return threeConsecutiveMonth(firstDay, lastDay);
|
|
@@ -19429,7 +19464,11 @@
|
|
|
19429
19464
|
if (isBoolean(value)) {
|
|
19430
19465
|
return value;
|
|
19431
19466
|
} else if (isArray(value)) {
|
|
19432
|
-
|
|
19467
|
+
if (isObject$1(props.label)) {
|
|
19468
|
+
return value.map(vue.toRaw).some((o) => isEqual$1(o, props.label));
|
|
19469
|
+
} else {
|
|
19470
|
+
return value.map(vue.toRaw).includes(props.label);
|
|
19471
|
+
}
|
|
19433
19472
|
} else if (value !== null && value !== void 0) {
|
|
19434
19473
|
return value === props.trueLabel;
|
|
19435
19474
|
} else {
|
|
@@ -21453,7 +21492,8 @@
|
|
|
21453
21492
|
vue.watch(presentText, syncPresentTextValue, { immediate: true });
|
|
21454
21493
|
vue.onMounted(() => {
|
|
21455
21494
|
const inputInner = input.value.input;
|
|
21456
|
-
|
|
21495
|
+
const inputInnerHeight = Number.parseFloat(useCssVar(nsInput.cssVarName("input-height"), inputInner).value) - 2;
|
|
21496
|
+
inputInitialHeight = inputInner.offsetHeight || inputInnerHeight;
|
|
21457
21497
|
useResizeObserver(inputInner, updateStyle);
|
|
21458
21498
|
});
|
|
21459
21499
|
return {
|
|
@@ -28183,6 +28223,9 @@
|
|
|
28183
28223
|
onItemLeave(e);
|
|
28184
28224
|
}));
|
|
28185
28225
|
const handleClick = composeEventHandlers((e) => {
|
|
28226
|
+
if (props.disabled) {
|
|
28227
|
+
return;
|
|
28228
|
+
}
|
|
28186
28229
|
emit("click", e);
|
|
28187
28230
|
return e.type !== "keydown" && e.defaultPrevented;
|
|
28188
28231
|
}, (e) => {
|
|
@@ -34238,12 +34281,20 @@
|
|
|
34238
34281
|
});
|
|
34239
34282
|
var Sizes = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__file", "sizes.vue"]]);
|
|
34240
34283
|
|
|
34284
|
+
const paginationJumperProps = buildProps({
|
|
34285
|
+
size: {
|
|
34286
|
+
type: String,
|
|
34287
|
+
values: componentSizes
|
|
34288
|
+
}
|
|
34289
|
+
});
|
|
34290
|
+
|
|
34241
34291
|
const _hoisted_1$m = ["disabled"];
|
|
34242
34292
|
const __default__$z = vue.defineComponent({
|
|
34243
34293
|
name: "ElPaginationJumper"
|
|
34244
34294
|
});
|
|
34245
34295
|
const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
34246
34296
|
...__default__$z,
|
|
34297
|
+
props: paginationJumperProps,
|
|
34247
34298
|
setup(__props) {
|
|
34248
34299
|
const { t } = useLocale();
|
|
34249
34300
|
const ns = useNamespace("pagination");
|
|
@@ -34266,9 +34317,11 @@
|
|
|
34266
34317
|
class: vue.normalizeClass(vue.unref(ns).e("jump")),
|
|
34267
34318
|
disabled: vue.unref(disabled)
|
|
34268
34319
|
}, [
|
|
34269
|
-
vue.
|
|
34320
|
+
vue.createElementVNode("span", {
|
|
34321
|
+
class: vue.normalizeClass([vue.unref(ns).e("goto")])
|
|
34322
|
+
}, vue.toDisplayString(vue.unref(t)("el.pagination.goto")), 3),
|
|
34270
34323
|
vue.createVNode(vue.unref(ElInput), {
|
|
34271
|
-
size:
|
|
34324
|
+
size: _ctx.size,
|
|
34272
34325
|
class: vue.normalizeClass([vue.unref(ns).e("editor"), vue.unref(ns).is("in-pagination")]),
|
|
34273
34326
|
min: 1,
|
|
34274
34327
|
max: vue.unref(pageCount),
|
|
@@ -34278,8 +34331,10 @@
|
|
|
34278
34331
|
type: "number",
|
|
34279
34332
|
"onUpdate:modelValue": handleInput,
|
|
34280
34333
|
onChange: handleChange
|
|
34281
|
-
}, null, 8, ["class", "max", "disabled", "model-value"]),
|
|
34282
|
-
vue.
|
|
34334
|
+
}, null, 8, ["size", "class", "max", "disabled", "model-value"]),
|
|
34335
|
+
vue.createElementVNode("span", {
|
|
34336
|
+
class: vue.normalizeClass([vue.unref(ns).e("classifier")])
|
|
34337
|
+
}, vue.toDisplayString(vue.unref(t)("el.pagination.pageClassifier")), 3)
|
|
34283
34338
|
], 10, _hoisted_1$m);
|
|
34284
34339
|
};
|
|
34285
34340
|
}
|
|
@@ -34490,7 +34545,7 @@
|
|
|
34490
34545
|
onFocus: _cache[2] || (_cache[2] = ($event) => onFocus(true)),
|
|
34491
34546
|
onBlur: _cache[3] || (_cache[3] = ($event) => quickPrevFocus.value = false)
|
|
34492
34547
|
}, [
|
|
34493
|
-
quickPrevHover.value || quickPrevFocus.value ? (vue.openBlock(), vue.createBlock(vue.unref(d_arrow_left_default), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(more_filled_default), { key: 1 }))
|
|
34548
|
+
(quickPrevHover.value || quickPrevFocus.value) && !_ctx.disabled ? (vue.openBlock(), vue.createBlock(vue.unref(d_arrow_left_default), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(more_filled_default), { key: 1 }))
|
|
34494
34549
|
], 42, _hoisted_3$7)) : vue.createCommentVNode("v-if", true),
|
|
34495
34550
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(pagers), (pager) => {
|
|
34496
34551
|
return vue.openBlock(), vue.createElementBlock("li", {
|
|
@@ -34517,7 +34572,7 @@
|
|
|
34517
34572
|
onFocus: _cache[6] || (_cache[6] = ($event) => onFocus()),
|
|
34518
34573
|
onBlur: _cache[7] || (_cache[7] = ($event) => quickNextFocus.value = false)
|
|
34519
34574
|
}, [
|
|
34520
|
-
quickNextHover.value || quickNextFocus.value ? (vue.openBlock(), vue.createBlock(vue.unref(d_arrow_right_default), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(more_filled_default), { key: 1 }))
|
|
34575
|
+
(quickNextHover.value || quickNextFocus.value) && !_ctx.disabled ? (vue.openBlock(), vue.createBlock(vue.unref(d_arrow_right_default), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(more_filled_default), { key: 1 }))
|
|
34521
34576
|
], 42, _hoisted_5$4)) : vue.createCommentVNode("v-if", true),
|
|
34522
34577
|
_ctx.pageCount > 1 ? (vue.openBlock(), vue.createElementBlock("li", {
|
|
34523
34578
|
key: 3,
|
|
@@ -34727,7 +34782,9 @@
|
|
|
34727
34782
|
prevIcon: props.prevIcon,
|
|
34728
34783
|
onClick: prev
|
|
34729
34784
|
}),
|
|
34730
|
-
jumper: vue.h(Jumper
|
|
34785
|
+
jumper: vue.h(Jumper, {
|
|
34786
|
+
size: props.small ? "small" : "default"
|
|
34787
|
+
}),
|
|
34731
34788
|
pager: vue.h(Pager, {
|
|
34732
34789
|
currentPage: currentPageBridge.value,
|
|
34733
34790
|
pageCount: pageCountBridge.value,
|
|
@@ -38314,9 +38371,9 @@
|
|
|
38314
38371
|
});
|
|
38315
38372
|
const filteredOptions = vue.computed(() => {
|
|
38316
38373
|
const isValidOption = (o) => {
|
|
38317
|
-
var _a;
|
|
38318
38374
|
const query = states.inputValue;
|
|
38319
|
-
const
|
|
38375
|
+
const regexp = new RegExp(escapeStringRegexp(query), "i");
|
|
38376
|
+
const containsQueryString = query ? regexp.test(o.label || "") : true;
|
|
38320
38377
|
return containsQueryString;
|
|
38321
38378
|
};
|
|
38322
38379
|
if (props.loading) {
|
|
@@ -38933,7 +38990,7 @@
|
|
|
38933
38990
|
ref: "selectionRef",
|
|
38934
38991
|
class: vue.normalizeClass([
|
|
38935
38992
|
_ctx.nsSelectV2.e("wrapper"),
|
|
38936
|
-
_ctx.nsSelectV2.is("focused", _ctx.states.isComposing),
|
|
38993
|
+
_ctx.nsSelectV2.is("focused", _ctx.states.isComposing || _ctx.expanded),
|
|
38937
38994
|
_ctx.nsSelectV2.is("hovering", _ctx.states.comboBoxHovering),
|
|
38938
38995
|
_ctx.nsSelectV2.is("filterable", _ctx.filterable),
|
|
38939
38996
|
_ctx.nsSelectV2.is("disabled", _ctx.selectDisabled)
|
|
@@ -39170,7 +39227,7 @@
|
|
|
39170
39227
|
key: 3,
|
|
39171
39228
|
class: vue.normalizeClass([
|
|
39172
39229
|
_ctx.nsSelectV2.e("placeholder"),
|
|
39173
|
-
_ctx.nsSelectV2.is("transparent", _ctx.
|
|
39230
|
+
_ctx.nsSelectV2.is("transparent", _ctx.multiple ? _ctx.modelValue.length === 0 : !_ctx.hasModelValue)
|
|
39174
39231
|
])
|
|
39175
39232
|
}, vue.toDisplayString(_ctx.currentPlaceholder), 3)) : vue.createCommentVNode("v-if", true),
|
|
39176
39233
|
vue.createElementVNode("span", {
|
|
@@ -42510,7 +42567,7 @@
|
|
|
42510
42567
|
if (this.table.vnode.el && scrollBarRef) {
|
|
42511
42568
|
let scrollY = true;
|
|
42512
42569
|
const prevScrollY = this.scrollY.value;
|
|
42513
|
-
scrollY = scrollBarRef.
|
|
42570
|
+
scrollY = scrollBarRef.wrapRef.scrollHeight > scrollBarRef.wrapRef.clientHeight;
|
|
42514
42571
|
this.scrollY.value = scrollY;
|
|
42515
42572
|
return prevScrollY !== scrollY;
|
|
42516
42573
|
}
|
|
@@ -44287,7 +44344,7 @@
|
|
|
44287
44344
|
}
|
|
44288
44345
|
return;
|
|
44289
44346
|
}
|
|
44290
|
-
const scrollContainer = table.refs.scrollBarRef.
|
|
44347
|
+
const scrollContainer = table.refs.scrollBarRef.wrapRef;
|
|
44291
44348
|
if (!scrollContainer)
|
|
44292
44349
|
return;
|
|
44293
44350
|
const { scrollLeft, offsetWidth, scrollWidth } = scrollContainer;
|
|
@@ -44308,8 +44365,8 @@
|
|
|
44308
44365
|
const bindEvents = () => {
|
|
44309
44366
|
if (!table.refs.scrollBarRef)
|
|
44310
44367
|
return;
|
|
44311
|
-
if (table.refs.scrollBarRef.
|
|
44312
|
-
useEventListener(table.refs.scrollBarRef.
|
|
44368
|
+
if (table.refs.scrollBarRef.wrapRef) {
|
|
44369
|
+
useEventListener(table.refs.scrollBarRef.wrapRef, "scroll", syncPosition, {
|
|
44313
44370
|
passive: true
|
|
44314
44371
|
});
|
|
44315
44372
|
}
|