Commit 8e63a16d11e5726a01627d16b466fb52077fbef3

Authored by Aaron.Liu
1 parent 61296e41
Exists in master and in 1 other branch legacy

修复实例报错

examples/views/index.vue
... ... @@ -28,7 +28,7 @@
28 28 </div>
29 29 <div class="cpt-title">图片查看 eagle-image-view</div>
30 30 <div class="cpt-content">
31   - <eagle-image-view value="http://img5.imgtn.bdimg.com/it/u=2064073397,779040426&fm=26&gp=0.jpg"></eagle-image-view>
  31 + <eagle-image-view value="http://yiche-erp-test.oss-cn-hangzhou.aliyuncs.com/image/web/549df1ee-651f-4ad3-83cb-e812a7dda4a5.png"></eagle-image-view>
32 32 </div>
33 33 <div class="cpt-title">单选按钮组 eagle-radio-group</div>
34 34 <div class="cpt-content">
... ... @@ -36,7 +36,7 @@
36 36 </div>
37 37 <div class="cpt-title">下拉选择 eagle-select</div>
38 38 <div class="cpt-content">
39   - <!-- <eagle-select v-model="selectValue" :dataSource="[{ label: '选项A', value: 'A' }, { label: '选项B', value: 'B' }]"></eagle-select> -->
  39 + <eagle-select v-model="selectValue" :dataSource="[{ label: '选项A', value: 'A' }, { label: '选项B', value: 'B' }]"></eagle-select>
40 40 </div>
41 41 <div class="cpt-title">状态指示点 eagle-status-indicator</div>
42 42 <div class="cpt-content">
... ...
packages/form/index.vue
... ... @@ -16,10 +16,7 @@
16 16 <template>
17 17 <el-form class="eagle-form" ref="form" :model="model" v-bind="formProps">
18 18 <el-row :gutter="15">
19   - <!-- 这里可以合为一个代码段判断 -->
20 19 <template v-for="(data, index) in listOption.dataList">
21   - <!-- 这里可以判断是否满足分组条件决定显示title,另外下面content的class也可以判断,div可以换满span的col代替 -->
22   - <!-- 加上选项tips提示判断,类似avue -->
23 20 <template v-if="listOption.isGroup">
24 21 <slot v-if="$scopedSlots[data.key] || $slots[data.key]" :name="data.key" v-bind="{...data}"></slot>
25 22 <el-col v-else class="eagle-form__group-title" :key="data.key" :span="24">{{ data.label }}</el-col>
... ...