Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hhorg/icon

Package Overview
Dependencies
Maintainers
0
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hhorg/icon - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

2

lib/hh-icon.browser.js

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@hhorg/mobile-vue2")):"function"==typeof define&&define.amd?define(["exports","@hhorg/mobile-vue2"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).realize={},e.mobileVue2)}(this,(function(e,t){"use strict";var i={install:function(e,i){var s=i.url,o=void 0===s?"":s,n=i.css,r=void 0===n?"":n,c=i.js,d=void 0===c?"":c,l="",u="";if(o?o.endsWith(".css")?(l=o,u=o.replace(".css",".js")):(l=o.replace(".js",".css"),u=o):(r&&(l=r),d&&(u=d)),l){var a=document.createElement("link");a.setAttribute("rel","stylesheet"),a.setAttribute("type","text/css"),a.setAttribute("href",l),document.head.appendChild(a)}if(u){var f=document.createElement("script");f.setAttribute("type","text/javascript"),f.setAttribute("src",u),document.head.appendChild(f)}e.component("HhIcon",t.HhIcon)}};e.default=i}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).realize={})}(this,(function(e){"use strict";function t(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===i&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}t(".hh-icon--symbol{position:relative;display:inline-block}.hh-icon--symbol .icon-dot{position:absolute;padding:8px;border-radius:50px;z-index:1;background:#ee0a24;border:1px solid #fff;color:#fff;font-size:12px;line-height:12px;font-weight:600}");var i={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.dot?i("div",{staticClass:"hh-icon--symbol"},[i("svg",e._g({style:e.styles},e.$listeners),[i("use",{attrs:{"xlink:href":"#"+e.iconName}})]),e._v(" "),i("span",{staticClass:"icon-dot",style:e.dotStyles},[e._v(e._s(e.badgeText))])]):i("svg",e._g({style:e.styles},e.$listeners),[i("use",{attrs:{"xlink:href":"#"+e.iconName}})])},staticRenderFns:[],name:"IconSymbol",props:{name:{type:String,required:!0},size:{type:String|Number},dot:{type:Boolean,default:!1},badge:{type:String|Number},badgeMax:{type:Number}},computed:{iconName:function(){return""+this.name},iconSize:function(){return this.size?"number"==typeof this.size?this.size+"px":this.size:"16px"},styles:function(){var e={width:this.iconSize,height:this.iconSize,fill:"currentColor",overflow:"hidden"};if(this.size){var t="number"==typeof this.size?this.size+"px":this.size;e.width=t,e.height=t}return e},dotStyles:function(){var e=this.iconSize.replace("px","")-4+"px";return{bottom:""+e,left:""+e,padding:this.badge?"2px 4px":"4px"}},badgeText:function(){return this.badge?this.badge>this.badgeMax?this.badgeMax+"+":this.badge:""}}};t(".ds-iconfont{position:relative}.ds-iconfont .icon-dot{position:absolute;padding:8px;border-radius:50px;z-index:1;background:#ee0a24;border:1px solid #fff;color:#fff;font-size:12px;line-height:12px;font-weight:600}");var n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.symbol?i("IconSymbol",e._b({},"IconSymbol",e.$props,!1)):i("IconFont",e._b({},"IconFont",e.$props,!1))},staticRenderFns:[],name:"HhIcon",components:{IconSymbol:i,IconFont:{render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("i",e._g(e._b({class:e.iconName,style:e.styles},"i",e.$attrs,!1),e.$listeners),[e.dot?[i("span",{staticClass:"icon-dot",style:e.dotStyles},[e._v(e._s(e.badgeText))])]:e._e()],2)},staticRenderFns:[],name:"IconFont",props:{name:{type:String,required:!0},dot:{type:Boolean,default:!1},badge:{type:String|Number},badgeMax:{type:Number},size:{type:String|Number},color:{type:String,default:""}},computed:{iconName:function(){return"ds-iconfont iconfont "+this.name},iconFontSize:function(){return this.size?"number"==typeof this.size?this.size+"px":this.size:"16px"},styles:function(){var e={fontSize:this.iconFontSize};return this.color&&(e.color=this.color),e},dotStyles:function(){var e=this.iconFontSize.replace("px","")-4+"px";return{bottom:""+e,left:""+e,padding:this.badge?"2px 4px":"4px"}},badgeText:function(){return this.badge?this.badge>this.badgeMax?this.badgeMax+"+":this.badge:""}}}},props:{name:{type:String,required:!0},symbol:{type:Boolean,default:!1},dot:{type:Boolean,default:!1},badge:{type:String|Number},badgeMax:{type:Number},size:{type:String|Number},color:{type:String,default:""}}},o={install:function(e,t){var i=t.url,o=void 0===i?"":i,s=t.css,r=void 0===s?"":s,a=t.js,d=void 0===a?"":a,c="",l="";if(o?o.endsWith(".css")?(c=o,l=o.replace(".css",".js")):(c=o.replace(".js",".css"),l=o):(r&&(c=r),d&&(l=d)),c){var p=document.createElement("link");p.setAttribute("rel","stylesheet"),p.setAttribute("type","text/css"),p.setAttribute("href",c),document.head.appendChild(p)}if(l){var u=document.createElement("script");u.setAttribute("type","text/javascript"),u.setAttribute("src",l),document.head.appendChild(u)}e.component("HhIcon",n)}};e.default=o}));
//# sourceMappingURL=hh-icon.browser.js.map

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@hhorg/mobile-vue2"),t={install:function(t,s){var r=s.url,c=void 0===r?"":r,i=s.css,n=void 0===i?"":i,o=s.js,a=void 0===o?"":o,d="",u="";if(c?c.endsWith(".css")?(d=c,u=c.replace(".css",".js")):(d=c.replace(".js",".css"),u=c):(n&&(d=n),a&&(u=a)),d){var l=document.createElement("link");l.setAttribute("rel","stylesheet"),l.setAttribute("type","text/css"),l.setAttribute("href",d),document.head.appendChild(l)}if(u){var p=document.createElement("script");p.setAttribute("type","text/javascript"),p.setAttribute("src",u),document.head.appendChild(p)}t.component("HhIcon",e.HhIcon)}};exports.default=t;
"use strict";function e(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===i&&n.firstChild?n.insertBefore(s,n.firstChild):n.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}Object.defineProperty(exports,"__esModule",{value:!0});e(".hh-icon--symbol{position:relative;display:inline-block}.hh-icon--symbol .icon-dot{position:absolute;padding:8px;border-radius:50px;z-index:1;background:#ee0a24;border:1px solid #fff;color:#fff;font-size:12px;line-height:12px;font-weight:600}");var t={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.dot?i("div",{staticClass:"hh-icon--symbol"},[i("svg",e._g({style:e.styles},e.$listeners),[i("use",{attrs:{"xlink:href":"#"+e.iconName}})]),e._v(" "),i("span",{staticClass:"icon-dot",style:e.dotStyles},[e._v(e._s(e.badgeText))])]):i("svg",e._g({style:e.styles},e.$listeners),[i("use",{attrs:{"xlink:href":"#"+e.iconName}})])},staticRenderFns:[],name:"IconSymbol",props:{name:{type:String,required:!0},size:{type:String|Number},dot:{type:Boolean,default:!1},badge:{type:String|Number},badgeMax:{type:Number}},computed:{iconName:function(){return""+this.name},iconSize:function(){return this.size?"number"==typeof this.size?this.size+"px":this.size:"16px"},styles:function(){var e={width:this.iconSize,height:this.iconSize,fill:"currentColor",overflow:"hidden"};if(this.size){var t="number"==typeof this.size?this.size+"px":this.size;e.width=t,e.height=t}return e},dotStyles:function(){var e=this.iconSize.replace("px","")-4+"px";return{bottom:""+e,left:""+e,padding:this.badge?"2px 4px":"4px"}},badgeText:function(){return this.badge?this.badge>this.badgeMax?this.badgeMax+"+":this.badge:""}}};e(".ds-iconfont{position:relative}.ds-iconfont .icon-dot{position:absolute;padding:8px;border-radius:50px;z-index:1;background:#ee0a24;border:1px solid #fff;color:#fff;font-size:12px;line-height:12px;font-weight:600}");var i={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.symbol?i("IconSymbol",e._b({},"IconSymbol",e.$props,!1)):i("IconFont",e._b({},"IconFont",e.$props,!1))},staticRenderFns:[],name:"HhIcon",components:{IconSymbol:t,IconFont:{render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("i",e._g(e._b({class:e.iconName,style:e.styles},"i",e.$attrs,!1),e.$listeners),[e.dot?[i("span",{staticClass:"icon-dot",style:e.dotStyles},[e._v(e._s(e.badgeText))])]:e._e()],2)},staticRenderFns:[],name:"IconFont",props:{name:{type:String,required:!0},dot:{type:Boolean,default:!1},badge:{type:String|Number},badgeMax:{type:Number},size:{type:String|Number},color:{type:String,default:""}},computed:{iconName:function(){return"ds-iconfont iconfont "+this.name},iconFontSize:function(){return this.size?"number"==typeof this.size?this.size+"px":this.size:"16px"},styles:function(){var e={fontSize:this.iconFontSize};return this.color&&(e.color=this.color),e},dotStyles:function(){var e=this.iconFontSize.replace("px","")-4+"px";return{bottom:""+e,left:""+e,padding:this.badge?"2px 4px":"4px"}},badgeText:function(){return this.badge?this.badge>this.badgeMax?this.badgeMax+"+":this.badge:""}}}},props:{name:{type:String,required:!0},symbol:{type:Boolean,default:!1},dot:{type:Boolean,default:!1},badge:{type:String|Number},badgeMax:{type:Number},size:{type:String|Number},color:{type:String,default:""}}},n={install:function(e,t){var n=t.url,s=void 0===n?"":n,o=t.css,r=void 0===o?"":o,a=t.js,d=void 0===a?"":a,c="",l="";if(s?s.endsWith(".css")?(c=s,l=s.replace(".css",".js")):(c=s.replace(".js",".css"),l=s):(r&&(c=r),d&&(l=d)),c){var p=document.createElement("link");p.setAttribute("rel","stylesheet"),p.setAttribute("type","text/css"),p.setAttribute("href",c),document.head.appendChild(p)}if(l){var u=document.createElement("script");u.setAttribute("type","text/javascript"),u.setAttribute("src",l),document.head.appendChild(u)}e.component("HhIcon",i)}};exports.default=n;
//# sourceMappingURL=hh-icon.cjs.js.map

@@ -1,2 +0,2 @@

import{HhIcon as e}from"@hhorg/mobile-vue2";var t={install:function(t,s){var r=s.url,i=void 0===r?"":r,c=s.css,a=void 0===c?"":c,n=s.js,o=void 0===n?"":n,d="",l="";if(i?i.endsWith(".css")?(d=i,l=i.replace(".css",".js")):(d=i.replace(".js",".css"),l=i):(a&&(d=a),o&&(l=o)),d){var p=document.createElement("link");p.setAttribute("rel","stylesheet"),p.setAttribute("type","text/css"),p.setAttribute("href",d),document.head.appendChild(p)}if(l){var u=document.createElement("script");u.setAttribute("type","text/javascript"),u.setAttribute("src",l),document.head.appendChild(u)}t.component("HhIcon",e)}};export{t as default};
function e(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===i&&n.firstChild?n.insertBefore(s,n.firstChild):n.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}e(".hh-icon--symbol{position:relative;display:inline-block}.hh-icon--symbol .icon-dot{position:absolute;padding:8px;border-radius:50px;z-index:1;background:#ee0a24;border:1px solid #fff;color:#fff;font-size:12px;line-height:12px;font-weight:600}");var t={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.dot?i("div",{staticClass:"hh-icon--symbol"},[i("svg",e._g({style:e.styles},e.$listeners),[i("use",{attrs:{"xlink:href":"#"+e.iconName}})]),e._v(" "),i("span",{staticClass:"icon-dot",style:e.dotStyles},[e._v(e._s(e.badgeText))])]):i("svg",e._g({style:e.styles},e.$listeners),[i("use",{attrs:{"xlink:href":"#"+e.iconName}})])},staticRenderFns:[],name:"IconSymbol",props:{name:{type:String,required:!0},size:{type:String|Number},dot:{type:Boolean,default:!1},badge:{type:String|Number},badgeMax:{type:Number}},computed:{iconName:function(){return""+this.name},iconSize:function(){return this.size?"number"==typeof this.size?this.size+"px":this.size:"16px"},styles:function(){var e={width:this.iconSize,height:this.iconSize,fill:"currentColor",overflow:"hidden"};if(this.size){var t="number"==typeof this.size?this.size+"px":this.size;e.width=t,e.height=t}return e},dotStyles:function(){var e=this.iconSize.replace("px","")-4+"px";return{bottom:""+e,left:""+e,padding:this.badge?"2px 4px":"4px"}},badgeText:function(){return this.badge?this.badge>this.badgeMax?this.badgeMax+"+":this.badge:""}}};e(".ds-iconfont{position:relative}.ds-iconfont .icon-dot{position:absolute;padding:8px;border-radius:50px;z-index:1;background:#ee0a24;border:1px solid #fff;color:#fff;font-size:12px;line-height:12px;font-weight:600}");var i={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.symbol?i("IconSymbol",e._b({},"IconSymbol",e.$props,!1)):i("IconFont",e._b({},"IconFont",e.$props,!1))},staticRenderFns:[],name:"HhIcon",components:{IconSymbol:t,IconFont:{render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("i",e._g(e._b({class:e.iconName,style:e.styles},"i",e.$attrs,!1),e.$listeners),[e.dot?[i("span",{staticClass:"icon-dot",style:e.dotStyles},[e._v(e._s(e.badgeText))])]:e._e()],2)},staticRenderFns:[],name:"IconFont",props:{name:{type:String,required:!0},dot:{type:Boolean,default:!1},badge:{type:String|Number},badgeMax:{type:Number},size:{type:String|Number},color:{type:String,default:""}},computed:{iconName:function(){return"ds-iconfont iconfont "+this.name},iconFontSize:function(){return this.size?"number"==typeof this.size?this.size+"px":this.size:"16px"},styles:function(){var e={fontSize:this.iconFontSize};return this.color&&(e.color=this.color),e},dotStyles:function(){var e=this.iconFontSize.replace("px","")-4+"px";return{bottom:""+e,left:""+e,padding:this.badge?"2px 4px":"4px"}},badgeText:function(){return this.badge?this.badge>this.badgeMax?this.badgeMax+"+":this.badge:""}}}},props:{name:{type:String,required:!0},symbol:{type:Boolean,default:!1},dot:{type:Boolean,default:!1},badge:{type:String|Number},badgeMax:{type:Number},size:{type:String|Number},color:{type:String,default:""}}},n={install:function(e,t){var n=t.url,s=void 0===n?"":n,o=t.css,r=void 0===o?"":o,a=t.js,d=void 0===a?"":a,c="",l="";if(s?s.endsWith(".css")?(c=s,l=s.replace(".css",".js")):(c=s.replace(".js",".css"),l=s):(r&&(c=r),d&&(l=d)),c){var p=document.createElement("link");p.setAttribute("rel","stylesheet"),p.setAttribute("type","text/css"),p.setAttribute("href",c),document.head.appendChild(p)}if(l){var u=document.createElement("script");u.setAttribute("type","text/javascript"),u.setAttribute("src",l),document.head.appendChild(u)}e.component("HhIcon",i)}};export{n as default};
//# sourceMappingURL=hh-icon.esm.js.map
{
"name": "@hhorg/icon",
"version": "0.0.10",
"version": "0.0.11",
"description": "前端函数工具库",

@@ -29,2 +29,3 @@ "main": "./lib/hh-icon.cjs.js",

"dependencies": {
"@hhorg/mobile-vue2": "^0.0.1",
"axios": "^0.24.0"

@@ -43,2 +44,3 @@ },

"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-terser": "^7.0.2"

@@ -45,0 +47,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc