1.0.3 • Published 5 years ago

nat-vue-search v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

vue-search

用于搜索的input组件 npm.io

install

NPM

npm install nat-vue-search

用法

<template lang="html">
    <div id="project-features">
        <h1 class="title">Vue 搜索框</h1>
        <div class="features">
            <search v-model="searchText"></search>
            <p>{{searchText}}</p>
        </div>
    </div>
</template>
<script>
    import search from 'vue-search';

    export default {
        name: 'ProjectFeatures',
        components: {
            search
        },
        data() {
            return {
                searchText: ''
            }
        }
    };
</script>

API

props

属性说明类型默认值
placeholderplaceholderstring请输入查询信息

启动

npm run dev

编译

npm run build-lib
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago