@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.
Files changed (158) hide show
  1. package/dist/cjs/components/components.cjs.js +1 -1
  2. package/dist/cjs/components/components.d.ts +2 -1
  3. package/dist/cjs/components/form/grid-form/GridForm.cjs.js +1 -0
  4. package/dist/cjs/components/form/grid-form/GridForm.d.ts +2 -0
  5. package/dist/cjs/components/form/index.cjs.js +1 -1
  6. package/dist/cjs/components/form/index.d.ts +8 -1
  7. package/dist/cjs/components/grid/Grid.cjs.js +1 -0
  8. package/dist/cjs/components/grid/Grid.d.ts +23 -0
  9. package/dist/cjs/components/grid/GridItem.cjs.js +1 -0
  10. package/dist/cjs/components/grid/GridItem.d.ts +2 -0
  11. package/dist/cjs/components/grid/index.cjs.js +1 -0
  12. package/dist/cjs/components/grid/index.d.ts +23 -0
  13. package/dist/cjs/components/index.cjs.js +1 -1
  14. package/dist/cjs/components/layout/Breadcrumb.vue.cjs.js +1 -1
  15. package/dist/cjs/components/layout/List.vue.cjs.js +1 -1
  16. package/dist/cjs/components/layout/Main.vue.cjs.js +1 -1
  17. package/dist/cjs/components/layout/Menu.cjs.js +1 -1
  18. package/dist/cjs/components/layout/NavTabs.vue.cjs.js +1 -1
  19. package/dist/cjs/components/layout/Show.vue.cjs.js +1 -1
  20. package/dist/cjs/components/layout/Show.vue.d.ts +11 -0
  21. package/dist/cjs/components/layout/index.d.ts +11 -25
  22. package/dist/cjs/components/table/Table.vue.cjs.js +1 -1
  23. package/dist/cjs/components/table/Table.vue.d.ts +1 -1
  24. package/dist/cjs/components/table/index.d.ts +1 -1
  25. package/dist/cjs/components/theme/index.cjs.js +1 -0
  26. package/dist/cjs/components/theme/index.d.ts +1 -0
  27. package/dist/cjs/hooks/http/index.cjs.js +1 -0
  28. package/dist/cjs/hooks/http/index.d.ts +29 -0
  29. package/dist/cjs/hooks/index.cjs.js +1 -0
  30. package/dist/cjs/hooks/index.d.ts +2 -0
  31. package/dist/cjs/hooks/route/index.cjs.js +1 -0
  32. package/dist/cjs/hooks/route/index.d.ts +9 -0
  33. package/dist/cjs/store/index.cjs.js +1 -0
  34. package/dist/cjs/store/index.d.ts +7 -7
  35. package/dist/cjs/store/modules/Breadcrumb.cjs.js +1 -1
  36. package/dist/cjs/store/modules/Breadcrumb.d.ts +6 -16
  37. package/dist/cjs/store/modules/DataDictionary.cjs.js +1 -1
  38. package/dist/cjs/store/modules/DataDictionary.d.ts +28 -3
  39. package/dist/cjs/store/modules/KeepAlive.cjs.js +1 -1
  40. package/dist/cjs/store/modules/KeepAlive.d.ts +3 -4
  41. package/dist/cjs/store/modules/Menu.cjs.js +1 -1
  42. package/dist/cjs/store/modules/Menu.d.ts +1 -2
  43. package/dist/cjs/store/modules/NavTab.cjs.js +1 -1
  44. package/dist/cjs/store/modules/NavTab.d.ts +3 -4
  45. package/dist/cjs/store/modules/Settings.cjs.js +1 -1
  46. package/dist/cjs/store/modules/Settings.d.ts +23 -9
  47. package/dist/cjs/store/modules/User.cjs.js +1 -1
  48. package/dist/cjs/store/modules/User.d.ts +1 -2
  49. package/dist/cjs/store/types.cjs.js +1 -1
  50. package/dist/cjs/utils/get.cjs.js +1 -0
  51. package/dist/css/grid/style/index.css +1 -0
  52. package/dist/css/index.css +1 -0
  53. package/dist/css/menu/style/index.css +1 -0
  54. package/dist/esm/components/components.d.ts +2 -1
  55. package/dist/esm/components/components.esm.js +10 -7
  56. package/dist/esm/components/form/grid-form/GridForm.d.ts +2 -0
  57. package/dist/esm/components/form/grid-form/GridForm.esm.js +9 -0
  58. package/dist/esm/components/form/index.d.ts +8 -1
  59. package/dist/esm/components/form/index.esm.js +5 -3
  60. package/dist/esm/components/grid/Grid.d.ts +23 -0
  61. package/dist/esm/components/grid/Grid.esm.js +55 -0
  62. package/dist/esm/components/grid/GridItem.d.ts +2 -0
  63. package/dist/esm/components/grid/GridItem.esm.js +15 -0
  64. package/dist/esm/components/grid/index.d.ts +23 -0
  65. package/dist/esm/components/grid/index.esm.js +8 -0
  66. package/dist/esm/components/index.esm.js +16 -13
  67. package/dist/esm/components/layout/Breadcrumb.vue.esm.js +13 -19
  68. package/dist/esm/components/layout/List.vue.esm.js +29 -35
  69. package/dist/esm/components/layout/Main.vue.esm.js +53 -50
  70. package/dist/esm/components/layout/Menu.esm.js +45 -19
  71. package/dist/esm/components/layout/NavTabs.vue.esm.js +27 -27
  72. package/dist/esm/components/layout/Show.vue.d.ts +11 -0
  73. package/dist/esm/components/layout/Show.vue.esm.js +70 -48
  74. package/dist/esm/components/layout/index.d.ts +11 -25
  75. package/dist/esm/components/table/Table.vue.d.ts +1 -1
  76. package/dist/esm/components/table/Table.vue.esm.js +2 -2
  77. package/dist/esm/components/table/index.d.ts +1 -1
  78. package/dist/esm/components/theme/index.d.ts +1 -0
  79. package/dist/esm/components/theme/index.esm.js +4 -0
  80. package/dist/esm/hooks/http/index.d.ts +29 -0
  81. package/dist/esm/hooks/http/index.esm.js +52 -0
  82. package/dist/esm/hooks/index.d.ts +2 -0
  83. package/dist/esm/hooks/index.esm.js +6 -0
  84. package/dist/esm/hooks/route/index.d.ts +9 -0
  85. package/dist/esm/hooks/route/index.esm.js +42 -0
  86. package/dist/esm/store/index.d.ts +7 -7
  87. package/dist/esm/store/index.esm.js +16 -0
  88. package/dist/esm/store/modules/Breadcrumb.d.ts +6 -16
  89. package/dist/esm/store/modules/Breadcrumb.esm.js +4 -12
  90. package/dist/esm/store/modules/DataDictionary.d.ts +28 -3
  91. package/dist/esm/store/modules/DataDictionary.esm.js +30 -6
  92. package/dist/esm/store/modules/KeepAlive.d.ts +3 -4
  93. package/dist/esm/store/modules/KeepAlive.esm.js +4 -4
  94. package/dist/esm/store/modules/Menu.d.ts +1 -2
  95. package/dist/esm/store/modules/Menu.esm.js +1 -1
  96. package/dist/esm/store/modules/NavTab.d.ts +3 -4
  97. package/dist/esm/store/modules/NavTab.esm.js +2 -2
  98. package/dist/esm/store/modules/Settings.d.ts +23 -9
  99. package/dist/esm/store/modules/Settings.esm.js +81 -6
  100. package/dist/esm/store/modules/User.d.ts +1 -2
  101. package/dist/esm/store/modules/User.esm.js +4 -1
  102. package/dist/esm/store/types.esm.js +4 -4
  103. package/dist/esm/style.css +1 -274
  104. package/dist/esm/utils/get.esm.js +11 -0
  105. package/dist/style/grid/style/index.scss +61 -0
  106. package/dist/style/index.scss +15 -0
  107. package/dist/style/menu/style/index.scss +18 -0
  108. package/dist/style/theme/theme.scss +1 -0
  109. package/dist/style/theme/variable.scss +21 -0
  110. package/package.json +10 -7
  111. package/src/components/components.ts +4 -0
  112. package/src/components/config/Config.vue +8 -0
  113. package/src/components/form/Form.vue +10 -0
  114. package/src/components/form/grid-form/GridForm.jsx +10 -0
  115. package/src/components/form/index.ts +8 -0
  116. package/src/components/form/style/index.less +0 -0
  117. package/src/components/grid/Grid.tsx +73 -0
  118. package/src/components/grid/GridItem.tsx +15 -0
  119. package/src/components/grid/index.md +4 -0
  120. package/src/components/grid/index.ts +7 -0
  121. package/src/components/grid/style/index.scss +61 -0
  122. package/src/components/index.scss +15 -0
  123. package/src/components/index.ts +31 -0
  124. package/src/components/layout/Breadcrumb.vue +119 -0
  125. package/src/components/layout/Header.vue +0 -0
  126. package/src/components/layout/Layout.jsx +24 -0
  127. package/src/components/layout/List.vue +159 -0
  128. package/src/components/layout/Main.vue +187 -0
  129. package/src/components/layout/Menu.jsx +96 -0
  130. package/src/components/layout/NavTabs.vue +192 -0
  131. package/src/components/layout/Show.vue +157 -0
  132. package/src/components/layout/index.ts +19 -0
  133. package/src/components/menu/Menu.jsx +94 -0
  134. package/src/components/menu/style/index.scss +18 -0
  135. package/src/components/select/Select.vue +85 -0
  136. package/src/components/table/Field.vue +49 -0
  137. package/src/components/table/Table.vue +391 -0
  138. package/src/components/table/index.md +1 -0
  139. package/src/components/table/index.ts +5 -0
  140. package/src/components/theme/index.ts +1 -0
  141. package/src/components/theme/theme.scss +1 -0
  142. package/src/components/theme/variable.scss +21 -0
  143. package/src/hooks/http/index.ts +107 -0
  144. package/src/hooks/index.ts +2 -0
  145. package/src/hooks/route/index.ts +84 -0
  146. package/src/store/index.ts +7 -0
  147. package/src/store/modules/Breadcrumb.ts +25 -0
  148. package/src/store/modules/DataDictionary.ts +49 -0
  149. package/src/store/modules/KeepAlive.ts +47 -0
  150. package/src/store/modules/Menu.ts +24 -0
  151. package/src/store/modules/NavTab.ts +81 -0
  152. package/src/store/modules/Settings.ts +120 -0
  153. package/src/store/modules/User.ts +23 -0
  154. package/src/store/types.ts +15 -0
  155. package/src/tsconfig.json +16 -0
  156. package/src/utils/get.ts +15 -0
  157. package/src/utils/index.ts +2 -0
  158. package/src/utils/install.ts +12 -0
@@ -1,21 +1,32 @@
1
- declare const _default: import("pinia").StoreDefinition<string, {
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
- } & import("pinia").PiniaCustomStateProperties<{
9
- refresh: boolean;
10
- collapsed: boolean;
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
- } & import("pinia").PiniaCustomStateProperties<{
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
- }>) => boolean;
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"),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}}});
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 _default: import("pinia").StoreDefinition<string, {
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="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;
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,3 +1,4 @@
1
1
  export { default as DForm } from "./form";
2
- export { DList, DMain, DNavTabs, DShow } from "./layout";
2
+ export * from "./layout";
3
3
  export { default as DTable } from "./table";
4
+ export { DGrid, DGridItem } from "./grid";
@@ -1,11 +1,14 @@
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";
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
- e as DList,
7
- m as DMain,
8
- t as DNavTabs,
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
- x as DTable
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;
@@ -0,0 +1,9 @@
1
+ import { defineComponent as e, createVNode as t, Fragment as r, createTextVNode as u } from "vue";
2
+ const n = /* @__PURE__ */ e({
3
+ setup() {
4
+ return () => t(r, null, [u("我是网格表单")]);
5
+ }
6
+ });
7
+ export {
8
+ n as default
9
+ };
@@ -1,4 +1,11 @@
1
1
  export declare const DForm: import("../../utils/install").SFCWithInstall<{
2
2
  name: string;
3
3
  }>;
4
- export default DForm;
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
- const a = o(r);
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
- a as DForm,
6
- a as default
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<{}>>, {}>>;
@@ -0,0 +1,8 @@
1
+ import r from "../../utils/install.esm.js";
2
+ import t from "./Grid.esm.js";
3
+ import o from "./GridItem.esm.js";
4
+ const p = r(t), G = r(o);
5
+ export {
6
+ p as DGrid,
7
+ G as DGridItem
8
+ };
@@ -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 { 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];
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", n);
18
+ ), o.use(t), console.log("options", r);
18
19
  }, l = {
19
20
  install: m
20
21
  };
21
22
  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,
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 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 = {
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
- }, q = /* @__PURE__ */ i({
8
+ }, T = /* @__PURE__ */ l({
15
9
  ...C,
16
10
  setup(N) {
17
- const s = g(), o = u(() => s.getBreadcrumb);
11
+ const s = g(), o = i(() => s.getBreadcrumb);
18
12
  return (V, D) => {
19
- const m = l("router-link");
13
+ const d = m("router-link");
20
14
  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", {
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
- d + 1 !== a(o).length ? (e(), h(m, {
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: n(() => [
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
- q as default
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 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";
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: "dfb-list-layout" }, F = {
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
- }, se = /* @__PURE__ */ C({
10
+ }, X = /* @__PURE__ */ C({
17
11
  ...I,
18
12
  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);
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 = i.value.offsetHeight, o.value = !0;
18
+ c.value = f.value.offsetHeight, o.value = !0;
25
19
  }, 1);
26
- }), b(
20
+ }), y(
27
21
  () => n == null ? void 0 : n.componentSize,
28
22
  (e) => {
29
23
  o.value = !1, setTimeout(() => {
30
- c.value = i.value.offsetHeight, o.value = !0;
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
- f.value && (f.value = !1, p("refresh")), s = _();
30
+ i.value && (i.value = !1, v("refresh")), s = h();
37
31
  }), H(() => {
38
32
  s();
39
- })) : (s = _(), B(() => {
33
+ })) : (s = h(), B(() => {
40
34
  s();
41
35
  }));
42
36
  }
43
- function _() {
44
- return b(
45
- () => f.value,
37
+ function h() {
38
+ return y(
39
+ () => i.value,
46
40
  (e) => {
47
- e && p("refresh");
41
+ e && v("refresh");
48
42
  }
49
43
  );
50
44
  }
51
45
  return (e, K) => {
52
- const h = y("a-card"), k = y("a-space");
46
+ const p = R("a-card"), k = R("a-space");
53
47
  return E(), L("div", q, [
54
48
  t("div", F, [
55
- m(h, {
49
+ u(p, {
56
50
  ref: "formRef",
57
51
  bordered: !1,
58
- class: N({ "dfb-list-form": u(a).form }),
59
- style: R({ "margin-bottom": u(a).form ? v + "px" : 0 })
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
- r(e.$slots, "form")
56
+ a(e.$slots, "form")
63
57
  ]),
64
58
  _: 3
65
59
  }, 8, ["class", "style"]),
66
- m(h, {
67
- class: "dfb-list-table",
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: R({ "margin-bottom": u(a).tools ? v + "px" : 0 })
69
+ style: b({ "margin-bottom": m(r).tools ? _ + "px" : 0 })
76
70
  }, [
77
- m(k, null, {
71
+ u(k, null, {
78
72
  default: d(() => [
79
- r(e.$slots, "tools")
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: i,
80
+ ref: f,
87
81
  style: { flex: "1" }
88
82
  }, [
89
83
  V(t("div", null, [
90
- r(e.$slots, "table", { height: c.value })
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
- r(e.$slots, "default")
94
+ a(e.$slots, "default")
101
95
  ])
102
96
  ]);
103
97
  };
104
98
  }
105
99
  });
106
100
  export {
107
- se as default
101
+ X as default
108
102
  };