mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +08:00
a4063fd8d2
* docs: accessibility improvement for navbar * docs: accessibility improvement for demo * refactor: replace ElPopover with ElDropdown * docs: accessibility improvement for nav-full * docs: accessibility improvement for back-to-top * feat: add skip link that jump to the content
16 lines
387 B
Vue
16 lines
387 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>
|
|
<button class="switch" role="switch">
|
|
<div class="switch__action">
|
|
<div class="switch__icon">
|
|
<slot />
|
|
</div>
|
|
</div>
|
|
</button>
|
|
</template>
|