You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.2 KiB

<template>
<div>
4 years ago
<image-select v-model="radio" :options="options" :multiple="false" />
<el-radio-group v-model="radio">
<el-radio :label="3">备选项</el-radio>
<el-radio :label="6">备选项</el-radio>
<el-radio :label="9">备选项</el-radio>
</el-radio-group>
</div>
</template>
<script>
5 years ago
export default {
name: 'App',
components: {
},
data() {
return {
4 years ago
options: [{
'label': '选项一',
'value': 1,
'image': 'https://freebrio.oss-cn-shanghai.aliyuncs.com/05f1fb3e58764a48a5094f0bc9351bd3.png'
}, {
'label': '选项二',
'value': 2,
'image': 'https://freebrio.oss-cn-shanghai.aliyuncs.com/062cf61ad5724ac3bc99f0341b3770da.png'
}],
radio: [1]
}
},
5 years ago
mounted() {
5 years ago
},
methods: {
success(params) {
5 years ago
// eslint-disable-next-line no-debugger
// params 返回的二次验证参数, 和登录参数一起回传给登录接口,方便后台进行二次验证
console.log(params)
},
useVerify() {
this.$refs.verify.show()
}
}
}
</script>