dlzn-ui 2.0.46 → 2.0.48

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 (178) hide show
  1. package/assets/css/tdesign-reset.css +6 -0
  2. package/assets/{provider-tmBy-gBq.css → provider-CwykAGOx.css} +1 -1
  3. package/assets/{table-BcyMyXjz.css → table-eI8d7v00.css} +1 -1
  4. package/chunks/{AssignUser-BbeLLGD4.mjs → AssignUser-B5wRIDyb.mjs} +3 -3
  5. package/chunks/BasicInfo-9WqspD1Z.mjs +69 -0
  6. package/chunks/ColumnInfo-CZwp56Y1.mjs +248 -0
  7. package/chunks/{Common-BgM-b-rd.mjs → Common-BVD38hp6.mjs} +1 -1
  8. package/chunks/{Day-BQhqFjXH.mjs → Day-CHWBklI0.mjs} +1 -1
  9. package/chunks/{DictTypeDetail-DLF1SxsX.mjs → DictTypeDetail-nQNP_aSN.mjs} +2 -2
  10. package/chunks/GenInfo-Dxoe_3RM.mjs +123 -0
  11. package/chunks/{Hour-oTSV7kzM.mjs → Hour-NaDEj833.mjs} +1 -1
  12. package/chunks/Import-Cw149ucc.mjs +67 -0
  13. package/chunks/Index-BKtK-Ikl.mjs +37 -0
  14. package/chunks/{Index-DKJXQAZ6.mjs → Index-CQSAs1h6.mjs} +1 -1
  15. package/chunks/{Index-B14jEhv1.mjs → Index-ClKOg-Wu.mjs} +1 -1
  16. package/chunks/{Index-BSICG9gU.mjs → Index-LNJ_79uk.mjs} +1 -1
  17. package/chunks/{Index-BC6YIzwn.mjs → Index-QeguMHYR.mjs} +1 -1
  18. package/chunks/{IndexItem-BgRYG21w.mjs → IndexItem-DsYwi-MU.mjs} +1 -1
  19. package/chunks/{Log-DB6sYM6W.mjs → Log-BAt3Vxvi.mjs} +2 -2
  20. package/chunks/{LoginBg-D6LI-RQr.mjs → LoginBg-BharyaPx.mjs} +1 -1
  21. package/chunks/{Minute-r8Je2Ur9.mjs → Minute-CM6f_BSX.mjs} +1 -1
  22. package/chunks/{Month-CuxjKraz.mjs → Month-DRWusngF.mjs} +1 -1
  23. package/chunks/Preview-hFTldEUR.mjs +52 -0
  24. package/chunks/{Second-CY2fahMR.mjs → Second-BTRO-iOb.mjs} +1 -1
  25. package/chunks/{SelectDept-CRqN0-4G.mjs → SelectDept-B_9npI--.mjs} +2 -2
  26. package/chunks/{SelectMenu-D47x8Qp7.mjs → SelectMenu-CB0bsNEl.mjs} +2 -2
  27. package/chunks/{SelectUser-B_OC19Ab.mjs → SelectUser-CmdgRKZD.mjs} +2 -2
  28. package/chunks/{UserInfo-C6gko2hb.mjs → UserInfo-CT_ez2uW.mjs} +1 -1
  29. package/chunks/{app-F22ZiU9p.mjs → app-DNfYzQDT.mjs} +1 -1
  30. package/chunks/checkbox-C-5KTT1a.mjs +54 -0
  31. package/chunks/{custom-page-list-C5x2lpDj.mjs → custom-page-list-DZS45Fs5.mjs} +4 -4
  32. package/chunks/{custom-page-table-BUQl-gcO.mjs → custom-page-table-BpzYoGwO.mjs} +2 -2
  33. package/chunks/echarts-C3EKKtvU.mjs +26575 -0
  34. package/chunks/{overview-C2wCzdwi.mjs → overview-SpRnc3-2.mjs} +1 -1
  35. package/chunks/{page-list-iazzf1bi.mjs → page-list-4xYQUHkI.mjs} +3 -3
  36. package/chunks/{page-query-CrnkGVHt.mjs → page-query-JDsWn-xy.mjs} +1 -1
  37. package/chunks/{page-table-DBM8qcgR.mjs → page-table-JezgsQh2.mjs} +3 -3
  38. package/chunks/{pagination-DNfZiF_z.mjs → pagination-Cck2wqel.mjs} +1 -1
  39. package/chunks/{provider-DKvkPp1F.mjs → provider-CDqQoKIA.mjs} +10 -7
  40. package/chunks/{table-CEzmHvU0.mjs → table-DlFbYYNw.mjs} +7 -7
  41. package/components/app/index.mjs +1 -1
  42. package/components/app/src/app.mjs +1 -1
  43. package/components/button/index.mjs +1 -1
  44. package/components/button/src/button.mjs +1 -1
  45. package/components/checkbox/index.mjs +2 -2
  46. package/components/checkbox/src/checkbox.d.ts +10 -3
  47. package/components/checkbox/src/checkbox.mjs +1 -1
  48. package/components/checkbox/src/checkbox.vue.d.ts +2 -2
  49. package/components/checkbox-group/index.mjs +1 -1
  50. package/components/checkbox-group/src/checkbox-group.mjs +1 -1
  51. package/components/cron/index.mjs +1 -1
  52. package/components/cron/src/Common.mjs +1 -1
  53. package/components/cron/src/Day.mjs +1 -1
  54. package/components/cron/src/Hour.mjs +1 -1
  55. package/components/cron/src/Minute.mjs +1 -1
  56. package/components/cron/src/Month.mjs +1 -1
  57. package/components/cron/src/Picker.mjs +6 -6
  58. package/components/cron/src/Second.mjs +1 -1
  59. package/components/cron/src/cron.mjs +1 -1
  60. package/components/custom-page-list/index.mjs +1 -1
  61. package/components/custom-page-list/src/custom-page-list.mjs +1 -1
  62. package/components/custom-page-table/index.mjs +1 -1
  63. package/components/custom-page-table/src/custom-page-table.mjs +1 -1
  64. package/components/form/index.mjs +1 -1
  65. package/components/form/src/form.mjs +1 -1
  66. package/components/index.mjs +29 -29
  67. package/components/overview/index.mjs +1 -1
  68. package/components/overview/src/DicLabel/Index.mjs +1 -1
  69. package/components/overview/src/IndexItem.mjs +1 -1
  70. package/components/overview/src/overview.mjs +1 -1
  71. package/components/page-list/index.mjs +1 -1
  72. package/components/page-list/src/page-list.d.ts +5 -7
  73. package/components/page-list/src/page-list.mjs +1 -1
  74. package/components/page-query/index.mjs +1 -1
  75. package/components/page-query/src/page-query.mjs +1 -1
  76. package/components/page-table/index.mjs +1 -1
  77. package/components/page-table/src/page-table.mjs +1 -1
  78. package/components/pagination/index.mjs +1 -1
  79. package/components/pagination/src/pagination.mjs +1 -1
  80. package/components/provider/index.mjs +1 -1
  81. package/components/provider/src/Provider.mjs +1 -1
  82. package/components/radio-group/index.mjs +1 -1
  83. package/components/radio-group/src/radio-group.mjs +1 -1
  84. package/components/select/index.mjs +1 -1
  85. package/components/select/src/select.mjs +1 -1
  86. package/components/select-sys-user/index.mjs +1 -1
  87. package/components/select-sys-user/src/Picker.mjs +2 -2
  88. package/components/select-sys-user/src/select-sys-user.mjs +1 -1
  89. package/components/table/index.mjs +1 -1
  90. package/components/table/src/table.mjs +1 -1
  91. package/components/tree/index.mjs +1 -1
  92. package/components/tree/src/tree.mjs +1 -1
  93. package/components/tree-select/index.mjs +1 -1
  94. package/components/tree-select/src/tree-select.mjs +1 -1
  95. package/components/upload/index.mjs +1 -1
  96. package/components/upload/src/upload.mjs +1 -1
  97. package/hooks/useDicOptions/index.mjs +1 -1
  98. package/hooks/useSysUser/index.mjs +1 -1
  99. package/layout/Entry.mjs +1 -1
  100. package/layout/Home.mjs +2 -2
  101. package/layout/Login.mjs +2 -2
  102. package/layout/NotFound.mjs +1 -1
  103. package/layout/modules/Aside.mjs +1 -1
  104. package/layout/modules/Breadcrumb.mjs +1 -1
  105. package/layout/modules/Header.mjs +1 -1
  106. package/layout/modules/LoginBg.mjs +1 -1
  107. package/layout/profile/Index.mjs +2 -2
  108. package/layout/profile/ResetPwd.mjs +1 -1
  109. package/layout/profile/UserInfo.mjs +1 -1
  110. package/main.mjs +2 -2
  111. package/package.json +1 -1
  112. package/plugins/autoImport/$alova/index.mjs +1 -1
  113. package/plugins/autoImport/$confirm/index.mjs +1 -1
  114. package/plugins/autoImport/$dialog/index.mjs +1 -1
  115. package/plugins/autoImport/$drawer/index.mjs +1 -1
  116. package/plugins/captcha/captcha.mjs +1 -1
  117. package/plugins/captcha/index.mjs +1 -1
  118. package/plugins/echarts/index.d.ts +2 -2
  119. package/plugins/echarts/index.mjs +2 -26574
  120. package/plugins/initialize/webUpdateNotify.mjs +1 -1
  121. package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
  122. package/plugins/tableRenders/cell/Checkbox/Index.mjs +2 -0
  123. package/plugins/tableRenders/cell/Checkbox/Index.vue.d.ts +17 -0
  124. package/plugins/tableRenders/cell/Checkbox/index.d.ts +2 -0
  125. package/plugins/tableRenders/cell/Checkbox/index2.mjs +0 -0
  126. package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
  127. package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
  128. package/plugins/tableRenders/cell/index.d.ts +2 -0
  129. package/plugins/tableRenders/cell/index.mjs +47 -45
  130. package/router/index.mjs +1 -1
  131. package/store/modules/common.mjs +1 -1
  132. package/store/modules/login.mjs +1 -1
  133. package/store/modules/recentRouters.mjs +1 -1
  134. package/store/modules/router.mjs +1 -1
  135. package/store/modules/user.mjs +1 -1
  136. package/types/globle.d.ts +2 -0
  137. package/views/index.mjs +4 -0
  138. package/views/monitor/cache/index.mjs +139 -0
  139. package/views/monitor/cache/index.vue.d.ts +3 -0
  140. package/views/monitor/cacheList/index.mjs +179 -0
  141. package/views/monitor/cacheList/index.vue.d.ts +3 -0
  142. package/views/monitor/logininfor/index.mjs +2 -2
  143. package/views/monitor/online/index.mjs +2 -2
  144. package/views/monitor/operlog/index.mjs +2 -2
  145. package/views/monitor/server/index.mjs +2 -2
  146. package/views/system/config/index.mjs +2 -2
  147. package/views/system/dept/index.mjs +2 -2
  148. package/views/system/dept/utils.mjs +1 -1
  149. package/views/system/dict/index.mjs +3 -3
  150. package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
  151. package/views/system/menu/index.mjs +22 -26
  152. package/views/system/menu/utils.d.ts +4 -0
  153. package/views/system/menu/utils.mjs +18 -0
  154. package/views/system/notice/index.mjs +2 -2
  155. package/views/system/post/index.mjs +2 -2
  156. package/views/system/role/index.mjs +5 -5
  157. package/views/system/role/modules/AssignUser.mjs +1 -1
  158. package/views/system/role/modules/SelectDept.mjs +1 -1
  159. package/views/system/role/modules/SelectMenu.mjs +1 -1
  160. package/views/system/role/modules/SelectUser.mjs +1 -1
  161. package/views/system/user/index.mjs +3 -3
  162. package/views/tool/gen/editTable/index.mjs +67 -0
  163. package/views/tool/gen/editTable/index.vue.d.ts +3 -0
  164. package/views/tool/gen/editTable/modules/BasicInfo.mjs +2 -0
  165. package/views/tool/gen/editTable/modules/BasicInfo.vue.d.ts +8 -0
  166. package/views/tool/gen/editTable/modules/ColumnInfo.mjs +2 -0
  167. package/views/tool/gen/editTable/modules/ColumnInfo.vue.d.ts +14 -0
  168. package/views/tool/gen/editTable/modules/GenInfo.mjs +2 -0
  169. package/views/tool/gen/editTable/modules/GenInfo.vue.d.ts +8 -0
  170. package/views/tool/gen/index.mjs +163 -0
  171. package/views/tool/gen/index.vue.d.ts +3 -0
  172. package/views/tool/gen/modules/Import.mjs +2 -0
  173. package/views/tool/gen/modules/Import.vue.d.ts +6 -0
  174. package/views/tool/gen/modules/Preview.mjs +2 -0
  175. package/views/tool/gen/modules/Preview.vue.d.ts +6 -0
  176. package/views/tool/job/index.mjs +3 -3
  177. package/views/tool/job/modules/Log.mjs +1 -1
  178. package/chunks/checkbox-Drb_LAT6.mjs +0 -47
@@ -1,4 +1,4 @@
1
- import { F as e } from "../../chunks/provider-DKvkPp1F.mjs";
1
+ import { F as e } from "../../chunks/provider-CDqQoKIA.mjs";
2
2
  import { nextTick as t, ref as n } from "vue";
3
3
  //#region ../../packages/dlzn-ui/plugins/initialize/webUpdateNotify.ts
4
4
  var r = !1;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-B14jEhv1.mjs";
1
+ import { t as e } from "../../../../chunks/Index-ClKOg-Wu.mjs";
2
2
  export { e as default };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../../../chunks/Index-BKtK-Ikl.mjs";
2
+ export { e as default };
@@ -0,0 +1,17 @@
1
+ import { CheckboxProps } from './index.ts';
2
+ import { ModelValue } from '../../../../components/checkbox';
3
+ type __VLS_Props = CheckboxProps;
4
+ type __VLS_ModelProps = {
5
+ 'modelValue'?: ModelValue;
6
+ };
7
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ "update:modelValue": (value: import('tdesign-vue-next').SwitchValue | undefined) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: import('tdesign-vue-next').SwitchValue | undefined) => any) | undefined;
12
+ }>, {
13
+ disabled: boolean;
14
+ readonly: boolean;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { CheckboxProps as _CheckboxProps } from '../../../../components/checkbox';
2
+ export type CheckboxProps = Omit<_CheckboxProps, 'modelValue'>;
File without changes
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-BC6YIzwn.mjs";
1
+ import { t as e } from "../../../../chunks/Index-QeguMHYR.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-DKJXQAZ6.mjs";
1
+ import { t as e } from "../../../../chunks/Index-CQSAs1h6.mjs";
2
2
  export { e as default };
@@ -1,6 +1,7 @@
1
1
  import { SlotReturnValue } from 'tdesign-vue-next';
2
2
  import { AvatarProps } from './Avatar/index.ts';
3
3
  import { ButtonsProps } from './Buttons/index.ts';
4
+ import { CheckboxProps } from './Checkbox/index.ts';
4
5
  import { ColorPickerProps } from './ColorPicker/index.ts';
5
6
  import { DefaultProps } from './Default/index.ts';
6
7
  import { DicLabelProps } from './DicLabel/index.ts';
@@ -29,6 +30,7 @@ export type ComponentConfig<T extends keyof ComponentPropsMap> = ComponentPropsM
29
30
  interface ComponentPropsMap {
30
31
  Avatar: AvatarProps;
31
32
  Buttons: ButtonsProps;
33
+ Checkbox: CheckboxProps;
32
34
  ColorPicker: ColorPickerProps;
33
35
  Default: DefaultProps;
34
36
  DicLabel: DicLabelProps;
@@ -1,70 +1,72 @@
1
1
  import { n as e } from "../../../chunks/useAppContext-D47amIp5.mjs";
2
2
  import { t } from "../../../chunks/Index-DOMlymIc.mjs";
3
- import { t as n } from "../../../chunks/Index-B14jEhv1.mjs";
4
- import { t as r } from "../../../chunks/Index-But4jrnW.mjs";
5
- import { t as i } from "../../../chunks/Index-BuqrJDKe.mjs";
6
- import { t as a } from "../../../chunks/Index-BC6YIzwn.mjs";
7
- import { t as o } from "../../../chunks/Index-DlS664Iz.mjs";
8
- import { t as s } from "../../../chunks/Index-BVighfGs.mjs";
9
- import { t as c } from "../../../chunks/Index-sYhv1xn9.mjs";
10
- import { t as l } from "../../../chunks/Index-CoNNokMv.mjs";
11
- import { t as u } from "../../../chunks/Index-DvWanFOZ.mjs";
12
- import { t as d } from "../../../chunks/Index-B-O5KGpr.mjs";
13
- import { t as f } from "../../../chunks/Index-B5dltuvs.mjs";
14
- import { t as p } from "../../../chunks/Index-DBQnzqsw.mjs";
15
- import { t as m } from "../../../chunks/Index-BAwtI6wg.mjs";
16
- import { t as h } from "../../../chunks/Index-DKJXQAZ6.mjs";
17
- import { t as g } from "../../../chunks/Index-BOv4n_q9.mjs";
18
- import { t as _ } from "../../../chunks/Index-DuOAXN6w.mjs";
19
- import { t as v } from "../../../chunks/Index-CZnP6jHo.mjs";
20
- import { t as y } from "../../../chunks/Index-CT0eb17V.mjs";
21
- import { t as b } from "../../../chunks/Wrapper-Boiyneqd.mjs";
3
+ import { t as n } from "../../../chunks/Index-ClKOg-Wu.mjs";
4
+ import { t as r } from "../../../chunks/Index-BKtK-Ikl.mjs";
5
+ import { t as i } from "../../../chunks/Index-But4jrnW.mjs";
6
+ import { t as a } from "../../../chunks/Index-BuqrJDKe.mjs";
7
+ import { t as o } from "../../../chunks/Index-QeguMHYR.mjs";
8
+ import { t as s } from "../../../chunks/Index-DlS664Iz.mjs";
9
+ import { t as c } from "../../../chunks/Index-BVighfGs.mjs";
10
+ import { t as l } from "../../../chunks/Index-sYhv1xn9.mjs";
11
+ import { t as u } from "../../../chunks/Index-CoNNokMv.mjs";
12
+ import { t as d } from "../../../chunks/Index-DvWanFOZ.mjs";
13
+ import { t as f } from "../../../chunks/Index-B-O5KGpr.mjs";
14
+ import { t as p } from "../../../chunks/Index-B5dltuvs.mjs";
15
+ import { t as m } from "../../../chunks/Index-DBQnzqsw.mjs";
16
+ import { t as h } from "../../../chunks/Index-BAwtI6wg.mjs";
17
+ import { t as g } from "../../../chunks/Index-CQSAs1h6.mjs";
18
+ import { t as _ } from "../../../chunks/Index-BOv4n_q9.mjs";
19
+ import { t as v } from "../../../chunks/Index-DuOAXN6w.mjs";
20
+ import { t as y } from "../../../chunks/Index-CZnP6jHo.mjs";
21
+ import { t as b } from "../../../chunks/Index-CT0eb17V.mjs";
22
+ import { t as x } from "../../../chunks/Wrapper-Boiyneqd.mjs";
22
23
  //#region ../../packages/dlzn-ui/plugins/tableRenders/cell/index.ts
23
- var x = /* #__PURE__ */ Object.assign({
24
+ var S = /* #__PURE__ */ Object.assign({
24
25
  "./Avatar/Index.vue": t,
25
26
  "./Buttons/Index.vue": n,
26
- "./ColorPicker/Index.vue": r,
27
- "./Default/Index.vue": i,
28
- "./DicLabel/Index.vue": a,
29
- "./FormatDate/Index.vue": o,
30
- "./FormatNumber/Index.vue": s,
31
- "./Icon/Index.vue": c,
32
- "./Image/Index.vue": l,
33
- "./ImageViewer/Index.vue": u,
34
- "./Input/Index.vue": d,
35
- "./InputNumber/Index.vue": f,
36
- "./Link/Index.vue": p,
37
- "./OptionLabel/Index.vue": m,
38
- "./Select/Index.vue": h,
39
- "./Switch/Index.vue": g,
40
- "./Tags/Index.vue": _,
41
- "./TypographyText/Index.vue": v,
42
- "./TypographyTextLink/Index.vue": y
27
+ "./Checkbox/Index.vue": r,
28
+ "./ColorPicker/Index.vue": i,
29
+ "./Default/Index.vue": a,
30
+ "./DicLabel/Index.vue": o,
31
+ "./FormatDate/Index.vue": s,
32
+ "./FormatNumber/Index.vue": c,
33
+ "./Icon/Index.vue": l,
34
+ "./Image/Index.vue": u,
35
+ "./ImageViewer/Index.vue": d,
36
+ "./Input/Index.vue": f,
37
+ "./InputNumber/Index.vue": p,
38
+ "./Link/Index.vue": m,
39
+ "./OptionLabel/Index.vue": h,
40
+ "./Select/Index.vue": g,
41
+ "./Switch/Index.vue": _,
42
+ "./Tags/Index.vue": v,
43
+ "./TypographyText/Index.vue": y,
44
+ "./TypographyTextLink/Index.vue": b
43
45
  });
44
- function S(t) {
46
+ function C(t) {
45
47
  if (typeof t == "string") return e.error("cell 值类型为 string 表示使用插槽渲染, 没有计算宽度, 所以暂不支持"), () => null;
46
48
  let n = t === void 0 ? { component: "Default" } : t;
47
- if (C(n)) {
49
+ if (w(n)) {
48
50
  let { component: e, ...t } = n;
49
- return (n, r) => n(b, r, () => n(x[`./${e}/Index.vue`], {
51
+ return (n, r) => n(x, r, () => n(S[`./${e}/Index.vue`], {
50
52
  ...t,
51
53
  ...r
52
54
  }));
53
55
  }
54
56
  return (e, t) => {
55
57
  let r = n(e, t);
56
- if (C(r)) {
58
+ if (w(r)) {
57
59
  let { component: n, ...i } = r;
58
- return e(b, t, () => e(x[`./${n}/Index.vue`], {
60
+ return e(x, t, () => e(S[`./${n}/Index.vue`], {
59
61
  ...i,
60
62
  ...t
61
63
  }));
62
64
  }
63
- return e(b, t, () => r);
65
+ return e(x, t, () => r);
64
66
  };
65
67
  }
66
- function C(e) {
68
+ function w(e) {
67
69
  return typeof e == "object" && !!e && "component" in e && typeof e.component == "string";
68
70
  }
69
71
  //#endregion
70
- export { S as getCellRender };
72
+ export { C as getCellRender };
package/router/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { D as e, E as t, T as n } from "../chunks/provider-DKvkPp1F.mjs";
1
+ import { D as e, E as t, T as n } from "../chunks/provider-CDqQoKIA.mjs";
2
2
  export { e as default, n as getRoute, t as getTopRoute };
@@ -1,2 +1,2 @@
1
- import { H as e } from "../../chunks/provider-DKvkPp1F.mjs";
1
+ import { H as e } from "../../chunks/provider-CDqQoKIA.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { j as e } from "../../chunks/provider-DKvkPp1F.mjs";
1
+ import { j as e } from "../../chunks/provider-CDqQoKIA.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { V as e } from "../../chunks/provider-DKvkPp1F.mjs";
1
+ import { V as e } from "../../chunks/provider-CDqQoKIA.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { B as e, z as t } from "../../chunks/provider-DKvkPp1F.mjs";
1
+ import { B as e, z as t } from "../../chunks/provider-CDqQoKIA.mjs";
2
2
  export { e as default, t as getRoutersMethod };
@@ -1,2 +1,2 @@
1
- import { i as e, r as t } from "../../chunks/provider-DKvkPp1F.mjs";
1
+ import { i as e, r as t } from "../../chunks/provider-CDqQoKIA.mjs";
2
2
  export { e as default, t as getUserInfoMethod };
package/types/globle.d.ts CHANGED
@@ -7,6 +7,8 @@ declare global {
7
7
  default: Component
8
8
  }>
9
9
 
10
+ type OmitFirstParameters<T extends (...args: any) => any> =
11
+ Parameters<T> extends [any, ...infer Rest] ? Rest : never
10
12
  type PettyPrimitive = null | number | string | undefined
11
13
  interface Window {
12
14
  pluginWebUpdateNotice_?: {
package/views/index.mjs CHANGED
@@ -1,6 +1,8 @@
1
1
  import e from "virtual:dlzn-ui/app-params";
2
2
  var t = {
3
3
  .../* @__PURE__ */ Object.assign({
4
+ "./monitor/cache/index.vue": () => import("./monitor/cache/index.mjs"),
5
+ "./monitor/cacheList/index.vue": () => import("./monitor/cacheList/index.mjs"),
4
6
  "./monitor/logininfor/index.vue": () => import("./monitor/logininfor/index.mjs"),
5
7
  "./monitor/online/index.vue": () => import("./monitor/online/index.mjs"),
6
8
  "./monitor/operlog/index.vue": () => import("./monitor/operlog/index.mjs"),
@@ -13,6 +15,8 @@ var t = {
13
15
  "./system/post/index.vue": () => import("./system/post/index.mjs"),
14
16
  "./system/role/index.vue": () => import("./system/role/index.mjs"),
15
17
  "./system/user/index.vue": () => import("./system/user/index.mjs"),
18
+ "./tool/gen/editTable/index.vue": () => import("./tool/gen/editTable/index.mjs"),
19
+ "./tool/gen/index.vue": () => import("./tool/gen/index.mjs"),
16
20
  "./tool/job/index.vue": () => import("./tool/job/index.mjs")
17
21
  }),
18
22
  ...e.viewsEntryLazyImport
@@ -0,0 +1,139 @@
1
+ import { S as e } from "../../../chunks/provider-CDqQoKIA.mjs";
2
+ import { t } from "../../../chunks/card-Domqu1Hz.mjs";
3
+ import "../../../components/card/index.mjs";
4
+ import { t as n } from "../../../chunks/table-DlFbYYNw.mjs";
5
+ import "../../../components/table/index.mjs";
6
+ import { t as r } from "../../../chunks/echarts-C3EKKtvU.mjs";
7
+ import { computed as i, createElementBlock as a, createVNode as o, defineComponent as s, normalizeStyle as c, openBlock as l, unref as u, withCtx as d } from "vue";
8
+ import { useRequest as f } from "alova/client";
9
+ //#region ../../packages/dlzn-ui/views/monitor/cache/index.vue?vue&type=script&setup=true&lang.ts
10
+ var p = { class: "grid grid-cols-3 gap-4" }, m = 587, h = /* @__PURE__ */ s({
11
+ __name: "index",
12
+ setup(s) {
13
+ let { data: h } = f(e.Get("monitor/cache")), g = [{
14
+ colKey: "label",
15
+ title: "属性"
16
+ }, {
17
+ colKey: "value",
18
+ title: "值"
19
+ }], _ = i(() => {
20
+ let e = h.value;
21
+ if (!e?.info) return [];
22
+ let t = e.info;
23
+ return [
24
+ {
25
+ label: "Redis版本",
26
+ value: t.redis_version
27
+ },
28
+ {
29
+ label: "运行模式",
30
+ value: t.redis_mode === "standalone" ? "单机" : "集群"
31
+ },
32
+ {
33
+ label: "端口",
34
+ value: t.tcp_port
35
+ },
36
+ {
37
+ label: "用户端数",
38
+ value: t.connected_clients
39
+ },
40
+ {
41
+ label: "运行时间(天)",
42
+ value: t.uptime_in_days
43
+ },
44
+ {
45
+ label: "使用内存",
46
+ value: t.used_memory_human
47
+ },
48
+ {
49
+ label: "使用CPU",
50
+ value: parseFloat(t.used_cpu_user_children).toFixed(2)
51
+ },
52
+ {
53
+ label: "内存配置",
54
+ value: t.maxmemory_human
55
+ },
56
+ {
57
+ label: "AOF是否开启",
58
+ value: t.aof_enabled === "0" ? "否" : "是"
59
+ },
60
+ {
61
+ label: "RDB是否成功",
62
+ value: t.rdb_last_bgsave_status
63
+ },
64
+ {
65
+ label: "Key数量",
66
+ value: e.dbSize
67
+ },
68
+ {
69
+ label: "网络入口/出口",
70
+ value: `${t.instantaneous_input_kbps}kps/${t.instantaneous_output_kbps}kps`
71
+ }
72
+ ];
73
+ }), v = i(() => {
74
+ let e = h.value;
75
+ return e?.commandStats ? {
76
+ series: [{
77
+ animationDuration: 1e3,
78
+ animationEasing: "cubicInOut",
79
+ center: ["50%", "38%"],
80
+ data: e.commandStats,
81
+ name: "命令",
82
+ radius: [15, 95],
83
+ roseType: "radius",
84
+ type: "pie"
85
+ }],
86
+ tooltip: {
87
+ formatter: "{a} <br/>{b} : {c} ({d}%)",
88
+ trigger: "item"
89
+ }
90
+ } : {};
91
+ }), y = i(() => {
92
+ let e = h.value;
93
+ if (!e?.info) return {};
94
+ let t = e.info.used_memory_human;
95
+ return {
96
+ series: [{
97
+ data: [{
98
+ name: "内存消耗",
99
+ value: parseFloat(t)
100
+ }],
101
+ detail: { formatter: t },
102
+ max: 1e3,
103
+ min: 0,
104
+ name: "峰值",
105
+ type: "gauge"
106
+ }],
107
+ tooltip: { formatter: `{b} <br/>{a} : ${t}` }
108
+ };
109
+ });
110
+ return (e, i) => (l(), a("div", p, [
111
+ o(u(t), { title: "基本信息" }, {
112
+ default: d(() => [o(u(n), {
113
+ columns: g,
114
+ data: _.value,
115
+ height: m
116
+ }, null, 8, ["data"])]),
117
+ _: 1
118
+ }),
119
+ o(u(t), { title: "命令统计" }, {
120
+ default: d(() => [o(u(r), {
121
+ autoresize: !0,
122
+ option: v.value,
123
+ style: c(`height: ${m}px`)
124
+ }, null, 8, ["option", "style"])]),
125
+ _: 1
126
+ }),
127
+ o(u(t), { title: "内存信息" }, {
128
+ default: d(() => [o(u(r), {
129
+ autoresize: !0,
130
+ option: y.value,
131
+ style: c(`height: ${m}px`)
132
+ }, null, 8, ["option", "style"])]),
133
+ _: 1
134
+ })
135
+ ]));
136
+ }
137
+ });
138
+ //#endregion
139
+ export { h as default };
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,179 @@
1
+ import { S as e, n as t, o as n } from "../../../chunks/provider-CDqQoKIA.mjs";
2
+ import r from "../../../plugins/autoImport/$msg/index.mjs";
3
+ import { t as i } from "../../../chunks/card-Domqu1Hz.mjs";
4
+ import "../../../components/card/index.mjs";
5
+ import { t as a } from "../../../chunks/table-DlFbYYNw.mjs";
6
+ import "../../../components/table/index.mjs";
7
+ import { computed as o, createElementBlock as s, createTextVNode as c, createVNode as l, defineComponent as u, openBlock as d, reactive as f, ref as p, unref as m, watch as h, withCtx as g } from "vue";
8
+ //#region ../../packages/dlzn-ui/views/monitor/cacheList/index.vue?vue&type=script&setup=true&lang.ts
9
+ var _ = { class: "grid grid-cols-3 gap-4" }, v = /* @__PURE__ */ u({
10
+ __name: "index",
11
+ setup(u) {
12
+ let v = p([]), y = p([]), b = p([]), x = p([]), S = o(() => b.value[0] ?? ""), C = f({
13
+ cacheKey: "",
14
+ cacheName: "",
15
+ cacheValue: ""
16
+ }), w = {
17
+ cacheKey: {
18
+ _label: "缓存键名",
19
+ component: "TInput",
20
+ model: "cacheKey"
21
+ },
22
+ cacheName: {
23
+ _label: "缓存名称",
24
+ component: "TInput",
25
+ model: "cacheName"
26
+ },
27
+ cacheValue: {
28
+ _label: "缓存内容",
29
+ autosize: !0,
30
+ component: "TTextarea",
31
+ maxlength: "",
32
+ model: "cacheValue"
33
+ }
34
+ }, T = [
35
+ {
36
+ cell: (e, { row: t }) => t.cacheName.replace(":", ""),
37
+ colKey: "cacheName",
38
+ title: "缓存名称"
39
+ },
40
+ {
41
+ colKey: "remark",
42
+ title: "备注"
43
+ },
44
+ {
45
+ cell: {
46
+ buttons: [({ row: t }) => ({
47
+ default: "清除",
48
+ popconfirm: {
49
+ content: "确定要清除该缓存吗?",
50
+ onConfirm: async () => {
51
+ await e.Delete(`monitor/cache/clearCacheName/${t.cacheName}`, void 0, { meta: { useSuccessMsg: !0 } }), O();
52
+ }
53
+ }
54
+ })],
55
+ component: "Buttons"
56
+ },
57
+ colKey: "_operation",
58
+ title: "操作"
59
+ }
60
+ ], E = o(() => [{
61
+ cell: (e, { row: t }) => t.cacheKey.replace(S.value, ""),
62
+ colKey: "cacheKey",
63
+ title: "缓存键名"
64
+ }, {
65
+ cell: {
66
+ buttons: [({ row: t }) => ({
67
+ default: "清除",
68
+ popconfirm: {
69
+ content: "确定要清除该键吗?",
70
+ onConfirm: async () => {
71
+ await e.Delete(`monitor/cache/clearCacheKey/${t.cacheKey}`, void 0, { meta: { useSuccessMsg: !0 } }), D();
72
+ }
73
+ }
74
+ })],
75
+ component: "Buttons"
76
+ },
77
+ colKey: "_operation",
78
+ title: "操作"
79
+ }]);
80
+ async function D(t = !1) {
81
+ if (!S.value) {
82
+ y.value = [];
83
+ return;
84
+ }
85
+ let n = await e.Get(`monitor/cache/getKeys/${S.value}`);
86
+ y.value = n.map((e) => ({ cacheKey: e })), t && r.success("刷新键名列表成功");
87
+ }
88
+ async function O(t = !1) {
89
+ v.value = await e.Get("monitor/cache/getNames"), t && r.success("刷新缓存列表成功");
90
+ }
91
+ async function k() {
92
+ let t = x.value[0];
93
+ if (!S.value || !t) {
94
+ C.cacheKey = "", C.cacheName = "", C.cacheValue = "";
95
+ return;
96
+ }
97
+ let n = await e.Get(`monitor/cache/getValue/${S.value}/${t}`);
98
+ n !== null && (C.cacheName = n.cacheName, C.cacheKey = n.cacheKey, C.cacheValue = n.cacheValue);
99
+ }
100
+ return h(b, () => {
101
+ x.value = [], D();
102
+ }), h(x, () => {
103
+ k();
104
+ }), O(), (r, o) => (d(), s("div", _, [
105
+ l(m(i), { title: "缓存列表" }, {
106
+ actions: g(() => [l(m(t), {
107
+ theme: "default",
108
+ onClick: o[0] ||= (e) => O(!0)
109
+ }, {
110
+ default: g(() => [...o[4] ||= [c(" 刷新 ", -1)]]),
111
+ _: 1
112
+ })]),
113
+ default: g(() => [l(m(a), {
114
+ "selected-row-keys": b.value,
115
+ "onUpdate:selectedRowKeys": o[1] ||= (e) => b.value = e,
116
+ columns: T,
117
+ data: v.value,
118
+ "max-height": "auto",
119
+ "row-key": "cacheName",
120
+ "show-row-select": "single",
121
+ "show-serial-number": !1
122
+ }, null, 8, ["selected-row-keys", "data"])]),
123
+ _: 1
124
+ }),
125
+ l(m(i), { title: "键名列表" }, {
126
+ actions: g(() => [l(m(t), {
127
+ disabled: b.value.length === 0,
128
+ theme: "default",
129
+ onClick: o[2] ||= (e) => D(!0)
130
+ }, {
131
+ default: g(() => [...o[5] ||= [c(" 刷新 ", -1)]]),
132
+ _: 1
133
+ }, 8, ["disabled"])]),
134
+ default: g(() => [l(m(a), {
135
+ "selected-row-keys": x.value,
136
+ "onUpdate:selectedRowKeys": o[3] ||= (e) => x.value = e,
137
+ columns: E.value,
138
+ data: y.value,
139
+ "max-height": "auto",
140
+ "row-key": "cacheKey",
141
+ "show-row-select": "single",
142
+ "show-serial-number": !1
143
+ }, null, 8, [
144
+ "selected-row-keys",
145
+ "columns",
146
+ "data"
147
+ ])]),
148
+ _: 1
149
+ }),
150
+ l(m(i), { title: "缓存内容" }, {
151
+ actions: g(() => [l(m(t), {
152
+ popconfirm: {
153
+ content: "确定要清理全部缓存吗?",
154
+ onConfirm: async () => {
155
+ await m(e).Delete("monitor/cache/clearCacheAll", void 0, { meta: { useSuccessMsg: !0 } });
156
+ }
157
+ },
158
+ theme: "default"
159
+ }, {
160
+ default: g(() => [...o[6] ||= [c(" 清理全部 ", -1)]]),
161
+ _: 1
162
+ }, 8, ["popconfirm"])]),
163
+ default: g(() => [l(m(n), {
164
+ data: C,
165
+ items: [
166
+ w.cacheName,
167
+ w.cacheKey,
168
+ w.cacheValue
169
+ ],
170
+ layout: "vertical",
171
+ readonly: ""
172
+ }, null, 8, ["data", "items"])]),
173
+ _: 1
174
+ })
175
+ ]));
176
+ }
177
+ });
178
+ //#endregion
179
+ export { v as default };
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -1,5 +1,5 @@
1
- import { S as e } from "../../../chunks/provider-DKvkPp1F.mjs";
2
- import { t } from "../../../chunks/page-list-iazzf1bi.mjs";
1
+ import { S as e } from "../../../chunks/provider-CDqQoKIA.mjs";
2
+ import { t } from "../../../chunks/page-list-4xYQUHkI.mjs";
3
3
  import "../../../components/page-list/index.mjs";
4
4
  import { createBlock as n, defineComponent as r, mergeProps as i, openBlock as a, reactive as o, ref as s, unref as c, useTemplateRef as l } from "vue";
5
5
  //#endregion
@@ -1,5 +1,5 @@
1
- import { S as e } from "../../../chunks/provider-DKvkPp1F.mjs";
2
- import { t } from "../../../chunks/page-list-iazzf1bi.mjs";
1
+ import { S as e } from "../../../chunks/provider-CDqQoKIA.mjs";
2
+ import { t } from "../../../chunks/page-list-4xYQUHkI.mjs";
3
3
  import "../../../components/page-list/index.mjs";
4
4
  import { createBlock as n, defineComponent as r, mergeProps as i, openBlock as a, unref as o, useTemplateRef as s } from "vue";
5
5
  //#endregion
@@ -1,5 +1,5 @@
1
- import { I as e, S as t, o as n } from "../../../chunks/provider-DKvkPp1F.mjs";
2
- import { t as r } from "../../../chunks/page-list-iazzf1bi.mjs";
1
+ import { I as e, S as t, o as n } from "../../../chunks/provider-CDqQoKIA.mjs";
2
+ import { t as r } from "../../../chunks/page-list-4xYQUHkI.mjs";
3
3
  import "../../../components/page-list/index.mjs";
4
4
  import { createBlock as i, defineComponent as a, h as o, mergeProps as s, openBlock as c, reactive as l, ref as u, unref as d, useTemplateRef as f, watch as p } from "vue";
5
5
  //#endregion
@@ -1,7 +1,7 @@
1
- import { S as e } from "../../../chunks/provider-DKvkPp1F.mjs";
1
+ import { S as e } from "../../../chunks/provider-CDqQoKIA.mjs";
2
2
  import { t } from "../../../chunks/card-Domqu1Hz.mjs";
3
3
  import "../../../components/card/index.mjs";
4
- import { t as n } from "../../../chunks/table-CEzmHvU0.mjs";
4
+ import { t as n } from "../../../chunks/table-DlFbYYNw.mjs";
5
5
  import "../../../components/table/index.mjs";
6
6
  import { computed as r, createElementBlock as i, createVNode as a, defineComponent as o, openBlock as s, unref as c, withCtx as l } from "vue";
7
7
  import { useRequest as u } from "alova/client";
@@ -1,6 +1,6 @@
1
- import { F as e, S as t, o as n } from "../../../chunks/provider-DKvkPp1F.mjs";
1
+ import { F as e, S as t, o as n } from "../../../chunks/provider-CDqQoKIA.mjs";
2
2
  import r from "../../../plugins/autoImport/$msg/index.mjs";
3
- import { t as i } from "../../../chunks/page-list-iazzf1bi.mjs";
3
+ import { t as i } from "../../../chunks/page-list-4xYQUHkI.mjs";
4
4
  import "../../../components/page-list/index.mjs";
5
5
  import { createBlock as a, defineComponent as o, h as s, mergeProps as c, openBlock as l, reactive as u, ref as d, unref as f, useTemplateRef as p, watch as m } from "vue";
6
6
  //#endregion
@@ -1,8 +1,8 @@
1
- import { F as e, S as t, o as n } from "../../../chunks/provider-DKvkPp1F.mjs";
1
+ import { F as e, S as t, o as n } from "../../../chunks/provider-CDqQoKIA.mjs";
2
2
  import "../../../chunks/utils-ag05P503.mjs";
3
3
  import { flatArrToTree as r } from "../../../utils/tree.mjs";
4
4
  import i from "../../../plugins/autoImport/$msg/index.mjs";
5
- import { t as a } from "../../../chunks/page-list-iazzf1bi.mjs";
5
+ import { t as a } from "../../../chunks/page-list-4xYQUHkI.mjs";
6
6
  import "../../../components/page-list/index.mjs";
7
7
  import { deptTreeList as o, deptTreeListSend as s } from "./utils.mjs";
8
8
  import { createBlock as c, defineComponent as l, h as u, mergeProps as d, openBlock as f, reactive as p, ref as m, unref as h, useTemplateRef as g, watch as _ } from "vue";
@@ -1,4 +1,4 @@
1
- import { S as e } from "../../../chunks/provider-DKvkPp1F.mjs";
1
+ import { S as e } from "../../../chunks/provider-CDqQoKIA.mjs";
2
2
  import "../../../chunks/utils-ag05P503.mjs";
3
3
  import { flatArrToTree as t } from "../../../utils/tree.mjs";
4
4
  import { useRequest as n } from "alova/client";