tutor-pro-ui-vue 1.0.32-beta → 1.0.34-beta
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.d.ts +1 -0
- package/dist/index.js +10 -10
- package/dist/index.umd.cjs +1 -1
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/index.d.ts +9 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { unref as
|
|
1
|
+
import { unref as d, defineComponent as k, resolveComponent as h, openBlock as s, createBlock as y, withCtx as x, createElementBlock as T, Fragment as w, createTextVNode as B, toDisplayString as F, renderSlot as g } from "vue";
|
|
2
2
|
function m(e) {
|
|
3
|
-
return typeof e == "function" ? e() :
|
|
3
|
+
return typeof e == "function" ? e() : d(e);
|
|
4
4
|
}
|
|
5
5
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
6
6
|
const f = () => {
|
|
@@ -56,7 +56,7 @@ const j = k({
|
|
|
56
56
|
}, Number(o.debounce));
|
|
57
57
|
return (c, p) => {
|
|
58
58
|
const r = h("el-button");
|
|
59
|
-
return s(), y(r, { onClick:
|
|
59
|
+
return s(), y(r, { onClick: d(l) }, {
|
|
60
60
|
default: x(() => {
|
|
61
61
|
var u, i;
|
|
62
62
|
return [
|
|
@@ -72,16 +72,16 @@ const j = k({
|
|
|
72
72
|
}), N = (e, n) => (e.install = (o) => {
|
|
73
73
|
for (const t of [e, ...Object.values({})])
|
|
74
74
|
o.component(t.name, t);
|
|
75
|
-
}, e), O = N(D),
|
|
75
|
+
}, e), O = N(D), v = (e) => e, b = {
|
|
76
76
|
CommonButton: O
|
|
77
77
|
}, G = (e) => {
|
|
78
|
-
for (const n in
|
|
79
|
-
e.component(n,
|
|
80
|
-
},
|
|
78
|
+
for (const n in b)
|
|
79
|
+
e.component(n, b[n]);
|
|
80
|
+
}, A = (e) => {
|
|
81
81
|
G(e);
|
|
82
|
-
}
|
|
82
|
+
};
|
|
83
83
|
export {
|
|
84
84
|
O as CommonButton,
|
|
85
|
-
|
|
86
|
-
A as
|
|
85
|
+
v as getOptionsLabel,
|
|
86
|
+
A as install
|
|
87
87
|
};
|
package/dist/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(c,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(c=typeof globalThis<"u"?globalThis:c||self,n(c["tutor-pro-ui-vue"]={},c.Vue))})(this,function(c,n){"use strict";function m(e){return typeof e=="function"?e():n.unref(e)}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const d=()=>{};function h(e,o){function l(...t){return new Promise((r,i)=>{Promise.resolve(e(()=>o.apply(this,t),{fn:o,thisArg:this,args:t})).then(r).catch(i)})}return l}function y(e,o={}){let l,t,r=d;const i=u=>{clearTimeout(u),r(),r=d};return u=>{const a=m(e),s=m(o.maxWait);return l&&i(l),a<=0||s!==void 0&&s<=0?(t&&(i(t),t=null),Promise.resolve(u())):new Promise((f,S)=>{r=o.rejectOnCancel?S:f,s&&!t&&(t=setTimeout(()=>{l&&i(l),t=null,f(u())},s)),l=setTimeout(()=>{t&&i(t),t=null,f(u())},a)})}}function k(e,o=200,l={}){return h(y(o,l),e)}const C=n.defineComponent({name:"CommonButton"}),T=n.defineComponent({...C,props:{debounce:{type:Number,default:300},label:{type:Function,default:()=>""}},emits:["click"],setup(e,{emit:o}){const l=e,t=o,r=k(()=>{t==null||t("click")},Number(l.debounce));return(i,x)=>{const u=n.resolveComponent("el-button");return n.openBlock(),n.createBlock(u,{onClick:n.unref(r)},{default:n.withCtx(()=>{var a,s;return[(a=e.label)!=null&&a.call(e)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString((s=e.label)==null?void 0:s.call(e)),1)],64)):n.renderSlot(i.$slots,"default",{key:1})]}),_:3},8,["onClick"])}}}),b=((e,o)=>(e.install=l=>{for(const t of[e,...Object.values({})])l.component(t.name,t)},e))(T),B=e=>e,p={CommonButton:b},g=e=>{for(const o in p)e.component(o,p[o])},w=e=>{g(e)};c.CommonButton=b,c.getOptionsLabel=B,c.install=w,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tutor-pro-ui-vue",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.34-beta",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"module": "dist/index.js",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
10
10
|
],
|