测试
This commit is contained in:
5
frontend/node_modules/element-plus/lib/components/autocomplete/index.d.ts
generated
vendored
Normal file
5
frontend/node_modules/element-plus/lib/components/autocomplete/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import Autocomplete from './src/autocomplete.vue';
|
||||
import type { SFCWithInstall } from 'element-plus/es/utils';
|
||||
export declare const ElAutocomplete: SFCWithInstall<typeof Autocomplete>;
|
||||
export default ElAutocomplete;
|
||||
export * from './src/autocomplete';
|
||||
15
frontend/node_modules/element-plus/lib/components/autocomplete/index.js
generated
vendored
Normal file
15
frontend/node_modules/element-plus/lib/components/autocomplete/index.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var autocomplete$1 = require('./src/autocomplete2.js');
|
||||
var autocomplete = require('./src/autocomplete.js');
|
||||
var install = require('../../utils/vue/install.js');
|
||||
|
||||
const ElAutocomplete = install.withInstall(autocomplete$1["default"]);
|
||||
|
||||
exports.autocompleteEmits = autocomplete.autocompleteEmits;
|
||||
exports.autocompleteProps = autocomplete.autocompleteProps;
|
||||
exports.ElAutocomplete = ElAutocomplete;
|
||||
exports["default"] = ElAutocomplete;
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/autocomplete/index.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/autocomplete/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sources":["../../../../../packages/components/autocomplete/index.ts"],"sourcesContent":["import { withInstall } from '@element-plus/utils'\nimport Autocomplete from './src/autocomplete.vue'\n\nimport type { SFCWithInstall } from '@element-plus/utils'\n\nexport const ElAutocomplete: SFCWithInstall<typeof Autocomplete> =\n withInstall(Autocomplete)\n\nexport default ElAutocomplete\n\nexport * from './src/autocomplete'\n"],"names":["withInstall","Autocomplete"],"mappings":";;;;;;;;AAEY,MAAC,cAAc,GAAGA,mBAAW,CAACC,yBAAY;;;;;;;"}
|
||||
240
frontend/node_modules/element-plus/lib/components/autocomplete/src/autocomplete.d.ts
generated
vendored
Normal file
240
frontend/node_modules/element-plus/lib/components/autocomplete/src/autocomplete.d.ts
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
71
frontend/node_modules/element-plus/lib/components/autocomplete/src/autocomplete.js
generated
vendored
Normal file
71
frontend/node_modules/element-plus/lib/components/autocomplete/src/autocomplete.js
generated
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var input = require('../../input/src/input.js');
|
||||
var content = require('../../tooltip/src/content.js');
|
||||
var runtime = require('../../../utils/vue/props/runtime.js');
|
||||
var shared = require('@vue/shared');
|
||||
var event = require('../../../constants/event.js');
|
||||
var types = require('../../../utils/types.js');
|
||||
|
||||
const autocompleteProps = runtime.buildProps({
|
||||
...input.inputProps,
|
||||
valueKey: {
|
||||
type: String,
|
||||
default: "value"
|
||||
},
|
||||
modelValue: {
|
||||
type: [String, Number],
|
||||
default: ""
|
||||
},
|
||||
debounce: {
|
||||
type: Number,
|
||||
default: 300
|
||||
},
|
||||
placement: {
|
||||
type: runtime.definePropType(String),
|
||||
values: [
|
||||
"top",
|
||||
"top-start",
|
||||
"top-end",
|
||||
"bottom",
|
||||
"bottom-start",
|
||||
"bottom-end"
|
||||
],
|
||||
default: "bottom-start"
|
||||
},
|
||||
fetchSuggestions: {
|
||||
type: runtime.definePropType([Function, Array]),
|
||||
default: shared.NOOP
|
||||
},
|
||||
popperClass: content.useTooltipContentProps.popperClass,
|
||||
popperStyle: content.useTooltipContentProps.popperStyle,
|
||||
triggerOnFocus: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
selectWhenUnmatched: Boolean,
|
||||
hideLoading: Boolean,
|
||||
teleported: content.useTooltipContentProps.teleported,
|
||||
appendTo: content.useTooltipContentProps.appendTo,
|
||||
highlightFirstItem: Boolean,
|
||||
fitInputWidth: Boolean,
|
||||
loopNavigation: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
});
|
||||
const autocompleteEmits = {
|
||||
[event.UPDATE_MODEL_EVENT]: (value) => shared.isString(value) || types.isNumber(value),
|
||||
[event.INPUT_EVENT]: (value) => shared.isString(value) || types.isNumber(value),
|
||||
[event.CHANGE_EVENT]: (value) => shared.isString(value) || types.isNumber(value),
|
||||
focus: (evt) => evt instanceof FocusEvent,
|
||||
blur: (evt) => evt instanceof FocusEvent,
|
||||
clear: () => true,
|
||||
select: (item) => shared.isObject(item)
|
||||
};
|
||||
|
||||
exports.autocompleteEmits = autocompleteEmits;
|
||||
exports.autocompleteProps = autocompleteProps;
|
||||
//# sourceMappingURL=autocomplete.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/autocomplete/src/autocomplete.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/autocomplete/src/autocomplete.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
536
frontend/node_modules/element-plus/lib/components/autocomplete/src/autocomplete.vue.d.ts
generated
vendored
Normal file
536
frontend/node_modules/element-plus/lib/components/autocomplete/src/autocomplete.vue.d.ts
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
453
frontend/node_modules/element-plus/lib/components/autocomplete/src/autocomplete2.js
generated
vendored
Normal file
453
frontend/node_modules/element-plus/lib/components/autocomplete/src/autocomplete2.js
generated
vendored
Normal file
@@ -0,0 +1,453 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var vue = require('vue');
|
||||
var lodashUnified = require('lodash-unified');
|
||||
var core = require('@vueuse/core');
|
||||
var iconsVue = require('@element-plus/icons-vue');
|
||||
var index$5 = require('../../input/index.js');
|
||||
var index$3 = require('../../scrollbar/index.js');
|
||||
var index$2 = require('../../tooltip/index.js');
|
||||
var index$4 = require('../../icon/index.js');
|
||||
var autocomplete = require('./autocomplete.js');
|
||||
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
||||
var input = require('../../input/src/input.js');
|
||||
var useFormCommonProps = require('../../form/src/hooks/use-form-common-props.js');
|
||||
var index = require('../../../hooks/use-namespace/index.js');
|
||||
var index$1 = require('../../../hooks/use-id/index.js');
|
||||
var shared = require('@vue/shared');
|
||||
var event = require('../../../constants/event.js');
|
||||
var event$1 = require('../../../utils/dom/event.js');
|
||||
var aria = require('../../../constants/aria.js');
|
||||
var error = require('../../../utils/error.js');
|
||||
|
||||
const COMPONENT_NAME = "ElAutocomplete";
|
||||
const __default__ = vue.defineComponent({
|
||||
name: COMPONENT_NAME,
|
||||
inheritAttrs: false
|
||||
});
|
||||
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
||||
...__default__,
|
||||
props: autocomplete.autocompleteProps,
|
||||
emits: autocomplete.autocompleteEmits,
|
||||
setup(__props, { expose, emit }) {
|
||||
const props = __props;
|
||||
const passInputProps = vue.computed(() => lodashUnified.pick(props, Object.keys(input.inputProps)));
|
||||
const rawAttrs = vue.useAttrs();
|
||||
const disabled = useFormCommonProps.useFormDisabled();
|
||||
const ns = index.useNamespace("autocomplete");
|
||||
const inputRef = vue.ref();
|
||||
const regionRef = vue.ref();
|
||||
const popperRef = vue.ref();
|
||||
const listboxRef = vue.ref();
|
||||
let readonly = false;
|
||||
let ignoreFocusEvent = false;
|
||||
const suggestions = vue.ref([]);
|
||||
const highlightedIndex = vue.ref(-1);
|
||||
const dropdownWidth = vue.ref("");
|
||||
const activated = vue.ref(false);
|
||||
const suggestionDisabled = vue.ref(false);
|
||||
const loading = vue.ref(false);
|
||||
const listboxId = index$1.useId();
|
||||
const styles = vue.computed(() => rawAttrs.style);
|
||||
const suggestionVisible = vue.computed(() => {
|
||||
const isValidData = suggestions.value.length > 0;
|
||||
return (isValidData || loading.value) && activated.value;
|
||||
});
|
||||
const suggestionLoading = vue.computed(() => !props.hideLoading && loading.value);
|
||||
const refInput = vue.computed(() => {
|
||||
if (inputRef.value) {
|
||||
return Array.from(inputRef.value.$el.querySelectorAll("input"));
|
||||
}
|
||||
return [];
|
||||
});
|
||||
const onSuggestionShow = () => {
|
||||
if (suggestionVisible.value) {
|
||||
dropdownWidth.value = `${inputRef.value.$el.offsetWidth}px`;
|
||||
}
|
||||
};
|
||||
const onHide = () => {
|
||||
highlightedIndex.value = -1;
|
||||
};
|
||||
const getData = async (queryString) => {
|
||||
if (suggestionDisabled.value)
|
||||
return;
|
||||
const cb = (suggestionList) => {
|
||||
loading.value = false;
|
||||
if (suggestionDisabled.value)
|
||||
return;
|
||||
if (shared.isArray(suggestionList)) {
|
||||
suggestions.value = suggestionList;
|
||||
highlightedIndex.value = props.highlightFirstItem ? 0 : -1;
|
||||
} else {
|
||||
error.throwError(COMPONENT_NAME, "autocomplete suggestions must be an array");
|
||||
}
|
||||
};
|
||||
loading.value = true;
|
||||
if (shared.isArray(props.fetchSuggestions)) {
|
||||
cb(props.fetchSuggestions);
|
||||
} else {
|
||||
const result = await props.fetchSuggestions(queryString, cb);
|
||||
if (shared.isArray(result))
|
||||
cb(result);
|
||||
}
|
||||
};
|
||||
const debounce = vue.computed(() => props.debounce);
|
||||
const debouncedGetData = core.useDebounceFn(getData, debounce);
|
||||
const handleInput = (value) => {
|
||||
const valuePresented = !!value;
|
||||
emit(event.INPUT_EVENT, value);
|
||||
emit(event.UPDATE_MODEL_EVENT, value);
|
||||
suggestionDisabled.value = false;
|
||||
activated.value || (activated.value = valuePresented);
|
||||
if (!props.triggerOnFocus && !value) {
|
||||
suggestionDisabled.value = true;
|
||||
suggestions.value = [];
|
||||
return;
|
||||
}
|
||||
debouncedGetData(value);
|
||||
};
|
||||
const handleMouseDown = (event) => {
|
||||
var _a;
|
||||
if (disabled.value)
|
||||
return;
|
||||
if (((_a = event.target) == null ? void 0 : _a.tagName) !== "INPUT" || refInput.value.includes(document.activeElement)) {
|
||||
activated.value = true;
|
||||
}
|
||||
};
|
||||
const handleChange = (value) => {
|
||||
emit(event.CHANGE_EVENT, value);
|
||||
};
|
||||
const handleFocus = (evt) => {
|
||||
var _a;
|
||||
if (!ignoreFocusEvent) {
|
||||
activated.value = true;
|
||||
emit("focus", evt);
|
||||
const queryString = (_a = props.modelValue) != null ? _a : "";
|
||||
if (props.triggerOnFocus && !readonly) {
|
||||
debouncedGetData(String(queryString));
|
||||
}
|
||||
} else {
|
||||
ignoreFocusEvent = false;
|
||||
}
|
||||
};
|
||||
const handleBlur = (evt) => {
|
||||
setTimeout(() => {
|
||||
var _a;
|
||||
if ((_a = popperRef.value) == null ? void 0 : _a.isFocusInsideContent()) {
|
||||
ignoreFocusEvent = true;
|
||||
return;
|
||||
}
|
||||
activated.value && close();
|
||||
emit("blur", evt);
|
||||
});
|
||||
};
|
||||
const handleClear = () => {
|
||||
activated.value = false;
|
||||
emit(event.UPDATE_MODEL_EVENT, "");
|
||||
emit("clear");
|
||||
};
|
||||
const handleKeyEnter = async () => {
|
||||
var _a;
|
||||
if ((_a = inputRef.value) == null ? void 0 : _a.isComposing) {
|
||||
return;
|
||||
}
|
||||
if (suggestionVisible.value && highlightedIndex.value >= 0 && highlightedIndex.value < suggestions.value.length) {
|
||||
handleSelect(suggestions.value[highlightedIndex.value]);
|
||||
} else {
|
||||
if (props.selectWhenUnmatched) {
|
||||
emit("select", { value: props.modelValue });
|
||||
suggestions.value = [];
|
||||
highlightedIndex.value = -1;
|
||||
}
|
||||
activated.value = true;
|
||||
debouncedGetData(String(props.modelValue));
|
||||
}
|
||||
};
|
||||
const handleKeyEscape = (evt) => {
|
||||
if (suggestionVisible.value) {
|
||||
evt.preventDefault();
|
||||
evt.stopPropagation();
|
||||
close();
|
||||
}
|
||||
};
|
||||
const close = () => {
|
||||
activated.value = false;
|
||||
};
|
||||
const focus = () => {
|
||||
var _a;
|
||||
(_a = inputRef.value) == null ? void 0 : _a.focus();
|
||||
};
|
||||
const blur = () => {
|
||||
var _a;
|
||||
(_a = inputRef.value) == null ? void 0 : _a.blur();
|
||||
};
|
||||
const handleSelect = async (item) => {
|
||||
emit(event.INPUT_EVENT, item[props.valueKey]);
|
||||
emit(event.UPDATE_MODEL_EVENT, item[props.valueKey]);
|
||||
emit("select", item);
|
||||
suggestions.value = [];
|
||||
highlightedIndex.value = -1;
|
||||
};
|
||||
const highlight = (index) => {
|
||||
var _a, _b;
|
||||
if (!suggestionVisible.value || loading.value)
|
||||
return;
|
||||
if (index < 0) {
|
||||
if (!props.loopNavigation) {
|
||||
highlightedIndex.value = -1;
|
||||
return;
|
||||
}
|
||||
index = suggestions.value.length - 1;
|
||||
}
|
||||
if (index >= suggestions.value.length) {
|
||||
index = props.loopNavigation ? 0 : suggestions.value.length - 1;
|
||||
}
|
||||
const [suggestion, suggestionList] = getSuggestionContext();
|
||||
const highlightItem = suggestionList[index];
|
||||
const scrollTop = suggestion.scrollTop;
|
||||
const { offsetTop, scrollHeight } = highlightItem;
|
||||
if (offsetTop + scrollHeight > scrollTop + suggestion.clientHeight) {
|
||||
suggestion.scrollTop = offsetTop + scrollHeight - suggestion.clientHeight;
|
||||
}
|
||||
if (offsetTop < scrollTop) {
|
||||
suggestion.scrollTop = offsetTop;
|
||||
}
|
||||
highlightedIndex.value = index;
|
||||
(_b = (_a = inputRef.value) == null ? void 0 : _a.ref) == null ? void 0 : _b.setAttribute("aria-activedescendant", `${listboxId.value}-item-${highlightedIndex.value}`);
|
||||
};
|
||||
const getSuggestionContext = () => {
|
||||
const suggestion = regionRef.value.querySelector(`.${ns.be("suggestion", "wrap")}`);
|
||||
const suggestionList = suggestion.querySelectorAll(`.${ns.be("suggestion", "list")} li`);
|
||||
return [suggestion, suggestionList];
|
||||
};
|
||||
const stopHandle = core.onClickOutside(listboxRef, () => {
|
||||
var _a;
|
||||
if ((_a = popperRef.value) == null ? void 0 : _a.isFocusInsideContent())
|
||||
return;
|
||||
suggestionVisible.value && close();
|
||||
});
|
||||
const handleKeydown = (e) => {
|
||||
const code = event$1.getEventCode(e);
|
||||
switch (code) {
|
||||
case aria.EVENT_CODE.up:
|
||||
e.preventDefault();
|
||||
highlight(highlightedIndex.value - 1);
|
||||
break;
|
||||
case aria.EVENT_CODE.down:
|
||||
e.preventDefault();
|
||||
highlight(highlightedIndex.value + 1);
|
||||
break;
|
||||
case aria.EVENT_CODE.enter:
|
||||
e.preventDefault();
|
||||
handleKeyEnter();
|
||||
break;
|
||||
case aria.EVENT_CODE.tab:
|
||||
close();
|
||||
break;
|
||||
case aria.EVENT_CODE.esc:
|
||||
handleKeyEscape(e);
|
||||
break;
|
||||
case aria.EVENT_CODE.home:
|
||||
e.preventDefault();
|
||||
highlight(0);
|
||||
break;
|
||||
case aria.EVENT_CODE.end:
|
||||
e.preventDefault();
|
||||
highlight(suggestions.value.length - 1);
|
||||
break;
|
||||
case aria.EVENT_CODE.pageUp:
|
||||
e.preventDefault();
|
||||
highlight(Math.max(0, highlightedIndex.value - 10));
|
||||
break;
|
||||
case aria.EVENT_CODE.pageDown:
|
||||
e.preventDefault();
|
||||
highlight(Math.min(suggestions.value.length - 1, highlightedIndex.value + 10));
|
||||
break;
|
||||
}
|
||||
};
|
||||
vue.onBeforeUnmount(() => {
|
||||
stopHandle == null ? void 0 : stopHandle();
|
||||
});
|
||||
vue.onMounted(() => {
|
||||
var _a;
|
||||
const inputElement = (_a = inputRef.value) == null ? void 0 : _a.ref;
|
||||
if (!inputElement)
|
||||
return;
|
||||
[
|
||||
{ key: "role", value: "textbox" },
|
||||
{ key: "aria-autocomplete", value: "list" },
|
||||
{ key: "aria-controls", value: "id" },
|
||||
{
|
||||
key: "aria-activedescendant",
|
||||
value: `${listboxId.value}-item-${highlightedIndex.value}`
|
||||
}
|
||||
].forEach(({ key, value }) => inputElement.setAttribute(key, value));
|
||||
readonly = inputElement.hasAttribute("readonly");
|
||||
});
|
||||
expose({
|
||||
highlightedIndex,
|
||||
activated,
|
||||
loading,
|
||||
inputRef,
|
||||
popperRef,
|
||||
suggestions,
|
||||
handleSelect,
|
||||
handleKeyEnter,
|
||||
focus,
|
||||
blur,
|
||||
close,
|
||||
highlight,
|
||||
getData
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return vue.openBlock(), vue.createBlock(vue.unref(index$2.ElTooltip), {
|
||||
ref_key: "popperRef",
|
||||
ref: popperRef,
|
||||
visible: vue.unref(suggestionVisible),
|
||||
placement: _ctx.placement,
|
||||
"fallback-placements": ["bottom-start", "top-start"],
|
||||
"popper-class": [vue.unref(ns).e("popper"), _ctx.popperClass],
|
||||
"popper-style": _ctx.popperStyle,
|
||||
teleported: _ctx.teleported,
|
||||
"append-to": _ctx.appendTo,
|
||||
"gpu-acceleration": false,
|
||||
pure: "",
|
||||
"manual-mode": "",
|
||||
effect: "light",
|
||||
trigger: "click",
|
||||
transition: `${vue.unref(ns).namespace.value}-zoom-in-top`,
|
||||
persistent: "",
|
||||
role: "listbox",
|
||||
onBeforeShow: onSuggestionShow,
|
||||
onHide
|
||||
}, {
|
||||
content: vue.withCtx(() => [
|
||||
vue.createElementVNode("div", {
|
||||
ref_key: "regionRef",
|
||||
ref: regionRef,
|
||||
class: vue.normalizeClass([vue.unref(ns).b("suggestion"), vue.unref(ns).is("loading", vue.unref(suggestionLoading))]),
|
||||
style: vue.normalizeStyle({
|
||||
[_ctx.fitInputWidth ? "width" : "minWidth"]: dropdownWidth.value,
|
||||
outline: "none"
|
||||
}),
|
||||
role: "region"
|
||||
}, [
|
||||
_ctx.$slots.header ? (vue.openBlock(), vue.createElementBlock("div", {
|
||||
key: 0,
|
||||
class: vue.normalizeClass(vue.unref(ns).be("suggestion", "header")),
|
||||
onClick: vue.withModifiers(() => {
|
||||
}, ["stop"])
|
||||
}, [
|
||||
vue.renderSlot(_ctx.$slots, "header")
|
||||
], 10, ["onClick"])) : vue.createCommentVNode("v-if", true),
|
||||
vue.createVNode(vue.unref(index$3.ElScrollbar), {
|
||||
id: vue.unref(listboxId),
|
||||
tag: "ul",
|
||||
"wrap-class": vue.unref(ns).be("suggestion", "wrap"),
|
||||
"view-class": vue.unref(ns).be("suggestion", "list"),
|
||||
role: "listbox"
|
||||
}, {
|
||||
default: vue.withCtx(() => [
|
||||
vue.unref(suggestionLoading) ? (vue.openBlock(), vue.createElementBlock("li", { key: 0 }, [
|
||||
vue.renderSlot(_ctx.$slots, "loading", {}, () => [
|
||||
vue.createVNode(vue.unref(index$4.ElIcon), {
|
||||
class: vue.normalizeClass(vue.unref(ns).is("loading"))
|
||||
}, {
|
||||
default: vue.withCtx(() => [
|
||||
vue.createVNode(vue.unref(iconsVue.Loading))
|
||||
]),
|
||||
_: 1
|
||||
}, 8, ["class"])
|
||||
])
|
||||
])) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(suggestions.value, (item, index) => {
|
||||
return vue.openBlock(), vue.createElementBlock("li", {
|
||||
id: `${vue.unref(listboxId)}-item-${index}`,
|
||||
key: index,
|
||||
class: vue.normalizeClass({ highlighted: highlightedIndex.value === index }),
|
||||
role: "option",
|
||||
"aria-selected": highlightedIndex.value === index,
|
||||
onClick: ($event) => handleSelect(item)
|
||||
}, [
|
||||
vue.renderSlot(_ctx.$slots, "default", { item }, () => [
|
||||
vue.createTextVNode(vue.toDisplayString(item[_ctx.valueKey]), 1)
|
||||
])
|
||||
], 10, ["id", "aria-selected", "onClick"]);
|
||||
}), 128))
|
||||
]),
|
||||
_: 3
|
||||
}, 8, ["id", "wrap-class", "view-class"]),
|
||||
_ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div", {
|
||||
key: 1,
|
||||
class: vue.normalizeClass(vue.unref(ns).be("suggestion", "footer")),
|
||||
onClick: vue.withModifiers(() => {
|
||||
}, ["stop"])
|
||||
}, [
|
||||
vue.renderSlot(_ctx.$slots, "footer")
|
||||
], 10, ["onClick"])) : vue.createCommentVNode("v-if", true)
|
||||
], 6)
|
||||
]),
|
||||
default: vue.withCtx(() => [
|
||||
vue.createElementVNode("div", {
|
||||
ref_key: "listboxRef",
|
||||
ref: listboxRef,
|
||||
class: vue.normalizeClass([vue.unref(ns).b(), _ctx.$attrs.class]),
|
||||
style: vue.normalizeStyle(vue.unref(styles)),
|
||||
role: "combobox",
|
||||
"aria-haspopup": "listbox",
|
||||
"aria-expanded": vue.unref(suggestionVisible),
|
||||
"aria-owns": vue.unref(listboxId)
|
||||
}, [
|
||||
vue.createVNode(vue.unref(index$5.ElInput), vue.mergeProps({
|
||||
ref_key: "inputRef",
|
||||
ref: inputRef
|
||||
}, vue.mergeProps(vue.unref(passInputProps), _ctx.$attrs), {
|
||||
"model-value": _ctx.modelValue,
|
||||
disabled: vue.unref(disabled),
|
||||
onInput: handleInput,
|
||||
onChange: handleChange,
|
||||
onFocus: handleFocus,
|
||||
onBlur: handleBlur,
|
||||
onClear: handleClear,
|
||||
onKeydown: handleKeydown,
|
||||
onMousedown: handleMouseDown
|
||||
}), vue.createSlots({
|
||||
_: 2
|
||||
}, [
|
||||
_ctx.$slots.prepend ? {
|
||||
name: "prepend",
|
||||
fn: vue.withCtx(() => [
|
||||
vue.renderSlot(_ctx.$slots, "prepend")
|
||||
])
|
||||
} : void 0,
|
||||
_ctx.$slots.append ? {
|
||||
name: "append",
|
||||
fn: vue.withCtx(() => [
|
||||
vue.renderSlot(_ctx.$slots, "append")
|
||||
])
|
||||
} : void 0,
|
||||
_ctx.$slots.prefix ? {
|
||||
name: "prefix",
|
||||
fn: vue.withCtx(() => [
|
||||
vue.renderSlot(_ctx.$slots, "prefix")
|
||||
])
|
||||
} : void 0,
|
||||
_ctx.$slots.suffix ? {
|
||||
name: "suffix",
|
||||
fn: vue.withCtx(() => [
|
||||
vue.renderSlot(_ctx.$slots, "suffix")
|
||||
])
|
||||
} : void 0
|
||||
]), 1040, ["model-value", "disabled"])
|
||||
], 14, ["aria-expanded", "aria-owns"])
|
||||
]),
|
||||
_: 3
|
||||
}, 8, ["visible", "placement", "popper-class", "popper-style", "teleported", "append-to", "transition"]);
|
||||
};
|
||||
}
|
||||
});
|
||||
var Autocomplete = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "autocomplete.vue"]]);
|
||||
|
||||
exports["default"] = Autocomplete;
|
||||
//# sourceMappingURL=autocomplete2.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/autocomplete/src/autocomplete2.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/autocomplete/src/autocomplete2.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
5
frontend/node_modules/element-plus/lib/components/autocomplete/style/css.d.ts
generated
vendored
Normal file
5
frontend/node_modules/element-plus/lib/components/autocomplete/style/css.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import 'element-plus/es/components/base/style/css';
|
||||
import 'element-plus/theme-chalk/el-autocomplete.css';
|
||||
import 'element-plus/es/components/input/style/css';
|
||||
import 'element-plus/es/components/scrollbar/style/css';
|
||||
import 'element-plus/es/components/popper/style/css';
|
||||
9
frontend/node_modules/element-plus/lib/components/autocomplete/style/css.js
generated
vendored
Normal file
9
frontend/node_modules/element-plus/lib/components/autocomplete/style/css.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
require('../../base/style/css.js');
|
||||
require('element-plus/theme-chalk/el-autocomplete.css');
|
||||
require('../../input/style/css.js');
|
||||
require('../../scrollbar/style/css.js');
|
||||
require('../../popper/style/css.js');
|
||||
|
||||
//# sourceMappingURL=css.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/autocomplete/style/css.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/autocomplete/style/css.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
||||
5
frontend/node_modules/element-plus/lib/components/autocomplete/style/index.d.ts
generated
vendored
Normal file
5
frontend/node_modules/element-plus/lib/components/autocomplete/style/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import 'element-plus/es/components/base/style';
|
||||
import 'element-plus/theme-chalk/src/autocomplete.scss';
|
||||
import 'element-plus/es/components/input/style';
|
||||
import 'element-plus/es/components/scrollbar/style';
|
||||
import 'element-plus/es/components/popper/style';
|
||||
9
frontend/node_modules/element-plus/lib/components/autocomplete/style/index.js
generated
vendored
Normal file
9
frontend/node_modules/element-plus/lib/components/autocomplete/style/index.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
require('../../base/style/index.js');
|
||||
require('element-plus/theme-chalk/src/autocomplete.scss');
|
||||
require('../../input/style/index.js');
|
||||
require('../../scrollbar/style/index.js');
|
||||
require('../../popper/style/index.js');
|
||||
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/autocomplete/style/index.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/autocomplete/style/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
||||
Reference in New Issue
Block a user