ivue-material-plus
Version:
A high quality UI components Library with Vue.js
82 lines (79 loc) • 3.3 kB
JavaScript
import _sfc_main from './index.vue_vue_type_script_lang.mjs';
import { resolveComponent, openBlock, createBlock, withCtx, renderSlot, createVNode, createSlots, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from 'vue';
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_ivue_input = resolveComponent("ivue-input");
const _component_ivue_option = resolveComponent("ivue-option");
const _component_ivue_select = resolveComponent("ivue-select");
return openBlock(), createBlock(_component_ivue_select, {
modelValue: _ctx.data.currentValue,
placeholder: _ctx.placeholder,
disabled: _ctx.disabled,
placement: _ctx.placement,
transferClassName: _ctx.transferClassName,
searchMethod: _ctx.searchMethod,
transfer: _ctx.transfer,
capture: _ctx.capture,
notFindText: "",
loading: _ctx.loading,
loadingText: _ctx.loadingText,
id: null,
filterable: "",
"auto-complete": "",
ref: "select",
onOnSelect: _ctx.handleSelect,
onOnClickoutside: _ctx.handleClickOutside
}, {
input: withCtx(() => [
renderSlot(_ctx.$slots, "input", {}, () => [
createVNode(_component_ivue_input, {
modelValue: _ctx.data.currentValue,
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.data.currentValue = $event),
name: _ctx.name,
id: _ctx.inputId,
placeholder: _ctx.placeholder,
disabled: _ctx.disabled,
clearable: _ctx.clearable,
onOnFocus: _ctx.handleFocus,
onOnBlur: _ctx.handleBlur,
onOnClear: _ctx.handleClear,
ref: "input"
}, createSlots({ _: 2 }, [
_ctx.$slots.prefix ? {
name: "prefix",
fn: withCtx(() => [
renderSlot(_ctx.$slots, "prefix")
]),
key: "0"
} : void 0,
_ctx.$slots.suffix ? {
name: "suffix",
fn: withCtx(() => [
renderSlot(_ctx.$slots, "suffix")
]),
key: "1"
} : void 0
]), 1032, ["modelValue", "name", "id", "placeholder", "disabled", "clearable", "onOnFocus", "onOnBlur", "onOnClear"])
])
]),
default: withCtx(() => [
renderSlot(_ctx.$slots, "default", {}, () => [
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.filteredData, (item) => {
return openBlock(), createBlock(_component_ivue_option, {
value: item,
key: item
}, {
default: withCtx(() => [
createTextVNode(toDisplayString(item), 1)
]),
_: 2
}, 1032, ["value"]);
}), 128))
])
]),
_: 3
}, 8, ["modelValue", "placeholder", "disabled", "placement", "transferClassName", "searchMethod", "transfer", "capture", "loading", "loadingText", "onOnSelect", "onOnClickoutside"]);
}
var AutoComplete = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\louise\\person\\project\\GitHub\\ivue-ui-plus\\src\\components\\ivue-auto-complete\\index.vue"]]);
export { AutoComplete as default };
//# sourceMappingURL=index2.mjs.map