iview input box click event with Icon

icon An icon can be added to the right of the input box through  attributes.

Clicking the icon will trigger an  on-click event.

<template>
    <Input v-model="value4" icon="ios-clock-outline" placeholder="Enter something..." style="width: 200px" @on-click=""></Input>
</template>
<script>
    export default {
        data () {
            return {
                value4: ''
            }
        }
    }
</script>

  Bind an @on-click directly to the onclick event

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324720981&siteId=291194637