tutor-pro-ui-vue 1.0.20-beta → 1.0.23-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/package.json +1 -1
- package/dist/src/components/CommonButton/index.d.ts +0 -5
- package/dist/src/components/CommonButton/src/index.d.ts +0 -27
- package/dist/src/components/CommonButton/src/types.d.ts +0 -6
- package/dist/src/components/CommonButtonGroup/index.d.ts +0 -1
- package/dist/src/components/CommonButtonGroup/src/index.d.ts +0 -18
- package/dist/src/components/components.d.ts +0 -8
- package/dist/src/components/index.d.ts +0 -10
- package/dist/src/components/types.d.ts +0 -1
- package/dist/src/components/typescript.d.ts +0 -6
- package/dist/src/components/withInstall.d.ts +0 -4
- package/dist/tutor-pro-ui-vue.es.d.ts +0 -6
- package/dist/tutor-pro-ui-vue.es.js +0 -87
- package/dist/tutor-pro-ui-vue.umd.js +0 -1
- package/dist/vite.svg +0 -1
package/package.json
CHANGED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
debounce: {
|
|
3
|
-
type: NumberConstructor;
|
|
4
|
-
default: number;
|
|
5
|
-
};
|
|
6
|
-
label: {
|
|
7
|
-
type: FunctionConstructor;
|
|
8
|
-
default: () => string;
|
|
9
|
-
};
|
|
10
|
-
}>, {
|
|
11
|
-
debounceClick: import('@vueuse/core').PromisifyFn<() => void>;
|
|
12
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
13
|
-
debounce: {
|
|
14
|
-
type: NumberConstructor;
|
|
15
|
-
default: number;
|
|
16
|
-
};
|
|
17
|
-
label: {
|
|
18
|
-
type: FunctionConstructor;
|
|
19
|
-
default: () => string;
|
|
20
|
-
};
|
|
21
|
-
}>> & Readonly<{
|
|
22
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
23
|
-
}>, {
|
|
24
|
-
debounce: number;
|
|
25
|
-
label: Function;
|
|
26
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
27
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
debounce: {
|
|
3
|
-
type: NumberConstructor;
|
|
4
|
-
default: number;
|
|
5
|
-
};
|
|
6
|
-
}>, {
|
|
7
|
-
debounceClick: import('@vueuse/core').PromisifyFn<() => void>;
|
|
8
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
|
-
debounce: {
|
|
10
|
-
type: NumberConstructor;
|
|
11
|
-
default: number;
|
|
12
|
-
};
|
|
13
|
-
}>> & Readonly<{
|
|
14
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
15
|
-
}>, {
|
|
16
|
-
debounce: number;
|
|
17
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
18
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './CommonButton';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { AppContext, EmitsOptions, Plugin, SetupContext } from 'vue';
|
|
2
|
-
export type SFCWithInstall<T> = T & Plugin;
|
|
3
|
-
export type SFCInstallWithContext<T> = SFCWithInstall<T> & {
|
|
4
|
-
_context: AppContext | null;
|
|
5
|
-
};
|
|
6
|
-
export type EmitFn<E extends EmitsOptions> = SetupContext<E>['emit'];
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { unref as d, defineComponent as b, createVNode as h, resolveComponent as C } from "vue";
|
|
2
|
-
function a(e) {
|
|
3
|
-
return typeof e == "function" ? e() : d(e);
|
|
4
|
-
}
|
|
5
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
6
|
-
const f = () => {
|
|
7
|
-
};
|
|
8
|
-
function k(e, t) {
|
|
9
|
-
function n(...o) {
|
|
10
|
-
return new Promise((c, r) => {
|
|
11
|
-
Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(c).catch(r);
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
return n;
|
|
15
|
-
}
|
|
16
|
-
function x(e, t = {}) {
|
|
17
|
-
let n, o, c = f;
|
|
18
|
-
const r = (u) => {
|
|
19
|
-
clearTimeout(u), c(), c = f;
|
|
20
|
-
};
|
|
21
|
-
return (u) => {
|
|
22
|
-
const s = a(e), l = a(t.maxWait);
|
|
23
|
-
return n && r(n), s <= 0 || l !== void 0 && l <= 0 ? (o && (r(o), o = null), Promise.resolve(u())) : new Promise((i, m) => {
|
|
24
|
-
c = t.rejectOnCancel ? m : i, l && !o && (o = setTimeout(() => {
|
|
25
|
-
n && r(n), o = null, i(u());
|
|
26
|
-
}, l)), n = setTimeout(() => {
|
|
27
|
-
o && r(o), o = null, i(u());
|
|
28
|
-
}, s);
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
function y(e, t = 200, n = {}) {
|
|
33
|
-
return k(
|
|
34
|
-
x(t, n),
|
|
35
|
-
e
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
const T = /* @__PURE__ */ b({
|
|
39
|
-
name: "CommonButton",
|
|
40
|
-
props: {
|
|
41
|
-
debounce: {
|
|
42
|
-
type: Number,
|
|
43
|
-
default: 300
|
|
44
|
-
},
|
|
45
|
-
label: {
|
|
46
|
-
type: Function,
|
|
47
|
-
default: () => ""
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
emits: ["click"],
|
|
51
|
-
setup(e, {
|
|
52
|
-
emit: t
|
|
53
|
-
}) {
|
|
54
|
-
return {
|
|
55
|
-
debounceClick: y(() => {
|
|
56
|
-
t == null || t("click");
|
|
57
|
-
}, Number(e.debounce))
|
|
58
|
-
};
|
|
59
|
-
},
|
|
60
|
-
render() {
|
|
61
|
-
const {
|
|
62
|
-
label: e
|
|
63
|
-
} = this.$props;
|
|
64
|
-
return h(C("el-button"), {
|
|
65
|
-
onClick: this.debounceClick
|
|
66
|
-
}, {
|
|
67
|
-
default: () => {
|
|
68
|
-
var t, n;
|
|
69
|
-
return (e == null ? void 0 : e()) || ((n = (t = this.$slots).default) == null ? void 0 : n.call(t));
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
}), w = (e, t) => (e.install = (n) => {
|
|
74
|
-
for (const o of [e, ...Object.values({})])
|
|
75
|
-
n.component(o.name, o);
|
|
76
|
-
}, e), F = w(T), p = {
|
|
77
|
-
CommonButton: F
|
|
78
|
-
}, P = (e) => {
|
|
79
|
-
for (const t in p)
|
|
80
|
-
e.component(t, p[t]);
|
|
81
|
-
}, W = (e) => {
|
|
82
|
-
P(e);
|
|
83
|
-
}, N = { install: W };
|
|
84
|
-
export {
|
|
85
|
-
F as CommonButton,
|
|
86
|
-
N as default
|
|
87
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(u,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(u=typeof globalThis<"u"?globalThis:u||self,i(u["tutor-pro-ui-vue"]={},u.Vue))})(this,function(u,i){"use strict";function a(e){return typeof e=="function"?e():i.unref(e)}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const d=()=>{};function h(e,t){function n(...o){return new Promise((c,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(c).catch(r)})}return n}function C(e,t={}){let n,o,c=d;const r=l=>{clearTimeout(l),c(),c=d};return l=>{const b=a(e),s=a(t.maxWait);return n&&r(n),b<=0||s!==void 0&&s<=0?(o&&(r(o),o=null),Promise.resolve(l())):new Promise((f,x)=>{c=t.rejectOnCancel?x:f,s&&!o&&(o=setTimeout(()=>{n&&r(n),o=null,f(l())},s)),n=setTimeout(()=>{o&&r(o),o=null,f(l())},b)})}}function y(e,t=200,n={}){return h(C(t,n),e)}const p=((e,t)=>(e.install=n=>{for(const o of[e,...Object.values({})])n.component(o.name,o)},e))(i.defineComponent({name:"CommonButton",props:{debounce:{type:Number,default:300},label:{type:Function,default:()=>""}},emits:["click"],setup(e,{emit:t}){return{debounceClick:y(()=>{t==null||t("click")},Number(e.debounce))}},render(){const{label:e}=this.$props;return i.createVNode(i.resolveComponent("el-button"),{onClick:this.debounceClick},{default:()=>{var t,n;return(e==null?void 0:e())||((n=(t=this.$slots).default)==null?void 0:n.call(t))}})}})),m={CommonButton:p},T=e=>{for(const t in m)e.component(t,m[t])},k={install:e=>{T(e)}};u.CommonButton=p,u.default=k,Object.defineProperties(u,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/vite.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
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>
|