@fangzhongya/vue-archive 0.0.2-21 → 0.0.2-22
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/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js +0 -0
- package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js +0 -0
- package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-GOJN3OQ4.js +0 -0
- package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js +0 -0
- package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js +18 -0
- package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js +0 -0
- package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js +0 -0
- package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js +0 -0
- package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js +0 -0
- package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js +0 -0
- package/dist/es/packages/components/code/index.vue.js +17 -18
- package/dist/es/packages/components/use/index.js +1 -1
- package/dist/es/packages/components/use/retrie/choice/index.vue.js +1 -1
- package/dist/es/packages/components/use/set-code.vue.js +3 -3
- package/dist/es/packages/config.d.ts +2 -0
- package/dist/es/packages/config.js +1 -1
- package/dist/es/packages/index.d.ts +0 -1
- package/dist/es/packages/index.js +5 -7
- package/dist/es/packages/utils/common.js +66 -66
- package/dist/es/packages/utils/glob.d.ts +1 -1
- package/dist/es/packages/utils/glob.js +150 -122
- package/dist/es/packages/utils/index.d.ts +2 -1
- package/dist/es/packages/utils/index.js +16 -13
- package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js +0 -0
- package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js +0 -0
- package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-GOJN3OQ4.js +0 -0
- package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js +0 -0
- package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js +1 -0
- package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js +0 -0
- package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js +0 -0
- package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js +0 -0
- package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js +0 -0
- package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js +0 -0
- package/dist/lib/packages/components/code/index.vue.js +1 -1
- package/dist/lib/packages/components/use/index.js +1 -1
- package/dist/lib/packages/components/use/retrie/choice/index.vue.js +1 -1
- package/dist/lib/packages/components/use/set-code.vue.js +1 -1
- package/dist/lib/packages/config.d.ts +2 -0
- package/dist/lib/packages/config.js +1 -1
- package/dist/lib/packages/index.d.ts +0 -1
- package/dist/lib/packages/index.js +1 -1
- package/dist/lib/packages/utils/common.js +1 -1
- package/dist/lib/packages/utils/glob.d.ts +1 -1
- package/dist/lib/packages/utils/glob.js +2 -2
- package/dist/lib/packages/utils/index.d.ts +2 -1
- package/dist/lib/packages/utils/index.js +1 -1
- package/dist/node/index.cjs +17975 -0
- package/dist/node/index.d.ts +110 -0
- package/dist/node/index.js +17975 -0
- package/package.json +10 -8
- package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js +0 -6
- package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-XQB2HUHZ.js +0 -18
- package/dist/es/packages/node/index.d.ts +0 -2
- package/dist/es/packages/node/index.js +0 -155
- package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js +0 -1
- package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-XQB2HUHZ.js +0 -1
- package/dist/lib/packages/node/index.d.ts +0 -2
- package/dist/lib/packages/node/index.js +0 -1
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { AsyncComponentLoader } from 'vue';
|
|
2
|
+
|
|
3
|
+
interface ObjStr {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
}
|
|
6
|
+
type GetRaw = (v: any) => Promise<unknown>;
|
|
7
|
+
type Globs = Record<string, GetRaw> | GetRaw;
|
|
8
|
+
interface GlobComs {
|
|
9
|
+
[key: string]: AsyncComponentLoader;
|
|
10
|
+
}
|
|
11
|
+
interface Component {
|
|
12
|
+
dir: string;
|
|
13
|
+
extensions?: Array<string>;
|
|
14
|
+
alias?: string;
|
|
15
|
+
aliass?: ObjStr;
|
|
16
|
+
matchs?: Array<string>;
|
|
17
|
+
matchexts?: Array<string>;
|
|
18
|
+
directives?: string;
|
|
19
|
+
}
|
|
20
|
+
interface Resolver extends Component {
|
|
21
|
+
urls?: Array<string>;
|
|
22
|
+
dirUrls?: Array<string>;
|
|
23
|
+
}
|
|
24
|
+
interface Components extends Component {
|
|
25
|
+
resolver?: Resolver;
|
|
26
|
+
urls?: string[];
|
|
27
|
+
comprops?: string;
|
|
28
|
+
curprops?: string;
|
|
29
|
+
components: GlobComs;
|
|
30
|
+
componentsRaw: Globs;
|
|
31
|
+
example?: ExampleObj;
|
|
32
|
+
}
|
|
33
|
+
interface ExampleObj {
|
|
34
|
+
dir: string;
|
|
35
|
+
/**
|
|
36
|
+
* 0 : url 下面就是组件
|
|
37
|
+
* 1 : dir 名称开始
|
|
38
|
+
* 2 : 二级 aliass 目录
|
|
39
|
+
* 3 : dir 名称开始 加上二级 aliass 目录
|
|
40
|
+
*/
|
|
41
|
+
level?: string | number;
|
|
42
|
+
/**
|
|
43
|
+
* 0 : 不支持别名
|
|
44
|
+
* 1 : 只支持一级别名
|
|
45
|
+
* 2 : 只支持二级别名
|
|
46
|
+
* 3 : 只支持一级别名+二级别名
|
|
47
|
+
* 9 : 都支持
|
|
48
|
+
*/
|
|
49
|
+
aliaslevel?: string | number;
|
|
50
|
+
/**
|
|
51
|
+
* 不区分首字母大小写
|
|
52
|
+
* 0 : 只支持 el-input
|
|
53
|
+
* 1 : 只支持 elInput
|
|
54
|
+
* 2 : 都支持
|
|
55
|
+
*/
|
|
56
|
+
componentName?: string | number;
|
|
57
|
+
examples?: GlobComs;
|
|
58
|
+
urls?: string[];
|
|
59
|
+
examplesRaw?: Globs;
|
|
60
|
+
md?: string;
|
|
61
|
+
}
|
|
62
|
+
interface Config {
|
|
63
|
+
router?: string;
|
|
64
|
+
redirect?: boolean;
|
|
65
|
+
components: Array<Components>;
|
|
66
|
+
example?: ExampleObj;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
interface TextObj {
|
|
70
|
+
value: string;
|
|
71
|
+
suffix: string;
|
|
72
|
+
key: string;
|
|
73
|
+
raw: string;
|
|
74
|
+
getRaw: GetRaw | null;
|
|
75
|
+
}
|
|
76
|
+
interface MdObj extends TextObj {
|
|
77
|
+
topurl: string;
|
|
78
|
+
comkey: string;
|
|
79
|
+
name: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* 调试文件对象
|
|
83
|
+
*/
|
|
84
|
+
interface TestsObj extends TextObj {
|
|
85
|
+
topurl: string;
|
|
86
|
+
name: string;
|
|
87
|
+
comname: string;
|
|
88
|
+
comkey: string;
|
|
89
|
+
component: AsyncComponentLoader;
|
|
90
|
+
}
|
|
91
|
+
interface ComponentsObj extends Component, TextObj {
|
|
92
|
+
name: string;
|
|
93
|
+
tdir: string;
|
|
94
|
+
adir: string;
|
|
95
|
+
aliasNames: Array<string>;
|
|
96
|
+
component?: AsyncComponentLoader;
|
|
97
|
+
curprops?: string;
|
|
98
|
+
comprops?: string;
|
|
99
|
+
tests: {
|
|
100
|
+
[key: string]: TestsObj;
|
|
101
|
+
} | undefined;
|
|
102
|
+
mds?: MdObj[];
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
interface NodeConfig extends Config {
|
|
106
|
+
[key: string]: any;
|
|
107
|
+
}
|
|
108
|
+
declare function nodeInit(c: NodeConfig, callback: (mls: ComponentsObj[]) => void): void;
|
|
109
|
+
|
|
110
|
+
export { nodeInit };
|