This commit is contained in:
2024-09-24 17:04:44 +08:00
parent 6cd84e0021
commit 30528311c1
77 changed files with 2251 additions and 1361 deletions

View File

@@ -195,13 +195,16 @@ const _sfc_main = defineComponent({
useResizeObserver(mirrorRefEl, () => {
handleResize();
});
watch(() => inputValue.value, (val) => {
if (inputRefEl.value && !isComposing.value) {
nextTick(() => {
inputRefEl.value.value = val != null ? val : "";
});
watch(
() => inputValue.value,
(val) => {
if (inputRefEl.value && !isComposing.value) {
nextTick(() => {
inputRefEl.value.value = val != null ? val : "";
});
}
}
});
);
const moreCount = computed(() => {
if (tagData.value && computedTagData.value) {
return tagData.value.length - computedTagData.value.length;
@@ -261,7 +264,11 @@ const _sfc_main = defineComponent({
size: __props.size,
onClose: ($event) => {
var _a3;
return handleClose(item.value, index2 + ((_a3 = __props.minCollapsedNum) != null ? _a3 : 0), $event);
return handleClose(
item.value,
index2 + ((_a3 = __props.minCollapsedNum) != null ? _a3 : 0),
$event
);
}
}), {
default: withCtx(() => [