@element-plus/nightly 0.0.20230624 → 0.0.20230626
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/index.mjs +2 -2
- package/es/components/pagination/src/components/sizes.vue.d.ts +21 -0
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/arrow.mjs +8 -37
- package/es/components/popper/src/arrow.mjs.map +1 -1
- package/es/components/popper/src/arrow2.mjs +37 -8
- package/es/components/popper/src/arrow2.mjs.map +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/tooltip/src/tooltip.mjs +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +1 -1
- package/es/components/tree-select/src/tree-select-option.d.ts +24 -0
- package/es/components/virtual-list/src/builders/build-grid.mjs +1 -1
- package/es/components/virtual-list/src/builders/build-grid.mjs.map +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/index.js +2 -2
- package/lib/components/pagination/src/components/sizes.vue.d.ts +21 -0
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/arrow.js +9 -37
- package/lib/components/popper/src/arrow.js.map +1 -1
- package/lib/components/popper/src/arrow2.js +37 -9
- package/lib/components/popper/src/arrow2.js.map +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/tooltip/src/tooltip.js +1 -1
- package/lib/components/tooltip/src/tooltip2.js +1 -1
- package/lib/components/tree-select/src/tree-select-option.d.ts +24 -0
- package/lib/components/virtual-list/src/builders/build-grid.js +1 -1
- package/lib/components/virtual-list/src/builders/build-grid.js.map +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
|
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
6
|
var popper$1 = require('./src/popper2.js');
|
|
7
|
-
var arrow = require('./src/
|
|
7
|
+
var arrow = require('./src/arrow2.js');
|
|
8
8
|
var trigger = require('./src/trigger2.js');
|
|
9
9
|
var content = require('./src/content2.js');
|
|
10
10
|
var popper = require('./src/popper.js');
|
|
11
11
|
var trigger$1 = require('./src/trigger.js');
|
|
12
12
|
var content$1 = require('./src/content.js');
|
|
13
|
-
var arrow$1 = require('./src/
|
|
13
|
+
var arrow$1 = require('./src/arrow.js');
|
|
14
14
|
var constants = require('./src/constants.js');
|
|
15
15
|
var install = require('../../utils/vue/install.js');
|
|
16
16
|
|
|
@@ -2,45 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
require('../../../
|
|
7
|
-
var constants = require('./constants.js');
|
|
8
|
-
var arrow = require('./arrow2.js');
|
|
9
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
5
|
+
require('../../../utils/index.js');
|
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
11
7
|
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
17
|
-
...__default__,
|
|
18
|
-
props: arrow.popperArrowProps,
|
|
19
|
-
setup(__props, { expose }) {
|
|
20
|
-
const props = __props;
|
|
21
|
-
const ns = index.useNamespace("popper");
|
|
22
|
-
const { arrowOffset, arrowRef, arrowStyle } = vue.inject(constants.POPPER_CONTENT_INJECTION_KEY, void 0);
|
|
23
|
-
vue.watch(() => props.arrowOffset, (val) => {
|
|
24
|
-
arrowOffset.value = val;
|
|
25
|
-
});
|
|
26
|
-
vue.onBeforeUnmount(() => {
|
|
27
|
-
arrowRef.value = void 0;
|
|
28
|
-
});
|
|
29
|
-
expose({
|
|
30
|
-
arrowRef
|
|
31
|
-
});
|
|
32
|
-
return (_ctx, _cache) => {
|
|
33
|
-
return vue.openBlock(), vue.createElementBlock("span", {
|
|
34
|
-
ref_key: "arrowRef",
|
|
35
|
-
ref: arrowRef,
|
|
36
|
-
class: vue.normalizeClass(vue.unref(ns).e("arrow")),
|
|
37
|
-
style: vue.normalizeStyle(vue.unref(arrowStyle)),
|
|
38
|
-
"data-popper-arrow": ""
|
|
39
|
-
}, null, 6);
|
|
40
|
-
};
|
|
8
|
+
const popperArrowProps = runtime.buildProps({
|
|
9
|
+
arrowOffset: {
|
|
10
|
+
type: Number,
|
|
11
|
+
default: 5
|
|
41
12
|
}
|
|
42
13
|
});
|
|
43
|
-
|
|
14
|
+
const usePopperArrowProps = popperArrowProps;
|
|
44
15
|
|
|
45
|
-
exports
|
|
16
|
+
exports.popperArrowProps = popperArrowProps;
|
|
17
|
+
exports.usePopperArrowProps = usePopperArrowProps;
|
|
46
18
|
//# sourceMappingURL=arrow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arrow.js","sources":["../../../../../../packages/components/popper/src/arrow.
|
|
1
|
+
{"version":3,"file":"arrow.js","sources":["../../../../../../packages/components/popper/src/arrow.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type Arrow from './arrow.vue'\n\nexport const popperArrowProps = buildProps({\n arrowOffset: {\n type: Number,\n default: 5,\n },\n} as const)\nexport type PopperArrowProps = ExtractPropTypes<typeof popperArrowProps>\n\nexport type PopperArrowInstance = InstanceType<typeof Arrow>\n\n/** @deprecated use `popperArrowProps` instead, and it will be deprecated in the next major version */\nexport const usePopperArrowProps = popperArrowProps\n\n/** @deprecated use `PopperArrowProps` instead, and it will be deprecated in the next major version */\nexport type UsePopperArrowProps = PopperArrowProps\n\n/** @deprecated use `PopperArrowInstance` instead, and it will be deprecated in the next major version */\nexport type ElPopperArrowInstance = PopperArrowInstance\n"],"names":["buildProps"],"mappings":";;;;;;;AACY,MAAC,gBAAgB,GAAGA,kBAAU,CAAC;AAC3C,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,CAAC,EAAE;AACS,MAAC,mBAAmB,GAAG;;;;;"}
|
|
@@ -2,17 +2,45 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('
|
|
6
|
-
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
require('../../../hooks/index.js');
|
|
7
|
+
var constants = require('./constants.js');
|
|
8
|
+
var arrow = require('./arrow.js');
|
|
9
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
7
11
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
const __default__ = vue.defineComponent({
|
|
13
|
+
name: "ElPopperArrow",
|
|
14
|
+
inheritAttrs: false
|
|
15
|
+
});
|
|
16
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
17
|
+
...__default__,
|
|
18
|
+
props: arrow.popperArrowProps,
|
|
19
|
+
setup(__props, { expose }) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const ns = index.useNamespace("popper");
|
|
22
|
+
const { arrowOffset, arrowRef, arrowStyle } = vue.inject(constants.POPPER_CONTENT_INJECTION_KEY, void 0);
|
|
23
|
+
vue.watch(() => props.arrowOffset, (val) => {
|
|
24
|
+
arrowOffset.value = val;
|
|
25
|
+
});
|
|
26
|
+
vue.onBeforeUnmount(() => {
|
|
27
|
+
arrowRef.value = void 0;
|
|
28
|
+
});
|
|
29
|
+
expose({
|
|
30
|
+
arrowRef
|
|
31
|
+
});
|
|
32
|
+
return (_ctx, _cache) => {
|
|
33
|
+
return vue.openBlock(), vue.createElementBlock("span", {
|
|
34
|
+
ref_key: "arrowRef",
|
|
35
|
+
ref: arrowRef,
|
|
36
|
+
class: vue.normalizeClass(vue.unref(ns).e("arrow")),
|
|
37
|
+
style: vue.normalizeStyle(vue.unref(arrowStyle)),
|
|
38
|
+
"data-popper-arrow": ""
|
|
39
|
+
}, null, 6);
|
|
40
|
+
};
|
|
12
41
|
}
|
|
13
42
|
});
|
|
14
|
-
|
|
43
|
+
var ElPopperArrow = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);
|
|
15
44
|
|
|
16
|
-
exports
|
|
17
|
-
exports.usePopperArrowProps = usePopperArrowProps;
|
|
45
|
+
exports["default"] = ElPopperArrow;
|
|
18
46
|
//# sourceMappingURL=arrow2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arrow2.js","sources":["../../../../../../packages/components/popper/src/arrow.
|
|
1
|
+
{"version":3,"file":"arrow2.js","sources":["../../../../../../packages/components/popper/src/arrow.vue"],"sourcesContent":["<template>\n <span\n ref=\"arrowRef\"\n :class=\"ns.e('arrow')\"\n :style=\"arrowStyle\"\n data-popper-arrow\n />\n</template>\n\n<script lang=\"ts\" setup>\nimport { inject, onBeforeUnmount, watch } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { POPPER_CONTENT_INJECTION_KEY } from './constants'\nimport { popperArrowProps } from './arrow'\n\ndefineOptions({\n name: 'ElPopperArrow',\n inheritAttrs: false,\n})\n\nconst props = defineProps(popperArrowProps)\n\nconst ns = useNamespace('popper')\nconst { arrowOffset, arrowRef, arrowStyle } = inject(\n POPPER_CONTENT_INJECTION_KEY,\n undefined\n)!\n\nwatch(\n () => props.arrowOffset,\n (val) => {\n arrowOffset.value = val\n }\n)\nonBeforeUnmount(() => {\n arrowRef.value = undefined\n})\n\ndefineExpose({\n /**\n * @description Arrow element\n */\n arrowRef,\n})\n</script>\n"],"names":["useNamespace","inject","POPPER_CONTENT_INJECTION_KEY","watch","onBeforeUnmount"],"mappings":";;;;;;;;;;;uCAec,CAAA;AAAA,EACZ,IAAM,EAAA,eAAA;AAAA,EACN,YAAc,EAAA,KAAA;AAChB,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAA,GAAKA,mBAAa,QAAQ,CAAA,CAAA;AAChC,IAAA,MAAM,EAAE,WAAa,EAAA,QAAA,EAAU,UAAe,EAAA,GAAAC,UAAA,CAC5CC,wCACA,KACF,CAAA,CAAA,CAAA;AAEA,IAAAC,SAAA,CACE,MAAM,KAAA,CAAM,WACZ,EAAA,CAAC,GAAQ,KAAA;AACP,MAAA,WAAA,CAAY,KAAQ,GAAA,GAAA,CAAA;AAAA,KAExB,CAAA,CAAA;AACA,IAAAC,mBAAA,CAAgB,MAAM;AACpB,MAAA,QAAA,CAAS,KAAQ,GAAA,KAAA,CAAA,CAAA;AAAA,KAClB,CAAA,CAAA;AAED,IAAa,MAAA,CAAA;AAAA,MAIX,QAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;"}
|
|
@@ -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>;
|
|
@@ -25,6 +25,14 @@ const _sfc_main = vue.defineComponent({
|
|
|
25
25
|
},
|
|
26
26
|
setup(props) {
|
|
27
27
|
const ns = index.useNamespace("select");
|
|
28
|
+
const containerKls = vue.computed(() => [
|
|
29
|
+
ns.be("dropdown", "item"),
|
|
30
|
+
ns.is("disabled", vue.unref(isDisabled)),
|
|
31
|
+
{
|
|
32
|
+
selected: vue.unref(itemSelected),
|
|
33
|
+
hover: vue.unref(hover)
|
|
34
|
+
}
|
|
35
|
+
]);
|
|
28
36
|
const states = vue.reactive({
|
|
29
37
|
index: -1,
|
|
30
38
|
groupDisabled: false,
|
|
@@ -57,6 +65,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
57
65
|
}
|
|
58
66
|
return {
|
|
59
67
|
ns,
|
|
68
|
+
containerKls,
|
|
60
69
|
currentLabel,
|
|
61
70
|
itemSelected,
|
|
62
71
|
isDisabled,
|
|
@@ -71,14 +80,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
71
80
|
});
|
|
72
81
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
73
82
|
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("li", {
|
|
74
|
-
class: vue.normalizeClass(
|
|
75
|
-
_ctx.ns.be("dropdown", "item"),
|
|
76
|
-
_ctx.ns.is("disabled", _ctx.isDisabled),
|
|
77
|
-
{
|
|
78
|
-
selected: _ctx.itemSelected,
|
|
79
|
-
hover: _ctx.hover
|
|
80
|
-
}
|
|
81
|
-
]),
|
|
83
|
+
class: vue.normalizeClass(_ctx.containerKls),
|
|
82
84
|
onMouseenter: _cache[0] || (_cache[0] = (...args) => _ctx.hoverItem && _ctx.hoverItem(...args)),
|
|
83
85
|
onClick: _cache[1] || (_cache[1] = vue.withModifiers((...args) => _ctx.selectOptionClick && _ctx.selectOptionClick(...args), ["stop"]))
|
|
84
86
|
}, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"option.js","sources":["../../../../../../packages/components/select/src/option.vue"],"sourcesContent":["<template>\n <li\n v-show=\"visible\"\n :class=\"
|
|
1
|
+
{"version":3,"file":"option.js","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":["defineComponent","useNamespace","computed","unref","reactive","useOption","toRefs","getCurrentInstance","onBeforeUnmount","nextTick","_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>;
|
|
@@ -245,6 +245,27 @@ const _sfc_main = vue.defineComponent({
|
|
|
245
245
|
}
|
|
246
246
|
return classList;
|
|
247
247
|
});
|
|
248
|
+
const tagsKls = vue.computed(() => [
|
|
249
|
+
nsSelect.e("tags"),
|
|
250
|
+
nsSelect.is("disabled", vue.unref(selectDisabled))
|
|
251
|
+
]);
|
|
252
|
+
const tagWrapperKls = vue.computed(() => [
|
|
253
|
+
nsSelect.b("tags-wrapper"),
|
|
254
|
+
{ "has-prefix": vue.unref(prefixWidth) && vue.unref(selected).length }
|
|
255
|
+
]);
|
|
256
|
+
const inputKls = vue.computed(() => [
|
|
257
|
+
nsSelect.e("input"),
|
|
258
|
+
nsSelect.is(vue.unref(selectSize)),
|
|
259
|
+
nsSelect.is("disabled", vue.unref(selectDisabled))
|
|
260
|
+
]);
|
|
261
|
+
const iOSInputKls = vue.computed(() => [
|
|
262
|
+
nsSelect.e("input"),
|
|
263
|
+
nsSelect.is(vue.unref(selectSize)),
|
|
264
|
+
nsSelect.em("input", "iOS")
|
|
265
|
+
]);
|
|
266
|
+
const scrollbarKls = vue.computed(() => [
|
|
267
|
+
nsSelect.is("empty", !props.allowCreate && Boolean(vue.unref(query)) && vue.unref(filteredOptionsCount) === 0)
|
|
268
|
+
]);
|
|
248
269
|
const selectTagsStyle = vue.computed(() => ({
|
|
249
270
|
maxWidth: `${vue.unref(inputWidth) - 32}px`,
|
|
250
271
|
width: "100%"
|
|
@@ -253,6 +274,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
253
274
|
const maxWidth = vue.unref(inputWidth) > 123 ? vue.unref(inputWidth) - 123 : vue.unref(inputWidth) - 75;
|
|
254
275
|
return { maxWidth: `${maxWidth}px` };
|
|
255
276
|
});
|
|
277
|
+
const inputStyle = vue.computed(() => ({
|
|
278
|
+
marginLeft: `${vue.unref(prefixWidth)}px`,
|
|
279
|
+
flexGrow: 1,
|
|
280
|
+
width: `${vue.unref(inputLength) / (vue.unref(inputWidth) - 32)}%`,
|
|
281
|
+
maxWidth: `${vue.unref(inputWidth) - 42}px`
|
|
282
|
+
}));
|
|
256
283
|
vue.provide(token.selectKey, vue.reactive({
|
|
257
284
|
props,
|
|
258
285
|
options,
|
|
@@ -365,9 +392,15 @@ const _sfc_main = vue.defineComponent({
|
|
|
365
392
|
selectWrapper,
|
|
366
393
|
scrollbar,
|
|
367
394
|
wrapperKls,
|
|
395
|
+
tagsKls,
|
|
396
|
+
tagWrapperKls,
|
|
397
|
+
inputKls,
|
|
398
|
+
iOSInputKls,
|
|
399
|
+
scrollbarKls,
|
|
368
400
|
selectTagsStyle,
|
|
369
401
|
nsSelect,
|
|
370
402
|
tagTextStyle,
|
|
403
|
+
inputStyle,
|
|
371
404
|
handleMouseEnter,
|
|
372
405
|
handleMouseLeave,
|
|
373
406
|
showTagList,
|
|
@@ -421,10 +454,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
421
454
|
_ctx.multiple ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
422
455
|
key: 0,
|
|
423
456
|
ref: "tags",
|
|
424
|
-
class: vue.normalizeClass(
|
|
425
|
-
_ctx.nsSelect.e("tags"),
|
|
426
|
-
_ctx.nsSelect.is("disabled", _ctx.selectDisabled)
|
|
427
|
-
]),
|
|
457
|
+
class: vue.normalizeClass(_ctx.tagsKls),
|
|
428
458
|
style: vue.normalizeStyle(_ctx.selectTagsStyle)
|
|
429
459
|
}, [
|
|
430
460
|
_ctx.collapseTags && _ctx.selected.length ? (vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
@@ -433,10 +463,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
433
463
|
}, {
|
|
434
464
|
default: vue.withCtx(() => [
|
|
435
465
|
vue.createElementVNode("span", {
|
|
436
|
-
class: vue.normalizeClass(
|
|
437
|
-
_ctx.nsSelect.b("tags-wrapper"),
|
|
438
|
-
{ "has-prefix": _ctx.prefixWidth && _ctx.selected.length }
|
|
439
|
-
])
|
|
466
|
+
class: vue.normalizeClass(_ctx.tagWrapperKls)
|
|
440
467
|
}, [
|
|
441
468
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.showTagList, (item) => {
|
|
442
469
|
return vue.openBlock(), vue.createBlock(_component_el_tag, {
|
|
@@ -529,10 +556,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
529
556
|
}, {
|
|
530
557
|
default: vue.withCtx(() => [
|
|
531
558
|
vue.createElementVNode("span", {
|
|
532
|
-
class: vue.normalizeClass(
|
|
533
|
-
_ctx.nsSelect.b("tags-wrapper"),
|
|
534
|
-
{ "has-prefix": _ctx.prefixWidth && _ctx.selected.length }
|
|
535
|
-
]),
|
|
559
|
+
class: vue.normalizeClass(_ctx.tagWrapperKls),
|
|
536
560
|
style: vue.normalizeStyle(_ctx.prefixWidth && _ctx.selected.length ? { marginLeft: `${_ctx.prefixWidth}px` } : "")
|
|
537
561
|
}, [
|
|
538
562
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.selected, (item) => {
|
|
@@ -563,19 +587,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
563
587
|
ref: "input",
|
|
564
588
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.query = $event),
|
|
565
589
|
type: "text",
|
|
566
|
-
class: vue.normalizeClass(
|
|
567
|
-
_ctx.nsSelect.e("input"),
|
|
568
|
-
_ctx.nsSelect.is(_ctx.selectSize),
|
|
569
|
-
_ctx.nsSelect.is("disabled", _ctx.selectDisabled)
|
|
570
|
-
]),
|
|
590
|
+
class: vue.normalizeClass(_ctx.inputKls),
|
|
571
591
|
disabled: _ctx.selectDisabled,
|
|
572
592
|
autocomplete: _ctx.autocomplete,
|
|
573
|
-
style: vue.normalizeStyle(
|
|
574
|
-
marginLeft: `${_ctx.prefixWidth}px`,
|
|
575
|
-
flexGrow: 1,
|
|
576
|
-
width: `${_ctx.inputLength / (_ctx.inputWidth - 32)}%`,
|
|
577
|
-
maxWidth: `${_ctx.inputWidth - 42}px`
|
|
578
|
-
}),
|
|
593
|
+
style: vue.normalizeStyle(_ctx.inputStyle),
|
|
579
594
|
onFocus: _cache[1] || (_cache[1] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
|
|
580
595
|
onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.handleBlur && _ctx.handleBlur(...args)),
|
|
581
596
|
onKeyup: _cache[3] || (_cache[3] = (...args) => _ctx.managePlaceholder && _ctx.managePlaceholder(...args)),
|
|
@@ -600,11 +615,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
600
615
|
_ctx.isIOS && !_ctx.multiple && _ctx.filterable && _ctx.readonly ? (vue.openBlock(), vue.createElementBlock("input", {
|
|
601
616
|
key: 1,
|
|
602
617
|
ref: "iOSInput",
|
|
603
|
-
class: vue.normalizeClass(
|
|
604
|
-
_ctx.nsSelect.e("input"),
|
|
605
|
-
_ctx.nsSelect.is(_ctx.selectSize),
|
|
606
|
-
_ctx.nsSelect.em("input", "iOS")
|
|
607
|
-
]),
|
|
618
|
+
class: vue.normalizeClass(_ctx.iOSInputKls),
|
|
608
619
|
disabled: _ctx.selectDisabled,
|
|
609
620
|
type: "text"
|
|
610
621
|
}, null, 10, _hoisted_2)) : vue.createCommentVNode("v-if", true),
|
|
@@ -680,9 +691,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
680
691
|
tag: "ul",
|
|
681
692
|
"wrap-class": _ctx.nsSelect.be("dropdown", "wrap"),
|
|
682
693
|
"view-class": _ctx.nsSelect.be("dropdown", "list"),
|
|
683
|
-
class: vue.normalizeClass(
|
|
684
|
-
_ctx.nsSelect.is("empty", !_ctx.allowCreate && Boolean(_ctx.query) && _ctx.filteredOptionsCount === 0)
|
|
685
|
-
])
|
|
694
|
+
class: vue.normalizeClass(_ctx.scrollbarKls)
|
|
686
695
|
}, {
|
|
687
696
|
default: vue.withCtx(() => [
|
|
688
697
|
_ctx.showNewOption ? (vue.openBlock(), vue.createBlock(_component_el_option, {
|