@element-plus/nightly 0.0.20230625 → 0.0.20230627
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 +53 -42
- package/dist/index.full.min.js +11 -11
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +11 -11
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +53 -42
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/col/index.mjs +2 -2
- package/es/components/col/src/col.mjs +66 -43
- package/es/components/col/src/col.mjs.map +1 -1
- package/es/components/col/src/col2.mjs +43 -66
- package/es/components/col/src/col2.mjs.map +1 -1
- package/es/components/index.mjs +2 -2
- package/es/components/page-header/index.mjs +2 -2
- package/es/components/page-header/src/page-header.mjs +17 -103
- package/es/components/page-header/src/page-header.mjs.map +1 -1
- package/es/components/page-header/src/page-header2.mjs +103 -17
- package/es/components/page-header/src/page-header2.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.mjs +22 -68
- package/es/components/pagination/src/components/sizes.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.vue.d.ts +21 -0
- package/es/components/pagination/src/components/sizes2.mjs +68 -22
- package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/select/index.d.ts +21 -0
- package/es/components/select/src/option.mjs +11 -9
- package/es/components/select/src/option.mjs.map +1 -1
- package/es/components/select/src/option.vue.d.ts +4 -0
- package/es/components/select/src/select.mjs +40 -31
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select.vue.d.ts +13 -0
- package/es/components/time-select/index.d.ts +76 -0
- package/es/components/time-select/src/time-select.vue.d.ts +38 -0
- package/es/components/tree/src/model/useDragNode.mjs +1 -1
- package/es/components/tree/src/model/useDragNode.mjs.map +1 -1
- package/es/components/tree-select/src/tree-select-option.d.ts +24 -0
- 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/col/index.js +2 -2
- package/lib/components/col/src/col.js +66 -43
- package/lib/components/col/src/col.js.map +1 -1
- package/lib/components/col/src/col2.js +43 -66
- package/lib/components/col/src/col2.js.map +1 -1
- package/lib/components/index.js +2 -2
- package/lib/components/page-header/index.js +2 -2
- package/lib/components/page-header/src/page-header.js +18 -103
- package/lib/components/page-header/src/page-header.js.map +1 -1
- package/lib/components/page-header/src/page-header2.js +103 -18
- package/lib/components/page-header/src/page-header2.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.js +22 -68
- package/lib/components/pagination/src/components/sizes.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.vue.d.ts +21 -0
- package/lib/components/pagination/src/components/sizes2.js +68 -22
- package/lib/components/pagination/src/components/sizes2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/select/index.d.ts +21 -0
- package/lib/components/select/src/option.js +10 -8
- package/lib/components/select/src/option.js.map +1 -1
- package/lib/components/select/src/option.vue.d.ts +4 -0
- package/lib/components/select/src/select.js +40 -31
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select.vue.d.ts +13 -0
- package/lib/components/time-select/index.d.ts +76 -0
- package/lib/components/time-select/src/time-select.vue.d.ts +38 -0
- package/lib/components/tree/src/model/useDragNode.js +1 -1
- package/lib/components/tree/src/model/useDragNode.js.map +1 -1
- package/lib/components/tree-select/src/tree-select-option.d.ts +24 -0
- 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
|
@@ -98,6 +98,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
98
98
|
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
99
99
|
cssVarBlockName: (name: string) => string;
|
|
100
100
|
};
|
|
101
|
+
containerKls: import("vue").ComputedRef<(string | {
|
|
102
|
+
selected: boolean;
|
|
103
|
+
hover: boolean;
|
|
104
|
+
})[]>;
|
|
101
105
|
currentLabel: import("vue").ComputedRef<any>;
|
|
102
106
|
itemSelected: import("vue").ComputedRef<boolean>;
|
|
103
107
|
isDisabled: import("vue").ComputedRef<any>;
|
|
@@ -6532,6 +6536,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6532
6536
|
handleScroll: () => void;
|
|
6533
6537
|
} | null>;
|
|
6534
6538
|
wrapperKls: import("vue").ComputedRef<string[]>;
|
|
6539
|
+
tagsKls: import("vue").ComputedRef<string[]>;
|
|
6540
|
+
tagWrapperKls: import("vue").ComputedRef<(string | {
|
|
6541
|
+
'has-prefix': any;
|
|
6542
|
+
})[]>;
|
|
6543
|
+
inputKls: import("vue").ComputedRef<string[]>;
|
|
6544
|
+
iOSInputKls: import("vue").ComputedRef<string[]>;
|
|
6545
|
+
scrollbarKls: import("vue").ComputedRef<string[]>;
|
|
6535
6546
|
selectTagsStyle: import("vue").ComputedRef<{
|
|
6536
6547
|
maxWidth: string;
|
|
6537
6548
|
width: string;
|
|
@@ -6557,6 +6568,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6557
6568
|
tagTextStyle: import("vue").ComputedRef<{
|
|
6558
6569
|
maxWidth: string;
|
|
6559
6570
|
}>;
|
|
6571
|
+
inputStyle: import("vue").ComputedRef<{
|
|
6572
|
+
marginLeft: string;
|
|
6573
|
+
flexGrow: number;
|
|
6574
|
+
width: string;
|
|
6575
|
+
maxWidth: string;
|
|
6576
|
+
}>;
|
|
6560
6577
|
handleMouseEnter: () => void;
|
|
6561
6578
|
handleMouseLeave: () => void;
|
|
6562
6579
|
showTagList: import("vue").ComputedRef<any>;
|
|
@@ -6737,6 +6754,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6737
6754
|
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
6738
6755
|
cssVarBlockName: (name: string) => string;
|
|
6739
6756
|
};
|
|
6757
|
+
containerKls: import("vue").ComputedRef<(string | {
|
|
6758
|
+
selected: boolean;
|
|
6759
|
+
hover: boolean;
|
|
6760
|
+
})[]>;
|
|
6740
6761
|
currentLabel: import("vue").ComputedRef<any>;
|
|
6741
6762
|
itemSelected: import("vue").ComputedRef<boolean>;
|
|
6742
6763
|
isDisabled: import("vue").ComputedRef<any>;
|
|
@@ -1,27 +1,73 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import '
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
1
|
+
import { defineComponent, ref, watch, computed, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, Fragment, renderList, createBlock } from 'vue';
|
|
2
|
+
import { isEqual } from 'lodash-unified';
|
|
3
|
+
import { ElSelect, ElOption } from '../../../select/index.mjs';
|
|
4
|
+
import '../../../../hooks/index.mjs';
|
|
5
|
+
import { usePagination } from '../usePagination.mjs';
|
|
6
|
+
import { paginationSizesProps } from './sizes.mjs';
|
|
7
|
+
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
|
|
8
|
+
import { useLocale } from '../../../../hooks/use-locale/index.mjs';
|
|
9
|
+
import { useNamespace } from '../../../../hooks/use-namespace/index.mjs';
|
|
6
10
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
const __default__ = defineComponent({
|
|
12
|
+
name: "ElPaginationSizes"
|
|
13
|
+
});
|
|
14
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
|
+
...__default__,
|
|
16
|
+
props: paginationSizesProps,
|
|
17
|
+
emits: ["page-size-change"],
|
|
18
|
+
setup(__props, { emit }) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const { t } = useLocale();
|
|
21
|
+
const ns = useNamespace("pagination");
|
|
22
|
+
const pagination = usePagination();
|
|
23
|
+
const innerPageSize = ref(props.pageSize);
|
|
24
|
+
watch(() => props.pageSizes, (newVal, oldVal) => {
|
|
25
|
+
if (isEqual(newVal, oldVal))
|
|
26
|
+
return;
|
|
27
|
+
if (Array.isArray(newVal)) {
|
|
28
|
+
const pageSize = newVal.includes(props.pageSize) ? props.pageSize : props.pageSizes[0];
|
|
29
|
+
emit("page-size-change", pageSize);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
watch(() => props.pageSize, (newVal) => {
|
|
33
|
+
innerPageSize.value = newVal;
|
|
34
|
+
});
|
|
35
|
+
const innerPageSizes = computed(() => props.pageSizes);
|
|
36
|
+
function handleChange(val) {
|
|
37
|
+
var _a;
|
|
38
|
+
if (val !== innerPageSize.value) {
|
|
39
|
+
innerPageSize.value = val;
|
|
40
|
+
(_a = pagination.handleSizeChange) == null ? void 0 : _a.call(pagination, Number(val));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return (_ctx, _cache) => {
|
|
44
|
+
return openBlock(), createElementBlock("span", {
|
|
45
|
+
class: normalizeClass(unref(ns).e("sizes"))
|
|
46
|
+
}, [
|
|
47
|
+
createVNode(unref(ElSelect), {
|
|
48
|
+
"model-value": innerPageSize.value,
|
|
49
|
+
disabled: _ctx.disabled,
|
|
50
|
+
"popper-class": _ctx.popperClass,
|
|
51
|
+
size: _ctx.size,
|
|
52
|
+
"validate-event": false,
|
|
53
|
+
onChange: handleChange
|
|
54
|
+
}, {
|
|
55
|
+
default: withCtx(() => [
|
|
56
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(innerPageSizes), (item) => {
|
|
57
|
+
return openBlock(), createBlock(unref(ElOption), {
|
|
58
|
+
key: item,
|
|
59
|
+
value: item,
|
|
60
|
+
label: item + unref(t)("el.pagination.pagesize")
|
|
61
|
+
}, null, 8, ["value", "label"]);
|
|
62
|
+
}), 128))
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
}, 8, ["model-value", "disabled", "popper-class", "size"])
|
|
66
|
+
], 2);
|
|
67
|
+
};
|
|
23
68
|
}
|
|
24
69
|
});
|
|
70
|
+
var Sizes = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);
|
|
25
71
|
|
|
26
|
-
export {
|
|
72
|
+
export { Sizes as default };
|
|
27
73
|
//# sourceMappingURL=sizes2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sizes2.mjs","sources":["../../../../../../../packages/components/pagination/src/components/sizes.
|
|
1
|
+
{"version":3,"file":"sizes2.mjs","sources":["../../../../../../../packages/components/pagination/src/components/sizes.vue"],"sourcesContent":["<template>\n <span :class=\"ns.e('sizes')\">\n <el-select\n :model-value=\"innerPageSize\"\n :disabled=\"disabled\"\n :popper-class=\"popperClass\"\n :size=\"size\"\n :validate-event=\"false\"\n @change=\"handleChange\"\n >\n <el-option\n v-for=\"item in innerPageSizes\"\n :key=\"item\"\n :value=\"item\"\n :label=\"item + t('el.pagination.pagesize')\"\n />\n </el-select>\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref, watch } from 'vue'\nimport { isEqual } from 'lodash-unified'\nimport { ElOption, ElSelect } from '@element-plus/components/select'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { usePagination } from '../usePagination'\nimport { paginationSizesProps } from './sizes'\n\ndefineOptions({\n name: 'ElPaginationSizes',\n})\n\nconst props = defineProps(paginationSizesProps)\nconst emit = defineEmits(['page-size-change'])\nconst { t } = useLocale()\nconst ns = useNamespace('pagination')\nconst pagination = usePagination()\nconst innerPageSize = ref<number>(props.pageSize!)\n\nwatch(\n () => props.pageSizes,\n (newVal, oldVal) => {\n if (isEqual(newVal, oldVal)) return\n if (Array.isArray(newVal)) {\n const pageSize = newVal.includes(props.pageSize!)\n ? props.pageSize\n : props.pageSizes[0]\n emit('page-size-change', pageSize)\n }\n }\n)\n\nwatch(\n () => props.pageSize,\n (newVal) => {\n innerPageSize.value = newVal!\n }\n)\n\nconst innerPageSizes = computed(() => props.pageSizes)\nfunction handleChange(val: number) {\n if (val !== innerPageSize.value) {\n innerPageSize.value = val\n pagination.handleSizeChange?.(Number(val))\n }\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;mCA4Bc,CAAA;AAAA,EACZ,IAAM,EAAA,mBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAM,MAAA,EAAE,MAAM,SAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAK,aAAa,YAAY,CAAA,CAAA;AACpC,IAAA,MAAM,aAAa,aAAc,EAAA,CAAA;AACjC,IAAM,MAAA,aAAA,GAAgB,GAAY,CAAA,KAAA,CAAM,QAAS,CAAA,CAAA;AAEjD,IAAA,KAAA,CACE,MAAM,KAAA,CAAM,SACZ,EAAA,CAAC,QAAQ,MAAW,KAAA;AAClB,MAAI,IAAA,OAAA,CAAQ,QAAQ,MAAM,CAAA;AAAG,QAAA,OAAA;AAC7B,MAAI,IAAA,KAAA,CAAM,OAAQ,CAAA,MAAM,CAAG,EAAA;AACzB,QAAM,MAAA,QAAA,GAAW,OAAO,QAAS,CAAA,KAAA,CAAM,QAAS,CAC5C,GAAA,KAAA,CAAM,QACN,GAAA,KAAA,CAAM,SAAU,CAAA,CAAA,CAAA,CAAA;AACpB,QAAA,IAAA,CAAK,oBAAoB,QAAQ,CAAA,CAAA;AAAA,OACnC;AAAA,KAEJ,CAAA,CAAA;AAEA,IAAA,KAAA,CACE,MAAM,KAAA,CAAM,QACZ,EAAA,CAAC,MAAW,KAAA;AACV,MAAA,aAAA,CAAc,KAAQ,GAAA,MAAA,CAAA;AAAA,KAE1B,CAAA,CAAA;AAEA,IAAA,MAAM,cAAiB,GAAA,QAAA,CAAS,MAAM,KAAA,CAAM,SAAS,CAAA,CAAA;AACrD,IAAA,SAAA,YAAA,CAAsB,GAAa,EAAA;AACjC,MAAI,IAAA,EAAA,CAAA;AACF,MAAA,IAAA,GAAA,KAAA,aAAsB,CAAA,KAAA,EAAA;AACtB,QAAW,aAAA,CAAA,KAAA,GAAA,GAAA,CAAA;AAA8B,QAC3C,CAAA,EAAA,GAAA,UAAA,CAAA,gBAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,CAAA,UAAA,EAAA,MAAA,CAAA,GAAA,CAAA,CAAA,CAAA;AAAA,OACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -5,7 +5,7 @@ import '../../../hooks/index.mjs';
|
|
|
5
5
|
import { elPaginationKey } from './constants.mjs';
|
|
6
6
|
import Prev from './components/prev2.mjs';
|
|
7
7
|
import Next from './components/next2.mjs';
|
|
8
|
-
import Sizes from './components/
|
|
8
|
+
import Sizes from './components/sizes2.mjs';
|
|
9
9
|
import Jumper from './components/jumper2.mjs';
|
|
10
10
|
import Total from './components/total2.mjs';
|
|
11
11
|
import Pager from './components/pager2.mjs';
|
|
@@ -6402,6 +6402,13 @@ export declare const ElSelect: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
6402
6402
|
handleScroll: () => void;
|
|
6403
6403
|
} | null>;
|
|
6404
6404
|
wrapperKls: import("vue").ComputedRef<string[]>;
|
|
6405
|
+
tagsKls: import("vue").ComputedRef<string[]>;
|
|
6406
|
+
tagWrapperKls: import("vue").ComputedRef<(string | {
|
|
6407
|
+
'has-prefix': any;
|
|
6408
|
+
})[]>;
|
|
6409
|
+
inputKls: import("vue").ComputedRef<string[]>;
|
|
6410
|
+
iOSInputKls: import("vue").ComputedRef<string[]>;
|
|
6411
|
+
scrollbarKls: import("vue").ComputedRef<string[]>;
|
|
6405
6412
|
selectTagsStyle: import("vue").ComputedRef<{
|
|
6406
6413
|
maxWidth: string;
|
|
6407
6414
|
width: string;
|
|
@@ -6427,6 +6434,12 @@ export declare const ElSelect: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
6427
6434
|
tagTextStyle: import("vue").ComputedRef<{
|
|
6428
6435
|
maxWidth: string;
|
|
6429
6436
|
}>;
|
|
6437
|
+
inputStyle: import("vue").ComputedRef<{
|
|
6438
|
+
marginLeft: string;
|
|
6439
|
+
flexGrow: number;
|
|
6440
|
+
width: string;
|
|
6441
|
+
maxWidth: string;
|
|
6442
|
+
}>;
|
|
6430
6443
|
handleMouseEnter: () => void;
|
|
6431
6444
|
handleMouseLeave: () => void;
|
|
6432
6445
|
showTagList: import("vue").ComputedRef<any>;
|
|
@@ -6607,6 +6620,10 @@ export declare const ElSelect: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
6607
6620
|
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
6608
6621
|
cssVarBlockName: (name: string) => string;
|
|
6609
6622
|
};
|
|
6623
|
+
containerKls: import("vue").ComputedRef<(string | {
|
|
6624
|
+
selected: boolean;
|
|
6625
|
+
hover: boolean;
|
|
6626
|
+
})[]>;
|
|
6610
6627
|
currentLabel: import("vue").ComputedRef<any>;
|
|
6611
6628
|
itemSelected: import("vue").ComputedRef<boolean>;
|
|
6612
6629
|
isDisabled: import("vue").ComputedRef<any>;
|
|
@@ -6704,6 +6721,10 @@ export declare const ElOption: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
6704
6721
|
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
6705
6722
|
cssVarBlockName: (name: string) => string;
|
|
6706
6723
|
};
|
|
6724
|
+
containerKls: import("vue").ComputedRef<(string | {
|
|
6725
|
+
selected: boolean;
|
|
6726
|
+
hover: boolean;
|
|
6727
|
+
})[]>;
|
|
6707
6728
|
currentLabel: import("vue").ComputedRef<any>;
|
|
6708
6729
|
itemSelected: import("vue").ComputedRef<boolean>;
|
|
6709
6730
|
isDisabled: import("vue").ComputedRef<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, reactive, toRefs, getCurrentInstance, onBeforeUnmount, nextTick, withDirectives, openBlock, createElementBlock, normalizeClass, withModifiers, renderSlot, createElementVNode, toDisplayString, vShow } from 'vue';
|
|
1
|
+
import { defineComponent, computed, unref, reactive, toRefs, getCurrentInstance, onBeforeUnmount, nextTick, withDirectives, openBlock, createElementBlock, normalizeClass, withModifiers, renderSlot, createElementVNode, toDisplayString, vShow } from 'vue';
|
|
2
2
|
import '../../../hooks/index.mjs';
|
|
3
3
|
import { useOption } from './useOption.mjs';
|
|
4
4
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
@@ -21,6 +21,14 @@ const _sfc_main = defineComponent({
|
|
|
21
21
|
},
|
|
22
22
|
setup(props) {
|
|
23
23
|
const ns = useNamespace("select");
|
|
24
|
+
const containerKls = computed(() => [
|
|
25
|
+
ns.be("dropdown", "item"),
|
|
26
|
+
ns.is("disabled", unref(isDisabled)),
|
|
27
|
+
{
|
|
28
|
+
selected: unref(itemSelected),
|
|
29
|
+
hover: unref(hover)
|
|
30
|
+
}
|
|
31
|
+
]);
|
|
24
32
|
const states = reactive({
|
|
25
33
|
index: -1,
|
|
26
34
|
groupDisabled: false,
|
|
@@ -53,6 +61,7 @@ const _sfc_main = defineComponent({
|
|
|
53
61
|
}
|
|
54
62
|
return {
|
|
55
63
|
ns,
|
|
64
|
+
containerKls,
|
|
56
65
|
currentLabel,
|
|
57
66
|
itemSelected,
|
|
58
67
|
isDisabled,
|
|
@@ -67,14 +76,7 @@ const _sfc_main = defineComponent({
|
|
|
67
76
|
});
|
|
68
77
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
69
78
|
return withDirectives((openBlock(), createElementBlock("li", {
|
|
70
|
-
class: normalizeClass(
|
|
71
|
-
_ctx.ns.be("dropdown", "item"),
|
|
72
|
-
_ctx.ns.is("disabled", _ctx.isDisabled),
|
|
73
|
-
{
|
|
74
|
-
selected: _ctx.itemSelected,
|
|
75
|
-
hover: _ctx.hover
|
|
76
|
-
}
|
|
77
|
-
]),
|
|
79
|
+
class: normalizeClass(_ctx.containerKls),
|
|
78
80
|
onMouseenter: _cache[0] || (_cache[0] = (...args) => _ctx.hoverItem && _ctx.hoverItem(...args)),
|
|
79
81
|
onClick: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.selectOptionClick && _ctx.selectOptionClick(...args), ["stop"]))
|
|
80
82
|
}, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"option.mjs","sources":["../../../../../../packages/components/select/src/option.vue"],"sourcesContent":["<template>\n <li\n v-show=\"visible\"\n :class=\"
|
|
1
|
+
{"version":3,"file":"option.mjs","sources":["../../../../../../packages/components/select/src/option.vue"],"sourcesContent":["<template>\n <li\n v-show=\"visible\"\n :class=\"containerKls\"\n @mouseenter=\"hoverItem\"\n @click.stop=\"selectOptionClick\"\n >\n <slot>\n <span>{{ currentLabel }}</span>\n </slot>\n </li>\n</template>\n\n<script lang=\"ts\">\n// @ts-nocheck\nimport {\n computed,\n defineComponent,\n getCurrentInstance,\n nextTick,\n onBeforeUnmount,\n reactive,\n toRefs,\n unref,\n} from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useOption } from './useOption'\nimport type { SelectOptionProxy } from './token'\n\nexport default defineComponent({\n name: 'ElOption',\n componentName: 'ElOption',\n\n props: {\n value: {\n required: true,\n type: [String, Number, Boolean, Object],\n },\n label: [String, Number],\n created: Boolean,\n disabled: {\n type: Boolean,\n default: false,\n },\n },\n\n setup(props) {\n const ns = useNamespace('select')\n\n const containerKls = computed(() => [\n ns.be('dropdown', 'item'),\n ns.is('disabled', unref(isDisabled)),\n {\n selected: unref(itemSelected),\n hover: unref(hover),\n },\n ])\n\n const states = reactive({\n index: -1,\n groupDisabled: false,\n visible: true,\n hitState: false,\n hover: false,\n })\n\n const { currentLabel, itemSelected, isDisabled, select, hoverItem } =\n useOption(props, states)\n\n const { visible, hover } = toRefs(states)\n\n const vm = getCurrentInstance().proxy\n\n select.onOptionCreate(vm as unknown as SelectOptionProxy)\n\n onBeforeUnmount(() => {\n const key = (vm as unknown as SelectOptionProxy).value\n const { selected } = select\n const selectedOptions = select.props.multiple ? selected : [selected]\n const doesSelected = selectedOptions.some((item) => {\n return item.value === (vm as unknown as SelectOptionProxy).value\n })\n // if option is not selected, remove it from cache\n nextTick(() => {\n if (select.cachedOptions.get(key) === vm && !doesSelected) {\n select.cachedOptions.delete(key)\n }\n })\n select.onOptionDestroy(key, vm)\n })\n\n function selectOptionClick() {\n if (props.disabled !== true && states.groupDisabled !== true) {\n select.handleOptionSelect(vm)\n }\n }\n\n return {\n ns,\n containerKls,\n currentLabel,\n itemSelected,\n isDisabled,\n select,\n hoverItem,\n visible,\n hover,\n selectOptionClick,\n states,\n }\n },\n})\n</script>\n"],"names":["_createElementBlock","_normalizeClass","_renderSlot","_createElementVNode"],"mappings":"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"}
|
|
@@ -28,6 +28,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
28
|
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
29
29
|
cssVarBlockName: (name: string) => string;
|
|
30
30
|
};
|
|
31
|
+
containerKls: import("vue").ComputedRef<(string | {
|
|
32
|
+
selected: boolean;
|
|
33
|
+
hover: boolean;
|
|
34
|
+
})[]>;
|
|
31
35
|
currentLabel: import("vue").ComputedRef<any>;
|
|
32
36
|
itemSelected: import("vue").ComputedRef<boolean>;
|
|
33
37
|
isDisabled: import("vue").ComputedRef<any>;
|
|
@@ -241,6 +241,27 @@ const _sfc_main = defineComponent({
|
|
|
241
241
|
}
|
|
242
242
|
return classList;
|
|
243
243
|
});
|
|
244
|
+
const tagsKls = computed(() => [
|
|
245
|
+
nsSelect.e("tags"),
|
|
246
|
+
nsSelect.is("disabled", unref(selectDisabled))
|
|
247
|
+
]);
|
|
248
|
+
const tagWrapperKls = computed(() => [
|
|
249
|
+
nsSelect.b("tags-wrapper"),
|
|
250
|
+
{ "has-prefix": unref(prefixWidth) && unref(selected).length }
|
|
251
|
+
]);
|
|
252
|
+
const inputKls = computed(() => [
|
|
253
|
+
nsSelect.e("input"),
|
|
254
|
+
nsSelect.is(unref(selectSize)),
|
|
255
|
+
nsSelect.is("disabled", unref(selectDisabled))
|
|
256
|
+
]);
|
|
257
|
+
const iOSInputKls = computed(() => [
|
|
258
|
+
nsSelect.e("input"),
|
|
259
|
+
nsSelect.is(unref(selectSize)),
|
|
260
|
+
nsSelect.em("input", "iOS")
|
|
261
|
+
]);
|
|
262
|
+
const scrollbarKls = computed(() => [
|
|
263
|
+
nsSelect.is("empty", !props.allowCreate && Boolean(unref(query)) && unref(filteredOptionsCount) === 0)
|
|
264
|
+
]);
|
|
244
265
|
const selectTagsStyle = computed(() => ({
|
|
245
266
|
maxWidth: `${unref(inputWidth) - 32}px`,
|
|
246
267
|
width: "100%"
|
|
@@ -249,6 +270,12 @@ const _sfc_main = defineComponent({
|
|
|
249
270
|
const maxWidth = unref(inputWidth) > 123 ? unref(inputWidth) - 123 : unref(inputWidth) - 75;
|
|
250
271
|
return { maxWidth: `${maxWidth}px` };
|
|
251
272
|
});
|
|
273
|
+
const inputStyle = computed(() => ({
|
|
274
|
+
marginLeft: `${unref(prefixWidth)}px`,
|
|
275
|
+
flexGrow: 1,
|
|
276
|
+
width: `${unref(inputLength) / (unref(inputWidth) - 32)}%`,
|
|
277
|
+
maxWidth: `${unref(inputWidth) - 42}px`
|
|
278
|
+
}));
|
|
252
279
|
provide(selectKey, reactive({
|
|
253
280
|
props,
|
|
254
281
|
options,
|
|
@@ -361,9 +388,15 @@ const _sfc_main = defineComponent({
|
|
|
361
388
|
selectWrapper,
|
|
362
389
|
scrollbar,
|
|
363
390
|
wrapperKls,
|
|
391
|
+
tagsKls,
|
|
392
|
+
tagWrapperKls,
|
|
393
|
+
inputKls,
|
|
394
|
+
iOSInputKls,
|
|
395
|
+
scrollbarKls,
|
|
364
396
|
selectTagsStyle,
|
|
365
397
|
nsSelect,
|
|
366
398
|
tagTextStyle,
|
|
399
|
+
inputStyle,
|
|
367
400
|
handleMouseEnter,
|
|
368
401
|
handleMouseLeave,
|
|
369
402
|
showTagList,
|
|
@@ -417,10 +450,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
417
450
|
_ctx.multiple ? (openBlock(), createElementBlock("div", {
|
|
418
451
|
key: 0,
|
|
419
452
|
ref: "tags",
|
|
420
|
-
class: normalizeClass(
|
|
421
|
-
_ctx.nsSelect.e("tags"),
|
|
422
|
-
_ctx.nsSelect.is("disabled", _ctx.selectDisabled)
|
|
423
|
-
]),
|
|
453
|
+
class: normalizeClass(_ctx.tagsKls),
|
|
424
454
|
style: normalizeStyle(_ctx.selectTagsStyle)
|
|
425
455
|
}, [
|
|
426
456
|
_ctx.collapseTags && _ctx.selected.length ? (openBlock(), createBlock(Transition, {
|
|
@@ -429,10 +459,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
429
459
|
}, {
|
|
430
460
|
default: withCtx(() => [
|
|
431
461
|
createElementVNode("span", {
|
|
432
|
-
class: normalizeClass(
|
|
433
|
-
_ctx.nsSelect.b("tags-wrapper"),
|
|
434
|
-
{ "has-prefix": _ctx.prefixWidth && _ctx.selected.length }
|
|
435
|
-
])
|
|
462
|
+
class: normalizeClass(_ctx.tagWrapperKls)
|
|
436
463
|
}, [
|
|
437
464
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.showTagList, (item) => {
|
|
438
465
|
return openBlock(), createBlock(_component_el_tag, {
|
|
@@ -525,10 +552,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
525
552
|
}, {
|
|
526
553
|
default: withCtx(() => [
|
|
527
554
|
createElementVNode("span", {
|
|
528
|
-
class: normalizeClass(
|
|
529
|
-
_ctx.nsSelect.b("tags-wrapper"),
|
|
530
|
-
{ "has-prefix": _ctx.prefixWidth && _ctx.selected.length }
|
|
531
|
-
]),
|
|
555
|
+
class: normalizeClass(_ctx.tagWrapperKls),
|
|
532
556
|
style: normalizeStyle(_ctx.prefixWidth && _ctx.selected.length ? { marginLeft: `${_ctx.prefixWidth}px` } : "")
|
|
533
557
|
}, [
|
|
534
558
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selected, (item) => {
|
|
@@ -559,19 +583,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
559
583
|
ref: "input",
|
|
560
584
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.query = $event),
|
|
561
585
|
type: "text",
|
|
562
|
-
class: normalizeClass(
|
|
563
|
-
_ctx.nsSelect.e("input"),
|
|
564
|
-
_ctx.nsSelect.is(_ctx.selectSize),
|
|
565
|
-
_ctx.nsSelect.is("disabled", _ctx.selectDisabled)
|
|
566
|
-
]),
|
|
586
|
+
class: normalizeClass(_ctx.inputKls),
|
|
567
587
|
disabled: _ctx.selectDisabled,
|
|
568
588
|
autocomplete: _ctx.autocomplete,
|
|
569
|
-
style: normalizeStyle(
|
|
570
|
-
marginLeft: `${_ctx.prefixWidth}px`,
|
|
571
|
-
flexGrow: 1,
|
|
572
|
-
width: `${_ctx.inputLength / (_ctx.inputWidth - 32)}%`,
|
|
573
|
-
maxWidth: `${_ctx.inputWidth - 42}px`
|
|
574
|
-
}),
|
|
589
|
+
style: normalizeStyle(_ctx.inputStyle),
|
|
575
590
|
onFocus: _cache[1] || (_cache[1] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
|
|
576
591
|
onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.handleBlur && _ctx.handleBlur(...args)),
|
|
577
592
|
onKeyup: _cache[3] || (_cache[3] = (...args) => _ctx.managePlaceholder && _ctx.managePlaceholder(...args)),
|
|
@@ -596,11 +611,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
596
611
|
_ctx.isIOS && !_ctx.multiple && _ctx.filterable && _ctx.readonly ? (openBlock(), createElementBlock("input", {
|
|
597
612
|
key: 1,
|
|
598
613
|
ref: "iOSInput",
|
|
599
|
-
class: normalizeClass(
|
|
600
|
-
_ctx.nsSelect.e("input"),
|
|
601
|
-
_ctx.nsSelect.is(_ctx.selectSize),
|
|
602
|
-
_ctx.nsSelect.em("input", "iOS")
|
|
603
|
-
]),
|
|
614
|
+
class: normalizeClass(_ctx.iOSInputKls),
|
|
604
615
|
disabled: _ctx.selectDisabled,
|
|
605
616
|
type: "text"
|
|
606
617
|
}, null, 10, _hoisted_2)) : createCommentVNode("v-if", true),
|
|
@@ -676,9 +687,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
676
687
|
tag: "ul",
|
|
677
688
|
"wrap-class": _ctx.nsSelect.be("dropdown", "wrap"),
|
|
678
689
|
"view-class": _ctx.nsSelect.be("dropdown", "list"),
|
|
679
|
-
class: normalizeClass(
|
|
680
|
-
_ctx.nsSelect.is("empty", !_ctx.allowCreate && Boolean(_ctx.query) && _ctx.filteredOptionsCount === 0)
|
|
681
|
-
])
|
|
690
|
+
class: normalizeClass(_ctx.scrollbarKls)
|
|
682
691
|
}, {
|
|
683
692
|
default: withCtx(() => [
|
|
684
693
|
_ctx.showNewOption ? (openBlock(), createBlock(_component_el_option, {
|