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
26
27
28
29
| <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>
|
|