fix select postion

This commit is contained in:
2023-05-26 16:37:09 +08:00
parent 6c966e8424
commit 13f45bcfef
8 changed files with 39 additions and 19 deletions

View File

@@ -33,7 +33,8 @@ const _sfc_main = defineComponent({
allowClear: { type: Boolean, default: false },
showSearch: { type: Boolean, default: false },
contentClass: null,
contentStyle: null
contentStyle: null,
position: { default: "top" }
},
emits: ["update:modelValue", "change", "search"],
setup(__props, { emit: emits }) {
@@ -180,6 +181,7 @@ const _sfc_main = defineComponent({
disabledInput: !__props.showSearch,
size: __props.size,
class: normalizeClass({ "layui-unselect": true }),
position: __props.position,
onRemove: handleRemove,
onClear: handleClear,
onInputValueChange: handleSearch,
@@ -199,7 +201,7 @@ const _sfc_main = defineComponent({
}, null, 8, ["class"])
]),
_: 1
}, 8, ["modelValue", "input-value", "allow-clear", "placeholder", "collapseTagsTooltip", "minCollapsedNum", "disabled", "disabledInput", "size"])) : (openBlock(), createBlock(_sfc_main$4, {
}, 8, ["modelValue", "input-value", "allow-clear", "placeholder", "collapseTagsTooltip", "minCollapsedNum", "disabled", "disabledInput", "size", "position"])) : (openBlock(), createBlock(_sfc_main$4, {
key: 1,
size: __props.size,
disabled: __props.disabled,