element-plus 2.2.21 → 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 +80 -56
- 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 +80 -56
- 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/cascader/index.d.ts +48 -32
- package/es/components/cascader/src/index.vue.d.ts +24 -16
- 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/index.mjs +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/useSelect.mjs +3 -2
- package/es/components/select-v2/src/useSelect.mjs.map +1 -1
- package/es/components/skeleton/index.mjs +2 -2
- package/es/components/skeleton/src/skeleton-item.mjs +18 -23
- package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton-item2.mjs +23 -18
- package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +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/index.mjs +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/autocomplete/index.d.ts +12 -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/cascader/index.d.ts +48 -32
- package/lib/components/cascader/src/index.vue.d.ts +24 -16
- 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/index.js +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/useSelect.js +3 -2
- package/lib/components/select-v2/src/useSelect.js.map +1 -1
- package/lib/components/skeleton/index.js +2 -2
- package/lib/components/skeleton/src/skeleton-item.js +18 -23
- package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
- package/lib/components/skeleton/src/skeleton-item2.js +23 -18
- package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +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/index.js +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/theme-chalk/el-pagination.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/common/var.scss +5 -3
- package/theme-chalk/src/pagination.scss +108 -258
- 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')) :
|
|
@@ -11103,7 +11103,7 @@
|
|
|
11103
11103
|
};
|
|
11104
11104
|
};
|
|
11105
11105
|
|
|
11106
|
-
const version$1 = "2.2.
|
|
11106
|
+
const version$1 = "2.2.22";
|
|
11107
11107
|
|
|
11108
11108
|
const makeInstaller = (components = []) => {
|
|
11109
11109
|
const install = (app, options) => {
|
|
@@ -11152,9 +11152,9 @@
|
|
|
11152
11152
|
return target;
|
|
11153
11153
|
};
|
|
11154
11154
|
|
|
11155
|
-
const COMPONENT_NAME$
|
|
11155
|
+
const COMPONENT_NAME$m = "ElAffix";
|
|
11156
11156
|
const __default__$1w = vue.defineComponent({
|
|
11157
|
-
name: COMPONENT_NAME$
|
|
11157
|
+
name: COMPONENT_NAME$m
|
|
11158
11158
|
});
|
|
11159
11159
|
const _sfc_main$2f = /* @__PURE__ */ vue.defineComponent({
|
|
11160
11160
|
...__default__$1w,
|
|
@@ -11230,7 +11230,7 @@
|
|
|
11230
11230
|
if (props.target) {
|
|
11231
11231
|
target.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
|
|
11232
11232
|
if (!target.value)
|
|
11233
|
-
throwError(COMPONENT_NAME$
|
|
11233
|
+
throwError(COMPONENT_NAME$m, `Target is not existed: ${props.target}`);
|
|
11234
11234
|
} else {
|
|
11235
11235
|
target.value = document.documentElement;
|
|
11236
11236
|
}
|
|
@@ -12062,7 +12062,7 @@
|
|
|
12062
12062
|
always: Boolean
|
|
12063
12063
|
});
|
|
12064
12064
|
|
|
12065
|
-
const COMPONENT_NAME$
|
|
12065
|
+
const COMPONENT_NAME$l = "Thumb";
|
|
12066
12066
|
const _sfc_main$2b = /* @__PURE__ */ vue.defineComponent({
|
|
12067
12067
|
__name: "thumb",
|
|
12068
12068
|
props: thumbProps,
|
|
@@ -12071,7 +12071,7 @@
|
|
|
12071
12071
|
const scrollbar = vue.inject(scrollbarContextKey);
|
|
12072
12072
|
const ns = useNamespace("scrollbar");
|
|
12073
12073
|
if (!scrollbar)
|
|
12074
|
-
throwError(COMPONENT_NAME$
|
|
12074
|
+
throwError(COMPONENT_NAME$l, "can not inject scrollbar context");
|
|
12075
12075
|
const instance = vue.ref();
|
|
12076
12076
|
const thumb = vue.ref();
|
|
12077
12077
|
const thumbState = vue.ref({});
|
|
@@ -12249,7 +12249,10 @@
|
|
|
12249
12249
|
type: [String, Number],
|
|
12250
12250
|
default: ""
|
|
12251
12251
|
},
|
|
12252
|
-
native:
|
|
12252
|
+
native: {
|
|
12253
|
+
type: Boolean,
|
|
12254
|
+
default: false
|
|
12255
|
+
},
|
|
12253
12256
|
wrapStyle: {
|
|
12254
12257
|
type: definePropType([String, Object, Array]),
|
|
12255
12258
|
default: ""
|
|
@@ -12284,8 +12287,9 @@
|
|
|
12284
12287
|
}) => [scrollTop, scrollLeft].every(isNumber)
|
|
12285
12288
|
};
|
|
12286
12289
|
|
|
12290
|
+
const COMPONENT_NAME$k = "ElScrollbar";
|
|
12287
12291
|
const __default__$1s = vue.defineComponent({
|
|
12288
|
-
name:
|
|
12292
|
+
name: COMPONENT_NAME$k
|
|
12289
12293
|
});
|
|
12290
12294
|
const _sfc_main$29 = /* @__PURE__ */ vue.defineComponent({
|
|
12291
12295
|
...__default__$1s,
|
|
@@ -12296,9 +12300,9 @@
|
|
|
12296
12300
|
const ns = useNamespace("scrollbar");
|
|
12297
12301
|
let stopResizeObserver = void 0;
|
|
12298
12302
|
let stopResizeListener = void 0;
|
|
12299
|
-
const
|
|
12300
|
-
const
|
|
12301
|
-
const
|
|
12303
|
+
const scrollbarRef = vue.ref();
|
|
12304
|
+
const wrapRef = vue.ref();
|
|
12305
|
+
const resizeRef = vue.ref();
|
|
12302
12306
|
const sizeWidth = vue.ref("0");
|
|
12303
12307
|
const sizeHeight = vue.ref("0");
|
|
12304
12308
|
const barRef = vue.ref();
|
|
@@ -12312,42 +12316,52 @@
|
|
|
12312
12316
|
style2.maxHeight = addUnit(props.maxHeight);
|
|
12313
12317
|
return [props.wrapStyle, style2];
|
|
12314
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
|
+
});
|
|
12315
12329
|
const handleScroll = () => {
|
|
12316
12330
|
var _a;
|
|
12317
|
-
if (
|
|
12318
|
-
(_a = barRef.value) == null ? void 0 : _a.handleScroll(
|
|
12331
|
+
if (wrapRef.value) {
|
|
12332
|
+
(_a = barRef.value) == null ? void 0 : _a.handleScroll(wrapRef.value);
|
|
12319
12333
|
emit("scroll", {
|
|
12320
|
-
scrollTop:
|
|
12321
|
-
scrollLeft:
|
|
12334
|
+
scrollTop: wrapRef.value.scrollTop,
|
|
12335
|
+
scrollLeft: wrapRef.value.scrollLeft
|
|
12322
12336
|
});
|
|
12323
12337
|
}
|
|
12324
12338
|
};
|
|
12325
12339
|
function scrollTo(arg1, arg2) {
|
|
12326
12340
|
if (isObject$1(arg1)) {
|
|
12327
|
-
|
|
12341
|
+
wrapRef.value.scrollTo(arg1);
|
|
12328
12342
|
} else if (isNumber(arg1) && isNumber(arg2)) {
|
|
12329
|
-
|
|
12343
|
+
wrapRef.value.scrollTo(arg1, arg2);
|
|
12330
12344
|
}
|
|
12331
12345
|
}
|
|
12332
12346
|
const setScrollTop = (value) => {
|
|
12333
12347
|
if (!isNumber(value)) {
|
|
12334
12348
|
return;
|
|
12335
12349
|
}
|
|
12336
|
-
|
|
12350
|
+
wrapRef.value.scrollTop = value;
|
|
12337
12351
|
};
|
|
12338
12352
|
const setScrollLeft = (value) => {
|
|
12339
12353
|
if (!isNumber(value)) {
|
|
12340
12354
|
return;
|
|
12341
12355
|
}
|
|
12342
|
-
|
|
12356
|
+
wrapRef.value.scrollLeft = value;
|
|
12343
12357
|
};
|
|
12344
12358
|
const update = () => {
|
|
12345
|
-
if (!
|
|
12359
|
+
if (!wrapRef.value)
|
|
12346
12360
|
return;
|
|
12347
|
-
const offsetHeight =
|
|
12348
|
-
const offsetWidth =
|
|
12349
|
-
const originalHeight = offsetHeight ** 2 /
|
|
12350
|
-
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;
|
|
12351
12365
|
const height = Math.max(originalHeight, props.minSize);
|
|
12352
12366
|
const width = Math.max(originalWidth, props.minSize);
|
|
12353
12367
|
ratioY.value = originalHeight / (offsetHeight - originalHeight) / (height / (offsetHeight - height));
|
|
@@ -12360,7 +12374,7 @@
|
|
|
12360
12374
|
stopResizeObserver == null ? void 0 : stopResizeObserver();
|
|
12361
12375
|
stopResizeListener == null ? void 0 : stopResizeListener();
|
|
12362
12376
|
} else {
|
|
12363
|
-
({ stop: stopResizeObserver } = useResizeObserver(
|
|
12377
|
+
({ stop: stopResizeObserver } = useResizeObserver(resizeRef, update));
|
|
12364
12378
|
stopResizeListener = useEventListener("resize", update);
|
|
12365
12379
|
}
|
|
12366
12380
|
}, { immediate: true });
|
|
@@ -12369,14 +12383,14 @@
|
|
|
12369
12383
|
vue.nextTick(() => {
|
|
12370
12384
|
var _a;
|
|
12371
12385
|
update();
|
|
12372
|
-
if (
|
|
12373
|
-
(_a = barRef.value) == null ? void 0 : _a.handleScroll(
|
|
12386
|
+
if (wrapRef.value) {
|
|
12387
|
+
(_a = barRef.value) == null ? void 0 : _a.handleScroll(wrapRef.value);
|
|
12374
12388
|
}
|
|
12375
12389
|
});
|
|
12376
12390
|
});
|
|
12377
12391
|
vue.provide(scrollbarContextKey, vue.reactive({
|
|
12378
|
-
scrollbarElement:
|
|
12379
|
-
wrapElement:
|
|
12392
|
+
scrollbarElement: scrollbarRef,
|
|
12393
|
+
wrapElement: wrapRef
|
|
12380
12394
|
}));
|
|
12381
12395
|
vue.onMounted(() => {
|
|
12382
12396
|
if (!props.native)
|
|
@@ -12386,7 +12400,7 @@
|
|
|
12386
12400
|
});
|
|
12387
12401
|
vue.onUpdated(() => update());
|
|
12388
12402
|
expose({
|
|
12389
|
-
|
|
12403
|
+
wrapRef,
|
|
12390
12404
|
update,
|
|
12391
12405
|
scrollTo,
|
|
12392
12406
|
setScrollTop,
|
|
@@ -12395,25 +12409,21 @@
|
|
|
12395
12409
|
});
|
|
12396
12410
|
return (_ctx, _cache) => {
|
|
12397
12411
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
12398
|
-
ref_key: "
|
|
12399
|
-
ref:
|
|
12412
|
+
ref_key: "scrollbarRef",
|
|
12413
|
+
ref: scrollbarRef,
|
|
12400
12414
|
class: vue.normalizeClass(vue.unref(ns).b())
|
|
12401
12415
|
}, [
|
|
12402
12416
|
vue.createElementVNode("div", {
|
|
12403
|
-
ref_key: "
|
|
12404
|
-
ref:
|
|
12405
|
-
class: vue.normalizeClass(
|
|
12406
|
-
_ctx.wrapClass,
|
|
12407
|
-
vue.unref(ns).e("wrap"),
|
|
12408
|
-
{ [vue.unref(ns).em("wrap", "hidden-default")]: !_ctx.native }
|
|
12409
|
-
]),
|
|
12417
|
+
ref_key: "wrapRef",
|
|
12418
|
+
ref: wrapRef,
|
|
12419
|
+
class: vue.normalizeClass(vue.unref(wrapKls)),
|
|
12410
12420
|
style: vue.normalizeStyle(vue.unref(style)),
|
|
12411
12421
|
onScroll: handleScroll
|
|
12412
12422
|
}, [
|
|
12413
12423
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tag), {
|
|
12414
|
-
ref_key: "
|
|
12415
|
-
ref:
|
|
12416
|
-
class: vue.normalizeClass(
|
|
12424
|
+
ref_key: "resizeRef",
|
|
12425
|
+
ref: resizeRef,
|
|
12426
|
+
class: vue.normalizeClass(vue.unref(resizeKls)),
|
|
12417
12427
|
style: vue.normalizeStyle(_ctx.viewStyle)
|
|
12418
12428
|
}, {
|
|
12419
12429
|
default: vue.withCtx(() => [
|
|
@@ -34271,12 +34281,20 @@
|
|
|
34271
34281
|
});
|
|
34272
34282
|
var Sizes = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__file", "sizes.vue"]]);
|
|
34273
34283
|
|
|
34284
|
+
const paginationJumperProps = buildProps({
|
|
34285
|
+
size: {
|
|
34286
|
+
type: String,
|
|
34287
|
+
values: componentSizes
|
|
34288
|
+
}
|
|
34289
|
+
});
|
|
34290
|
+
|
|
34274
34291
|
const _hoisted_1$m = ["disabled"];
|
|
34275
34292
|
const __default__$z = vue.defineComponent({
|
|
34276
34293
|
name: "ElPaginationJumper"
|
|
34277
34294
|
});
|
|
34278
34295
|
const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
34279
34296
|
...__default__$z,
|
|
34297
|
+
props: paginationJumperProps,
|
|
34280
34298
|
setup(__props) {
|
|
34281
34299
|
const { t } = useLocale();
|
|
34282
34300
|
const ns = useNamespace("pagination");
|
|
@@ -34299,9 +34317,11 @@
|
|
|
34299
34317
|
class: vue.normalizeClass(vue.unref(ns).e("jump")),
|
|
34300
34318
|
disabled: vue.unref(disabled)
|
|
34301
34319
|
}, [
|
|
34302
|
-
vue.
|
|
34320
|
+
vue.createElementVNode("span", {
|
|
34321
|
+
class: vue.normalizeClass([vue.unref(ns).e("goto")])
|
|
34322
|
+
}, vue.toDisplayString(vue.unref(t)("el.pagination.goto")), 3),
|
|
34303
34323
|
vue.createVNode(vue.unref(ElInput), {
|
|
34304
|
-
size:
|
|
34324
|
+
size: _ctx.size,
|
|
34305
34325
|
class: vue.normalizeClass([vue.unref(ns).e("editor"), vue.unref(ns).is("in-pagination")]),
|
|
34306
34326
|
min: 1,
|
|
34307
34327
|
max: vue.unref(pageCount),
|
|
@@ -34311,8 +34331,10 @@
|
|
|
34311
34331
|
type: "number",
|
|
34312
34332
|
"onUpdate:modelValue": handleInput,
|
|
34313
34333
|
onChange: handleChange
|
|
34314
|
-
}, null, 8, ["class", "max", "disabled", "model-value"]),
|
|
34315
|
-
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)
|
|
34316
34338
|
], 10, _hoisted_1$m);
|
|
34317
34339
|
};
|
|
34318
34340
|
}
|
|
@@ -34523,7 +34545,7 @@
|
|
|
34523
34545
|
onFocus: _cache[2] || (_cache[2] = ($event) => onFocus(true)),
|
|
34524
34546
|
onBlur: _cache[3] || (_cache[3] = ($event) => quickPrevFocus.value = false)
|
|
34525
34547
|
}, [
|
|
34526
|
-
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 }))
|
|
34527
34549
|
], 42, _hoisted_3$7)) : vue.createCommentVNode("v-if", true),
|
|
34528
34550
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(pagers), (pager) => {
|
|
34529
34551
|
return vue.openBlock(), vue.createElementBlock("li", {
|
|
@@ -34550,7 +34572,7 @@
|
|
|
34550
34572
|
onFocus: _cache[6] || (_cache[6] = ($event) => onFocus()),
|
|
34551
34573
|
onBlur: _cache[7] || (_cache[7] = ($event) => quickNextFocus.value = false)
|
|
34552
34574
|
}, [
|
|
34553
|
-
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 }))
|
|
34554
34576
|
], 42, _hoisted_5$4)) : vue.createCommentVNode("v-if", true),
|
|
34555
34577
|
_ctx.pageCount > 1 ? (vue.openBlock(), vue.createElementBlock("li", {
|
|
34556
34578
|
key: 3,
|
|
@@ -34760,7 +34782,9 @@
|
|
|
34760
34782
|
prevIcon: props.prevIcon,
|
|
34761
34783
|
onClick: prev
|
|
34762
34784
|
}),
|
|
34763
|
-
jumper: vue.h(Jumper
|
|
34785
|
+
jumper: vue.h(Jumper, {
|
|
34786
|
+
size: props.small ? "small" : "default"
|
|
34787
|
+
}),
|
|
34764
34788
|
pager: vue.h(Pager, {
|
|
34765
34789
|
currentPage: currentPageBridge.value,
|
|
34766
34790
|
pageCount: pageCountBridge.value,
|
|
@@ -38347,9 +38371,9 @@
|
|
|
38347
38371
|
});
|
|
38348
38372
|
const filteredOptions = vue.computed(() => {
|
|
38349
38373
|
const isValidOption = (o) => {
|
|
38350
|
-
var _a;
|
|
38351
38374
|
const query = states.inputValue;
|
|
38352
|
-
const
|
|
38375
|
+
const regexp = new RegExp(escapeStringRegexp(query), "i");
|
|
38376
|
+
const containsQueryString = query ? regexp.test(o.label || "") : true;
|
|
38353
38377
|
return containsQueryString;
|
|
38354
38378
|
};
|
|
38355
38379
|
if (props.loading) {
|
|
@@ -42543,7 +42567,7 @@
|
|
|
42543
42567
|
if (this.table.vnode.el && scrollBarRef) {
|
|
42544
42568
|
let scrollY = true;
|
|
42545
42569
|
const prevScrollY = this.scrollY.value;
|
|
42546
|
-
scrollY = scrollBarRef.
|
|
42570
|
+
scrollY = scrollBarRef.wrapRef.scrollHeight > scrollBarRef.wrapRef.clientHeight;
|
|
42547
42571
|
this.scrollY.value = scrollY;
|
|
42548
42572
|
return prevScrollY !== scrollY;
|
|
42549
42573
|
}
|
|
@@ -44320,7 +44344,7 @@
|
|
|
44320
44344
|
}
|
|
44321
44345
|
return;
|
|
44322
44346
|
}
|
|
44323
|
-
const scrollContainer = table.refs.scrollBarRef.
|
|
44347
|
+
const scrollContainer = table.refs.scrollBarRef.wrapRef;
|
|
44324
44348
|
if (!scrollContainer)
|
|
44325
44349
|
return;
|
|
44326
44350
|
const { scrollLeft, offsetWidth, scrollWidth } = scrollContainer;
|
|
@@ -44341,8 +44365,8 @@
|
|
|
44341
44365
|
const bindEvents = () => {
|
|
44342
44366
|
if (!table.refs.scrollBarRef)
|
|
44343
44367
|
return;
|
|
44344
|
-
if (table.refs.scrollBarRef.
|
|
44345
|
-
useEventListener(table.refs.scrollBarRef.
|
|
44368
|
+
if (table.refs.scrollBarRef.wrapRef) {
|
|
44369
|
+
useEventListener(table.refs.scrollBarRef.wrapRef, "scroll", syncPosition, {
|
|
44346
44370
|
passive: true
|
|
44347
44371
|
});
|
|
44348
44372
|
}
|