This commit is contained in:
gyq
2025-09-15 09:21:33 +08:00
13 changed files with 1135 additions and 33 deletions

View File

@@ -7,25 +7,37 @@
{{ props.intro }}
</div>
</div>
<div class="ml-30">
<el-switch v-model="isOpen" v-if="props.showSwitch" />
</div>
</div>
</template>
<script setup>
import defaultIcon from '@/assets/logo.png';
import defaultIcon from "@/assets/logo.png";
const props = defineProps({
icon: {
type: String,
defautl: ''
defautl: "",
},
name: {
type: String,
default: ''
default: "",
},
intro: {
type: String,
default: ''
}
default: "",
},
showSwitch: {
type: Boolean,
default: false,
},
});
const isOpen = defineModel("isOpen", {
type: Boolean,
default: false,
});
// 动态获取PNG图标路径
@@ -45,7 +57,7 @@ const getIconPath = (iconName) => {
display: flex;
align-items: center;
padding: 10px;
background-color: #F8F8F8;
background-color: #f8f8f8;
border-radius: 4px;
transition: all 0.1s ease-in-out;