@ditari/bsui 1.0.0
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/cjs/_virtual/_plugin-vue_export-helper.cjs.js +1 -0
- package/dist/cjs/components/components.cjs.js +1 -0
- package/dist/cjs/components/components.d.ts +3 -0
- package/dist/cjs/components/form/Form.vue.cjs.js +1 -0
- package/dist/cjs/components/form/Form.vue.cjs2.js +1 -0
- package/dist/cjs/components/form/Form.vue.d.ts +4 -0
- package/dist/cjs/components/form/index.cjs.js +1 -0
- package/dist/cjs/components/form/index.d.ts +4 -0
- package/dist/cjs/components/index.cjs.js +1 -0
- package/dist/cjs/components/index.d.ts +7 -0
- package/dist/cjs/components/layout/Breadcrumb.vue.cjs.js +1 -0
- package/dist/cjs/components/layout/Breadcrumb.vue.cjs2.js +1 -0
- package/dist/cjs/components/layout/Breadcrumb.vue.cjs3.js +1 -0
- package/dist/cjs/components/layout/Breadcrumb.vue.d.ts +2 -0
- package/dist/cjs/components/layout/List.vue.cjs.js +1 -0
- package/dist/cjs/components/layout/List.vue.cjs2.js +1 -0
- package/dist/cjs/components/layout/List.vue.cjs3.js +1 -0
- package/dist/cjs/components/layout/List.vue.d.ts +4 -0
- package/dist/cjs/components/layout/Main.vue.cjs.js +1 -0
- package/dist/cjs/components/layout/Main.vue.cjs2.js +1 -0
- package/dist/cjs/components/layout/Main.vue.cjs3.js +1 -0
- package/dist/cjs/components/layout/Main.vue.d.ts +2 -0
- package/dist/cjs/components/layout/Menu.cjs.js +1 -0
- package/dist/cjs/components/layout/Menu.d.ts +2 -0
- package/dist/cjs/components/layout/NavTabs.vue.cjs.js +1 -0
- package/dist/cjs/components/layout/NavTabs.vue.cjs2.js +1 -0
- package/dist/cjs/components/layout/NavTabs.vue.cjs3.js +1 -0
- package/dist/cjs/components/layout/NavTabs.vue.d.ts +2 -0
- package/dist/cjs/components/layout/Show.vue.cjs.js +1 -0
- package/dist/cjs/components/layout/Show.vue.cjs2.js +1 -0
- package/dist/cjs/components/layout/Show.vue.cjs3.js +1 -0
- package/dist/cjs/components/layout/Show.vue.d.ts +19 -0
- package/dist/cjs/components/layout/index.cjs.js +1 -0
- package/dist/cjs/components/layout/index.d.ts +47 -0
- package/dist/cjs/components/table/Field.vue.cjs.js +1 -0
- package/dist/cjs/components/table/Field.vue.cjs2.js +1 -0
- package/dist/cjs/components/table/Field.vue.d.ts +28 -0
- package/dist/cjs/components/table/Table.vue.cjs.js +1 -0
- package/dist/cjs/components/table/Table.vue.cjs2.js +1 -0
- package/dist/cjs/components/table/Table.vue.cjs3.js +1 -0
- package/dist/cjs/components/table/Table.vue.d.ts +131 -0
- package/dist/cjs/components/table/index.cjs.js +1 -0
- package/dist/cjs/components/table/index.d.ts +128 -0
- package/dist/cjs/store/index.d.ts +7 -0
- package/dist/cjs/store/modules/Breadcrumb.cjs.js +1 -0
- package/dist/cjs/store/modules/Breadcrumb.d.ts +20 -0
- package/dist/cjs/store/modules/DataDictionary.cjs.js +1 -0
- package/dist/cjs/store/modules/DataDictionary.d.ts +4 -0
- package/dist/cjs/store/modules/KeepAlive.cjs.js +1 -0
- package/dist/cjs/store/modules/KeepAlive.d.ts +22 -0
- package/dist/cjs/store/modules/Menu.cjs.js +1 -0
- package/dist/cjs/store/modules/Menu.d.ts +12 -0
- package/dist/cjs/store/modules/NavTab.cjs.js +1 -0
- package/dist/cjs/store/modules/NavTab.d.ts +59 -0
- package/dist/cjs/store/modules/Settings.cjs.js +1 -0
- package/dist/cjs/store/modules/Settings.d.ts +29 -0
- package/dist/cjs/store/modules/User.cjs.js +1 -0
- package/dist/cjs/store/modules/User.d.ts +16 -0
- package/dist/cjs/store/types.cjs.js +1 -0
- package/dist/cjs/store/types.d.ts +7 -0
- package/dist/cjs/utils/get.d.ts +1 -0
- package/dist/cjs/utils/index.d.ts +2 -0
- package/dist/cjs/utils/install.cjs.js +1 -0
- package/dist/cjs/utils/install.d.ts +4 -0
- package/dist/esm/_virtual/_plugin-vue_export-helper.esm.js +9 -0
- package/dist/esm/components/components.d.ts +3 -0
- package/dist/esm/components/components.esm.js +11 -0
- package/dist/esm/components/form/Form.vue.d.ts +4 -0
- package/dist/esm/components/form/Form.vue.esm.js +20 -0
- package/dist/esm/components/form/Form.vue.esm2.js +6 -0
- package/dist/esm/components/form/index.d.ts +4 -0
- package/dist/esm/components/form/index.esm.js +7 -0
- package/dist/esm/components/index.d.ts +7 -0
- package/dist/esm/components/index.esm.js +30 -0
- package/dist/esm/components/layout/Breadcrumb.vue.d.ts +2 -0
- package/dist/esm/components/layout/Breadcrumb.vue.esm.js +49 -0
- package/dist/esm/components/layout/Breadcrumb.vue.esm2.js +4 -0
- package/dist/esm/components/layout/Breadcrumb.vue.esm3.js +5 -0
- package/dist/esm/components/layout/List.vue.d.ts +4 -0
- package/dist/esm/components/layout/List.vue.esm.js +108 -0
- package/dist/esm/components/layout/List.vue.esm2.js +4 -0
- package/dist/esm/components/layout/List.vue.esm3.js +5 -0
- package/dist/esm/components/layout/Main.vue.d.ts +2 -0
- package/dist/esm/components/layout/Main.vue.esm.js +116 -0
- package/dist/esm/components/layout/Main.vue.esm2.js +4 -0
- package/dist/esm/components/layout/Main.vue.esm3.js +5 -0
- package/dist/esm/components/layout/Menu.d.ts +2 -0
- package/dist/esm/components/layout/Menu.esm.js +26 -0
- package/dist/esm/components/layout/NavTabs.vue.d.ts +2 -0
- package/dist/esm/components/layout/NavTabs.vue.esm.js +72 -0
- package/dist/esm/components/layout/NavTabs.vue.esm2.js +4 -0
- package/dist/esm/components/layout/NavTabs.vue.esm3.js +5 -0
- package/dist/esm/components/layout/Show.vue.d.ts +19 -0
- package/dist/esm/components/layout/Show.vue.esm.js +61 -0
- package/dist/esm/components/layout/Show.vue.esm2.js +4 -0
- package/dist/esm/components/layout/Show.vue.esm3.js +5 -0
- package/dist/esm/components/layout/index.d.ts +47 -0
- package/dist/esm/components/layout/index.esm.js +16 -0
- package/dist/esm/components/table/Field.vue.d.ts +28 -0
- package/dist/esm/components/table/Field.vue.esm.js +38 -0
- package/dist/esm/components/table/Field.vue.esm2.js +4 -0
- package/dist/esm/components/table/Table.vue.d.ts +131 -0
- package/dist/esm/components/table/Table.vue.esm.js +237 -0
- package/dist/esm/components/table/Table.vue.esm2.js +4 -0
- package/dist/esm/components/table/Table.vue.esm3.js +5 -0
- package/dist/esm/components/table/index.d.ts +128 -0
- package/dist/esm/components/table/index.esm.js +8 -0
- package/dist/esm/store/index.d.ts +7 -0
- package/dist/esm/store/modules/Breadcrumb.d.ts +20 -0
- package/dist/esm/store/modules/Breadcrumb.esm.js +27 -0
- package/dist/esm/store/modules/DataDictionary.d.ts +4 -0
- package/dist/esm/store/modules/DataDictionary.esm.js +9 -0
- package/dist/esm/store/modules/KeepAlive.d.ts +22 -0
- package/dist/esm/store/modules/KeepAlive.esm.js +36 -0
- package/dist/esm/store/modules/Menu.d.ts +12 -0
- package/dist/esm/store/modules/Menu.esm.js +19 -0
- package/dist/esm/store/modules/NavTab.d.ts +59 -0
- package/dist/esm/store/modules/NavTab.esm.js +56 -0
- package/dist/esm/store/modules/Settings.d.ts +29 -0
- package/dist/esm/store/modules/Settings.esm.js +32 -0
- package/dist/esm/store/modules/User.d.ts +16 -0
- package/dist/esm/store/modules/User.esm.js +20 -0
- package/dist/esm/store/types.d.ts +7 -0
- package/dist/esm/store/types.esm.js +10 -0
- package/dist/esm/style.css +274 -0
- package/dist/esm/utils/get.d.ts +1 -0
- package/dist/esm/utils/index.d.ts +2 -0
- package/dist/esm/utils/install.d.ts +4 -0
- package/dist/esm/utils/install.esm.js +7 -0
- package/package.json +28 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: import("pinia").StoreDefinition<string, {
|
|
2
|
+
list: never[];
|
|
3
|
+
}, {
|
|
4
|
+
getMenu: (state: {
|
|
5
|
+
list: never[];
|
|
6
|
+
} & import("pinia").PiniaCustomStateProperties<{
|
|
7
|
+
list: never[];
|
|
8
|
+
}>) => never[];
|
|
9
|
+
}, {
|
|
10
|
+
save(data: any): void;
|
|
11
|
+
}>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("pinia"),l=require("../types.cjs.js"),r=i.defineStore(l.NAV_TAB_ID,{state:()=>({list:[],activeKey:""}),getters:{getList:e=>e.list,getActiveKey:e=>e.activeKey},actions:{setActiveKey(e){this.activeKey=e},save(e){if(this.list.some(a=>a.fullPath===e.fullPath))return;const s={path:e.path,fullPath:e.fullPath,query:e.query,params:e.params,meta:e.meta,name:e.name||""};this.list.push(s)},deleteTabs(e){this.list.splice(this.list.findIndex(t=>t.fullPath===e),1)}},persist:!0});exports.default=r;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { LocationQuery, RouteLocationNormalized, RouteMeta, RouteParams } from "vue-router";
|
|
2
|
+
export interface INavTab {
|
|
3
|
+
path: string;
|
|
4
|
+
fullPath: string;
|
|
5
|
+
query: LocationQuery;
|
|
6
|
+
params: RouteParams;
|
|
7
|
+
meta: RouteMeta | any;
|
|
8
|
+
name: string;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: import("pinia").StoreDefinition<string, {
|
|
11
|
+
list: INavTab[];
|
|
12
|
+
activeKey: string;
|
|
13
|
+
}, {
|
|
14
|
+
getList: (state: {
|
|
15
|
+
list: {
|
|
16
|
+
path: string;
|
|
17
|
+
fullPath: string;
|
|
18
|
+
query: LocationQuery;
|
|
19
|
+
params: RouteParams;
|
|
20
|
+
meta: any;
|
|
21
|
+
name: string;
|
|
22
|
+
}[];
|
|
23
|
+
activeKey: string;
|
|
24
|
+
} & import("pinia").PiniaCustomStateProperties<{
|
|
25
|
+
list: INavTab[];
|
|
26
|
+
activeKey: string;
|
|
27
|
+
}>) => INavTab[];
|
|
28
|
+
getActiveKey: (state: {
|
|
29
|
+
list: {
|
|
30
|
+
path: string;
|
|
31
|
+
fullPath: string;
|
|
32
|
+
query: LocationQuery;
|
|
33
|
+
params: RouteParams;
|
|
34
|
+
meta: any;
|
|
35
|
+
name: string;
|
|
36
|
+
}[];
|
|
37
|
+
activeKey: string;
|
|
38
|
+
} & import("pinia").PiniaCustomStateProperties<{
|
|
39
|
+
list: INavTab[];
|
|
40
|
+
activeKey: string;
|
|
41
|
+
}>) => string;
|
|
42
|
+
}, {
|
|
43
|
+
/**
|
|
44
|
+
* 设置激活的标签
|
|
45
|
+
* @param key
|
|
46
|
+
*/
|
|
47
|
+
setActiveKey(key: string): void;
|
|
48
|
+
/**
|
|
49
|
+
* 保存标签信息
|
|
50
|
+
* @param route
|
|
51
|
+
*/
|
|
52
|
+
save(route: RouteLocationNormalized): void;
|
|
53
|
+
/**
|
|
54
|
+
* 删除标签
|
|
55
|
+
* @param key url路径
|
|
56
|
+
*/
|
|
57
|
+
deleteTabs(key: string): void;
|
|
58
|
+
}>;
|
|
59
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("pinia"),t=require("../types.cjs.js"),r=s.defineStore(t.SETTINGS_ID,{state:()=>({refresh:!1,collapsed:!1}),getters:{getRefresh:e=>e.refresh,getCollapsed:e=>e.collapsed},actions:{switchRefreshStatus(){this.refresh=!this.refresh},switchCollapsed(){this.collapsed=!this.collapsed}},persist:!0});exports.default=r;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _default: import("pinia").StoreDefinition<string, {
|
|
2
|
+
refresh: boolean;
|
|
3
|
+
collapsed: boolean;
|
|
4
|
+
}, {
|
|
5
|
+
getRefresh: (state: {
|
|
6
|
+
refresh: boolean;
|
|
7
|
+
collapsed: boolean;
|
|
8
|
+
} & import("pinia").PiniaCustomStateProperties<{
|
|
9
|
+
refresh: boolean;
|
|
10
|
+
collapsed: boolean;
|
|
11
|
+
}>) => boolean;
|
|
12
|
+
getCollapsed: (state: {
|
|
13
|
+
refresh: boolean;
|
|
14
|
+
collapsed: boolean;
|
|
15
|
+
} & import("pinia").PiniaCustomStateProperties<{
|
|
16
|
+
refresh: boolean;
|
|
17
|
+
collapsed: boolean;
|
|
18
|
+
}>) => boolean;
|
|
19
|
+
}, {
|
|
20
|
+
/**
|
|
21
|
+
* 切换刷新
|
|
22
|
+
*/
|
|
23
|
+
switchRefreshStatus(): void;
|
|
24
|
+
/**
|
|
25
|
+
* 切换菜单收缩状态
|
|
26
|
+
*/
|
|
27
|
+
switchCollapsed(): void;
|
|
28
|
+
}>;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("pinia"),n=require("../types.cjs.js");t.defineStore(n.USER_ID,{state:()=>({token:void 0}),getters:{getToken:e=>e.token},actions:{saveToken(e){this.token=e}}});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("pinia").StoreDefinition<string, {
|
|
2
|
+
token: undefined;
|
|
3
|
+
}, {
|
|
4
|
+
getToken: (state: {
|
|
5
|
+
token: undefined;
|
|
6
|
+
} & import("pinia").PiniaCustomStateProperties<{
|
|
7
|
+
token: undefined;
|
|
8
|
+
}>) => undefined;
|
|
9
|
+
}, {
|
|
10
|
+
/**
|
|
11
|
+
* 保存token
|
|
12
|
+
* @param token
|
|
13
|
+
*/
|
|
14
|
+
saveToken(token: any): void;
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I="DTH_BEAUTY_",_=`${I}BREADCRUMB_ID`,D=`${I}DATA_DICTIONARY_ID`,A=`${I}KEEP_ALIVE_ID`,E=`${I}MENU_ID`,T=`${I}NAV_TABS_ID`,t=`${I}SETTINGS_ID`,o=`${I}USER_ID`;exports.BREADCRUMB_ID=_;exports.DATA_DICTIONARY_ID=D;exports.KEEP_ALIVE_ID=A;exports.MENU_ID=E;exports.NAV_TAB_ID=T;exports.SETTINGS_ID=t;exports.USER_ID=o;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const BREADCRUMB_ID: string;
|
|
2
|
+
export declare const DATA_DICTIONARY_ID: string;
|
|
3
|
+
export declare const KEEP_ALIVE_ID: string;
|
|
4
|
+
export declare const MENU_ID: string;
|
|
5
|
+
export declare const NAV_TAB_ID: string;
|
|
6
|
+
export declare const SETTINGS_ID: string;
|
|
7
|
+
export declare const USER_ID: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const get: (source: Record<string, any>, path: string, defaultValue?: any) => any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=e=>(e.install=t=>{const n=e.name||e.__name;t.component(n,e)},e);exports.default=l;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DForm as D } from "./form/index.esm.js";
|
|
2
|
+
import { DList as e, DMain as m, DNavTabs as t, DShow as f } from "./layout/index.esm.js";
|
|
3
|
+
import { DTable as x } from "./table/index.esm.js";
|
|
4
|
+
export {
|
|
5
|
+
D as DForm,
|
|
6
|
+
e as DList,
|
|
7
|
+
m as DMain,
|
|
8
|
+
t as DNavTabs,
|
|
9
|
+
f as DShow,
|
|
10
|
+
x as DTable
|
|
11
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import t from "./Form.vue.esm2.js";
|
|
2
|
+
import { resolveComponent as o, openBlock as n, createElementBlock as r, Fragment as c, createVNode as a, withCtx as m, createTextVNode as _, createElementVNode as l } from "vue";
|
|
3
|
+
import p from "../../_virtual/_plugin-vue_export-helper.esm.js";
|
|
4
|
+
const s = /* @__PURE__ */ l("div", null, "form", -1);
|
|
5
|
+
function d(f, u, i, x, $, h) {
|
|
6
|
+
const e = o("a-button");
|
|
7
|
+
return n(), r(c, null, [
|
|
8
|
+
s,
|
|
9
|
+
a(e, null, {
|
|
10
|
+
default: m(() => [
|
|
11
|
+
_("ok")
|
|
12
|
+
]),
|
|
13
|
+
_: 1
|
|
14
|
+
})
|
|
15
|
+
], 64);
|
|
16
|
+
}
|
|
17
|
+
const b = /* @__PURE__ */ p(t, [["render", d]]);
|
|
18
|
+
export {
|
|
19
|
+
b as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { createPinia as i } from "pinia";
|
|
2
|
+
import { createPersistedState as a } from "pinia-plugin-persistedstate";
|
|
3
|
+
import * as c from "./components.esm.js";
|
|
4
|
+
import { DForm as x } from "./form/index.esm.js";
|
|
5
|
+
import { DTable as d } from "./table/index.esm.js";
|
|
6
|
+
import { DList as S, DMain as h, DNavTabs as P, DShow as T } from "./layout/index.esm.js";
|
|
7
|
+
const s = c, m = function(o, n) {
|
|
8
|
+
Object.keys(s).forEach((r) => {
|
|
9
|
+
const e = s[r];
|
|
10
|
+
e.install && o.use(e);
|
|
11
|
+
});
|
|
12
|
+
const t = i();
|
|
13
|
+
t.use(
|
|
14
|
+
a({
|
|
15
|
+
storage: sessionStorage
|
|
16
|
+
})
|
|
17
|
+
), o.use(t), console.log("options", n);
|
|
18
|
+
}, l = {
|
|
19
|
+
install: m
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
x as DForm,
|
|
23
|
+
S as DList,
|
|
24
|
+
h as DMain,
|
|
25
|
+
P as DNavTabs,
|
|
26
|
+
T as DShow,
|
|
27
|
+
d as DTable,
|
|
28
|
+
l as default,
|
|
29
|
+
m as install
|
|
30
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineComponent as i, computed as u, resolveComponent as l, openBlock as e, createElementBlock as r, createElementVNode as p, createVNode as _, TransitionGroup as b, withCtx as n, Fragment as f, renderList as k, unref as a, createBlock as h, createTextVNode as B, toDisplayString as c } from "vue";
|
|
2
|
+
import g from "../../store/modules/Breadcrumb.esm.js";
|
|
3
|
+
import "../../store/modules/DataDictionary.esm.js";
|
|
4
|
+
import "../../store/modules/KeepAlive.esm.js";
|
|
5
|
+
import "../../store/modules/Menu.esm.js";
|
|
6
|
+
import "../../store/modules/NavTab.esm.js";
|
|
7
|
+
import "../../store/modules/Settings.esm.js";
|
|
8
|
+
import "../../store/modules/User.esm.js";
|
|
9
|
+
const v = { class: "dfb-breadcrumb" }, x = { class: "breadcrumb" }, y = {
|
|
10
|
+
key: 1,
|
|
11
|
+
class: "breadcrumb-link"
|
|
12
|
+
}, C = {
|
|
13
|
+
name: "DBreadcrumb"
|
|
14
|
+
}, q = /* @__PURE__ */ i({
|
|
15
|
+
...C,
|
|
16
|
+
setup(N) {
|
|
17
|
+
const s = g(), o = u(() => s.getBreadcrumb);
|
|
18
|
+
return (V, D) => {
|
|
19
|
+
const m = l("router-link");
|
|
20
|
+
return e(), r("div", v, [
|
|
21
|
+
p("div", x, [
|
|
22
|
+
_(b, { name: "breadcrumb" }, {
|
|
23
|
+
default: n(() => [
|
|
24
|
+
(e(!0), r(f, null, k(a(o), (t, d) => (e(), r("div", {
|
|
25
|
+
class: "breadcrumb-item",
|
|
26
|
+
key: t.path
|
|
27
|
+
}, [
|
|
28
|
+
d + 1 !== a(o).length ? (e(), h(m, {
|
|
29
|
+
key: 0,
|
|
30
|
+
class: "breadcrumb-link",
|
|
31
|
+
to: { path: t.path }
|
|
32
|
+
}, {
|
|
33
|
+
default: n(() => [
|
|
34
|
+
B(c(t.title), 1)
|
|
35
|
+
]),
|
|
36
|
+
_: 2
|
|
37
|
+
}, 1032, ["to"])) : (e(), r("span", y, c(t.title), 1))
|
|
38
|
+
]))), 128))
|
|
39
|
+
]),
|
|
40
|
+
_: 1
|
|
41
|
+
})
|
|
42
|
+
])
|
|
43
|
+
]);
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
q as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "refresh"[], "refresh", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
2
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
3
|
+
}, {}>;
|
|
4
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { defineComponent as C, useSlots as T, inject as $, ref as l, nextTick as z, watch as b, onUnmounted as B, onActivated as D, onDeactivated as H, resolveComponent as y, openBlock as E, createElementBlock as L, createElementVNode as t, createVNode as m, normalizeClass as N, unref as u, normalizeStyle as R, withCtx as d, renderSlot as r, withDirectives as V, vShow as W } from "vue";
|
|
2
|
+
import "../../store/modules/Breadcrumb.esm.js";
|
|
3
|
+
import "../../store/modules/DataDictionary.esm.js";
|
|
4
|
+
import "../../store/modules/KeepAlive.esm.js";
|
|
5
|
+
import "../../store/modules/Menu.esm.js";
|
|
6
|
+
import "../../store/modules/NavTab.esm.js";
|
|
7
|
+
import j from "../../store/modules/Settings.esm.js";
|
|
8
|
+
import "../../store/modules/User.esm.js";
|
|
9
|
+
import { storeToRefs as A } from "pinia";
|
|
10
|
+
import { useRoute as U } from "vue-router";
|
|
11
|
+
const q = { class: "dfb-list-layout" }, F = {
|
|
12
|
+
ref: "contentRef",
|
|
13
|
+
class: "wrapper"
|
|
14
|
+
}, G = { class: "xi-content-extra" }, I = {
|
|
15
|
+
name: "DListLayout"
|
|
16
|
+
}, se = /* @__PURE__ */ C({
|
|
17
|
+
...I,
|
|
18
|
+
emits: ["refresh"],
|
|
19
|
+
setup(J, { emit: p }) {
|
|
20
|
+
const a = T(), g = j(), S = U(), n = $("configProvider"), { refresh: f } = A(g), w = l(), i = l(), v = 16, o = l(!1), c = l(0);
|
|
21
|
+
let s;
|
|
22
|
+
z(() => {
|
|
23
|
+
setTimeout(() => {
|
|
24
|
+
c.value = i.value.offsetHeight, o.value = !0;
|
|
25
|
+
}, 1);
|
|
26
|
+
}), b(
|
|
27
|
+
() => n == null ? void 0 : n.componentSize,
|
|
28
|
+
(e) => {
|
|
29
|
+
o.value = !1, setTimeout(() => {
|
|
30
|
+
c.value = i.value.offsetHeight, o.value = !0;
|
|
31
|
+
}, 100);
|
|
32
|
+
}
|
|
33
|
+
), x();
|
|
34
|
+
function x() {
|
|
35
|
+
S.name ? (D(() => {
|
|
36
|
+
f.value && (f.value = !1, p("refresh")), s = _();
|
|
37
|
+
}), H(() => {
|
|
38
|
+
s();
|
|
39
|
+
})) : (s = _(), B(() => {
|
|
40
|
+
s();
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
function _() {
|
|
44
|
+
return b(
|
|
45
|
+
() => f.value,
|
|
46
|
+
(e) => {
|
|
47
|
+
e && p("refresh");
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
return (e, K) => {
|
|
52
|
+
const h = y("a-card"), k = y("a-space");
|
|
53
|
+
return E(), L("div", q, [
|
|
54
|
+
t("div", F, [
|
|
55
|
+
m(h, {
|
|
56
|
+
ref: "formRef",
|
|
57
|
+
bordered: !1,
|
|
58
|
+
class: N({ "dfb-list-form": u(a).form }),
|
|
59
|
+
style: R({ "margin-bottom": u(a).form ? v + "px" : 0 })
|
|
60
|
+
}, {
|
|
61
|
+
default: d(() => [
|
|
62
|
+
r(e.$slots, "form")
|
|
63
|
+
]),
|
|
64
|
+
_: 3
|
|
65
|
+
}, 8, ["class", "style"]),
|
|
66
|
+
m(h, {
|
|
67
|
+
class: "dfb-list-table",
|
|
68
|
+
bordered: !1
|
|
69
|
+
}, {
|
|
70
|
+
default: d(() => [
|
|
71
|
+
t("div", {
|
|
72
|
+
ref_key: "toolsRef",
|
|
73
|
+
ref: w,
|
|
74
|
+
class: "xi-tools",
|
|
75
|
+
style: R({ "margin-bottom": u(a).tools ? v + "px" : 0 })
|
|
76
|
+
}, [
|
|
77
|
+
m(k, null, {
|
|
78
|
+
default: d(() => [
|
|
79
|
+
r(e.$slots, "tools")
|
|
80
|
+
]),
|
|
81
|
+
_: 3
|
|
82
|
+
})
|
|
83
|
+
], 4),
|
|
84
|
+
t("div", {
|
|
85
|
+
ref_key: "tableRef",
|
|
86
|
+
ref: i,
|
|
87
|
+
style: { flex: "1" }
|
|
88
|
+
}, [
|
|
89
|
+
V(t("div", null, [
|
|
90
|
+
r(e.$slots, "table", { height: c.value })
|
|
91
|
+
], 512), [
|
|
92
|
+
[W, o.value]
|
|
93
|
+
])
|
|
94
|
+
], 512)
|
|
95
|
+
]),
|
|
96
|
+
_: 3
|
|
97
|
+
})
|
|
98
|
+
], 512),
|
|
99
|
+
t("div", G, [
|
|
100
|
+
r(e.$slots, "default")
|
|
101
|
+
])
|
|
102
|
+
]);
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
export {
|
|
107
|
+
se as default
|
|
108
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { defineComponent as S, computed as f, resolveComponent as a, openBlock as i, createElementBlock as w, Fragment as x, createVNode as e, withCtx as s, unref as o, isRef as $, createElementVNode as t, renderSlot as _, normalizeStyle as y, createBlock as d, Transition as A, KeepAlive as M, resolveDynamicComponent as z } from "vue";
|
|
2
|
+
import { MenuUnfoldOutlined as B, MenuFoldOutlined as N } from "@ant-design/icons-vue";
|
|
3
|
+
import "../../store/modules/Breadcrumb.esm.js";
|
|
4
|
+
import "../../store/modules/DataDictionary.esm.js";
|
|
5
|
+
import D from "../../store/modules/KeepAlive.esm.js";
|
|
6
|
+
import "../../store/modules/Menu.esm.js";
|
|
7
|
+
import "../../store/modules/NavTab.esm.js";
|
|
8
|
+
import E from "../../store/modules/Settings.esm.js";
|
|
9
|
+
import "../../store/modules/User.esm.js";
|
|
10
|
+
import F from "./NavTabs.vue.esm.js";
|
|
11
|
+
import "./NavTabs.vue.esm2.js";
|
|
12
|
+
import K from "./Breadcrumb.vue.esm.js";
|
|
13
|
+
import "./Breadcrumb.vue.esm2.js";
|
|
14
|
+
import L from "./Menu.esm.js";
|
|
15
|
+
const O = { class: "dfb-logo" }, R = { class: "dfb-menu" }, U = { class: "dfb-layout-header" }, V = { class: "dfb-layout-header-left" }, T = { class: "dfb-user-menu" }, j = {
|
|
16
|
+
name: "DMainLayout"
|
|
17
|
+
}, se = /* @__PURE__ */ S({
|
|
18
|
+
...j,
|
|
19
|
+
setup(q) {
|
|
20
|
+
const v = D(), b = f(() => v.get), c = E(), { switchCollapsed: u } = c, l = f(() => c.getCollapsed);
|
|
21
|
+
return (p, r) => {
|
|
22
|
+
const g = a("a-layout-sider"), k = a("router-view"), h = a("a-layout-content"), m = a("a-layout"), C = a("a-back-top");
|
|
23
|
+
return i(), w(x, null, [
|
|
24
|
+
e(m, { class: "dfb-layout" }, {
|
|
25
|
+
default: s(() => [
|
|
26
|
+
e(g, {
|
|
27
|
+
collapsed: o(l),
|
|
28
|
+
"onUpdate:collapsed": r[0] || (r[0] = (n) => $(l) ? l.value = n : null),
|
|
29
|
+
trigger: null,
|
|
30
|
+
collapsible: "",
|
|
31
|
+
class: "dfb-layout-sider"
|
|
32
|
+
}, {
|
|
33
|
+
default: s(() => [
|
|
34
|
+
t("div", O, [
|
|
35
|
+
_(p.$slots, "logo")
|
|
36
|
+
]),
|
|
37
|
+
t("div", R, [
|
|
38
|
+
e(o(L))
|
|
39
|
+
])
|
|
40
|
+
]),
|
|
41
|
+
_: 3
|
|
42
|
+
}, 8, ["collapsed"]),
|
|
43
|
+
e(m, null, {
|
|
44
|
+
default: s(() => [
|
|
45
|
+
t("div", {
|
|
46
|
+
class: "dfb-top-layout",
|
|
47
|
+
style: y({ left: o(l) ? "80px" : "200px" })
|
|
48
|
+
}, [
|
|
49
|
+
e(F),
|
|
50
|
+
t("div", U, [
|
|
51
|
+
t("div", V, [
|
|
52
|
+
t("div", {
|
|
53
|
+
class: "dfb-side-collapsed",
|
|
54
|
+
onClick: r[1] || (r[1] = //@ts-ignore
|
|
55
|
+
(...n) => o(u) && o(u)(...n))
|
|
56
|
+
}, [
|
|
57
|
+
o(l) ? (i(), d(o(B), {
|
|
58
|
+
key: 0,
|
|
59
|
+
class: "trigger",
|
|
60
|
+
style: { "font-size": "16px", "font-weight": "bold", cursor: "pointer" }
|
|
61
|
+
})) : (i(), d(o(N), {
|
|
62
|
+
key: 1,
|
|
63
|
+
style: { "font-size": "16px", "font-weight": "bold", cursor: "pointer" }
|
|
64
|
+
}))
|
|
65
|
+
]),
|
|
66
|
+
e(K)
|
|
67
|
+
]),
|
|
68
|
+
t("div", T, [
|
|
69
|
+
_(p.$slots, "operation")
|
|
70
|
+
])
|
|
71
|
+
])
|
|
72
|
+
], 4),
|
|
73
|
+
e(h, {
|
|
74
|
+
class: "dfb-layout-content",
|
|
75
|
+
style: y({ marginLeft: o(l) ? "80px" : "200px" })
|
|
76
|
+
}, {
|
|
77
|
+
default: s(() => [
|
|
78
|
+
e(k, null, {
|
|
79
|
+
default: s(({ Component: n }) => [
|
|
80
|
+
e(A, {
|
|
81
|
+
name: "main",
|
|
82
|
+
mode: "out-in",
|
|
83
|
+
appear: ""
|
|
84
|
+
}, {
|
|
85
|
+
default: s(() => [
|
|
86
|
+
(i(), d(M, {
|
|
87
|
+
ref: "keepAliveRef",
|
|
88
|
+
include: o(b)
|
|
89
|
+
}, [
|
|
90
|
+
(i(), d(z(n), {
|
|
91
|
+
key: p.$route.path
|
|
92
|
+
}))
|
|
93
|
+
], 1032, ["include"]))
|
|
94
|
+
]),
|
|
95
|
+
_: 2
|
|
96
|
+
}, 1024)
|
|
97
|
+
]),
|
|
98
|
+
_: 1
|
|
99
|
+
})
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
}, 8, ["style"])
|
|
103
|
+
]),
|
|
104
|
+
_: 3
|
|
105
|
+
})
|
|
106
|
+
]),
|
|
107
|
+
_: 3
|
|
108
|
+
}),
|
|
109
|
+
e(C)
|
|
110
|
+
], 64);
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
export {
|
|
115
|
+
se as default
|
|
116
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent as a } from "vue";
|
|
2
|
+
import { AppstoreOutlined as m } from "@ant-design/icons-vue";
|
|
3
|
+
import "../../store/modules/Breadcrumb.esm.js";
|
|
4
|
+
import "../../store/modules/DataDictionary.esm.js";
|
|
5
|
+
import "../../store/modules/KeepAlive.esm.js";
|
|
6
|
+
import c from "../../store/modules/Menu.esm.js";
|
|
7
|
+
import "../../store/modules/NavTab.esm.js";
|
|
8
|
+
import "../../store/modules/Settings.esm.js";
|
|
9
|
+
import "../../store/modules/User.esm.js";
|
|
10
|
+
const g = a({
|
|
11
|
+
name: "DMenu",
|
|
12
|
+
setup() {
|
|
13
|
+
const { list: n } = c(), l = (e, t) => !e || !e.length ? null : /* @__PURE__ */ React.createElement("a-sub-menu", null, {
|
|
14
|
+
title: () => t.title,
|
|
15
|
+
default: () => e.map((r) => /* @__PURE__ */ React.createElement("a-menu-item", { key: r.url }, r.title))
|
|
16
|
+
});
|
|
17
|
+
return () => /* @__PURE__ */ React.createElement("a-menu", { mode: "inline" }, n.map((e) => /* @__PURE__ */ React.createElement("a-sub-menu", { key: e.url }, {
|
|
18
|
+
title: () => /* @__PURE__ */ React.createElement(React.Fragment, null, e.title),
|
|
19
|
+
icon: () => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(m, null)),
|
|
20
|
+
default: () => e.children && e.children.length ? e.children.map((t) => /* @__PURE__ */ React.createElement(React.Fragment, null, t.children ? l(t.children, e) : /* @__PURE__ */ React.createElement("a-menu-item", { key: t.url }, t.title))) : /* @__PURE__ */ React.createElement(React.Fragment, null, "无子标签")
|
|
21
|
+
})));
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
g as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _sfc_main;
|