jk-vue-comps 0.1.13 → 0.1.14

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.
@@ -1,65 +0,0 @@
1
- import type { CSSProperties, VNode, VNodeChild } from 'vue';
2
- import * as VueTypes from 'vue-types';
3
- declare const VuePropTypes_base: {
4
- new (): {};
5
- defaults: Partial<import("node_modules/vue-types/dist/types").VueTypesDefaults>;
6
- sensibleDefaults: boolean | Partial<import("node_modules/vue-types/dist/types").VueTypesDefaults>;
7
- config: import("node_modules/vue-types/dist/types").VueTypesConfig;
8
- readonly any: VueTypes.VueTypeValidableDef<any, import("node_modules/vue-types/dist/types").ValidatorFunction<any>>;
9
- readonly func: VueTypes.VueTypeValidableDef<(...args: any[]) => any, import("node_modules/vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
10
- default: (...args: any[]) => any;
11
- };
12
- readonly bool: VueTypes.VueTypeValidableDef<boolean, import("node_modules/vue-types/dist/types").ValidatorFunction<boolean>>;
13
- readonly string: VueTypes.VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
14
- default: string;
15
- };
16
- readonly number: VueTypes.VueTypeValidableDef<number, import("node_modules/vue-types/dist/types").ValidatorFunction<number>> & {
17
- default: number;
18
- };
19
- readonly array: VueTypes.VueTypeValidableDef<unknown[], import("node_modules/vue-types/dist/types").ValidatorFunction<unknown[]>> & {
20
- default: () => unknown[];
21
- };
22
- readonly object: VueTypes.VueTypeValidableDef<{
23
- [key: string]: any;
24
- }, import("node_modules/vue-types/dist/types").ValidatorFunction<{
25
- [key: string]: any;
26
- }>> & {
27
- default: () => {
28
- [key: string]: any;
29
- };
30
- };
31
- readonly integer: VueTypes.VueTypeDef<number> & {
32
- default: number;
33
- };
34
- readonly symbol: VueTypes.VueTypeDef<symbol>;
35
- readonly nullable: import("node_modules/vue-types/dist/types").PropOptions<null, null>;
36
- readonly custom: typeof VueTypes.custom;
37
- readonly oneOf: typeof VueTypes.oneOf;
38
- readonly instanceOf: typeof VueTypes.instanceOf;
39
- readonly oneOfType: typeof VueTypes.oneOfType;
40
- readonly arrayOf: typeof VueTypes.arrayOf;
41
- readonly objectOf: typeof VueTypes.objectOf;
42
- readonly shape: typeof VueTypes.shape;
43
- extend<T = any>(props: import("node_modules/vue-types/dist/types").ExtendProps<any> | import("node_modules/vue-types/dist/types").ExtendProps<any>[]): T;
44
- utils: {
45
- validate<T_1, U>(value: T_1, type: U): boolean;
46
- toType<T_2 = unknown>(name: string, obj: import("node_modules/vue-types/dist/types").PropOptions<T_2, T_2>, validable?: boolean | undefined): VueTypes.VueTypeDef<T_2> | VueTypes.VueTypeValidableDef<T_2, import("node_modules/vue-types/dist/types").ValidatorFunction<T_2>>;
47
- };
48
- };
49
- declare class VuePropTypes extends VuePropTypes_base {
50
- static vueTypes: typeof VueTypes;
51
- static anyType: <T = any>() => VueTypes.VueTypeValidableDef<T, import("node_modules/vue-types/dist/types").ValidatorFunction<T>>;
52
- static stringType: <T extends string = string>() => VueTypes.VueTypeValidableDef<T, import("node_modules/vue-types/dist/types").ValidatorFunction<T>>;
53
- static boolType: () => VueTypes.VueTypeValidableDef<boolean, import("node_modules/vue-types/dist/types").ValidatorFunction<boolean>>;
54
- static numberType: <T extends number = number>() => VueTypes.VueTypeValidableDef<T, import("node_modules/vue-types/dist/types").ValidatorFunction<T>>;
55
- static funcType: <T extends (...args: any[]) => any>() => VueTypes.VueTypeValidableDef<T, import("node_modules/vue-types/dist/types").ValidatorFunction<T>>;
56
- static get style(): VueTypes.VueTypeValidableDef<CSSProperties, import("node_modules/vue-types/dist/types").ValidatorFunction<CSSProperties>>;
57
- static get vueNode(): VueTypes.VueTypeValidableDef<VNode<import("vue").RendererNode, import("vue").RendererElement, {
58
- [key: string]: any;
59
- }> | VNodeChild, import("node_modules/vue-types/dist/types").ValidatorFunction<VNode<import("vue").RendererNode, import("vue").RendererElement, {
60
- [key: string]: any;
61
- }> | VNodeChild>>;
62
- }
63
- /** vue-types类型工具 */
64
- export declare const propTypes: typeof VuePropTypes;
65
- export default VuePropTypes;
@@ -1,29 +0,0 @@
1
- var l = Object.defineProperty;
2
- var r = (n, e, i) => e in n ? l(n, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[e] = i;
3
- var a = (n, e, i) => (r(n, typeof e != "symbol" ? e + "" : e, i), i);
4
- import * as s from "vue-types";
5
- const { createTypes: u, toValidableType: o } = s, t = void 0;
6
- class c extends u({
7
- func: t,
8
- bool: t,
9
- string: t,
10
- number: t,
11
- object: t,
12
- integer: t
13
- }) {
14
- static get style() {
15
- return o("style", {
16
- type: [Object],
17
- default: t
18
- });
19
- }
20
- static get vueNode() {
21
- return o("vueNode", { default: t });
22
- }
23
- }
24
- a(c, "vueTypes", s), a(c, "anyType", s.any), a(c, "stringType", s.string), a(c, "boolType", s.bool), a(c, "numberType", s.number), a(c, "funcType", s.func);
25
- const b = c;
26
- export {
27
- c as default,
28
- b as propTypes
29
- };
@@ -1,3 +0,0 @@
1
- import type { Plugin } from 'vue';
2
- /** 组件得到install方法 */
3
- export declare function withInstall<T>(component: T, alias?: string): T & Plugin;
@@ -1,9 +0,0 @@
1
- function e(i, t) {
2
- const l = i;
3
- return l.install = (r) => {
4
- r.component(l.name || l.displayName, i), t && (r.config.globalProperties[t] = i);
5
- }, i;
6
- }
7
- export {
8
- e as withInstall
9
- };