123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <template>
- <view>
- <u-select v-model="show" :list="siteList" safe-area-inset-bottom @confirm="confirmSite" :confirm-color="'#3775F6'"></u-select>
- </view>
- </template>
- <script>
- export default {
- props:{
- defaultValue:Array,
- },
- data() {
- return {
- selectArr:[],
- show:false,
- siteList:[]
- };
- },
- mounted() {
- },
- watch:{
- show(newStatus){
-
- }
- },
- methods:{
- open(list){
- this.show = true
- this.$nextTick(() => {
- setTimeout(() => {
- this.siteList = this.defaultValue
- },3000)
- })
- },
- confirmSite(e){
- this.$emit('confirmSite' , e)
- }
- }
- }
- </script>
- <style lang="scss">
- </style>
|