-
Notifications
You must be signed in to change notification settings - Fork 0
/
fa-checkbox.dist.js
1 lines (1 loc) · 1.1 KB
/
fa-checkbox.dist.js
1
;var _typeof='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a};function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var checkbox=function(){var a=function(i){return(+i).toFixed(2)+'em'},b=1.125,e={class:_defineProperty({'fa fa-stack-2x':!0},'fa-square-o',!0),style:{'font-size':a(b)}},f={class:_defineProperty({'fa fa-stack-1x':!0},'fa-check',!0),style:{'font-size':a(2/3*b)}},g={class:{'fa-stack':!0},style:{position:'relative',display:'inline-block',width:a(b),height:a(b),'line-height':a(b),'vertical-align':'middle',cursor:'pointer'}};return{name:'checkbox',props:{value:Boolean},methods:{toggle:function toggle(){this.$emit('input',!this.value)}},render:function render(i){var k=i('i',e),l=this.value?i('i',f):null,m={click:this.toggle},o=Object.assign({on:m},g);return i('span',o,[k,l])}}}();'object'===('undefined'==typeof module?'undefined':_typeof(module))&&(module.exports=checkbox);