@element-plus/nightly 0.0.20220616 → 0.0.20220619
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.full.js +106 -31
- package/dist/index.full.min.js +13 -13
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +18 -18
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +107 -32
- 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 +6 -1
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +6 -1
- package/es/components/autocomplete/src/autocomplete4.mjs +37 -11
- package/es/components/autocomplete/src/autocomplete4.mjs.map +1 -1
- package/es/components/dialog/src/use-dialog2.mjs +3 -3
- package/es/components/dialog/src/use-dialog2.mjs.map +1 -1
- package/es/components/image-viewer/src/image-viewer3.mjs +2 -1
- package/es/components/image-viewer/src/image-viewer3.mjs.map +1 -1
- package/es/components/message-box/src/index2.mjs +1 -1
- package/es/components/message-box/src/index2.mjs.map +1 -1
- package/es/components/select/src/select2.mjs +1 -1
- package/es/components/select/src/select2.mjs.map +1 -1
- package/es/components/select-v2/src/select2.mjs +1 -1
- package/es/components/select-v2/src/select2.mjs.map +1 -1
- package/es/components/switch/src/switch4.mjs +16 -3
- package/es/components/switch/src/switch4.mjs.map +1 -1
- package/es/components/tabs/src/tab-nav.mjs +3 -2
- package/es/components/tabs/src/tab-nav.mjs.map +1 -1
- package/es/components/tabs/src/tabs.mjs +2 -1
- package/es/components/tabs/src/tabs.mjs.map +1 -1
- package/es/components/upload/index.d.ts +9 -9
- package/es/components/upload/src/upload-content.d.ts +6 -6
- package/es/components/upload/src/upload-content.vue.d.ts +3 -3
- package/es/components/upload/src/upload-content3.mjs +0 -5
- package/es/components/upload/src/upload-content3.mjs.map +1 -1
- package/es/components/upload/src/upload.vue.d.ts +9 -9
- package/es/components/upload/src/upload4.mjs.map +1 -1
- package/es/components/upload/src/use-handlers.d.ts +11 -10
- package/es/components/upload/src/use-handlers2.mjs +8 -7
- package/es/components/upload/src/use-handlers2.mjs.map +1 -1
- package/es/hooks/use-deprecated/index.d.ts +1 -1
- package/es/hooks/use-deprecated/index2.mjs +1 -1
- package/es/hooks/use-deprecated/index2.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version2.mjs +1 -1
- package/es/version2.mjs.map +1 -1
- package/lib/components/autocomplete/index.d.ts +6 -1
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +6 -1
- package/lib/components/autocomplete/src/autocomplete4.js +47 -21
- package/lib/components/autocomplete/src/autocomplete4.js.map +1 -1
- package/lib/components/dialog/src/use-dialog2.js +4 -4
- package/lib/components/dialog/src/use-dialog2.js.map +1 -1
- package/lib/components/image-viewer/src/image-viewer3.js +2 -1
- package/lib/components/image-viewer/src/image-viewer3.js.map +1 -1
- package/lib/components/message-box/src/index2.js +1 -1
- package/lib/components/message-box/src/index2.js.map +1 -1
- package/lib/components/select/src/select2.js +1 -1
- package/lib/components/select/src/select2.js.map +1 -1
- package/lib/components/select-v2/src/select2.js +1 -1
- package/lib/components/select-v2/src/select2.js.map +1 -1
- package/lib/components/switch/src/switch4.js +14 -1
- package/lib/components/switch/src/switch4.js.map +1 -1
- package/lib/components/tabs/src/tab-nav.js +2 -1
- package/lib/components/tabs/src/tab-nav.js.map +1 -1
- package/lib/components/tabs/src/tabs.js +1 -0
- package/lib/components/tabs/src/tabs.js.map +1 -1
- package/lib/components/upload/index.d.ts +9 -9
- package/lib/components/upload/src/upload-content.d.ts +6 -6
- package/lib/components/upload/src/upload-content.vue.d.ts +3 -3
- package/lib/components/upload/src/upload-content3.js +0 -5
- package/lib/components/upload/src/upload-content3.js.map +1 -1
- package/lib/components/upload/src/upload.vue.d.ts +9 -9
- package/lib/components/upload/src/upload4.js.map +1 -1
- package/lib/components/upload/src/use-handlers.d.ts +11 -10
- package/lib/components/upload/src/use-handlers2.js +7 -6
- package/lib/components/upload/src/use-handlers2.js.map +1 -1
- package/lib/hooks/use-deprecated/index.d.ts +1 -1
- package/lib/hooks/use-deprecated/index2.js +1 -1
- package/lib/hooks/use-deprecated/index2.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version2.js +1 -1
- package/lib/version2.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/web-types.json +1 -1
package/dist/index.full.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Element Plus v0.0.
|
|
1
|
+
/*! Element Plus v0.0.20220619 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
@@ -6950,6 +6950,7 @@
|
|
|
6950
6950
|
|
|
6951
6951
|
var _a;
|
|
6952
6952
|
const isClient = typeof window !== "undefined";
|
|
6953
|
+
const isDef = (val) => typeof val !== "undefined";
|
|
6953
6954
|
const isBoolean = (val) => typeof val === "boolean";
|
|
6954
6955
|
const isNumber = (val) => typeof val === "number";
|
|
6955
6956
|
const isString$1 = (val) => typeof val === "string";
|
|
@@ -7303,6 +7304,46 @@
|
|
|
7303
7304
|
SwipeDirection2["NONE"] = "NONE";
|
|
7304
7305
|
})(SwipeDirection || (SwipeDirection = {}));
|
|
7305
7306
|
|
|
7307
|
+
function useVModel(props, key, emit, options = {}) {
|
|
7308
|
+
var _a;
|
|
7309
|
+
const {
|
|
7310
|
+
passive = false,
|
|
7311
|
+
eventName,
|
|
7312
|
+
deep = false,
|
|
7313
|
+
defaultValue
|
|
7314
|
+
} = options;
|
|
7315
|
+
const vm = vue.getCurrentInstance();
|
|
7316
|
+
const _emit = emit || (vm == null ? void 0 : vm.emit) || ((_a = vm == null ? void 0 : vm.$emit) == null ? void 0 : _a.bind(vm));
|
|
7317
|
+
let event = eventName;
|
|
7318
|
+
if (!key) {
|
|
7319
|
+
{
|
|
7320
|
+
key = "modelValue";
|
|
7321
|
+
}
|
|
7322
|
+
}
|
|
7323
|
+
event = eventName || event || `update:${key.toString()}`;
|
|
7324
|
+
const getValue = () => isDef(props[key]) ? props[key] : defaultValue;
|
|
7325
|
+
if (passive) {
|
|
7326
|
+
const proxy = vue.ref(getValue());
|
|
7327
|
+
vue.watch(() => props[key], (v) => proxy.value = v);
|
|
7328
|
+
vue.watch(proxy, (v) => {
|
|
7329
|
+
if (v !== props[key] || deep)
|
|
7330
|
+
_emit(event, v);
|
|
7331
|
+
}, {
|
|
7332
|
+
deep
|
|
7333
|
+
});
|
|
7334
|
+
return proxy;
|
|
7335
|
+
} else {
|
|
7336
|
+
return vue.computed({
|
|
7337
|
+
get() {
|
|
7338
|
+
return getValue();
|
|
7339
|
+
},
|
|
7340
|
+
set(value) {
|
|
7341
|
+
_emit(event, value);
|
|
7342
|
+
}
|
|
7343
|
+
});
|
|
7344
|
+
}
|
|
7345
|
+
}
|
|
7346
|
+
|
|
7306
7347
|
function useWindowFocus({ window = defaultWindow } = {}) {
|
|
7307
7348
|
if (!window)
|
|
7308
7349
|
return vue.ref(false);
|
|
@@ -10683,7 +10724,7 @@
|
|
|
10683
10724
|
return [recordCursor, setCursor];
|
|
10684
10725
|
}
|
|
10685
10726
|
|
|
10686
|
-
const version$1 = "0.0.
|
|
10727
|
+
const version$1 = "0.0.20220619";
|
|
10687
10728
|
|
|
10688
10729
|
const makeInstaller = (components = []) => {
|
|
10689
10730
|
const install = (app, options) => {
|
|
@@ -13550,12 +13591,13 @@
|
|
|
13550
13591
|
const COMPONENT_NAME = "ElAutocomplete";
|
|
13551
13592
|
const attrs = useAttrs();
|
|
13552
13593
|
const rawAttrs = vue.useAttrs();
|
|
13594
|
+
const disabled = useDisabled$1();
|
|
13553
13595
|
const ns = useNamespace("autocomplete");
|
|
13554
13596
|
const inputRef = vue.ref();
|
|
13555
13597
|
const regionRef = vue.ref();
|
|
13556
13598
|
const popperRef = vue.ref();
|
|
13557
13599
|
const listboxRef = vue.ref();
|
|
13558
|
-
let
|
|
13600
|
+
let ignoreFocusEvent = false;
|
|
13559
13601
|
const suggestions = vue.ref([]);
|
|
13560
13602
|
const highlightedIndex = vue.ref(-1);
|
|
13561
13603
|
const dropdownWidth = vue.ref("");
|
|
@@ -13569,12 +13611,25 @@
|
|
|
13569
13611
|
return (isValidData || loading.value) && activated.value;
|
|
13570
13612
|
});
|
|
13571
13613
|
const suggestionLoading = vue.computed(() => !props.hideLoading && loading.value);
|
|
13614
|
+
const refInput = vue.computed(() => {
|
|
13615
|
+
if (inputRef.value) {
|
|
13616
|
+
return Array.from(inputRef.value.$el.querySelectorAll("input"));
|
|
13617
|
+
}
|
|
13618
|
+
return [];
|
|
13619
|
+
});
|
|
13572
13620
|
const onSuggestionShow = async () => {
|
|
13573
13621
|
await vue.nextTick();
|
|
13574
13622
|
if (suggestionVisible.value) {
|
|
13575
13623
|
dropdownWidth.value = `${inputRef.value.$el.offsetWidth}px`;
|
|
13576
13624
|
}
|
|
13577
13625
|
};
|
|
13626
|
+
const onShow = () => {
|
|
13627
|
+
ignoreFocusEvent = true;
|
|
13628
|
+
};
|
|
13629
|
+
const onHide = () => {
|
|
13630
|
+
ignoreFocusEvent = false;
|
|
13631
|
+
highlightedIndex.value = -1;
|
|
13632
|
+
};
|
|
13578
13633
|
const getData = async (queryString) => {
|
|
13579
13634
|
if (suggestionDisabled.value)
|
|
13580
13635
|
return;
|
|
@@ -13604,21 +13659,28 @@
|
|
|
13604
13659
|
emit(INPUT_EVENT, value);
|
|
13605
13660
|
emit(UPDATE_MODEL_EVENT, value);
|
|
13606
13661
|
suggestionDisabled.value = false;
|
|
13607
|
-
activated.value || (activated.value =
|
|
13662
|
+
activated.value || (activated.value = valuePresented);
|
|
13608
13663
|
if (!props.triggerOnFocus && !value) {
|
|
13609
13664
|
suggestionDisabled.value = true;
|
|
13610
13665
|
suggestions.value = [];
|
|
13611
13666
|
return;
|
|
13612
13667
|
}
|
|
13613
|
-
if (isClear && valuePresented) {
|
|
13614
|
-
isClear = false;
|
|
13615
|
-
}
|
|
13616
13668
|
debouncedGetData(value);
|
|
13617
13669
|
};
|
|
13670
|
+
const handleMouseDown = (event) => {
|
|
13671
|
+
var _a;
|
|
13672
|
+
if (disabled.value)
|
|
13673
|
+
return;
|
|
13674
|
+
if (((_a = event.target) == null ? void 0 : _a.tagName) !== "INPUT" || refInput.value.includes(document.activeElement)) {
|
|
13675
|
+
activated.value = true;
|
|
13676
|
+
}
|
|
13677
|
+
};
|
|
13618
13678
|
const handleChange = (value) => {
|
|
13619
13679
|
emit(CHANGE_EVENT, value);
|
|
13620
13680
|
};
|
|
13621
13681
|
const handleFocus = (evt) => {
|
|
13682
|
+
if (ignoreFocusEvent)
|
|
13683
|
+
return;
|
|
13622
13684
|
activated.value = true;
|
|
13623
13685
|
emit("focus", evt);
|
|
13624
13686
|
if (props.triggerOnFocus) {
|
|
@@ -13626,11 +13688,12 @@
|
|
|
13626
13688
|
}
|
|
13627
13689
|
};
|
|
13628
13690
|
const handleBlur = (evt) => {
|
|
13691
|
+
if (ignoreFocusEvent)
|
|
13692
|
+
return;
|
|
13629
13693
|
emit("blur", evt);
|
|
13630
13694
|
};
|
|
13631
13695
|
const handleClear = () => {
|
|
13632
13696
|
activated.value = false;
|
|
13633
|
-
isClear = true;
|
|
13634
13697
|
emit(UPDATE_MODEL_EVENT, "");
|
|
13635
13698
|
emit("clear");
|
|
13636
13699
|
};
|
|
@@ -13639,7 +13702,6 @@
|
|
|
13639
13702
|
handleSelect(suggestions.value[highlightedIndex.value]);
|
|
13640
13703
|
} else if (props.selectWhenUnmatched) {
|
|
13641
13704
|
emit("select", { value: props.modelValue });
|
|
13642
|
-
await vue.nextTick();
|
|
13643
13705
|
suggestions.value = [];
|
|
13644
13706
|
highlightedIndex.value = -1;
|
|
13645
13707
|
}
|
|
@@ -13662,7 +13724,6 @@
|
|
|
13662
13724
|
emit(INPUT_EVENT, item[props.valueKey]);
|
|
13663
13725
|
emit(UPDATE_MODEL_EVENT, item[props.valueKey]);
|
|
13664
13726
|
emit("select", item);
|
|
13665
|
-
await vue.nextTick();
|
|
13666
13727
|
suggestions.value = [];
|
|
13667
13728
|
highlightedIndex.value = -1;
|
|
13668
13729
|
};
|
|
@@ -13690,7 +13751,9 @@
|
|
|
13690
13751
|
highlightedIndex.value = index;
|
|
13691
13752
|
inputRef.value.ref.setAttribute("aria-activedescendant", `${listboxId.value}-item-${highlightedIndex.value}`);
|
|
13692
13753
|
};
|
|
13693
|
-
onClickOutside(listboxRef,
|
|
13754
|
+
onClickOutside(listboxRef, () => {
|
|
13755
|
+
suggestionVisible.value && close();
|
|
13756
|
+
});
|
|
13694
13757
|
vue.onMounted(() => {
|
|
13695
13758
|
inputRef.value.ref.setAttribute("role", "textbox");
|
|
13696
13759
|
inputRef.value.ref.setAttribute("aria-autocomplete", "list");
|
|
@@ -13727,7 +13790,9 @@
|
|
|
13727
13790
|
trigger: "click",
|
|
13728
13791
|
transition: `${vue.unref(ns).namespace.value}-zoom-in-top`,
|
|
13729
13792
|
persistent: "",
|
|
13730
|
-
onBeforeShow: onSuggestionShow
|
|
13793
|
+
onBeforeShow: onSuggestionShow,
|
|
13794
|
+
onShow,
|
|
13795
|
+
onHide
|
|
13731
13796
|
}, {
|
|
13732
13797
|
content: vue.withCtx(() => [
|
|
13733
13798
|
vue.createElementVNode("div", {
|
|
@@ -13800,7 +13865,8 @@
|
|
|
13800
13865
|
vue.withKeys(handleKeyEnter, ["enter"]),
|
|
13801
13866
|
vue.withKeys(close, ["tab"]),
|
|
13802
13867
|
vue.withKeys(handleKeyEscape, ["esc"])
|
|
13803
|
-
]
|
|
13868
|
+
],
|
|
13869
|
+
onMousedown: handleMouseDown
|
|
13804
13870
|
}), vue.createSlots({ _: 2 }, [
|
|
13805
13871
|
_ctx.$slots.prepend ? {
|
|
13806
13872
|
name: "prepend",
|
|
@@ -26046,7 +26112,6 @@
|
|
|
26046
26112
|
const zIndex = vue.ref(props.zIndex || nextZIndex());
|
|
26047
26113
|
let openTimer = void 0;
|
|
26048
26114
|
let closeTimer = void 0;
|
|
26049
|
-
const normalizeWidth = vue.computed(() => isNumber(props.width) ? `${props.width}px` : props.width);
|
|
26050
26115
|
const namespace = useGlobalConfig("namespace", defaultNamespace);
|
|
26051
26116
|
const style = vue.computed(() => {
|
|
26052
26117
|
const style2 = {};
|
|
@@ -26056,7 +26121,7 @@
|
|
|
26056
26121
|
style2[`${varPrefix}-margin-top`] = props.top;
|
|
26057
26122
|
}
|
|
26058
26123
|
if (props.width) {
|
|
26059
|
-
style2[`${varPrefix}-width`] =
|
|
26124
|
+
style2[`${varPrefix}-width`] = addUnit(props.width);
|
|
26060
26125
|
}
|
|
26061
26126
|
}
|
|
26062
26127
|
return style2;
|
|
@@ -29483,7 +29548,7 @@
|
|
|
29483
29548
|
});
|
|
29484
29549
|
const imageViewerEmits = {
|
|
29485
29550
|
close: () => true,
|
|
29486
|
-
switch: (index) =>
|
|
29551
|
+
switch: (index) => isNumber(index)
|
|
29487
29552
|
};
|
|
29488
29553
|
|
|
29489
29554
|
const _hoisted_1$s = ["src"];
|
|
@@ -32880,7 +32945,7 @@
|
|
|
32880
32945
|
vue.createElementVNode("div", {
|
|
32881
32946
|
class: vue.normalizeClass(_ctx.nsSelect.e("collapse-tags"))
|
|
32882
32947
|
}, [
|
|
32883
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.selected, (item, idx) => {
|
|
32948
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.selected.slice(1), (item, idx) => {
|
|
32884
32949
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
32885
32950
|
key: idx,
|
|
32886
32951
|
class: vue.normalizeClass(_ctx.nsSelect.e("collapse-tag"))
|
|
@@ -37966,7 +38031,7 @@
|
|
|
37966
38031
|
vue.createElementVNode("div", {
|
|
37967
38032
|
class: vue.normalizeClass(_ctx.nsSelectV2.e("selection"))
|
|
37968
38033
|
}, [
|
|
37969
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.states.cachedOptions, (selected, idx) => {
|
|
38034
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.states.cachedOptions.slice(1), (selected, idx) => {
|
|
37970
38035
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
37971
38036
|
key: idx,
|
|
37972
38037
|
class: vue.normalizeClass(_ctx.nsSelectV2.e("selected-item"))
|
|
@@ -39788,13 +39853,25 @@
|
|
|
39788
39853
|
props: switchProps,
|
|
39789
39854
|
emits: switchEmits,
|
|
39790
39855
|
setup(props, { emit }) {
|
|
39856
|
+
const vm = vue.getCurrentInstance();
|
|
39791
39857
|
const { formItem } = useFormItem();
|
|
39858
|
+
const switchSize = useSize();
|
|
39792
39859
|
const switchDisabled = useDisabled$1(vue.computed(() => props.loading));
|
|
39793
39860
|
const ns = useNamespace("switch");
|
|
39861
|
+
useDeprecated({
|
|
39862
|
+
from: '"value"',
|
|
39863
|
+
replacement: '"model-value" or "v-model"',
|
|
39864
|
+
scope: COMPONENT_NAME$5,
|
|
39865
|
+
version: "2.3.0",
|
|
39866
|
+
ref: "https://element-plus.org/en-US/component/switch.html#attributes",
|
|
39867
|
+
type: "Attribute"
|
|
39868
|
+
}, vue.computed(() => {
|
|
39869
|
+
var _a;
|
|
39870
|
+
return !!((_a = vm.vnode.props) == null ? void 0 : _a.value);
|
|
39871
|
+
}));
|
|
39794
39872
|
const { inputId } = useFormItemInputId(props, {
|
|
39795
39873
|
formItemContext: formItem
|
|
39796
39874
|
});
|
|
39797
|
-
const switchSize = useSize();
|
|
39798
39875
|
const isModelValue = vue.ref(props.modelValue !== false);
|
|
39799
39876
|
const input = vue.ref();
|
|
39800
39877
|
const core = vue.ref();
|
|
@@ -46704,10 +46781,11 @@
|
|
|
46704
46781
|
const newOffset = navSize - currentOffset > containerSize * 2 ? currentOffset + containerSize : navSize - containerSize;
|
|
46705
46782
|
navOffset.value = newOffset;
|
|
46706
46783
|
};
|
|
46707
|
-
const scrollToActiveTab = () => {
|
|
46784
|
+
const scrollToActiveTab = async () => {
|
|
46708
46785
|
const nav = nav$.value;
|
|
46709
46786
|
if (!scrollable.value || !el$.value || !navScroll$.value || !nav)
|
|
46710
46787
|
return;
|
|
46788
|
+
await vue.nextTick();
|
|
46711
46789
|
const activeTab = el$.value.querySelector(".is-active");
|
|
46712
46790
|
if (!activeTab)
|
|
46713
46791
|
return;
|
|
@@ -46971,6 +47049,7 @@
|
|
|
46971
47049
|
vue.watch(() => props.modelValue, (modelValue) => setCurrentName(modelValue));
|
|
46972
47050
|
vue.watch(currentName, async () => {
|
|
46973
47051
|
var _a;
|
|
47052
|
+
await vue.nextTick();
|
|
46974
47053
|
(_a = nav$.value) == null ? void 0 : _a.scrollToActiveTab();
|
|
46975
47054
|
});
|
|
46976
47055
|
{
|
|
@@ -51701,10 +51780,6 @@
|
|
|
51701
51780
|
|
|
51702
51781
|
const uploadContentProps = buildProps({
|
|
51703
51782
|
...uploadBaseProps,
|
|
51704
|
-
fileList: {
|
|
51705
|
-
type: definePropType(Array),
|
|
51706
|
-
default: () => mutable([])
|
|
51707
|
-
},
|
|
51708
51783
|
beforeUpload: {
|
|
51709
51784
|
type: definePropType(Function),
|
|
51710
51785
|
default: NOOP
|
|
@@ -51907,7 +51982,7 @@
|
|
|
51907
51982
|
}
|
|
51908
51983
|
};
|
|
51909
51984
|
const useHandlers = (props, uploadRef) => {
|
|
51910
|
-
const uploadFiles =
|
|
51985
|
+
const uploadFiles = useVModel(props, "fileList", void 0, { passive: true });
|
|
51911
51986
|
const getFile = (rawFile) => uploadFiles.value.find((file) => file.uid === rawFile.uid);
|
|
51912
51987
|
function abort(file) {
|
|
51913
51988
|
var _a;
|
|
@@ -51920,6 +51995,7 @@
|
|
|
51920
51995
|
const file = getFile(rawFile);
|
|
51921
51996
|
if (!file)
|
|
51922
51997
|
return;
|
|
51998
|
+
console.error(err);
|
|
51923
51999
|
file.status = "fail";
|
|
51924
52000
|
uploadFiles.value.splice(uploadFiles.value.indexOf(file), 1);
|
|
51925
52001
|
props.onError(err, file, uploadFiles.value);
|
|
@@ -52003,14 +52079,14 @@
|
|
|
52003
52079
|
return file;
|
|
52004
52080
|
});
|
|
52005
52081
|
});
|
|
52006
|
-
vue.watch(
|
|
52007
|
-
for (const file of
|
|
52082
|
+
vue.watch(uploadFiles, (files) => {
|
|
52083
|
+
for (const file of files) {
|
|
52008
52084
|
file.uid || (file.uid = genFileId());
|
|
52009
52085
|
file.status || (file.status = "success");
|
|
52010
52086
|
}
|
|
52011
|
-
uploadFiles.value = fileList;
|
|
52012
52087
|
}, { immediate: true, deep: true });
|
|
52013
52088
|
return {
|
|
52089
|
+
uploadFiles,
|
|
52014
52090
|
abort,
|
|
52015
52091
|
clearFiles,
|
|
52016
52092
|
handleError,
|
|
@@ -52018,8 +52094,7 @@
|
|
|
52018
52094
|
handleStart,
|
|
52019
52095
|
handleSuccess,
|
|
52020
52096
|
handleRemove,
|
|
52021
|
-
submit
|
|
52022
|
-
uploadFiles
|
|
52097
|
+
submit
|
|
52023
52098
|
};
|
|
52024
52099
|
};
|
|
52025
52100
|
|
|
@@ -53080,7 +53155,7 @@
|
|
|
53080
53155
|
vue.watch(() => visible.value, (val) => {
|
|
53081
53156
|
var _a, _b;
|
|
53082
53157
|
if (val) {
|
|
53083
|
-
if (props.boxType
|
|
53158
|
+
if (props.boxType !== "prompt") {
|
|
53084
53159
|
focusStartRef.value = (_b = (_a = confirmRef.value) == null ? void 0 : _a.$el) != null ? _b : rootRef.value;
|
|
53085
53160
|
}
|
|
53086
53161
|
state.zIndex = nextZIndex();
|