@element-plus/nightly 0.0.20221022 → 0.0.20221024
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 +293 -234
- package/dist/index.full.min.js +15 -15
- 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 +293 -234
- 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/carousel/index.d.ts +18 -34
- package/es/components/carousel/index.mjs.map +1 -1
- package/es/components/carousel/src/carousel.d.ts +0 -2
- package/es/components/carousel/src/carousel.mjs.map +1 -1
- package/es/components/carousel/src/carousel.vue.d.ts +66 -84
- package/es/components/carousel/src/carousel2.mjs +40 -207
- package/es/components/carousel/src/carousel2.mjs.map +1 -1
- package/es/components/carousel/src/instance.d.ts +2 -0
- package/es/components/carousel/src/instance.mjs +2 -0
- package/es/components/carousel/src/instance.mjs.map +1 -0
- package/es/components/carousel/src/use-carousel.d.ts +21 -0
- package/es/components/carousel/src/use-carousel.mjs +210 -0
- package/es/components/carousel/src/use-carousel.mjs.map +1 -0
- package/es/components/index.mjs +2 -2
- package/es/components/table/src/store/watcher.mjs +10 -0
- package/es/components/table/src/store/watcher.mjs.map +1 -1
- package/es/components/table/src/table-body/styles-helper.mjs +2 -2
- package/es/components/table/src/table-body/styles-helper.mjs.map +1 -1
- package/es/components/table/src/table-header/style.helper.mjs +2 -2
- package/es/components/table/src/table-header/style.helper.mjs.map +1 -1
- package/es/components/table/src/util.d.ts +4 -4
- package/es/components/table/src/util.mjs +27 -16
- package/es/components/table/src/util.mjs.map +1 -1
- package/es/components/transfer/src/composables/use-check.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +19 -131
- package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel2.mjs +131 -19
- package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +1 -1
- package/es/components/upload/index.mjs +3 -3
- package/es/components/upload/src/upload-content.mjs +1 -1
- package/es/components/upload/src/upload-content2.mjs +2 -2
- package/es/components/upload/src/upload-dragger.mjs +11 -70
- package/es/components/upload/src/upload-dragger.mjs.map +1 -1
- package/es/components/upload/src/upload-dragger2.mjs +70 -11
- package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
- package/es/components/upload/src/upload-list.mjs +1 -1
- package/es/components/upload/src/upload.mjs +105 -120
- package/es/components/upload/src/upload.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +120 -105
- package/es/components/upload/src/upload2.mjs.map +1 -1
- package/es/components/upload/src/use-handlers.mjs +1 -1
- package/es/index.mjs +2 -2
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/carousel/index.d.ts +18 -34
- package/lib/components/carousel/index.js.map +1 -1
- package/lib/components/carousel/src/carousel.d.ts +0 -2
- package/lib/components/carousel/src/carousel.js.map +1 -1
- package/lib/components/carousel/src/carousel.vue.d.ts +66 -84
- package/lib/components/carousel/src/carousel2.js +42 -209
- package/lib/components/carousel/src/carousel2.js.map +1 -1
- package/lib/components/carousel/src/instance.d.ts +2 -0
- package/lib/components/carousel/src/instance.js +3 -0
- package/lib/components/carousel/src/instance.js.map +1 -0
- package/lib/components/carousel/src/use-carousel.d.ts +21 -0
- package/lib/components/carousel/src/use-carousel.js +214 -0
- package/lib/components/carousel/src/use-carousel.js.map +1 -0
- package/lib/components/index.js +2 -2
- package/lib/components/table/src/store/watcher.js +10 -0
- package/lib/components/table/src/store/watcher.js.map +1 -1
- package/lib/components/table/src/table-body/styles-helper.js +2 -2
- package/lib/components/table/src/table-body/styles-helper.js.map +1 -1
- package/lib/components/table/src/table-header/style.helper.js +2 -2
- package/lib/components/table/src/table-header/style.helper.js.map +1 -1
- package/lib/components/table/src/util.d.ts +4 -4
- package/lib/components/table/src/util.js +26 -15
- package/lib/components/table/src/util.js.map +1 -1
- package/lib/components/transfer/src/composables/use-check.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +21 -131
- package/lib/components/transfer/src/transfer-panel.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel2.js +131 -21
- package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +1 -1
- package/lib/components/upload/index.js +3 -3
- package/lib/components/upload/src/upload-content.js +1 -1
- package/lib/components/upload/src/upload-content2.js +2 -2
- package/lib/components/upload/src/upload-dragger.js +12 -70
- package/lib/components/upload/src/upload-dragger.js.map +1 -1
- package/lib/components/upload/src/upload-dragger2.js +70 -12
- package/lib/components/upload/src/upload-dragger2.js.map +1 -1
- package/lib/components/upload/src/upload-list.js +1 -1
- package/lib/components/upload/src/upload.js +108 -120
- package/lib/components/upload/src/upload.js.map +1 -1
- package/lib/components/upload/src/upload2.js +120 -108
- package/lib/components/upload/src/upload2.js.map +1 -1
- package/lib/components/upload/src/use-handlers.js +1 -1
- package/lib/index.js +2 -2
- 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.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Element Plus v0.0.
|
|
1
|
+
/*! Element Plus v0.0.20221024 */
|
|
2
2
|
|
|
3
3
|
import { getCurrentScope, onScopeDispose, unref, readonly, shallowRef, watchEffect, ref, watch, getCurrentInstance, onMounted, nextTick, computed as computed$1, openBlock, createElementBlock, createElementVNode, warn, isVNode, Fragment, Comment, inject, provide, onBeforeUnmount, toRef, onUnmounted, isRef, h as h$1, Teleport, onBeforeMount, defineComponent, normalizeClass, normalizeStyle, renderSlot, mergeProps, useSlots, createBlock, Transition, withCtx, withDirectives, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, createVNode, vShow, useAttrs as useAttrs$1, withModifiers, reactive, onUpdated, cloneVNode, Text, onDeactivated, renderList, withKeys, createSlots, toRefs, normalizeProps, toRaw as toRaw$1, vModelCheckbox, vModelRadio, resolveComponent, onBeforeUpdate, resolveDirective, vModelText, toHandlers, guardReactiveProps, markRaw, effectScope, triggerRef, shallowReactive, TransitionGroup, createApp, render } from 'vue';
|
|
4
4
|
|
|
@@ -11068,7 +11068,7 @@ const useOrderedChildren = (vm, childComponentName) => {
|
|
|
11068
11068
|
};
|
|
11069
11069
|
};
|
|
11070
11070
|
|
|
11071
|
-
const version$1 = "0.0.
|
|
11071
|
+
const version$1 = "0.0.20221024";
|
|
11072
11072
|
|
|
11073
11073
|
const makeInstaller = (components = []) => {
|
|
11074
11074
|
const install = (app, options) => {
|
|
@@ -11117,9 +11117,9 @@ var _export_sfc = (sfc, props) => {
|
|
|
11117
11117
|
return target;
|
|
11118
11118
|
};
|
|
11119
11119
|
|
|
11120
|
-
const COMPONENT_NAME$
|
|
11120
|
+
const COMPONENT_NAME$l = "ElAffix";
|
|
11121
11121
|
const __default__$1w = defineComponent({
|
|
11122
|
-
name: COMPONENT_NAME$
|
|
11122
|
+
name: COMPONENT_NAME$l
|
|
11123
11123
|
});
|
|
11124
11124
|
const _sfc_main$2f = /* @__PURE__ */ defineComponent({
|
|
11125
11125
|
...__default__$1w,
|
|
@@ -11195,7 +11195,7 @@ const _sfc_main$2f = /* @__PURE__ */ defineComponent({
|
|
|
11195
11195
|
if (props.target) {
|
|
11196
11196
|
target.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
|
|
11197
11197
|
if (!target.value)
|
|
11198
|
-
throwError(COMPONENT_NAME$
|
|
11198
|
+
throwError(COMPONENT_NAME$l, `Target is not existed: ${props.target}`);
|
|
11199
11199
|
} else {
|
|
11200
11200
|
target.value = document.documentElement;
|
|
11201
11201
|
}
|
|
@@ -11576,7 +11576,7 @@ const inputEmits = {
|
|
|
11576
11576
|
|
|
11577
11577
|
const _hoisted_1$13 = ["role"];
|
|
11578
11578
|
const _hoisted_2$G = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form"];
|
|
11579
|
-
const _hoisted_3$
|
|
11579
|
+
const _hoisted_3$k = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form"];
|
|
11580
11580
|
const __default__$1t = defineComponent({
|
|
11581
11581
|
name: "ElInput",
|
|
11582
11582
|
inheritAttrs: false
|
|
@@ -11967,7 +11967,7 @@ const _sfc_main$2c = /* @__PURE__ */ defineComponent({
|
|
|
11967
11967
|
onBlur: handleBlur,
|
|
11968
11968
|
onChange: handleChange,
|
|
11969
11969
|
onKeydown: handleKeydown
|
|
11970
|
-
}), null, 16, _hoisted_3$
|
|
11970
|
+
}), null, 16, _hoisted_3$k),
|
|
11971
11971
|
unref(isWordLimitVisible) ? (openBlock(), createElementBlock("span", {
|
|
11972
11972
|
key: 0,
|
|
11973
11973
|
style: normalizeStyle(countStyle.value),
|
|
@@ -12027,7 +12027,7 @@ const thumbProps = buildProps({
|
|
|
12027
12027
|
always: Boolean
|
|
12028
12028
|
});
|
|
12029
12029
|
|
|
12030
|
-
const COMPONENT_NAME$
|
|
12030
|
+
const COMPONENT_NAME$k = "Thumb";
|
|
12031
12031
|
const _sfc_main$2b = /* @__PURE__ */ defineComponent({
|
|
12032
12032
|
__name: "thumb",
|
|
12033
12033
|
props: thumbProps,
|
|
@@ -12036,7 +12036,7 @@ const _sfc_main$2b = /* @__PURE__ */ defineComponent({
|
|
|
12036
12036
|
const scrollbar = inject(scrollbarContextKey);
|
|
12037
12037
|
const ns = useNamespace("scrollbar");
|
|
12038
12038
|
if (!scrollbar)
|
|
12039
|
-
throwError(COMPONENT_NAME$
|
|
12039
|
+
throwError(COMPONENT_NAME$k, "can not inject scrollbar context");
|
|
12040
12040
|
const instance = ref();
|
|
12041
12041
|
const thumb = ref();
|
|
12042
12042
|
const thumbState = ref({});
|
|
@@ -13993,10 +13993,10 @@ const autocompleteEmits = {
|
|
|
13993
13993
|
|
|
13994
13994
|
const _hoisted_1$11 = ["aria-expanded", "aria-owns"];
|
|
13995
13995
|
const _hoisted_2$E = { key: 0 };
|
|
13996
|
-
const _hoisted_3$
|
|
13997
|
-
const COMPONENT_NAME$
|
|
13996
|
+
const _hoisted_3$j = ["id", "aria-selected", "onClick"];
|
|
13997
|
+
const COMPONENT_NAME$j = "ElAutocomplete";
|
|
13998
13998
|
const __default__$1k = defineComponent({
|
|
13999
|
-
name: COMPONENT_NAME$
|
|
13999
|
+
name: COMPONENT_NAME$j,
|
|
14000
14000
|
inheritAttrs: false
|
|
14001
14001
|
});
|
|
14002
14002
|
const _sfc_main$20 = /* @__PURE__ */ defineComponent({
|
|
@@ -14058,7 +14058,7 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
|
|
|
14058
14058
|
suggestions.value = suggestionList;
|
|
14059
14059
|
highlightedIndex.value = props.highlightFirstItem ? 0 : -1;
|
|
14060
14060
|
} else {
|
|
14061
|
-
throwError(COMPONENT_NAME$
|
|
14061
|
+
throwError(COMPONENT_NAME$j, "autocomplete suggestions must be an array");
|
|
14062
14062
|
}
|
|
14063
14063
|
};
|
|
14064
14064
|
loading.value = true;
|
|
@@ -14256,7 +14256,7 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
|
|
|
14256
14256
|
renderSlot(_ctx.$slots, "default", { item }, () => [
|
|
14257
14257
|
createTextVNode(toDisplayString(item[_ctx.valueKey]), 1)
|
|
14258
14258
|
])
|
|
14259
|
-
], 10, _hoisted_3$
|
|
14259
|
+
], 10, _hoisted_3$j);
|
|
14260
14260
|
}), 128))
|
|
14261
14261
|
]),
|
|
14262
14262
|
_: 3
|
|
@@ -14494,9 +14494,9 @@ const useBackTop = (props, emit, componentName) => {
|
|
|
14494
14494
|
};
|
|
14495
14495
|
};
|
|
14496
14496
|
|
|
14497
|
-
const COMPONENT_NAME$
|
|
14497
|
+
const COMPONENT_NAME$i = "ElBacktop";
|
|
14498
14498
|
const __default__$1i = defineComponent({
|
|
14499
|
-
name: COMPONENT_NAME$
|
|
14499
|
+
name: COMPONENT_NAME$i
|
|
14500
14500
|
});
|
|
14501
14501
|
const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
14502
14502
|
...__default__$1i,
|
|
@@ -14505,7 +14505,7 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
14505
14505
|
setup(__props, { emit }) {
|
|
14506
14506
|
const props = __props;
|
|
14507
14507
|
const ns = useNamespace("backtop");
|
|
14508
|
-
const { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME$
|
|
14508
|
+
const { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME$i);
|
|
14509
14509
|
const backTopStyle = computed$1(() => ({
|
|
14510
14510
|
right: `${props.right}px`,
|
|
14511
14511
|
bottom: `${props.bottom}px`
|
|
@@ -18521,9 +18521,9 @@ const calendarEmits = {
|
|
|
18521
18521
|
[INPUT_EVENT]: (value) => isDate(value)
|
|
18522
18522
|
};
|
|
18523
18523
|
|
|
18524
|
-
const COMPONENT_NAME$
|
|
18524
|
+
const COMPONENT_NAME$h = "ElCalendar";
|
|
18525
18525
|
const __default__$1a = defineComponent({
|
|
18526
|
-
name: COMPONENT_NAME$
|
|
18526
|
+
name: COMPONENT_NAME$h
|
|
18527
18527
|
});
|
|
18528
18528
|
const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
18529
18529
|
...__default__$1a,
|
|
@@ -18756,12 +18756,207 @@ const carouselEmits = {
|
|
|
18756
18756
|
change: (current, prev) => [current, prev].every(isNumber)
|
|
18757
18757
|
};
|
|
18758
18758
|
|
|
18759
|
-
const _hoisted_1$V = ["onMouseenter", "onMouseleave"];
|
|
18760
|
-
const _hoisted_2$A = ["onMouseenter", "onClick"];
|
|
18761
|
-
const _hoisted_3$j = { key: 0 };
|
|
18762
18759
|
const THROTTLE_TIME = 300;
|
|
18760
|
+
const useCarousel = (props, emit, componentName) => {
|
|
18761
|
+
const {
|
|
18762
|
+
children: items,
|
|
18763
|
+
addChild: addItem,
|
|
18764
|
+
removeChild: removeItem
|
|
18765
|
+
} = useOrderedChildren(getCurrentInstance(), "ElCarouselItem");
|
|
18766
|
+
const activeIndex = ref(-1);
|
|
18767
|
+
const timer = ref(null);
|
|
18768
|
+
const hover = ref(false);
|
|
18769
|
+
const root = ref();
|
|
18770
|
+
const arrowDisplay = computed$1(() => props.arrow !== "never" && !unref(isVertical));
|
|
18771
|
+
const hasLabel = computed$1(() => {
|
|
18772
|
+
return items.value.some((item) => item.props.label.toString().length > 0);
|
|
18773
|
+
});
|
|
18774
|
+
const isCardType = computed$1(() => props.type === "card");
|
|
18775
|
+
const isVertical = computed$1(() => props.direction === "vertical");
|
|
18776
|
+
const throttledArrowClick = throttle((index) => {
|
|
18777
|
+
setActiveItem(index);
|
|
18778
|
+
}, THROTTLE_TIME, { trailing: true });
|
|
18779
|
+
const throttledIndicatorHover = throttle((index) => {
|
|
18780
|
+
handleIndicatorHover(index);
|
|
18781
|
+
}, THROTTLE_TIME);
|
|
18782
|
+
function pauseTimer() {
|
|
18783
|
+
if (timer.value) {
|
|
18784
|
+
clearInterval(timer.value);
|
|
18785
|
+
timer.value = null;
|
|
18786
|
+
}
|
|
18787
|
+
}
|
|
18788
|
+
function startTimer() {
|
|
18789
|
+
if (props.interval <= 0 || !props.autoplay || timer.value)
|
|
18790
|
+
return;
|
|
18791
|
+
timer.value = setInterval(() => playSlides(), props.interval);
|
|
18792
|
+
}
|
|
18793
|
+
const playSlides = () => {
|
|
18794
|
+
if (activeIndex.value < items.value.length - 1) {
|
|
18795
|
+
activeIndex.value = activeIndex.value + 1;
|
|
18796
|
+
} else if (props.loop) {
|
|
18797
|
+
activeIndex.value = 0;
|
|
18798
|
+
}
|
|
18799
|
+
};
|
|
18800
|
+
function setActiveItem(index) {
|
|
18801
|
+
if (isString(index)) {
|
|
18802
|
+
const filteredItems = items.value.filter((item) => item.props.name === index);
|
|
18803
|
+
if (filteredItems.length > 0) {
|
|
18804
|
+
index = items.value.indexOf(filteredItems[0]);
|
|
18805
|
+
}
|
|
18806
|
+
}
|
|
18807
|
+
index = Number(index);
|
|
18808
|
+
if (Number.isNaN(index) || index !== Math.floor(index)) {
|
|
18809
|
+
return;
|
|
18810
|
+
}
|
|
18811
|
+
const itemCount = items.value.length;
|
|
18812
|
+
const oldIndex = activeIndex.value;
|
|
18813
|
+
if (index < 0) {
|
|
18814
|
+
activeIndex.value = props.loop ? itemCount - 1 : 0;
|
|
18815
|
+
} else if (index >= itemCount) {
|
|
18816
|
+
activeIndex.value = props.loop ? 0 : itemCount - 1;
|
|
18817
|
+
} else {
|
|
18818
|
+
activeIndex.value = index;
|
|
18819
|
+
}
|
|
18820
|
+
if (oldIndex === activeIndex.value) {
|
|
18821
|
+
resetItemPosition(oldIndex);
|
|
18822
|
+
}
|
|
18823
|
+
resetTimer();
|
|
18824
|
+
}
|
|
18825
|
+
function resetItemPosition(oldIndex) {
|
|
18826
|
+
items.value.forEach((item, index) => {
|
|
18827
|
+
item.translateItem(index, activeIndex.value, oldIndex);
|
|
18828
|
+
});
|
|
18829
|
+
}
|
|
18830
|
+
function itemInStage(item, index) {
|
|
18831
|
+
var _a, _b, _c, _d;
|
|
18832
|
+
const _items = unref(items);
|
|
18833
|
+
const itemCount = _items.length;
|
|
18834
|
+
if (itemCount === 0 || !item.states.inStage)
|
|
18835
|
+
return false;
|
|
18836
|
+
const nextItemIndex = index + 1;
|
|
18837
|
+
const prevItemIndex = index - 1;
|
|
18838
|
+
const lastItemIndex = itemCount - 1;
|
|
18839
|
+
const isLastItemActive = _items[lastItemIndex].states.active;
|
|
18840
|
+
const isFirstItemActive = _items[0].states.active;
|
|
18841
|
+
const isNextItemActive = (_b = (_a = _items[nextItemIndex]) == null ? void 0 : _a.states) == null ? void 0 : _b.active;
|
|
18842
|
+
const isPrevItemActive = (_d = (_c = _items[prevItemIndex]) == null ? void 0 : _c.states) == null ? void 0 : _d.active;
|
|
18843
|
+
if (index === lastItemIndex && isFirstItemActive || isNextItemActive) {
|
|
18844
|
+
return "left";
|
|
18845
|
+
} else if (index === 0 && isLastItemActive || isPrevItemActive) {
|
|
18846
|
+
return "right";
|
|
18847
|
+
}
|
|
18848
|
+
return false;
|
|
18849
|
+
}
|
|
18850
|
+
function handleMouseEnter() {
|
|
18851
|
+
hover.value = true;
|
|
18852
|
+
if (props.pauseOnHover) {
|
|
18853
|
+
pauseTimer();
|
|
18854
|
+
}
|
|
18855
|
+
}
|
|
18856
|
+
function handleMouseLeave() {
|
|
18857
|
+
hover.value = false;
|
|
18858
|
+
startTimer();
|
|
18859
|
+
}
|
|
18860
|
+
function handleButtonEnter(arrow) {
|
|
18861
|
+
if (unref(isVertical))
|
|
18862
|
+
return;
|
|
18863
|
+
items.value.forEach((item, index) => {
|
|
18864
|
+
if (arrow === itemInStage(item, index)) {
|
|
18865
|
+
item.states.hover = true;
|
|
18866
|
+
}
|
|
18867
|
+
});
|
|
18868
|
+
}
|
|
18869
|
+
function handleButtonLeave() {
|
|
18870
|
+
if (unref(isVertical))
|
|
18871
|
+
return;
|
|
18872
|
+
items.value.forEach((item) => {
|
|
18873
|
+
item.states.hover = false;
|
|
18874
|
+
});
|
|
18875
|
+
}
|
|
18876
|
+
function handleIndicatorClick(index) {
|
|
18877
|
+
activeIndex.value = index;
|
|
18878
|
+
}
|
|
18879
|
+
function handleIndicatorHover(index) {
|
|
18880
|
+
if (props.trigger === "hover" && index !== activeIndex.value) {
|
|
18881
|
+
activeIndex.value = index;
|
|
18882
|
+
}
|
|
18883
|
+
}
|
|
18884
|
+
function prev() {
|
|
18885
|
+
setActiveItem(activeIndex.value - 1);
|
|
18886
|
+
}
|
|
18887
|
+
function next() {
|
|
18888
|
+
setActiveItem(activeIndex.value + 1);
|
|
18889
|
+
}
|
|
18890
|
+
function resetTimer() {
|
|
18891
|
+
pauseTimer();
|
|
18892
|
+
startTimer();
|
|
18893
|
+
}
|
|
18894
|
+
watch(() => activeIndex.value, (current, prev2) => {
|
|
18895
|
+
resetItemPosition(prev2);
|
|
18896
|
+
if (prev2 > -1) {
|
|
18897
|
+
emit("change", current, prev2);
|
|
18898
|
+
}
|
|
18899
|
+
});
|
|
18900
|
+
watch(() => props.autoplay, (autoplay) => {
|
|
18901
|
+
autoplay ? startTimer() : pauseTimer();
|
|
18902
|
+
});
|
|
18903
|
+
watch(() => props.loop, () => {
|
|
18904
|
+
setActiveItem(activeIndex.value);
|
|
18905
|
+
});
|
|
18906
|
+
watch(() => props.interval, () => {
|
|
18907
|
+
resetTimer();
|
|
18908
|
+
});
|
|
18909
|
+
watch(() => items.value, () => {
|
|
18910
|
+
if (items.value.length > 0)
|
|
18911
|
+
setActiveItem(props.initialIndex);
|
|
18912
|
+
});
|
|
18913
|
+
const resizeObserver = shallowRef();
|
|
18914
|
+
onMounted(() => {
|
|
18915
|
+
resizeObserver.value = useResizeObserver(root.value, () => {
|
|
18916
|
+
resetItemPosition();
|
|
18917
|
+
});
|
|
18918
|
+
startTimer();
|
|
18919
|
+
});
|
|
18920
|
+
onBeforeUnmount(() => {
|
|
18921
|
+
pauseTimer();
|
|
18922
|
+
if (root.value && resizeObserver.value)
|
|
18923
|
+
resizeObserver.value.stop();
|
|
18924
|
+
});
|
|
18925
|
+
provide(carouselContextKey, {
|
|
18926
|
+
root,
|
|
18927
|
+
isCardType,
|
|
18928
|
+
isVertical,
|
|
18929
|
+
items,
|
|
18930
|
+
loop: props.loop,
|
|
18931
|
+
addItem,
|
|
18932
|
+
removeItem,
|
|
18933
|
+
setActiveItem
|
|
18934
|
+
});
|
|
18935
|
+
return {
|
|
18936
|
+
activeIndex,
|
|
18937
|
+
arrowDisplay,
|
|
18938
|
+
hasLabel,
|
|
18939
|
+
hover,
|
|
18940
|
+
isCardType,
|
|
18941
|
+
items,
|
|
18942
|
+
handleButtonEnter,
|
|
18943
|
+
handleButtonLeave,
|
|
18944
|
+
handleIndicatorClick,
|
|
18945
|
+
handleMouseEnter,
|
|
18946
|
+
handleMouseLeave,
|
|
18947
|
+
setActiveItem,
|
|
18948
|
+
prev,
|
|
18949
|
+
next,
|
|
18950
|
+
throttledArrowClick,
|
|
18951
|
+
throttledIndicatorHover
|
|
18952
|
+
};
|
|
18953
|
+
};
|
|
18954
|
+
|
|
18955
|
+
const _hoisted_1$V = ["onMouseenter", "onClick"];
|
|
18956
|
+
const _hoisted_2$A = { key: 0 };
|
|
18957
|
+
const COMPONENT_NAME$g = "ElCarousel";
|
|
18763
18958
|
const __default__$18 = defineComponent({
|
|
18764
|
-
name:
|
|
18959
|
+
name: COMPONENT_NAME$g
|
|
18765
18960
|
});
|
|
18766
18961
|
const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
18767
18962
|
...__default__$18,
|
|
@@ -18769,20 +18964,25 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
18769
18964
|
emits: carouselEmits,
|
|
18770
18965
|
setup(__props, { expose, emit }) {
|
|
18771
18966
|
const props = __props;
|
|
18772
|
-
const ns = useNamespace("carousel");
|
|
18773
18967
|
const {
|
|
18774
|
-
|
|
18775
|
-
|
|
18776
|
-
|
|
18777
|
-
|
|
18778
|
-
|
|
18779
|
-
|
|
18780
|
-
|
|
18781
|
-
|
|
18782
|
-
|
|
18783
|
-
|
|
18784
|
-
|
|
18785
|
-
|
|
18968
|
+
activeIndex,
|
|
18969
|
+
arrowDisplay,
|
|
18970
|
+
hasLabel,
|
|
18971
|
+
hover,
|
|
18972
|
+
isCardType,
|
|
18973
|
+
items,
|
|
18974
|
+
handleButtonEnter,
|
|
18975
|
+
handleButtonLeave,
|
|
18976
|
+
handleIndicatorClick,
|
|
18977
|
+
handleMouseEnter,
|
|
18978
|
+
handleMouseLeave,
|
|
18979
|
+
setActiveItem,
|
|
18980
|
+
prev,
|
|
18981
|
+
next,
|
|
18982
|
+
throttledArrowClick,
|
|
18983
|
+
throttledIndicatorHover
|
|
18984
|
+
} = useCarousel(props, emit);
|
|
18985
|
+
const ns = useNamespace("carousel");
|
|
18786
18986
|
const carouselClasses = computed$1(() => {
|
|
18787
18987
|
const classes = [ns.b(), ns.m(props.direction)];
|
|
18788
18988
|
if (unref(isCardType)) {
|
|
@@ -18792,7 +18992,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
18792
18992
|
});
|
|
18793
18993
|
const indicatorsClasses = computed$1(() => {
|
|
18794
18994
|
const classes = [ns.e("indicators"), ns.em("indicators", props.direction)];
|
|
18795
|
-
if (hasLabel
|
|
18995
|
+
if (unref(hasLabel)) {
|
|
18796
18996
|
classes.push(ns.em("indicators", "labels"));
|
|
18797
18997
|
}
|
|
18798
18998
|
if (props.indicatorPosition === "outside" || unref(isCardType)) {
|
|
@@ -18800,167 +19000,6 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
18800
19000
|
}
|
|
18801
19001
|
return classes;
|
|
18802
19002
|
});
|
|
18803
|
-
const isCardType = computed$1(() => props.type === "card");
|
|
18804
|
-
const isVertical = computed$1(() => props.direction === "vertical");
|
|
18805
|
-
const throttledArrowClick = throttle((index) => {
|
|
18806
|
-
setActiveItem(index);
|
|
18807
|
-
}, THROTTLE_TIME, { trailing: true });
|
|
18808
|
-
const throttledIndicatorHover = throttle((index) => {
|
|
18809
|
-
handleIndicatorHover(index);
|
|
18810
|
-
}, THROTTLE_TIME);
|
|
18811
|
-
function pauseTimer() {
|
|
18812
|
-
if (timer.value) {
|
|
18813
|
-
clearInterval(timer.value);
|
|
18814
|
-
timer.value = null;
|
|
18815
|
-
}
|
|
18816
|
-
}
|
|
18817
|
-
function startTimer() {
|
|
18818
|
-
if (props.interval <= 0 || !props.autoplay || timer.value)
|
|
18819
|
-
return;
|
|
18820
|
-
timer.value = setInterval(() => playSlides(), props.interval);
|
|
18821
|
-
}
|
|
18822
|
-
const playSlides = () => {
|
|
18823
|
-
if (activeIndex.value < items.value.length - 1) {
|
|
18824
|
-
activeIndex.value = activeIndex.value + 1;
|
|
18825
|
-
} else if (props.loop) {
|
|
18826
|
-
activeIndex.value = 0;
|
|
18827
|
-
}
|
|
18828
|
-
};
|
|
18829
|
-
function setActiveItem(index) {
|
|
18830
|
-
if (isString(index)) {
|
|
18831
|
-
const filteredItems = items.value.filter((item) => item.props.name === index);
|
|
18832
|
-
if (filteredItems.length > 0) {
|
|
18833
|
-
index = items.value.indexOf(filteredItems[0]);
|
|
18834
|
-
}
|
|
18835
|
-
}
|
|
18836
|
-
index = Number(index);
|
|
18837
|
-
if (Number.isNaN(index) || index !== Math.floor(index)) {
|
|
18838
|
-
return;
|
|
18839
|
-
}
|
|
18840
|
-
const itemCount = items.value.length;
|
|
18841
|
-
const oldIndex = activeIndex.value;
|
|
18842
|
-
if (index < 0) {
|
|
18843
|
-
activeIndex.value = props.loop ? itemCount - 1 : 0;
|
|
18844
|
-
} else if (index >= itemCount) {
|
|
18845
|
-
activeIndex.value = props.loop ? 0 : itemCount - 1;
|
|
18846
|
-
} else {
|
|
18847
|
-
activeIndex.value = index;
|
|
18848
|
-
}
|
|
18849
|
-
if (oldIndex === activeIndex.value) {
|
|
18850
|
-
resetItemPosition(oldIndex);
|
|
18851
|
-
}
|
|
18852
|
-
resetTimer();
|
|
18853
|
-
}
|
|
18854
|
-
function resetItemPosition(oldIndex) {
|
|
18855
|
-
items.value.forEach((item, index) => {
|
|
18856
|
-
item.translateItem(index, activeIndex.value, oldIndex);
|
|
18857
|
-
});
|
|
18858
|
-
}
|
|
18859
|
-
function itemInStage(item, index) {
|
|
18860
|
-
var _a, _b, _c, _d;
|
|
18861
|
-
const _items = unref(items);
|
|
18862
|
-
const itemCount = _items.length;
|
|
18863
|
-
if (itemCount === 0 || !item.states.inStage)
|
|
18864
|
-
return false;
|
|
18865
|
-
const nextItemIndex = index + 1;
|
|
18866
|
-
const prevItemIndex = index - 1;
|
|
18867
|
-
const lastItemIndex = itemCount - 1;
|
|
18868
|
-
const isLastItemActive = _items[lastItemIndex].states.active;
|
|
18869
|
-
const isFirstItemActive = _items[0].states.active;
|
|
18870
|
-
const isNextItemActive = (_b = (_a = _items[nextItemIndex]) == null ? void 0 : _a.states) == null ? void 0 : _b.active;
|
|
18871
|
-
const isPrevItemActive = (_d = (_c = _items[prevItemIndex]) == null ? void 0 : _c.states) == null ? void 0 : _d.active;
|
|
18872
|
-
if (index === lastItemIndex && isFirstItemActive || isNextItemActive) {
|
|
18873
|
-
return "left";
|
|
18874
|
-
} else if (index === 0 && isLastItemActive || isPrevItemActive) {
|
|
18875
|
-
return "right";
|
|
18876
|
-
}
|
|
18877
|
-
return false;
|
|
18878
|
-
}
|
|
18879
|
-
function handleMouseEnter() {
|
|
18880
|
-
hover.value = true;
|
|
18881
|
-
if (props.pauseOnHover) {
|
|
18882
|
-
pauseTimer();
|
|
18883
|
-
}
|
|
18884
|
-
}
|
|
18885
|
-
function handleMouseLeave() {
|
|
18886
|
-
hover.value = false;
|
|
18887
|
-
startTimer();
|
|
18888
|
-
}
|
|
18889
|
-
function handleButtonEnter(arrow) {
|
|
18890
|
-
if (unref(isVertical))
|
|
18891
|
-
return;
|
|
18892
|
-
items.value.forEach((item, index) => {
|
|
18893
|
-
if (arrow === itemInStage(item, index)) {
|
|
18894
|
-
item.states.hover = true;
|
|
18895
|
-
}
|
|
18896
|
-
});
|
|
18897
|
-
}
|
|
18898
|
-
function handleButtonLeave() {
|
|
18899
|
-
if (unref(isVertical))
|
|
18900
|
-
return;
|
|
18901
|
-
items.value.forEach((item) => {
|
|
18902
|
-
item.states.hover = false;
|
|
18903
|
-
});
|
|
18904
|
-
}
|
|
18905
|
-
function handleIndicatorClick(index) {
|
|
18906
|
-
activeIndex.value = index;
|
|
18907
|
-
}
|
|
18908
|
-
function handleIndicatorHover(index) {
|
|
18909
|
-
if (props.trigger === "hover" && index !== activeIndex.value) {
|
|
18910
|
-
activeIndex.value = index;
|
|
18911
|
-
}
|
|
18912
|
-
}
|
|
18913
|
-
function prev() {
|
|
18914
|
-
setActiveItem(activeIndex.value - 1);
|
|
18915
|
-
}
|
|
18916
|
-
function next() {
|
|
18917
|
-
setActiveItem(activeIndex.value + 1);
|
|
18918
|
-
}
|
|
18919
|
-
function resetTimer() {
|
|
18920
|
-
pauseTimer();
|
|
18921
|
-
startTimer();
|
|
18922
|
-
}
|
|
18923
|
-
watch(() => activeIndex.value, (current, prev2) => {
|
|
18924
|
-
resetItemPosition(prev2);
|
|
18925
|
-
if (prev2 > -1) {
|
|
18926
|
-
emit("change", current, prev2);
|
|
18927
|
-
}
|
|
18928
|
-
});
|
|
18929
|
-
watch(() => props.autoplay, (autoplay) => {
|
|
18930
|
-
autoplay ? startTimer() : pauseTimer();
|
|
18931
|
-
});
|
|
18932
|
-
watch(() => props.loop, () => {
|
|
18933
|
-
setActiveItem(activeIndex.value);
|
|
18934
|
-
});
|
|
18935
|
-
watch(() => props.interval, () => {
|
|
18936
|
-
resetTimer();
|
|
18937
|
-
});
|
|
18938
|
-
watch(() => items.value, () => {
|
|
18939
|
-
if (items.value.length > 0)
|
|
18940
|
-
setActiveItem(props.initialIndex);
|
|
18941
|
-
});
|
|
18942
|
-
const resizeObserver = shallowRef();
|
|
18943
|
-
onMounted(() => {
|
|
18944
|
-
resizeObserver.value = useResizeObserver(root.value, () => {
|
|
18945
|
-
resetItemPosition();
|
|
18946
|
-
});
|
|
18947
|
-
startTimer();
|
|
18948
|
-
});
|
|
18949
|
-
onBeforeUnmount(() => {
|
|
18950
|
-
pauseTimer();
|
|
18951
|
-
if (root.value && resizeObserver.value)
|
|
18952
|
-
resizeObserver.value.stop();
|
|
18953
|
-
});
|
|
18954
|
-
provide(carouselContextKey, {
|
|
18955
|
-
root,
|
|
18956
|
-
isCardType,
|
|
18957
|
-
isVertical,
|
|
18958
|
-
items,
|
|
18959
|
-
loop: props.loop,
|
|
18960
|
-
addItem,
|
|
18961
|
-
removeItem,
|
|
18962
|
-
setActiveItem
|
|
18963
|
-
});
|
|
18964
19003
|
expose({
|
|
18965
19004
|
setActiveItem,
|
|
18966
19005
|
prev,
|
|
@@ -18968,11 +19007,10 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
18968
19007
|
});
|
|
18969
19008
|
return (_ctx, _cache) => {
|
|
18970
19009
|
return openBlock(), createElementBlock("div", {
|
|
18971
|
-
|
|
18972
|
-
ref: root,
|
|
19010
|
+
ref: "root",
|
|
18973
19011
|
class: normalizeClass(unref(carouselClasses)),
|
|
18974
|
-
onMouseenter: withModifiers(handleMouseEnter, ["stop"]),
|
|
18975
|
-
onMouseleave: withModifiers(handleMouseLeave, ["stop"])
|
|
19012
|
+
onMouseenter: _cache[6] || (_cache[6] = withModifiers((...args) => unref(handleMouseEnter) && unref(handleMouseEnter)(...args), ["stop"])),
|
|
19013
|
+
onMouseleave: _cache[7] || (_cache[7] = withModifiers((...args) => unref(handleMouseLeave) && unref(handleMouseLeave)(...args), ["stop"]))
|
|
18976
19014
|
}, [
|
|
18977
19015
|
createElementVNode("div", {
|
|
18978
19016
|
class: normalizeClass(unref(ns).e("container")),
|
|
@@ -18987,9 +19025,9 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
18987
19025
|
withDirectives(createElementVNode("button", {
|
|
18988
19026
|
type: "button",
|
|
18989
19027
|
class: normalizeClass([unref(ns).e("arrow"), unref(ns).em("arrow", "left")]),
|
|
18990
|
-
onMouseenter: _cache[0] || (_cache[0] = ($event) => handleButtonEnter("left")),
|
|
18991
|
-
onMouseleave: handleButtonLeave,
|
|
18992
|
-
onClick: _cache[
|
|
19028
|
+
onMouseenter: _cache[0] || (_cache[0] = ($event) => unref(handleButtonEnter)("left")),
|
|
19029
|
+
onMouseleave: _cache[1] || (_cache[1] = (...args) => unref(handleButtonLeave) && unref(handleButtonLeave)(...args)),
|
|
19030
|
+
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => unref(throttledArrowClick)(unref(activeIndex) - 1), ["stop"]))
|
|
18993
19031
|
}, [
|
|
18994
19032
|
createVNode(unref(ElIcon), null, {
|
|
18995
19033
|
default: withCtx(() => [
|
|
@@ -19000,7 +19038,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
19000
19038
|
], 34), [
|
|
19001
19039
|
[
|
|
19002
19040
|
vShow,
|
|
19003
|
-
(_ctx.arrow === "always" || hover
|
|
19041
|
+
(_ctx.arrow === "always" || unref(hover)) && (props.loop || unref(activeIndex) > 0)
|
|
19004
19042
|
]
|
|
19005
19043
|
])
|
|
19006
19044
|
]),
|
|
@@ -19015,9 +19053,9 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
19015
19053
|
withDirectives(createElementVNode("button", {
|
|
19016
19054
|
type: "button",
|
|
19017
19055
|
class: normalizeClass([unref(ns).e("arrow"), unref(ns).em("arrow", "right")]),
|
|
19018
|
-
onMouseenter: _cache[
|
|
19019
|
-
onMouseleave: handleButtonLeave,
|
|
19020
|
-
onClick: _cache[
|
|
19056
|
+
onMouseenter: _cache[3] || (_cache[3] = ($event) => unref(handleButtonEnter)("right")),
|
|
19057
|
+
onMouseleave: _cache[4] || (_cache[4] = (...args) => unref(handleButtonLeave) && unref(handleButtonLeave)(...args)),
|
|
19058
|
+
onClick: _cache[5] || (_cache[5] = withModifiers(($event) => unref(throttledArrowClick)(unref(activeIndex) + 1), ["stop"]))
|
|
19021
19059
|
}, [
|
|
19022
19060
|
createVNode(unref(ElIcon), null, {
|
|
19023
19061
|
default: withCtx(() => [
|
|
@@ -19028,7 +19066,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
19028
19066
|
], 34), [
|
|
19029
19067
|
[
|
|
19030
19068
|
vShow,
|
|
19031
|
-
(_ctx.arrow === "always" || hover
|
|
19069
|
+
(_ctx.arrow === "always" || unref(hover)) && (props.loop || unref(activeIndex) < unref(items).length - 1)
|
|
19032
19070
|
]
|
|
19033
19071
|
])
|
|
19034
19072
|
]),
|
|
@@ -19046,20 +19084,20 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
19046
19084
|
class: normalizeClass([
|
|
19047
19085
|
unref(ns).e("indicator"),
|
|
19048
19086
|
unref(ns).em("indicator", _ctx.direction),
|
|
19049
|
-
unref(ns).is("active", index === activeIndex
|
|
19087
|
+
unref(ns).is("active", index === unref(activeIndex))
|
|
19050
19088
|
]),
|
|
19051
19089
|
onMouseenter: ($event) => unref(throttledIndicatorHover)(index),
|
|
19052
|
-
onClick: withModifiers(($event) => handleIndicatorClick(index), ["stop"])
|
|
19090
|
+
onClick: withModifiers(($event) => unref(handleIndicatorClick)(index), ["stop"])
|
|
19053
19091
|
}, [
|
|
19054
19092
|
createElementVNode("button", {
|
|
19055
19093
|
class: normalizeClass(unref(ns).e("button"))
|
|
19056
19094
|
}, [
|
|
19057
|
-
unref(hasLabel) ? (openBlock(), createElementBlock("span",
|
|
19095
|
+
unref(hasLabel) ? (openBlock(), createElementBlock("span", _hoisted_2$A, toDisplayString(item.props.label), 1)) : createCommentVNode("v-if", true)
|
|
19058
19096
|
], 2)
|
|
19059
|
-
], 42,
|
|
19097
|
+
], 42, _hoisted_1$V);
|
|
19060
19098
|
}), 128))
|
|
19061
19099
|
], 2)) : createCommentVNode("v-if", true)
|
|
19062
|
-
],
|
|
19100
|
+
], 34);
|
|
19063
19101
|
};
|
|
19064
19102
|
}
|
|
19065
19103
|
});
|
|
@@ -41281,22 +41319,29 @@ function createTablePopper(parentNode, trigger, popperContent, popperOptions, to
|
|
|
41281
41319
|
scrollContainer == null ? void 0 : scrollContainer.addEventListener("scroll", removePopper);
|
|
41282
41320
|
return popperInstance;
|
|
41283
41321
|
}
|
|
41322
|
+
function getCurrentColumns(column) {
|
|
41323
|
+
if (column.children) {
|
|
41324
|
+
return flatMap(column.children, getCurrentColumns);
|
|
41325
|
+
} else {
|
|
41326
|
+
return [column];
|
|
41327
|
+
}
|
|
41328
|
+
}
|
|
41329
|
+
function getColSpan(colSpan, column) {
|
|
41330
|
+
return colSpan + column.colSpan;
|
|
41331
|
+
}
|
|
41284
41332
|
const isFixedColumn = (index, fixed, store, realColumns) => {
|
|
41285
41333
|
let start = 0;
|
|
41286
41334
|
let after = index;
|
|
41335
|
+
const columns = store.states.columns.value;
|
|
41287
41336
|
if (realColumns) {
|
|
41288
|
-
|
|
41289
|
-
|
|
41290
|
-
|
|
41291
|
-
|
|
41292
|
-
start += realColumns[i].colSpan;
|
|
41293
|
-
}
|
|
41294
|
-
after = start + realColumns[index].colSpan - 1;
|
|
41337
|
+
const curColumns = getCurrentColumns(realColumns[index]);
|
|
41338
|
+
const preColumns = columns.slice(0, columns.indexOf(curColumns[0]));
|
|
41339
|
+
start = preColumns.reduce(getColSpan, 0);
|
|
41340
|
+
after = start + curColumns.reduce(getColSpan, 0) - 1;
|
|
41295
41341
|
} else {
|
|
41296
41342
|
start = index;
|
|
41297
41343
|
}
|
|
41298
41344
|
let fixedLayout;
|
|
41299
|
-
const columns = store.states.columns;
|
|
41300
41345
|
switch (fixed) {
|
|
41301
41346
|
case "left":
|
|
41302
41347
|
if (after < store.states.fixedLeafColumnsLength.value) {
|
|
@@ -41304,14 +41349,14 @@ const isFixedColumn = (index, fixed, store, realColumns) => {
|
|
|
41304
41349
|
}
|
|
41305
41350
|
break;
|
|
41306
41351
|
case "right":
|
|
41307
|
-
if (start >= columns.
|
|
41352
|
+
if (start >= columns.length - store.states.rightFixedLeafColumnsLength.value) {
|
|
41308
41353
|
fixedLayout = "right";
|
|
41309
41354
|
}
|
|
41310
41355
|
break;
|
|
41311
41356
|
default:
|
|
41312
41357
|
if (after < store.states.fixedLeafColumnsLength.value) {
|
|
41313
41358
|
fixedLayout = "left";
|
|
41314
|
-
} else if (start >= columns.
|
|
41359
|
+
} else if (start >= columns.length - store.states.rightFixedLeafColumnsLength.value) {
|
|
41315
41360
|
fixedLayout = "right";
|
|
41316
41361
|
}
|
|
41317
41362
|
}
|
|
@@ -41323,11 +41368,11 @@ const isFixedColumn = (index, fixed, store, realColumns) => {
|
|
|
41323
41368
|
};
|
|
41324
41369
|
const getFixedColumnsClass = (namespace, index, fixed, store, realColumns, offset = 0) => {
|
|
41325
41370
|
const classes = [];
|
|
41326
|
-
const { direction, start } = isFixedColumn(index, fixed, store, realColumns);
|
|
41371
|
+
const { direction, start, after } = isFixedColumn(index, fixed, store, realColumns);
|
|
41327
41372
|
if (direction) {
|
|
41328
41373
|
const isLeft = direction === "left";
|
|
41329
41374
|
classes.push(`${namespace}-fixed-column--${direction}`);
|
|
41330
|
-
if (isLeft &&
|
|
41375
|
+
if (isLeft && after + offset === store.states.fixedLeafColumnsLength.value - 1) {
|
|
41331
41376
|
classes.push("is-last-column");
|
|
41332
41377
|
} else if (!isLeft && start - offset === store.states.columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
|
|
41333
41378
|
classes.push("is-first-column");
|
|
@@ -41339,7 +41384,11 @@ function getOffset(offset, column) {
|
|
|
41339
41384
|
return offset + (column.realWidth === null || Number.isNaN(column.realWidth) ? Number(column.width) : column.realWidth);
|
|
41340
41385
|
}
|
|
41341
41386
|
const getFixedColumnOffset = (index, fixed, store, realColumns) => {
|
|
41342
|
-
const {
|
|
41387
|
+
const {
|
|
41388
|
+
direction,
|
|
41389
|
+
start = 0,
|
|
41390
|
+
after = 0
|
|
41391
|
+
} = isFixedColumn(index, fixed, store, realColumns);
|
|
41343
41392
|
if (!direction) {
|
|
41344
41393
|
return;
|
|
41345
41394
|
}
|
|
@@ -41347,9 +41396,9 @@ const getFixedColumnOffset = (index, fixed, store, realColumns) => {
|
|
|
41347
41396
|
const isLeft = direction === "left";
|
|
41348
41397
|
const columns = store.states.columns.value;
|
|
41349
41398
|
if (isLeft) {
|
|
41350
|
-
styles.left = columns.slice(0,
|
|
41399
|
+
styles.left = columns.slice(0, start).reduce(getOffset, 0);
|
|
41351
41400
|
} else {
|
|
41352
|
-
styles.right = columns.slice(
|
|
41401
|
+
styles.right = columns.slice(after + 1).reverse().reduce(getOffset, 0);
|
|
41353
41402
|
}
|
|
41354
41403
|
return styles;
|
|
41355
41404
|
};
|
|
@@ -41735,7 +41784,17 @@ function useWatcher$1() {
|
|
|
41735
41784
|
if (!rowKey.value)
|
|
41736
41785
|
throw new Error("[ElTable] prop row-key is required");
|
|
41737
41786
|
};
|
|
41787
|
+
const updateChildFixed = (column) => {
|
|
41788
|
+
var _a2;
|
|
41789
|
+
(_a2 = column.children) == null ? void 0 : _a2.forEach((childColumn) => {
|
|
41790
|
+
childColumn.fixed = column.fixed;
|
|
41791
|
+
updateChildFixed(childColumn);
|
|
41792
|
+
});
|
|
41793
|
+
};
|
|
41738
41794
|
const updateColumns = () => {
|
|
41795
|
+
_columns.value.forEach((column) => {
|
|
41796
|
+
updateChildFixed(column);
|
|
41797
|
+
});
|
|
41739
41798
|
fixedColumns.value = _columns.value.filter((column) => column.fixed === true || column.fixed === "left");
|
|
41740
41799
|
rightFixedColumns.value = _columns.value.filter((column) => column.fixed === "right");
|
|
41741
41800
|
if (fixedColumns.value.length > 0 && _columns.value[0] && _columns.value[0].type === "selection" && !_columns.value[0].fixed) {
|
|
@@ -43035,13 +43094,13 @@ function useStyle$2(props) {
|
|
|
43035
43094
|
column
|
|
43036
43095
|
});
|
|
43037
43096
|
}
|
|
43038
|
-
const fixedStyle =
|
|
43097
|
+
const fixedStyle = getFixedColumnOffset(columnIndex, column.fixed, props.store, row);
|
|
43039
43098
|
ensurePosition(fixedStyle, "left");
|
|
43040
43099
|
ensurePosition(fixedStyle, "right");
|
|
43041
43100
|
return Object.assign({}, headerCellStyles, fixedStyle);
|
|
43042
43101
|
};
|
|
43043
43102
|
const getHeaderCellClass = (rowIndex, columnIndex, row, column) => {
|
|
43044
|
-
const fixedClasses =
|
|
43103
|
+
const fixedClasses = getFixedColumnsClass(ns.b(), columnIndex, column.fixed, props.store, row);
|
|
43045
43104
|
const classes = [
|
|
43046
43105
|
column.id,
|
|
43047
43106
|
column.order,
|
|
@@ -43439,13 +43498,13 @@ function useStyles$1(props) {
|
|
|
43439
43498
|
column
|
|
43440
43499
|
});
|
|
43441
43500
|
}
|
|
43442
|
-
const fixedStyle =
|
|
43501
|
+
const fixedStyle = getFixedColumnOffset(columnIndex, props == null ? void 0 : props.fixed, props.store);
|
|
43443
43502
|
ensurePosition(fixedStyle, "left");
|
|
43444
43503
|
ensurePosition(fixedStyle, "right");
|
|
43445
43504
|
return Object.assign({}, cellStyles, fixedStyle);
|
|
43446
43505
|
};
|
|
43447
43506
|
const getCellClass = (rowIndex, columnIndex, row, column, offset) => {
|
|
43448
|
-
const fixedClasses =
|
|
43507
|
+
const fixedClasses = getFixedColumnsClass(ns.b(), columnIndex, props == null ? void 0 : props.fixed, props.store, void 0, offset);
|
|
43449
43508
|
const classes = [column.id, column.align, column.className, ...fixedClasses];
|
|
43450
43509
|
const cellClassName = parent == null ? void 0 : parent.props.cellClassName;
|
|
43451
43510
|
if (typeof cellClassName === "string") {
|