提交组件
This commit is contained in:
30
src/views/AppSelect.vue
Normal file
30
src/views/AppSelect.vue
Normal file
@@ -0,0 +1,30 @@
|
||||
<template>
|
||||
<el-select v-model="value" placeholder="品类" size="small">
|
||||
<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: "AppSelect",
|
||||
label: "下拉菜单",
|
||||
data() {
|
||||
return {
|
||||
options: [],
|
||||
value: ''
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
:deep(.el-input__inner) {
|
||||
background: linear-gradient(180deg, rgba(12, 53, 111, 0) 0%, #0C356F 100%);
|
||||
border: 1px solid #1760AE;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user