dlzn-ui 2.0.16 → 2.0.22

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 (228) hide show
  1. package/assets/Picker-CBqZNv2a.css +1 -0
  2. package/assets/card-BA6XkAYT.css +2 -0
  3. package/assets/image-DfMYLUCM.css +1 -0
  4. package/assets/input-number-CMgDqkh-.css +2 -0
  5. package/assets/pagination-B9tRH6dt.css +1 -0
  6. package/assets/{provider-CW7ZfoeY.css → provider-XeFy2v3X.css} +1 -1
  7. package/assets/table-BcyMyXjz.css +1 -0
  8. package/assets/{textarea-z-4sHFLB.css → textarea-D6OBW0hp.css} +1 -1
  9. package/chunks/{AssignUser-Ds0SzWSC.mjs → AssignUser-B8KO6qit.mjs} +3 -3
  10. package/chunks/{Common-DyuM41yx.mjs → Common-DZTByJ2b.mjs} +1 -1
  11. package/chunks/Day-D47hdyiq.mjs +275 -0
  12. package/chunks/{DictTypeDetail-90mc8fa1.mjs → DictTypeDetail-DDv2c9JG.mjs} +2 -2
  13. package/chunks/{Hour-BL_7zdsY.mjs → Hour-CkkZZ5R6.mjs} +1 -1
  14. package/chunks/{Index-CwksT4hO.mjs → Index-0-JzYXfb.mjs} +1 -1
  15. package/chunks/{Index-BPHL8J52.mjs → Index-2AaTfz2L.mjs} +2 -2
  16. package/chunks/{Index-eWToVefC.mjs → Index-AH0WCRJO.mjs} +1 -1
  17. package/chunks/{Index--rlVexBg.mjs → Index-BOv4n_q9.mjs} +1 -1
  18. package/chunks/{Index-BgAFqGXG.mjs → Index-CSNXgzLe.mjs} +2 -2
  19. package/chunks/{Index-7ubKF9v4.mjs → Index-CT0eb17V.mjs} +1 -1
  20. package/chunks/{Index-BXjVn9TE.mjs → Index-C_JjguDb.mjs} +1 -1
  21. package/chunks/{Index-DiOdyjva.mjs → Index-CgJ94bEi.mjs} +1 -1
  22. package/chunks/{Index-CS1bfxu7.mjs → Index-Cu2Ud84o.mjs} +1 -1
  23. package/chunks/{Index-Bi44jQm2.mjs → Index-D6pUjcEN.mjs} +1 -1
  24. package/chunks/{Index-DC0L_zaY.mjs → Index-DBQnzqsw.mjs} +1 -1
  25. package/chunks/{Index-Bu5a_B5n.mjs → Index-DLHAN-m-.mjs} +1 -1
  26. package/chunks/{Index-CEehhVZR.mjs → Index-DsO5SwJk.mjs} +2 -2
  27. package/chunks/{Index-De48YIRG.mjs → Index-vcnN6L-y.mjs} +1 -1
  28. package/chunks/{IndexItem-B7qjaAzq.mjs → IndexItem-CUgu9du0.mjs} +2 -2
  29. package/chunks/{Log-BncwEzcE.mjs → Log-CPni6oj5.mjs} +2 -2
  30. package/chunks/{LoginBg-BtuSDFUq.mjs → LoginBg-D3SWh-C6.mjs} +2 -2
  31. package/chunks/{Minute-D6qi9-Bq.mjs → Minute-Dl21u3sJ.mjs} +1 -1
  32. package/chunks/{Month-B4m3vDps.mjs → Month-DIgPlTW3.mjs} +1 -1
  33. package/chunks/{Second-Cb6eUrAr.mjs → Second-C9JrfdJq.mjs} +1 -1
  34. package/chunks/{SelectDept-DVwKLSdI.mjs → SelectDept-BdP4Fevb.mjs} +2 -2
  35. package/chunks/{SelectMenu-D1fa5g0-.mjs → SelectMenu-C8uTKPyO.mjs} +2 -2
  36. package/chunks/{SelectUser-BqucEetn.mjs → SelectUser-Ce69wfaR.mjs} +2 -2
  37. package/chunks/{UserInfo-DUVL2uDb.mjs → UserInfo-BXDXYNSa.mjs} +1 -1
  38. package/chunks/{app-N2L1j0dZ.mjs → app-C4vupHU4.mjs} +1 -1
  39. package/chunks/{card-BfHb58zl.mjs → card-Domqu1Hz.mjs} +7 -7
  40. package/chunks/{checkbox-CLlUEbkk.mjs → checkbox-DsFECVao.mjs} +5 -5
  41. package/chunks/{custom-page-list-k-CAcJ5H.mjs → custom-page-list-DNONwY-V.mjs} +5 -5
  42. package/chunks/{custom-page-table-ClN4nM3U.mjs → custom-page-table-y7emjJnS.mjs} +2 -2
  43. package/chunks/{image-BEsiUWeF.mjs → image-cancjWRE.mjs} +7 -7
  44. package/chunks/{image-viewer-BZux9RvX.mjs → image-viewer-CBPx8-8E.mjs} +5 -5
  45. package/chunks/{input-B8jjJrK5.mjs → input-UQjpNb61.mjs} +9 -9
  46. package/chunks/{input-number-B4oTaRne.mjs → input-number-q9JM7-Uo.mjs} +7 -7
  47. package/chunks/{link-Byr_BYPx.mjs → link-nbeAJ6Mt.mjs} +5 -5
  48. package/chunks/{overview-uo7gHw9o.mjs → overview-YqvRmr0O.mjs} +1 -1
  49. package/chunks/{page-list-DOAYgiyu.mjs → page-list-DMDDWHTe.mjs} +4 -4
  50. package/chunks/{page-query-D4lJE4q9.mjs → page-query-CRbcQbQW.mjs} +1 -1
  51. package/chunks/{page-table-BizUvlg4.mjs → page-table-C1hMMXID.mjs} +3 -3
  52. package/chunks/{pagination-BDbOy8c6.mjs → pagination-CQPdVoCT.mjs} +8 -8
  53. package/chunks/{popconfirm-DxWa7vWm.mjs → popconfirm-Bc93K9mT.mjs} +5 -5
  54. package/chunks/{popup-BO_hNSY5.mjs → popup-4CBPH3ga.mjs} +5 -5
  55. package/chunks/{provider-DyIvT7Vi.mjs → provider-BhFm5rvy.mjs} +128 -128
  56. package/chunks/{range-input-CKFoK49E.mjs → range-input-CkZteidJ.mjs} +5 -5
  57. package/chunks/{slider-C63Gzbld.mjs → slider-DSeKLd2m.mjs} +5 -5
  58. package/chunks/{switch-CqV3-avv.mjs → switch-DNPmkfa_.mjs} +5 -5
  59. package/chunks/{tab-panel-CtYeK29i.mjs → tab-panel-yh4fFZ2r.mjs} +5 -5
  60. package/chunks/{table-Ds66y4wd.mjs → table-CqT9HbMR.mjs} +12 -12
  61. package/chunks/{tag-CfeJWJii.mjs → tag-CQPtIWU2.mjs} +5 -5
  62. package/chunks/{tag-input-iNXrRXk2.mjs → tag-input-BuAFWI1F.mjs} +9 -9
  63. package/chunks/{textarea-xkwOhNut.mjs → textarea-CYirMH7f.mjs} +7 -7
  64. package/components/app/index.mjs +1 -1
  65. package/components/app/src/app.mjs +1 -1
  66. package/components/button/index.mjs +1 -1
  67. package/components/button/src/button.mjs +1 -1
  68. package/components/card/index.mjs +1 -1
  69. package/components/card/src/card.mjs +1 -1
  70. package/components/checkbox/index.mjs +1 -1
  71. package/components/checkbox/src/checkbox.mjs +1 -1
  72. package/components/checkbox-group/index.mjs +1 -1
  73. package/components/checkbox-group/src/checkbox-group.mjs +1 -1
  74. package/components/cron/index.mjs +1 -1
  75. package/components/cron/src/Common.mjs +1 -1
  76. package/components/cron/src/Day.mjs +1 -1
  77. package/components/cron/src/Hour.mjs +1 -1
  78. package/components/cron/src/Minute.mjs +1 -1
  79. package/components/cron/src/Month.mjs +1 -1
  80. package/components/cron/src/Picker.mjs +82 -112
  81. package/components/cron/src/Second.mjs +1 -1
  82. package/components/cron/src/cron.mjs +1 -1
  83. package/components/custom-page-list/index.mjs +1 -1
  84. package/components/custom-page-list/src/custom-page-list.mjs +1 -1
  85. package/components/custom-page-table/index.mjs +1 -1
  86. package/components/custom-page-table/src/custom-page-table.mjs +1 -1
  87. package/components/form/index.mjs +1 -1
  88. package/components/form/src/form.mjs +1 -1
  89. package/components/image/index.mjs +1 -1
  90. package/components/image/src/image.mjs +1 -1
  91. package/components/image-viewer/index.mjs +1 -1
  92. package/components/image-viewer/src/image-viewer.mjs +1 -1
  93. package/components/index.mjs +25 -25
  94. package/components/input/index.mjs +1 -1
  95. package/components/input/src/input.mjs +1 -1
  96. package/components/input-number/index.mjs +1 -1
  97. package/components/input-number/src/input-number.mjs +1 -1
  98. package/components/link/index.mjs +1 -1
  99. package/components/link/src/link.mjs +1 -1
  100. package/components/overview/index.mjs +1 -1
  101. package/components/overview/src/DicLabel/Index.mjs +1 -1
  102. package/components/overview/src/IndexItem.mjs +1 -1
  103. package/components/overview/src/OptionLabel/Index.mjs +1 -1
  104. package/components/overview/src/overview.mjs +1 -1
  105. package/components/page-list/index.mjs +1 -1
  106. package/components/page-list/src/page-list.mjs +1 -1
  107. package/components/page-query/index.mjs +1 -1
  108. package/components/page-query/src/page-query.mjs +1 -1
  109. package/components/page-table/index.mjs +1 -1
  110. package/components/page-table/src/page-table.mjs +1 -1
  111. package/components/pagination/index.mjs +1 -1
  112. package/components/pagination/src/pagination.mjs +1 -1
  113. package/components/popconfirm/index.mjs +1 -1
  114. package/components/popconfirm/src/popconfirm.mjs +1 -1
  115. package/components/popup/index.mjs +1 -1
  116. package/components/popup/src/popup.mjs +1 -1
  117. package/components/provider/index.mjs +1 -1
  118. package/components/provider/src/Provider.mjs +1 -1
  119. package/components/radio-group/index.mjs +1 -1
  120. package/components/radio-group/src/radio-group.mjs +1 -1
  121. package/components/range-input/index.mjs +1 -1
  122. package/components/range-input/src/range-input.mjs +1 -1
  123. package/components/select/index.mjs +1 -1
  124. package/components/select/src/select.mjs +1 -1
  125. package/components/select-sys-user/index.mjs +1 -1
  126. package/components/select-sys-user/src/Picker.mjs +2 -2
  127. package/components/select-sys-user/src/select-sys-user.mjs +1 -1
  128. package/components/slider/index.mjs +1 -1
  129. package/components/slider/src/slider.mjs +1 -1
  130. package/components/switch/index.mjs +1 -1
  131. package/components/switch/src/switch.mjs +1 -1
  132. package/components/tab-panel/index.mjs +1 -1
  133. package/components/tab-panel/src/tab-panel.mjs +1 -1
  134. package/components/table/index.mjs +1 -1
  135. package/components/table/src/table.mjs +1 -1
  136. package/components/tag/index.mjs +1 -1
  137. package/components/tag/src/tag.mjs +1 -1
  138. package/components/tag-input/index.mjs +1 -1
  139. package/components/tag-input/src/tag-input.mjs +1 -1
  140. package/components/textarea/index.mjs +1 -1
  141. package/components/textarea/src/textarea.mjs +1 -1
  142. package/components/tree/index.mjs +1 -1
  143. package/components/tree/src/tree.mjs +1 -1
  144. package/components/tree-select/index.mjs +1 -1
  145. package/components/tree-select/src/tree-select.mjs +1 -1
  146. package/components/upload/index.mjs +1 -1
  147. package/components/upload/src/upload.mjs +1 -1
  148. package/hooks/useDicOptions/index.mjs +1 -1
  149. package/hooks/useSysUser/index.mjs +1 -1
  150. package/layout/Entry.mjs +1 -1
  151. package/layout/Home.mjs +14 -9
  152. package/layout/Login.mjs +2 -2
  153. package/layout/NotFound.mjs +1 -1
  154. package/layout/modules/Aside.mjs +1 -1
  155. package/layout/modules/Breadcrumb.mjs +1 -1
  156. package/layout/modules/Header.mjs +1 -1
  157. package/layout/modules/LoginBg.mjs +1 -1
  158. package/layout/profile/Index.mjs +4 -4
  159. package/layout/profile/ResetPwd.mjs +1 -1
  160. package/layout/profile/UserInfo.mjs +1 -1
  161. package/main.mjs +2 -2
  162. package/package.json +7 -4
  163. package/plugins/autoImport/$alova/index.mjs +1 -1
  164. package/plugins/autoImport/$confirm/index.mjs +1 -1
  165. package/plugins/autoImport/$dialog/index.mjs +1 -1
  166. package/plugins/autoImport/$drawer/index.mjs +1 -1
  167. package/plugins/captcha/captcha.mjs +1 -1
  168. package/plugins/captcha/index.mjs +1 -1
  169. package/plugins/initialize/webUpdateNotify.mjs +1 -1
  170. package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
  171. package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
  172. package/plugins/tableRenders/cell/Image/Index.mjs +1 -1
  173. package/plugins/tableRenders/cell/ImageViewer/Index.mjs +1 -1
  174. package/plugins/tableRenders/cell/Input/Index.mjs +1 -1
  175. package/plugins/tableRenders/cell/InputNumber/Index.mjs +1 -1
  176. package/plugins/tableRenders/cell/Link/Index.mjs +1 -1
  177. package/plugins/tableRenders/cell/OptionLabel/Index.mjs +1 -1
  178. package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
  179. package/plugins/tableRenders/cell/Switch/Index.mjs +1 -1
  180. package/plugins/tableRenders/cell/Tags/Index.mjs +1 -1
  181. package/plugins/tableRenders/cell/TypographyTextLink/Index.mjs +1 -1
  182. package/plugins/tableRenders/cell/index.mjs +12 -12
  183. package/proj-template/.editorconfig +10 -0
  184. package/proj-template/.gitattributes +1 -0
  185. package/proj-template/.vscode/extensions.json +20 -0
  186. package/proj-template/.vscode/settings.json +104 -0
  187. package/proj-template/.vscode/ts.code-snippets +104 -0
  188. package/proj-template/.vscode/vue.code-snippets +31 -0
  189. package/proj-template/apply.ts +12 -0
  190. package/proj-template/eslint.config.ts +6 -0
  191. package/proj-template/patches/omi@7.7.13.patch +15 -0
  192. package/proj-template/patches/tdesign-web-components.patch +446 -0
  193. package/proj-template/pnpm-workspace.yaml +73 -0
  194. package/proj-template/prettier.config.ts +7 -0
  195. package/proj-template/src/app-params.ts +4 -0
  196. package/proj-template/src/main.ts +4 -0
  197. package/proj-template/stylelint.config.ts +5 -0
  198. package/proj-template/tsconfig.app.json +26 -0
  199. package/proj-template/tsconfig.json +12 -0
  200. package/proj-template/tsconfig.node.json +25 -0
  201. package/proj-template/vite.config.ts +20 -0
  202. package/router/index.mjs +1 -1
  203. package/store/modules/common.mjs +1 -1
  204. package/store/modules/login.mjs +1 -1
  205. package/store/modules/recentRouters.mjs +1 -1
  206. package/store/modules/router.mjs +1 -1
  207. package/store/modules/user.mjs +1 -1
  208. package/views/system/dept/index.mjs +2 -2
  209. package/views/system/dept/utils.mjs +1 -1
  210. package/views/system/dict/index.mjs +3 -3
  211. package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
  212. package/views/system/menu/index.mjs +2 -2
  213. package/views/system/post/index.mjs +2 -2
  214. package/views/system/role/index.mjs +5 -5
  215. package/views/system/role/modules/AssignUser.mjs +1 -1
  216. package/views/system/role/modules/SelectDept.mjs +1 -1
  217. package/views/system/role/modules/SelectMenu.mjs +1 -1
  218. package/views/system/role/modules/SelectUser.mjs +1 -1
  219. package/views/system/user/index.mjs +6 -6
  220. package/views/tool/job/index.mjs +3 -3
  221. package/views/tool/job/modules/Log.mjs +1 -1
  222. package/assets/Picker-Cyw0VxVm.css +0 -1
  223. package/assets/card-_JgeY1kg.css +0 -2
  224. package/assets/image-B0R_Wg4e.css +0 -1
  225. package/assets/input-number-CYEGbleB.css +0 -2
  226. package/assets/pagination-D7QwybX3.css +0 -1
  227. package/assets/table-BAM00F7-.css +0 -1
  228. package/chunks/Day-CkdOjvVD.mjs +0 -299
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-BgAFqGXG.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-eWToVefC.mjs";
1
+ import { t as e } from "../../../../chunks/Index-AH0WCRJO.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-DiOdyjva.mjs";
1
+ import { t as e } from "../../../../chunks/Index-CgJ94bEi.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-CwksT4hO.mjs";
1
+ import { t as e } from "../../../../chunks/Index-0-JzYXfb.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-CS1bfxu7.mjs";
1
+ import { t as e } from "../../../../chunks/Index-Cu2Ud84o.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-DC0L_zaY.mjs";
1
+ import { t as e } from "../../../../chunks/Index-DBQnzqsw.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-Bi44jQm2.mjs";
1
+ import { t as e } from "../../../../chunks/Index-D6pUjcEN.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-BXjVn9TE.mjs";
1
+ import { t as e } from "../../../../chunks/Index-C_JjguDb.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index--rlVexBg.mjs";
1
+ import { t as e } from "../../../../chunks/Index-BOv4n_q9.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-De48YIRG.mjs";
1
+ import { t as e } from "../../../../chunks/Index-vcnN6L-y.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-7ubKF9v4.mjs";
1
+ import { t as e } from "../../../../chunks/Index-CT0eb17V.mjs";
2
2
  export { e as default };
@@ -1,22 +1,22 @@
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-BPHL8J52.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-BgAFqGXG.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";
9
- import { t as c } from "../../../chunks/Index-eWToVefC.mjs";
10
- import { t as l } from "../../../chunks/Index-DiOdyjva.mjs";
11
- import { t as u } from "../../../chunks/Index-CwksT4hO.mjs";
12
- import { t as d } from "../../../chunks/Index-CS1bfxu7.mjs";
13
- import { t as f } from "../../../chunks/Index-DC0L_zaY.mjs";
14
- import { t as p } from "../../../chunks/Index-Bi44jQm2.mjs";
15
- import { t as m } from "../../../chunks/Index-BXjVn9TE.mjs";
16
- import { t as h } from "../../../chunks/Index--rlVexBg.mjs";
17
- import { t as g } from "../../../chunks/Index-De48YIRG.mjs";
9
+ import { t as c } from "../../../chunks/Index-AH0WCRJO.mjs";
10
+ import { t as l } from "../../../chunks/Index-CgJ94bEi.mjs";
11
+ import { t as u } from "../../../chunks/Index-0-JzYXfb.mjs";
12
+ import { t as d } from "../../../chunks/Index-Cu2Ud84o.mjs";
13
+ import { t as f } from "../../../chunks/Index-DBQnzqsw.mjs";
14
+ import { t as p } from "../../../chunks/Index-D6pUjcEN.mjs";
15
+ import { t as m } from "../../../chunks/Index-C_JjguDb.mjs";
16
+ import { t as h } from "../../../chunks/Index-BOv4n_q9.mjs";
17
+ import { t as g } from "../../../chunks/Index-vcnN6L-y.mjs";
18
18
  import { t as _ } from "../../../chunks/Index-CZnP6jHo.mjs";
19
- import { t as v } from "../../../chunks/Index-7ubKF9v4.mjs";
19
+ import { t as v } from "../../../chunks/Index-CT0eb17V.mjs";
20
20
  import { t as y } from "../../../chunks/Wrapper-C6BtJDSa.mjs";
21
21
  //#region ../../packages/dlzn-ui/plugins/tableRenders/cell/index.ts
22
22
  var b = /* #__PURE__ */ Object.assign({
@@ -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
+