翻譯|使用教程|編輯:龔雪|2022-08-17 10:42:46.057|閱讀 272 次
概述:本文主要為大家介紹如何開始使用Kendo UI for Vue的圖標(biāo)按鈕組件,歡迎下載最新版控件體驗(yàn)!
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關(guān)鏈接:
Kendo UI致力于新的開發(fā),來滿足不斷變化的需求。Kendo UI for Vue使用旨在提高性能和豐富用戶體驗(yàn)的Vue組件,幫助開發(fā)人員構(gòu)建下一代應(yīng)用程序。它是為Vue技術(shù)框架提供可用的Kendo UI組件,以便更快地構(gòu)建更好的Vue應(yīng)用程序。
您可以通過向其添加圖像、預(yù)定義或自定義圖標(biāo)來增強(qiáng) Button 的文本內(nèi)容。
從 Web 標(biāo)準(zhǔn)的角度來看,最好使用背景圖像,因?yàn)閳D標(biāo)用于裝飾而不是表示結(jié)構(gòu)內(nèi)容。
Button提供以下選項(xiàng):
下面的示例演示如何在 Button 中使用不同類型的圖標(biāo)。
main.vue
<template> <div> <kbutton :icon="'refresh'">Kendo UI for Vue font icon</kbutton> <kbutton :image-url="'//demos.telerik.com/kendo-ui/content/shared/icons/sports/snowboarding.png'">Image icon</kbutton> <kbutton :icon-class="'fa fa-key fa-fw'">FontAwsome icon</kbutton> </div> </template> <script> import { Button } from '@progress/kendo-vue-buttons'; export default { components: { 'kbutton': Button } } </script> <style> .k-button + .k-button { margin-left: 5px } </style>
main.js
import { createApp } from 'vue' import App from './main.vue' createApp(App).mount('#app')
Telerik_KendoUI產(chǎn)品技術(shù)交流群:726377843 歡迎一起進(jìn)群討論
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自:慧都網(wǎng)