保誠-保戶業務員媒合平台
Mila
2021-11-08 d580f29634971b282b06b5760d2c633907058b45
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<template>
     <Scroll-Picker
          @input="selValue"
          :options="options"
          empty="無篩選結果"
          :value="initValue"
     ></Scroll-Picker>
</template>
 
<script lang='ts'>
import { Vue, Component, Prop, Emit } from 'nuxt-property-decorator';
 
@Component
export default class UiScrollPicker extends Vue {
     // https://reposhub.com/vuejs/form-input/wan2land-vue-scroll-picker.html
 
     @Prop() options!: string[];
     @Prop() initValue!: string;
 
     @Emit('change') selValue(value: string) {
          return value
     }
 
}
</script>