@gct-paas/core-components 6.0.0-dev.6 → 6.0.0-dev.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- /*! @gct-paas/core-components v6.0.0-dev.6 */
2
- import{n as e,t}from"./types-Bgjdd4Wh.js";import{VITE_MINIO_PATH as o}from"@gct-paas/core";import{computed as l,createBlock as s,createElementBlock as r,defineComponent as n,normalizeClass as a,normalizeStyle as c,openBlock as i,unref as u}from"vue";import{IconPark as p}from"@icon-park/vue-next/es/all";var v=/* @__PURE__ */(e=>{const t=e.__vccOpts||e;for(const[o,l]of[["__scopeId","data-v-0940cc40"]])t[o]=l;return t})(/* @__PURE__ */n({__name:"IconNext",props:{value:{type:[String,Object],required:!0},color:{type:String,default:"#FFFFFF"},background:{type:String,default:"transparent"},size:{type:Number,default:24}},setup(n){const v=n,y=l(()=>{const e=v.value;if(e)return e.includes(":")?e.split(":")[0]:e.startsWith("preset-")?t.Preset:void 0}),g=l(()=>{const e=v.value;if(e)return e.includes(":")?e.split(":")[1]:v.value}),z=l(()=>{return`url('${e=g.value,e?`${o}${e.startsWith("/")?"":"/"}${e}`:e}')`;var e});return(o,l)=>y.value===u(t).IconPark?(i(),s(u(p),{key:`${g.value}-${n.size}`,type:g.value,style:c({"--color":n.color,"--bg-color":n.background}),class:"icon-next",size:n.size},null,8,["type","style","size"])):y.value===u(t).Preset||y.value===u(t).Platform?(i(),s(e,{key:1,name:g.value,style:c({"--color":n.color,"--bg-color":n.background}),class:"icon-next",size:n.size},null,8,["name","style","size"])):y.value===u(t).Asset?(i(),r("i",{key:2,class:"icon-next",style:c({"--size":n.size+"px","--bg-image":z.value})},null,4)):y.value===u(t).GctIconFont?(i(),r("i",{key:3,class:a([`gct-iconfont ${g.value}`,"icon-next"]),style:c({fontSize:n.size+"px",lineHeight:1,"--color":n.color,"--bg-color":n.background,"--size":n.size+"px"})},null,6)):(i(),r("i",{key:4,class:a([`iconfont ${g.value}`,"icon-next"]),style:c({fontSize:n.size+"px",lineHeight:1,"--color":n.color,"--bg-color":n.background,"--size":n.size+"px"})},null,6))}}));export{v as default};
1
+ /*! @gct-paas/core-components v6.0.0-dev.7 */
2
+ import{n as e,t}from"./types-D3i1i6rN.js";import{VITE_MINIO_PATH as o}from"@gct-paas/core";import{computed as l,createBlock as s,createElementBlock as r,defineComponent as n,normalizeClass as a,normalizeStyle as c,openBlock as i,unref as u}from"vue";import{IconPark as p}from"@icon-park/vue-next/es/all";var v=/* @__PURE__ */(e=>{const t=e.__vccOpts||e;for(const[o,l]of[["__scopeId","data-v-0940cc40"]])t[o]=l;return t})(/* @__PURE__ */n({__name:"IconNext",props:{value:{type:[String,Object],required:!0},color:{type:String,default:"#FFFFFF"},background:{type:String,default:"transparent"},size:{type:Number,default:24}},setup(n){const v=n,y=l(()=>{const e=v.value;if(e)return e.includes(":")?e.split(":")[0]:e.startsWith("preset-")?t.Preset:void 0}),g=l(()=>{const e=v.value;if(e)return e.includes(":")?e.split(":")[1]:v.value}),z=l(()=>{return`url('${e=g.value,e?`${o}${e.startsWith("/")?"":"/"}${e}`:e}')`;var e});return(o,l)=>y.value===u(t).IconPark?(i(),s(u(p),{key:`${g.value}-${n.size}`,type:g.value,style:c({"--color":n.color,"--bg-color":n.background}),class:"icon-next",size:n.size},null,8,["type","style","size"])):y.value===u(t).Preset||y.value===u(t).Platform?(i(),s(e,{key:1,name:g.value,style:c({"--color":n.color,"--bg-color":n.background}),class:"icon-next",size:n.size},null,8,["name","style","size"])):y.value===u(t).Asset?(i(),r("i",{key:2,class:"icon-next",style:c({"--size":n.size+"px","--bg-image":z.value})},null,4)):y.value===u(t).GctIconFont?(i(),r("i",{key:3,class:a([`gct-iconfont ${g.value}`,"icon-next"]),style:c({fontSize:n.size+"px",lineHeight:1,"--color":n.color,"--bg-color":n.background,"--size":n.size+"px"})},null,6)):(i(),r("i",{key:4,class:a([`iconfont ${g.value}`,"icon-next"]),style:c({fontSize:n.size+"px",lineHeight:1,"--color":n.color,"--bg-color":n.background,"--size":n.size+"px"})},null,6))}}));export{v as default};
@@ -1,2 +1,2 @@
1
- /*! @gct-paas/core-components v6.0.0-dev.6 */
2
- import{n as t,t as e}from"./types-Bgjdd4Wh.js";import{cssLoader as r,getToken as n,useNamespace as o,usePlatformConfigStore as i,useUserStore as a}from"@gct-paas/core";import{computed as u,createVNode as c,defineAsyncComponent as l,defineComponent as s,getCurrentInstance as f,h as p,mergeProps as d,nextTick as h,onMounted as v,onUnmounted as m,ref as y,resolveComponent as g,useAttrs as w,watch as b}from"vue";import{bus as E,destroyApp as O,preloadApp as L,setupApp as _,startApp as j}from"wujie";import{iconsNames as x}from"@gct-paas/platform-icons";import P from"@icon-park/vue-next/icons.json";var A,S=t=>"string"==typeof t,I=t=>{if(1===t.nodeType){if("script"===t.nodeName.toLowerCase())return!1;for(let e=0;e<t.attributes.length;e++){const r=t.attributes[e].name;if(S(r)&&0===r.toLowerCase().indexOf("on"))return!1}for(let e=0;e<t.childNodes.length;e++)if(!I(t.childNodes[e]))return!1}return!0},U=/* @__PURE__ */new Map,N=/* @__PURE__ */new Map;function C(t){return U.set(t,""),""}var k=t=>t?{"ion-color":!0,[`ion-color-${t}`]:!0}:null,M=/* @__PURE__ */s({name:"AssetsSvgIcon",props:{color:{type:String},flipRtl:{type:Boolean},src:{type:String,required:!0},size:{type:String},lazy:{type:Boolean,default:!1},sanitize:{type:Boolean,default:!0}},setup(t){const e=o("assets-svg-icon"),r=f();let n;const i=y(!1),a=y(void 0),c=y(!1),l=()=>{if("undefined"!=typeof window&&c.value&&t.src){const n=(e=t.src,S(e)&&((r=e=e.trim()).length>0&&/(\/|\.)/.test(r))?e:null);n&&(U.has(n)?a.value=U.get(n):((t,e)=>N.get(t)||("undefined"!=typeof fetch&&"undefined"!=typeof document?(t=>t.startsWith("data:image/svg+xml"))(t)&&(t=>-1!==t.indexOf(";utf8,"))(t)?Promise.resolve(function(t){A||(A=new DOMParser);const e=A.parseFromString(t,"text/html").querySelector("svg");if(e)return U.set(t,e.outerHTML),e.outerHTML;throw new Error(`Could not parse svg from ${t}`)}(t)):function(t,e){const r=fetch(t).then(r=>r.text().then(r=>{r&&!1!==e&&(r=(t=>{const e=document.createElement("div");e.innerHTML=t;for(let n=e.childNodes.length-1;n>=0;n--)"svg"!==e.childNodes[n].nodeName.toLowerCase()&&e.removeChild(e.childNodes[n]);const r=e.firstElementChild;if(r&&"svg"===r.nodeName.toLowerCase()){const t=r.getAttribute("class")||"";if(r.setAttribute("class",(t+" s-ion-icon").trim()),I(r))return e.innerHTML}return""})(r));const n=r||"";return U.set(t,n),n}).catch(()=>C(t))).catch(()=>C(t));return N.set(t,r),r}(t,e):Promise.resolve(C(t))))(n,t.sanitize).then(()=>{a.value=U.get(n)}),i.value=!0)}var e,r};return v(()=>{const e=null==r?void 0:r.vnode.el;e&&((e,r,o)=>{if(!Boolean("undefined"!=typeof window&&t.lazy&&window.IntersectionObserver))return o();const i=n=new window.IntersectionObserver(t=>{var e;(null===(e=t[0])||void 0===e?void 0:e.isIntersecting)&&(i.disconnect(),n=void 0,o())},{rootMargin:"50px"});i.observe(e)})(e,0,()=>{c.value=!0,l()}),h(()=>{i.value||l()})}),m(()=>{n&&(n.disconnect(),n=void 0)}),b(()=>t.src,()=>{l()}),{ns:e,svgContent:a,classes:u(()=>{const{flipRtl:n,size:o,color:i}=t,a=null==r?void 0:r.vnode.el,u=n;return{...k(i),[`icon-${o}`]:!!o,"flip-rtl":u,"icon-rtl":u&&(c=a,c&&""!==c.dir?"rtl"===c.dir.toLowerCase():"rtl"===(null===(l=document)||void 0===l?void 0:l.dir.toLowerCase())),[e.b()]:!0};var c,l})}},render(){const{svgContent:t,classes:e}=this;return c("div",{role:"img",class:e},["undefined"!=typeof window&&t?c("div",{class:"icon-inner",innerHTML:t},null):c("div",{class:"icon-inner"},null)])}});function $(t){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$(t)}function F(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function T(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?F(Object(r),!0).forEach(function(e){J(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Q(){Q=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype);return o(a,"_invoke",{value:x(t,r,new I(n||[]))}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function w(){}var b={};l(b,a,function(){return this});var E=Object.getPrototypeOf,O=E&&E(E(U([])));O&&O!==r&&n.call(O,a)&&(b=O);var L=w.prototype=y.prototype=Object.create(b);function _(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function j(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,s=l.value;return s&&"object"==$(s)&&n.call(s,"__await")?e.resolve(s.__await).then(function(t){r("next",t,a,u)},function(t){r("throw",t,a,u)}):e.resolve(s).then(function(t){l.value=t,a(l)},function(t){return r("throw",t,a,u)})}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return i=i?i.then(o,o):o()}})}function x(e,r,n){var o=p;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=P(u,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=/* @__PURE__ */new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=/* @__PURE__ */new TypeError("iterator result is not an object"),r.delegate=null,m)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function U(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError($(e)+" is not iterable")}return g.prototype=w,o(L,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:g,configurable:!0}),g.displayName=l(w,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,c,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},_(j.prototype),l(j.prototype,u,function(){return this}),e.AsyncIterator=j,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new j(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},_(L),l(L,c,"Generator"),l(L,a,function(){return this}),l(L,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=U,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:U(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function B(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function J(t,e,r){return(e=function(t){var e=function(t){if("object"!=$(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==$(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var W=s({name:"WujieVue",props:{width:{type:String,default:""},height:{type:String,default:""},name:{type:String,default:""},loading:{type:HTMLElement,default:void 0},url:{type:String,default:""},sync:{type:Boolean,default:void 0},prefix:{type:Object,default:void 0},alive:{type:Boolean,default:void 0},props:{type:Object,default:void 0},attrs:{type:Object,default:void 0},replace:{type:Function,default:void 0},fetch:{type:Function,default:void 0},fiber:{type:Boolean,default:void 0},degrade:{type:Boolean,default:void 0},plugins:{type:Array,default:null},beforeLoad:{type:Function,default:null},beforeMount:{type:Function,default:null},afterMount:{type:Function,default:null},beforeUnmount:{type:Function,default:null},afterUnmount:{type:Function,default:null},activated:{type:Function,default:null},deactivated:{type:Function,default:null},loadError:{type:Function,default:null},style:{type:Object,default:void 0},iframeAddEventListeners:{type:Array,default:null},iframeOnEvents:{type:Array,default:null}},data:function(){return{startAppQueue:Promise.resolve()}},mounted:function(){var t=this;this.name&&(window.__WUJIE_QUEUE?window.__WUJIE_QUEUE[this.name]?this.startAppQueue=window.__WUJIE_QUEUE[this.name]:window.__WUJIE_QUEUE[this.name]=this.startAppQueue:window.__WUJIE_QUEUE=J({},this.name,this.startAppQueue)),E.$onAll(this.handleEmit),this.execStartApp(),this.$watch(function(){return t.name+t.url},function(){return t.execStartApp()})},methods:{handleEmit:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];this.$emit.apply(this,[t].concat(r))},startApp:function(){var t,e=this;return(t=/* @__PURE__ */Q().mark(function t(){return Q().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,j({name:e.name,url:e.url,el:e.$refs.wujie,loading:e.loading,alive:e.alive,fetch:e.fetch,props:e.props,attrs:e.attrs,replace:e.replace,sync:e.sync,prefix:e.prefix,fiber:e.fiber,degrade:e.degrade,plugins:e.plugins,beforeLoad:e.beforeLoad,beforeMount:e.beforeMount,afterMount:e.afterMount,beforeUnmount:e.beforeUnmount,afterUnmount:e.afterUnmount,activated:e.activated,deactivated:e.deactivated,loadError:e.loadError,iframeAddEventListeners:e.iframeAddEventListeners,iframeOnEvents:e.iframeOnEvents});case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),console.log(t.t0);case 8:case"end":return t.stop()}},t,null,[[0,5]])}),function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){B(i,n,o,a,u,"next",t)}function u(t){B(i,n,o,a,u,"throw",t)}a(void 0)})})()},execStartApp:function(){this.startAppQueue=this.startAppQueue.then(this.startApp),window.__WUJIE_QUEUE[this.name]=this.startAppQueue},destroy:function(){O(this.name)}},beforeDestroy:function(){E.$offAll(this.handleEmit)},render:function(){return p("div",{style:T({width:this.width,height:this.height},this.style),ref:"wujie"})}});W.setupApp=_,W.preloadApp=L,W.bus=E,W.destroyApp=O,W.install=function(t){t.component("WujieVue",W)};var{destroyApp:G}=W,z=/* @__PURE__ */s({name:"WuJieContainer",props:{wuJieName:{type:String,required:!0},props:{type:Object,default:()=>({})}},setup(t){const e=o("wujie-container"),r=w();function l(t){Object.defineProperty(t,"_gct",{get:()=>window._gct}),Object.defineProperty(t,"_api",{get:()=>window._api})}function s(e){console.debug("loadError",t.wuJieName)}const f=i(),{userInfo:p}=a(),h=u(()=>({appInfo:_gct.store.appInfo,userInfo:p,token:n(),themeColor:f.themeSetting.themeColor,...t.props}));return m(()=>{!0!==r.alive&&G(t.wuJieName)}),()=>c(g("wujieVue"),d({class:e.b(),name:t.wuJieName,beforeLoad:l,loadError:s},r,{props:h.value}),null)}}),D=y([]),H=u(()=>[{id:"IconAsset",name:"资产图标",children:D.value}].filter(t=>{var e;return null===(e=t.children)||void 0===e?void 0:e.length}));function q(){return{getIconAssetCats:async function(){if(D.value.length>0)return H.value;const t={assetsModule:"ICON"};return D.value=await Promise.all([_api.platform.category.getList(t),_api.platform.assets.getList(t)]).then(([t,r])=>null==t?void 0:t.map(t=>({id:`${t.id}`,name:t.name,icons:null==r?void 0:r.filter(e=>e.categoryId===t.id).map(t=>(Object.assign(t,{id:`${e.Asset}:${t.path}`,_filter_:[t.name]}),t))})).filter(t=>{var e;return null===(e=t.icons)||void 0===e?void 0:e.length})),H.value}}}var R=/* @__PURE__ */function(t){return t.Base="Base",t.Others="Others",t}(R||{}),V=y([]),Y=u(()=>[{id:"IconPark",name:"IconPark",children:V.value}]);function K(){return{getIconParkCats:function(){if(V.value.length>0)return Y.value;const t=[];P.forEach(r=>{const n={...r,id:`${e.IconPark}:${r.name}`,_filter_:[...r.tag,r.title,r.name]};let o=t.find(t=>t.id===n.category);o?o.icons.push(n):(o={id:n.category,name:n.categoryCN,icons:[n]},t.push(o))});const r=t.filter(t=>t.id===R.Base),n=t.filter(t=>t.id===R.Others),o=t.filter(t=>![R.Base,R.Others].includes(t.id));return V.value=r.concat(o,n),Y.value}}}var X=u(()=>[{id:"medicalCare",name:"医疗器械",icons:tt.value},{id:"IconPlatform",name:"平台图标",icons:Z.value}]),Z=u(()=>x.filter(t=>/^(icon-platform)/.test(t)).map(t=>{const r=t.replace(/icon-/g,"");return{id:`${e.Platform}:${r}`,name:r,_filter_:[r]}})),tt=u(()=>x.filter(t=>/^(icon-medicalCare)/.test(t)).map(t=>{const r=t.replace(/icon-/g,"");return{id:`${e.Platform}:${r}`,name:t.replace(/icon-medicalCare-/g,""),_filter_:[r]}}));function et(){return{getIconPlatformCats:function(){return X.value}}}var rt=l(()=>import("./IconNext-Bo7W-COb.js")),nt=!1;function ot(e){nt||(nt=!0,e.component(M.name,M),e.component(t.name,t),e.component(z.name,z),e.component("IconNext",rt))}var it=new URL("./index.min.css",import.meta.url);r.load(it.href);export{M as AssetsSvgIcon,e as IconNamespaceEnum,rt as IconNext,t as SvgIcon,z as WuJieContainer,ot as coreComponentsCreateAppVue,q as useIconAsset,K as useIconPark,et as useIconPlatform};
1
+ /*! @gct-paas/core-components v6.0.0-dev.7 */
2
+ import{n as t,t as e}from"./types-D3i1i6rN.js";import{cssLoader as r,getToken as n,useNamespace as o,usePlatformConfigStore as i,useUserStore as a}from"@gct-paas/core";import{computed as u,createVNode as c,defineAsyncComponent as l,defineComponent as s,getCurrentInstance as f,h as p,mergeProps as d,nextTick as h,onMounted as v,onUnmounted as m,ref as y,resolveComponent as g,useAttrs as w,watch as b}from"vue";import{bus as E,destroyApp as O,preloadApp as L,setupApp as _,startApp as j}from"wujie";import{iconsNames as x}from"@gct-paas/platform-icons";import P from"@icon-park/vue-next/icons.json";var A,S=t=>"string"==typeof t,I=t=>{if(1===t.nodeType){if("script"===t.nodeName.toLowerCase())return!1;for(let e=0;e<t.attributes.length;e++){const r=t.attributes[e].name;if(S(r)&&0===r.toLowerCase().indexOf("on"))return!1}for(let e=0;e<t.childNodes.length;e++)if(!I(t.childNodes[e]))return!1}return!0},U=/* @__PURE__ */new Map,N=/* @__PURE__ */new Map;function C(t){return U.set(t,""),""}var k=t=>t?{"ion-color":!0,[`ion-color-${t}`]:!0}:null,M=/* @__PURE__ */s({name:"AssetsSvgIcon",props:{color:{type:String},flipRtl:{type:Boolean},src:{type:String,required:!0},size:{type:String},lazy:{type:Boolean,default:!1},sanitize:{type:Boolean,default:!0}},setup(t){const e=o("assets-svg-icon"),r=f();let n;const i=y(!1),a=y(void 0),c=y(!1),l=()=>{if("undefined"!=typeof window&&c.value&&t.src){const n=(e=t.src,S(e)&&((r=e=e.trim()).length>0&&/(\/|\.)/.test(r))?e:null);n&&(U.has(n)?a.value=U.get(n):((t,e)=>N.get(t)||("undefined"!=typeof fetch&&"undefined"!=typeof document?(t=>t.startsWith("data:image/svg+xml"))(t)&&(t=>-1!==t.indexOf(";utf8,"))(t)?Promise.resolve(function(t){A||(A=new DOMParser);const e=A.parseFromString(t,"text/html").querySelector("svg");if(e)return U.set(t,e.outerHTML),e.outerHTML;throw new Error(`Could not parse svg from ${t}`)}(t)):function(t,e){const r=fetch(t).then(r=>r.text().then(r=>{r&&!1!==e&&(r=(t=>{const e=document.createElement("div");e.innerHTML=t;for(let n=e.childNodes.length-1;n>=0;n--)"svg"!==e.childNodes[n].nodeName.toLowerCase()&&e.removeChild(e.childNodes[n]);const r=e.firstElementChild;if(r&&"svg"===r.nodeName.toLowerCase()){const t=r.getAttribute("class")||"";if(r.setAttribute("class",(t+" s-ion-icon").trim()),I(r))return e.innerHTML}return""})(r));const n=r||"";return U.set(t,n),n}).catch(()=>C(t))).catch(()=>C(t));return N.set(t,r),r}(t,e):Promise.resolve(C(t))))(n,t.sanitize).then(()=>{a.value=U.get(n)}),i.value=!0)}var e,r};return v(()=>{const e=null==r?void 0:r.vnode.el;e&&((e,r,o)=>{if(!Boolean("undefined"!=typeof window&&t.lazy&&window.IntersectionObserver))return o();const i=n=new window.IntersectionObserver(t=>{var e;(null===(e=t[0])||void 0===e?void 0:e.isIntersecting)&&(i.disconnect(),n=void 0,o())},{rootMargin:"50px"});i.observe(e)})(e,0,()=>{c.value=!0,l()}),h(()=>{i.value||l()})}),m(()=>{n&&(n.disconnect(),n=void 0)}),b(()=>t.src,()=>{l()}),{ns:e,svgContent:a,classes:u(()=>{const{flipRtl:n,size:o,color:i}=t,a=null==r?void 0:r.vnode.el,u=n;return{...k(i),[`icon-${o}`]:!!o,"flip-rtl":u,"icon-rtl":u&&(c=a,c&&""!==c.dir?"rtl"===c.dir.toLowerCase():"rtl"===(null===(l=document)||void 0===l?void 0:l.dir.toLowerCase())),[e.b()]:!0};var c,l})}},render(){const{svgContent:t,classes:e}=this;return c("div",{role:"img",class:e},["undefined"!=typeof window&&t?c("div",{class:"icon-inner",innerHTML:t},null):c("div",{class:"icon-inner"},null)])}});function $(t){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$(t)}function F(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function T(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?F(Object(r),!0).forEach(function(e){J(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Q(){Q=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype);return o(a,"_invoke",{value:x(t,r,new I(n||[]))}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",v="completed",m={};function y(){}function g(){}function w(){}var b={};l(b,a,function(){return this});var E=Object.getPrototypeOf,O=E&&E(E(U([])));O&&O!==r&&n.call(O,a)&&(b=O);var L=w.prototype=y.prototype=Object.create(b);function _(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function j(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,s=l.value;return s&&"object"==$(s)&&n.call(s,"__await")?e.resolve(s.__await).then(function(t){r("next",t,a,u)},function(t){r("throw",t,a,u)}):e.resolve(s).then(function(t){l.value=t,a(l)},function(t){return r("throw",t,a,u)})}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return i=i?i.then(o,o):o()}})}function x(e,r,n){var o=p;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=P(u,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=/* @__PURE__ */new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=/* @__PURE__ */new TypeError("iterator result is not an object"),r.delegate=null,m)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function U(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError($(e)+" is not iterable")}return g.prototype=w,o(L,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:g,configurable:!0}),g.displayName=l(w,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,c,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},_(j.prototype),l(j.prototype,u,function(){return this}),e.AsyncIterator=j,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new j(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},_(L),l(L,c,"Generator"),l(L,a,function(){return this}),l(L,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=U,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:U(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function B(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function J(t,e,r){return(e=function(t){var e=function(t){if("object"!=$(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==$(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var W=s({name:"WujieVue",props:{width:{type:String,default:""},height:{type:String,default:""},name:{type:String,default:""},loading:{type:HTMLElement,default:void 0},url:{type:String,default:""},sync:{type:Boolean,default:void 0},prefix:{type:Object,default:void 0},alive:{type:Boolean,default:void 0},props:{type:Object,default:void 0},attrs:{type:Object,default:void 0},replace:{type:Function,default:void 0},fetch:{type:Function,default:void 0},fiber:{type:Boolean,default:void 0},degrade:{type:Boolean,default:void 0},plugins:{type:Array,default:null},beforeLoad:{type:Function,default:null},beforeMount:{type:Function,default:null},afterMount:{type:Function,default:null},beforeUnmount:{type:Function,default:null},afterUnmount:{type:Function,default:null},activated:{type:Function,default:null},deactivated:{type:Function,default:null},loadError:{type:Function,default:null},style:{type:Object,default:void 0},iframeAddEventListeners:{type:Array,default:null},iframeOnEvents:{type:Array,default:null}},data:function(){return{startAppQueue:Promise.resolve()}},mounted:function(){var t=this;this.name&&(window.__WUJIE_QUEUE?window.__WUJIE_QUEUE[this.name]?this.startAppQueue=window.__WUJIE_QUEUE[this.name]:window.__WUJIE_QUEUE[this.name]=this.startAppQueue:window.__WUJIE_QUEUE=J({},this.name,this.startAppQueue)),E.$onAll(this.handleEmit),this.execStartApp(),this.$watch(function(){return t.name+t.url},function(){return t.execStartApp()})},methods:{handleEmit:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];this.$emit.apply(this,[t].concat(r))},startApp:function(){var t,e=this;return(t=/* @__PURE__ */Q().mark(function t(){return Q().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,j({name:e.name,url:e.url,el:e.$refs.wujie,loading:e.loading,alive:e.alive,fetch:e.fetch,props:e.props,attrs:e.attrs,replace:e.replace,sync:e.sync,prefix:e.prefix,fiber:e.fiber,degrade:e.degrade,plugins:e.plugins,beforeLoad:e.beforeLoad,beforeMount:e.beforeMount,afterMount:e.afterMount,beforeUnmount:e.beforeUnmount,afterUnmount:e.afterUnmount,activated:e.activated,deactivated:e.deactivated,loadError:e.loadError,iframeAddEventListeners:e.iframeAddEventListeners,iframeOnEvents:e.iframeOnEvents});case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),console.log(t.t0);case 8:case"end":return t.stop()}},t,null,[[0,5]])}),function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){B(i,n,o,a,u,"next",t)}function u(t){B(i,n,o,a,u,"throw",t)}a(void 0)})})()},execStartApp:function(){this.startAppQueue=this.startAppQueue.then(this.startApp),window.__WUJIE_QUEUE[this.name]=this.startAppQueue},destroy:function(){O(this.name)}},beforeDestroy:function(){E.$offAll(this.handleEmit)},render:function(){return p("div",{style:T({width:this.width,height:this.height},this.style),ref:"wujie"})}});W.setupApp=_,W.preloadApp=L,W.bus=E,W.destroyApp=O,W.install=function(t){t.component("WujieVue",W)};var{destroyApp:G}=W,z=/* @__PURE__ */s({name:"WuJieContainer",props:{wuJieName:{type:String,required:!0},props:{type:Object,default:()=>({})}},setup(t){const e=o("wujie-container"),r=w();function l(t){Object.defineProperty(t,"_gct",{get:()=>window._gct}),Object.defineProperty(t,"_api",{get:()=>window._api})}function s(e){console.debug("loadError",t.wuJieName)}const f=i(),{userInfo:p}=a(),h=u(()=>({appInfo:_gct.store.appInfo,userInfo:p,token:n(),themeColor:f.themeSetting.themeColor,...t.props}));return m(()=>{!0!==r.alive&&G(t.wuJieName)}),()=>c(g("wujieVue"),d({class:e.b(),name:t.wuJieName,beforeLoad:l,loadError:s},r,{props:h.value}),null)}}),D=y([]),H=u(()=>[{id:"IconAsset",name:"资产图标",children:D.value}].filter(t=>{var e;return null===(e=t.children)||void 0===e?void 0:e.length}));function q(){return{getIconAssetCats:async function(){if(D.value.length>0)return H.value;const t={assetsModule:"ICON"};return D.value=await Promise.all([_api.platform.category.getList(t),_api.platform.assets.getList(t)]).then(([t,r])=>null==t?void 0:t.map(t=>({id:`${t.id}`,name:t.name,icons:null==r?void 0:r.filter(e=>e.categoryId===t.id).map(t=>(Object.assign(t,{id:`${e.Asset}:${t.path}`,_filter_:[t.name]}),t))})).filter(t=>{var e;return null===(e=t.icons)||void 0===e?void 0:e.length})),H.value}}}var R=/* @__PURE__ */function(t){return t.Base="Base",t.Others="Others",t}(R||{}),V=y([]),Y=u(()=>[{id:"IconPark",name:"IconPark",children:V.value}]);function K(){return{getIconParkCats:function(){if(V.value.length>0)return Y.value;const t=[];P.forEach(r=>{const n={...r,id:`${e.IconPark}:${r.name}`,_filter_:[...r.tag,r.title,r.name]};let o=t.find(t=>t.id===n.category);o?o.icons.push(n):(o={id:n.category,name:n.categoryCN,icons:[n]},t.push(o))});const r=t.filter(t=>t.id===R.Base),n=t.filter(t=>t.id===R.Others),o=t.filter(t=>![R.Base,R.Others].includes(t.id));return V.value=r.concat(o,n),Y.value}}}var X=u(()=>[{id:"medicalCare",name:"医疗器械",icons:tt.value},{id:"IconPlatform",name:"平台图标",icons:Z.value}]),Z=u(()=>x.filter(t=>/^(icon-platform)/.test(t)).map(t=>{const r=t.replace(/icon-/g,"");return{id:`${e.Platform}:${r}`,name:r,_filter_:[r]}})),tt=u(()=>x.filter(t=>/^(icon-medicalCare)/.test(t)).map(t=>{const r=t.replace(/icon-/g,"");return{id:`${e.Platform}:${r}`,name:t.replace(/icon-medicalCare-/g,""),_filter_:[r]}}));function et(){return{getIconPlatformCats:function(){return X.value}}}var rt=l(()=>import("./IconNext-TEQb0ZrP.js")),nt=!1;function ot(e){nt||(nt=!0,e.component(M.name,M),e.component(t.name,t),e.component(z.name,z),e.component("IconNext",rt))}var it=new URL("./index.min.css",import.meta.url);r.load(it.href);export{M as AssetsSvgIcon,e as IconNamespaceEnum,rt as IconNext,t as SvgIcon,z as WuJieContainer,ot as coreComponentsCreateAppVue,q as useIconAsset,K as useIconPark,et as useIconPlatform};
@@ -1,2 +1,2 @@
1
- /*! @gct-paas/core-components v6.0.0-dev.6 */
1
+ /*! @gct-paas/core-components v6.0.0-dev.7 */
2
2
  import{useNamespace as e}from"@gct-paas/core";import{computed as t,createElementBlock as n,createElementVNode as r,defineComponent as i,normalizeClass as s,normalizeStyle as o,openBlock as a,unref as p}from"vue";var c=["xlink:href"],l=/* @__PURE__ */i({name:"SvgIcon",__name:"svg-icon",props:{prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:16},spin:{type:Boolean,default:!1}},setup(i){const l=e("svg-icon"),u=i,f=t(()=>`#${u.prefix}-${u.name}`),m=t(()=>{const{size:e}=u;let t=`${e}`;return t=`${t.replace("px","")}px`,{width:t,height:t}});return(e,t)=>(a(),n("svg",{class:s([e.$attrs.class,p(l).b(),i.spin&&p(l).m("spin")]),style:o(m.value),"aria-hidden":"true"},[r("use",{"xlink:href":f.value},null,8,c)],6))}}),u=/* @__PURE__ */function(e){return e.Preset="icon-preset",e.IconPark="icon-park",e.Asset="icon-assert",e.Platform="icon-platform",e.GctIconFont="gct-iconfont",e}({});export{l as n,u as t};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/core-components",
3
- "version": "6.0.0-dev.6",
3
+ "version": "6.0.0-dev.7",
4
4
  "type": "module",
5
5
  "description": "paas 平台核心组件包,不区分Web、Mobile、Pad等平台,包含一些基础组件",
6
6
  "loader": "dist/loader.esm.min.js",
@@ -41,15 +41,15 @@
41
41
  "vue": "^3.5.30",
42
42
  "wujie": "^1.0.29",
43
43
  "wujie-vue3": "^1.0.29",
44
- "@gct-paas/scss": "6.0.0-dev.6",
45
- "@gct-paas/core": "6.0.0-dev.6"
44
+ "@gct-paas/scss": "6.0.0-dev.7",
45
+ "@gct-paas/core": "6.0.0-dev.7"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@gct-paas/api": "^6.0.0-dev.6",
49
49
  "vant": ">=4",
50
50
  "vue": ">=3",
51
- "@gct-paas/core": "6.0.0-dev.6",
52
- "@gct-paas/scss": "6.0.0-dev.6"
51
+ "@gct-paas/core": "6.0.0-dev.7",
52
+ "@gct-paas/scss": "6.0.0-dev.7"
53
53
  },
54
54
  "scripts": {
55
55
  "dev": "cross-env NODE_ENV=development vite build --watch --config vite.dev.config.ts",