## 組件基本定義方法
```
<style lang='less'>
</style>
<template>
<div>
<height-camera :isOpen="face_shows2" @ret-fun="retFun"></height-camera>
<span>{{sum}}</span>
</div>
</template>
<script>
import { mailList } from '@/api/eventlist'
import HeightCamera from '_c/height-camera'
export default {
components: {
// 頁面用到的組件
HeightCamera
},
props:['a','b','c'],
data () {
// 頁面的變量定義
return {
face_shows2: true
}
},
computed: {
// 計算屬性
sum () {
return 100
}
},
methods: {
// 頁面里面用到的所有函數
fun1 () {},
fun2 (data) {
this.$emit('ret-fun', data)
}
},
mounted () {
// 初始化的js代碼
mailList().then(ret => {}) // 調用接口
}
}
</script>
```
- vue學習方向
- iview-admin項目說明
- 快速開始
- 開發工具
- 開始開發
- 接口的定義和調用
- 常用函數匯總
- 組件的定義
- iview開發規范說明
- 插件使用說明
- 時間插件
- 命名規范
- vue變量函數規則
- 接口嵌套使用說明
- 組件建立說明
- vue使用規范
- 數據檢測特別說名
- iview-layout-themes
- util
- common
- xeUtils詳細說明
- form表單自動生成
- theme1使用說明
- theme2使用說明
- hd-login登錄組件說明
- wl-upload-files圖片上傳組件
- wl-upload-imgs
- wl-upload-oss-files
- wl-read-excel
- wl-dir-upload選擇文件架
- system組件說明
- 機構管理wl-company-manager
- 用戶管理
- wl-excel-import Excel數據導入
- 前臺使用說明
- 后臺使用說明
- Excel使用說明
- wl-vue2-editor
- 字符串截取方法
- redis常用說明
- 推薦redis使用規范