翻譯|使用教程|編輯:龔雪|2022-08-17 10:42:46.057|閱讀 272 次
概述:本文主要為大家介紹如何開始使用Kendo UI for Vue的圖標按鈕組件,歡迎下載最新版控件體驗!
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關鏈接:
Kendo UI致力于新的開發,來滿足不斷變化的需求。Kendo UI for Vue使用旨在提高性能和豐富用戶體驗的Vue組件,幫助開發人員構建下一代應用程序。它是為Vue技術框架提供可用的Kendo UI組件,以便更快地構建更好的Vue應用程序。
您可以通過向其添加圖像、預定義或自定義圖標來增強 Button 的文本內容。
從 Web 標準的角度來看,最好使用背景圖像,因為圖標用于裝飾而不是表示結構內容。
Button提供以下選項:
下面的示例演示如何在 Button 中使用不同類型的圖標。
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產品技術交流群:726377843 歡迎一起進群討論
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉載自:慧都網