feat: establish composed color field and input group protocols

This commit is contained in:
maoyingjie
2026-10-25 15:20:02 +08:00
parent a41517aa76
commit db18d0d3da
31 changed files with 1859 additions and 39 deletions
@@ -72,7 +72,7 @@ export function useTextControl(
watch(element, (next) => field?.setControl(next), { flush: "post" });
function update(event: Event) {
const next = (event.target as HTMLInputElement).value;
if (!disabled() && !readOnly()) {
if (!event.defaultPrevented && !disabled() && !readOnly()) {
internal.value = next;
field?.setValue(next);
emit("update:modelValue", next);