```
watch: {
formValue: {
deep: true,
handler(newV, oldV) {
console.log(newV.sheji)
console.log(oldV.sheji)
}
}
},
```
對象必須要設置深度模式才能獲取到值
```
<el-row :gutter="100">
<el-col style="margin-bottom: 20px;" :span="6" v-for="(o, index) in 8" :key="o" >
<el-radio-group v-model="formValue.sheji">
<el-card :class="Imgid == index?'ka':''" :body-style="{ padding: '20px' }" shadow="hover">
<div v-show="Imgid == index" slot="header" class="clearfix">
<span style="color: #409EFF;">使用中</span>
</div>
<img :src="img_src+'1'+'-'+o+'.png'" class="image">
<div style="padding: 25px;">
<span style="font-size: 13px;margin-bottom: 20px;">{{img_text[index]}}</span>
<div class="bottom clearfix ">
<el-radio style="font-size: 13px;margin-top: 20px;" :label="o" border>設置默認</el-radio>
<!-- <el-button style="font-size: 13px;margin-top: 20px;" @click="getImgid(index)" type="primary" plain size="small" class="button">設置默認</el-button> -->
</div>
</div>
</el-card>
</el-radio-group>
</el-col>
</el-row>
```
```
formValue: {
goods_title: "",
goods_categoryid: '',
goods_original: 0,
goods_price: 0,
goods_reserve: 0,
goods_showsales: 0,
goods_sort: 0,
goods_msrc: [],
goods_status: 0,
goods_istop: 1,
goods_contents: '',
sku: [],
links: [],
list1: [],
sheji: 0
},
```
- webpack-dev-server不是內部或外部命令
- vue+ele添加笑臉表情
- from UglifyJs Unexpected token: punc (()
- vmodel-ref
- jscopy
- watch_or_computed
- checkbox-group
- array_filter
- array many filter
- js array unshift
- vue watch one
- sku
- edit-button
- el-select clearable placeholder
- 必填
- 如何設置一個索引從1開始
- Injection "elForm" not found
- $refs
- resetFields
- table 二級數據
- Table 合并
- switch 開關
- radio group 單選
- 二級菜單
- 訪問頁面出錯后退到上一頁
- 編輯器tinymce
- v-for從1開始索引
- 圖片綁定路徑
- 分欄間隔
- class綁定card底色
- 動態增減表單項
- watch deep
- form 獲取值
- table索引方法
- table兩個改一個另一個也跟著變解決方法
- table標題改整列
- vue echarts