1.0.3 • Published 5 years ago
dcv-infocard v1.0.3
工程介绍
- 基于 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>
- 注意事项 需要和后台确认天气信息的图标名称,
1.0.3
5 years ago