介紹使用 Switch 元件
Last updated 11 months ago
Was this helpful?
Switch 切換開關,通常用在開啟或關閉的功能上。
<bpa-switch labelText="text" v-model="isOpen"/>
<bpa-switch labelText="text" v-model="isOpen"> <template v-slot:close-text><img src="favicon.ico" alt=""/>Off</template> <template v-slot:open-text>On👍🏽</template> </bpa-switch>
id
String
random
labelText
v-slot:close-text
關閉/OFF
v-slot:open-text
開啟/ON
change