UNPKG

t-fighting-design

Version:

Fighting design can quickly build interactive interfaces in vue3 applications, which looks good.

2 lines (1 loc) 770 B
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("./index3.js"),l=require("../../svg-icon/index.js"),s=["data-key"],i=e.defineComponent({name:"FToolbarItem"}),a=e.defineComponent({...i,props:r.Props,setup(t){const n=t,c=o=>{n.click&&n.click(o)};return(o,u)=>(e.openBlock(),e.createElementBlock("span",{class:"f-toolbar-item","data-key":o.dataKey,style:e.normalizeStyle({color:o.color}),onClick:c},[o.icon?(e.openBlock(),e.createBlock(e.unref(l.FSvgIcon),{key:0,size:o.iconSize},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.icon)))]),_:1},8,["size"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default")],12,s))}});exports.default=a;