27 lines
500 B
JavaScript
27 lines
500 B
JavaScript
var sampleStationComponent = {
|
|
props : ['label'],
|
|
template : `
|
|
<v-select
|
|
:items="items"
|
|
:label="_label"
|
|
|
|
></v-select>`,
|
|
|
|
data () {
|
|
return {
|
|
items: ['Laboratorium', 'Lain - lain']
|
|
}
|
|
|
|
},
|
|
|
|
computed : {
|
|
_label () {
|
|
if (this.label)
|
|
return this.label;
|
|
|
|
return "Sample Station";
|
|
}
|
|
}
|
|
}
|
|
|
|
export { sampleStationComponent } |