根据uniapp调整工程结构

This commit is contained in:
aixianling
2024-10-31 15:06:02 +08:00
parent 9b524f390c
commit b7d6c222e7
54 changed files with 1 additions and 2 deletions

35
components/AiMore.vue Normal file
View File

@@ -0,0 +1,35 @@
<template>
<section class="AiMore">
<u-icon :name="icon" color="#ddd" :label="value||placeholder" label-pos="left" :label-color="labelColor"
:label-size="size" :size="size" @click="$emit('click')"/>
</section>
</template>
<script>
export default {
name: "AiMore",
model: {
prop: "value",
event: "change"
},
props: {
placeholder: {default: "请选择"},
value: String,
icon: {default: "arrow-right"},
size: {default: 30}
},
computed: {
isEmpty() {
return !this.value
},
labelColor() {
return this.isEmpty ? "#999" : "#333"
}
}
}
</script>
<style lang="scss" scoped>
.AiMore {
}
</style>