@hoenergy/hoenergy-template-pc 1.1.6 → 1.1.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.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/vite.config.ts +4 -0
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Fi,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("
|
|
1
|
+
(function(Fi,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("Vue"),require("naive-ui"),require("echarts")):typeof define=="function"&&define.amd?define(["exports","Vue","naive-ui","echarts"],t):(Fi=typeof globalThis<"u"?globalThis:Fi||self,t(Fi.FormaxUI={},Fi.Vue,Fi.naive,Fi.echarts))})(this,function(Fi,t,Oo,yV){"use strict";function LV(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const m=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(c,a,m.get?m:{enumerable:!0,get:()=>e[a]})}}return c.default=e,Object.freeze(c)}const IV=LV(yV),N5=t.defineComponent({name:"FormaxButton",props:{label:{type:String,default:"Button"},type:{type:String,default:"default"}},setup(e,{emit:c,slots:a}){return()=>{const m={padding:"8px 16px",borderRadius:"4px",border:0,cursor:"pointer",backgroundColor:e.type==="primary"?"#007bff":e.type==="danger"?"#dc3545":"#007bff",color:"#fff",fontSize:"14px"},y=a.default?a.default():e.label;return t.h("button",{style:m,onClick:x=>c("click",x)},y)}}}),bV={name:"FormaxButton",label:"通用按钮",description:"一个基础按钮组件",props:{label:{type:"string",default:"Button",description:"按钮文本"},type:{type:"string",default:"default",description:"按钮类型",options:["default","primary","danger"]}},events:[{name:"click",description:"点击按钮时触发",payload:"Event"}],slots:[{name:"default",description:"按钮文本内容"}],usage:'<FormaxButton type="primary" label="Click Me" @click="handleClick" />',previewProps:{type:"primary",label:"Hello World"},package:"general",category:"button",key:"FormaxButton",conKey:"GCFormaxButton",image:"GCFormaxButton.png"};N5.__doc_meta__=bV;const EV={...Oo.NModal.props,subBtuText:{type:String,default:"确认"},showIcon:{type:Boolean,default:!1},width:{type:[Number,String],default:446},title:{type:String,default:""},maskClosable:{type:Boolean,default:!1},preset:{type:String,default:"card"}},Cd=function(e,c){var a;return e.currentStyle?e.currentStyle[c]:(a=document.defaultView)==null?void 0:a.getComputedStyle(e,null)[c]},bl={left:"0",top:"0",currentX:0,currentY:0,flag:!1},BV=function(e,c,a){const m=document.body.clientWidth,y=document.documentElement.clientHeight,x=c.offsetWidth,Q=c.offsetHeight,R=c.offsetLeft,J=c.offsetTop,p=m-R-x,oe=y-J-Q;Cd(c,"left")!=="auto"&&(bl.left=Cd(c,"left")),Cd(c,"top")!=="auto"&&(bl.top=Cd(c,"top")),e.onmousedown=function(se){bl.flag=!0,se||(se=window.event,e.onselectstart=function(){return!1});const ee=se;bl.currentX=ee.clientX,bl.currentY=ee.clientY},document.onmouseup=function(){bl.flag=!1,Cd(c,"left")!=="auto"&&(bl.left=Cd(c,"left")),Cd(c,"top")!=="auto"&&(bl.top=Cd(c,"top"))},document.onmousemove=function(se){const ee=se||window.event;if(bl.flag){const Ae=ee.clientX,ie=ee.clientY,fe=Ae-bl.currentX,Ce=ie-bl.currentY;let Pe=parseInt(bl.left)+fe,Ee=parseInt(bl.top)+Ce;return-Pe>R?Pe=-R:Pe>p&&(Pe=p),-Ee>J?Ee=-J:Ee>oe&&(Ee=oe),c.style.left=Pe+"px",c.style.top=Ee+"px",typeof a=="function"&&a((parseInt(bl.left)||0)+fe,(parseInt(bl.top)||0)+Ce),se.preventDefault&&se.preventDefault(),!1}}},xV=Object.prototype.toString;function NV(e,c){return xV.call(e)===`[object ${c}]`}function jV(e){return e!==null&&NV(e,"Object")}function _L(e={},c={}){let a;for(a in c)e[a]=jV(e[a])?_L(e[a],c[a]):e[a]=c[a];return e}const VV=Object.prototype.toString;function QV(e,c){return VV.call(e)===`[object ${c}]`}function MV(e){return QV(e,"Number")}var mh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function SV(e){if(e.__esModule)return e;var c=e.default;if(typeof c=="function"){var a=function m(){return this instanceof m?Reflect.construct(c,arguments,this.constructor):c.apply(this,arguments)};a.prototype=c.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(e).forEach(function(m){var y=Object.getOwnPropertyDescriptor(e,m);Object.defineProperty(a,m,y.get?y:{enumerable:!0,get:function(){return e[m]}})}),a}var WL={exports:{}};const FL=SV(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));/**
|
|
2
2
|
* [js-md5]{@link https://github.com/emn178/js-md5}
|
|
3
3
|
*
|
|
4
4
|
* @namespace md5
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import z5, { defineComponent as gn, h as U5, useAttrs as oL, ref as ni, watch as Qa, computed as oi, unref as Hn, getCurrentInstance as RA, resolveComponent as Ri, openBlock as qt, createBlock as Bo, mergeProps as Us, createSlots as ad, withCtx as Wr, createElementVNode as tt, toDisplayString as qo, renderSlot as ja, createVNode as t, createTextVNode as $l, nextTick as aL, onUnmounted as sL, createElementBlock as fn, provide as b5, inject as HA, reactive as lL, watchEffect as cL, toRefs as TB, Fragment as W0, renderList as td, toRaw as kA, onMounted as TA, createCommentVNode as _l, normalizeProps as E5, guardReactiveProps as B5, createStaticVNode as D1, resolveDynamicComponent as p_, normalizeStyle as Mu, useCssVars as NB, onBeforeUnmount as eW, defineAsyncComponent as OB, normalizeClass as K4, render as VB } from "
|
|
1
|
+
import z5, { defineComponent as gn, h as U5, useAttrs as oL, ref as ni, watch as Qa, computed as oi, unref as Hn, getCurrentInstance as RA, resolveComponent as Ri, openBlock as qt, createBlock as Bo, mergeProps as Us, createSlots as ad, withCtx as Wr, createElementVNode as tt, toDisplayString as qo, renderSlot as ja, createVNode as t, createTextVNode as $l, nextTick as aL, onUnmounted as sL, createElementBlock as fn, provide as b5, inject as HA, reactive as lL, watchEffect as cL, toRefs as TB, Fragment as W0, renderList as td, toRaw as kA, onMounted as TA, createCommentVNode as _l, normalizeProps as E5, guardReactiveProps as B5, createStaticVNode as D1, resolveDynamicComponent as p_, normalizeStyle as Mu, useCssVars as NB, onBeforeUnmount as eW, defineAsyncComponent as OB, normalizeClass as K4, render as VB } from "Vue";
|
|
2
2
|
import { NModal as tW, NDataTable as nW, useThemeVars as G5, useMessage as rW, NButton as p3, NRadio as iW, NSpin as PB, NCalendar as oW, NRadioGroup as Ub, NRadioButton as l5, NIcon as c5, NDatePicker as Gb, NProgress as aW } from "naive-ui";
|
|
3
3
|
import * as sW from "echarts";
|
|
4
4
|
const zB = gn({
|
package/package.json
CHANGED