@hhorg/icon
Advanced tools
Comparing version 0.0.1 to 0.0.2
const HhIcon = { | ||
install(app, options) { | ||
console.log("\u{1F680} ~ install ~ options:", options); | ||
const { url = "", css = "", js = "" } = options; | ||
@@ -20,2 +21,3 @@ let linkUrl = ""; | ||
} | ||
console.log("\u{1F680} ~ install ~ linkUrl:", linkUrl); | ||
if (linkUrl) { | ||
@@ -28,2 +30,3 @@ const link = document.createElement("link"); | ||
} | ||
console.log("\u{1F680} ~ install ~ scriptUrl:", scriptUrl); | ||
if (scriptUrl) { | ||
@@ -30,0 +33,0 @@ const script = document.createElement("script"); |
import Icon from "./icon"; | ||
const version = "0.0.1"; | ||
const version = "0.0.2"; | ||
function install(app) { | ||
@@ -4,0 +4,0 @@ const components = [ |
@@ -5,2 +5,3 @@ "use strict"; | ||
install(app, options) { | ||
console.log("🚀 ~ install ~ options:", options); | ||
const { url = "", css = "", js = "" } = options; | ||
@@ -23,2 +24,3 @@ let linkUrl = ""; | ||
} | ||
console.log("🚀 ~ install ~ linkUrl:", linkUrl); | ||
if (linkUrl) { | ||
@@ -31,2 +33,3 @@ const link = document.createElement("link"); | ||
} | ||
console.log("🚀 ~ install ~ scriptUrl:", scriptUrl); | ||
if (scriptUrl) { | ||
@@ -42,3 +45,3 @@ const script = document.createElement("script"); | ||
var stdin_default$1 = HhIcon; | ||
const version = "0.0.1"; | ||
const version = "0.0.2"; | ||
function install(app) { | ||
@@ -45,0 +48,0 @@ const components = [ |
const HhIcon = { | ||
install(app, options) { | ||
console.log("🚀 ~ install ~ options:", options); | ||
const { url = "", css = "", js = "" } = options; | ||
@@ -20,2 +21,3 @@ let linkUrl = ""; | ||
} | ||
console.log("🚀 ~ install ~ linkUrl:", linkUrl); | ||
if (linkUrl) { | ||
@@ -28,2 +30,3 @@ const link = document.createElement("link"); | ||
} | ||
console.log("🚀 ~ install ~ scriptUrl:", scriptUrl); | ||
if (scriptUrl) { | ||
@@ -39,3 +42,3 @@ const script = document.createElement("script"); | ||
var stdin_default$1 = HhIcon; | ||
const version = "0.0.1"; | ||
const version = "0.0.2"; | ||
function install(app) { | ||
@@ -42,0 +45,0 @@ const components = [ |
@@ -7,2 +7,3 @@ (function(global, factory) { | ||
install(app, options) { | ||
console.log("🚀 ~ install ~ options:", options); | ||
const { url = "", css = "", js = "" } = options; | ||
@@ -25,2 +26,3 @@ let linkUrl = ""; | ||
} | ||
console.log("🚀 ~ install ~ linkUrl:", linkUrl); | ||
if (linkUrl) { | ||
@@ -33,2 +35,3 @@ const link = document.createElement("link"); | ||
} | ||
console.log("🚀 ~ install ~ scriptUrl:", scriptUrl); | ||
if (scriptUrl) { | ||
@@ -44,3 +47,3 @@ const script = document.createElement("script"); | ||
var stdin_default$1 = HhIcon; | ||
const version = "0.0.1"; | ||
const version = "0.0.2"; | ||
function install(app) { | ||
@@ -47,0 +50,0 @@ const components = [ |
@@ -1,1 +0,1 @@ | ||
!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).icon={})}(this,(function(e){"use strict";const t={install(e,n){const{url:s="",css:o="",js:i=""}=n;let c="",l="";if(s?s.endsWith(".css")?(c=s,l=s.replace(".css",".js")):(c=s.replace(".js",".css"),l=s):(o&&(c=o),i&&(l=i)),c){const e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),e.setAttribute("href",c),document.head.appendChild(e)}if(l){const e=document.createElement("script");e.setAttribute("type","text/javascript"),e.setAttribute("src",l),document.head.appendChild(e)}e.component("HhIcon",t)}};var n=t;const s="0.0.1";function o(e){[n].forEach((t=>{t.install?e.use(t):t.name&&e.component(t.name,t)}))}var i={install:o,version:s};e.Icon=n,e.default=i,e.install=o,e.version=s,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})); | ||
!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).icon={})}(this,(function(e){"use strict";const t={install(e,n){console.log("🚀 ~ install ~ options:",n);const{url:s="",css:o="",js:l=""}=n;let i="",c="";if(s?s.endsWith(".css")?(i=s,c=s.replace(".css",".js")):(i=s.replace(".js",".css"),c=s):(o&&(i=o),l&&(c=l)),console.log("🚀 ~ install ~ linkUrl:",i),i){const e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),e.setAttribute("href",i),document.head.appendChild(e)}if(console.log("🚀 ~ install ~ scriptUrl:",c),c){const e=document.createElement("script");e.setAttribute("type","text/javascript"),e.setAttribute("src",c),document.head.appendChild(e)}e.component("HhIcon",t)}};var n=t;const s="0.0.2";function o(e){[n].forEach((t=>{t.install?e.use(t):t.name&&e.component(t.name,t)}))}var l={install:o,version:s};e.Icon=n,e.default=l,e.install=o,e.version=s,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})); |
@@ -25,2 +25,3 @@ var __defProp = Object.defineProperty; | ||
install(app, options) { | ||
console.log("\u{1F680} ~ install ~ options:", options); | ||
const { url = "", css = "", js = "" } = options; | ||
@@ -43,2 +44,3 @@ let linkUrl = ""; | ||
} | ||
console.log("\u{1F680} ~ install ~ linkUrl:", linkUrl); | ||
if (linkUrl) { | ||
@@ -51,2 +53,3 @@ const link = document.createElement("link"); | ||
} | ||
console.log("\u{1F680} ~ install ~ scriptUrl:", scriptUrl); | ||
if (scriptUrl) { | ||
@@ -53,0 +56,0 @@ const script = document.createElement("script"); |
@@ -37,3 +37,3 @@ var __create = Object.create; | ||
var import_icon = __toESM(require("./icon")); | ||
const version = "0.0.1"; | ||
const version = "0.0.2"; | ||
function install(app) { | ||
@@ -40,0 +40,0 @@ const components = [ |
@@ -1,1 +0,1 @@ | ||
{"$schema":"https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json","framework":"vue","name":"icon","version":"0.0.1","contributions":{"html":{"tags":[{"name":"demo-button","attributes":[{"name":"type","default":"`primary`","description":"按钮类型","value":{"type":"string","kind":"expression"}},{"name":"color","default":"-","description":"按钮颜色","value":{"type":"string","kind":"expression"}}],"events":[{"name":"click","description":"点击时触发","arguments":[{"name":"event","type":"MouseEvent"}]}],"slots":[{"name":"default","description":"默认插槽"}]}],"attributes":[]}},"js-types-syntax":"typescript"} | ||
{"$schema":"https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json","framework":"vue","name":"icon","version":"0.0.2","contributions":{"html":{"tags":[{"name":"demo-button","attributes":[{"name":"type","default":"`primary`","description":"按钮类型","value":{"type":"string","kind":"expression"}},{"name":"color","default":"-","description":"按钮颜色","value":{"type":"string","kind":"expression"}}],"events":[{"name":"click","description":"点击时触发","arguments":[{"name":"event","type":"MouseEvent"}]}],"slots":[{"name":"default","description":"默认插槽"}]}],"attributes":[]}},"js-types-syntax":"typescript"} |
{ | ||
"name": "@hhorg/icon", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "图标库", | ||
@@ -5,0 +5,0 @@ "main": "lib/hh-icon.js", |
34714
976