mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 18:01:24 +08:00
16 lines
381 B
Vue
16 lines
381 B
Vue
|
<script setup lang="ts">
|
||
|
// for now el-switch does not support customized icon in the dot
|
||
|
// we will implement a simple version of el-switch then update the switch
|
||
|
// component for this feature
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<div class="switch" role="switch">
|
||
|
<div class="switch__action">
|
||
|
<div class="switch__icon">
|
||
|
<slot />
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</template>
|