update
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
<template>
|
||||
<up-popup :show="popShow" @close="close" @open="open" mode="top" :round="0">
|
||||
<view class="u-p-32 box u-font-28">
|
||||
<up-search v-model="searchVal" @search="search" @clear="search" @click="search"></up-search>
|
||||
<view style="display: flex;align-items: center;">
|
||||
<up-search v-model="searchVal" actionText="" @search="search" @clear="search"></up-search>
|
||||
<text @tap="search">搜索</text>
|
||||
</view>
|
||||
</view>
|
||||
</up-popup>
|
||||
</template>
|
||||
@@ -16,7 +19,7 @@
|
||||
} from 'vue';
|
||||
|
||||
const refForm = ref(null)
|
||||
let searchVal=ref('')
|
||||
let searchVal = ref('')
|
||||
|
||||
const props = defineProps({
|
||||
show: {
|
||||
@@ -49,11 +52,12 @@
|
||||
function open() {
|
||||
|
||||
}
|
||||
function search(){
|
||||
emits('search',searchVal.value)
|
||||
|
||||
function search() {
|
||||
console.log(searchVal.value, '值啊啊啊啊 ')
|
||||
emits('search', searchVal.value)
|
||||
close()
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
Reference in New Issue
Block a user