1.0.3 • Published 5 years ago

dcv-infocard v1.0.3

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

工程介绍

  • 基于 vue 组件模板
  • 需要 ant-design-vue 的依赖环境

1、组件使用

    npm i dcv-weather
  • 使用组件
        <template>
            <div>
                <dcv-weather :title="title" :btnClick="btnClick"></dcv-weather>
            </div>
        </template>

        <script>
        import dcv-weather from 'dcv-weather';
        export default {
            name: 'App',
            components: { dcv-weather },
            data() {
                return {
                    title: '天气组件',
                    btnClick: function() {
                        console.log('组件触发了点击事件')
                    }
                }
            }
        }
        </script>
  • 注意事项 需要和后台确认天气信息的图标名称,