[新增] select 组件

This commit is contained in:
就眠仪式
2021-10-04 07:32:11 +08:00
parent 1ca3fae28e
commit 8f3b104c8b
5 changed files with 53 additions and 16 deletions

View File

@@ -198,9 +198,9 @@ export default {
<template>
<lay-form>
<lay-select>
<lay-select-option>北京</lay-select-option>
<lay-select-option>济南</lay-select-option>
<lay-select v-model="select">
<lay-select-option value="beijing" label="北京"></lay-select-option>
<lay-select-option value="jinan" label="济南"></lay-select-option>
</lay-select>
</lay-form>
</template>
@@ -211,7 +211,10 @@ import { ref } from 'vue'
export default {
setup() {
const select = ref("jinan")
return {
select
}
}
}