fix(pickers): repair data-slot selectors and align demos with the baseline
The CSS port prefixed data-slot attribute values with hv-, so the compiled selectors never matched the DOM and the ComboBox trigger chevron never rotated. Only class names get the prefix; slot values stay byte-identical. Also commit typed text as the value when allowsCustomValue finds no record, restore the baseline search-field shell in all 24 Autocomplete demos, and correct both doc pages against the pinned upstream sources.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import {
|
||||
Button,
|
||||
ComboBox,
|
||||
@@ -15,9 +16,11 @@ import {
|
||||
Surface,
|
||||
} from "@heroui-vue/components";
|
||||
|
||||
const message = ref("");
|
||||
|
||||
function onSubmit(event: Event) {
|
||||
event.preventDefault();
|
||||
alert("表单提交成功!");
|
||||
message.value = "表单提交成功!";
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -61,6 +64,9 @@ function onSubmit(event: Event) {
|
||||
<FieldError />
|
||||
</ComboBox>
|
||||
<Button type="submit">提交</Button>
|
||||
<p v-if="message" class="text-sm text-muted" role="status">
|
||||
{{ message }}
|
||||
</p>
|
||||
</Form>
|
||||
</Surface>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user