vue-happy-framework 1.0.4 → 1.0.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/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "vue-happy-framework",
3
- "version": "1.0.4",
3
+ "version": "1.0.7",
4
4
  "description": "基于Vue的应用框架",
5
5
  "type": "module",
6
6
  "files": [
7
- "dist/cjs",
8
- "dist/es"
7
+ "packages/*"
9
8
  ],
9
+ "main": "packages/index.js",
10
10
  "scripts": {
11
11
  "dev": "vite",
12
12
  "build": "vue-tsc && vite build",
@@ -36,6 +36,8 @@
36
36
  },
37
37
  "devDependencies": {
38
38
  "@vitejs/plugin-vue": "^5.1.2",
39
+ "glob": "^11.0.0",
40
+ "rollup-plugin-copy": "^3.5.0",
39
41
  "sass": "^1.79.1",
40
42
  "typescript": "^5.5.3",
41
43
  "vite": "^5.4.1",
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function f(n,o,t){var e=document.getElementById(n),r=e.getAttribute(o),i=r-1e3,a=function(){i<r&&(i++,e.innerText=i),setTimeout(a,t)};setTimeout(a,t)}function p(n,o){var t=document.getElementsByClassName(n)[0],e=t.firstElementChild,r=e.children.length;let i=e==null?void 0:e.children;const a=document.createDocumentFragment();for(var d=0;d<r;d++){let m=i[d].cloneNode(!0);a.appendChild(m)}e.appendChild(a);let u=0;r>=2&&(u=e==null?void 0:e.children[1].offsetTop);var l=0;function c(){l>=r&&(l=0,e.style.top="0px"),l++,e.children[l-1].classList.add("active"),e.animate([{top:-((l-1)*u)+"px"},{top:-(l*u)+"px"}],{duration:1e3,delay:100,easing:"ease-in",fill:"forwards"}),setTimeout(function(){e.children[l-1].classList.remove("active")},1e3),s=setTimeout(c,o)}var s=setTimeout(c,o);t.onmouseover=function(){clearTimeout(s)},t.onmouseout=function(){s=setTimeout(c,o)}}function v(n){return`undefined${n}`}function h(n,o){let t=new Blob([n]),e=document.createElement("a");e.download="导出文件.xlsx",e.href=URL.createObjectURL(t),e.style.display="none",e.target="_blank",document.appendChild(e),e.click(),URL.revokeObjectURL(t),document.body.removeChild(e)}exports.AutoScroll=p;exports.NunberAdd=f;exports.exportExl=h;exports.getFileUrl=v;
@@ -0,0 +1,51 @@
1
+ function f(n, o, t) {
2
+ var e = document.getElementById(n), l = e.getAttribute(o), r = l - 1e3, a = function() {
3
+ r < l && (r++, e.innerText = r), setTimeout(a, t);
4
+ };
5
+ setTimeout(a, t);
6
+ }
7
+ function p(n, o) {
8
+ var t = document.getElementsByClassName(n)[0], e = t.firstElementChild, l = e.children.length;
9
+ let r = e == null ? void 0 : e.children;
10
+ const a = document.createDocumentFragment();
11
+ for (var d = 0; d < l; d++) {
12
+ let m = r[d].cloneNode(!0);
13
+ a.appendChild(m);
14
+ }
15
+ e.appendChild(a);
16
+ let u = 0;
17
+ l >= 2 && (u = e == null ? void 0 : e.children[1].offsetTop);
18
+ var i = 0;
19
+ function c() {
20
+ i >= l && (i = 0, e.style.top = "0px"), i++, e.children[i - 1].classList.add("active"), e.animate([
21
+ { top: -((i - 1) * u) + "px" },
22
+ { top: -(i * u) + "px" }
23
+ ], {
24
+ duration: 1e3,
25
+ delay: 100,
26
+ easing: "ease-in",
27
+ fill: "forwards"
28
+ }), setTimeout(function() {
29
+ e.children[i - 1].classList.remove("active");
30
+ }, 1e3), s = setTimeout(c, o);
31
+ }
32
+ var s = setTimeout(c, o);
33
+ t.onmouseover = function() {
34
+ clearTimeout(s);
35
+ }, t.onmouseout = function() {
36
+ s = setTimeout(c, o);
37
+ };
38
+ }
39
+ function v(n) {
40
+ return `undefined${n}`;
41
+ }
42
+ function h(n, o) {
43
+ let t = new Blob([n]), e = document.createElement("a");
44
+ e.download = "导出文件.xlsx", e.href = URL.createObjectURL(t), e.style.display = "none", e.target = "_blank", document.appendChild(e), e.click(), URL.revokeObjectURL(t), document.body.removeChild(e);
45
+ }
46
+ export {
47
+ p as AutoScroll,
48
+ f as NunberAdd,
49
+ h as exportExl,
50
+ v as getFileUrl
51
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index.cjs");exports.AutoScroll=e.AutoScroll;exports.NunberAdd=e.NunberAdd;exports.exportExl=e.exportExl;exports.getFileUrl=e.getFileUrl;
@@ -0,0 +1,7 @@
1
+ import { AutoScroll as l, NunberAdd as o, exportExl as t, getFileUrl as x } from "../index.js";
2
+ export {
3
+ l as AutoScroll,
4
+ o as NunberAdd,
5
+ t as exportExl,
6
+ x as getFileUrl
7
+ };
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/dist/cjs/index.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function f(d,n){var o=document.getElementsByClassName(d)[0],e=o.firstElementChild,i=e.children.length;let u=e==null?void 0:e.children;const c=document.createDocumentFragment();for(var a=0;a<i;a++){let m=u[a].cloneNode(!0);c.appendChild(m)}e.appendChild(c);let l=0;i>=2&&(l=e==null?void 0:e.children[1].offsetTop);var t=0;function r(){t>=i&&(t=0,e.style.top="0px"),t++,e.children[t-1].classList.add("active"),e.animate([{top:-((t-1)*l)+"px"},{top:-(t*l)+"px"}],{duration:1e3,delay:100,easing:"ease-in",fill:"forwards"}),setTimeout(function(){e.children[t-1].classList.remove("active")},1e3),s=setTimeout(r,n)}var s=setTimeout(r,n);o.onmouseover=function(){clearTimeout(s)},o.onmouseout=function(){s=setTimeout(r,n)}}exports.AutoScroll=f;
package/dist/es/index.js DELETED
@@ -1,35 +0,0 @@
1
- function f(d, n) {
2
- var o = document.getElementsByClassName(d)[0], e = o.firstElementChild, i = e.children.length;
3
- let m = e == null ? void 0 : e.children;
4
- const c = document.createDocumentFragment();
5
- for (var a = 0; a < i; a++) {
6
- let u = m[a].cloneNode(!0);
7
- c.appendChild(u);
8
- }
9
- e.appendChild(c);
10
- let r = 0;
11
- i >= 2 && (r = e == null ? void 0 : e.children[1].offsetTop);
12
- var t = 0;
13
- function l() {
14
- t >= i && (t = 0, e.style.top = "0px"), t++, e.children[t - 1].classList.add("active"), e.animate([
15
- { top: -((t - 1) * r) + "px" },
16
- { top: -(t * r) + "px" }
17
- ], {
18
- duration: 1e3,
19
- delay: 100,
20
- easing: "ease-in",
21
- fill: "forwards"
22
- }), setTimeout(function() {
23
- e.children[t - 1].classList.remove("active");
24
- }, 1e3), s = setTimeout(l, n);
25
- }
26
- var s = setTimeout(l, n);
27
- o.onmouseover = function() {
28
- clearTimeout(s);
29
- }, o.onmouseout = function() {
30
- s = setTimeout(l, n);
31
- };
32
- }
33
- export {
34
- f as AutoScroll
35
- };