This commit is contained in:
aihe 2024-01-30 11:09:49 +08:00
parent 016ebc749e
commit d06038cb4f
24 changed files with 31 additions and 28 deletions

View File

@ -71,7 +71,7 @@
onHide() { onHide() {
}, },
destroyed() {}, unmounted() {},
methods: { methods: {
handleCloseModal() { handleCloseModal() {

View File

@ -165,7 +165,7 @@
onHide() { onHide() {
}, },
destroyed() {}, unmounted() {},
methods: { methods: {
handleCloseModal() { handleCloseModal() {

View File

@ -50,7 +50,7 @@
onHide() { onHide() {
}, },
destroyed() {}, unmounted() {},
methods: { methods: {
getCdnUrl, getCdnUrl,

View File

@ -130,7 +130,7 @@
onHide() { onHide() {
}, },
destroyed() {}, unmounted() {},
methods: { methods: {
goto, goto,

View File

@ -58,7 +58,7 @@
onHide() { onHide() {
}, },
destroyed() {}, unmounted() {},
methods: { methods: {
handleCloseModal() { handleCloseModal() {

View File

@ -101,7 +101,7 @@
onHide() { onHide() {
}, },
destroyed() {}, unmounted() {},
methods: { methods: {
initData() { initData() {

View File

@ -105,7 +105,7 @@
onHide() { onHide() {
}, },
destroyed() {}, unmounted() {},
methods: { methods: {
handleCloseModal() { handleCloseModal() {

View File

@ -71,7 +71,7 @@
onHide() { onHide() {
}, },
destroyed() {}, unmounted() {},
methods: { methods: {
handleCloseModal() { handleCloseModal() {

View File

@ -68,7 +68,7 @@
onHide() { onHide() {
}, },
destroyed() {}, unmounted() {},
methods: { methods: {
handleCheckBoxClick(curItem, index) { handleCheckBoxClick(curItem, index) {

View File

@ -64,7 +64,7 @@
onHide() { onHide() {
}, },
destroyed() {}, unmounted() {},
methods: { methods: {
handleCloseModal() { handleCloseModal() {

View File

@ -85,7 +85,7 @@
onHide() { onHide() {
}, },
destroyed() {}, unmounted() {},
methods: { methods: {
handleSelectDate() { handleSelectDate() {

View File

@ -75,7 +75,7 @@
onHide() { onHide() {
}, },
destroyed() {}, unmounted() {},
methods: { methods: {
handleClose() { handleClose() {

View File

@ -55,7 +55,7 @@
onHide() { onHide() {
}, },
destroyed() {}, unmounted() {},
methods: { methods: {
bindload: function(res) { bindload: function(res) {

View File

@ -41,7 +41,7 @@
onHide() { onHide() {
}, },
destroyed() {}, unmounted() {},
methods: { methods: {
handleChange(val){ handleChange(val){

View File

@ -36,7 +36,7 @@
onHide() { onHide() {
}, },
destroyed() {}, unmounted() {},
methods: { methods: {

View File

@ -36,7 +36,7 @@
onHide() { onHide() {
}, },
destroyed() {}, unmounted() {},
methods: { methods: {
onScrollBottom(){ onScrollBottom(){

View File

@ -63,7 +63,7 @@
onHide() { onHide() {
}, },
destroyed() {}, unmounted() {},
methods: { methods: {
handleSwitchFouce() { handleSwitchFouce() {

View File

@ -66,7 +66,7 @@
onHide() { onHide() {
}, },
destroyed() {}, unmounted() {},
methods: { methods: {
handleDataItemChange(val) { handleDataItemChange(val) {

View File

@ -80,7 +80,7 @@
onHide() { onHide() {
}, },
destroyed() {}, unmounted() {},
methods: {} methods: {}
} }

View File

@ -1,6 +1,6 @@
<template> <template>
<view class="" style="position: relative;"> <view class="" style="position: relative;">
<view @click="handleSelectSwitch"> <view @click.stop="handleSelectSwitch">
<slot v-if="customInput"></slot> <slot v-if="customInput"></slot>
<default-select-input v-if="!customInput" :placeholder="placeholder" :show="show" :list="list" :value="value" :isWhite="isWhite" :customStyle="customStyle"></default-select-input> <default-select-input v-if="!customInput" :placeholder="placeholder" :show="show" :list="list" :value="value" :isWhite="isWhite" :customStyle="customStyle"></default-select-input>
</view> </view>
@ -95,14 +95,17 @@
} }
}, },
created() { created() {
document.addEventListener('click', this.handleDocumentClick)
}, },
onHide() {
unmounted() {
document.removeEventListener('click', this.handleDocumentClick)
}, },
destroyed() {},
methods: { methods: {
handleDocumentClick(){
this.show = false
},
handleSelectSwitch() { handleSelectSwitch() {
// this.$emit('update:show', !this.show) // this.$emit('update:show', !this.show)
this.show = !this.show this.show = !this.show

View File

@ -45,7 +45,7 @@
onHide() { onHide() {
}, },
destroyed() {}, unmounted() {},
methods: { methods: {
handleChangeTab(cur){ handleChangeTab(cur){

View File

@ -61,7 +61,7 @@
onHide() { onHide() {
}, },
destroyed() {}, unmounted() {},
methods: { methods: {
handleDeleteItem(curItem) { handleDeleteItem(curItem) {

View File

@ -27,7 +27,7 @@
onHide() { onHide() {
}, },
destroyed() {}, unmounted() {},
methods: { methods: {
handleChange(val){ handleChange(val){

View File

@ -149,7 +149,7 @@
onHide() { onHide() {
}, },
destroyed() {}, unmounted() {},
methods: { methods: {
doChooseFile(opt = {}) { doChooseFile(opt = {}) {