Skip to content

305 - 大写 #2281

@hxg2050

Description

@hxg2050
<script setup> import { ref, vModelText } from 'vue' const value = ref("") vModelText.beforeUpdate = (el, { value, modifiers }) => { if (value && modifiers.capitalize) { el.value = value[0].toLocaleUpperCase() + value.slice(1); } } </script>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @hxg2050

        Issue actions

          305 - 大写 · Issue #2281 · webfansplz/vuejs-challenges