工作台
This commit is contained in:
38
components/oct-picker.vue
Normal file
38
components/oct-picker.vue
Normal file
@@ -0,0 +1,38 @@
|
||||
<template>
|
||||
<view>
|
||||
<picker mode="selector" :range="range" range-key="title">
|
||||
<view class=""></view>
|
||||
</picker>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
};
|
||||
},
|
||||
props: {
|
||||
range: {
|
||||
type : Array,
|
||||
default : () => {
|
||||
return []
|
||||
}
|
||||
},
|
||||
id: {
|
||||
type : Number,
|
||||
default : ''
|
||||
}
|
||||
},
|
||||
watch(){
|
||||
id: (val, old) => {
|
||||
console.log(val, old)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user