dmx-admin-ui 1.2.202 → 1.2.204

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/types/admin.d.ts DELETED
@@ -1,68 +0,0 @@
1
- import type { models, ModelName, modelsCols,Cols } from '../.././app/types/models'
2
-
3
- type adminTableOptionCol<T> = {
4
- /** 标题 */
5
- title?: string;
6
- /** 字段 */
7
- field?: keyof models[T];
8
- /** 类型 */
9
- type?: 'text' | 'cate' | 'status' | 'checkbox' | 'switch' | 'tool' | 'time';
10
- /** 定义样式 */
11
- class?: string;
12
- /** 字体颜色 */
13
- color?: string;
14
- /** 宽度 */
15
- width?: number;
16
- /** 是否可编辑 */
17
- edit?: boolean;
18
- /** 是否显示当前字段排序 */
19
- sort?: boolean;
20
- url?: string
21
- /** 格式化数据 */
22
- format?: (e) => {};
23
- /** 工具栏 */
24
- btn?: {
25
- action?: 'edit' | 'del', icon?: string, type?: 'success' | 'danger' | 'warning' | 'default', title?: string,
26
- tab?: number | number[]
27
- }[]
28
- }|modelsCols<T>;
29
- /** admin-form 表单 */
30
- type adminFormOption = {};
31
- declare global {
32
- interface ImportMeta {
33
- env: Record<string, string | undefined>
34
- }
35
- /** admin-table 表格配置项 */
36
- type adminTableOption<T extends ModelName> = {
37
- /** 标题 */
38
- title?: string | boolean;
39
- /** 数据api链接 */
40
- url?: string;
41
- /** 数据 */
42
- data?: object[];
43
- /** 状态导航 */
44
- tabs?: object[];
45
- /** 分页 */
46
- page?: number | boolean;
47
- /** 是否开启树状数据 */
48
- tree?: boolean | object;
49
- /** 顶部工具栏 */
50
- tools?: object[];
51
- /** 接口操作成功后 */
52
- apiSuccess?: (e) => {};
53
- /** 预加载请求 */
54
- preUrl?: string[];
55
- /** 列表字段配置 */
56
- cols: adminTableOptionCol<T>[]
57
- edit?: any
58
- del?: any
59
- add?: any
60
- search?: any
61
- batch?: object[]
62
- };
63
- }
64
- interface ImportMeta {
65
- // Node.js 环境变量
66
- env: Record<string, string | undefined>;
67
- }
68
- export { };
package/types/index.d.ts DELETED
@@ -1,48 +0,0 @@
1
- type col = {
2
- /** 标题 */
3
- title: string;
4
- /** 字段 */
5
- field: string;
6
- /** 类型 */
7
- type?: 'text' | 'cate' | 'status';
8
- /** 定义样式 */
9
- class?: string;
10
- /** 宽度 */
11
- width?: number;
12
- /** 是否可编辑 */
13
- edit?: boolean;
14
- /** 格式化数据 */
15
- format?: (e)=>{};
16
- /** 工具栏 */
17
- btn?:Array<{action?:'edit' | 'del',icon?:string,type?:'success'|'danger'|'warning'|'default',title?:string}>
18
- };
19
- type tableType = {
20
- /** 标题 */
21
- title?: string;
22
- /** 请求链接 */
23
- url?: string;
24
- /** 数据 */
25
- data?: Array<object>;
26
- /** 分页 */
27
- page?: number | boolean;
28
- /** 是否开启树状数据 */
29
- tree?: boolean;
30
- /** 顶部工具栏 */
31
- tools?: Array<object>;
32
- /** 接口操作成功后 */
33
- apiSuccess?: (e) => {};
34
- /** 预加载请求 */
35
- preUrl?: string[];
36
- /** 列表字段配置 */
37
- cols: Array<col>;
38
- };
39
-
40
- /** 表格方法 */
41
- type refs_amdinTable = {};
42
- type back = {
43
- code: number,
44
- data: any,
45
- msg: string
46
- };
47
- /** admin-form 表单数据 */
48
- type formType={};
package/types/vite.d.ts DELETED
File without changes
package/vite.js DELETED
@@ -1,13 +0,0 @@
1
- /** codebear */
2
- import{createLogger as l}from"vite";var i=l();function t(){return{name:"vite-plugin-macro-components",enforce:"pre",transform(r,e){if(!e.endsWith(".vue")&&!e.endsWith(".js")&&!e.endsWith(".ts"))return;if(!r.includes("$macroComponents"))return;let n=/\$macroComponents\(([^)]*)\)/g;i.info(`$macroComponents transform success in ${e}`);let o=r,s,a=!1;while((s=n.exec(r))!==null){a=!0;let m=s[0],c=`(() => {
3
- const c = {};
4
- const globs = import.meta.glob([\`${(s[1].trim().replace(/['"]/g,"")||""||"./").replace(/^['"]|['"]$/g,"")}/**/*.vue\`], {
5
- import: 'default',
6
- eager: true
7
- });
8
- for (const path in globs) {
9
- const name = path.split('/').pop().replace('.vue', '');
10
- c[name] = globs[path];
11
- }
12
- return c;
13
- })()`;o=o.replace(m,c)}if(a)return{code:o,map:null}}}}import{defineConfig as $}from"vite";var b=()=>{let r=!1;return[t()]};export{b as default};