dlzn-ui 2.0.21 → 2.0.24

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 (144) hide show
  1. package/assets/{provider-CdmB8aS4.css → provider-XeFy2v3X.css} +1 -1
  2. package/chunks/{AssignUser-D6zWqKTf.mjs → AssignUser-B8KO6qit.mjs} +3 -3
  3. package/chunks/{Common-Dil2af-D.mjs → Common-DZTByJ2b.mjs} +1 -1
  4. package/chunks/{Day-CfzfcX9a.mjs → Day-D47hdyiq.mjs} +1 -1
  5. package/chunks/{DictTypeDetail-DpcStIYJ.mjs → DictTypeDetail-DDv2c9JG.mjs} +2 -2
  6. package/chunks/{Hour-BfYnksJ9.mjs → Hour-CkkZZ5R6.mjs} +1 -1
  7. package/chunks/{Index-C_GEf7wQ.mjs → Index-2AaTfz2L.mjs} +1 -1
  8. package/chunks/{Index-BZvMk2w1.mjs → Index-CSNXgzLe.mjs} +1 -1
  9. package/chunks/{Index-CYYPuJWJ.mjs → Index-C_JjguDb.mjs} +1 -1
  10. package/chunks/{Index-DxG0xOD8.mjs → Index-DsO5SwJk.mjs} +1 -1
  11. package/chunks/{IndexItem-D6k3xOZ0.mjs → IndexItem-CUgu9du0.mjs} +1 -1
  12. package/chunks/{Log-C3qmCb6F.mjs → Log-CPni6oj5.mjs} +2 -2
  13. package/chunks/{Minute-CzHdY9uy.mjs → Minute-Dl21u3sJ.mjs} +1 -1
  14. package/chunks/{Month-C1o1ZX9u.mjs → Month-DIgPlTW3.mjs} +1 -1
  15. package/chunks/{Second-Ba8-jeeR.mjs → Second-C9JrfdJq.mjs} +1 -1
  16. package/chunks/{SelectDept-DRF0ZpWJ.mjs → SelectDept-BdP4Fevb.mjs} +1 -1
  17. package/chunks/{SelectMenu-DNsNCrkc.mjs → SelectMenu-C8uTKPyO.mjs} +1 -1
  18. package/chunks/{SelectUser-B6kAnMI7.mjs → SelectUser-Ce69wfaR.mjs} +2 -2
  19. package/chunks/{UserInfo-C8JPdflS.mjs → UserInfo-BXDXYNSa.mjs} +1 -1
  20. package/chunks/{app-CdJioC91.mjs → app-C4vupHU4.mjs} +1 -1
  21. package/chunks/{custom-page-list-BsDO1Szu.mjs → custom-page-list-DNONwY-V.mjs} +4 -4
  22. package/chunks/{custom-page-table-BpSElP6C.mjs → custom-page-table-y7emjJnS.mjs} +2 -2
  23. package/chunks/{overview-B6g1t8wq.mjs → overview-YqvRmr0O.mjs} +1 -1
  24. package/chunks/{page-list-BMNGO6A1.mjs → page-list-DMDDWHTe.mjs} +3 -3
  25. package/chunks/{page-query-DJfeHlhx.mjs → page-query-CRbcQbQW.mjs} +1 -1
  26. package/chunks/{page-table-D0Kg0wRT.mjs → page-table-C1hMMXID.mjs} +3 -3
  27. package/chunks/{pagination-D2QIMpV1.mjs → pagination-CQPdVoCT.mjs} +1 -1
  28. package/chunks/{provider-CMbJNczj.mjs → provider-BhFm5rvy.mjs} +2 -2
  29. package/chunks/{table-BOSYQJkd.mjs → table-CqT9HbMR.mjs} +1 -1
  30. package/components/app/index.mjs +1 -1
  31. package/components/app/src/app.mjs +1 -1
  32. package/components/button/index.mjs +1 -1
  33. package/components/button/src/button.mjs +1 -1
  34. package/components/checkbox-group/index.mjs +1 -1
  35. package/components/checkbox-group/src/checkbox-group.mjs +1 -1
  36. package/components/cron/index.mjs +1 -1
  37. package/components/cron/src/Common.mjs +1 -1
  38. package/components/cron/src/Day.mjs +1 -1
  39. package/components/cron/src/Hour.mjs +1 -1
  40. package/components/cron/src/Minute.mjs +1 -1
  41. package/components/cron/src/Month.mjs +1 -1
  42. package/components/cron/src/Picker.mjs +6 -6
  43. package/components/cron/src/Second.mjs +1 -1
  44. package/components/cron/src/cron.mjs +1 -1
  45. package/components/custom-page-list/index.mjs +1 -1
  46. package/components/custom-page-list/src/custom-page-list.mjs +1 -1
  47. package/components/custom-page-table/index.mjs +1 -1
  48. package/components/custom-page-table/src/custom-page-table.mjs +1 -1
  49. package/components/form/index.mjs +1 -1
  50. package/components/form/src/form.mjs +1 -1
  51. package/components/index.mjs +9 -9
  52. package/components/overview/index.mjs +1 -1
  53. package/components/overview/src/DicLabel/Index.mjs +1 -1
  54. package/components/overview/src/IndexItem.mjs +1 -1
  55. package/components/overview/src/overview.mjs +1 -1
  56. package/components/page-list/index.mjs +1 -1
  57. package/components/page-list/src/page-list.mjs +1 -1
  58. package/components/page-query/index.mjs +1 -1
  59. package/components/page-query/src/page-query.mjs +1 -1
  60. package/components/page-table/index.mjs +1 -1
  61. package/components/page-table/src/page-table.mjs +1 -1
  62. package/components/pagination/index.mjs +1 -1
  63. package/components/pagination/src/pagination.mjs +1 -1
  64. package/components/provider/index.mjs +1 -1
  65. package/components/provider/src/Provider.mjs +1 -1
  66. package/components/radio-group/index.mjs +1 -1
  67. package/components/radio-group/src/radio-group.mjs +1 -1
  68. package/components/select/index.mjs +1 -1
  69. package/components/select/src/select.mjs +1 -1
  70. package/components/select-sys-user/index.mjs +1 -1
  71. package/components/select-sys-user/src/Picker.mjs +2 -2
  72. package/components/select-sys-user/src/select-sys-user.mjs +1 -1
  73. package/components/table/index.mjs +1 -1
  74. package/components/table/src/table.mjs +1 -1
  75. package/components/tree/index.mjs +1 -1
  76. package/components/tree/src/tree.mjs +1 -1
  77. package/components/tree-select/index.mjs +1 -1
  78. package/components/tree-select/src/tree-select.mjs +1 -1
  79. package/components/upload/index.mjs +1 -1
  80. package/components/upload/src/upload.mjs +1 -1
  81. package/hooks/useDicOptions/index.mjs +1 -1
  82. package/hooks/useSysUser/index.mjs +1 -1
  83. package/layout/Entry.mjs +1 -1
  84. package/layout/Home.mjs +1 -1
  85. package/layout/Login.mjs +1 -1
  86. package/layout/NotFound.mjs +1 -1
  87. package/layout/modules/Aside.mjs +1 -1
  88. package/layout/modules/Breadcrumb.mjs +1 -1
  89. package/layout/modules/Header.mjs +1 -1
  90. package/layout/profile/Index.mjs +2 -2
  91. package/layout/profile/ResetPwd.mjs +1 -1
  92. package/layout/profile/UserInfo.mjs +1 -1
  93. package/main.mjs +2 -2
  94. package/package.json +2 -1
  95. package/plugins/autoImport/$alova/index.mjs +1 -1
  96. package/plugins/autoImport/$confirm/index.mjs +1 -1
  97. package/plugins/autoImport/$dialog/index.mjs +1 -1
  98. package/plugins/autoImport/$drawer/index.mjs +1 -1
  99. package/plugins/captcha/captcha.mjs +1 -1
  100. package/plugins/captcha/index.mjs +1 -1
  101. package/plugins/initialize/webUpdateNotify.mjs +1 -1
  102. package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
  103. package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
  104. package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
  105. package/plugins/tableRenders/cell/index.mjs +3 -3
  106. package/proj-template/.editorconfig +10 -0
  107. package/proj-template/.gitattributes +1 -0
  108. package/proj-template/.vscode/extensions.json +20 -0
  109. package/proj-template/.vscode/settings.json +104 -0
  110. package/proj-template/.vscode/ts.code-snippets +104 -0
  111. package/proj-template/.vscode/vue.code-snippets +31 -0
  112. package/proj-template/apply.ts +12 -0
  113. package/proj-template/eslint.config.ts +6 -0
  114. package/proj-template/patches/omi@7.7.13.patch +15 -0
  115. package/proj-template/patches/tdesign-web-components.patch +446 -0
  116. package/proj-template/pnpm-workspace.yaml +73 -0
  117. package/proj-template/prettier.config.ts +7 -0
  118. package/proj-template/src/app-params.ts +4 -0
  119. package/proj-template/src/main.ts +4 -0
  120. package/proj-template/stylelint.config.ts +5 -0
  121. package/proj-template/tsconfig.app.json +26 -0
  122. package/proj-template/tsconfig.json +12 -0
  123. package/proj-template/tsconfig.node.json +25 -0
  124. package/proj-template/vite.config.ts +20 -0
  125. package/router/index.mjs +1 -1
  126. package/store/modules/common.mjs +1 -1
  127. package/store/modules/login.mjs +1 -1
  128. package/store/modules/recentRouters.mjs +1 -1
  129. package/store/modules/router.mjs +1 -1
  130. package/store/modules/user.mjs +1 -1
  131. package/views/system/dept/index.mjs +2 -2
  132. package/views/system/dept/utils.mjs +1 -1
  133. package/views/system/dict/index.mjs +3 -3
  134. package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
  135. package/views/system/menu/index.mjs +2 -2
  136. package/views/system/post/index.mjs +2 -2
  137. package/views/system/role/index.mjs +5 -5
  138. package/views/system/role/modules/AssignUser.mjs +1 -1
  139. package/views/system/role/modules/SelectDept.mjs +1 -1
  140. package/views/system/role/modules/SelectMenu.mjs +1 -1
  141. package/views/system/role/modules/SelectUser.mjs +1 -1
  142. package/views/system/user/index.mjs +3 -3
  143. package/views/tool/job/index.mjs +3 -3
  144. package/views/tool/job/modules/Log.mjs +1 -1
@@ -1,2 +1,2 @@
1
- import { d as e, u as t } from "../../chunks/provider-CMbJNczj.mjs";
1
+ import { d as e, u as t } from "../../chunks/provider-BhFm5rvy.mjs";
2
2
  export { t as TTree, e as treePropsInit };
@@ -1,2 +1,2 @@
1
- import { u as e } from "../../../chunks/provider-CMbJNczj.mjs";
1
+ import { u as e } from "../../../chunks/provider-BhFm5rvy.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { l as e } from "../../chunks/provider-CMbJNczj.mjs";
1
+ import { l as e } from "../../chunks/provider-BhFm5rvy.mjs";
2
2
  export { e as TTreeSelect };
@@ -1,2 +1,2 @@
1
- import { l as e } from "../../../chunks/provider-CMbJNczj.mjs";
1
+ import { l as e } from "../../../chunks/provider-BhFm5rvy.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { c as e, s as t } from "../../chunks/provider-CMbJNczj.mjs";
1
+ import { c as e, s as t } from "../../chunks/provider-BhFm5rvy.mjs";
2
2
  export { e as DEFAULT_ACCEPT, t as TUpload };
@@ -1,2 +1,2 @@
1
- import { s as e } from "../../../chunks/provider-CMbJNczj.mjs";
1
+ import { s as e } from "../../../chunks/provider-BhFm5rvy.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { b as e, v as t, x as n, y as r } from "../../chunks/provider-CMbJNczj.mjs";
1
+ import { b as e, v as t, x as n, y as r } from "../../chunks/provider-BhFm5rvy.mjs";
2
2
  export { e as default, t as useClearDic, r as useDicLabel, n as useRefreshDic };
@@ -1,2 +1,2 @@
1
- import { M as e, N as t, P as n } from "../../chunks/provider-CMbJNczj.mjs";
1
+ import { M as e, N as t, P as n } from "../../chunks/provider-BhFm5rvy.mjs";
2
2
  export { n as default, e as useClearSysUser, t as useRefreshSysUser };
package/layout/Entry.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { k as e } from "../chunks/provider-CMbJNczj.mjs";
1
+ import { k as e } from "../chunks/provider-BhFm5rvy.mjs";
2
2
  export { e as default };
package/layout/Home.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { g as e } from "../chunks/provider-CMbJNczj.mjs";
1
+ import { g as e } from "../chunks/provider-BhFm5rvy.mjs";
2
2
  import { createElementBlock as t, createElementVNode as n, createVNode as r, defineComponent as i, openBlock as a, ref as o, unref as s } from "vue";
3
3
  //#region ../../packages/dlzn-ui/layout/Home.vue?vue&type=script&setup=true&lang.ts
4
4
  var c = { class: "no_main_padding grid h-full grid-cols-[300px_1fr]" }, l = /* @__PURE__ */ i({
package/layout/Login.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { H as e, j as t, n, o as r } from "../chunks/provider-CMbJNczj.mjs";
1
+ import { H as e, j as t, n, o as r } from "../chunks/provider-BhFm5rvy.mjs";
2
2
  import { t as i } from "../chunks/icon-COjp1yrx.mjs";
3
3
  import "../components/icon/index.mjs";
4
4
  import a from "../plugins/autoImport/$msg/index.mjs";
@@ -1,4 +1,4 @@
1
- import { n as e } from "../chunks/provider-CMbJNczj.mjs";
1
+ import { n as e } from "../chunks/provider-BhFm5rvy.mjs";
2
2
  import { createBlock as t, createTextVNode as n, createVNode as r, defineComponent as i, openBlock as a, unref as o, withCtx as s } from "vue";
3
3
  import { Empty as c } from "tdesign-vue-next";
4
4
  import { useRouter as l } from "vue-router";
@@ -1,2 +1,2 @@
1
- import { R as e } from "../../chunks/provider-CMbJNczj.mjs";
1
+ import { R as e } from "../../chunks/provider-BhFm5rvy.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { L as e } from "../../chunks/provider-CMbJNczj.mjs";
1
+ import { L as e } from "../../chunks/provider-BhFm5rvy.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { A as e } from "../../chunks/provider-CMbJNczj.mjs";
1
+ import { A as e } from "../../chunks/provider-BhFm5rvy.mjs";
2
2
  export { e as default };
@@ -1,11 +1,11 @@
1
- import { S as e, a as t } from "../../chunks/provider-CMbJNczj.mjs";
1
+ import { S as e, a as t } from "../../chunks/provider-BhFm5rvy.mjs";
2
2
  import { isFalsy as n } from "../../utils/boolean.mjs";
3
3
  import "../../utils/index.mjs";
4
4
  import { t as r } from "../../chunks/card-Domqu1Hz.mjs";
5
5
  import "../../components/card/index.mjs";
6
6
  import { t as i } from "../../chunks/tab-panel-yh4fFZ2r.mjs";
7
7
  import "../../components/tab-panel/index.mjs";
8
- import { t as a } from "../../chunks/UserInfo-C8JPdflS.mjs";
8
+ import { t as a } from "../../chunks/UserInfo-BXDXYNSa.mjs";
9
9
  import { Fragment as o, computed as s, createBlock as c, createElementBlock as l, createVNode as u, defineComponent as d, markRaw as f, openBlock as p, provide as m, ref as h, renderList as g, resolveDynamicComponent as _, unref as v, withCtx as y } from "vue";
10
10
  import { List as b, ListItem as x, ListItemMeta as S, Tabs as C } from "tdesign-vue-next";
11
11
  import { useRequest as w } from "alova/client";
@@ -1,2 +1,2 @@
1
- import { a as e } from "../../chunks/provider-CMbJNczj.mjs";
1
+ import { a as e } from "../../chunks/provider-BhFm5rvy.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../chunks/UserInfo-C8JPdflS.mjs";
1
+ import { t as e } from "../../chunks/UserInfo-BXDXYNSa.mjs";
2
2
  export { e as default };
package/main.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { D as e, H as t } from "./chunks/provider-CMbJNczj.mjs";
2
- import { t as n } from "./chunks/app-CdJioC91.mjs";
1
+ import { D as e, H as t } from "./chunks/provider-BhFm5rvy.mjs";
2
+ import { t as n } from "./chunks/app-C4vupHU4.mjs";
3
3
  import "./components/app/index.mjs";
4
4
  import r from "./plugins/directive/index.mjs";
5
5
  import i from "./store/index.mjs";
package/package.json CHANGED
@@ -76,6 +76,7 @@
76
76
  "pinia": "^4.0.3",
77
77
  "tailwindcss": "^4.3.3",
78
78
  "tdesign-vue-next": "^1.20.5",
79
+ "tsx": "^4.23.12",
79
80
  "typescript": "^6.0.3",
80
81
  "vite": "^8.2.0",
81
82
  "vue": "^3.5.41",
@@ -107,7 +108,7 @@
107
108
  "> 1%",
108
109
  "not dead"
109
110
  ],
110
- "version": "2.0.21",
111
+ "version": "2.0.24",
111
112
  "scripts": {
112
113
  "dev": "vite --config play/vite.config.ts"
113
114
  }
@@ -1,2 +1,2 @@
1
- import { C as e, S as t, w as n } from "../../../chunks/provider-CMbJNczj.mjs";
1
+ import { C as e, S as t, w as n } from "../../../chunks/provider-BhFm5rvy.mjs";
2
2
  export { t as default, e as getFilterEmptyParamsObj, n as getParamsString };
@@ -1,2 +1,2 @@
1
- import { F as e } from "../../../chunks/provider-CMbJNczj.mjs";
1
+ import { F as e } from "../../../chunks/provider-BhFm5rvy.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { I as e } from "../../../chunks/provider-CMbJNczj.mjs";
1
+ import { I as e } from "../../../chunks/provider-BhFm5rvy.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { O as e } from "../../../chunks/provider-CMbJNczj.mjs";
1
+ import { O as e } from "../../../chunks/provider-BhFm5rvy.mjs";
2
2
  export { e as default };
@@ -1,4 +1,4 @@
1
- import { S as e, n as t } from "../../chunks/provider-CMbJNczj.mjs";
1
+ import { S as e, n as t } from "../../chunks/provider-BhFm5rvy.mjs";
2
2
  import { t as n } from "../../chunks/icon-COjp1yrx.mjs";
3
3
  import "../../components/icon/index.mjs";
4
4
  import { aesEncrypt as r } from "../../utils/tool.mjs";
@@ -1,4 +1,4 @@
1
- import { I as e } from "../../chunks/provider-CMbJNczj.mjs";
1
+ import { I as e } from "../../chunks/provider-BhFm5rvy.mjs";
2
2
  import { defineAsyncComponent as t, h as n } from "vue";
3
3
  //#region ../../packages/dlzn-ui/plugins/captcha/index.ts
4
4
  var r = () => new Promise((r) => {
@@ -1,4 +1,4 @@
1
- import { F as e } from "../../chunks/provider-CMbJNczj.mjs";
1
+ import { F as e } from "../../chunks/provider-BhFm5rvy.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-C_GEf7wQ.mjs";
1
+ import { t as e } from "../../../../chunks/Index-2AaTfz2L.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-BZvMk2w1.mjs";
1
+ import { t as e } from "../../../../chunks/Index-CSNXgzLe.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-CYYPuJWJ.mjs";
1
+ import { t as e } from "../../../../chunks/Index-C_JjguDb.mjs";
2
2
  export { e as default };
@@ -1,8 +1,8 @@
1
1
  import { n as e } from "../../../chunks/useAppContext-D47amIp5.mjs";
2
2
  import { t } from "../../../chunks/Index-BChP9CTL.mjs";
3
- import { t as n } from "../../../chunks/Index-C_GEf7wQ.mjs";
3
+ import { t as n } from "../../../chunks/Index-2AaTfz2L.mjs";
4
4
  import { t as r } from "../../../chunks/Index-BuqrJDKe.mjs";
5
- import { t as i } from "../../../chunks/Index-BZvMk2w1.mjs";
5
+ import { t as i } from "../../../chunks/Index-CSNXgzLe.mjs";
6
6
  import { t as a } from "../../../chunks/Index-Bye0GY_j.mjs";
7
7
  import { t as o } from "../../../chunks/Index-BwWS0oPl.mjs";
8
8
  import { t as s } from "../../../chunks/Index-bEWcnIHJ.mjs";
@@ -12,7 +12,7 @@ import { t as u } from "../../../chunks/Index-0-JzYXfb.mjs";
12
12
  import { t as d } from "../../../chunks/Index-Cu2Ud84o.mjs";
13
13
  import { t as f } from "../../../chunks/Index-DBQnzqsw.mjs";
14
14
  import { t as p } from "../../../chunks/Index-D6pUjcEN.mjs";
15
- import { t as m } from "../../../chunks/Index-CYYPuJWJ.mjs";
15
+ import { t as m } from "../../../chunks/Index-C_JjguDb.mjs";
16
16
  import { t as h } from "../../../chunks/Index-BOv4n_q9.mjs";
17
17
  import { t as g } from "../../../chunks/Index-vcnN6L-y.mjs";
18
18
  import { t as _ } from "../../../chunks/Index-CZnP6jHo.mjs";
@@ -0,0 +1,10 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ indent_style = space
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
10
+ max_line_length = 100
@@ -0,0 +1 @@
1
+ * text=auto eol=lf
@@ -0,0 +1,20 @@
1
+ {
2
+ "recommendations": [
3
+ "DavidAnson.vscode-markdownlint",
4
+ "EditorConfig.EditorConfig",
5
+ // 不区分大小写
6
+ "Vue.volar",
7
+ "bradlc.vscode-tailwindcss",
8
+ "dbaeumer.vscode-eslint",
9
+ "esbenp.prettier-vscode",
10
+ "intellsmi.comment-translate",
11
+ "omkarbhede.tailwindcss-tune",
12
+ "rikka.folder-alias",
13
+ "streetsidesoftware.code-spell-checker",
14
+ "stylelint.vscode-stylelint",
15
+ "vunguyentuan.vscode-css-variables"
16
+ ],
17
+ "unwantedRecommendations": [
18
+ "octref.vetur" // 和 volar 冲突
19
+ ]
20
+ }
@@ -0,0 +1,104 @@
1
+ {
2
+ "[html]": {
3
+ "editor.defaultFormatter": "dbaeumer.vscode-eslint"
4
+ },
5
+ "[json]": {
6
+ "editor.defaultFormatter": "dbaeumer.vscode-eslint"
7
+ },
8
+ "[json5]": {
9
+ "editor.defaultFormatter": "dbaeumer.vscode-eslint"
10
+ },
11
+ "[jsonc]": {
12
+ "editor.defaultFormatter": "dbaeumer.vscode-eslint"
13
+ },
14
+ "[markdown]": {
15
+ "editor.acceptSuggestionOnEnter": "on",
16
+ "editor.defaultFormatter": "DavidAnson.vscode-markdownlint",
17
+ "editor.quickSuggestions": {
18
+ "comments": "off",
19
+ "other": "on",
20
+ "strings": "on"
21
+ },
22
+ "editor.wordWrap": "off",
23
+ "files.trimTrailingWhitespace": false
24
+ },
25
+ "[svg]": {
26
+ "editor.defaultFormatter": "dbaeumer.vscode-eslint"
27
+ },
28
+ "[xml]": {
29
+ "editor.defaultFormatter": "dbaeumer.vscode-eslint"
30
+ },
31
+ "cSpell.words": [
32
+ "Arrayable",
33
+ "autoresize",
34
+ "bprogress",
35
+ "cronosjs",
36
+ "cronstrue",
37
+ "dlzn",
38
+ "Exclusify",
39
+ "formkit",
40
+ "iconify",
41
+ "Popconfirm",
42
+ "quartzcron",
43
+ "secondarycontainer",
44
+ "tdesign",
45
+ "wordcloud"
46
+ ],
47
+ "cssVariables.languages": [
48
+ "astro",
49
+ "css",
50
+ "html",
51
+ "javascript",
52
+ "javascriptreact",
53
+ "less",
54
+ "postcss",
55
+ "scss",
56
+ "source.css.styled",
57
+ "svelte",
58
+ "tailwindcss",
59
+ "typescript",
60
+ "typescriptreact",
61
+ "vue",
62
+ "vue-html",
63
+ "vue-postcss"
64
+ ],
65
+ "cssVariables.lookupFiles": [
66
+ "node_modules/tdesign-vue-next/esm/common/style/web/_global.less",
67
+ "node_modules/tdesign-vue-next/esm/common/style/web/theme/**/*.less"
68
+ ],
69
+ "editor.quickSuggestions": {
70
+ "strings": "on"
71
+ },
72
+ "eslint.validate": [
73
+ "astro",
74
+ "css",
75
+ "gql",
76
+ "graphql",
77
+ "html",
78
+ "javascript",
79
+ "javascriptreact",
80
+ "json",
81
+ "json5",
82
+ "jsonc",
83
+ "less",
84
+ "markdown",
85
+ "pcss",
86
+ "postcss",
87
+ "scss",
88
+ "svelte",
89
+ "svg",
90
+ "toml",
91
+ "typescript",
92
+ "typescriptreact",
93
+ "vue",
94
+ "xml",
95
+ "yaml"
96
+ ],
97
+ "fileheader.configObj": {
98
+ "autoAdd": false, // 检测文件没有头部注释,自动添加文件头部注释
99
+ "createHeader": false // 新建文件自动添加头部注释
100
+ },
101
+ "vue.editor.focusMode": true,
102
+ "vue.inlayHints.destructuredProps": true,
103
+ "vue.inlayHints.vBindShorthand": true
104
+ }
@@ -0,0 +1,104 @@
1
+ {
2
+ "useRequest alova": {
3
+ "prefix": "useRequest",
4
+ "body": [
5
+ "const { data, loading, send } = useRequest(xxx, {",
6
+ " immediate: false,",
7
+ " initialData: [],",
8
+ "})",
9
+ ],
10
+ "description": "useRequest alova",
11
+ },
12
+ "useWatcher alova": {
13
+ "prefix": "useWatcher",
14
+ "body": [
15
+ "const { data, onSuccess } = useWatcher(",
16
+ " () =>",
17
+ " xxx({",
18
+ " projId: props.id,",
19
+ " }),",
20
+ " [() => props.id],",
21
+ " {",
22
+ " immediate: true,",
23
+ " initialData: [],",
24
+ " middleware: async (_, next) => {",
25
+ " if (!isFalsy(brandId.value)) {",
26
+ " next()",
27
+ " }",
28
+ " },",
29
+ " },",
30
+ ")",
31
+ ],
32
+ "description": "useWatcher alova",
33
+ },
34
+ "usePagination alova": {
35
+ "prefix": "usePagination",
36
+ "body": [
37
+ "const { data, page, pageSize, refresh, total } = usePagination(",
38
+ " // Method实例获取函数,它将接收page和pageSize,并返回一个Method实例",
39
+ " (page, pageSize) => queryStudents(page, pageSize),",
40
+ " {",
41
+ " data: (response) => response.rows,",
42
+ " immediate: false, // 默认为 true",
43
+ " initialData: {",
44
+ " data: [],",
45
+ " total: 0,",
46
+ " },",
47
+ " },",
48
+ ")",
49
+ ],
50
+ "description": "usePagination alova",
51
+ },
52
+ "新建一个form弹窗": {
53
+ "prefix": "$form_confirm",
54
+ "body": [
55
+ "const formRef = ref<FormInstance | null>(null)",
56
+ "",
57
+ "watch(",
58
+ " formRef,",
59
+ " () => {",
60
+ " formRef.value!.setFormData(row)",
61
+ " },",
62
+ " {",
63
+ " once: true,",
64
+ " },",
65
+ ")",
66
+ "\\$confirm({",
67
+ " body: () =>",
68
+ " h(TForm, {",
69
+ " items: [formItemMap.menuName],",
70
+ " labelAlign: 'right',",
71
+ " layout: 'vertical',",
72
+ " ref: formRef,",
73
+ " }),",
74
+ " header: '添加字典类型',",
75
+ " onConfirmCallback: async () => {",
76
+ " await \\$alova.Post('system/dict/type', await formRef.value!.validate())",
77
+ " \\$msg('字典添加成功')",
78
+ " pageListRef.value!.query()",
79
+ " },",
80
+ " width: 430, // 730",
81
+ "})",
82
+ ],
83
+ "description": "新建一个form弹窗",
84
+ },
85
+ "新建一个confirm弹窗": {
86
+ "prefix": "$confirm",
87
+ "body": [
88
+ "const compoRef = ref<InstanceType<typeof Component> | null>(null)",
89
+ "",
90
+ "void \\$confirm({",
91
+ " body: () =>",
92
+ " h(Component, {",
93
+ " ref: compoRef,",
94
+ " }),",
95
+ " header: 'xxx',",
96
+ " onConfirmCallback: async () => {",
97
+ " await compoRef.value!.handleSubmit()",
98
+ " },",
99
+ " width: 430, // 730",
100
+ "})",
101
+ ],
102
+ "description": "新建一个confirm弹窗",
103
+ },
104
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "定义props vue3.5+": {
3
+ "prefix": "props",
4
+ "body": [
5
+ "const { msg = 'hello' } = defineProps<{",
6
+ " msg?:string",
7
+ "}>()"
8
+ ],
9
+ "description": "定义props vue3.5+"
10
+ },
11
+ "定义props": {
12
+ "prefix": "withDefaults",
13
+ "body": [
14
+ "const props = withDefaults(defineProps<{",
15
+ " msg?:string",
16
+ "}>(), {",
17
+ " msg: 'hello',",
18
+ "})"
19
+ ],
20
+ "description": "定义props"
21
+ },
22
+ "定义emits vue3.3+": {
23
+ "prefix": "emits",
24
+ "body": [
25
+ "const emit = defineEmits<{",
26
+ " change: [id: number]",
27
+ "}>()"
28
+ ],
29
+ "description": "定义emits vue3.3+"
30
+ }
31
+ }
@@ -0,0 +1,12 @@
1
+ import { fileURLToPath } from 'node:url'
2
+ import { cp } from 'node:fs/promises'
3
+ import { cwd } from 'node:process'
4
+ import { basename } from 'node:path'
5
+ const current = fileURLToPath(new URL('.', import.meta.url))
6
+
7
+ export default () => {
8
+ return cp(current, cwd(), {
9
+ recursive: true,
10
+ filter: (src) => basename(src) !== 'apply.ts',
11
+ })
12
+ }
@@ -0,0 +1,6 @@
1
+ import config from '@dlzn-ui/eslint-config'
2
+ import { defineConfig } from 'eslint/config'
3
+
4
+ export default defineConfig({
5
+ extends: [...config],
6
+ })
@@ -0,0 +1,15 @@
1
+ diff --git a/omi.d.ts b/omi.d.ts
2
+ index 0aa3fda08375a5d711d81156645382a8db4cba38..b0fb9187ffc60ec2c1e3af7a5d455060949ee638 100644
3
+ --- a/omi.d.ts
4
+ +++ b/omi.d.ts
5
+ @@ -1141,7 +1141,8 @@ declare global {
6
+ [tagName: string]: any;
7
+ }
8
+ }
9
+ -
10
+ - type Ref<T=HTMLElement> = { current?: T }
11
+ +
12
+ + // NOTE: omi previously declared a global `type Ref` here, which conflicts with
13
+ + // Vue's `Ref` (e.g. unplugin-auto-import). Kept only as Omi.Ref in the namespace above.
14
+ }
15
+