vue-happy-framework 1.0.3 → 1.0.5

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.
@@ -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
+ };
package/package.json CHANGED
@@ -1,11 +1,9 @@
1
1
  {
2
2
  "name": "vue-happy-framework",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "基于Vue的应用框架",
5
5
  "type": "module",
6
- "files": [
7
- "dist/"
8
- ],
6
+ "files": ["dist"],
9
7
  "scripts": {
10
8
  "dev": "vite",
11
9
  "build": "vue-tsc && vite build",
@@ -35,6 +33,7 @@
35
33
  },
36
34
  "devDependencies": {
37
35
  "@vitejs/plugin-vue": "^5.1.2",
36
+ "glob": "^11.0.0",
38
37
  "sass": "^1.79.1",
39
38
  "typescript": "^5.5.3",
40
39
  "vite": "^5.4.1",
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
- };