PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / trunk
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler vtrunk
1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 All 49 releases
fluent-cart / assets / chunks / IconButton.js

IconButton.js in FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler trunk, at assets/chunks/IconButton.js

2 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import{c as i,w as s,n as a,E as c,r as g,o as n,m as o}from"./vue.esm-bundler.js?ver=1.6.6";import{_ as h}from"./_plugin-vue_export-helper.js?ver=1.6.6";const u={name:"IconButton",props:{title:{type:String},href:{type:String},target:{type:String},border:{type:String},router_link:{type:Boolean},to:{type:Object},size:{type:String},tag:{type:String},circle:{type:Boolean},bg:{type:String},hover:{type:String}},computed:{isBorder(){return this.border?"border-"+this.border:""},isSize(){return this.size?this.size:""},isTag(){return this.tag?this.tag:"div"},isCircle(){return this.circle?"is-circle":""},isBg(){return this.bg?this.bg:""},isHover(){return this.hover?"hover-"+this.hover:""}}};function d(r,f,e,y,m,t){const l=g("router-link");return e.to?(n(),i(l,{key:0,to:e.to,class:a(["icon-button",[t.isBorder,t.isSize,t.isCircle,t.isBg,t.isHover]]),title:e.title,target:e.target},{default:s(()=>[o(r.$slots,"default")]),_:3},8,["to","class","title","target"])):(n(),i(c(t.isTag),{key:1,class:a(["icon-button",[t.isBorder,t.isSize,t.isCircle,t.isBg,t.isHover]]),href:e.href,title:e.title,target:e.target},{default:s(()=>[o(r.$slots,"default")]),_:3},8,["class","href","title","target"]))}const S=h(u,[["render",d]]);export{S as I};
2