birdpaper-icon
Version:
基于 Remix icon 生成的 Vue3 图标组件库
2 lines (1 loc) • 1.25 kB
JavaScript
import{defineComponent as m}from"vue";import{computed as r}from"vue";import{createElementVNode as p,normalizeClass as c,normalizeStyle as f,openBlock as d,createElementBlock as u}from"vue";var k=["fill"],y=function(t,e){return d(),u("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:c(t.cls),style:f(t.innerStyle),fill:t.fill,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},[...e[1]||(e[1]=[p("path",{d:"M19.586 21H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h.586L1.394 2.808l1.414-1.415 19.799 19.8-1.415 1.414L19.586 21ZM7.556 8.97a6 6 0 0 0 8.475 8.475l-1.417-1.417a4 4 0 0 1-5.642-5.642L7.555 8.97ZM22 17.786l-4.045-4.045a6 6 0 0 0-6.695-6.695L8.107 3.892 9 3h6l2 2h4a1 1 0 0 1 1 1v11.786Zm-8.492-8.492a4.014 4.014 0 0 1 2.198 2.198l-2.197-2.198Z"},null,-1)])],14,k)},w=m({name:"IconCameraOffFill",render:y,props:{size:{type:String,default:"18px"},fill:{type:String,default:"#595959"},spin:{type:Boolean,default:!1},rotate:{type:Number}},emits:["click"],setup(n,{emit:t}){let e=n,l=t,o="bp-icon",i=r(()=>[o,`${o}-icon-camera-off-fill`,{[`${o}-spin`]:e.spin}]),a=r(()=>({width:e.size,height:e.size,transform:e.rotate?`rotate(${e.rotate}deg)`:void 0}));return{cls:i,innerStyle:a,onClick:s=>l("click",s)}}});export{w as default};