@ditari/bsui 1.0.0 → 1.0.2
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/components/components.cjs.js +1 -1
- package/dist/cjs/components/components.d.ts +2 -1
- package/dist/cjs/components/form/grid-form/GridForm.cjs.js +1 -0
- package/dist/cjs/components/form/grid-form/GridForm.d.ts +2 -0
- package/dist/cjs/components/form/index.cjs.js +1 -1
- package/dist/cjs/components/form/index.d.ts +8 -1
- package/dist/cjs/components/grid/Grid.cjs.js +1 -0
- package/dist/cjs/components/grid/Grid.d.ts +23 -0
- package/dist/cjs/components/grid/GridItem.cjs.js +1 -0
- package/dist/cjs/components/grid/GridItem.d.ts +2 -0
- package/dist/cjs/components/grid/index.cjs.js +1 -0
- package/dist/cjs/components/grid/index.d.ts +23 -0
- package/dist/cjs/components/index.cjs.js +1 -1
- package/dist/cjs/components/layout/Breadcrumb.vue.cjs.js +1 -1
- package/dist/cjs/components/layout/List.vue.cjs.js +1 -1
- package/dist/cjs/components/layout/Main.vue.cjs.js +1 -1
- package/dist/cjs/components/layout/Menu.cjs.js +1 -1
- package/dist/cjs/components/layout/NavTabs.vue.cjs.js +1 -1
- package/dist/cjs/components/layout/Show.vue.cjs.js +1 -1
- package/dist/cjs/components/layout/Show.vue.d.ts +11 -0
- package/dist/cjs/components/layout/index.d.ts +11 -25
- package/dist/cjs/components/table/Table.vue.cjs.js +1 -1
- package/dist/cjs/components/table/Table.vue.d.ts +1 -1
- package/dist/cjs/components/table/index.d.ts +1 -1
- package/dist/cjs/components/theme/index.cjs.js +1 -0
- package/dist/cjs/components/theme/index.d.ts +1 -0
- package/dist/cjs/hooks/http/index.cjs.js +1 -0
- package/dist/cjs/hooks/http/index.d.ts +29 -0
- package/dist/cjs/hooks/index.cjs.js +1 -0
- package/dist/cjs/hooks/index.d.ts +2 -0
- package/dist/cjs/hooks/route/index.cjs.js +1 -0
- package/dist/cjs/hooks/route/index.d.ts +9 -0
- package/dist/cjs/store/index.cjs.js +1 -0
- package/dist/cjs/store/index.d.ts +7 -7
- package/dist/cjs/store/modules/Breadcrumb.cjs.js +1 -1
- package/dist/cjs/store/modules/Breadcrumb.d.ts +6 -16
- package/dist/cjs/store/modules/DataDictionary.cjs.js +1 -1
- package/dist/cjs/store/modules/DataDictionary.d.ts +28 -3
- package/dist/cjs/store/modules/KeepAlive.cjs.js +1 -1
- package/dist/cjs/store/modules/KeepAlive.d.ts +3 -4
- package/dist/cjs/store/modules/Menu.cjs.js +1 -1
- package/dist/cjs/store/modules/Menu.d.ts +1 -2
- package/dist/cjs/store/modules/NavTab.cjs.js +1 -1
- package/dist/cjs/store/modules/NavTab.d.ts +3 -4
- package/dist/cjs/store/modules/Settings.cjs.js +1 -1
- package/dist/cjs/store/modules/Settings.d.ts +23 -9
- package/dist/cjs/store/modules/User.cjs.js +1 -1
- package/dist/cjs/store/modules/User.d.ts +1 -2
- package/dist/cjs/store/types.cjs.js +1 -1
- package/dist/cjs/utils/get.cjs.js +1 -0
- package/dist/css/grid/style/index.css +1 -0
- package/dist/css/index.css +1 -0
- package/dist/css/menu/style/index.css +1 -0
- package/dist/esm/components/components.d.ts +2 -1
- package/dist/esm/components/components.esm.js +10 -7
- package/dist/esm/components/form/grid-form/GridForm.d.ts +2 -0
- package/dist/esm/components/form/grid-form/GridForm.esm.js +9 -0
- package/dist/esm/components/form/index.d.ts +8 -1
- package/dist/esm/components/form/index.esm.js +5 -3
- package/dist/esm/components/grid/Grid.d.ts +23 -0
- package/dist/esm/components/grid/Grid.esm.js +55 -0
- package/dist/esm/components/grid/GridItem.d.ts +2 -0
- package/dist/esm/components/grid/GridItem.esm.js +15 -0
- package/dist/esm/components/grid/index.d.ts +23 -0
- package/dist/esm/components/grid/index.esm.js +8 -0
- package/dist/esm/components/index.esm.js +16 -13
- package/dist/esm/components/layout/Breadcrumb.vue.esm.js +13 -19
- package/dist/esm/components/layout/List.vue.esm.js +29 -35
- package/dist/esm/components/layout/Main.vue.esm.js +53 -50
- package/dist/esm/components/layout/Menu.esm.js +45 -19
- package/dist/esm/components/layout/NavTabs.vue.esm.js +27 -27
- package/dist/esm/components/layout/Show.vue.d.ts +11 -0
- package/dist/esm/components/layout/Show.vue.esm.js +70 -48
- package/dist/esm/components/layout/index.d.ts +11 -25
- package/dist/esm/components/table/Table.vue.d.ts +1 -1
- package/dist/esm/components/table/Table.vue.esm.js +2 -2
- package/dist/esm/components/table/index.d.ts +1 -1
- package/dist/esm/components/theme/index.d.ts +1 -0
- package/dist/esm/components/theme/index.esm.js +4 -0
- package/dist/esm/hooks/http/index.d.ts +29 -0
- package/dist/esm/hooks/http/index.esm.js +52 -0
- package/dist/esm/hooks/index.d.ts +2 -0
- package/dist/esm/hooks/index.esm.js +6 -0
- package/dist/esm/hooks/route/index.d.ts +9 -0
- package/dist/esm/hooks/route/index.esm.js +42 -0
- package/dist/esm/store/index.d.ts +7 -7
- package/dist/esm/store/index.esm.js +16 -0
- package/dist/esm/store/modules/Breadcrumb.d.ts +6 -16
- package/dist/esm/store/modules/Breadcrumb.esm.js +4 -12
- package/dist/esm/store/modules/DataDictionary.d.ts +28 -3
- package/dist/esm/store/modules/DataDictionary.esm.js +30 -6
- package/dist/esm/store/modules/KeepAlive.d.ts +3 -4
- package/dist/esm/store/modules/KeepAlive.esm.js +4 -4
- package/dist/esm/store/modules/Menu.d.ts +1 -2
- package/dist/esm/store/modules/Menu.esm.js +1 -1
- package/dist/esm/store/modules/NavTab.d.ts +3 -4
- package/dist/esm/store/modules/NavTab.esm.js +2 -2
- package/dist/esm/store/modules/Settings.d.ts +23 -9
- package/dist/esm/store/modules/Settings.esm.js +81 -6
- package/dist/esm/store/modules/User.d.ts +1 -2
- package/dist/esm/store/modules/User.esm.js +4 -1
- package/dist/esm/store/types.esm.js +4 -4
- package/dist/esm/style.css +1 -274
- package/dist/esm/utils/get.esm.js +11 -0
- package/dist/style/grid/style/index.scss +61 -0
- package/dist/style/index.scss +15 -0
- package/dist/style/menu/style/index.scss +18 -0
- package/dist/style/theme/theme.scss +1 -0
- package/dist/style/theme/variable.scss +21 -0
- package/package.json +10 -7
- package/src/components/components.ts +4 -0
- package/src/components/config/Config.vue +8 -0
- package/src/components/form/Form.vue +10 -0
- package/src/components/form/grid-form/GridForm.jsx +10 -0
- package/src/components/form/index.ts +8 -0
- package/src/components/form/style/index.less +0 -0
- package/src/components/grid/Grid.tsx +73 -0
- package/src/components/grid/GridItem.tsx +15 -0
- package/src/components/grid/index.md +4 -0
- package/src/components/grid/index.ts +7 -0
- package/src/components/grid/style/index.scss +61 -0
- package/src/components/index.scss +15 -0
- package/src/components/index.ts +31 -0
- package/src/components/layout/Breadcrumb.vue +119 -0
- package/src/components/layout/Header.vue +0 -0
- package/src/components/layout/Layout.jsx +24 -0
- package/src/components/layout/List.vue +159 -0
- package/src/components/layout/Main.vue +187 -0
- package/src/components/layout/Menu.jsx +96 -0
- package/src/components/layout/NavTabs.vue +192 -0
- package/src/components/layout/Show.vue +157 -0
- package/src/components/layout/index.ts +19 -0
- package/src/components/menu/Menu.jsx +94 -0
- package/src/components/menu/style/index.scss +18 -0
- package/src/components/select/Select.vue +85 -0
- package/src/components/table/Field.vue +49 -0
- package/src/components/table/Table.vue +391 -0
- package/src/components/table/index.md +1 -0
- package/src/components/table/index.ts +5 -0
- package/src/components/theme/index.ts +1 -0
- package/src/components/theme/theme.scss +1 -0
- package/src/components/theme/variable.scss +21 -0
- package/src/hooks/http/index.ts +107 -0
- package/src/hooks/index.ts +2 -0
- package/src/hooks/route/index.ts +84 -0
- package/src/store/index.ts +7 -0
- package/src/store/modules/Breadcrumb.ts +25 -0
- package/src/store/modules/DataDictionary.ts +49 -0
- package/src/store/modules/KeepAlive.ts +47 -0
- package/src/store/modules/Menu.ts +24 -0
- package/src/store/modules/NavTab.ts +81 -0
- package/src/store/modules/Settings.ts +120 -0
- package/src/store/modules/User.ts +23 -0
- package/src/store/types.ts +15 -0
- package/src/tsconfig.json +16 -0
- package/src/utils/get.ts +15 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/install.ts +12 -0
|
@@ -1,21 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
export interface State {
|
|
2
2
|
refresh: boolean;
|
|
3
3
|
collapsed: boolean;
|
|
4
|
-
|
|
4
|
+
mediaRuleMap: any;
|
|
5
|
+
gridConfig: any;
|
|
6
|
+
gridValue: any;
|
|
7
|
+
}
|
|
8
|
+
export declare const useSettingsStore: import("pinia").StoreDefinition<string, State, {
|
|
5
9
|
getRefresh: (state: {
|
|
6
10
|
refresh: boolean;
|
|
7
11
|
collapsed: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}>) => boolean;
|
|
12
|
+
mediaRuleMap: any;
|
|
13
|
+
gridConfig: any;
|
|
14
|
+
gridValue: any;
|
|
15
|
+
} & import("pinia").PiniaCustomStateProperties<State>) => boolean;
|
|
12
16
|
getCollapsed: (state: {
|
|
13
17
|
refresh: boolean;
|
|
14
18
|
collapsed: boolean;
|
|
15
|
-
|
|
19
|
+
mediaRuleMap: any;
|
|
20
|
+
gridConfig: any;
|
|
21
|
+
gridValue: any;
|
|
22
|
+
} & import("pinia").PiniaCustomStateProperties<State>) => boolean;
|
|
23
|
+
getGrid: (state: {
|
|
16
24
|
refresh: boolean;
|
|
17
25
|
collapsed: boolean;
|
|
18
|
-
|
|
26
|
+
mediaRuleMap: any;
|
|
27
|
+
gridConfig: any;
|
|
28
|
+
gridValue: any;
|
|
29
|
+
} & import("pinia").PiniaCustomStateProperties<State>) => any;
|
|
19
30
|
}, {
|
|
20
31
|
/**
|
|
21
32
|
* 切换刷新
|
|
@@ -25,5 +36,8 @@ declare const _default: import("pinia").StoreDefinition<string, {
|
|
|
25
36
|
* 切换菜单收缩状态
|
|
26
37
|
*/
|
|
27
38
|
switchCollapsed(): void;
|
|
39
|
+
/**
|
|
40
|
+
* 网格匹配
|
|
41
|
+
*/
|
|
42
|
+
gridMatching(): void;
|
|
28
43
|
}>;
|
|
29
|
-
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("pinia"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("pinia"),o=require("../types.cjs.js"),r=t.defineStore(o.USER_ID,{state:()=>({token:void 0}),getters:{getToken:e=>e.token},actions:{saveToken(e){this.token=e}}});exports.useUserStore=r;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
export declare const useUserStore: import("pinia").StoreDefinition<string, {
|
|
2
2
|
token: undefined;
|
|
3
3
|
}, {
|
|
4
4
|
getToken: (state: {
|
|
@@ -13,4 +13,3 @@ declare const _default: import("pinia").StoreDefinition<string, {
|
|
|
13
13
|
*/
|
|
14
14
|
saveToken(token: any): void;
|
|
15
15
|
}>;
|
|
16
|
-
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I="
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I="DITARI_STORE_",_=`${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`,R=`${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=R;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=(e,o,r=void 0)=>{const s=o.replace(/\[(\d+)\]/g,".$1").split(".");let t=e;for(const c of s)if(t=Object(t)[c],t===void 0)return r;return t};exports.get=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ditari-bsui-grid{position:relative;display:grid}.ditari-bsui-grid .ditari-bsui-grid--item{border:1px solid #4e4e4e;margin-left:-1px;margin-top:-1px}.ditari-bsui-grid-form .ant-form-item{margin-bottom:0;height:100%}.ditari-bsui-grid-form .ant-form-item .ant-form-item-label{border-right:1px solid #4e4e4e}.ditari-bsui-grid-form .ant-form-item .ant-input,.ditari-bsui-grid-form .ant-form-item .ant-select-selector{border:0;border-radius:0}.ditari-bsui-grid-form .ant-form-item .ant-input:focus,.ditari-bsui-grid-form .ant-form-item .ant-select-selector:focus{box-shadow:0 0 0 2px #1890ff}.ditari-bsui-grid-form .ant-form-item .ant-input[disabled]{color:#525252}.ditari-bsui-grid-form .ant-form-item-has-error .ant-form-item-explain{display:none}.ditari-bsui-grid-form .ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector{box-shadow:0 0 0 2px #1890ff}.ditari-bsui-grid-form .ant-form-item-has-error :not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus{box-shadow:0 0 0px 2px red;border-radius:0}.ditari-bsui-grid-form .ant-form-item-has-error :not(.ant-input-disabled):not(.ant-input-borderless).ant-input{box-shadow:0 0 0px 2px #ff4d4f}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ditari-bsui-grid{position:relative;display:grid}.ditari-bsui-grid .ditari-bsui-grid--item{border:1px solid #4e4e4e;margin-left:-1px;margin-top:-1px}.ditari-bsui-grid-form .ant-form-item{margin-bottom:0;height:100%}.ditari-bsui-grid-form .ant-form-item .ant-form-item-label{border-right:1px solid #4e4e4e}.ditari-bsui-grid-form .ant-form-item .ant-input,.ditari-bsui-grid-form .ant-form-item .ant-select-selector{border:0;border-radius:0}.ditari-bsui-grid-form .ant-form-item .ant-input:focus,.ditari-bsui-grid-form .ant-form-item .ant-select-selector:focus{box-shadow:0 0 0 2px #1890ff}.ditari-bsui-grid-form .ant-form-item .ant-input[disabled]{color:#525252}.ditari-bsui-grid-form .ant-form-item-has-error .ant-form-item-explain{display:none}.ditari-bsui-grid-form .ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector{box-shadow:0 0 0 2px #1890ff}.ditari-bsui-grid-form .ant-form-item-has-error :not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus{box-shadow:0 0 0px 2px red;border-radius:0}.ditari-bsui-grid-form .ant-form-item-has-error :not(.ant-input-disabled):not(.ant-input-borderless).ant-input{box-shadow:0 0 0px 2px #ff4d4f}.ditari-menu{height:calc(100vh - 240px);overflow:scroll}.ditari-menu::-webkit-scrollbar{width:0 !important;display:none}.ditari-layout{background-color:red}.ditari-layout .ditari-layout-sider{background-color:red}html,body,#app{height:100vh;background:#f0f2f5}html::-webkit-scrollbar,body::-webkit-scrollbar,#app::-webkit-scrollbar{width:0 !important;display:none}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ditari-menu{height:calc(100vh - 240px);overflow:scroll}.ditari-menu::-webkit-scrollbar{width:0 !important;display:none}.ditari-layout{background-color:red}.ditari-layout .ditari-layout-sider{background-color:red}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DList as
|
|
3
|
-
import { DTable as
|
|
1
|
+
import { default as D } from "./form/index.esm.js";
|
|
2
|
+
import { DList as t, DMain as a, DNavTabs as m, DShow as f } from "./layout/index.esm.js";
|
|
3
|
+
import { DTable as p } from "./table/index.esm.js";
|
|
4
|
+
import { DGrid as d, DGridItem as s } from "./grid/index.esm.js";
|
|
4
5
|
export {
|
|
5
6
|
D as DForm,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
t as
|
|
7
|
+
d as DGrid,
|
|
8
|
+
s as DGridItem,
|
|
9
|
+
t as DList,
|
|
10
|
+
a as DMain,
|
|
11
|
+
m as DNavTabs,
|
|
9
12
|
f as DShow,
|
|
10
|
-
|
|
13
|
+
p as DTable
|
|
11
14
|
};
|
|
@@ -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;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
export declare const DForm: import("../../utils/install").SFCWithInstall<{
|
|
2
2
|
name: string;
|
|
3
3
|
}>;
|
|
4
|
-
export
|
|
4
|
+
export declare const DGridForm: import("../../utils/install").SFCWithInstall<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<{}>>, {}>>;
|
|
5
|
+
declare const _default: {
|
|
6
|
+
DForm: import("../../utils/install").SFCWithInstall<{
|
|
7
|
+
name: string;
|
|
8
|
+
}>;
|
|
9
|
+
DGridForm: import("../../utils/install").SFCWithInstall<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<{}>>, {}>>;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import o from "../../utils/install.esm.js";
|
|
2
2
|
import r from "./Form.vue.esm.js";
|
|
3
|
-
|
|
3
|
+
import m from "./grid-form/GridForm.esm.js";
|
|
4
|
+
const t = o(r), i = o(m), f = { DForm: t, DGridForm: i };
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
t as DForm,
|
|
7
|
+
i as DGridForm,
|
|
8
|
+
f as default
|
|
7
9
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
className: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
fill: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
className: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
fill: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
}>>, {
|
|
20
|
+
fill: boolean;
|
|
21
|
+
className: string;
|
|
22
|
+
}>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { defineComponent as y, createVNode as r, Fragment as p, createTextVNode as N, ref as g } from "vue";
|
|
2
|
+
import { useResizeObserver as b } from "@vueuse/core";
|
|
3
|
+
import "../../store/modules/Breadcrumb.esm.js";
|
|
4
|
+
import "../../store/modules/DataDictionary.esm.js";
|
|
5
|
+
import "../../store/modules/KeepAlive.esm.js";
|
|
6
|
+
import "../../store/modules/Menu.esm.js";
|
|
7
|
+
import "../../store/modules/NavTab.esm.js";
|
|
8
|
+
import { useSettingsStore as C } from "../../store/modules/Settings.esm.js";
|
|
9
|
+
import "../../store/modules/User.esm.js";
|
|
10
|
+
import { storeToRefs as G } from "pinia";
|
|
11
|
+
import { prefixName as S } from "../theme/index.esm.js";
|
|
12
|
+
import x from "./GridItem.esm.js";
|
|
13
|
+
const V = `${S}-grid`, $ = /* @__PURE__ */ y({
|
|
14
|
+
name: "DGrid",
|
|
15
|
+
props: {
|
|
16
|
+
// css class
|
|
17
|
+
className: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: ""
|
|
20
|
+
},
|
|
21
|
+
// 是否补全空白单元格
|
|
22
|
+
fill: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !0
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
setup(o, {
|
|
28
|
+
slots: e
|
|
29
|
+
}) {
|
|
30
|
+
var u, d;
|
|
31
|
+
if (!e.default)
|
|
32
|
+
return () => r(p, null, [N("ok")]);
|
|
33
|
+
const m = C(), {
|
|
34
|
+
gridValue: a
|
|
35
|
+
} = G(m), n = ((u = e == null ? void 0 : e.default()[0]) == null ? void 0 : u.children.length) || (e == null ? void 0 : e.default().length), l = g([]), i = g({
|
|
36
|
+
"grid-template-columns": ((d = a.value) == null ? void 0 : d.value) ?? ""
|
|
37
|
+
});
|
|
38
|
+
return b(document.body, () => {
|
|
39
|
+
var c, f;
|
|
40
|
+
m.gridMatching(), i.value["grid-template-columns"] = ((c = a.value) == null ? void 0 : c.value) ?? "";
|
|
41
|
+
const t = (f = a.value) == null ? void 0 : f.col, v = Math.ceil(n / t), s = o.fill ? v * t - n : 0;
|
|
42
|
+
l.value = Array.from({
|
|
43
|
+
length: s
|
|
44
|
+
}, (k, h) => h + 1);
|
|
45
|
+
}), () => r(p, null, [r("div", {
|
|
46
|
+
class: [V, o.className],
|
|
47
|
+
style: i.value
|
|
48
|
+
}, [e.default && e.default(l.value), l.value.map((t) => r(x, {
|
|
49
|
+
key: t
|
|
50
|
+
}, null))])]);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
export {
|
|
54
|
+
$ as default
|
|
55
|
+
};
|
|
@@ -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,15 @@
|
|
|
1
|
+
import { defineComponent as r, createVNode as t, Fragment as m } from "vue";
|
|
2
|
+
import { prefixName as a } from "../theme/index.esm.js";
|
|
3
|
+
const o = `${a}-grid--item`, p = /* @__PURE__ */ r({
|
|
4
|
+
name: "DGridItem",
|
|
5
|
+
setup(d, {
|
|
6
|
+
slots: e
|
|
7
|
+
}) {
|
|
8
|
+
return () => t(m, null, [t("div", {
|
|
9
|
+
class: o
|
|
10
|
+
}, [e.default && e.default()])]);
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
p as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const DGrid: import("../../utils/install").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
className: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
fill: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
className: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
fill: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
}>>, {
|
|
20
|
+
fill: boolean;
|
|
21
|
+
className: string;
|
|
22
|
+
}>>;
|
|
23
|
+
export declare const DGridItem: import("../../utils/install").SFCWithInstall<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<{}>>, {}>>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { createPinia as i } from "pinia";
|
|
2
2
|
import { createPersistedState as a } from "pinia-plugin-persistedstate";
|
|
3
3
|
import * as c from "./components.esm.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
import { DTable as u } from "./table/index.esm.js";
|
|
5
|
+
import { default as b } from "./form/index.esm.js";
|
|
6
|
+
import { DGrid as S, DGridItem as h } from "./grid/index.esm.js";
|
|
7
|
+
import { DList as P, DMain as T, DNavTabs as j, DShow as k } from "./layout/index.esm.js";
|
|
8
|
+
const s = c, m = function(o, r) {
|
|
9
|
+
Object.keys(s).forEach((n) => {
|
|
10
|
+
const e = s[n];
|
|
10
11
|
e.install && o.use(e);
|
|
11
12
|
});
|
|
12
13
|
const t = i();
|
|
@@ -14,17 +15,19 @@ const s = c, m = function(o, n) {
|
|
|
14
15
|
a({
|
|
15
16
|
storage: sessionStorage
|
|
16
17
|
})
|
|
17
|
-
), o.use(t), console.log("options",
|
|
18
|
+
), o.use(t), console.log("options", r);
|
|
18
19
|
}, l = {
|
|
19
20
|
install: m
|
|
20
21
|
};
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
-
S as
|
|
24
|
-
h as
|
|
25
|
-
P as
|
|
26
|
-
T as
|
|
27
|
-
|
|
23
|
+
b as DForm,
|
|
24
|
+
S as DGrid,
|
|
25
|
+
h as DGridItem,
|
|
26
|
+
P as DList,
|
|
27
|
+
T as DMain,
|
|
28
|
+
j as DNavTabs,
|
|
29
|
+
k as DShow,
|
|
30
|
+
u as DTable,
|
|
28
31
|
l as default,
|
|
29
32
|
m as install
|
|
30
33
|
};
|
|
@@ -1,36 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import g from "../../store/modules/Breadcrumb.esm.js";
|
|
3
|
-
|
|
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 = {
|
|
1
|
+
import { defineComponent as l, computed as i, resolveComponent as m, openBlock as e, createElementBlock as r, createElementVNode as _, createVNode as b, TransitionGroup as p, withCtx as a, Fragment as k, renderList as f, unref as n, createBlock as h, createTextVNode as B, toDisplayString as c } from "vue";
|
|
2
|
+
import { useBreadcrumbStore as g } from "../../store/modules/Breadcrumb.esm.js";
|
|
3
|
+
const v = { class: "ditari-breadcrumb" }, x = { class: "breadcrumb" }, y = {
|
|
10
4
|
key: 1,
|
|
11
5
|
class: "breadcrumb-link"
|
|
12
6
|
}, C = {
|
|
13
7
|
name: "DBreadcrumb"
|
|
14
|
-
},
|
|
8
|
+
}, T = /* @__PURE__ */ l({
|
|
15
9
|
...C,
|
|
16
10
|
setup(N) {
|
|
17
|
-
const s = g(), o =
|
|
11
|
+
const s = g(), o = i(() => s.getBreadcrumb);
|
|
18
12
|
return (V, D) => {
|
|
19
|
-
const
|
|
13
|
+
const d = m("router-link");
|
|
20
14
|
return e(), r("div", v, [
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
default:
|
|
24
|
-
(e(!0), r(
|
|
15
|
+
_("div", x, [
|
|
16
|
+
b(p, { name: "breadcrumb" }, {
|
|
17
|
+
default: a(() => [
|
|
18
|
+
(e(!0), r(k, null, f(n(o), (t, u) => (e(), r("div", {
|
|
25
19
|
class: "breadcrumb-item",
|
|
26
20
|
key: t.path
|
|
27
21
|
}, [
|
|
28
|
-
|
|
22
|
+
u + 1 !== n(o).length ? (e(), h(d, {
|
|
29
23
|
key: 0,
|
|
30
24
|
class: "breadcrumb-link",
|
|
31
25
|
to: { path: t.path }
|
|
32
26
|
}, {
|
|
33
|
-
default:
|
|
27
|
+
default: a(() => [
|
|
34
28
|
B(c(t.title), 1)
|
|
35
29
|
]),
|
|
36
30
|
_: 2
|
|
@@ -45,5 +39,5 @@ const v = { class: "dfb-breadcrumb" }, x = { class: "breadcrumb" }, y = {
|
|
|
45
39
|
}
|
|
46
40
|
});
|
|
47
41
|
export {
|
|
48
|
-
|
|
42
|
+
T as default
|
|
49
43
|
};
|
|
@@ -1,70 +1,64 @@
|
|
|
1
|
-
import { defineComponent as C, useSlots as T, inject as $, ref as l, nextTick as z, watch as
|
|
2
|
-
import "../../store/modules/
|
|
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";
|
|
1
|
+
import { defineComponent as C, useSlots as T, inject as $, ref as l, nextTick as z, watch as y, onUnmounted as B, onActivated as D, onDeactivated as H, resolveComponent as R, openBlock as E, createElementBlock as L, createElementVNode as t, createVNode as u, normalizeClass as N, unref as m, normalizeStyle as b, withCtx as d, renderSlot as a, withDirectives as V, vShow as W } from "vue";
|
|
2
|
+
import { useSettingsStore as j } from "../../store/modules/Settings.esm.js";
|
|
9
3
|
import { storeToRefs as A } from "pinia";
|
|
10
4
|
import { useRoute as U } from "vue-router";
|
|
11
|
-
const q = { class: "
|
|
5
|
+
const q = { class: "ditari-list-layout" }, F = {
|
|
12
6
|
ref: "contentRef",
|
|
13
7
|
class: "wrapper"
|
|
14
8
|
}, G = { class: "xi-content-extra" }, I = {
|
|
15
9
|
name: "DListLayout"
|
|
16
|
-
},
|
|
10
|
+
}, X = /* @__PURE__ */ C({
|
|
17
11
|
...I,
|
|
18
12
|
emits: ["refresh"],
|
|
19
|
-
setup(J, { emit:
|
|
20
|
-
const
|
|
13
|
+
setup(J, { emit: v }) {
|
|
14
|
+
const r = T(), g = j(), S = U(), n = $("configProvider"), { refresh: i } = A(g), w = l(), f = l(), _ = 16, o = l(!1), c = l(0);
|
|
21
15
|
let s;
|
|
22
16
|
z(() => {
|
|
23
17
|
setTimeout(() => {
|
|
24
|
-
c.value =
|
|
18
|
+
c.value = f.value.offsetHeight, o.value = !0;
|
|
25
19
|
}, 1);
|
|
26
|
-
}),
|
|
20
|
+
}), y(
|
|
27
21
|
() => n == null ? void 0 : n.componentSize,
|
|
28
22
|
(e) => {
|
|
29
23
|
o.value = !1, setTimeout(() => {
|
|
30
|
-
c.value =
|
|
24
|
+
c.value = f.value.offsetHeight, o.value = !0;
|
|
31
25
|
}, 100);
|
|
32
26
|
}
|
|
33
27
|
), x();
|
|
34
28
|
function x() {
|
|
35
29
|
S.name ? (D(() => {
|
|
36
|
-
|
|
30
|
+
i.value && (i.value = !1, v("refresh")), s = h();
|
|
37
31
|
}), H(() => {
|
|
38
32
|
s();
|
|
39
|
-
})) : (s =
|
|
33
|
+
})) : (s = h(), B(() => {
|
|
40
34
|
s();
|
|
41
35
|
}));
|
|
42
36
|
}
|
|
43
|
-
function
|
|
44
|
-
return
|
|
45
|
-
() =>
|
|
37
|
+
function h() {
|
|
38
|
+
return y(
|
|
39
|
+
() => i.value,
|
|
46
40
|
(e) => {
|
|
47
|
-
e &&
|
|
41
|
+
e && v("refresh");
|
|
48
42
|
}
|
|
49
43
|
);
|
|
50
44
|
}
|
|
51
45
|
return (e, K) => {
|
|
52
|
-
const
|
|
46
|
+
const p = R("a-card"), k = R("a-space");
|
|
53
47
|
return E(), L("div", q, [
|
|
54
48
|
t("div", F, [
|
|
55
|
-
|
|
49
|
+
u(p, {
|
|
56
50
|
ref: "formRef",
|
|
57
51
|
bordered: !1,
|
|
58
|
-
class: N({ "
|
|
59
|
-
style:
|
|
52
|
+
class: N({ "ditari-list-form": m(r).form }),
|
|
53
|
+
style: b({ "margin-bottom": m(r).form ? _ + "px" : 0 })
|
|
60
54
|
}, {
|
|
61
55
|
default: d(() => [
|
|
62
|
-
|
|
56
|
+
a(e.$slots, "form")
|
|
63
57
|
]),
|
|
64
58
|
_: 3
|
|
65
59
|
}, 8, ["class", "style"]),
|
|
66
|
-
|
|
67
|
-
class: "
|
|
60
|
+
u(p, {
|
|
61
|
+
class: "ditari-list-table",
|
|
68
62
|
bordered: !1
|
|
69
63
|
}, {
|
|
70
64
|
default: d(() => [
|
|
@@ -72,22 +66,22 @@ const q = { class: "dfb-list-layout" }, F = {
|
|
|
72
66
|
ref_key: "toolsRef",
|
|
73
67
|
ref: w,
|
|
74
68
|
class: "xi-tools",
|
|
75
|
-
style:
|
|
69
|
+
style: b({ "margin-bottom": m(r).tools ? _ + "px" : 0 })
|
|
76
70
|
}, [
|
|
77
|
-
|
|
71
|
+
u(k, null, {
|
|
78
72
|
default: d(() => [
|
|
79
|
-
|
|
73
|
+
a(e.$slots, "tools")
|
|
80
74
|
]),
|
|
81
75
|
_: 3
|
|
82
76
|
})
|
|
83
77
|
], 4),
|
|
84
78
|
t("div", {
|
|
85
79
|
ref_key: "tableRef",
|
|
86
|
-
ref:
|
|
80
|
+
ref: f,
|
|
87
81
|
style: { flex: "1" }
|
|
88
82
|
}, [
|
|
89
83
|
V(t("div", null, [
|
|
90
|
-
|
|
84
|
+
a(e.$slots, "table", { height: c.value })
|
|
91
85
|
], 512), [
|
|
92
86
|
[W, o.value]
|
|
93
87
|
])
|
|
@@ -97,12 +91,12 @@ const q = { class: "dfb-list-layout" }, F = {
|
|
|
97
91
|
})
|
|
98
92
|
], 512),
|
|
99
93
|
t("div", G, [
|
|
100
|
-
|
|
94
|
+
a(e.$slots, "default")
|
|
101
95
|
])
|
|
102
96
|
]);
|
|
103
97
|
};
|
|
104
98
|
}
|
|
105
99
|
});
|
|
106
100
|
export {
|
|
107
|
-
|
|
101
|
+
X as default
|
|
108
102
|
};
|