mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-16 22:23:42 +08:00
43 lines
682 B
Vue
43 lines
682 B
Vue
<template>
|
|
<el-select
|
|
v-model="model"
|
|
:placeholder="placeholder"
|
|
:value="value"
|
|
@change="$emit('update:value', $event)"
|
|
style="--el-border-radius-base: 20px"
|
|
>
|
|
<el-option
|
|
v-for="item in options"
|
|
:key="item.value"
|
|
:label="item.label"
|
|
:value="item.value"
|
|
>
|
|
</el-option>
|
|
</el-select>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "BlackSelect",
|
|
props: {
|
|
value: {
|
|
type: String,
|
|
default: ""
|
|
},
|
|
placeholder: {
|
|
type: String,
|
|
default: "请选择"
|
|
},
|
|
options: {
|
|
type: Array,
|
|
default: []
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
model: this.value
|
|
};
|
|
}
|
|
};
|
|
</script>
|