2023-09-07 10:13:38 +08:00
|
|
|
<script setup>
|
|
|
|
const props = defineProps({
|
2023-10-23 18:22:43 +08:00
|
|
|
inverse: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false,
|
|
|
|
},
|
2023-09-07 10:13:38 +08:00
|
|
|
strokeWidth: {
|
|
|
|
type: [Number, String],
|
|
|
|
default: 3,
|
|
|
|
},
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2023-10-27 10:51:54 +08:00
|
|
|
<svg v-if="props.inverse" fill="none" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg">
|
2023-10-23 18:22:43 +08:00
|
|
|
<path
|
|
|
|
d="M42 8H6C4.89543 8 4 8.89543 4 10V38C4 39.1046 4.89543 40 6 40H42C43.1046 40 44 39.1046 44 38V10C44 8.89543 43.1046 8 42 8Z"
|
|
|
|
fill="currentColor"
|
|
|
|
stroke="currentColor"
|
|
|
|
stroke-width="3" />
|
2023-10-27 10:51:54 +08:00
|
|
|
<path :stroke-width="props.strokeWidth" d="M24 17V31" stroke="#FFF" stroke-linecap="round" />
|
|
|
|
<path :stroke-width="props.strokeWidth" d="M32 24V31" stroke="#FFF" stroke-linecap="round" />
|
|
|
|
<path :stroke-width="props.strokeWidth" d="M16 22V31" stroke="#FFF" stroke-linecap="round" />
|
2023-10-23 18:22:43 +08:00
|
|
|
</svg>
|
|
|
|
<svg v-else fill="none" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg">
|
2023-09-07 10:13:38 +08:00
|
|
|
<rect
|
2023-10-20 18:34:19 +08:00
|
|
|
:stroke-width="props.strokeWidth"
|
|
|
|
fill="none"
|
2023-09-07 10:13:38 +08:00
|
|
|
height="36"
|
|
|
|
rx="2"
|
|
|
|
stroke="currentColor"
|
|
|
|
stroke-linecap="round"
|
2023-10-20 18:34:19 +08:00
|
|
|
stroke-linejoin="round"
|
|
|
|
width="40"
|
|
|
|
x="4"
|
|
|
|
y="6" />
|
2023-09-07 10:13:38 +08:00
|
|
|
<path
|
2023-10-20 18:34:19 +08:00
|
|
|
:stroke-width="props.strokeWidth"
|
2023-09-07 10:13:38 +08:00
|
|
|
d="M32 25V32"
|
|
|
|
stroke="currentColor"
|
|
|
|
stroke-linecap="round"
|
|
|
|
stroke-linejoin="round" />
|
|
|
|
<path
|
2023-10-20 18:34:19 +08:00
|
|
|
:stroke-width="props.strokeWidth"
|
2023-09-07 10:13:38 +08:00
|
|
|
d="M24 16V32"
|
|
|
|
stroke="currentColor"
|
|
|
|
stroke-linecap="round"
|
|
|
|
stroke-linejoin="round" />
|
|
|
|
<path
|
2023-10-20 18:34:19 +08:00
|
|
|
:stroke-width="props.strokeWidth"
|
2023-09-07 10:13:38 +08:00
|
|
|
d="M16 20V32"
|
|
|
|
stroke="currentColor"
|
|
|
|
stroke-linecap="round"
|
|
|
|
stroke-linejoin="round" />
|
|
|
|
</svg>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<style lang="scss" scoped></style>
|