Commit 2ff64112a1baada153cfa2db06aa1ef11dddd9d9
1 parent
8a0cdef2
Exists in
master
and in
2 other branches
fix: 修复Select传值
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
packages/schema-page/index.vue
| ... | ... | @@ -112,7 +112,7 @@ |
| 112 | 112 | <slot :name="item.slot" v-bind="{ ..._slotScope, ...slotScope }"></slot> |
| 113 | 113 | </template> |
| 114 | 114 | <template #footer="{ submit, cancel }"> |
| 115 | - <div style="text-align: center"> | |
| 115 | + <div style="text-align: center; width: 100%"> | |
| 116 | 116 | <el-button :size="_size" type="primary" @click="submit" :loading="submitting">确定</el-button> |
| 117 | 117 | <el-button :size="_size" plain @click="cancel">取消</el-button> |
| 118 | 118 | </div> | ... | ... |
packages/select/index.vue
| ... | ... | @@ -15,7 +15,7 @@ |
| 15 | 15 | v-on="bindEvents" |
| 16 | 16 | v-bind="$attrs" |
| 17 | 17 | > |
| 18 | - <slot v-if="$scopedSlots.default"></slot> | |
| 18 | + <slot v-if="$scopedSlots.default" :item="item"></slot> | |
| 19 | 19 | <template v-else> |
| 20 | 20 | <el-option v-for="item in optionsCurrent" :key="item.id" :label="labelFormat ? labelFormat(item) : item[labelKey]" :value="item[valueKey]" :disabled="item.disabled"> |
| 21 | 21 | <slot name="option" :item="item" :value="model"></slot> | ... | ... |