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.
- package/assets/{provider-CdmB8aS4.css → provider-XeFy2v3X.css} +1 -1
- package/chunks/{AssignUser-D6zWqKTf.mjs → AssignUser-B8KO6qit.mjs} +3 -3
- package/chunks/{Common-Dil2af-D.mjs → Common-DZTByJ2b.mjs} +1 -1
- package/chunks/{Day-CfzfcX9a.mjs → Day-D47hdyiq.mjs} +1 -1
- package/chunks/{DictTypeDetail-DpcStIYJ.mjs → DictTypeDetail-DDv2c9JG.mjs} +2 -2
- package/chunks/{Hour-BfYnksJ9.mjs → Hour-CkkZZ5R6.mjs} +1 -1
- package/chunks/{Index-C_GEf7wQ.mjs → Index-2AaTfz2L.mjs} +1 -1
- package/chunks/{Index-BZvMk2w1.mjs → Index-CSNXgzLe.mjs} +1 -1
- package/chunks/{Index-CYYPuJWJ.mjs → Index-C_JjguDb.mjs} +1 -1
- package/chunks/{Index-DxG0xOD8.mjs → Index-DsO5SwJk.mjs} +1 -1
- package/chunks/{IndexItem-D6k3xOZ0.mjs → IndexItem-CUgu9du0.mjs} +1 -1
- package/chunks/{Log-C3qmCb6F.mjs → Log-CPni6oj5.mjs} +2 -2
- package/chunks/{Minute-CzHdY9uy.mjs → Minute-Dl21u3sJ.mjs} +1 -1
- package/chunks/{Month-C1o1ZX9u.mjs → Month-DIgPlTW3.mjs} +1 -1
- package/chunks/{Second-Ba8-jeeR.mjs → Second-C9JrfdJq.mjs} +1 -1
- package/chunks/{SelectDept-DRF0ZpWJ.mjs → SelectDept-BdP4Fevb.mjs} +1 -1
- package/chunks/{SelectMenu-DNsNCrkc.mjs → SelectMenu-C8uTKPyO.mjs} +1 -1
- package/chunks/{SelectUser-B6kAnMI7.mjs → SelectUser-Ce69wfaR.mjs} +2 -2
- package/chunks/{UserInfo-C8JPdflS.mjs → UserInfo-BXDXYNSa.mjs} +1 -1
- package/chunks/{app-CdJioC91.mjs → app-C4vupHU4.mjs} +1 -1
- package/chunks/{custom-page-list-BsDO1Szu.mjs → custom-page-list-DNONwY-V.mjs} +4 -4
- package/chunks/{custom-page-table-BpSElP6C.mjs → custom-page-table-y7emjJnS.mjs} +2 -2
- package/chunks/{overview-B6g1t8wq.mjs → overview-YqvRmr0O.mjs} +1 -1
- package/chunks/{page-list-BMNGO6A1.mjs → page-list-DMDDWHTe.mjs} +3 -3
- package/chunks/{page-query-DJfeHlhx.mjs → page-query-CRbcQbQW.mjs} +1 -1
- package/chunks/{page-table-D0Kg0wRT.mjs → page-table-C1hMMXID.mjs} +3 -3
- package/chunks/{pagination-D2QIMpV1.mjs → pagination-CQPdVoCT.mjs} +1 -1
- package/chunks/{provider-CMbJNczj.mjs → provider-BhFm5rvy.mjs} +2 -2
- package/chunks/{table-BOSYQJkd.mjs → table-CqT9HbMR.mjs} +1 -1
- package/components/app/index.mjs +1 -1
- package/components/app/src/app.mjs +1 -1
- package/components/button/index.mjs +1 -1
- package/components/button/src/button.mjs +1 -1
- package/components/checkbox-group/index.mjs +1 -1
- package/components/checkbox-group/src/checkbox-group.mjs +1 -1
- package/components/cron/index.mjs +1 -1
- package/components/cron/src/Common.mjs +1 -1
- package/components/cron/src/Day.mjs +1 -1
- package/components/cron/src/Hour.mjs +1 -1
- package/components/cron/src/Minute.mjs +1 -1
- package/components/cron/src/Month.mjs +1 -1
- package/components/cron/src/Picker.mjs +6 -6
- package/components/cron/src/Second.mjs +1 -1
- package/components/cron/src/cron.mjs +1 -1
- package/components/custom-page-list/index.mjs +1 -1
- package/components/custom-page-list/src/custom-page-list.mjs +1 -1
- package/components/custom-page-table/index.mjs +1 -1
- package/components/custom-page-table/src/custom-page-table.mjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/index.mjs +9 -9
- package/components/overview/index.mjs +1 -1
- package/components/overview/src/DicLabel/Index.mjs +1 -1
- package/components/overview/src/IndexItem.mjs +1 -1
- package/components/overview/src/overview.mjs +1 -1
- package/components/page-list/index.mjs +1 -1
- package/components/page-list/src/page-list.mjs +1 -1
- package/components/page-query/index.mjs +1 -1
- package/components/page-query/src/page-query.mjs +1 -1
- package/components/page-table/index.mjs +1 -1
- package/components/page-table/src/page-table.mjs +1 -1
- package/components/pagination/index.mjs +1 -1
- package/components/pagination/src/pagination.mjs +1 -1
- package/components/provider/index.mjs +1 -1
- package/components/provider/src/Provider.mjs +1 -1
- package/components/radio-group/index.mjs +1 -1
- package/components/radio-group/src/radio-group.mjs +1 -1
- package/components/select/index.mjs +1 -1
- package/components/select/src/select.mjs +1 -1
- package/components/select-sys-user/index.mjs +1 -1
- package/components/select-sys-user/src/Picker.mjs +2 -2
- package/components/select-sys-user/src/select-sys-user.mjs +1 -1
- package/components/table/index.mjs +1 -1
- package/components/table/src/table.mjs +1 -1
- package/components/tree/index.mjs +1 -1
- package/components/tree/src/tree.mjs +1 -1
- package/components/tree-select/index.mjs +1 -1
- package/components/tree-select/src/tree-select.mjs +1 -1
- package/components/upload/index.mjs +1 -1
- package/components/upload/src/upload.mjs +1 -1
- package/hooks/useDicOptions/index.mjs +1 -1
- package/hooks/useSysUser/index.mjs +1 -1
- package/layout/Entry.mjs +1 -1
- package/layout/Home.mjs +1 -1
- package/layout/Login.mjs +1 -1
- package/layout/NotFound.mjs +1 -1
- package/layout/modules/Aside.mjs +1 -1
- package/layout/modules/Breadcrumb.mjs +1 -1
- package/layout/modules/Header.mjs +1 -1
- package/layout/profile/Index.mjs +2 -2
- package/layout/profile/ResetPwd.mjs +1 -1
- package/layout/profile/UserInfo.mjs +1 -1
- package/main.mjs +2 -2
- package/package.json +2 -1
- package/plugins/autoImport/$alova/index.mjs +1 -1
- package/plugins/autoImport/$confirm/index.mjs +1 -1
- package/plugins/autoImport/$dialog/index.mjs +1 -1
- package/plugins/autoImport/$drawer/index.mjs +1 -1
- package/plugins/captcha/captcha.mjs +1 -1
- package/plugins/captcha/index.mjs +1 -1
- package/plugins/initialize/webUpdateNotify.mjs +1 -1
- package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
- package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
- package/plugins/tableRenders/cell/index.mjs +3 -3
- package/proj-template/.editorconfig +10 -0
- package/proj-template/.gitattributes +1 -0
- package/proj-template/.vscode/extensions.json +20 -0
- package/proj-template/.vscode/settings.json +104 -0
- package/proj-template/.vscode/ts.code-snippets +104 -0
- package/proj-template/.vscode/vue.code-snippets +31 -0
- package/proj-template/apply.ts +12 -0
- package/proj-template/eslint.config.ts +6 -0
- package/proj-template/patches/omi@7.7.13.patch +15 -0
- package/proj-template/patches/tdesign-web-components.patch +446 -0
- package/proj-template/pnpm-workspace.yaml +73 -0
- package/proj-template/prettier.config.ts +7 -0
- package/proj-template/src/app-params.ts +4 -0
- package/proj-template/src/main.ts +4 -0
- package/proj-template/stylelint.config.ts +5 -0
- package/proj-template/tsconfig.app.json +26 -0
- package/proj-template/tsconfig.json +12 -0
- package/proj-template/tsconfig.node.json +25 -0
- package/proj-template/vite.config.ts +20 -0
- package/router/index.mjs +1 -1
- package/store/modules/common.mjs +1 -1
- package/store/modules/login.mjs +1 -1
- package/store/modules/recentRouters.mjs +1 -1
- package/store/modules/router.mjs +1 -1
- package/store/modules/user.mjs +1 -1
- package/views/system/dept/index.mjs +2 -2
- package/views/system/dept/utils.mjs +1 -1
- package/views/system/dict/index.mjs +3 -3
- package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
- package/views/system/menu/index.mjs +2 -2
- package/views/system/post/index.mjs +2 -2
- package/views/system/role/index.mjs +5 -5
- package/views/system/role/modules/AssignUser.mjs +1 -1
- package/views/system/role/modules/SelectDept.mjs +1 -1
- package/views/system/role/modules/SelectMenu.mjs +1 -1
- package/views/system/role/modules/SelectUser.mjs +1 -1
- package/views/system/user/index.mjs +3 -3
- package/views/tool/job/index.mjs +3 -3
- package/views/tool/job/modules/Log.mjs +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { d as e, u as t } from "../../chunks/provider-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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";
|
package/layout/NotFound.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e } from "../chunks/provider-
|
|
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";
|
package/layout/modules/Aside.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { R as e } from "../../chunks/provider-
|
|
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-
|
|
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-
|
|
1
|
+
import { A as e } from "../../chunks/provider-BhFm5rvy.mjs";
|
|
2
2
|
export { e as default };
|
package/layout/profile/Index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { S as e, a as t } from "../../chunks/provider-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
2
|
-
import { t as n } from "./chunks/app-
|
|
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.
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/Index-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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 @@
|
|
|
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,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
|
+
|