This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0

开关增加文字支持

old
宇天 2019-09-05 21:32:35 +08:00
parent 0df60c5597
commit 77c3f6480d
1 changed files with 12 additions and 4 deletions

View File

@ -1,13 +1,21 @@
<template>
<label>
<span class="dot"></span>
</label>
<section>
<label>
<span class="dot"></span>
</label>
<slot></slot>
</section>
</template>
<style lang="scss">
:host {
display: inline-block;
section {
display: flex;
justify-content: center;
align-items: center;
}
label {
display: flex;
width: 38px;
@ -107,7 +115,7 @@ export default class Switch {
__init__() {
/* render */
this.__SWITCH__ = this.root.lastElementChild
this.__SWITCH__ = this.root.lastElementChild.firstElementChild
}
get value() {